/* --- Variables & Setup --- */
:root {
    /* Palette */
    --color-bg: #F8F9FB; /* Светлый холодный фон */
    --color-text: #334155; /* Темно-серый слейт */
    --color-primary: #0F172A; /* Глубокий индиго */
    --color-accent: #F97316; /* Энергичный оранжевый */
    --color-accent-hover: #EA580C;
    --color-white: #FFFFFF;
    --color-border: #E2E8F0;
    
    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 8px;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.2;
}

ul {
    list-style: none;
}

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

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

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

/* --- UI Elements --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--color-accent);
    color: var(--color-white);
    font-weight: 600;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

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

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

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-primary);
}

.logo__icon {
    color: var(--color-accent);
    display: flex;
    align-items: center;
}

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

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

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

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

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

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

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

/* --- Footer --- */
.footer {
    background-color: var(--color-primary);
    color: #94A3B8; /* Muted text for dark bg */
    padding: 60px 0 20px;
    margin-top: auto; /* Push to bottom if content is short */
}

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

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

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

.footer__socials {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer__social-link {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--color-white);
}

.footer__social-link:hover {
    background-color: var(--color-accent);
}

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

.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: 15px;
}

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

.footer__icon {
    color: var(--color-accent);
    width: 20px;
    height: 20px;
    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;
}

/* --- Mobile Adaptivity --- */
@media (max-width: 992px) {
    .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: right 0.3s ease;
        padding: 40px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.05);
    }

    .header__nav.active {
        right: 0;
    }

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

    .nav__link {
        font-size: 1.2rem;
    }

    .header__burger {
        display: block;
    }

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

@media (max-width: 600px) {
    .footer__container {
        grid-template-columns: 1fr;
    }
    
    .header__nav {
        width: 100%;
    }
}

/* --- Hero Section --- */
.hero {
    padding: 120px 0 80px; /* Top padding accounts for fixed header */
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #F8F9FB 0%, #EFF6FF 100%);
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Content Side */
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(15, 23, 42, 0.05);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 24px;
    border: 1px solid rgba(15, 23, 42, 0.1);
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    background-color: #10B981; /* Green status */
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
    animation: pulse 2s infinite;
}

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

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

.hero__description {
    font-size: 1.125rem;
    color: #64748B;
    margin-bottom: 40px;
    max-width: 540px;
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 60px;
}

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

.hero__link:hover {
    color: var(--color-accent);
    gap: 12px; /* Micro-interaction: arrow moves */
}

.hero__stats {
    display: flex;
    gap: 60px;
    border-top: 1px solid var(--color-border);
    padding-top: 30px;
}

.hero__stat-num {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
}

.hero__stat-desc {
    font-size: 0.9rem;
    color: #64748B;
}

/* Visual Side (Canvas) */
.hero__visual {
    width: 100%;
    height: 500px;
    position: relative;
    background: radial-gradient(circle at center, rgba(249, 115, 22, 0.05) 0%, transparent 70%);
    border-radius: 20px;
}

#heroCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Adaptivity */
@media (max-width: 992px) {
    .hero__title { font-size: 2.5rem; }
    .hero__container { grid-template-columns: 1fr; gap: 40px; }
    .hero__visual { order: -1; height: 300px; } /* Visual on top for mobile */
    .hero { text-align: center; padding-top: 100px; }
    .hero__actions { justify-content: center; }
    .hero__stats { justify-content: center; }
    .hero__description { margin: 0 auto 40px; }
}

@media (max-width: 480px) {
    .hero__title { font-size: 2rem; }
    .hero__actions { flex-direction: column; width: 100%; }
    .hero__btn { width: 100%; }
    .hero__stats { gap: 30px; }
}

/* --- General Section Styles --- */
.section {
    padding: 100px 0;
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

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

/* --- Strategies Grid --- */
.strategies__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* --- Cards --- */
.card {
    background: var(--color-white);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.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);
}

/* Micro-animation: colored line on top */
.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.4s ease;
}

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

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

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

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

.card__title {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.card__desc {
    color: #64748B;
    font-size: 1rem;
    margin-bottom: 30px;
    flex-grow: 1; /* Pushes link to bottom */
}

.card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: auto;
}

.card__link:hover {
    color: var(--color-accent);
    gap: 12px;
}

/* --- Scroll Animations Classes --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

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

@media (max-width: 600px) {
    .strategies__grid {
        grid-template-columns: 1fr;
    }
    .section-title {
        font-size: 2rem;
    }
}

/* --- Innovation Section --- */
.innovation {
    background-color: var(--color-white); /* White background to contrast with hero/strategies */
    overflow: hidden;
}

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

/* Badge */
.badge-filled {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 24px;
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.3);
}

.badge-filled i {
    width: 16px;
    height: 16px;
}

/* List */
.innovation__list {
    margin: 30px 0 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.innovation__item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.check-icon {
    min-width: 24px;
    height: 24px;
    background-color: #ECFCCB; /* Lime light */
    color: #65A30D; /* Lime dark */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.check-icon i {
    width: 14px;
    height: 14px;
    stroke-width: 3px;
}

.innovation__note {
    font-size: 0.8rem;
    color: #94A3B8;
    margin-top: 12px;
}

.btn--lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

/* --- Tech Visual (Pure CSS Animation) --- */
.innovation__visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-core {
    position: relative;
    width: 300px;
    height: 300px;
}

.tech-core__circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid var(--color-border);
}

/* Outer Circle */
.tech-core__circle--outer {
    width: 100%;
    height: 100%;
    border-style: dashed;
    border-color: #CBD5E1;
    animation: spin 20s linear infinite;
}

/* Middle Circle */
.tech-core__circle--middle {
    width: 70%;
    height: 70%;
    border: 1px solid var(--color-accent);
    opacity: 0.3;
    animation: pulse-ring 3s ease-in-out infinite;
}

/* Inner Circle */
.tech-core__circle--inner {
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.1) 0%, transparent 70%);
}

.tech-core__center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.2);
    z-index: 2;
}

/* Floating Tech Cards */
.tech-card {
    position: absolute;
    background: var(--color-white);
    padding: 10px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    z-index: 3;
    border-left: 3px solid var(--color-accent);
    animation: float 4s ease-in-out infinite;
}

.tech-card--1 {
    top: 20%;
    right: -20px;
    animation-delay: 0s;
}

.tech-card--2 {
    bottom: 20%;
    left: -20px;
    animation-delay: 2s;
}

.tech-card__label {
    font-size: 0.7rem;
    color: #64748B;
    text-transform: uppercase;
}

.tech-card__val {
    font-weight: 700;
    color: var(--color-primary);
}

/* Keyframes */
@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes pulse-ring {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.1; }
}

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

/* Adaptivity */
@media (max-width: 992px) {
    .innovation__container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .innovation__visual {
        order: -1; /* Visual on top */
        height: 350px;
    }

    .tech-core {
        width: 250px;
        height: 250px;
    }
}

/* --- Analytics / Timeline Section --- */
.analytics {
    background-color: var(--color-bg);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

/* Vertical connecting line */
.timeline__line {
    position: absolute;
    left: 40px; /* Position matches marker center */
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--color-accent), transparent);
    z-index: 1;
}

.timeline__item {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.timeline__item:last-child {
    margin-bottom: 0;
}

/* Number Marker */
.timeline__marker {
    width: 80px;
    height: 80px;
    background-color: var(--color-white);
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-primary);
    box-shadow: 0 0 0 8px var(--color-bg); /* Mask the line behind */
    transition: var(--transition);
}

.timeline__item:hover .timeline__marker {
    background-color: var(--color-accent);
    color: var(--color-white);
    transform: scale(1.1);
}

/* Content Box */
.timeline__content {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    flex-grow: 1;
    border-left: 4px solid transparent;
    transition: var(--transition);
}

.timeline__item:hover .timeline__content {
    border-left-color: var(--color-accent);
    transform: translateX(10px);
}

.timeline__title {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.timeline__text {
    color: #64748B;
    font-size: 0.95rem;
}

.analytics__cta {
    text-align: center;
    margin-top: 60px;
}

/* Adaptivity */
@media (max-width: 768px) {
    .timeline__line {
        left: 20px;
    }
    
    .timeline__marker {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        border-width: 2px;
    }
    
    .timeline__item {
        gap: 20px;
    }
    
    .timeline__content {
        padding: 20px;
    }
}

/* --- Blog / Ledger Section --- */
.blog {
    padding-top: 0; /* Remove top padding to fit marquee nicely */
    background-color: var(--color-bg);
    padding-bottom: 120px;
}

/* --- Marquee (Running Line) --- */
.marquee-wrapper {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 15px 0;
    overflow: hidden;
    white-space: nowrap;
    margin-bottom: 80px;
    transform: rotate(-1deg) scale(1.05); /* Slight tilt for dynamism */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-top: 2px solid var(--color-accent);
    border-bottom: 2px solid var(--color-accent);
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.separator {
    color: var(--color-accent);
    margin: 0 30px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Interactive List --- */
.blog-list {
    display: flex;
    flex-direction: column;
}

.blog-row {
    display: grid;
    grid-template-columns: 200px 1fr 60px; /* Meta | Content | Icon */
    gap: 30px;
    padding: 30px 0;
    border-top: 1px solid var(--color-border);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    text-decoration: none; /* Remove default link underline */
    color: var(--color-text);
}

.blog-row:last-child {
    border-bottom: 1px solid var(--color-border);
}

/* Meta Data */
.blog-row__meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9rem;
    color: #94A3B8;
    transition: inherit;
}

.blog-row__cat {
    color: var(--color-accent);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* Content */
.blog-row__title {
    font-size: 1.5rem;
    margin: 0;
    transition: inherit;
    line-height: 1.2;
}

.blog-row__hidden-text {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    font-size: 1rem;
    margin-top: 0;
    transition: all 0.4s ease;
    color: rgba(255,255,255,0.8); /* Will only be visible on hover bg */
}

/* Icon */
.blog-row__action {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    transition: inherit;
}

/* --- HOVER EFFECTS --- */
.blog-row:hover {
    background-color: var(--color-primary);
    padding-left: 30px; /* Indent content */
    padding-right: 30px;
    border-color: var(--color-primary);
    transform: scale(1.02); /* Slight pop */
    z-index: 10;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border-radius: 8px; /* Smooth corners on hover */
}

.blog-row:hover .blog-row__meta,
.blog-row:hover .blog-row__title,
.blog-row:hover .blog-row__action {
    color: var(--color-white);
}

.blog-row:hover .blog-row__hidden-text {
    max-height: 100px; /* Expand height */
    opacity: 1;
    margin-top: 15px;
}

.blog-row:hover .blog-row__action {
    transform: rotate(45deg); /* Arrow rotates */
    color: var(--color-accent);
}

/* Adaptivity */
@media (max-width: 768px) {
    .blog-row {
        grid-template-columns: 1fr auto;
        grid-template-areas: 
            "meta icon"
            "content content";
        gap: 15px;
    }

    .blog-row__meta { grid-area: meta; flex-direction: row; align-items: center; }
    .blog-row__action { grid-area: icon; justify-content: flex-end; }
    .blog-row__main { grid-area: content; }
    
    .blog-row:hover {
        padding: 20px;
        transform: scale(1);
    }
}

/* --- Contact Section --- */
.contact {
    background-color: var(--color-white);
    position: relative;
}

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

/* Info Side */
.contact__methods {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

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

.method-icon {
    width: 50px;
    height: 50px;
    background-color: #EFF6FF;
    color: var(--color-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.method-link {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
}

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

/* Form Side */
.contact__form-wrapper {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden; /* For success message overlay */
}

.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: opacity 0.3s ease;
}

.form.hidden {
    opacity: 0;
    pointer-events: none;
    position: absolute; /* Take out of flow */
    top: 40px;
    left: 40px;
    right: 40px;
}

.form__group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form__label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
}

.form__input {
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: #F8F9FB;
}

.form__input:focus {
    outline: none;
    border-color: var(--color-accent);
    background-color: var(--color-white);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

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

.checkbox-input {
    margin-top: 4px;
    accent-color: var(--color-accent);
    width: 18px;
    height: 18px;
    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;
}

/* Captcha */
.captcha-group {
    position: relative;
}

.captcha-input {
    width: 80px;
}

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

.captcha-error.show {
    display: block;
}

/* Button */
.btn--block {
    width: 100%;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* Success Message */
.success-message {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    animation: fadeIn 0.5s ease;
    height: 100%;
    min-height: 400px; /* Match form height roughly */
}

.success-message.active {
    display: flex;
}

.success-icon {
    width: 80px;
    height: 80px;
    background-color: #DCFCE7; /* Green light */
    color: #16A34A; /* Green */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

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

.success-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.success-text {
    color: #64748B;
    margin-bottom: 30px;
}

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

/* Adaptivity */
@media (max-width: 992px) {
    .contact__container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .contact__form-wrapper {
        padding: 30px 20px;
    }
}

/* --- Cookie Pop-up --- */
.cookie-popup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--color-white);
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 9999;
    border: 1px solid var(--color-border);
    transform: translateY(150%); /* Hidden by default */
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 400px;
}

.cookie-popup.show {
    transform: translateY(0);
}

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

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

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

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

.btn--sm {
    padding: 8px 16px;
    font-size: 0.9rem;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .cookie-popup {
        bottom: 0;
        right: 0;
        left: 0;
        max-width: 100%;
        border-radius: 12px 12px 0 0;
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .cookie-content {
        flex-direction: column;
    }
}

/* --- Policy Pages Styling (privacy.html, terms.html etc.) --- */
.pages {
    padding: 120px 0 80px; /* Space for fixed header */
    background-color: var(--color-white);
    min-height: 80vh;
}

.pages .container {
    max-width: 800px; /* Readability width */
}

.pages h1 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 20px;
}

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

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

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

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

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

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

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