/* --- VARIABLES --- */
:root {
    --color-bg: #0B0D17;        /* Глибокий темний */
    --color-bg-light: #15192B;  /* Трохи світліший для блоків */
    --color-primary: #7000FF;   /* Електричний фіолетовий */
    --color-accent: #00E5FF;    /* Неоновий ціан/блакитний */
    --color-text: #E0E6ED;      /* Світло-сірий текст */
    --color-text-muted: #94A3B8;
    --color-white: #FFFFFF;

    --font-main: 'Outfit', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;

    --container-width: 1200px;
    --header-height: 80px;
    --radius-sm: 8px;
    --radius-md: 16px;
    
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

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

ul {
    list-style: none;
}

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

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

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-white);
    line-height: 1.2;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--color-accent);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn:hover {
    color: var(--color-bg);
}

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

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

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

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-white);
}

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

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

@media (min-width: 992px) {
    .nav {
        display: block;
    }
    
    .nav__list {
        display: flex;
        gap: 32px;
    }

    .nav__link {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 0.95rem;
        color: var(--color-text);
        font-weight: 500;
    }
    
    .nav__icon {
        width: 16px;
        height: 16px;
        color: var(--color-primary);
        opacity: 0.8;
    }

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

.header__btn {
    display: none;
}

@media (min-width: 992px) {
    .header__btn {
        display: inline-flex;
    }
}

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

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

/* --- FOOTER --- */
.footer {
    background-color: var(--color-bg-light);
    padding-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto; /* Push to bottom if content is short */
}

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

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

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

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

.footer__desc {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

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

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

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

.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer__contact-item i {
    width: 18px;
    height: 18px;
    color: var(--color-primary);
    margin-top: 3px;
    flex-shrink: 0;
}

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

/* --- MOBILE MENU STYLES --- */
@media (max-width: 991px) {
    .nav {
        display: block; /* Повертаємо display, щоб працювали трансформації */
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: rgba(11, 13, 23, 0.98);
        backdrop-filter: blur(15px);
        transform: translateX(100%); /* Ховаємо за межі екрану праворуч */
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        display: flex;
        flex-direction: column;
        padding: 40px 20px;
        overflow-y: auto;
    }

    .nav--open {
        transform: translateX(0); /* Виїжджає на екран */
    }

    .nav__list {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav__item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav__link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 20px 0;
        font-size: 1.2rem;
        color: var(--color-white);
        font-family: var(--font-heading);
    }

    .nav__icon {
        width: 24px;
        height: 24px;
        color: var(--color-primary);
    }

    /* Анімація кнопки бургера */
    .header__burger {
        z-index: 1001;
        transition: var(--transition);
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header__burger svg {
        transition: var(--transition);
    }
    
    /* Додаємо кнопку "Связаться" в мобільне меню (дублюємо стилями, якщо треба, або через JS переміщуємо, але простіше стилізувати) */
    .nav .header__btn--mobile {
        margin-top: 40px;
        display: inline-flex;
        width: 100%;
    }
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 0; /* Місце для marquee знизу */
    overflow: hidden;
    min-height: 100vh; /* На весь екран */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    position: relative;
    z-index: 2;
    margin-bottom: 80px;
}

/* Desktop Layout: Overlap */
@media (min-width: 992px) {
    .hero__container {
        grid-template-columns: 1.2fr 1fr;
        align-items: center;
    }
    
    .hero__content {
        margin-right: -100px; /* Наїжджаємо на картинку */
        z-index: 10;
        position: relative;
    }
}

/* Content Styles */
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(112, 0, 255, 0.1);
    border: 1px solid rgba(112, 0, 255, 0.3);
    border-radius: 50px;
    color: var(--color-accent);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.hero__title {
    font-size: 2.5rem;
    margin-bottom: 24px;
    font-weight: 700;
}

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

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

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

.hero__desc {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 550px;
}

/* Actions & Note */
.hero__actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

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

.hero__note {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--color-text);
}

.hero__note-icon {
    color: #FFD700; /* Gold color for electricity icon */
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

/* Visual Block */
.hero__visual {
    position: relative;
    z-index: 1;
}

.hero__image-wrapper {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    /* Цікава форма через clip-path або просто border-radius */
    border-radius: 40px 8px 40px 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    min-height: 400px;
    filter:  brightness(0.8) contrast(1.1);
}

.hero__glow {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
    opacity: 0.3;
    filter: blur(80px);
    z-index: -1;
}

/* Widget (Floating Chat) */
.hero__widget {
    position: absolute;
    bottom: 40px;
    left: -20px;
    background: rgba(21, 25, 43, 0.9);
    backdrop-filter: blur(12px);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    min-width: 220px;
    animation: float 6s ease-in-out infinite;
}

@media (max-width: 768px) {
    .hero__widget {
        right: 0;
        left: auto;
        bottom: 20px;
    }
}

.hero__widget-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.hero__widget-dot {
    width: 8px;
    height: 8px;
    background-color: #00FF94;
    border-radius: 50%;
    box-shadow: 0 0 5px #00FF94;
}

.hero__msg {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 8px;
    width: fit-content;
}

.hero__msg--active {
    background: var(--color-primary);
    color: white;
    border-bottom-left-radius: 0;
}

/* Marquee (Running Line) */
.marquee {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 0;
    overflow: hidden;
    white-space: nowrap;
    position: absolute;
    bottom: 0;
    left: 0;
}

.marquee__content {
    display: inline-block;
    animation: marquee 30s linear infinite;
    font-family: var(--font-heading);
    color: var(--color-text-muted);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.marquee__content span {
    margin: 0 30px;
}

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

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

/* --- SECTION UTILS --- */
section {
    padding: 80px 0;
}

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

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

.section-desc {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

/* --- SOLUTIONS: BENTO GRID --- */
.spotlight-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    /* Це потрібно для JS ефекту прожектора */
    position: relative; 
}

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

@media (min-width: 1024px) {
    .spotlight-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, auto);
    }
}

/* Картки */
.bento-card {
    background-color: var(--color-bg-light);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.bento-card:hover {
    transform: translateY(-5px);
}

/* Ефект Spotlight через ::before */
.bento-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: var(--radius-md);
    padding: 1px; /* Товщина рамки */
    background: radial-gradient(
        800px circle at var(--mouse-x) var(--mouse-y), 
        rgba(255, 255, 255, 0.4),
        transparent 40%
    );
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0; /* Приховано за замовчуванням */
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 2;
}

/* Показуємо ефект тільки коли наводимо на загальний грід */
.spotlight-grid:hover .bento-card::before {
    opacity: 1;
}

/* Розміри карток для Grid */
@media (min-width: 1024px) {
    .bento-card--lg {
        grid-column: span 2;
        grid-row: span 2;
    }
    .bento-card--wide {
        grid-column: span 1;
        grid-row: span 1; /* Або span 2 якщо хочеш високу */
    }
}

.bento-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-icon-box {
    width: 50px;
    height: 50px;
    background: rgba(112, 0, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.bento-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.bento-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-accent);
    font-weight: 500;
    margin-top: auto;
}

.link-arrow i {
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
}

.link-arrow:hover i {
    transform: translateX(5px);
}

.bento-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-white);
    font-weight: 700;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

/* --- TECH SECTION: TERMINAL --- */
.tech__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: center;
}

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

.tech__list {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

.tech__list li i {
    color: var(--color-primary);
}

/* Terminal Window */
.terminal {
    background: #0F111A;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    font-family: 'Courier New', Courier, monospace;
}

.terminal__header {
    background: #1A1D2B;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal__btns {
    display: flex;
    gap: 8px;
}

.t-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.t-close { background: #FF5F56; }
.t-min { background: #FFBD2E; }
.t-max { background: #27C93F; }

.terminal__title {
    margin-left: 20px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.terminal__body {
    padding: 20px;
    min-height: 300px;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Typing Animation Effects */
.code-line {
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.c-green { color: #27C93F; }
.c-blue { color: #00E5FF; }
.c-dim { color: #6e7681; }
.c-purple { color: #c678dd; }
.c-yellow { color: #e5c07b; }
.c-orange { color: #d19a66; }

.cursor {
    display: inline-block;
    width: 8px;
    background: var(--color-text);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* --- INTEGRATION: ORBIT --- */
.integration {
    overflow: hidden;
}

.orbit-system {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 40px auto;
}

@media (min-width: 768px) {
    .orbit-system {
        width: 500px;
        height: 500px;
    }
}

.orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(112, 0, 255, 0.5);
    z-index: 10;
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.orbit-planet {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--color-bg-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Animations */
.orbit-ring--1 {
    width: 150px;
    height: 150px;
    animation: spin 15s linear infinite;
}
@media (min-width: 768px) { .orbit-ring--1 { width: 220px; height: 220px; } }

.orbit-ring--2 {
    width: 240px;
    height: 240px;
    animation: spin 25s linear infinite reverse;
}
@media (min-width: 768px) { .orbit-ring--2 { width: 360px; height: 360px; } }

.orbit-ring--3 {
    width: 330px;
    height: 330px;
    animation: spin 35s linear infinite;
}
@media (min-width: 768px) { .orbit-ring--3 { width: 500px; height: 500px; } }

/* Fix planet orientation so icons don't rotate with the ring */
.orbit-ring .orbit-planet i {
    animation: spin-counter 15s linear infinite reverse;
}
.orbit-ring--2 .orbit-planet i { animation-duration: 25s; animation-direction: normal; }
.orbit-ring--3 .orbit-planet i { animation-duration: 35s; animation-direction: reverse; }


@keyframes spin { 100% { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes spin-counter { 100% { transform: rotate(-360deg); } }


/* --- CONTACT FORM --- */
.contact__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

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

.contact__content {
    padding-top: 20px;
}

.contact__item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    font-size: 1.1rem;
    color: var(--color-white);
}

.contact__item i {
    color: var(--color-accent);
}

.contact__form-wrapper {
    background: var(--color-bg-light);
    padding: 30px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form__title {
    margin-bottom: 24px;
    font-size: 1.5rem;
}

.form__group {
    margin-bottom: 20px;
}

.form__label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.form__input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(11, 13, 23, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--color-white);
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.form__input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(112, 0, 255, 0.1);
}

.form__error {
    color: #FF5F56;
    font-size: 0.8rem;
    margin-top: 5px;
    display: none; /* Hidden by default */
}

.form__checkbox {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 24px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.form__checkbox input {
    margin-top: 4px;
    cursor: pointer;
}

.btn--full {
    width: 100%;
}

/* Success Message */
.success-message {
    display: none;
    text-align: center;
    padding: 40px 20px;
    animation: fadeIn 0.5s ease;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
}

.success-message h3 {
    margin-bottom: 10px;
}

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

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

.case-card {
    background: var(--color-bg-light);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.case-card:hover {
    transform: translateY(-10px);
    border-color: rgba(112, 0, 255, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Highlighted middle card */
.case-card--highlight {
    background: linear-gradient(145deg, rgba(112, 0, 255, 0.05) 0%, var(--color-bg-light) 100%);
    border-color: rgba(112, 0, 255, 0.2);
}

.case-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.case-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 50px;
}

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

.case-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    min-height: 3rem; /* Для вирівнювання висоти заголовків */
}

.case-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 30px;
    flex-grow: 1;
}

/* Metrics Area */
.case-metrics {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-item {
    flex: 1;
}

.metric-val {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1;
    margin-bottom: 5px;
}

.metric-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    line-height: 1.2;
    display: block;
}

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

.case-footer::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
}

/* --- COOKIE POPUP --- */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(21, 25, 43, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 20px;
    z-index: 9999;
    transform: translateY(150%); /* Сховано за межами екрану */
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    max-width: 400px;
}

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

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

.cookie-content p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0;
}

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

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

/* --- POLICY PAGES STYLES (privacy.html etc) --- */
/* Ці стилі будуть працювати на окремих сторінках */
.pages {
    padding: 120px 0 80px; /* Відступ зверху під фіксований хедер */
    min-height: 80vh;
}

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

.pages h1 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--color-white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

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

.pages p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.pages ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
    color: var(--color-text-muted);
}

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

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

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

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