/* --- Global Variables & Reset --- */
:root {
    /* Палітра: Глибокий синій, Свіжий м'ятний, Світло-сірий */
    --color-bg: #F8FAFC;
    --color-text: #334155;
    --color-heading: #0F172A;
    
    --color-primary: #1E293B; /* Основний темний */
    --color-accent: #14B8A6; /* Акцентний м'ятний */
    --color-accent-hover: #0D9488;
    
    --color-white: #FFFFFF;
    --color-border: #E2E8F0;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

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

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

html {
    scroll-behavior: smooth;
}

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

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

ul {
    list-style: none;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.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 4px 12px rgba(20, 184, 166, 0.3);
}

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

.header__container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

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

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

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

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

.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 {
    color: var(--color-accent);
}

.header__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 Logic */
@media (max-width: 992px) {
    .header__nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--color-white);
        padding: 20px;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
    }

    .header__nav.is-open {
        transform: translateY(0);
    }

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

    .header__burger {
        display: block;
    }
}

/* --- Footer --- */
.footer {
    background-color: var(--color-primary);
    color: #94A3B8; /* Slate-400 */
    padding: 60px 0 20px;
}

.footer__container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer__logo {
    display: inline-block;
    color: var(--color-white);
    margin-bottom: 20px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
}

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

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

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

.footer__link {
    font-size: 0.95rem;
    transition: var(--transition);
}

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

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

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

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

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

/* Адаптив футера */
@media (max-width: 768px) {
    .footer__container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* --- Hero Section --- */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh; /* На весь екран */
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
    background-color: var(--color-primary); /* Темний фон підкладка */
}

.hero__canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Напівпрозорий шар поверх канвасу для кращої читабельності тексту */
.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(30, 41, 59, 0.7) 100%);
    z-index: 2;
}

.hero__container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero__content {
    max-width: 700px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(20, 184, 166, 0.1);
    color: var(--color-accent);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 24px;
    border: 1px solid rgba(20, 184, 166, 0.2);
}

.hero__badge i {
    width: 16px;
    height: 16px;
}

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

.text-gradient {
    background: linear-gradient(90deg, #2DD4BF 0%, #38BDF8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__desc {
    font-size: 1.15rem;
    color: #CBD5E1; /* Slate-300 */
    margin-bottom: 32px;
    max-width: 600px;
}

.hero__desc strong {
    color: var(--color-white);
    font-weight: 600;
}

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

.hero__btn i {
    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-white);
    background: rgba(255, 255, 255, 0.05);
}

.hero__stats {
    display: flex;
    align-items: center;
    gap: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.hero__stat-num {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-white);
}

.hero__stat-label {
    font-size: 0.9rem;
    color: #94A3B8;
}

.hero__stat-divider {
    width: 1px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Адаптив Hero */
@media (max-width: 768px) {
    .hero__title {
        font-size: 2.5rem;
    }
    
    .hero__actions {
        flex-direction: column;
    }
    
    .hero__btn {
        width: 100%;
    }
    
    .hero__badge {
        font-size: 0.8rem;
    }
}

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

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

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

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

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

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

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

/* --- Methodology Section --- */
.methodology {
    background-color: var(--color-white);
}

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

.step-card {
    background-color: var(--color-bg);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.step-card__icon-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    background-color: var(--color-white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

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

.step-card__number {
    position: absolute;
    top: -10px;
    right: -10px;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: #E2E8F0;
    opacity: 0.5;
    z-index: 0;
    line-height: 1;
}

.step-card__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.step-card__desc {
    color: #64748B;
    font-size: 1rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.step-card__desc strong {
    color: var(--color-primary);
    font-weight: 600;
}

.methodology__cta {
    text-align: center;
    margin-top: 40px;
}

/* Адаптив */
@media (max-width: 992px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Анімація появи (Reveal) */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Expertise Section (Dark Theme) --- */
.expertise {
    background-color: #0F172A; /* Дуже темний синій */
    color: var(--color-white);
    padding: 100px 0;
}

.expertise .section-title {
    color: var(--color-white);
}

.expertise .section-subtitle {
    color: #94A3B8;
}

/* Bento Grid Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(250px, auto); /* Мінімальна висота рядка */
    gap: 20px;
}

/* Bento Card Base Style */
.bento-card {
    background-color: #1E293B; /* Slate-800 */
    border-radius: 24px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Spotlight Effect Layer (буде керуватись через JS) */
.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(255, 255, 255, 0.06), 
        transparent 40%
    );
    opacity: 0; /* JS змінить це */
    transition: opacity 0.5s;
    z-index: 1;
    pointer-events: none;
}

.bento-grid:hover .bento-card::before {
    opacity: 1;
}

.bento-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Grid Spans */
.bento-card--wide {
    grid-column: span 2;
}

.bento-card--tall {
    grid-row: span 2;
    background: linear-gradient(180deg, #1E293B 0%, #0F172A 100%);
}

.bento-card--accent {
    background: linear-gradient(135deg, var(--color-accent) 0%, #0D9488 100%);
    border: none;
}

/* Content Styling */
.bento-icon-bg {
    width: 50px;
    height: 50px;
    background: rgba(20, 184, 166, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    margin-bottom: 20px;
}

.bento-icon-lg {
    width: 40px;
    height: 40px;
    color: var(--color-accent);
    margin-bottom: 20px;
}

.bento-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-white);
}

.bento-desc {
    font-size: 0.95rem;
    color: #94A3B8;
    line-height: 1.6;
}

.bento-desc strong {
    color: var(--color-white);
}

/* Special Styles for Accent Card */
.bento-flex {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.text-white { color: #fff; }
.text-white-opacity { color: rgba(255, 255, 255, 0.9); }

.btn--white {
    background-color: #fff;
    color: var(--color-accent);
    flex-shrink: 0;
}
.btn--white:hover {
    background-color: #f1f5f9;
    color: var(--color-accent-hover);
}

/* Animated Chart in Tall Card */
.chart-visual {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 150px;
    margin: 30px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chart-bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px 4px 0 0;
    height: 0;
    animation: growBar 1.5s ease-out forwards;
    animation-delay: 0.5s;
}

.chart-bar.highlight {
    background: var(--color-accent);
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.4);
}

@keyframes growBar {
    to { height: var(--h); }
}

.bento-footer-text {
    margin-top: auto;
    font-size: 0.85rem;
    color: #64748B;
}

/* Responsive Bento */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-card--tall {
        grid-row: auto;
        grid-column: span 2; /* Chart becomes wide on tablet */
    }
    .chart-visual {
        height: 100px;
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-card--wide, 
    .bento-card--tall {
        grid-column: span 1;
    }
    .bento-flex {
        flex-direction: column;
        align-items: flex-start;
    }
    .btn--white {
        width: 100%;
    }
}

/* --- Marquee (Рухома стрічка) --- */
.marquee-container {
    background-color: var(--color-accent);
    color: var(--color-primary);
    padding: 15px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 10;
    transform: rotate(-1deg) scale(1.05); /* Легкий нахил для стилю */
    margin: 50px 0;
    border-top: 2px solid var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.marquee-content .divider {
    margin: 0 20px;
    opacity: 0.5;
}

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

/* --- Solutions (Sticky Stack) --- */
.solutions {
    background-color: var(--color-bg);
    padding-bottom: 100px;
}

.stack-wrapper {
    position: relative;
    margin-top: 50px;
    /* Важливо для контексту карток */
}

.stack-card {
    position: sticky; /* Магія липкості */
    top: 120px; /* Відступ зверху, де картка "прилипне" */
    
    background-color: var(--color-white);
    border-radius: 24px;
    border: 1px solid var(--color-border);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.05);
    margin-bottom: 40px; /* Відступ між картками в потоці */
    overflow: hidden;
    transform-origin: center top;
    transition: transform 0.3s ease;
}

/* Кожна наступна картка трохи вища, щоб створити ефект стопки */
#card-1 { top: 120px; z-index: 1; }
#card-2 { top: 140px; z-index: 2; }
#card-3 { top: 160px; z-index: 3; }

.stack-card__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 60px;
    min-height: 400px; /* Фіксована висота для однакового розміру */
}

.stack-card__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stack-card__num {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    color: #F1F5F9; /* Дуже світлий сірий */
    line-height: 1;
    margin-bottom: -20px;
    position: relative;
    z-index: 0;
}

.stack-card__title {
    font-size: 2rem;
    color: var(--color-heading);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.stack-card__desc {
    color: #64748B;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.stack-card__list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 500;
}

.stack-card__list i {
    color: var(--color-accent);
    width: 20px;
}

.stack-card__tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background-color: #F0FDFA;
    color: var(--color-accent-hover);
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    width: fit-content;
}

/* Visuals (Right side of cards) */
.stack-card__visual {
    background-color: #F8FAFC;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Visual 1: Map Points */
.map-point {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.2);
    animation: pulse 2s infinite;
}
.p1 { top: 30%; left: 40%; }
.p2 { top: 50%; left: 60%; animation-delay: 0.5s; }
.p3 { top: 40%; left: 20%; animation-delay: 1s; }

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.4); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(20, 184, 166, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(20, 184, 166, 0); }
}

/* Visual 2: Code Lines */
.visual-code {
    flex-direction: column;
    padding: 40px;
    align-items: flex-start;
    gap: 15px;
    background-color: #1E293B;
}
.code-line {
    height: 12px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 6px;
}
.w-80 { width: 80%; }
.w-60 { width: 60%; }
.w-90 { width: 90%; }
.w-40 { width: 40%; }
.code-badge {
    margin-top: 20px;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: monospace;
}

/* Visual 3: Graph Circle */
.graph-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 10px solid var(--color-accent);
    border-right-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-45deg);
}
.graph-circle span {
    transform: rotate(45deg); /* Повертаємо текст назад */
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-heading);
}

/* Адаптив Stack Card */
@media (max-width: 992px) {
    .stack-card__content {
        grid-template-columns: 1fr;
        padding: 40px;
    }
    .stack-card__visual {
        height: 200px;
    }
}

/* --- Blog Section --- */
.blog {
    background-color: #F8FAFC;
    overflow: hidden; /* Щоб приховати скролбар */
}

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

.blog__nav {
    display: flex;
    gap: 10px;
}

.blog__nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--color-heading);
}

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

/* Slider Style */
.blog__slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 40px; /* Місце для тіні */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    padding-right: 20px; /* Відступ справа */
}

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

/* Blog Card */
.blog-card {
    min-width: 350px;
    max-width: 350px;
    background: var(--color-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid var(--color-border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.blog-card__cover {
    height: 200px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

/* Generative Gradients for Covers */
.gradient-1 { background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 100%); }
.gradient-2 { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }
.gradient-3 { background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%); }
.gradient-4 { background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%); }

.blog-card__tag {
    background: rgba(255,255,255,0.9);
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-heading);
}

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

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

.dot {
    width: 4px;
    height: 4px;
    background: #CBD5E1;
    border-radius: 50%;
}

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

.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;
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.95rem;
}

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

.blog-card__link:hover {
    color: var(--color-accent-hover);
    gap: 10px; /* Анімація стрілки */
}

/* Адаптив */
@media (max-width: 768px) {
    .blog-card {
        min-width: 300px;
        max-width: 300px;
    }
    .blog__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

/* --- Contact Section --- */
.contact {
    background-color: #0F172A; /* Темний фон */
    padding: 100px 0;
    color: var(--color-white);
}

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

.contact__title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.contact__desc {
    font-size: 1.1rem;
    color: #94A3B8;
    margin-bottom: 40px;
    line-height: 1.6;
}

.contact__desc strong {
    color: var(--color-white);
}

.contact__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.contact__list li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    font-weight: 500;
}

.contact__icon-box {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(20, 184, 166, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
}

.contact__secure {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #64748B;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Form Styles */
.contact__form-wrapper {
    background: var(--color-white);
    padding: 40px;
    border-radius: 24px;
    color: var(--color-text);
    position: relative;
    overflow: hidden;
}

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

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

.input-wrapper {
    position: relative;
}

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

.form-input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background-color: #F8FAFC;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.1);
}

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

.captcha-question {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-heading);
    background: #F1F5F9;
    padding: 10px 15px;
    border-radius: 8px;
    letter-spacing: 2px;
    user-select: none;
}

.captcha-input {
    padding-left: 16px; /* Reset padding */
    width: 80px;
    text-align: center;
}

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

/* Checkbox */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 25px;
    font-size: 0.85rem;
}

.check-input {
    margin-top: 4px;
    accent-color: var(--color-accent);
}

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

.form-btn {
    width: 100%;
    gap: 10px;
}

/* Success Message */
.success-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    opacity: 0;
    pointer-events: none; /* Щоб не перекривало форму до відправки */
    transition: opacity 0.5s ease;
    z-index: 10;
}

.success-message.is-active {
    opacity: 1;
    pointer-events: all;
}

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

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

.success-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-heading);
    margin-bottom: 10px;
}

.success-desc {
    color: #64748B;
}

/* --- Cookie Popup --- */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px; /* Зліва, щоб не перекривати чат-боти якщо будуть */
    max-width: 400px;
    background: var(--color-white);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border: 1px solid var(--color-border);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transform: translateY(150%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

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

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

.cookie-text a {
    color: var(--color-accent);
    font-weight: 500;
}

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

/* --- Pages Styles (Privacy, Terms etc) --- */
.pages {
    padding: 120px 0 60px; /* Відступ під фіксований хедер */
    background: var(--color-bg);
}

.pages .container {
    background: var(--color-white);
    padding: 60px;
    border-radius: 24px;
    border: 1px solid var(--color-border);
}

.pages h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--color-heading);
}

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

.pages p {
    margin-bottom: 15px;
    color: #475569;
}

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

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

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

/* Адаптив контактів */
@media (max-width: 992px) {
    .contact__wrapper {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 500px) {
    .contact__form-wrapper {
        padding: 25px;
    }
    .pages .container {
        padding: 30px;
    }
}