* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', 'Roboto', sans-serif;
}

body {
    background-color: #e5e5e5;
    color: #333;
    overflow-x: hidden;
}

/* Красная шапка (Прилипает при скролле) */
.top-header {
    background: linear-gradient(180deg, rgba(212, 34, 34, 0.98) 0%, rgba(168, 17, 17, 0.98) 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease-in-out;
}

.top-header.scrolled {
    padding: 0;
    background: rgba(168, 17, 17, 0.95);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    transition: padding 0.3s;
}

.top-header.scrolled .header-content {
    padding: 4px 20px;
}

.logo-img {
    height: 55px;
    object-fit: contain;
    transition: height 0.3s;
}

.top-header.scrolled .logo-img {
    height: 40px;
}

.header-desc {
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.3;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: 15px;
    font-weight: 600;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Главный Экран (Hero) */
.hero-section {
    background: url('https://images.unsplash.com/photo-1558981403-c5f9899a28bc?q=80&w=1920&auto=format&fit=crop') center top/cover no-repeat fixed;
    position: relative;
    padding: 70px 0 90px;
    min-height: 850px;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(30, 15, 5, 0.3) 0%, rgba(10, 5, 5, 0.8) 100%);
    backdrop-filter: blur(4px);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 50px;
    flex-wrap: wrap;
    width: 100%;
}

/* Левая карточка: Сертификат (Светлый Glassmorphism) */
.cert-card.glassmorphism {
    background: rgba(245, 245, 250, 0.88);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid rgba(142, 175, 255, 0.8);
    border-radius: 12px;
    padding: 50px 45px;
    flex: 1;
    min-width: 320px;
    max-width: 680px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Красивый блик на сертификате */
.cert-card.glassmorphism::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(30deg);
    pointer-events: none;
}

.cert-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.3rem;
    font-weight: 900;
    color: #111;
    line-height: 1.25;
    margin-bottom: 30px;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
}

.highlight-blue {
    color: #0044ff;
    font-style: italic;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.cert-service-desc {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-style: italic;
    font-size: 1.2rem;
    color: #111;
    line-height: 1.5;
    margin-bottom: 25px;
}

.underline-text {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}

.cert-features {
    text-align: left;
    display: inline-block;
    color: #111;
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 35px;
    padding-left: 20px;
    font-weight: 600;
}

/* Таймер */
.timer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.timer-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timer-digit {
    font-size: 5.8rem;
    font-weight: 400;
    color: #000;
    line-height: 1;
    font-family: 'Montserrat', sans-serif;
}

.timer-label {
    font-size: 0.9rem;
    color: #555;
    margin-top: 5px;
    font-weight: 600;
    text-transform: lowercase;
}

.timer-sep {
    font-size: 4.5rem;
    color: #000;
    line-height: 1;
    transform: translateY(-15px);
}

.countdown-desc {
    color: #222;
    font-size: 1.05rem;
    margin-bottom: 35px;
    font-weight: 600;
}

.cert-footer {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    font-style: italic;
    color: #000;
    line-height: 1.6;
}

.phone-link {
    color: #000;
    text-decoration: none;
    display: inline-block;
    margin-top: 5px;
    transition: color 0.2s;
}

.phone-link:hover {
    color: #0044ff;
}

.social-icon {
    margin-top: 25px;
}

.vk-btn {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.vk-btn:hover {
    transform: scale(1.15) rotate(5deg);
}

/* Правая карточка: Форма записи (Темный Glassmorphism) */
.booking-card.glassmorphism-dark {
    background: rgba(25, 20, 20, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 45px;
    width: 400px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    color: #fff;
    display: flex;
    flex-direction: column;
}

.form-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 35px;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #e0e0e0;
}

.form-input {
    width: 100%;
    padding: 15px;
    border: 2px solid transparent;
    border-radius: 6px;
    background: #f4f4f4;
    color: #111;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    background: #fff;
    border-color: #68d633;
    box-shadow: 0 0 10px rgba(104, 214, 51, 0.4);
}

.submit-btn {
    margin-top: 25px;
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(180deg, #81e257 0%, #46bd14 100%);
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.25rem;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.4), 0 8px 20px rgba(20, 100, 0, 0.4);
    text-shadow: 1px 1px 2px rgba(0, 60, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.submit-btn:hover {
    background: linear-gradient(180deg, #9af273 0%, #51db18 100%);
    transform: translateY(-3px);
    box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.5), 0 12px 25px rgba(20, 100, 0, 0.6);
}

/* ================= FAQ Секция (Интерактивная) ================= */
.faq-section {
    background: linear-gradient(180deg, #f5f5f5 0%, #e0e0e0 100%);
    padding: 90px 0;
    text-align: center;
    position: relative;
    z-index: 5;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.2rem;
    font-weight: 900;
    color: #111;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #444;
    margin-bottom: 50px;
    line-height: 1.6;
    font-weight: 600;
}

.mouse-icon {
    display: inline-block;
    margin-top: 10px;
    font-size: 1.8rem;
    color: #000;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-card {
    background: #fff;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.faq-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.faq-header {
    display: flex;
    align-items: center;
    padding: 25px 30px;
    cursor: pointer;
    background: #fff;
    transition: background 0.3s;
}

.faq-header:hover {
    background: #fafafa;
}

.faq-q {
    font-size: 2.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    color: #d42222;
    margin-right: 25px;
    line-height: 1;
}

.faq-text {
    flex: 1;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    color: #111;
}

.faq-plus {
    font-size: 2.5rem;
    font-weight: 300;
    color: #111;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.faq-card.open .faq-plus {
    transform: rotate(45deg);
    color: #d42222;
}

/* Тело ответа (анимация раскрытия) */
.faq-body {
    max-height: 0;
    opacity: 0;
    padding: 0 30px;
    text-align: left;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
    font-weight: 600;
    transition: all 0.4s ease;
}

.faq-card.open .faq-body {
    max-height: 400px;
    opacity: 1;
    padding: 0 30px 25px 30px;
}


/* ================= Локации ================= */
.locations-section {
    background: #F26739;
    padding-top: 70px;
    text-align: center;
    position: relative;
}

.locations-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 40px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
}

.location-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: -1px;
    /* Накладываем на карту */
}

.tab {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: none;
    color: #fff;
    padding: 18px 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    cursor: pointer;
    border-radius: 12px 12px 0 0;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.tab:hover {
    background: rgba(255, 255, 255, 0.2);
}

.tab.active {
    background: #fff;
    color: #F26739;
    border-color: #fff;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

/* Логика карт */
.map-bg {
    width: 100%;
    height: 450px;
    background: #eee;
    position: relative;
    z-index: 1;
}

.map-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out;
}

.map-iframe.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Адаптивность */
@media(max-width: 992px) {
    .hero-container {
        flex-direction: column;
        align-items: center;
    }

    .cert-card.glassmorphism {
        max-width: 100%;
    }

    .booking-card.glassmorphism-dark {
        width: 100%;
        max-width: 500px;
    }
}

@media(max-width: 768px) {

    .section-title,
    .locations-title {
        font-size: 2.2rem;
    }

    .timer-digit {
        font-size: 3.5rem;
    }

    .timer-sep {
        font-size: 3rem;
        transform: translateY(-8px);
    }

    .cert-title {
        font-size: 1.7rem;
    }

    .tab {
        padding: 15px 25px;
        font-size: 1rem;
    }

    .faq-q {
        font-size: 1.8rem;
    }

    .faq-text {
        font-size: 1.1rem;
    }
}