/* --- VARIABLES --- */
:root {
    --color-bg: #f8fafc;
    --color-text: #334155;
    --color-dark: #0f172a;       /* Темно-синій */
    --color-primary: #1e293b;    /* Основний бренд */
    --color-accent: #84cc16;     /* Лайм/Зелений - акцент */
    --color-accent-hover: #65a30d;
    --color-white: #ffffff;
    --color-border: #e2e8f0;

    --font-main: 'Inter', sans-serif;
    --font-head: 'Montserrat', sans-serif;

    --container-width: 1200px;
    --header-height: 80px;
    --transition: all 0.3s ease;
}

/* --- RESET & BASE --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: var(--header-height); /* Компенсация фикс хедера */
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    border: none;
    text-align: center;
    transition: var(--transition);
}

.btn--primary {
    background-color: var(--color-accent);
    color: var(--color-dark);
}

.btn--primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(132, 204, 22, 0.3);
}

/* --- HEADER --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

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

.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 24px;
    color: var(--color-dark);
    letter-spacing: -0.5px;
}

.header__logo-img {
    height: 32px;
    width: auto;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.header__menu {
    display: flex;
    gap: 30px;
}

.header__link {
    font-weight: 500;
    color: var(--color-text);
    position: relative;
}

.header__link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-accent);
    transition: var(--transition);
}

.header__link:hover {
    color: var(--color-dark);
}

.header__link:hover::after {
    width: 100%;
}

.header__burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-dark);
}

/* Mobile Menu Styles */
@media (max-width: 992px) {
    .header__burger {
        display: block;
    }

    .header__nav {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--color-white);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
        padding: 40px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.05);
    }

    .header__nav.active {
        right: 0;
    }

    .header__menu {
        flex-direction: column;
        align-items: center;
        gap: 25px;
        margin-bottom: 30px;
        font-size: 18px;
    }
}

/* --- FOOTER --- */
.footer {
    background-color: var(--color-dark);
    color: #94a3b8;
    padding-top: 80px;
    margin-top: auto; /* Push to bottom if content is short */
}

.footer__container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 60px;
}

.footer__logo-text {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-white);
    display: block;
    margin-bottom: 20px;
}

.footer__desc {
    font-size: 14px;
    line-height: 1.6;
    max-width: 300px;
}

.footer__title {
    color: var(--color-white);
    font-family: var(--font-head);
    font-size: 18px;
    margin-bottom: 24px;
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
}

.footer__icon {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer__container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__contact-item {
        justify-content: center;
    }
    
    .footer__logo-text {
        margin: 0 auto 20px;
    }
    
    .footer__desc {
        margin: 0 auto;
    }
}

/* --- HERO SECTION --- */
.hero {
    padding: 80px 0 60px;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    overflow: hidden;
    position: relative;
}

.hero__container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: rgba(132, 204, 22, 0.1);
    border: 1px solid var(--color-accent);
    border-radius: 30px;
    color: var(--color-dark);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero__badge i {
    width: 16px;
    height: 16px;
    color: var(--color-accent-hover);
}

.hero__title {
    font-family: var(--font-head);
    font-size: 56px;
    line-height: 1.1;
    color: var(--color-dark);
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.text-gradient {
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent-hover) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero__desc {
    font-size: 18px;
    color: #475569;
    margin-bottom: 40px;
    max-width: 540px;
}

.hero__actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 50px;
}

.hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 18px;
}

.hero__info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
}

.hero__info i {
    width: 14px;
    height: 14px;
}

/* Stats block */
.hero__stats {
    display: flex;
    align-items: center;
    gap: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.hero__stat-item {
    display: flex;
    flex-direction: column;
}

.hero__stat-num {
    font-family: var(--font-head);
    font-size: 32px;
    font-weight: 800;
    color: var(--color-dark);
}

.hero__stat-label {
    font-size: 14px;
    color: #64748b;
}

.hero__stat-divider {
    width: 1px;
    height: 40px;
    background-color: #cbd5e1;
}

/* Visual & Animation */
.hero__image-wrapper {
    position: relative;
    z-index: 1;
}

.hero__img {
    position: relative;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    z-index: 2;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.1s ease-out;
}

.hero__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 1;
}

.hero__blob--1 {
    width: 300px;
    height: 300px;
    background: rgba(163, 230, 53, 0.3);
    top: -40px;
    right: -40px;
}

.hero__blob--2 {
    width: 200px;
    height: 200px;
    background: rgba(30, 41, 59, 0.2);
    bottom: -20px;
    left: -20px;
}

.hero__card {
    position: absolute;
    background: white;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    z-index: 3;
    white-space: nowrap;
}

.hero__card i {
    color: var(--color-accent);
}

.hero__card--1 {
    top: 40px;
    left: -30px;
    animation: float 6s ease-in-out infinite;
}

.hero__card--2 {
    bottom: 60px;
    right: -20px;
    animation: float 7s ease-in-out infinite reverse;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Responsive Hero */
@media (max-width: 992px) {
    .hero__title { font-size: 42px; }
    .hero__container { grid-template-columns: 1fr; gap: 40px; }
    .hero__visual { order: -1; max-width: 500px; margin: 0 auto; }
    .hero__image-wrapper { transform: none; }
    .hero__card--1 { left: 0; }
    .hero__card--2 { right: 0; }
}

@media (max-width: 576px) {
    .hero__title { font-size: 32px; }
    .hero__card { display: none; } /* Прибираємо картки на дуже малих екранах, щоб не перекривали контент */
}

/* --- GLOBAL SECTIONS --- */
.section-padding {
    padding: 100px 0;
}

.section-header {
    max-width: 700px;
    margin: 0 auto 60px;
    text-align: center;
}

.section-title {
    font-family: var(--font-head);
    font-size: 36px;
    color: var(--color-dark);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: #64748b;
}

/* --- GRID SYSTEM --- */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* --- FEATURE CARDS --- */
.feature-card {
    background: var(--color-white);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%; /* Одинаковая высота */
}

/* Hover Effect */
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border-color: var(--color-accent);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card__icon {
    width: 50px;
    height: 50px;
    background-color: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--color-dark);
    transition: var(--transition);
}

.feature-card:hover .feature-card__icon {
    background-color: var(--color-accent);
    color: var(--color-dark);
}

.feature-card__title {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-dark);
}

.feature-card__text {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
}

/* Responsive Grid */
@media (max-width: 992px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 28px;
    }
}

/* --- MENTORS SECTION --- */
.mentors {
    background-color: var(--color-white);
}

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

.mentor-card {
    background-color: var(--color-bg); /* Світло-сірий фон картки на білому фоні секції */
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid transparent;
}

.mentor-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* Image Area */
.mentor-card__img-wrapper {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.mentor-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mentor-card:hover .mentor-card__img {
    transform: scale(1.05);
}

/* Social Overlay */
.mentor-card__socials {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    display: flex;
    gap: 15px;
    opacity: 0;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 30px;
}

.mentor-card:hover .mentor-card__socials {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.mentor-card__social-link {
    color: var(--color-dark);
    transition: var(--transition);
}

.mentor-card__social-link:hover {
    color: var(--color-accent);
    transform: scale(1.1);
}

/* Content Area */
.mentor-card__content {
    padding: 25px;
}

.mentor-card__name {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 5px;
}

.mentor-card__role {
    font-size: 14px;
    color: var(--color-accent-hover);
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mentor-card__desc {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.5;
}

.mentor-card__tags {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.mentor-card__tags span {
    background-color: rgba(30, 41, 59, 0.05);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text);
}

.mentor-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-dark);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 2px;
}

.mentor-card__link:hover {
    color: var(--color-accent-hover);
    border-color: var(--color-accent);
    gap: 10px; /* Slight movement animation */
}

.mentor-card__link i {
    width: 16px;
    height: 16px;
}

/* Responsive */
@media (max-width: 992px) {
    .mentors__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .mentors__grid {
        grid-template-columns: 1fr;
    }
    
    .mentor-card__img-wrapper {
        height: 250px;
    }
}

/* --- STORIES SECTION (CSS Slider) --- */
.stories {
    /* Фон залишаємо базовим сірим (var(--color-bg)), 
       оскільки попередня секція була білою */
    position: relative;
}

/* Обгортка для створення відступів по боках на мобільному */
.stories__slider-wrapper {
    margin: 0 -20px; /* Компенсуємо паддінг контейнера */
    padding: 20px; /* Додаємо простір для тіней карток */
    overflow: hidden;
}

/* Сам слайдер */
.stories__slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory; /* Магія CSS скролу */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Плавний скрол на iOS */
    
    /* Приховуємо скроллбар */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE/Edge */
    padding-bottom: 20px; /* Простір для тіней знизу */
}

.stories__slider::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Картка відгуку */
.story-card {
    flex: 0 0 450px; /* Фіксована ширина картки, не стискається */
    scroll-snap-align: center; /* Картка центрується при скролі */
    background: var(--color-white);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid var(--color-border);
    transition: var(--transition);
    position: relative;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: var(--color-accent-hover);
}

/* Header картки */
.story-card__header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    position: relative;
}

.story-card__avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(163, 230, 53, 0.3); /* Акцентна рамка */
}

.story-card__name {
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-dark);
}

.story-card__role {
    font-size: 14px;
    color: #64748b;
}

/* Бейдж "Платформа року" */
.story-card__badge {
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-accent-hover);
    background: rgba(163, 230, 53, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
}

.story-card__badge i {
    width: 14px;
    height: 14px;
}

/* Цитата */
.story-card__quote {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    font-style: italic;
    margin-bottom: 25px;
    position: relative;
}

/* Результат */
.story-card__result {
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    font-weight: 600;
    color: var(--color-dark);
}

.story-card__result span {
    color: var(--color-accent-hover);
    margin-right: 5px;
}

/* Остання картка-заклик */
.story-card--cta {
    background: var(--color-dark);
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
}

.story-card--cta h3 {
    font-family: var(--font-head);
    font-size: 28px;
    margin: 0;
}

.story-card--cta p {
    color: #94a3b8;
    margin-bottom: 10px;
}

/* Адаптив слайдера */
@media (max-width: 768px) {
    .story-card {
        flex: 0 0 320px; /* Зменшуємо ширину картки на мобільному */
        padding: 30px;
        scroll-snap-align: start; /* На мобільному краще рівняти по лівому краю */
    }
    
    .story-card__badge {
        position: relative;
        top: auto;
        right: auto;
        margin-top: 10px;
        display: inline-flex;
    }

    .story-card__header {
        flex-wrap: wrap;
    }
}

/* --- FAQ SECTION --- */
.faq {
    background-color: var(--color-white);
}

.faq__wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.faq__item {
    border-bottom: 1px solid var(--color-border);
}

.faq__item:last-child {
    border-bottom: none;
}

/* Header (Question) */
.faq__header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.faq__question {
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-dark);
    padding-right: 20px;
}

.faq__icon {
    color: var(--color-accent-hover);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
}

/* Hover State */
.faq__header:hover .faq__question {
    color: var(--color-accent-hover);
}

/* Active State (JS adds this class) */
.faq__item.active .faq__icon {
    transform: rotate(45deg); /* Перетворюємо плюс на хрестик */
    color: var(--color-dark);
}

.faq__item.active .faq__question {
    color: var(--color-accent-hover);
}

/* Body (Answer) - Hidden by default */
.faq__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

.faq__content {
    padding-bottom: 24px;
    color: #475569;
    font-size: 16px;
    line-height: 1.6;
}

/* Адаптив */
@media (max-width: 576px) {
    .faq__question {
        font-size: 16px;
    }
}

/* --- CONTACT SECTION --- */
.contact {
    /* Базовий фон */
    background-color: var(--color-bg); 
}

.contact__wrapper {
    max-width: 600px; /* Компактна ширина для форми */
    margin: 0 auto;
}

.contact__card {
    background: var(--color-white);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #94a3b8;
    transition: var(--transition);
}

.form-input {
    width: 100%;
    padding: 14px 16px 14px 48px; /* Відступ для іконки */
    border: 1px solid var(--color-border);
    border-radius: 12px;
    font-size: 16px;
    font-family: var(--font-main);
    transition: var(--transition);
    background-color: #f8fafc;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent);
    background-color: var(--color-white);
    box-shadow: 0 0 0 4px rgba(163, 230, 53, 0.1);
}

.form-input:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
    color: var(--color-dark);
}

/* Validation Styles */
.form-input.error {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.error-msg {
    display: none;
    font-size: 12px;
    color: #ef4444;
    margin-top: 5px;
    padding-left: 5px;
}

.form-input.error ~ .error-msg,
.form-checkbox.error .error-msg {
    display: block;
}

/* Captcha */
.captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.captcha-question {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 20px;
    color: var(--color-dark);
    letter-spacing: 2px;
    background: #f1f5f9;
    padding: 10px 15px;
    border-radius: 8px;
    user-select: none;
}

.captcha-input {
    width: 80px;
    padding-left: 15px; /* Скидаємо паддінг іконки */
    text-align: center;
}

/* Checkbox */
.form-checkbox {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 30px;
}

.form-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--color-accent);
}

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

.block-error {
    width: 100%; /* Перенос помилки на новий рядок */
}

/* Button */
.form-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 16px;
    font-size: 18px;
}

/* Success Message Overlay */
.contact__success {
    display: none; /* Приховано за замовчуванням */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    z-index: 10;
    animation: fadeIn 0.5s ease;
}

.success-icon {
    width: 80px;
    height: 80px;
    background-color: var(--color-accent);
    color: var(--color-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.success-icon i {
    width: 40px;
    height: 40px;
}

.contact__success h3 {
    font-family: var(--font-head);
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--color-dark);
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Адаптив */
@media (max-width: 576px) {
    .contact__card {
        padding: 25px 20px;
    }
}

/* --- COOKIE POPUP --- */
.cookie-popup {
    position: fixed;
    bottom: -100px; /* Сховано за межами екрану */
    left: 0;
    width: 100%;
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 20px 0;
    z-index: 9999;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    transition: bottom 0.5s ease-out;
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-popup__content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-popup__text {
    font-size: 14px;
    color: #cbd5e1;
    margin: 0;
}

.cookie-popup__text a {
    color: var(--color-accent);
    text-decoration: underline;
}

.cookie-popup__btn {
    padding: 10px 24px;
    font-size: 14px;
    flex-shrink: 0;
}

@media (max-width: 576px) {
    .cookie-popup__content {
        flex-direction: column;
        text-align: center;
    }
}

/* --- СТИЛІ ДЛЯ ЮРИДИЧНИХ СТОРІНОК (.pages) --- */
/* Ці стилі працюватимуть на сторінках privacy.html, terms.html і т.д. */

.pages {
    padding: 60px 0 100px;
    background-color: var(--color-white);
    min-height: 60vh;
}

.pages .container {
    max-width: 800px; /* Звужуємо контейнер для кращої читабельності тексту */
}

.pages h1 {
    font-family: var(--font-head);
    font-size: 36px;
    color: var(--color-dark);
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}

.pages h2 {
    font-family: var(--font-head);
    font-size: 24px;
    color: var(--color-dark);
    margin-top: 40px;
    margin-bottom: 20px;
}

.pages p {
    font-size: 16px;
    color: #334155;
    margin-bottom: 20px;
    text-align: justify;
}

.pages ul {
    margin-bottom: 20px;
    padding-left: 20px;
    list-style: disc;
}

.pages li {
    margin-bottom: 10px;
    color: #334155;
    line-height: 1.6;
}

.pages strong {
    color: var(--color-dark);
    font-weight: 600;
}

.pages a {
    color: var(--color-primary); /* Темно-синій лінк */
    text-decoration: underline;
    text-decoration-color: var(--color-accent); /* Підкреслення лаймом */
    text-underline-offset: 3px;
}

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