/* --- Variables & Reset --- */
:root {
    --color-bg: #F8FAFC;
    --color-text: #334155;
    --color-primary: #0F172A; /* Глубокий синий */
    --color-accent: #10B981; /* Мятный/Изумрудный */
    --color-accent-hover: #059669;
    --color-white: #FFFFFF;
    --color-gray-light: #E2E8F0;
    
    --font-main: 'Inter', sans-serif;
    --font-head: 'Outfit', sans-serif;
    
    --container-width: 1200px;
    --header-height: 80px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; transition: 0.3s ease; }
img { max-width: 100%; display: block; }

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

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--color-primary);
    font-weight: 700;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-head);
    transition: all 0.3s ease;
}

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

.btn--primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
}

/* --- Header --- */
.header {
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--color-gray-light);
    display: flex;
    align-items: center;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--color-primary);
}

.logo__img {
    height: 32px;
    width: auto;
}

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

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

.nav__link:hover, .nav__link--active {
    color: var(--color-accent);
}

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

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

.header__actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

/* --- Mobile Menu State --- */
.nav.is-open {
    display: flex;
}

/* --- Footer --- */
.footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 60px 0 20px;
    margin-top: auto;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.logo--footer .logo__text {
    color: var(--color-white);
}

.footer__desc {
    margin-top: 20px;
    color: #94A3B8;
    font-size: 0.9rem;
    max-width: 300px;
}

.footer__title {
    color: var(--color-white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

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

.footer__link {
    color: #CBD5E1;
    font-size: 0.95rem;
}

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

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

.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #CBD5E1;
    font-size: 0.95rem;
}

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

.footer__bottom {
    border-top: 1px solid #334155;
    padding-top: 20px;
    text-align: center;
    color: #64748B;
    font-size: 0.85rem;
}

/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
    .header__burger {
        display: block;
    }

    .nav {
        display: none; /* Скрыто по умолчанию на мобильных */
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--color-white);
        padding: 20px;
        box-shadow: var(--shadow-md);
        flex-direction: column;
        align-items: center;
    }

    .nav__list {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer__grid {
        grid-template-columns: 1fr;
    }
    
    .header__actions .btn {
        display: none; /* Скрываем кнопку в хедере на очень маленьких экранах, оставляем бургер */
    }
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, #1e293b, var(--color-primary));
    overflow: hidden;
    color: var(--color-white);
}

.hero__canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* На заднем плане */
    opacity: 0.4; /* Легкая прозрачность */
}

.hero__container {
    position: relative;
    z-index: 2; /* Контент поверх канваса */
    width: 100%;
    padding-top: 40px;
    padding-bottom: 40px;
}

.hero__content {
    max-width: 650px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--color-accent);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero__title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

/* Эффект градиента на тексте */
.text-gradient {
    background: linear-gradient(135deg, #fff 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__text {
    font-size: 1.125rem;
    color: #cbd5e1;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero__note {
    font-size: 0.9rem;
    color: #94a3b8;
    background: rgba(255,255,255,0.05);
    padding: 4px 8px;
    border-radius: 4px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.btn--lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-icon {
    margin-left: 8px;
    width: 20px;
    height: 20px;
}

.btn--outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white);
}

.btn--outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: rgba(16, 185, 129, 0.05);
}

/* Hero Stats */
.hero__stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

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

.stat-item__value {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-white);
}

.stat-item__label {
    font-size: 0.9rem;
    color: #94a3b8;
}

/* Responsive */
@media (max-width: 768px) {
    .hero__title {
        font-size: 2.5rem;
    }
    
    .hero__actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
}

/* --- Common Section Styles --- */
.section {
    padding: 100px 0;
    position: relative;
}

.text-center {
    text-align: center;
}

.section__header {
    max-width: 700px;
    margin: 0 auto 60px;
}

.section__title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.section__subtitle {
    font-size: 1.1rem;
    color: #64748B;
}

.highlight {
    color: var(--color-accent);
    font-weight: 600;
}

/* --- Solutions Grid --- */
.solutions__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* --- Card Style --- */
.card {
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius-md);
    padding: 40px 30px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* Hover Effect: Поднимаем карточку и добавляем тень/цвет */
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--color-accent);
}

/* Иконка */
.card__icon-box {
    width: 60px;
    height: 60px;
    background-color: #F0FDF4; /* Очень светлый зеленый */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.card__icon {
    width: 28px;
    height: 28px;
    color: var(--color-accent);
}

.card:hover .card__icon-box {
    transform: scale(1.1) rotate(5deg);
    background-color: var(--color-accent);
}

.card:hover .card__icon {
    color: var(--color-white);
}

/* Тексты карточки */
.card__title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.card__text {
    color: #64748B;
    font-size: 1rem;
    line-height: 1.6;
}

/* Декоративная линия внизу карточки */
.card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background-color: var(--color-accent);
    transition: width 0.4s ease;
}

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

/* Responsive adjustment */
@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    .section__title {
        font-size: 2rem;
    }
}

/* --- Dark Section Modifiers --- */
.section--dark {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.section--dark .section__title {
    color: var(--color-white);
}

.text-white { color: var(--color-white); }
.text-gray { color: #94A3B8; }

.section__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    margin-bottom: 20px;
}

/* --- Innovation Layout --- */
.innovation__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.section__text {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.innovation__list {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.innovation__item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    color: #E2E8F0;
}

.list-icon {
    color: var(--color-accent);
    width: 20px;
    height: 20px;
}

/* --- Visual Side & Animations --- */
.innovation__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.innovation__img-wrapper {
    position: relative;
    z-index: 2;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.innovation__img {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1);
    transition: transform 0.5s ease;
}

.innovation__img-wrapper:hover .innovation__img {
    transform: scale(1.02);
}

/* Пульсирующий круг на фоне */
.pulse-circle {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0) 70%);
    border-radius: 50%;
    z-index: 1;
    animation: pulse 4s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.2; }
    100% { transform: scale(0.8); opacity: 0.5; }
}

/* Плавающий элемент (Floating Card) */
.floating-card {
    position: absolute;
    bottom: 30px;
    left: -30px;
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(8px);
    padding: 15px 25px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
}

.floating-card__icon {
    width: 40px;
    height: 40px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
}

.floating-card__info {
    display: flex;
    flex-direction: column;
}

.floating-card__label {
    font-size: 0.8rem;
    color: #94A3B8;
}

.floating-card__value {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-white);
}

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

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

    .innovation__visual {
        order: -1; /* Картинка сверху на мобильных */
    }

    .pulse-circle {
        width: 300px;
        height: 300px;
    }
    
    .floating-card {
        left: 10px;
        bottom: 10px;
    }
}

/* --- Analytics Section Layout --- */
.analytics__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

.analytics__cta {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.analytics__note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #64748B;
}

.icon-sm {
    width: 16px;
    height: 16px;
}

/* --- Accordion Styles --- */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.accordion__item {
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion__item.is-active {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
}

.accordion__header {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 20px 25px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s ease;
}

.accordion__header:hover {
    background-color: #F8FAFC;
}

.accordion__number {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--color-accent);
    margin-right: 20px;
    opacity: 0.8;
}

.accordion__title {
    flex-grow: 1;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-primary);
}

.accordion__icon {
    width: 20px;
    height: 20px;
    color: #94A3B8;
    transition: transform 0.3s ease;
}

.accordion__item.is-active .accordion__icon {
    transform: rotate(180deg);
    color: var(--color-accent);
}

.accordion__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.accordion__body {
    padding: 0 25px 25px 60px; /* Отступ слева подравниваем под текст заголовка */
    color: #64748B;
    line-height: 1.6;
}

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

@media (max-width: 576px) {
    .accordion__body {
        padding: 0 20px 20px 20px;
    }
    
    .accordion__number {
        margin-right: 15px;
    }
}

/* --- Blog Grid --- */
.blog__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* --- Blog Card --- */
.blog-card {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-gray-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}

.blog-card__image-box {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.blog-card__tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.blog-card__content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #94A3B8;
    margin-bottom: 12px;
}

.meta-icon {
    width: 14px;
    height: 14px;
}

.blog-card__title {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 12px;
}

.blog-card__title a {
    color: var(--color-primary);
    transition: color 0.2s ease;
}

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

.blog-card__excerpt {
    font-size: 0.95rem;
    color: #64748B;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1; /* Притискає кнопку до низу */
}

.blog-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--color-accent);
    font-size: 0.95rem;
}

.blog-card__link:hover {
    color: var(--color-accent-hover);
}

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

.blog-card__link:hover .link-icon {
    transform: translateX(5px);
}

/* --- Contact Section --- */
.contact-section {
    background-color: #F8FAFC;
}

.contact__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Contact Info */
.contact__details {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact__item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact__icon-box {
    width: 50px;
    height: 50px;
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    box-shadow: var(--shadow-md);
}

.contact__label {
    font-size: 0.9rem;
    color: #64748B;
    margin-bottom: 4px;
}

/* Form Box */
.contact__form-box {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    position: relative; /* Для позиціонування success message */
    min-height: 520px; /* Фіксуємо висоту, щоб не стрибало при успіху */
}

.form__title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--color-primary);
}

.form__group {
    margin-bottom: 20px;
}

.form__label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #94A3B8;
}

.form__input {
    width: 100%;
    padding: 12px 15px 12px 45px; /* Відступ зліва під іконку */
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form__input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Captcha special styles */
.captcha-input {
    padding-left: 15px; /* Звичайна input без іконки */
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
}

.form__checkbox {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--color-accent);
    cursor: pointer;
}

.checkbox-label {
    font-size: 0.85rem;
    color: #64748B;
    line-height: 1.4;
    cursor: pointer;
}

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

.form__btn {
    width: 100%;
    margin-top: 10px;
}

/* Success Message */
.success-message {
    display: none; /* Сховано за замовчуванням */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    z-index: 10;
}

.success-message.is-visible {
    display: flex;
    animation: fadeIn 0.5s ease;
}

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

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 992px) {
    .contact__wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .contact__info {
        order: 2; /* На мобільному форма важливіша, але зазвичай контакти ставлять в кінці. Хай буде стандартно */
        order: 0;
    }
}

/* --- Cookie Pop-up --- */
.cookie-popup {
    position: fixed;
    bottom: -100px; /* Спрятан внизу */
    left: 20px;
    right: 20px;
    max-width: 400px;
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-light);
    border-left: 4px solid var(--color-accent); /* Акцентная полоска */
    padding: 20px;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: bottom 0.5s ease-in-out;
}

.cookie-popup.is-visible {
    bottom: 20px;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-text {
    font-size: 0.9rem;
    color: var(--color-text);
    line-height: 1.5;
}

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

.btn--sm {
    padding: 8px 20px;
    font-size: 0.9rem;
    align-self: flex-start;
}

/* --- Policy Pages Styles (Generic Text 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-size: 2.5rem;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-gray-light);
    color: var(--color-primary);
}

.pages h2 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.pages p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.7;
}

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

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

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

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

/* Mobile responsive for popup */
@media (max-width: 576px) {
    .cookie-popup {
        left: 10px;
        right: 10px;
        max-width: none;
    }
}