/* Базовый сброс и фон */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #191717;
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #FFFFFF;
    min-height: 100vh;
}

.site-container {
    max-width: 1680px;
    margin: 0 auto;
    width: 100%;
    position: relative;
}

/* ===== ХЕДЕР ===== */
.contacts {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.5rem 2rem;
    background: #191717;
}

.header-logo {
    flex-shrink: 0;
}
.header-logo img {
    display: block;
    width: 152px;
    height: auto;
}

/* Десктопное меню */
.nav-menu {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.nav-link {
    font-family: 'Raleway', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    text-decoration: none;
    transition: opacity 0.2s;
}
.nav-link:hover {
    opacity: 0.7;
}

/* Бургер — контейнер */
.burger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1100;
}

/* Картинка внутри бургера */
.burger img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

/* При открытом меню (активный класс) — скрываем картинку */
.burger.active img {
    opacity: 0;
}

/* Белый круг при активном состоянии */
.burger.active {
    background: #ffffff;
    border-radius: 50%;
}

/* Псевдоэлементы для крестика (появляются только при active) */
.burger.active::before,
.burger.active::after {
    content: '';
    position: absolute;
    width: 60%;          /* ширина линии креста относительно размера бургера */
    height: 2px;
    background: linear-gradient(251.09deg, #100201 -185.74%, #2E0404 -144.57%, #4D0908 -97.63%, #7D0413 -44.19%, #AC1B16 -1.44%, #EF7626 89.95%, #832C14 137.09%, #F09644 190.55%);
    border-radius: 3px;
    left: 50%;
    top: 50%;
    transform-origin: center;
    transition: all 0.3s ease;
}

/* Первая линия — поворот на 45 градусов */
.burger.active::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

/* Вторая линия — поворот на -45 градусов */
.burger.active::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Адаптив: показываем бургер на мобилках */
@media (max-width: 768px) {
    .burger {
        display: flex;
    }
}

/* ===== ОСНОВНОЙ КОНТЕНТ — ШИРЕ ===== */
.privacy-content {
    max-width: 1550px;
    margin: 0 auto;
    padding: 2rem 2rem 2rem;
}

.privacy-policy {
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.privacy-policy h2,
.privacy-policy h3 {
    color: #FFFFFF;
    font-weight: 700;
}

.privacy-policy h1 {
    font-size: 13px;
    display: inline-block;
    font-weight: 400;
}
.privacy-policy h2 {
    font-size: 13px;
    margin: 0.5rem 0 0.5rem 0;
}
.privacy-policy h3 {
    font-size: 1.3rem;
    margin: 1.5rem 0 0.8rem 0;
}

/* Основной текст */
.privacy-policy p,
.privacy-policy li {
    font-size: 13px;
    line-height: 100%;
    margin-bottom: 0.8rem;
    color: #FFFFFF;
}
.privacy-policy ul,
.privacy-policy ol {
    margin: 0.5rem 0 1rem 2rem;
}
.privacy-policy strong {
    font-weight: 700;
    color: #FFFFFF;
}

/* Ссылки внутри текста — без подчеркивания */
.inline-link {
    color: #FFFFFF;
    text-decoration: none;
    transition: opacity 0.2s;
}
.inline-link:hover {
    opacity: 0.7;
    text-decoration: none;
}

.signature {
    padding-top: 1rem;
    font-weight: 700;
}

/* ===== ФУТЕР */
.site-footer {
    background: #191717;
    color: #ffffff;
    padding: 1.5rem 6rem 4rem;
    font-family: 'Raleway', sans-serif;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16rem;
    margin-bottom: 3rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-contacts-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.footer-pdf-link,
.footer-privacy a,
.footer-address {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 700;
    transition: opacity 0.2s;
    line-height: 120%
}

.footer-email,
.footer-phone {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    transition: opacity 0.2s;
    font-family: auto;
}

.footer-pdf-link {
    text-decoration: underline;
}

.footer-pdf-link:hover,
.footer-email:hover,
.footer-phone:hover,
.footer-privacy a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 0.5rem;
}

.footer-copyright {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
    font-family: auto;
    line-height: 120%
}

.footer-privacy a {
    font-size: 1rem;
    font-weight: 400;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 0 1.5rem 1.5rem;
    }
    .footer-col {
        align-items: center;
    }
    .footer-bottom {
        padding-top: 0.1rem;
    }
    .footer-address-mobile {
        display: block;
        margin: 0.5rem 0;
    }
    
    .footer-grid .footer-col:last-child {
        display: none;
    }
    .footer-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .footer-col:nth-child(1) { order: 1; }
    .footer-col:nth-child(2) { order: 2; }
    .footer-col:nth-child(3) { display: none; } 
    
    
    .footer-address-mobile {
        display: block;
        margin: 0 0 0.25rem;
        color: #ffffff;
        font-size: 1.25rem;
        font-weight: 700;
    }
}

.footer-address-mobile {
    display: none;
}
.footer-address-desktop {
    display: block;
}

body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* ===== МОБИЛЬНАЯ ВЕРСИЯ (бургер активен) ===== */
@media (max-width: 768px) {
    .contacts {
        padding: 1rem 1.5rem;
    }
    .burger {
        display: flex;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: #191717;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 2rem;
        transform: translateX(-100%);
        transition: transform 0.4s ease;
        z-index: 1002;
    }
    .nav-menu.active {
        transform: translateX(0);
    }
    .nav-link {
        font-size: 1.7rem;
    }
    .burger.active {
        /* можно добавить эффект, если нужно */
    }
    /* Футер на мобилках */
    .footer-grid {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .footer-col:nth-child(3) {
        display: none;
    }
    .footer-address-mobile {
        display: block;
        margin-bottom: 0.2rem;
    }
    .footer-address-desktop {
        display: none;
    }
}

@media (min-width: 769px) {
    .contacts {
        position: relative;
        justify-content: center;
    }
    .header-logo {
        position: absolute;
        left: 9rem;
        top: 50%;
        transform: translateY(-50%);
    }
    .burger {
        display: none;
    }
    .nav-menu {
        margin: 0 auto;
    }
}

.mobile-contacts {
    display: none;
}

/* Мобильная версия (ширина ≤ 768px) */
@media (max-width: 768px) {
    .contacts {
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.5rem;
        gap: 0;
        position: sticky;
        top: 0;
        background: transparent;
        z-index: 1001;
    }

    .burger {
        display: flex;
        z-index: 1100;
    }

    /* Мобильное меню — новый градиент (оранжевый + сложный) */
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 95.5vh;
        background: linear-gradient(251.09deg, #100201 -185.74%, #2E0404 -144.57%, #4D0908 -97.63%, #7D0413 -44.19%, #AC1B16 -1.44%, #EF7626 89.95%, #832C14 137.09%, #F09644 190.55%);


    background-blend-mode: overlay;
        backdrop-filter: none;
        flex-direction: column;
        justify-content: flex-start;  /* ссылки идут сверху, не по центру */
        align-items: flex-end;
        gap: 2.5rem;                 /* маленькое расстояние между ссылками */
        padding: 15rem 2rem 2rem 2rem; /* отступ сверху — под бургер (6rem ≈ 80-90px) */
        border-radius: 0;
        transform: translateX(-100%);
        transition: transform 0.4s ease;
        z-index: 1000;
        box-shadow: none;
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    /* Глубокая, редкая и плавная волна (1.5 полных изгиба на всю высоту) */
    .nav-menu::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            width: 100px;        /* можно оставить 70 или 100 */
            height: 100%;
            background: #191717;
            /* Начинаем сразу с верхнего левого угла (0,0) и идём волной */
            clip-path: path("M0,0 C60,150 130,206 70,506 C-30,800 60,750 60,940 C10,1050 130,1200 70,1350 L0,1350 Z");
            z-index: 1;
        }

    /* Ссылки — компактные, без подчеркивания, прижаты к правому краю */
    .nav-menu .nav-link {
        flex: none;
        background: transparent !important;
        backdrop-filter: none !important;
        border: none !important;
        box-shadow: none !important;
        padding: 4px 16px !important;   /* очень компактно */
        margin: 0 !important;
        width: 100%;
        text-align: right;
        transform: none !important;
        animation: none !important;
        position: relative;
        z-index: 2;
        border-radius: 0;
        text-decoration: none;
    }

    .nav-menu .contact-title {
        font-size: 1.7rem !important;   /* уменьшенный, но читаемый */
        font-weight: 600;
        background: none !important;
        -webkit-background-clip: unset !important;
        background-clip: unset !important;
        color: white !important;
        text-shadow: none;
        letter-spacing: normal;
        padding: 0;
        text-align: left;
    }

    .nav-menu .nav-link:hover {
        background: rgba(255, 255, 255, 0.15) !important;
    }

    /* Отключаем анимацию появления */
    .nav-menu .nav-link {
        animation: none !important;
    }
    .mobile-contacts {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    margin-top: 11rem;           /* прижимает к нижнему краю */
    width: 100%;
    text-align: right;
    padding: 2rem 0 1.5rem;
        }

        .mobile-phone,
        .mobile-email {
            color: white;
            text-decoration: none;
            font-family: 'Raleway', sans-serif;
            font-size: 1rem;
            font-weight: 400;
            transition: opacity 0.2s;
        }

        .mobile-phone:hover,
        .mobile-email:hover {
            opacity: 0.8;
            text-decoration: underline;
        }
}

/* Реквизиты компании — блок справа, без фона и рамки */
.company-details {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: left;
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    line-height: 1.4;
    color: #FFFFFF;
    flex-wrap: wrap;
}

.company-address,
.company-numbers {
    max-width: 300px;
}

/* Адаптив для мобильных устройств */
@media (max-width: 768px) {
    .company-details {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.8rem;
    }
    .company-address,
    .company-numbers {
        max-width: 100%;
        color: #FFFFFF;
        text-decoration: none;
    }
    .company-address {
        text-align: left;
    }
}

/* ===== БАННЕР COOKIE CONSENT ===== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #191717;
    border-top: 2px solid rgba(229, 106, 34, 0.5);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
    padding: 1.2rem 2rem;
    z-index: 2000;
    font-family: 'Raleway', sans-serif;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #ddd;
    backdrop-filter: blur(8px);
    transform: translateY(100%);
    transition: transform 0.4s ease;
    width: 95%;
    margin: 0 auto;
    border-radius: 14px;
    max-width: 1600px;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-consent-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-consent-text {
    flex: 3;
    min-width: 200px;
}

.cookie-consent-text a {
    color: #E56A22;
    text-decoration: underline;
    transition: opacity 0.2s;
}
.cookie-consent-text a:hover {
    opacity: 0.8;
}

.cookie-consent-button {
    flex-shrink: 0;
    background: linear-gradient(90deg, #9C1315 0%, #DD5E22 60%, #9C1315 100%);
    border: none;
    border-radius: 40px;
    padding: 0.7rem 1.8rem;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}
.cookie-consent-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

@media (max-width: 768px) {
    .cookie-consent {
        padding: 1rem 1rem 2rem;
    }
    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
    }
    .cookie-consent-button {
        white-space: normal;
        text-align: center;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    .cookie-consent-text {
        font-size: 0.75rem;
    }
}