/* ==================== */
/* ОСНОВНЫЕ СТИЛИ */
/* ==================== */

/* Импорт переменных */
/* @import url('variables.css'); - уберем импорт, переменные уже загружены в index.html */

/* Сброс и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: #ffffff;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #2c5aa0 0%, #3a7bd5 100%);
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3a7bd5 0%, #2c5aa0 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: linear-gradient(135deg, #e74c3c 0%, #ff6b6b 100%);
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #ff6b6b 0%, #e74c3c 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
    border-radius: 12px;
}

/* Шапка */
.header {
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 3px solid #2c5aa0;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    height: 70px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

/* Навигация - десктопная версия */
.nav {
    margin-left: 30px;
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.nav a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    padding: 8px 12px;
    position: relative;
    white-space: nowrap;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, #2c5aa0 0%, #3a7bd5 100%);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav a:hover {
    color: #2c5aa0;
}

.nav a:hover::after {
    width: calc(100% - 24px);
}

/* Контакты в шапке */
.header__contacts {
    flex-shrink: 0;
    text-align: right;
    min-width: 200px;
}

.phone {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #2c5aa0;
    text-decoration: none;
    margin-bottom: 5px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.phone:hover {
    color: #e74c3c;
}

.worktime {
    font-size: 13px;
    color: #718096;
    white-space: nowrap;
}

/* Скрываем мобильный телефон на десктопе */
.header__phone-mobile {
    display: none;
}

/* Бургер меню - изначально скрыто */
.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    z-index: 1001;
}

.burger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #2c3e50;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Мобильное меню - появится при адаптивности */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    z-index: 999;
    padding: 100px 20px 20px;
    overflow-y: auto;
    backdrop-filter: blur(10px);
}

.mobile-menu.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    color: #2c5aa0;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f0f8ff;
}

.mobile-menu__nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu__nav li {
    margin-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.mobile-menu__nav a {
    display: block;
    padding: 15px;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.mobile-menu__nav a:hover {
    background: #f0f8ff;
    color: #2c5aa0;
    padding-left: 25px;
}

.mobile-menu__contacts {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
}

.mobile-menu__contacts .phone {
    font-size: 22px;
    margin-bottom: 10px;
}

.mobile-menu__contacts .worktime {
    font-size: 16px;
}

.mobile-menu__social {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.mobile-menu__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f0f8ff;
    color: #2c5aa0;
    font-size: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-menu__social a:hover {
    background: #2c5aa0;
    color: white;
    transform: scale(1.1);
}

/* Секции */
.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #2c5aa0;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2c5aa0, #e74c3c);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: #4a5568;
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Футер */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #1a2530 100%);
    color: white;
    padding: 60px 0 30px;
    border-top: 4px solid #2c5aa0;
}

.footer__content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
}

.footer__logo img {
    height: 60px;
    width: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer__logo p {
    color: #b0c4ff;
    font-size: 14px;
    margin: 5px 0;
}

.footer__menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.menu-column h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
    position: relative;
    padding-bottom: 10px;
}

.menu-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #e74c3c;
}

.menu-column ul {
    list-style: none;
}

.menu-column li {
    margin-bottom: 10px;
}

.menu-column a {
    color: #b0c4ff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.menu-column a:hover {
    color: white;
    padding-left: 5px;
}

.footer__bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #b0c4ff;
    font-size: 14px;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal__content {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
    border: 2px solid #2c5aa0;
    animation: modalAppear 0.3s ease;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal__content h3 {
    color: #2c5aa0;
    margin-bottom: 20px;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.modal__content p {
    margin-bottom: 15px;
    color: #4a5568;
}

#modalOrderNumber {
    color: #e74c3c;
    font-size: 24px;
    font-weight: 700;
}

/* Кнопка WhatsApp */
.whatsapp-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    border: 2px solid white;
}

.whatsapp-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon {
    font-size: 20px;
}

/* Вспомогательные классы */
.text-blue {
    color: #2c5aa0;
}

.text-red {
    color: #ff6b6b;
}

.text-small {
    font-size: 14px;
    color: #666;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .nav ul {
        gap: 20px;
    }
    
    .nav a {
        font-size: 14px;
        padding: 8px 10px;
    }
    
    .header__contacts {
        min-width: 180px;
    }
    
    .phone {
        font-size: 16px;
    }
}

@media (max-width: 1024px) {
    .nav ul {
        gap: 15px;
    }
    
    .nav a {
        font-size: 13px;
        padding: 6px 8px;
    }
    
    .header__contacts {
        min-width: 160px;
    }
    
    .phone {
        font-size: 15px;
    }
}

@media (max-width: 900px) {
    /* Прячем обычную навигацию и контакты */
    .nav {
        display: none;
    }
    
    .header__contacts {
        display: none;
    }
    
    /* Показываем бургер меню */
    .burger {
        display: flex;
    }
    
    .burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .burger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Отображаем телефон рядом с логотипом на мобильных */
    .header__phone-mobile {
        display: block;
        font-size: 16px;
        font-weight: 700;
        color: #2c5aa0;
        text-decoration: none;
        margin-left: 15px;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 30px;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
    }
    
    .footer__menu {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .whatsapp-floating {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 24px;
    }
    
    .modal__content {
        padding: 25px;
    }
    
    .modal__content h3 {
        font-size: 24px;
    }
    
    .logo img {
        height: 60px;
    }
    
    .header__phone-mobile {
        font-size: 14px;
        margin-left: 10px;
    }
    
    .mobile-menu__nav a {
        font-size: 16px;
        padding: 12px;
    }
    
    .mobile-menu__contacts .phone {
        font-size: 20px;
    }
}
