:root {
    /* Modern AI Palette */
    --color-bg: #0F1115;          /* Почти черный, глубокий фон */
    --color-surface: #181A20;     /* Цвет карточек */
    --color-primary: #6366F1;     /* Indigo - основной акцент */
    --color-secondary: #EC4899;   /* Pink - градиентный акцент */
    --color-text: #FFFFFF;        /* Белый текст */
    --color-text-muted: #9CA3AF;  /* Серый текст */
    --color-border: rgba(255, 255, 255, 0.1);

    /* Fonts */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Manrope', sans-serif;

    /* Layout */
    --container-width: 1240px;
    --header-height: 80px;
    --radius-lg: 24px;
    --radius-full: 999px;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 100px; /* Чтобы хедер не перекрывал контент */
}

a { text-decoration: none; color: inherit; transition: 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

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

/* --- HEADER (Floating Glass Island) --- */
.header {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    z-index: 1000;
    pointer-events: none; /* Чтобы клики проходили по бокам от "острова" */
}

.header__glass-island {
    pointer-events: auto;
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(24, 26, 32, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* При скролле можно немного уменьшать остров через JS, но пока оставим так */

.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header__logo-shape {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 8px;
    /* Абстрактная форма логотипа */
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.header__logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.header__nav {
    display: flex;
}

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

.header__link {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-muted);
    position: relative;
}

.header__link:hover, .header__link.active {
    color: var(--color-text);
}

.header__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    transition: transform 0.3s ease;
    border-radius: 2px;
}

.header__link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

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

/* Glowing Button */
.btn-glow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-text);
    color: var(--color-bg);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

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

.btn-glow:hover::before {
    opacity: 1;
}

/* Burger */
.header__burger {
    display: none;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.burger-line {
    width: 18px;
    height: 2px;
    background-color: var(--color-text);
    transition: 0.3s;
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-bg);
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu__list {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu__link {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--color-text);
}

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

/* --- FOOTER (Bento Grid) --- */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--color-border);
    margin-top: 100px;
}

.footer__top {
    margin-bottom: 60px;
    text-align: center;
}

.footer__headline {
    font-family: var(--font-heading);
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 16px;
}

.text-gradient {
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer__subhead {
    font-size: 18px;
    color: var(--color-text-muted);
}

/* Bento Grid System */
.footer__bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto; /* 2 ряда */
    gap: 24px;
    margin-bottom: 60px;
}

.bento-box {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.bento-box:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
}

/* Grid Areas configuration */
.bento-brand {
    grid-column: span 2; /* Занимает 2 колонки */
    grid-row: span 1;
}

.bento-nav {
    grid-column: span 1;
}

.bento-contacts {
    grid-column: span 1;
}

.bento-legal {
    grid-column: span 4; /* На всю ширину снизу */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

/* Brand Box Styles */
.footer__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer__logo-text {
    font-size: 24px;
    font-weight: 700;
    font-family: var(--font-heading);
}

.footer__desc {
    color: var(--color-text-muted);
    font-size: 15px;
    margin-bottom: 20px;
    max-width: 400px;
}

.footer__eu-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-full);
    font-size: 12px;
    color: var(--color-primary);
    font-weight: 600;
}

.footer__eu-badge i { width: 14px; height: 14px; }

/* Lists */
.footer__nav-list, .footer__legal-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__legal-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
}

.footer__nav-list a, .footer__legal-list a {
    color: var(--color-text-muted);
    font-size: 15px;
}

.footer__nav-list a:hover, .footer__legal-list a:hover {
    color: var(--color-secondary);
}

/* Contacts */
.footer__address {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--color-text-muted);
}

.contact-row i {
    color: var(--color-secondary);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
    font-size: 14px;
    color: rgba(255,255,255,0.3);
}

/* MEDIA QUERIES */
@media (max-width: 992px) {
    .header__nav { display: none; }
    .header__burger { display: flex; }
    .header__glass-island { width: 95%; padding: 10px 20px; }
    
    .footer__bento {
        grid-template-columns: 1fr 1fr;
    }
    
    .bento-brand { grid-column: span 2; }
    .bento-nav { grid-column: span 1; }
    .bento-contacts { grid-column: span 1; }
    .bento-legal { 
        grid-column: span 2; 
        flex-direction: column; 
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .header__logo-text { display: none; }
    
    .footer__headline { font-size: 32px; }
    
    .footer__bento {
        grid-template-columns: 1fr;
    }
    
    .bento-brand, .bento-nav, .bento-contacts, .bento-legal {
        grid-column: span 1;
    }
    
    .footer__legal-list { flex-direction: column; gap: 10px; }
}

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

/* Фонове світіння */
.hero__bg-glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, rgba(236, 72, 153, 0.1) 40%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    animation: pulseGlow 8s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.5; }
    100% { transform: scale(1.2) translate(-50px, 50px); opacity: 0.8; }
}

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

.hero__content {
    max-width: 580px;
}

/* Бейдж */
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    font-size: 14px;
    color: var(--color-secondary);
    margin-bottom: 24px;
    font-weight: 600;
}

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

/* Заголовок */
.hero__title {
    font-family: var(--font-heading);
    font-size: 56px;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 24px;
}

/* Анімований градієнт тексту */
.text-gradient-animate {
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary), var(--color-primary));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 5s linear infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hero__subtitle {
    font-size: 18px;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 480px;
}

/* Actions */
.hero__actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

.btn-glow-large {
    padding: 16px 32px;
    font-size: 16px;
    gap: 10px;
}

.hero__note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--color-text-muted);
}

.hero__note i { color: var(--color-primary); width: 16px; height: 16px; }

/* --- INTERACTIVE LENS VISUAL --- */
.hero__visual {
    position: relative;
    /* Змінні для позиції курсору, оновлюються через JS */
    --x: 50%;
    --y: 50%;
}

.lens-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3; /* Співвідношення сторін для зображення */
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    cursor: none; /* Ховаємо стандартний курсор */
}

.lens-base, .lens-enhanced {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lens-base {
    filter: grayscale(100%) contrast(0.8) brightness(0.8); /* Робимо базу "нудною" */
}

.lens-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Магія лінзи: вирізаємо коло в точці X,Y */
    clip-path: circle(120px at var(--x) var(--y));
    transition: clip-path 0.1s ease; /* Плавність руху */
    z-index: 2;
}

.lens-enhanced {
    /* "Покращене" зображення: яскраве, насичене */
    filter: contrast(1.1) saturate(1.2);
}

/* Кастомний курсор-лінза */
.lens-cursor {
    position: absolute;
    top: var(--y);
    left: var(--x);
    transform: translate(-50%, -50%);
    width: 240px; /* Має співпадати з діаметром clip-path circle (120px * 2) */
    height: 240px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3), inset 0 0 20px rgba(99, 102, 241, 0.1);
    transition: all 0.1s ease;
}

/* Збільшуємо лінзу при наведенні */
.lens-container:hover .lens-overlay {
     clip-path: circle(150px at var(--x) var(--y));
}

.lens-container:hover .lens-cursor {
    width: 300px;
    height: 300px;
    border-color: var(--color-primary);
}

.hero__visual-caption {
    text-align: center;
    font-size: 14px;
    color: var(--color-text-muted);
    margin-top: 16px;
    opacity: 0.7;
}

/* HERO MEDIA QUERIES */
@media (max-width: 992px) {
    .hero { padding: 40px 0 60px; }
    .hero__container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero__content { margin: 0 auto; }
    .hero__title { font-size: 42px; }
    .hero__subtitle { margin: 0 auto 30px; }
    .hero__actions { align-items: center; }
    
    /* На мобільних лінза буде по центру і статична, бо немає ховера мишкою */
    .lens-overlay {
        clip-path: circle(120px at 50% 50%);
    }
    .lens-cursor {
        top: 50%; left: 50%;
        width: 240px; height: 240px;
    }
    .lens-container { pointer-events: auto; cursor: default; }
}

@media (max-width: 576px) {
    .hero__title { font-size: 32px; }
    .btn-glow-large { width: 100%; }
}

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

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

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

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-badge i { width: 14px; height: 14px; }

.section-title {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
}

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

/* --- PRACTICE TABS --- */
.practice__tabs-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Nav Buttons */
.practice__nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.practice__nav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.practice__nav-btn i { width: 18px; height: 18px; }

.practice__nav-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.02);
}

.practice__nav-btn.active {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-color: transparent;
    color: var(--color-white);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
}

/* Content Panels */
.practice__panel {
    display: none; /* Скрываем неактивные табы */
    animation: fadeUp 0.5s ease forwards;
}

.practice__panel.active {
    display: block; /* Показываем активный */
}

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

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

.practice__panel-title {
    font-family: var(--font-heading);
    font-size: 32px;
    margin-bottom: 16px;
}

.practice__panel-desc {
    color: var(--color-text-muted);
    font-size: 16px;
    margin-bottom: 32px;
}

.practice__benefits {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.practice__benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--color-text);
}

.practice__benefits li i {
    color: var(--color-secondary);
    width: 20px; height: 20px;
    flex-shrink: 0;
}

/* Glowing Text Link */
.btn-text-glow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--color-primary);
    transition: var(--transition);
}

.btn-text-glow:hover {
    color: var(--color-secondary);
    gap: 10px; /* Небольшая анимация стрелки */
}

.btn-text-glow i { width: 18px; height: 18px; transition: 0.3s; }

/* Media Card (Right side) */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    aspect-ratio: 1/1; /* Квадратная карточка */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Декоративное свечение внутри карточки */
.glass-card::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 50%; height: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    filter: blur(80px);
    opacity: 0.2;
}

.practice__big-icon {
    width: 120px;
    height: 120px;
    color: var(--color-text);
    opacity: 0.8;
    position: relative;
    z-index: 2;
}

/* MEDIA QUERIES */
@media (max-width: 992px) {
    .practice__panel-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .practice__benefits {
        align-items: center; /* Центрируем список на моб */
        text-align: left;
    }
    
    .practice__media.glass-card {
        aspect-ratio: 16/9; /* На мобильных делаем пониже */
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .section-title { font-size: 32px; }
    .practice__nav-btn {
        width: 100%; /* Кнопки табов на всю ширину */
        justify-content: center;
    }
    .practice__panel-title { font-size: 24px; }
}

/* --- TOOLS SECTION --- */
.tools__header-wrapper {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
}

/* Кнопки навігації */
.tools__nav-buttons {
    display: flex;
    gap: 12px;
}

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

.nav-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: scale(1.1);
}

.nav-btn i { width: 20px; height: 20px; }

/* Carousel Container */
.tools__carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 40px; /* Місце для скролбару або тіні */
    -webkit-overflow-scrolling: touch;
    /* Ховаємо скролбар, але залишаємо функціонал */
    scrollbar-width: none; 
}

.tools__carousel::-webkit-scrollbar {
    display: none;
}

/* Tool Card */
.tool-card {
    min-width: 300px;
    max-width: 300px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-secondary);
}

/* Ефект світіння при ховері */
.tool-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tool-card:hover::after {
    opacity: 1;
}

.tool-card__icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

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

/* Різні кольори для іконок */
.tool-card__icon-box.color-2 { background: rgba(236, 72, 153, 0.1); color: var(--color-secondary); }
.tool-card__icon-box.color-3 { background: rgba(16, 185, 129, 0.1); color: #10B981; } /* Emerald */
.tool-card__icon-box.color-4 { background: rgba(245, 158, 11, 0.1); color: #F59E0B; } /* Amber */
.tool-card__icon-box.color-5 { background: rgba(59, 130, 246, 0.1); color: #3B82F6; } /* Blue */

.tool-card__title {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--color-text);
}

.tool-card__desc {
    font-size: 15px;
    color: var(--color-text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
    flex-grow: 1; /* Притискає кнопку до низу */
}

.tool-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    transition: 0.3s;
}

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

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

/* MEDIA QUERIES */
@media (max-width: 768px) {
    .tools__header-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .section-header.text-left { text-align: left; margin: 0; }
    
    .tool-card {
        min-width: 280px;
        max-width: 280px;
    }
}

/* --- BENEFITS GRID --- */
.benefits__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.benefit-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    z-index: 1;
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
}

/* Велика цифра на фоні */
.benefit-card__bg-number {
    position: absolute;
    top: -10px;
    right: 20px;
    font-family: var(--font-heading);
    font-size: 120px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.03);
    z-index: -1;
    line-height: 1;
    pointer-events: none;
    transition: color 0.3s ease;
}

.benefit-card:hover .benefit-card__bg-number {
    color: rgba(99, 102, 241, 0.1);
}

.benefit-card__icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    margin-bottom: 24px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.benefit-card__icon i { width: 24px; height: 24px; }

.benefit-card__title {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--color-text);
}

.benefit-card__desc {
    color: var(--color-text-muted);
    font-size: 16px;
    line-height: 1.6;
}

.benefit-card__desc strong {
    color: var(--color-text);
    font-weight: 600;
}

/* Highlight Card (4th item) */
.highlight-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-color: rgba(255, 255, 255, 0.1);
}

.benefit-card__badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--color-secondary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
}

/* --- CTA SECTION (#start) --- */
.start-cta {
    padding: 60px 0 100px;
}

.start-cta__box {
    background: linear-gradient(135deg, #1E1E24, #121214);
    border: 1px solid var(--color-border);
    border-radius: 30px;
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.start-cta__content {
    max-width: 500px;
    position: relative;
    z-index: 2;
}

.start-cta__title {
    font-family: var(--font-heading);
    font-size: 40px;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--color-white);
}

.start-cta__desc {
    color: var(--color-text-muted);
    font-size: 18px;
    margin-bottom: 30px;
}

.start-cta__list {
    display: flex;
    gap: 24px;
}

.start-cta__list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--color-text);
    font-weight: 500;
}

.start-cta__list li i {
    color: var(--color-secondary); /* Pink checkmarks */
    width: 18px; height: 18px;
}

.start-cta__action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.start-cta__note {
    font-size: 12px;
    color: var(--color-text-muted);
    opacity: 0.6;
}

/* Decorative background circle */
.start-cta__circle {
    position: absolute;
    right: -50px;
    bottom: -50px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 1;
    pointer-events: none;
}

/* MEDIA QUERIES */
@media (max-width: 992px) {
    .start-cta__box {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
        gap: 40px;
    }
    
    .start-cta__list {
        justify-content: center;
    }
    
    .start-cta__circle {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        height: 100%;
        opacity: 0.3;
    }
}

@media (max-width: 768px) {
    .benefits__grid {
        grid-template-columns: 1fr;
    }
    
    .start-cta__title { font-size: 32px; }
    
    .start-cta__action .btn {
        width: 100%;
    }
}

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

.contact__title {
    font-family: var(--font-heading);
    font-size: 36px;
    margin-bottom: 20px;
}

.contact__desc {
    color: var(--color-text-muted);
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.6;
}

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

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

.contact__point i {
    color: var(--color-secondary);
    width: 20px; height: 20px;
}

/* Form Styling */
.contact__form-box {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.form__group {
    margin-bottom: 20px;
}

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

.form__input-wrapper {
    position: relative;
}

.form__icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px; height: 18px;
    color: var(--color-text-muted);
    transition: 0.3s;
}

.form__input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 14px 14px 14px 44px; /* padding-left for icon */
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 15px;
    transition: all 0.3s ease;
}

.form__input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form__input:focus + .form__icon, 
.form__input:focus ~ .form__icon { /* Select icon when input focus */
    color: var(--color-primary);
}

/* Captcha */
.captcha-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.02);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.captcha-group .form__label { margin: 0; }

.captcha-input {
    width: 60px;
    padding: 8px;
    text-align: center;
    border-radius: 8px;
}

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

.form__checkbox {
    margin-top: 4px;
    width: 16px; height: 16px;
    accent-color: var(--color-primary);
}

.form__checkbox-label {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.4;
}

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

/* Submit Button & Loader */
.form__submit-btn {
    width: 100%;
    position: relative;
}

.loader {
    display: none;
    width: 20px; height: 20px;
    border: 2px solid #fff;
    border-bottom-color: transparent;
    border-radius: 50%;
    animation: rotate 1s linear infinite;
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
}

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

.form__submit-btn.loading .btn-text { visibility: hidden; }
.form__submit-btn.loading .loader { display: block; }

/* Messages */
.form__message {
    margin-top: 16px;
    font-size: 14px;
    text-align: center;
    min-height: 20px;
}

.form__message.success { color: #10B981; }
.form__message.error { color: #EF4444; }

/* --- COOKIE POPUP --- */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(150%); /* Hidden initially */
    width: 90%;
    max-width: 600px;
    background: #1E2238; /* Dark blue background */
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 2000;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.cookie-popup__content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cookie-popup__text {
    font-size: 13px;
    color: #e0e0e0;
}

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

/* --- POLICY PAGES STYLING (pages class) --- */
.pages {
    padding: 120px 0 60px; /* Offset for fixed header */
}

.pages h1 {
    font-family: var(--font-heading);
    font-size: 40px;
    margin-bottom: 24px;
    color: var(--color-white);
}

.pages h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    margin: 32px 0 16px;
    color: var(--color-white);
}

.pages p {
    color: #b0b0b0;
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.7;
}

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

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

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

/* MEDIA QUERIES */
@media (max-width: 768px) {
    .contact__wrapper { grid-template-columns: 1fr; }
    .cookie-popup { 
        flex-direction: column; 
        align-items: stretch; 
        text-align: center;
        padding: 20px;
    }
    .cookie-popup__content { flex-direction: column; }
}