/* ЕТАП 0: Глобальные переменные и сброс */
:root {
    --font-main: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;

    /* Палитра */
    --color-bg: #FFFFFF;
    --color-text: #1E293B; /* Slate 800 */
    --color-primary: #4F46E5; /* Indigo 600 */
    --color-primary-dark: #3730A3;
    --color-accent: #EC4899; /* Pink 500 - для живости */
    --color-light: #F8FAFC; /* Slate 50 */
    --color-border: #E2E8F0;
    
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

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

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

ul {
    list-style: none;
}

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

/* Кнопки (Глобальный стиль) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-family: var(--font-display);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn--small {
    padding: 10px 20px;
    font-size: 0.9rem;
}

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

.header__btn:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* ЕТАП 1: Хедер */
.header {
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
}

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

.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-primary);
}

.header__logo-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.header__nav {
    display: none; /* Mobile first hidden */
}

@media (min-width: 992px) {
    .header__nav {
        display: block;
    }
    
    .header__menu {
        display: flex;
        gap: 32px;
    }
    
    .header__link {
        font-weight: 500;
        color: var(--color-text);
        position: relative;
    }
    
    .header__link:hover {
        color: var(--color-primary);
    }

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

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

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

@media (min-width: 992px) {
    .header__burger {
        display: none;
    }
}

/* ЕТАП 2: Футер */
/* Важно: Футер прижат к низу через margin-top: auto в структуре body, 
   но здесь мы добавим margin-top чтобы отделить его от контента */
.footer {
    margin-top: auto; 
    background-color: #1E293B; /* Dark background */
    color: #94A3B8;
    padding-top: 60px;
}

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

@media (min-width: 768px) {
    .footer__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .footer__container {
        grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    }
}

.footer__logo {
    color: white;
    margin-bottom: 20px;
}

.footer__logo .header__logo-text {
    color: white;
}

.footer__desc {
    margin-bottom: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer__note {
    font-size: 0.85rem;
    color: var(--color-accent);
    font-weight: 600;
}

.footer__title {
    color: white;
    font-family: var(--font-display);
    font-weight: 700;
    margin-bottom: 24px;
    font-size: 1.1rem;
}

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

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

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

.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #E2E8F0;
}

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

.footer__bottom {
    border-top: 1px solid #334155;
    padding: 24px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* HERO SECTION */
.hero {
    position: relative;
    padding: 60px 0 100px;
    overflow: hidden;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2; /* Щоб текст був над 3D */
}

@media (min-width: 992px) {
    .hero__container {
        grid-template-columns: 1.2fr 1fr;
    }
}

/* Текстова частина */
.hero__content {
    max-width: 600px;
}

.hero__tagline {
    display: inline-block;
    padding: 8px 16px;
    background-color: #EEF2FF; /* Light Indigo */
    color: var(--color-primary);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero__title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    line-height: 1.1;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .hero__title {
        font-size: 3.5rem;
    }
}

.hero__description {
    font-size: 1.125rem;
    color: #64748B; /* Slate 500 */
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero__actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 48px;
}

@media (min-width: 576px) {
    .hero__actions {
        flex-direction: row;
        align-items: center;
    }
}

.hero__btn {
    padding: 16px 32px;
    font-size: 1rem;
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.4);
}

.hero__link-more {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--color-text);
}

.hero__link-more:hover {
    color: var(--color-primary);
}

.hero__icon-arrow {
    width: 20px;
    height: 20px;
    animation: bounce 2s infinite;
}

/* Блок довіри */
.hero__trust {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

@media (min-width: 576px) {
    .hero__trust {
        flex-direction: row;
        gap: 32px;
    }
}

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

.hero__trust-icon {
    width: 18px;
    height: 18px;
    color: var(--color-primary); /* Green for trust */
}

/* Анімація стрілки */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(5px);}
    60% {transform: translateY(3px);}
}

/* Контейнер для 3D */
.hero__visual {
    height: 400px;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (min-width: 992px) {
    .hero__visual {
        height: 600px;
    }
}

/* Canvas, який створить Three.js */
.hero__visual canvas {
    width: 100% !important;
    height: 100% !important;
    outline: none;
}

/* ЗАГАЛЬНІ СТИЛІ ДЛЯ СЕКЦІЙ */
.section {
    padding: 80px 0;
}

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

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

.section-tag {
    color: var(--color-accent);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--color-text);
    margin-bottom: 20px;
    font-weight: 700;
}

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

/* СІТКА КАРТОК */
.usage__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .usage__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .usage__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* СТИЛІ КАРТКИ */
.card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 32px 24px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
    border-color: rgba(79, 70, 229, 0.3);
}

.card__icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background-color: #EEF2FF; /* Light Indigo */
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition);
}

/* Акцентний варіант іконки (чергування кольорів) */
.card__icon-wrapper--accent {
    background-color: #FDF2F8; /* Light Pink */
    color: var(--color-accent);
}

.card:hover .card__icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.card__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text);
}

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

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

.card__link-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.card__link:hover .card__link-icon {
    transform: translateX(4px);
}

/* TOOLS SECTION */
.tools {
    background-color: var(--color-light); /* Легкий сірий фон */
}

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

@media (min-width: 992px) {
    .tools__container {
        grid-template-columns: 1fr 1fr;
    }
}

/* Зображення */
.tools__image-wrapper {
    position: relative;
}

.tools__img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Плашка "Платформа года" */
.tools__badge {
    position: absolute;
    bottom: 30px;
    right: -20px;
    background: white;
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 240px;
    animation: float 4s ease-in-out infinite;
}

@media (max-width: 576px) {
    .tools__badge {
        right: 0;
        bottom: -20px;
    }
}

.tools__badge-icon {
    width: 48px;
    height: 48px;
    background: #FEF3C7; /* Amber 100 */
    color: #D97706; /* Amber 600 */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tools__badge-title {
    display: block;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--color-text);
}

.tools__badge-subtitle {
    font-size: 0.8rem;
    color: #64748B;
}

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

/* Список переваг */
.tools__list {
    margin: 32px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tools__item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.tools__item-icon {
    width: 24px;
    height: 24px;
    background-color: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 4px; /* зменшуємо іконку всередині */
}

.tools__item p {
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.5;
}

/* Кнопки в цій секції */
.tools__actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

@media (min-width: 576px) {
    .tools__actions {
        flex-direction: row;
        align-items: center;
    }
}

.tools__link-secondary {
    font-weight: 600;
    color: #64748B;
    border-bottom: 1px solid transparent;
}

.tools__link-secondary:hover {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

/* REVIEWS SECTION */
.reviews__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* Адаптивність: На мобільному робимо горизонтальний скрол */
@media (max-width: 991px) {
    .reviews__grid {
        display: flex;
        overflow-x: auto;
        padding-bottom: 20px; /* Місце для скролбару */
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    
    .review-card {
        min-width: 300px; /* Фіксована ширина для скролу */
        scroll-snap-align: center;
    }
}

@media (min-width: 992px) {
    .reviews__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.review-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 32px;
    transition: var(--transition);
}

.review-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.review-card__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.review-card__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--color-light);
}

.review-card__name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-text);
}

.review-card__role {
    font-size: 0.85rem;
    color: #94A3B8;
}

.review-card__rating {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.star {
    width: 18px;
    height: 18px;
    stroke: none;
    fill: #E2E8F0; /* Сірий для порожніх */
}

.star.filled {
    fill: #F59E0B; /* Amber 500 - Золотий */
}

/* Для половинчастої зірки можна використати opacity або інший колір, 
   але для спрощення SVG тут просто зафарбовуємо повністю або робимо світлішою */
.star-half {
    fill: #FCD34D; 
}

.review-card__text {
    font-size: 0.95rem;
    color: #475569;
    font-style: italic;
    line-height: 1.6;
}

/* Стилізація скролбару для мобільних */
.reviews__grid::-webkit-scrollbar {
    height: 6px;
}

.reviews__grid::-webkit-scrollbar-track {
    background: #F1F5F9;
    border-radius: 10px;
}

.reviews__grid::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 10px;
}

/* FAQ SECTION */
.faq__wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.faq__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.faq__item {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.faq__item.active {
    border-color: var(--color-primary);
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.1);
}

.faq__question {
    width: 100%;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-text);
    transition: color 0.3s ease;
}

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

.faq__icon {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

/* При активном классе иконка поворачивается на 45 градусов (превращается в крестик) */
.faq__item.active .faq__icon {
    transform: rotate(45deg);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq__content {
    padding: 0 24px 24px;
    color: #64748B;
    line-height: 1.6;
    font-size: 0.95rem;
}

.link-inline {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: 500;
}

.link-inline:hover {
    color: var(--color-primary-dark);
}

/* CTA внизу FAQ */
.faq__cta {
    text-align: center;
    padding: 30px;
    background-color: var(--color-light);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

@media (min-width: 576px) {
    .faq__cta {
        flex-direction: row;
        justify-content: center;
        gap: 24px;
    }
}

.faq__cta p {
    font-weight: 600;
    color: var(--color-text);
}

.faq__btn {
    background-color: white;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.faq__btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* CONTACT SECTION */
.contact {
    background: linear-gradient(135deg, #fff 0%, #EEF2FF 100%);
}

.contact__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: start;
}

@media (min-width: 992px) {
    .contact__container {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

/* Ліва частина */
.contact__features {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact__feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact__icon-box {
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 10px;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.contact__feature h4 {
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--color-text);
}

.contact__feature p {
    font-size: 0.9rem;
    color: #64748B;
}

/* Права частина (Форма) */
.contact__form-wrapper {
    background: white;
    padding: 32px; /* Зменшили паддінг для мобільних */
    border-radius: 24px;
    box-shadow: 0 20px 50px -10px rgba(79, 70, 229, 0.15);
    position: relative;
    overflow: hidden;
}

@media (min-width: 576px) {
    .contact__form-wrapper {
        padding: 40px;
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--color-text);
}

.input-wrapper {
    position: relative;
}

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

.form-input {
    width: 100%;
    padding: 12px 16px 12px 48px; /* Місце під іконку */
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

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

/* Специфіка для капчі */
.captcha-group input {
    padding-left: 16px; /* Немає іконки */
}

.error-msg {
    display: none;
    color: #EF4444;
    font-size: 0.85rem;
    margin-top: 6px;
}

.error-msg.visible {
    display: block;
}

/* Чекбокс */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 0.85rem;
    color: #64748B;
}

.form-checkbox input {
    margin-top: 3px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

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

.contact__btn {
    width: 100%;
    justify-content: center;
    gap: 8px;
}

.btn-icon-right {
    width: 18px;
    height: 18px;
}

/* Повідомлення про успіх */
.success-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex; /* Flex, але приховано через opacity/visibility */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    
    /* Стан "приховано" */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 10;
}

.success-message.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.success-icon {
    width: 64px;
    height: 64px;
    background-color: #DEF7EC; /* Green 100 */
    color: #059669; /* Green 600 */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

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

.success-message h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--color-text);
}

.success-message p {
    color: #64748B;
    margin-bottom: 24px;
}

/* =========================================
   COOKIE POP-UP
   ========================================= */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px); /* Спочатку сховано внизу */
    background: #1E293B;
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    width: 90%;
    max-width: 600px;
    opacity: 0;
    transition: all 0.5s ease;
}

.cookie-popup.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

@media (min-width: 576px) {
    .cookie-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.cookie-content p {
    font-size: 0.9rem;
    margin: 0;
}

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

.cookie-content .btn {
    background-color: white;
    color: #1E293B;
    white-space: nowrap;
    padding: 8px 20px;
}

.cookie-content .btn:hover {
    background-color: #F1F5F9;
}

/* =========================================
   СТИЛІ ДЛЯ СТОРІНОК ПОЛІТИК (Privacy, Terms etc.)
   ========================================= */
.pages {
    padding: 120px 0 80px; /* Відступ зверху під хедер */
    background-color: #fff;
}

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

.pages h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 40px;
    color: var(--color-text);
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}

.pages h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--color-text);
}

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

.pages ul {
    margin: 16px 0 24px 20px;
    list-style-type: disc;
    color: #475569;
}

.pages li {
    margin-bottom: 8px;
    padding-left: 8px;
}

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

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

.pages a:hover {
    color: var(--color-primary-dark);
}