/* ==================== 0. ГЛОБАЛЬНІ НАЛАШТУВАННЯ ==================== */

/* Імпорт шрифтів */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Space+Grotesk:wght@500;700&display=swap');

/* Змінні */
:root {
    --bg-dark: #1A1D2D;
    --bg-secondary: #2A2F45;
    --text-primary: #F5F5F5;
    --text-secondary: #B0B8D1;
    --accent-primary: #7F56D9;
    --accent-hover: #6941C6;
    
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    
    --header-height: 70px;
}

/* Скидання стилів */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%; /* 1rem = 10px */
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-hover);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    border: none;
    cursor: pointer;
    background: none;
    color: inherit;
}

/* Утиліти */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* ==================== 1. ХЕДЕР ==================== */
.header {
    width: 100%;
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background-color: rgba(26, 29, 45, 0.85); /* --bg-dark з прозорістю */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(176, 184, 209, 0.1); /* --text-secondary з прозорістю */
}

.header__container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.header__logo:hover {
    color: var(--text-primary);
}

.header__nav {
    display: none; /* Mobile-first: меню приховано */
}

.header__toggle {
    display: block; /* Показати кнопку-бургер на мобільних */
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
}

.header__toggle:hover {
    color: var(--accent-primary);
}

/* Стилі для мобільного меню (з'являться з JS) */
.header__nav.is-active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-bottom: 1px solid rgba(176, 184, 209, 0.1);
}

.header__nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.header__nav-link {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease, transform 0.3s ease;
    padding: 0.5rem;
}

.header__nav-link:hover {
    color: var(--text-primary);
    transform: scale(1.05);
}

.header__nav-link--cta {
    color: var(--text-primary);
    background-color: var(--accent-primary);
    padding: 1rem 1.8rem;
    border-radius: 8px;
}

.header__nav-link--cta:hover {
    background-color: var(--accent-hover);
    color: var(--text-primary);
    transform: scale(1.05);
}


/* ==================== 2. ФУТЕР ==================== */
.footer {
    background-color: var(--bg-secondary);
    padding-top: 6rem;
    padding-bottom: 2rem;
    border-top: 1px solid rgba(176, 184, 209, 0.1);
}

.footer__container {
    display: grid;
    grid-template-columns: 1fr; /* 1 колонка на мобільних */
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer__logo {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: inline-block;
}

.footer__description {
    font-size: 1.4rem;
    color: var(--text-secondary);
    max-width: 300px;
}

.footer__title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer__link {
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer__link:hover {
    color: var(--accent-primary);
    padding-left: 5px;
}

.footer__list--contact {
    gap: 1.5rem;
}

.footer__contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.footer__contact-item i {
    color: var(--accent-primary);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.footer__bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(176, 184, 209, 0.1);
    font-size: 1.4rem;
    color: var(--text-secondary);
}


/* ==================== 9. АДАПТИВНІСТЬ ==================== */

/* Tablet (min-width: 768px) */
@media (min-width: 768px) {
    .header__toggle {
        display: none; /* Ховаємо бургер */
    }

    .header__nav {
        display: block; /* Показуємо навігацію */
    }
    
    .header__nav-list {
        flex-direction: row;
        gap: 2.5rem;
    }

    .header__nav-link {
        font-size: 1.6rem;
    }
    
    .header__nav-link--cta {
         margin-left: 1.5rem;
    }

    .footer__container {
        /* 2 колонки на планшеті */
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop (min-width: 1024px) */
@media (min-width: 1024px) {
    .footer__container {
        /* 4 колонки на десктопі */
        grid-template-columns: 2fr 1fr 1fr 2fr;
        gap: 3rem;
    }
}

/* ... (існуючі стилі) ... */

/* ==================== 3. HERO ==================== */
.main {
    padding-top: var(--header-height); /* Щоб контент не ховався за хедер */
}

.hero {
    padding-top: 6rem;
    padding-bottom: 6rem;
    overflow: hidden; /* Для декоративних елементів */
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

.hero__tagline {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background-color: rgba(127, 86, 217, 0.1); /* Прозорий --accent-primary */
    color: var(--accent-primary);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.4rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.hero__title {
    font-size: 4.8rem;
    margin-bottom: 2rem;
}

.hero__title--dynamic {
    color: var(--accent-primary);
    /* Ефект "друкування" */
    border-right: 3px solid var(--accent-primary);
    animation: blink 0.7s infinite;
    min-height: 58px; /* Запобігає "стрибкам" тексту */
    display: inline-block;
}

/* Анімація курсора */
@keyframes blink {
    0%, 100% { border-color: transparent; }
    50% { border-color: var(--accent-primary); }
}

.hero__description {
    font-size: 1.8rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin-bottom: 3rem;
}

.hero__cta {
    display: inline-block;
    padding: 1.4rem 3rem;
    background-color: var(--accent-primary);
    color: var(--text-primary);
    font-size: 1.6rem;
    font-weight: 700;
    font-family: var(--font-heading);
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero__cta:hover {
    background-color: var(--accent-hover);
    color: var(--text-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(127, 86, 217, 0.15);
}

.hero__image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__image {
    border-radius: 12px;
    z-index: 2;
    max-width: 450px;
    width: 100%;
    height: auto;
    object-fit: cover;
    border: 1px solid rgba(176, 184, 209, 0.1);
}

/* Декоративні елементи */
.hero__image-deco {
    position: absolute;
    background-color: var(--bg-secondary);
    border-radius: 12px;
    z-index: 1;
}

.hero__image-deco--1 {
    width: 80%;
    height: 100%;
    top: -20px;
    left: -20px;
    transform: rotate(-8deg);
    opacity: 0.6;
}

.hero__image-deco--2 {
    width: 100%;
    height: 80%;
    bottom: -20px;
    right: -20px;
    transform: rotate(5deg);
    background-color: var(--accent-primary);
    opacity: 0.1;
}

/* ==================== 9. АДАПТИВНІСТЬ (доповнення) ==================== */

/* Tablet (min-width: 768px) */
@media (min-width: 768px) {
    .hero__title {
        font-size: 5.4rem;
    }
}

/* Desktop (min-width: 1024px) */
@media (min-width: 1024px) {
    .hero {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
    
    .hero__container {
        grid-template-columns: 1fr 1fr; /* Дві колонки */
        gap: 6rem;
    }

    .hero__content {
        order: 1; /* Текст зліва */
    }
    
    .hero__image-container {
        order: 2; /* Картинка справа */
    }
    
    .hero__title {
        font-size: 6rem;
    }
    
    .hero__title--dynamic {
        min-height: 72px; 
    }
}

/* ... (існуючі стилі hero) ... */

/* ==================== 4. КУРСЫ ==================== */
.courses {
    padding-top: 8rem;
    padding-bottom: 8rem;
    background-color: var(--bg-secondary); /* Зміна фону для контрасту */
}

.courses__header {
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 5rem;
}

.courses__title {
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
}

.courses__subtitle {
    font-size: 1.8rem;
    color: var(--text-secondary);
}

.courses__subtitle strong {
    color: var(--accent-primary);
    font-weight: 500;
}

.courses__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.courses__card {
    background-color: var(--bg-dark);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid rgba(176, 184, 209, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden; /* For the badge */
}

.courses__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.courses__card-badge {
    position: absolute;
    top: 15px;
    right: -35px;
    background-color: var(--accent-primary);
    color: var(--text-primary);
    padding: 0.5rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    transform: rotate(45deg);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.courses__card-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-secondary);
    border: 1px solid rgba(176, 184, 209, 0.1);
    margin-bottom: 2rem;
}

.courses__card-icon-wrapper i {
    color: var(--accent-primary);
    width: 28px;
    height: 28px;
}

.courses__card-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.courses__card-description {
    font-size: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
    flex-grow: 1; /* Щоб посилання було внизу */
    margin-bottom: 2rem;
}

.courses__card-link {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.courses__card-link i {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.courses__card-link:hover {
    color: var(--accent-hover);
    gap: 1rem;
}

.courses__card-link:hover i {
    transform: translateX(5px);
}

/* ... (існуючі стилі адаптивності) ... */

/* ==================== 9. АДАПТИВНІСТЬ (доповнення) ==================== */

/* ... (існуючі @media 768px) ... */
@media (min-width: 768px) {
    /* ... (існуючі стилі) ... */
    
    .courses__grid {
        /* 2 колонки */
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ... (існуючі @media 1024px) ... */
@media (min-width: 1024px) {
    /* ... (існуючі стилі) ... */

    .courses__grid {
        /* 4 колонки */
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ... (існуючі стилі courses) ... */

/* ==================== 5. О НАС ==================== */
.about {
    padding-top: 8rem;
    padding-bottom: 8rem;
    background-color: var(--bg-dark); /* Повертаємо темний фон */
    overflow-x: hidden; /* Щоб AOS-анімації не створювали горизонтальний скрол */
}

.about__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

.about__image-container {
    width: 100%;
}

.about__image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    margin-left: auto;
    margin-right: auto;
    display: block;
    border: 1px solid rgba(176, 184, 209, 0.1);
}

.about__title {
    font-size: 3.4rem;
    margin-bottom: 2rem;
}

.about__description {
    font-size: 1.7rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 3rem;
}

.about__features-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 4rem;
}

.about__features-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 1.6rem;
    font-weight: 500;
}

.about__features-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-secondary);
    color: var(--accent-primary);
}

.about__features-icon i {
    width: 22px;
    height: 22px;
}

.about__cta {
    display: inline-block;
    padding: 1.4rem 3rem;
    background-color: var(--accent-primary);
    color: var(--text-primary);
    font-size: 1.6rem;
    font-weight: 700;
    font-family: var(--font-heading);
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.about__cta:hover {
    background-color: var(--accent-hover);
    color: var(--text-primary);
    transform: translateY(-3px);
}

/* ... (існуючі стилі адаптивності) ... */

/* ==================== 9. АДАПТИВНІСТЬ (доповнення) ==================== */

/* ... (існуючі @media 768px) ... */
@media (min-width: 768px) {
    /* ... (існуючі стилі) ... */
    
    .about__container {
        grid-template-columns: 1fr 1fr;
        gap: 6rem;
    }

    /* На планшетах міняємо порядок для візуального інтересу */
    .about__image-container {
        order: 2;
    }

    .about__content {
        order: 1;
    }
}

/* ... (існуючі @media 1024px) ... */
@media (min-width: 1024px) {
    /* ... (існуючі стилі) ... */
    
    .about__title {
        font-size: 3.8rem;
    }
    
    /* На десктопах повертаємо порядок: картинка зліва, текст справа */
    .about__image-container {
        order: 1;
    }
    
    .about__content {
        order: 2;
    }
}

/* ... (існуючі стилі about) ... */

/* ==================== 6. КАРЬЕРА ==================== */
.career {
    padding-top: 8rem;
    padding-bottom: 8rem;
    background-color: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.career__header {
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 6rem;
}

.career__title {
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
}

.career__subtitle {
    font-size: 1.8rem;
    color: var(--text-secondary);
}

.career__steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    position: relative; /* Для лінії-з'єднання */
}

.career__step {
    background-color: var(--bg-dark);
    padding: 3.5rem 3rem 3rem;
    border-radius: 12px;
    border: 1px solid rgba(176, 184, 209, 0.1);
    position: relative;
    z-index: 2;
    text-align: center;
}

.career__step-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--accent-primary) 0%, var(--accent-hover) 100%);
    color: var(--text-primary);
    margin-left: auto;
    margin-right: auto;
    margin-top: -6rem; /* Витягуємо іконку наверх */
    border: 4px solid var(--bg-secondary);
    box-shadow: 0 0 20px rgba(127, 86, 217, 0.3);
}

.career__step-icon-wrapper i {
    width: 30px;
    height: 30px;
}

.career__step-number {
    display: block;
    font-family: var(--font-heading);
    color: var(--accent-primary);
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.career__step-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.career__step-description {
    font-size: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ... (існуючі стилі адаптивності) ... */

/* ==================== 9. АДАПТИВНІСТЬ (доповнення) ==================== */

/* ... (існуючі @media 768px) ... */
@media (min-width: 768px) {
    /* ... (існуючі стилі) ... */

    .career__steps-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
        margin-top: 3rem; /* Відступ для іконок */
    }

    /* Декоративна лінія, що з'єднує кроки */
    .career__steps-grid::before {
        content: '';
        position: absolute;
        top: 32px; /* Позиціонуємо на рівні центру іконок */
        left: 10%;
        width: 80%;
        height: 2px;
        background: repeating-linear-gradient(
            to right,
            var(--accent-primary),
            var(--accent-primary) 5px,
            transparent 5px,
            transparent 10px
        );
        opacity: 0.3;
        z-index: 1;
    }

    .career__step {
        text-align: left;
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
    
    .career__step-icon-wrapper {
         /* Позиціонуємо іконки зліва */
        margin-left: 0;
        margin-right: 0;
    }
}

/* ... (існуючі @media 1024px) ... */
@media (min-width: 1024px) {
    /* ... (існуючі стилі) ... */

    .career__header {
        margin-bottom: 8rem;
    }
}

/* ... (існуючі стилі career) ... */

/* ==================== 7. ОТЗЫВЫ ==================== */
.reviews {
    padding-top: 8rem;
    padding-bottom: 8rem;
    background-color: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.reviews__header {
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 5rem;
}

.reviews__title {
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
}

.reviews__subtitle {
    font-size: 1.8rem;
    color: var(--text-secondary);
}

.reviews__container {
    position: relative; /* Для позиціонування навігації */
}

/* Стилізація Swiper */
.reviews__swiper {
    padding-top: 1rem;
    padding-bottom: 1rem;
    /* Додаємо місце з боків, щоб було видно наступний слайд */
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
}

.reviews__slide {
    height: auto; /* Адаптивна висота */
}

.reviews__card {
    background-color: var(--bg-secondary);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid rgba(176, 184, 209, 0.1);
    height: 100%; /* Картки однакової висоти */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.reviews__quote {
    font-size: 1.8rem;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.reviews__author {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.reviews__author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-primary);
}

.reviews__author-name {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--text-primary);
}

.reviews__author-course {
    font-size: 1.4rem;
    color: var(--text-secondary);
}

/* Стилізація навігації Swiper */
.reviews__navigation {
    display: none; /* Ховаємо на мобільних */
}

/* Кастомні стрілки */
.swiper-button-prev,
.swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    border: 1px solid rgba(176, 184, 209, 0.1);
    
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background-color: var(--accent-primary);
    color: var(--text-primary);
}

.swiper-button-prev {
    left: 0;
}

.swiper-button-next {
    right: 0;
}

.swiper-button-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ... (існуючі стилі адаптивності) ... */

/* ==================== 9. АДАПТИВНІСТЬ (доповнення) ==================== */

/* ... (існуючі @media 768px) ... */
@media (min-width: 768px) {
    /* ... (існуючі стилі) ... */
    
    .reviews__swiper {
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
    }
}

/* ... (існуючі @media 1024px) ... */
@media (min-width: 1024px) {
    /* ... (існуючі стилі) ... */

    .reviews__container {
        padding-left: 5rem; /* Місце для стрілок */
        padding-right: 5rem;
    }

    .reviews__navigation {
        display: block; /* Показуємо стрілки на десктопі */
    }

    .swiper-button-prev {
        left: -1rem; /* Виносимо за контейнер */
    }
    
    .swiper-button-next {
        right: -1rem; /* Виносимо за контейнер */
    }
}

/* ... (існуючі стилі reviews) ... */

/* ==================== 8. КОНТАКТЫ ==================== */
.contact {
    padding-top: 8rem;
    padding-bottom: 8rem;
    background-color: var(--bg-secondary);
    overflow-x: hidden;
}

.contact__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5rem;
}

.contact__tagline {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background-color: rgba(127, 86, 217, 0.1);
    color: var(--accent-primary);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.4rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.contact__title {
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
}

.contact__description {
    font-size: 1.7rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 450px;
}

.contact__form-wrapper {
    background-color: var(--bg-dark);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid rgba(176, 184, 209, 0.1);
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form__group {
    display: flex;
    flex-direction: column;
}

.form__label {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
}

.form__input {
    width: 100%;
    padding: 1.2rem 1.5rem;
    font-size: 1.6rem;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    border: 1px solid rgba(176, 184, 209, 0.2);
    border-radius: 8px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form__input::placeholder {
    color: #888;
}

.form__input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(127, 86, 217, 0.2);
}

.form__group--captcha .form__label span {
    font-weight: 700;
    color: var(--accent-primary);
    font-family: var(--font-heading);
}

.form__group--checkbox {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.form__group--checkbox input[type="checkbox"] {
    width: 1.8rem;
    height: 1.8rem;
    accent-color: var(--accent-primary);
    flex-shrink: 0;
}

.form__group--checkbox label {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.form__group--checkbox a {
    color: var(--accent-primary);
    text-decoration: underline;
}

.form__group--checkbox a:hover {
    color: var(--accent-hover);
}

.contact__form-btn {
    padding: 1.4rem 3rem;
    background-color: var(--accent-primary);
    color: var(--text-primary);
    font-size: 1.6rem;
    font-weight: 700;
    font-family: var(--font-heading);
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
}

.contact__form-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
}

/* Стилі для повідомлення про успіх */
.contact__success-message {
    display: none; /* ПРИХОВАНО ЗА ЗАМОВЧУВАННЯМ */
    text-align: center;
    padding: 4rem 2rem;
    border: 1px solid var(--accent-primary);
    border-radius: 8px;
    background-color: var(--bg-secondary);
}

.contact__success-message.is-visible {
    display: block; /* Стає видимим через JS */
}

.contact__form.is-hidden {
    display: none; /* Ховаємо форму через JS */
}

.contact__success-message i {
    color: var(--accent-primary);
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
}

.contact__success-title {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.contact__success-text {
    font-size: 1.6rem;
    color: var(--text-secondary);
}


/* ==================== 9. АДАПТИВНІСТЬ (доповнення) ==================== */

/* ... (існуючі @media 768px) ... */
@media (min-width: 768px) {
    /* ... (існуючі стилі) ... */
}

/* ... (існуючі @media 1024px) ... */
@media (min-width: 1024px) {
    /* ... (існуючі стилі) ... */

    .contact__container {
        grid-template-columns: 1fr 1fr;
        gap: 8rem;
        align-items: center;
    }
    
    .contact__form-wrapper {
        padding: 4rem;
    }
}

/* ... (існуючі стилі contact) ... */

/* ==================== 10. COOKIE POP-UP ==================== */
.cookie-popup {
    position: fixed;
    bottom: -100%; /* Початково приховано */
    left: 0;
    width: 100%;
    background-color: var(--bg-secondary);
    padding: 2.5rem;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(176, 184, 209, 0.1);
    z-index: 200;
    transition: bottom 0.5s ease-in-out;
}

.cookie-popup.is-visible {
    bottom: 0; /* З'являється */
}

.cookie-popup__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.cookie-popup__text {
    font-size: 1.5rem;
    color: var(--text-secondary);
    text-align: center;
}

.cookie-popup__link {
    color: var(--accent-primary);
    text-decoration: underline;
}

.cookie-popup__link:hover {
    color: var(--accent-hover);
}

.cookie-popup__btn {
    padding: 1rem 2.5rem;
    background-color: var(--accent-primary);
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    border-radius: 8px;
    transition: background-color 0.3s ease;
    cursor: pointer;
    border: none;
    flex-shrink: 0;
}

.cookie-popup__btn:hover {
    background-color: var(--accent-hover);
}


/* ==================== 11. СТИЛІ СТОРІНОК ПОЛІТИК ==================== */
.pages {
    padding-top: 6rem;
    padding-bottom: 8rem;
    min-height: 70vh;
    background-color: var(--bg-dark);
}

/* * HTML-структура для цих стилів:
 * <main>
 * <section class="pages">
 * <div class="container">
 * <h1>Заголовок</h1>
 * <p>Текст...</p>
 * <h2>Підзаголовок</h2>
 * <ul>...</ul>
 * </div>
 * </section>
 * </main>
*/

.pages .container {
    max-width: 800px; /* Вузький контейнер для читабельності */
    color: var(--text-secondary);
}

.pages h1 {
    font-size: 4rem;
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--accent-primary);
    padding-bottom: 1rem;
}

.pages h2 {
    font-size: 2.8rem;
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-top: 4rem;
    margin-bottom: 1.5rem;
}

.pages p {
    font-size: 1.7rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.pages ul {
    list-style: disc;
    padding-left: 3rem;
    margin-bottom: 2rem;
}

.pages li {
    font-size: 1.7rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.pages strong {
    color: var(--text-primary);
    font-weight: 700;
}

.pages a {
    color: var(--accent-primary);
    text-decoration: underline;
}

.pages a:hover {
    color: var(--accent-hover);
    text-decoration: none;
}


/* ==================== 9. АДАПТИВНІСТЬ (доповнення) ==================== */

/* ... (існуючі @media 768px) ... */
@media (min-width: 768px) {
    /* ... (існуючі стилі) ... */

    .cookie-popup__content {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .cookie-popup__text {
        text-align: left;
    }
}