* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        /* background-image: url(https://i.ibb.co/tMQyMY8C/fon.png);
                background-size: cover;
                background-position: center; */
        /* Убираем центрирование body, оставляем только фон и базовые сбросы */
            body {
                background: #191717;
                font-family: system-ui, -apple-system, Raleway, 'Inter', 'Segoe UI', sans-serif;
                min-height: 100vh;
                margin: 0;
                padding: 0;
                /* Убираем display: flex, align-items, justify-content */
            }

            html {
                    scroll-padding-top: 80px; /* высота хедера + отступ */
                }

            .site-container {
                    max-width: 1680px;
                    margin: 0 auto;        /* центрирование по горизонтали */
                    width: 100%;
                    position: relative;    /* чтобы sticky-элементы работали относительно контейнера */
                }

            /* Хедер фиксируется вверху */
            .contacts {
                position: sticky;
                top: 0;
                z-index: 1000;               /* чтобы быть поверх всего */
                display: flex;
                flex-wrap: wrap;
                justify-content: center;
                gap: 7rem;
                width: 100%;            /* центрирование по горизонтали */
                padding: 1.5rem 2rem 0;          /* небольшие отступы по бокам и сверху/снизу */
                background: transparent;     /* прозрачный фон, чтобы просвечивал фон страницы */
                /* Опционально: небольшой blur подложки, чтобы текст читался */
                /* backdrop-filter: blur(5px); */
            }

/* Родительский контейнер меню — кнопки всегда по центру */
.nav-menu {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;   /* центрируем все кнопки */
    align-items: center;
    gap: 8rem;
    background: transparent;
    width: 100%;
    transition: gap 1.3s ease; /* плавное изменение промежутков (опционально) */
}

/* Кнопка-логотип теперь в потоке, изначально сжата до нуля */
#backToTopLink {
    max-width: 0;
    padding: 0 !important;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.01) !important;
    backdrop-filter: blur(3px) saturate(120%);
    border: 2px solid #E56A2226;
    border-radius: 18px;
    transition: max-width 1s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.8s ease 0.7s,
                padding 0.8s ease;
    /* остальные общие стили как у .glass-card */
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    display: flex !important;
    visibility: visible;       /* не скрываем, просто ширина 0 */
    pointer-events: none;      /* пока невидим, не кликабелен */
    margin-left: -100px;
}

#backToTopLink.show {
    max-width: 140px;          /* полная ширина кнопки */
    padding: 20.7px 2px !important;
    opacity: 1;
    pointer-events: auto;
    width: 100%;
}

/* Внутренний контейнер логотипа */
.logo-nav {
    padding: 0 !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    color: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
}

.logo-nav img {
    width: 90px;
    height: auto;
    display: block;
    transition: transform 0.2s ease;
}

#backToTopLink:hover .logo-nav img {
    transform: scale(1.05);
}

/* На мобилках кнопку с логотипом убираем полностью */
@media (max-width: 768px) {
    #backToTopLink {
        display: none !important;
    }
}


        /* Карточка с эффектом Liquid Glass (фиксированный фон, без изменения blur при наведении) */
        .glass-card {
            flex: 1 1 280px;
            max-width: 287px;
            background: rgba(255, 255, 255, 0.01);
            backdrop-filter: blur(3px) saturate(120%);
            -webkit-backdrop-filter: blur(3px) saturate(120%);
            border: 2px solid #E56A2226;
            border-radius: 18px;
            padding: 18px 8px;
            text-align: center;
            color: white;
            transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.2s;
            box-shadow: 0px 20px 60px 0px #0000004D, inset 0 1px 0 rgba(255,255,255,0.2);
            /* Убираем стандартный подсвет касания на iOS */
            -webkit-tap-highlight-color: transparent;
        }

        /* При наведении/касании меняем только трансформацию и тени — фон остаётся стабильным */
        .glass-card:hover {
          
            transform: translateY(-6px) scale(1.02);
            border-color: #E56A2240;
            box-shadow: 0px 28px 80px 0px #00000066, inset 0 1px 0 rgba(255,255,255,0.3);
            background: rgba(255, 255, 255, 0.07);
        }

        /* Активное состояние (клик) — для дополнительной отзывчивости */
        .glass-card:active {
            transform: translateY(-2px) scale(0.99);
            transition-duration: 0.1s;
        }

        .contact-title {
            font-family: Raleway, sans-serif;
            font-size: 18px;
            font-weight: 700;
            line-height: 110%;
            letter-spacing: -0.01em;
            background: linear-gradient(135deg, #fff, #f0f0ff);
            background-clip: text;
            -webkit-background-clip: text;
            color: transparent;
            text-shadow: 0 1px 1px rgba(0,0,0,0.1);
        }

        @media (max-width: 700px) {
            .contacts {
                gap: 1.5rem;
            }
            .glass-card {
                padding: 1.5rem 1rem;
            }
            .contact-title {
                font-size: 1rem;
            }
        }

        @keyframes gentleAppear {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .glass-card {
            animation: gentleAppear 0.5s ease backwards;
        }

        .glass-card:nth-child(1) { animation-delay: 0.05s; }
        .glass-card:nth-child(2) { animation-delay: 0.15s; }
        .glass-card:nth-child(3) { animation-delay: 0.25s; }

        /* ========== БАННЕР (2 колонки) ========== */
        .hero-banner {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 4rem;
            margin: 2rem auto 4rem auto;
            background: transparent;
            padding-left: 1rem;
            padding-right: 1rem;
            align-items: center;
        }

        /* Левая часть: логотип + текст */
       .hero-left {
            flex: 0.9;
            min-width: auto;        /* убираем 677px */
            padding: 0; 
            transition: transform 0.25s ease, border-color 0.2s;
            animation: slideFromLeft 0.7s cubic-bezier(0.2, 0.9, 0.4, 1.1) forwards;
            width: 100%;
        }

        .hero-left:hover {
            border-color: rgba(229, 106, 34, 0.6);
            transform: translateY(-4px);
        }

        /* Логотип в виде стилизованного символа */
        .logo-symbol {
            display: flex;
            justify-content: center;
            margin-bottom: 0.9rem;
            width: 100%;
        }

        .logo-ring {
            width: 100%;
            width: 100%;
             height: auto;
        }

        .logo-ring img {
            width: 100%;
            height: auto;
        }

        .hero-tagline {
            width: 100%;
            font-family: 'Raleway', sans-serif;
            font-size: 2.32rem;
            line-height: 1.5;
            text-align: center;
            font-weight: 500;
            padding: 0.5rem 0.1rem;
            background: linear-gradient(90deg, #FFCAB5, #FF6A36);
            background-clip: text;
            -webkit-background-clip: text;
            color: transparent;
        }

        /* Кнопка с многослойным градиентом и тенью */
                .hero-button {
                    width: 100%;
                    display: block;
                    margin-top: 2.2rem;
                    padding: 1.6rem 1rem;
                    font-family: 'Raleway', sans-serif;
                    font-weight: 550;
                    font-size: 3rem;
                    letter-spacing: 0.03em;
                    color: #fff;
                    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
                    background: linear-gradient(90deg, #9C1315 0%, #DD5E22 60%, #9C1315 100%);
                    border: none;
                    border-radius: 14px;
                    cursor: pointer;
                    box-shadow: 0px 5px 10px 0px #FF6B354D;
                    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s;
                }

                .hero-button:hover {
                    transform: translateY(-3px);
                    box-shadow: 0px 10px 20px 0px rgba(255, 107, 53, 0.5);
                    background: linear-gradient(90deg, #9C1315 0%, #DD5E22 60%, #9C1315 100%);
                }

                .hero-button:active {
                    transform: translateY(1px);
                    transition-duration: 0.05s;
                }
        /* Правая часть: видео */
        .hero-right {
                padding: 0;                 /* убираем padding: 0.8rem */
                border-radius: 50px;       /* скругляем углы самого блока */
                overflow: hidden;   
            }

        .video-container {
                width: 100%;
                max-width: 680px;
                border-radius: 0;
                overflow: hidden;
            }

        .video-container video {
                border-radius: 0;         
                width: 99%;
                display: block;
                background: #191717;
            }


        @media (min-width: 769px) and (max-width: 1180px) {
            .hero-banner {
                gap: 2rem;
            }
            .hero-left {
                flex: 1;
            }
            .hero-right {
                flex: 0.8;
            }
            .hero-tagline {
                font-size: 1.4rem;
            }
            .hero-button {
                font-size: 1.6rem;
                padding: 1rem;
                margin-top: 1rem;
            }
        }

        @media (min-width: 1181px) and (max-width: 1505px) {
                .hero-banner {
                    gap: 2rem;
                }
                .hero-tagline {
                    font-size: 1.8rem;
                    padding: 0;
                }
                .hero-button {
                    font-size: 1.8rem;
                    margin-top: 1.5rem;
                }
            }

        /* Адаптивность: на планшетах и телефонах колонки в столбец */
        @media (max-width: 900px) {
            .hero-banner {
                flex-direction: column-reverse;
                margin: 1rem 1rem 2rem 1rem;
            }
            .hero-left, .hero-right {
                width: 100%;
            }
            .contacts {
                gap: 1.8rem;
                padding: 2rem 1rem 1.5rem;
            }
            .glass-card {
                padding: 1.5rem 1rem;
            }
            .contact-title {
                font-size: 1.2rem;
            }
            .content {
                padding-top: 0;
            }
            .brand-name {
                font-size: 1.6rem;
            }
            .hero-tagline {
                font-size: 1.5rem;
                padding: 0.5rem 0.1rem;
            }
            .hero-left {
                min-width: auto;          /* отменяем фиксированную минимальную ширину */
                flex: 1;                 /* убираем flex: 1.3, чтобы блок не переполнялся */
                padding: 1rem;           /* добавляем отступы по бокам для воздуха */
            }

            .hero-right {
                padding: 0;              /* уже есть, но оставим */
            }

            .video-container {
                max-width: 100%;         /* отменяем ограничение в 710px */
            }
            .video-container video {        
                width: 100%;
            }

            .hero-banner {
                gap: 2rem;               /* уменьшаем расстояние между колонками */
                margin: 0 1rem 2rem 1rem; /* уже есть, но убедитесь, что margin по бокам не 0 */
            }
            .hero-button {
                        margin-top: 1rem;
                        padding: 1.3rem 3rem;
                        font-size: 1.3rem;
                        width: 100%;
                        text-align: center;
                    }
        }

        @media (max-width: 550px) {
            .hero-banner {
                margin: 0.5rem 1rem 2rem 1rem;
                padding: 0;
            }
            .glass-card {
                padding: 1rem 0.8rem;
            }
            .contact-title {
                font-size: 1rem;
            }
            .contacts {
                gap: 1rem;
            }
            .hero-left {
                padding: 0.5rem 0;         /* компактнее */
            }
            .hero-tagline {
                font-size: 1.3rem;       /* уже есть, но можно оставить */
            }
            .hero-button {
                font-size: 1.2rem;
                padding: 1rem;
            }
            .video-container {
                max-width: 100%;
            }
        }

        /* Анимации появления */
        @keyframes gentleAppear {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes slideFromLeft {
            from {
                opacity: 0;
                transform: translateX(-35px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        @keyframes slideFromRight {
            from {
                opacity: 0;
                transform: translateX(35px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        /* Небольшая кастомизация для видео — убираем стандартные элементы управления при желании (оставляем для удобства) */
        video::-webkit-media-controls {
            filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
        }


/* ===== БУРГЕР МЕНЮ ===== */
/* Бургер-кнопка: градиентный фон, полоски белые */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 12px;
    background: linear-gradient(108.91deg, #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: 50%;
    cursor: pointer;
    z-index: 1100;
    transition: all 0.3s ease;
}

.burger span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Активное состояние (крестик) — белый круглый фон, чёрный крест */
.burger.active {
    background: #ffffff;
    border-radius: 50%;
}

.burger.active span {
    background: #000000;
}

.burger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.burger.active span:nth-child(2) {
    opacity: 0;
}
.burger.active span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

.nav-menu .glass-card,
.nav-menu .glass-card:visited,
.nav-menu .glass-card:hover,
.nav-menu .glass-card:active {
    text-decoration: none;
}


.nav-menu .glass-card {
    max-width: 140px;
    width: auto;
    margin: 0;
}

.mobile-contacts {
    display: none;
}

body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Мобильная версия (ширина ≤ 768px) */
@media (max-width: 768px) {
    .contacts {
        justify-content: flex-end;
        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: 100vh;
        height: 100dvh;
        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: 1.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 .glass-card {
        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;
        max-width: 100%;
    }

    .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: right;
    }

    .nav-menu .glass-card:hover {
        background: rgba(255, 255, 255, 0.15) !important;
    }

    /* Отключаем анимацию появления */
    .nav-menu .glass-card {
        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;
        }
}

/* ===== Блок "Наши услуги" ===== */
.services {
    /* margin: 5rem auto; */
    padding-left: 2rem;
    padding-right: 2rem;
}

.services-title {
    font-family: 'Raleway', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(135deg, #fff, #f0f0ff);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 3rem;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
}

.service-card {
    flex: 1 1 300px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(229, 106, 34, 0.3);
    border-radius: 24px;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: left;
}

.service-name {
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    line-height: 24px;
    font-weight: 400;
    color: #ddd;
    padding: 0 2rem;
    margin: 1.5rem 0 0.5rem;
    overflow: hidden;         
    word-break: break-word;
}

.service-icon img {
    border-radius: 24px 24px 0 0;
    width: 100%;
    box-shadow: 0px 0px 40px 0px #FFFFFF08 inset;

box-shadow: 0px 20px 60px 0px #0000004D;

}

.service-trigger {
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    background: linear-gradient(90deg, #FFCAB5, #FF6A36);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    cursor: pointer;
    display: inline-block;
    margin: 0.5rem 0;
    padding: 0 2rem;
    transition: opacity 0.2s;
    text-decoration: none;
}

.service-trigger:hover {
    opacity: 0.8;
    text-decoration: none;
}

.service-includes {
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #ffffff;
    text-align: left;
    margin: 0;
    padding-left: 1.5rem;
}

.service-dropdown {  
    overflow: hidden;
    transition: max-height 1s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 0;                  
    text-align: left;
    margin: 0.5rem 0;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.service-features {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
    padding-left: 1.5rem; 
}

.service-features li {
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    color: #ddd;
    margin-bottom: 1rem;
    padding-left: 1.9rem;
    position: relative;
}

/* Градиентные галочки */
.service-features li::before {
    content: "";
    display: inline-block;
    position: absolute;
    left: -1px;
    top: -1px;
    width: 20px;
    height: 20px;
    background-image: url('../img/check.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.service-button {
    background: linear-gradient(90deg, #9C1315 0%, #DD5E22 60%, #9C1315 100%);
    border: none;
    border-radius: 14px;
    padding: 1rem 4.7rem;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 1rem;
    width: 100%;
    box-shadow: 0px 0px 40px 0px #FFFFFF08 inset;

    box-shadow: 0px 7px 7px 0px #0000004D;

    
}

.service-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 7px rgba(255, 107, 53, 0.5);
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Все текстовые блоки выравниваем по левому краю */
.service-name, 
.service-trigger, 
.service-includes, 
.service-features {
    width: 100%;
    text-align: left;
}

/* Кнопка — центрируем */
.service-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;   /* элементы растягиваются по ширине */
}

/* Текстовые блоки — левое выравнивание */
.service-name,
.service-trigger,
.service-includes,
.service-features {
    text-align: left;
    width: 100%;
}

/* Кнопка — центрируем, убираем width: 100% */
.service-button {
    display: block;
    width: fit-content;
    margin: 1.8rem auto 0 auto;
    text-align: center;
    margin-bottom: 1rem;
}

/* На планшетах (ширина от 769px до 1024px) — тоже на всю ширину, если нужно */
@media (min-width: 769px) and (max-width: 1121px) {
    .services-grid {
        flex-direction: column;
        gap: 2rem;
        max-width: 90%;
        margin: 0 auto;
    }
    
    .service-card {
        width: 100%;
        max-width: 100%;
        flex: 1 1 auto;
    }
    
    .service-button {
        width: fit-content;
        padding: 0.8rem 2rem;
    }
}

/* Адаптив для мобилок */
@media (max-width: 768px) {
    .services {
        padding-left: 1rem;
        padding-right: 1rem;
        overflow-x: hidden;
    }
    .services-grid {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 1.5rem;
    }
    .service-card {
        width: 100%;
        min-width: 0;           /* отменяем минимальную ширину от flex */
        flex: 1 1 auto;        /* переопределяем базовый размер */
        margin: 0;
        box-sizing: border-box;
    }
    .service-icon img {
        width: 100%;
        height: auto;
        display: block;
    }
    .service-button {
        width: calc(100% - 2rem);
        max-width: 100%;
        padding: 0.8rem 1rem;
        white-space: normal;
        font-size: 0.9rem;
        margin: 1.5rem auto 1rem;
        box-sizing: border-box;
    }
    .service-name,
    .service-trigger,
    .service-includes,
    .service-features {
        padding-left: 1rem;
        padding-right: 1rem;
        word-wrap: break-word;
    }
    .service-features li {
        word-break: break-word;
    }
    .services-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .services {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .service-button {
        width: calc(100% - 1.5rem);
        font-size: 0.85rem;
    }
}

.service-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.service-trigger::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('../img/Icon2.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-left: 6px;
}

.service-card.active .service-trigger::after {
    background-image: url('../img/Icon.png');
}

/* ===== Блок "Нам доверяют" ===== */
.trusted {
    margin: 5.5rem 2rem 3rem;
    overflow: hidden;
}

.trusted-title {
    font-family: 'Raleway', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(135deg, #fff, #f0f0ff);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

.trusted-carousel {
    overflow: hidden;
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(4px);
    border: 2px solid #E56A2226;
    border-radius: 24px;
    padding: 2rem 0;
    margin: 3rem 0;
    box-shadow: 0px 0px 40px 0px #FFFFFF08 inset, 0px 20px 60px 0px #0000004D;
    position: relative;
}

.trusted-track {
    display: flex;
    gap: 5rem;
    width: fit-content;
    animation: scroll 40s linear infinite;
    will-change: transform; /* Улучшает производительность на iOS */
}

/* Пауза при наведении только на десктопе (на мобилках нет ховера) */
@media (min-width: 769px) {
    .trusted-carousel:hover .trusted-track {
        animation-play-state: paused;
    }
}

.trusted-item {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.trusted-item img {
    max-width: 190px;
    height: auto;
    display: block;
    pointer-events: none; /* убирает блокировку касаний на iOS */
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Адаптив для мобильных устройств */
@media (max-width: 768px) {
    .trusted {
        margin: 3rem 1rem;
        overflow: hidden;
    }
    
    .trusted-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .trusted-carousel {
        padding: 1.5rem 0;
        margin: 2rem 0;
    }
    
    .trusted-track {
        gap: 3rem;
        animation: scroll 30s linear infinite; /* ускоренная анимация для мобилок */
    }
    
    .trusted-item img {
        max-width: 120px; /* уменьшаем логотипы на мобилках */
    }
}

@media (max-width: 550px) {
    .trusted {
        margin: 2rem 0.75rem;
    }
    
    .trusted-track {
        gap: 2rem;
        animation: scroll 25s linear infinite;
    }
    
    .trusted-item img {
        max-width: 100px;
    }
    
    .trusted-title {
        font-size: 1.8rem;
    }
}

/* ===== Блок "Наши проекты" ===== */
.projects {
    margin: 1rem 2rem 1rem;
}

.projects-title {
    font-family: 'Raleway', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(135deg, #fff, #f0f0ff);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 3rem;
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Карточка проекта (горизонтальная) */
.project-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(4px);
    border: 1px solid #E56A2226;
    border-radius: 24px;
    padding: 1.5rem;
    transition: transform 1s, box-shadow 1s;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
}

/* Левая часть */
.project-info {
    flex: 1;
}

.project-pretitle {
    font-family: 'Raleway', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    background: linear-gradient(90deg, #FFCAB5, #FF6A36);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 0.75rem;
    display: inline-block;
}

.project-name {
    font-family: 'Raleway', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    padding-bottom: 1.5rem;
}

.project-tag {
    background: #191717;
    padding: 0.7rem 1rem;
    border-radius: 40px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: #ddd;
    opacity: 0.7;
}

/* Кнопка-переключатель (без ховера) */
.project-toggle {
    width: 44px;
    height: 44px;
    background: linear-gradient(108.91deg, #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: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

/* Общий размер иконки */
.toggle-icon {
    width: 24px;
    height: 24px;
    display: block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Иконка плюса */
.toggle-icon.plus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 5V19M5 12H19' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Иконка крестика */
.toggle-icon.cross {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M18 6L6 18M6 6L18 18' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Внешний контейнер анимации — только max-height, без отступов */
.project-expanded-content {
    overflow: hidden;
    transition: max-height 1s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 0;
    width: 100%;
}

/* Внутренний блок — здесь все отступы и рамка */
.project-expanded-inner {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(229, 106, 34, 0.3);
}

/* Баннер, описание, результаты, кнопка */
.project-banner {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.project-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.project-description {
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 400;
    color: #ddd;
    margin-bottom: 1.5rem;
}

.project-results-title {
    font-family: 'Raleway', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

/* Стили для результатов проектов */
.project-results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* На десктопе (ширина > 768px) — два столбца рядом */
@media (min-width: 769px) {
    .project-results-grid {
        flex-direction: row;
        justify-content: space-between;
    }
    .project-result-item {
        flex: 1;   /* оба блока занимают равную ширину */
    }
}

/* На мобилках (ширина ≤ 768px) — вертикальное расположение */
@media (max-width: 768px) {
    .project-results-grid {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Общий стиль карточки результата */
.project-result-item {
    background: #191717;
    border-radius: 16px;
    padding: 1rem 1rem 1rem 2.4rem;
    font-family: 'Raleway', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    position: relative;
    box-sizing: border-box;
    opacity: 0.7;
}

/* Радио-точка 8px */
.project-result-item::before {
    content: "";
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(90deg, #FFCAB5, #FF6A36);
}

/* Адаптация для узких мобильных экранов */
@media (max-width: 550px) {
    .project-result-item {
        font-size: 0.85rem;
        padding: 0.7rem 1rem 0.7rem 1.8rem;
    }
    .project-result-item::before {
        left: 0.6rem;
        width: 7px;
        height: 7px;
    }
}

.project-button {
    background: 
                linear-gradient(90deg, #9C1315 0%, #DD5E22 60%, #9C1315 100%);
    background-blend-mode: normal;
    border: none;
    border-radius: 14px;
    padding: 1rem 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;
    width: 100%;
    display: inline-block;
}

.project-button {
    margin-bottom: 15px; /* чтобы тень не упиралась в нижний край */
}

.project-button:hover {
    transform: translateY(-3px);
    box-shadow: 0px 10px 10px rgba(255, 107, 53, 0.4);
}

/* Мобильная версия */
@media (max-width: 768px) {
    .projects {
        margin: 3rem 1rem;
    }
    .projects-title {
        font-size: 2rem;
    }
    .project-card {
        display: block;
        position: relative;
        padding: 1.2rem;
    }
    .project-toggle {
        position: absolute;
        top: 3rem;
        right: 1rem;
        width: 36px;
        height: 36px;
    }
    .toggle-icon {
        width: 20px;
        height: 20px;
    }
    .project-info {
        margin-right: 3rem;
    }
    .project-name {
        font-size: 1.3rem;
    }
    .project-tag {
        font-size: 0.7rem;
        padding: 0.3rem 0.8rem;
    } 
    .project-button {
        width: 100%;
        text-align: center;
    }
    .project-results-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 550px) {
    .project-name {
        font-size: 1.1rem;
    }
    .project-description {
        font-size: 0.85rem;
    }
    .project-result-item {
        font-size: 0.85rem;
        padding: 0.7rem 1rem 0.7rem 1.8rem;
    }
    .project-result-item::before {
        left: 0.6rem;
        width: 7px;
        height: 7px;
    }
}

.futter-button {
    background: 
                linear-gradient(90deg, #9C1315 0%, #DD5E22 60%, #9C1315 100%);
    background-blend-mode: normal;
    border: none;
    border-radius: 14px;
    padding: 1.2rem 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;
    width: 100%;
    display: inline-block;
    margin-top: 2rem;
}

.futter-button:hover {
    transform: translateY(-3px);
    box-shadow: 0px 10px 20px rgba(255, 107, 53, 0.4);
}

.project-button:hover {
    transform: translateY(-2px);
}


/* ===== Блок формы  */
.contact-form-section {
    margin: 3rem 2rem;
}

.form-container {
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    border: 1px solid #E56A2226;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0px 20px 60px 0px #0000004D, inset 0px 0px 40px 0px #FFFFFF08;
    transition: transform 0.3s ease;
}

.form-title {
    font-family: 'Raleway', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(135deg, #fff, #f0f0ff);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 1.2rem;
}

.discussion-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-group.full-width {
    width: 100%;
}

.form-subtitle {
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    text-align: center;
    color: #99A1AF;
    margin-bottom: 1.2rem;
    letter-spacing: 0.02em;
}

.discussion-form input,
.discussion-form textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #E56A2226;
    border-radius: 16px;
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    color: #fff;
    transition: all 0.2s ease;
    outline: none;
}

.discussion-form input:focus,
.discussion-form textarea:focus {
    border-color: #FF6A36;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 8px rgba(255, 106, 54, 0.3);
}

.discussion-form input::placeholder,
.discussion-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

/* Кастомный чекбокс */
.checkbox-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.checkbox-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.checkbox-wrapper input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkmark-label {
    cursor: pointer;
    display: inline-block;
    line-height: 0;
}

.checkmark {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #ddd;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s;
}

.checkbox-wrapper input:checked ~ .checkmark-label .checkmark {
    background: linear-gradient(135deg, #FF6A36, #DD5E22);
    border-color: #FF6A36;
}

.checkbox-wrapper input:checked ~ .checkmark-label .checkmark::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text {
    font-family: 'Raleway', sans-serif;
    font-size: 0.9rem;
    color: #ddd;
    line-height: 1.4;
    cursor: default;   /* текст не кликабелен */
}

.submit-button {
    background: linear-gradient(90deg, #9C1315 0%, #DD5E22 60%, #9C1315 100%);
    border: none;
    border-radius: 14px;
    padding: 1rem 2rem;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: #ddd;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    box-shadow: 0px 7px 7px 0px #0000004D;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0px 10px 20px rgba(255, 107, 53, 0.4);
}

.submit-button:active {
    transform: translateY(1px);
}

.telegram-icon {
    transition: transform 0.2s;
    width: 20px;
    position: relative;
    top: 4px;
    left: 10px;
}

/* Адаптивность формы */
@media (max-width: 768px) {
    .contact-form-section {
        margin: 3rem 1rem;
    }
    .form-container {
        padding: 1.5rem;
    }
    .form-title {
        font-size: 1.8rem;
    }
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    .discussion-form input,
    .discussion-form textarea {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    .submit-button {
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }
     .checkbox-text {
        font-size: 0.8rem;
    }
    .form-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 550px) {
    .form-container {
        padding: 1rem;
    }
    .form-title {
        font-size: 1.5rem;
    }
    .checkbox-text {
        font-size: 0.75rem;
    }
}

/* ===== МОДАЛЬНОЕ ОКНО ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-window {
    background: #1e1e1e;
    border: 1px solid #E56A22;
    border-radius: 24px;
    padding: 2rem 2rem 1.5rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    color: white;
    font-family: 'Raleway', sans-serif;
}

/* Увеличенный межстрочный интервал в модальных окнах */
.modal-window p {
    line-height: 1.6;
    margin-bottom: 0;
}

/* Опционально: для окна ошибки можно добавить акцент (красная рамка) */
.error-modal {
    border-color: #ff4444;
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.3);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    transition: 0.2s;
}
.modal-close:hover {
    opacity: 0.7;
}

/* Подсветка ошибок */
.form-group.error input,
.form-group.error textarea,
.full-width.error textarea {
    border-color: #ff4444 !important;
    background: rgba(255, 68, 68, 0.05) !important;
}

.checkbox-wrapper.error {
    border: 1px solid #ff4444;
    border-radius: 8px;
    padding: 8px 12px;
    background: rgba(255, 68, 68, 0.05);
}

.error-message {
    color: #ff8888;
    font-size: 11px;
    margin-top: 4px;
    display: block;
    font-family: 'Raleway', sans-serif;
}

/* ===== ФУТЕР ===== */
.site-footer {
    background: #191717;
    color: #ffffff;
    padding: 1.5rem 2rem 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;
}

.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;
}

.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;
}

/* ===== БАННЕР 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;
    pointer-events: none;        /* не мешает кликам, пока скрыт */
}

.cookie-consent.show {
    transform: translateY(0);
    pointer-events: auto;        /* когда показан – можно кликать */
}

.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;
    }
}