/* --- VARIABLES & RESET --- */
:root {
    --color-primary: #0F172A; /* Slate 900 */
    --color-secondary: #1E293B; /* Slate 800 */
    --color-accent: #3B82F6; /* Blue 500 */
    --color-accent-hover: #2563EB; /* Blue 600 */
    --color-text: #334155; /* Slate 700 */
    --color-text-light: #64748B; /* Slate 500 */
    --color-bg: #F8FAFC; /* Slate 50 */
    --color-white: #FFFFFF;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 8px;
    --shadow: 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;
}

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

/* Image placeholder styling */
img {
    max-width: 100%;
    display: block;
    object-fit: cover;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    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(59, 130, 246, 0.3);
}

.btn__icon {
    width: 18px;
    height: 18px;
}

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

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-primary);
}

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

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

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

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

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

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

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

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

    .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;
        padding: 40px;
        transition: right 0.3s ease-in-out;
        border-top: 1px solid #E2E8F0;
    }

    .nav.is-active {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        align-items: center;
        gap: 24px;
        margin-bottom: 40px;
    }

    .nav__link {
        font-size: 1.25rem;
    }
}

/* --- FOOTER --- */
.footer {
    background-color: var(--color-primary);
    color: #94A3B8; /* Slate 400 */
    padding: 80px 0 20px;
    margin-top: auto;
}

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

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

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

.footer__desc {
    margin: 20px 0;
    font-size: 0.9rem;
    max-width: 300px;
}

.footer__badges span {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

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

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

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
}

.contact-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-top: 20px;
    text-align: center;
    font-size: 0.85rem;
}

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

@media (max-width: 576px) {
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

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

.hero__canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none; /* Mouse passes through to content */
}

.hero__container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}

.hero__content {
    max-width: 800px;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Badge */
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 32px;
    backdrop-filter: blur(4px);
}

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

.text-gradient {
    background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__description {
    font-size: 1.2rem;
    color: #CBD5E1; /* Slate 300 */
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
}

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

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

.btn--outline:hover {
    background: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
}

/* Stats */
.hero__stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

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

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

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

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

/* Scroll Indicator */
.hero__scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0.7;
}

.hero__scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid #fff;
    border-radius: 20px;
    display: block;
    position: relative;
}

.hero__scroll-wheel {
    width: 4px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% { top: 6px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

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

/* --- SECTIONS COMMON --- */
.section {
    padding: 100px 0;
    position: relative;
}

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

.section__title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.text-accent {
    color: var(--color-accent);
}

.section__subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
}

/* --- ABOUT SECTION & CARDS --- */
.about {
    background-color: var(--color-white);
}

.about__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--color-bg);
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
}

.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);
    background-color: #fff;
}

.card__icon-box {
    width: 60px;
    height: 60px;
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--color-accent);
    transition: all 0.3s ease;
}

.card__icon-box i {
    width: 32px;
    height: 32px;
}

.card:hover .card__icon-box {
    background-color: var(--color-accent);
    color: var(--color-white);
    transform: rotate(3deg);
}

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

.card__text {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* --- SCROLL ANIMATION CLASSES --- */
.reveal-anim {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal-anim.active {
    opacity: 1;
    transform: translateY(0);
}

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

/* --- SOLUTIONS (TIMELINE) --- */
.solutions {
    background-color: #F1F5F9; /* Slate 100 - трохи темніший фон для контрасту */
}

.timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin: 60px 0 80px;
    padding: 0 20px;
}

/* Сіра лінія на фоні */
.timeline__line {
    position: absolute;
    top: 30px; /* По центру маркера */
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #E2E8F0;
    z-index: 0;
    border-radius: 4px;
}

/* Прогрес лінії (візуальний трюк - градієнт) */
.timeline__line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0; /* JS може змінювати це, або залишимо статичним декоративним елементом */
    background: linear-gradient(to right, var(--color-accent), var(--color-accent-hover));
    transition: width 1s ease;
}

.timeline__step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 23%; /* 4 кроки з відступами */
}

.timeline__marker {
    width: 60px;
    height: 60px;
    background-color: var(--color-white);
    border: 4px solid #E2E8F0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--color-text-light);
    transition: all 0.4s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.timeline__marker i {
    width: 24px;
    height: 24px;
}

/* Active State on Hover (імітація інтерактиву) */
.timeline__step:hover .timeline__marker {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.2);
}

.timeline__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--color-primary);
}

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

/* CTA BOX */
.solutions__cta {
    background-color: var(--color-primary);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    color: var(--color-white);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    background-image: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)), url('img/placeholder.png'); /* Можна додати патерн */
    background-size: cover;
}

.solutions__cta-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.solutions__cta-content p {
    color: #CBD5E1;
}

/* --- RESPONSIVE TIMELINE --- */
@media (max-width: 992px) {
    .timeline {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 30px;
    }

    .timeline__line {
        width: 4px;
        height: 100%;
        top: 0;
        left: 59px; /* Центрування по маркеру */
    }

    .timeline__step {
        width: 100%;
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        margin-bottom: 40px;
        gap: 20px;
    }

    .timeline__marker {
        flex-shrink: 0;
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .solutions__cta {
        flex-direction: column;
        text-align: center;
    }
    
    .timeline__line {
        left: 28px; /* Коригування під менший екран, якщо потрібно */
    }
}

/* --- BLOG SECTION --- */
.blog {
    background-color: var(--color-white);
    overflow: hidden; /* Hide scrollbars outside container */
}

.blog__header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.section__header--left {
    margin: 0;
    text-align: left;
    max-width: 600px;
}

/* Slider Controls */
.blog__controls {
    display: flex;
    gap: 12px;
}

.slider-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #E2E8F0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

/* Slider Track */
.blog__slider {
    display: flex;
    gap: 30px;
    overflow-x: auto; /* Enable horizontal scroll */
    scroll-snap-type: x mandatory; /* Native CSS Snap */
    scroll-behavior: smooth;
    padding-bottom: 40px; /* Space for shadow/hover effect */
    margin: 0 -20px; /* Negative margin to let cards touch screen edge on mobile */
    padding: 10px 20px 40px; /* Compensate negative margin */
    
    /* Hide scrollbar visually but keep functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE 10+ */
}

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

/* Blog Card */
.blog-card {
    min-width: 350px; /* Fixed width for slider items */
    scroll-snap-align: start; /* Snap point */
    background-color: var(--color-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #E2E8F0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

.blog-card__image {
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

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

.blog-card__tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: var(--color-white);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

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

.blog-card__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    color: var(--color-primary);
}

.blog-card__excerpt {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 24px;
    flex-grow: 1; /* Pushes link to bottom */
}

.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);
    gap: 10px; /* Animation on hover */
}

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

/* Responsive */
@media (max-width: 768px) {
    .blog__header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .blog__controls {
        display: none; /* Hide buttons on mobile, natural scroll is better */
    }

    .blog-card {
        min-width: 280px;
    }
}

/* --- REVIEWS --- */
.reviews {
    background-color: #F8FAFC;
}

.reviews__badge {
    display: inline-block;
    background: #FEF3C7;
    color: #D97706;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 10px;
}

.reviews__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background: var(--color-white);
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #F1F5F9;
}

.review-card__stars {
    color: #F59E0B; /* Amber 500 */
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.review-card__text {
    font-size: 1rem;
    font-style: italic;
    color: var(--color-text);
    margin-bottom: 24px;
    line-height: 1.6;
}

.review-card__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    display: block;
    font-weight: 700;
    color: var(--color-primary);
}

.author-role {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* --- CONTACT SECTION --- */
.contact {
    background-color: var(--color-white);
    padding-bottom: 100px;
}

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

/* Contact Info (Left) */
.contact__title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--color-primary);
}

.contact__desc {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 40px;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact__detail-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-circle {
    width: 48px;
    height: 48px;
    background-color: #EFF6FF; /* Blue 50 */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
}

.detail-label {
    display: block;
    font-size: 0.85rem;
    color: #94A3B8;
    margin-bottom: 4px;
}

.detail-value {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 1.1rem;
}

/* Contact Form (Right) */
.contact__form-box {
    background: var(--color-white);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.form__group {
    margin-bottom: 20px;
    position: relative;
}

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

.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: 14px 16px 14px 48px;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.form__input:focus {
    border-color: var(--color-accent);
}

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

.form__input.error {
    border-color: #EF4444; /* Red 500 */
}

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

.form__input.error + .error-msg,
.form__input.error ~ .error-msg {
    display: block;
}

/* Captcha */
.form__input--sm {
    padding-left: 16px;
    width: 120px;
}

/* Checkbox */
.form__checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 30px;
}

.checkbox-input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
}

.checkbox-label {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.4;
    cursor: pointer;
}

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

.btn--full {
    width: 100%;
    justify-content: center;
}

/* Success Message */
.success-message {
    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;
}

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

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

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

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

/* --- COOKIE POPUP --- */
.cookie-popup {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px); /* Start hidden below */
    width: 90%;
    max-width: 600px;
    background-color: var(--color-white);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 16px 24px;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-popup.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: all;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-text {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--color-text);
}

.cookie-text i {
    color: var(--color-accent);
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

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

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

@media (max-width: 576px) {
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .cookie-text {
        flex-direction: column;
        margin-bottom: 12px;
    }
}

/* --- TEXT PAGES (Privacy, Terms, etc.) --- */
/* Ці стилі працюватимуть на окремих сторінках: privacy.html і т.д. */

.pages {
    padding: 120px 0 80px; /* More top padding because of fixed header */
    background-color: var(--color-white);
    min-height: 80vh;
}

.pages .container {
    max-width: 800px; /* Narrower container for better readability */
}

.pages h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E2E8F0;
}

.pages h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-primary);
    margin: 40px 0 16px;
}

.pages p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 16px;
}

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

.pages li {
    margin-bottom: 8px;
    color: var(--color-text);
    line-height: 1.6;
}

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

.pages strong {
    color: var(--color-primary);
}