/* --- VARIABLES & RESET --- */
:root {
    --color-bg: #F8FAFC;
    --color-text-main: #334155;
    --color-text-heading: #0F172A;
    --color-primary: #4F46E5; /* Electric Indigo */
    --color-primary-hover: #4338CA;
    --color-accent: #0EA5E9; /* Sky Blue */
    --color-white: #ffffff;
    --color-footer-bg: #1E293B;
    --color-footer-text: #94A3B8;
    
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    --container-width: 1200px;
    --header-height: 80px;
    --radius-md: 12px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

ul {
    list-style: none;
}

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

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

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

/* --- BUTTONS --- */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
}

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

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

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

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

.header__logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--color-text-heading);
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

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

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

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

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

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

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

/* --- FOOTER --- */
.footer {
    background-color: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: 60px 0 0;
    margin-top: auto; /* Pushes footer down if content is short */
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 60px;
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding-bottom: 50px;
}

.footer__logo {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-white);
    display: block;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.footer__tagline {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.8;
}

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

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

.footer__link {
    font-size: 14px;
}

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

.footer__list--contacts .footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
}

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

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

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

@media (max-width: 768px) {
    .header__nav, .header__cta {
        display: none; /* Hide nav on mobile for now (needs JS to toggle) */
    }
    
    .header__burger {
        display: block;
    }

    /* Mobile Menu Styles when active would go here */
    .header__nav.active {
        display: flex;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--color-white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    
    .nav__list {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

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

    .footer__list--contacts .footer__contact-item {
        justify-content: center;
    }
}

/* --- HERO SECTION --- */
.hero {
    padding: 60px 0 100px;
    position: relative;
    overflow: hidden;
}

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

/* Badge */
.hero__badge-wrapper {
    margin-bottom: 24px;
    opacity: 0; /* Для анімації появи */
    transform: translateY(20px);
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--color-primary);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

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

/* Title */
.hero__title {
    font-family: var(--font-heading);
    font-size: 56px;
    line-height: 1.1;
    font-weight: 800;
    color: var(--color-text-heading);
    margin-bottom: 24px;
}

.hero__title-line {
    display: block;
    opacity: 0; /* Start hidden for animation */
    transform: translateY(20px);
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Description */
.hero__description {
    font-size: 18px;
    color: var(--color-text-main);
    margin-bottom: 40px;
    max-width: 540px;
    opacity: 0;
    transform: translateY(20px);
}

/* Actions */
.hero__actions {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
}

.button--outline {
    background-color: transparent;
    border: 2px solid var(--color-text-heading);
    color: var(--color-text-heading);
}

.button--outline:hover {
    background-color: var(--color-text-heading);
    color: var(--color-white);
}

.hero__note {
    font-size: 13px;
    color: #64748B;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 40px;
    opacity: 0;
}

.hero__note svg {
    width: 14px;
    height: 14px;
}

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

.hero__stat-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--color-text-heading);
}

.hero__stat-desc {
    font-size: 14px;
    color: var(--color-text-main);
}

/* Visual Side */
.hero__visual {
    position: relative;
    perspective: 1000px;
}

.hero__img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255,255,255,0.5);
    opacity: 0; /* Анімація */
}

/* Grid Animation Background */
.hero__grid-anim {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 120%;
    height: 120%;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: repeat(10, 1fr);
    gap: 4px;
    z-index: 1;
    opacity: 0.5;
}

.grid-dot {
    background-color: var(--color-accent);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    opacity: 0.2;
}

/* Floating Card */
.hero__floating-card {
    position: absolute;
    bottom: 40px;
    left: -30px;
    background: white;
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3;
    max-width: 200px;
    animation: float 6s ease-in-out infinite;
}

.hero__floating-icon {
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Responsive */
@media (max-width: 992px) {
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__badge-wrapper, .hero__actions, .hero__note, .hero__stats {
        justify-content: center;
    }
    
    .hero__description {
        margin: 0 auto 40px;
    }
    
    .hero__visual {
        margin-top: 40px;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero__floating-card {
        left: 0;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 36px;
    }
    .hero__actions {
        flex-direction: column;
    }
    .button {
        width: 100%;
    }
}

/* --- COMMON SECTION STYLES --- */
.section {
    padding: 100px 0;
}

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

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

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

.section-subtitle {
    font-size: 16px;
    color: var(--color-text-main);
}

/* --- EVOLUTION CARDS --- */
.evolution__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.evo-card {
    background: var(--color-white);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 20px;
    padding: 40px 30px;
    transition: var(--transition);
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

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

/* Icon Box */
.evo-card__icon-box {
    width: 60px;
    height: 60px;
    background-color: #F1F5F9;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--color-text-heading);
}

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

/* Accent Card Styles */
.evo-card--accent {
    border: 2px solid var(--color-primary);
    background: linear-gradient(to bottom, #ffffff, #F8FAFC);
}

.evo-card__icon-box.filled {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 8px 16px rgba(79, 70, 229, 0.3);
}

.evo-card__badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background-color: var(--color-accent);
    color: var(--color-white);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

/* Typography */
.evo-card__title {
    font-family: var(--font-heading);
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--color-text-heading);
}

.evo-card__desc {
    font-size: 15px;
    color: #64748B;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* List */
.evo-card__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.evo-card__list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}

.evo-card__list li.bad { color: #94A3B8; }
.evo-card__list li.warn { color: #D97706; }
.evo-card__list li.good { color: var(--color-text-heading); }

.evo-card__list li svg {
    width: 16px;
    height: 16px;
}

.evo-card__list li.bad svg { stroke: #EF4444; }
.evo-card__list li.good svg { stroke: #10B981; }

/* Link */
.evo-card__link {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.evo-card__link:hover {
    gap: 10px;
}

/* --- ANIMATION CLASSES (Scroll Reveal) --- */
.reveal-anim {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

/* Responsive */
@media (max-width: 992px) {
    .evolution__grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* --- TECHNOLOGIES SECTION --- */
.technologies {
    background-color: #F1F5F9; /* Трохи темніший фон для візуального розділення */
}

.tech__container {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Ліва колонка трохи вужча */
    gap: 50px;
    align-items: center;
}

/* Left Side: Interactive List */
.tech__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tech__item {
    background: var(--color-white);
    padding: 20px 25px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    opacity: 0.7;
}

.tech__item:hover {
    opacity: 1;
    background: #ffffff;
    transform: translateX(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.tech__item.active {
    opacity: 1;
    border-left-color: var(--color-primary);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.1);
    transform: translateX(10px);
}

.tech__item-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.tech__item-head svg {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
}

.tech__item-head h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-heading);
}

.tech__item-desc {
    font-size: 14px;
    color: #64748B;
    padding-left: 36px; /* Відступ під іконку */
}

.tech__cta-box {
    margin-top: 20px;
}

/* Right Side: Display Window */
.tech__display {
    position: relative;
    height: 500px; /* Фіксована висота */
}

.tech__visual-window {
    background: var(--color-white);
    border-radius: 24px;
    overflow: hidden;
    height: 100%;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.5);
}

.tech__content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    transform: scale(0.95);
}

.tech__content.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 2;
}

.tech__img {
    width: 100%;
    height: 60%;
    object-fit: cover;
    background-color: #e2e8f0; /* Placeholder bg */
}

.tech__info-card {
    padding: 30px;
    height: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(to top, #ffffff, rgba(255,255,255,0.8));
}

.tech__info-card h4 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.tech__info-card p {
    font-size: 15px;
    color: var(--color-text-main);
}

/* Responsive */
@media (max-width: 992px) {
    .tech__container {
        grid-template-columns: 1fr;
    }
    
    .tech__display {
        height: 400px;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .tech__item-desc {
        display: none; /* Спрощуємо список на мобільному */
    }
    .tech__item {
        padding: 15px;
    }
    .tech__info-card {
        padding: 20px;
    }
}
/* --- BLOG SECTION --- */
.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    background: rgba(79, 70, 229, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

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

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

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

/* Image Area */
.blog-card__img-wrapper {
    height: 200px;
    position: relative;
    overflow: hidden;
}

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

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

.blog-card__category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--color-white);
    color: var(--color-text-heading);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

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

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

.blog-card__meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-card__meta svg {
    width: 14px;
    height: 14px;
}

.blog-card__title {
    font-family: var(--font-heading);
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--color-text-heading);
    transition: var(--transition);
}

.blog-card:hover .blog-card__title {
    color: var(--color-primary);
}

.blog-card__excerpt {
    font-size: 15px;
    color: var(--color-text-main);
    margin-bottom: 20px;
    flex-grow: 1;
}

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

.blog-card__link:hover {
    gap: 8px;
}

/* Newsletter Block */
.blog__newsletter {
    background-color: var(--color-text-heading);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    overflow: hidden;
}

/* Decor for newsletter */
.blog__newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05));
    pointer-events: none;
}

.blog__newsletter-content h3 {
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 8px;
}

.blog__newsletter-content p {
    color: #94A3B8;
}

.blog__form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.blog__input {
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: var(--color-white);
    outline: none;
    min-width: 250px;
    font-family: var(--font-main);
}

.blog__input:focus {
    border-color: var(--color-primary);
    background: rgba(255,255,255,0.1);
}

/* Responsive */
@media (max-width: 992px) {
    .blog__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .blog__newsletter {
        flex-direction: column;
        text-align: center;
    }
    .blog__form {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .blog__grid {
        grid-template-columns: 1fr;
    }
    .blog__input {
        width: 100%;
        min-width: auto;
    }
    .blog__form .button {
        width: 100%;
    }
}

/* --- CASES SECTION --- */
.cases {
    position: relative;
    overflow: hidden;
}

/* Controls */
.cases__controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 20px;
    padding-right: 10px;
}

.cases__btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
    background: var(--color-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--color-text-heading);
}

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

/* Slider Track */
.cases__slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 40px; /* Простір для тіні */
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbar */
    scrollbar-width: none; /* Firefox */
}

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

/* Slide & Card */
.cases__slide {
    min-width: 400px;
    scroll-snap-align: start;
}

.case-card {
    background: var(--color-white);
    border-radius: 24px;
    padding: 32px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

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

/* Header */
.case-card__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #F1F5F9;
}

.case-card__icon {
    width: 48px;
    height: 48px;
    background: #F1F5F9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.case-card__client h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--color-text-heading);
}

.case-card__client span {
    font-size: 13px;
    color: #94A3B8;
}

/* Body */
.case-card__body {
    margin-bottom: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.case-card__row strong {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    color: #94A3B8;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.case-card__row p {
    font-size: 15px;
    color: var(--color-text-main);
    line-height: 1.5;
}

/* Footer Results */
.case-card__footer {
    background: var(--color-text-heading);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    color: var(--color-white);
}

.case-card__result {
    display: flex;
    flex-direction: column;
}

.result-num {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-accent);
}

.result-desc {
    font-size: 12px;
    opacity: 0.8;
}

/* Bottom CTA */
.cases__bottom {
    margin-top: 20px;
}

.cases__cta-text {
    margin-bottom: 16px;
    font-size: 18px;
    color: var(--color-text-heading);
    font-weight: 500;
}

/* Responsive */
@media (max-width: 600px) {
    .cases__slide {
        min-width: 85vw; /* На мобільному картка займає майже весь екран */
    }
    
    .cases__controls {
        display: none; /* На мобільному свайпають пальцем */
    }
}

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

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

.contact__info {
    padding-top: 20px;
}

.contact__features {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact__feat {
    display: flex;
    gap: 16px;
}

.contact__feat-icon {
    width: 40px;
    height: 40px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--color-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact__feat h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 4px;
    color: var(--color-text-heading);
}

.contact__feat p {
    font-size: 14px;
    color: #64748B;
}

/* Form Wrapper */
.contact__form-wrapper {
    background: #F8FAFC;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden; /* For success overlay */
}

.contact__form-title {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 24px;
    color: var(--color-text-heading);
}

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

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

.input-wrapper {
    position: relative;
}

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

.form-input {
    width: 100%;
    padding: 14px 16px 14px 48px; /* Space for icon */
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    font-family: var(--font-main);
    font-size: 15px;
    outline: none;
    transition: var(--transition);
    background: var(--color-white);
}

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

.form-input:focus + .input-icon, /* For icon color change on focus */
.input-wrapper:focus-within .input-icon {
    color: var(--color-primary);
}

/* Validation States */
.form-input.error {
    border-color: #EF4444;
    background-color: #FEF2F2;
}

.error-msg {
    display: none;
    font-size: 12px;
    color: #EF4444;
    margin-top: 4px;
}

.form-input.error ~ .error-msg {
    display: block;
}

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

.captcha-input {
    width: 80px;
    padding-left: 16px;
}

/* Checkbox */
.form-check {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    align-items: flex-start;
}

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

.form-check label {
    font-size: 13px;
    color: #64748B;
    line-height: 1.4;
}

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

.width-full {
    width: 100%;
}

/* Success Message Overlay */
.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;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    transform: translateY(20px);
}

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

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

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

/* --- COOKIE POPUP --- */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--color-text-heading);
    color: var(--color-white);
    padding: 16px 24px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 9999;
    width: 90%;
    max-width: 600px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.cookie-content p {
    font-size: 13px;
    margin: 0;
}

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

.button--sm {
    padding: 8px 20px;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
    .contact__container {
        grid-template-columns: 1fr;
    }
    
    .cookie-popup {
        border-radius: 16px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

/* --- POLICY PAGES (privacy.html, terms.html etc.) --- */
.pages {
    padding: 120px 0 80px; /* Відступ зверху, щоб не перекривав хедер */
    min-height: 60vh;
    background-color: #F8FAFC;
}

.pages .container {
    max-width: 800px; /* Вужчий контейнер для зручного читання */
    background: var(--color-white);
    padding: 60px;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
}

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

.pages h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--color-text-heading);
    margin-top: 40px;
    margin-bottom: 16px;
}

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

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

.pages li {
    margin-bottom: 10px;
    color: var(--color-text-main);
}

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

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

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

/* Responsive for pages */
@media (max-width: 768px) {
    .pages .container {
        padding: 30px;
    }
    .pages h1 {
        font-size: 24px;
    }
}