/* --- Змінні та налаштування --- */
:root {
    --color-bg: #F9FAFB;
    --color-text: #1F2937;
    --color-text-light: #6B7280;
    
    /* Основні кольори */
    --color-primary: #4F46E5; /* Глибокий індиго */
    --color-primary-dark: #3730A3;
    --color-accent: #84CC16; /* Лаймовий */
    --color-white: #FFFFFF;
    --color-dark-bg: #111827; /* Темний фон для футера */

    /* Шрифти */
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;

    /* Розміри */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 12px;
}

/* Скидання стилів */
*, *::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;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Утиліти */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-weight: 600;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
}

.btn:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
}

.btn--small {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* --- HEADER --- */
.header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    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 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header__logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-text);
}

/* Навігація десктоп */
.header__nav {
    display: flex;
    align-items: center;
}

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

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

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

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

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

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

.header__item--mobile-only {
    display: none;
}

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

/* --- MAIN (тимчасовий відступ) --- */
.main {
    flex: 1;
    /* Тимчасова висота для перевірки липкого хедера, при наповненні приберемо */
    min-height: 50vh; 
}

/* --- FOOTER --- */
.footer {
    background-color: var(--color-dark-bg);
    color: #D1D5DB; /* Світло-сірий для темного фону */
    padding: 60px 0 30px;
    margin-top: auto;
}

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

.footer__logo {
    display: block;
    margin-bottom: 20px;
}

.footer__logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-white);
}

.footer__desc {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #9CA3AF;
}

.footer__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(132, 204, 22, 0.1);
    color: var(--color-accent);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.footer__badge-icon {
    width: 16px;
    height: 16px;
}

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

.footer__list li {
    margin-bottom: 12px;
}

.footer__link {
    color: #D1D5DB;
    font-size: 0.95rem;
}

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

.footer__contacts li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.footer__contacts i {
    color: var(--color-primary);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.footer__bottom {
    border-top: 1px solid #374151;
    padding-top: 25px;
    text-align: center;
    font-size: 0.85rem;
    color: #6B7280;
}

/* --- ADAPTIVE (Mobile First overrides) --- */
@media (max-width: 992px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header__menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: 0;
        background-color: var(--color-white);
        flex-direction: column;
        align-items: center;
        overflow: hidden;
        transition: height 0.3s ease;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        padding: 0;
        gap: 0;
    }

    .header__menu--open {
        height: calc(100vh - var(--header-height));
        padding-top: 30px;
    }

    .header__item {
        width: 100%;
        text-align: center;
    }

    .header__link {
        display: block;
        padding: 15px 0;
        font-size: 1.2rem;
    }

    .header__btn {
        display: none; /* Ховаємо кнопку в хедері на мобільному */
    }

    .header__item--mobile-only {
        display: block;
        margin-top: 20px;
    }
    
    .header__item--mobile-only .header__link {
        color: var(--color-primary);
        font-weight: 700;
    }

    .header__burger {
        display: block;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh; /* На весь екран */
    display: flex;
    align-items: center;
    background-color: #0F172A; /* Темно-синій, майже чорний */
    overflow: hidden;
    padding-top: var(--header-height); /* Відступ під фіксований хедер */
}

.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: radial-gradient(circle at center, transparent 0%, #0F172A 90%);
    z-index: 2;
    pointer-events: none;
}

.hero__container {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    text-align: center;
}

.hero__content {
    max-width: 800px;
}

/* Бейдж */
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 30px;
    color: var(--color-accent);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    backdrop-filter: blur(5px);
    animation: fadeInDown 1s ease-out;
}

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

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

.text-gradient {
    background: linear-gradient(90deg, #84CC16 0%, #4F46E5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Курсор для ефекту друку */
    border-right: 3px solid var(--color-accent); 
    padding-right: 5px;
    animation: blink 0.7s step-end infinite;
}

/* Підзаголовок */
.hero__subtitle {
    font-size: 1.15rem;
    color: #9CA3AF;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Кнопки */
.hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 40px;
}

.hero__btn-primary {
    padding: 16px 32px;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.4);
}

.hero__btn-primary i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.hero__btn-primary:hover i {
    transform: translateX(4px);
}

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

/* Trust block */
.hero__trust {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hero__trust-text {
    font-size: 0.85rem;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.hero__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #0F172A;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: #1F2937;
    margin-left: -10px;
}

.hero__avatar:first-child {
    margin-left: 0;
}

.hero__avatar-count {
    margin-left: 10px;
    font-weight: 600;
    color: var(--color-white);
    font-size: 0.9rem;
}

/* Scroll Indicator */
.hero__scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.hero__scroll:hover {
    opacity: 1;
}

.hero__scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--color-white);
    border-radius: 20px;
    display: block;
    position: relative;
}

.hero__scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

/* Анімації */
@keyframes blink {
    0%, 100% { border-color: transparent; }
    50% { border-color: var(--color-accent); }
}

@keyframes scrollWheel {
    0% { top: 6px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

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

/* Адаптивність */
@media (max-width: 768px) {
    .hero__title {
        font-size: 2.5rem;
    }
    
    .hero__actions {
        flex-direction: column;
        width: 100%;
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero__btn-primary, .btn--outline {
        width: 100%;
    }
}

/* --- CAPABILITIES SECTION --- */
.capabilities {
    padding: 100px 0;
    background-color: var(--color-white);
    overflow: hidden; /* Щоб декоративні плями не вилазили */
}

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

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

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

.highlight {
    color: var(--color-primary);
    font-weight: 600;
    background: rgba(79, 70, 229, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Grid Layout */
.cap__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Menu Column */
.cap__menu {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cap__item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: var(--color-bg);
    border: 2px solid transparent;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    width: 100%;
}

.cap__item:hover {
    background: #fff;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
    transform: translateX(10px);
}

.cap__item.active {
    background: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px -10px rgba(79, 70, 229, 0.2);
}

.cap__icon-box {
    width: 50px;
    height: 50px;
    background: #E0E7FF;
    color: var(--color-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s;
}

.cap__item.active .cap__icon-box {
    background: var(--color-primary);
    color: var(--color-white);
}

.cap__info {
    flex: 1;
}

.cap__name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--color-text);
}

.cap__desc {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.4;
}

.cap__arrow {
    color: #D1D5DB;
    transition: 0.3s;
}

.cap__item.active .cap__arrow {
    color: var(--color-primary);
    transform: rotate(90deg); /* Для мобільних може бути вниз, тут вправо */
}

/* Visual Column (Phone) */
.cap__visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 300px;
    height: 580px;
    background: #fff;
    border: 12px solid #1F2937;
    border-radius: 40px;
    position: relative;
    z-index: 2;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.phone__notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #1F2937;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 3;
}

.phone__screen {
    flex: 1;
    background: #F3F4F6;
    display: flex;
    flex-direction: column;
    padding-top: 30px;
}

/* Chat Styles inside Phone */
.chat__header {
    padding: 10px 20px;
    background: #fff;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat__info {
    display: flex;
    flex-direction: column;
}

.chat__name {
    font-weight: 700;
    font-size: 0.9rem;
}

.chat__status {
    font-size: 0.75rem;
    color: var(--color-accent);
}

.chat__body {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
}

/* Messages */
.msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.4;
    position: relative;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.msg--bot {
    background: #fff;
    color: var(--color-text);
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.msg--user {
    background: var(--color-primary);
    color: #fff;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

.msg--action {
    align-self: center;
    width: 100%;
}

.msg-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: var(--color-accent);
    color: #fff; /* Білий текст для контрасту на лаймовому */
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.msg-btn:active {
    transform: scale(0.98);
}

.chat__input-fake {
    font-size: 0.8rem;
    color: #9CA3AF;
}

.chat__input-area {
    background: #fff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #E5E7EB;
}

.chat__send-btn {
    color: var(--color-primary);
}

/* Background Blobs */
.cap__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 1;
    opacity: 0.6;
}

.cap__blob--1 {
    width: 300px;
    height: 300px;
    background: #4F46E5;
    top: 50%;
    left: 50%;
    transform: translate(-60%, -60%);
}

.cap__blob--2 {
    width: 250px;
    height: 250px;
    background: #84CC16;
    bottom: 0;
    right: -20px;
}

.cap__footer {
    text-align: center;
    margin-top: 50px;
}

.link-styled {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

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

/* Adaptive */
@media (max-width: 992px) {
    .cap__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cap__menu {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .cap__item {
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .cap__menu {
        flex-direction: column;
        overflow: visible;
    }

    .cap__item {
        min-width: auto;
    }
    
    .phone-mockup {
        width: 100%;
        max-width: 300px;
    }
}

/* --- SOLUTIONS SECTION --- */
.solutions {
    padding: 100px 0;
    background-color: var(--color-bg);
}

.sol__gallery {
    display: flex;
    gap: 15px;
    height: 500px; /* Фіксована висота для десктопу */
    width: 100%;
}

.sol__item {
    position: relative;
    flex: 1; /* Всі елементи рівні у згорнутому стані */
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* Стан активного (розкритого) елемента */
.sol__item.active {
    flex: 5; /* Розкритий елемент займає в 5 разів більше місця */
    cursor: default;
}

/* Backgrounds (Gradients) */
.sol__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: transform 0.5s;
}

/* Різні градієнти для ніш */
.sol__bg--1 { background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%); }
.sol__bg--2 { background: linear-gradient(135deg, #064e3b 0%, #065f46 100%); }
.sol__bg--3 { background: linear-gradient(135deg, #4c0519 0%, #831843 100%); }
.sol__bg--4 { background: linear-gradient(135deg, #172554 0%, #1e40af 100%); }

.sol__item:hover .sol__bg {
    transform: scale(1.05); /* Легкий зум фону */
}

/* Контент всередині */
.sol__content {
    position: relative;
    z-index: 2;
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Контент знизу */
    opacity: 0; /* Приховано за замовчуванням */
    transform: translateY(20px);
    transition: all 0.3s 0.1s; /* Затримка появи */
    color: var(--color-white);
}

.sol__item.active .sol__content {
    opacity: 1;
    transform: translateY(0);
}

.sol__icon-wrap {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.sol__icon-wrap i {
    width: 30px;
    height: 30px;
    color: var(--color-accent);
}

.sol__title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 15px;
    white-space: nowrap;
}

.sol__details {
    max-width: 500px;
}

.sol__desc {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 25px;
    opacity: 0.9;
}

.sol__stats {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.sol__stats li {
    display: flex;
    flex-direction: column;
}

.sol__stats strong {
    font-size: 1.5rem;
    color: var(--color-accent);
    font-family: var(--font-heading);
}

.sol__stats span {
    font-size: 0.85rem;
    opacity: 0.7;
}

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

.sol__tag {
    font-size: 0.8rem;
    background: rgba(255,255,255,0.1);
    padding: 5px 10px;
    border-radius: 4px;
    color: #fff;
}

.sol__btn {
    background-color: var(--color-accent);
    color: #111827; /* Темний текст на лаймовому фоні */
}

.sol__btn:hover {
    background-color: #fff;
    color: #111827;
}

/* Вертикальний текст (для згорнутого стану) */
.sol__vertical-text {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) rotate(-90deg);
    transform-origin: center center;
    white-space: nowrap;
    color: rgba(255,255,255,0.6);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 2px;
    opacity: 1;
    transition: opacity 0.3s;
    z-index: 2;
}

.sol__item.active .sol__vertical-text {
    opacity: 0; /* Ховаємо, коли активно */
}

/* Адаптивність */
@media (max-width: 992px) {
    .sol__gallery {
        flex-direction: column;
        height: auto;
    }

    .sol__item {
        flex: none;
        height: 80px; /* Висота згорнутого блоку на моб */
    }

    .sol__item.active {
        flex: none;
        height: 500px;
    }

    .sol__vertical-text {
        transform: none;
        left: 20px;
        bottom: auto;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.2rem;
        color: var(--color-white);
    }
    
    /* Зміщуємо заголовок трохи правіше, щоб не наліз на контент */
    .sol__bg::after {
        content: ''; 
        /* Затемнення для кращої читабельності на мобільному */
        position: absolute;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.3);
    }
}

/* --- AI TECH SECTION --- */
.ai-tech {
    background-color: #0F172A; /* Темний фон (як Hero) */
    padding: 100px 0;
    color: var(--color-white);
    overflow: hidden;
    position: relative;
}

/* Фоновий шум/текстура (опціонально) */
.ai-tech::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#4F46E5 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.05;
    pointer-events: none;
}

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

.ai-tech__badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(79, 70, 229, 0.2);
    color: #818CF8;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ai-tech__title {
    color: var(--color-white);
    font-size: 3rem;
}

.ai-tech__desc {
    font-size: 1.1rem;
    color: #9CA3AF; /* Сірий текст на темному */
    margin-bottom: 40px;
    line-height: 1.6;
}

.highlight-dark {
    color: var(--color-accent);
    border-bottom: 1px dashed var(--color-accent);
}

/* Список переваг */
.ai-tech__list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.ai-tech__item {
    display: flex;
    gap: 20px;
}

.ai-tech__icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-tech__item h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--color-white);
}

.ai-tech__item p {
    font-size: 0.95rem;
    color: #9CA3AF;
}

/* Примітка про ЄС */
.ai-tech__note {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #6B7280;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    max-width: fit-content;
}

.ai-tech__note i {
    width: 16px;
    height: 16px;
}

/* --- VISUAL CORE ANIMATION --- */
.ai-tech__visual {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    position: relative;
}

.ai-core {
    width: 400px;
    height: 400px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Центр */
.ai-core__center {
    width: 100px;
    height: 100px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    box-shadow: 0 0 50px rgba(79, 70, 229, 0.5);
}

.ai-core__logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2rem;
    color: #fff;
}

/* Пульсація */
.ai-core__pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid var(--color-primary);
    opacity: 0;
    animation: pulse 3s infinite;
}

.ai-core__pulse--2 {
    animation-delay: 1.5s;
}

/* Орбіти */
.ai-core__orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-core__orbit--1 { width: 200px; height: 200px; animation: spin 10s linear infinite; }
.ai-core__orbit--2 { width: 300px; height: 300px; animation: spin 15s linear infinite reverse; }
.ai-core__orbit--3 { width: 380px; height: 380px; border: 1px dashed rgba(255,255,255,0.05); animation: spin 25s linear infinite; }

/* Точки на орбітах (Nodes) */
.ai-node {
    width: 12px;
    height: 12px;
    background: var(--color-accent);
    border-radius: 50%;
    position: absolute;
    top: -6px; /* Половина висоти, щоб сісти на лінію */
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--color-accent);
}

/* Лейбли біля точок */
.ai-node::after {
    content: attr(data-label);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--color-white);
    background: rgba(0,0,0,0.6);
    padding: 2px 6px;
    border-radius: 4px;
}

.ai-core__lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Анімації */
@keyframes pulse {
    0% { width: 100%; height: 100%; opacity: 0.8; }
    100% { width: 250%; height: 250%; opacity: 0; }
}

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

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

    .ai-tech__list {
        align-items: center; /* Центруємо список на моб */
        text-align: left;
    }

    .ai-tech__note {
        margin: 0 auto;
    }

    .ai-tech__visual {
        height: 300px;
        overflow: hidden;
    }
    
    .ai-core {
        transform: scale(0.7); /* Зменшуємо ядро на моб */
    }
}

/* --- BLOG SECTION --- */
.blog {
    padding: 100px 0;
    background-color: var(--color-bg); /* Світлий фон */
}

.blog__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 колонки */
    gap: 30px;
    margin-bottom: 50px;
}

.blog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

/* Зображення */
.blog-card__img-wrap {
    height: 200px;
    position: relative;
    overflow: hidden;
    background-color: #E5E7EB; /* Колір плейсхолдера */
}

.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__tag {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    text-transform: uppercase;
}

.blog-card__tag--tech { color: var(--color-primary); }
.blog-card__tag--biz { color: var(--color-accent); }
.blog-card__tag--guide { color: #F59E0B; } /* Помаранчевий */

/* Контент картки */
.blog-card__content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #9CA3AF;
    margin-bottom: 12px;
}

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

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

.blog-card__title a {
    color: var(--color-text);
    transition: color 0.2s;
}

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

.blog-card__excerpt {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.5;
    margin-bottom: 20px;
    flex: 1; /* Притискає посилання до низу */
}

.blog-card__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-primary);
}

.blog-card__link i {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.blog-card__link:hover i {
    transform: translate(2px, -2px);
}

/* Footer секції */
.blog__footer {
    text-align: center;
}

.blog__btn {
    border-color: #D1D5DB;
    color: var(--color-text);
}

.blog__btn:hover {
    border-color: var(--color-text);
    background: transparent;
}

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

@media (max-width: 768px) {
    .blog__grid {
        grid-template-columns: 1fr;
    }
    
    .blog-card__img-wrap {
        height: 180px;
    }
}

/* --- CONTACT SECTION --- */
.contact {
    padding: 100px 0;
    background-color: #F3F4F6; /* Світло-сірий для контрасту з білою формою */
}

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

.contact__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #E0E7FF;
    color: var(--color-primary);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

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

.contact__desc {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 40px;
    line-height: 1.6;
}

.contact__list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

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

.contact__icon {
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.contact__item h5 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    margin-bottom: 2px;
    color: var(--color-text);
}

.contact__item p, .contact__item a {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

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

/* --- FORM STYLES --- */
.contact__form-wrap {
    background: #fff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.form__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--color-text);
}

.form__group {
    margin-bottom: 20px;
}

.form__label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: #374151;
}

.form__input-wrapper {
    position: relative;
}

.form__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #9CA3AF;
    pointer-events: none;
    transition: color 0.3s;
}

.form__input {
    width: 100%;
    padding: 12px 14px 12px 42px; /* padding-left для іконки */
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s;
    outline: none;
}

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

.form__input:focus + .form__icon, /* Якщо іконка після інпуту */
.form__input:focus ~ .form__icon, /* Якщо іконка поруч */
.form__input-wrapper:focus-within .form__icon {
    color: var(--color-primary);
}

.form__captcha-group {
    background: #F9FAFB;
    padding: 15px;
    border-radius: 8px;
    border: 1px dashed #D1D5DB;
}

.form__input--captcha {
    padding-left: 14px; /* Без іконки */
}

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

.form__checkbox {
    margin-top: 4px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.form__check-label {
    font-size: 0.85rem;
    color: #6B7280;
    line-height: 1.4;
    cursor: pointer;
}

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

/* Button & Loader */
.form__btn {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.btn__loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s linear infinite;
}

.form__btn.loading .btn__text,
.form__btn.loading i {
    display: none;
}

.form__btn.loading .btn__loader {
    display: block;
}

.form__message {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #EF4444; /* Червоний */
    text-align: center;
    display: none;
}

/* Success Screen */
.form-success {
    display: none; /* JS змінить на flex */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    padding: 40px;
    z-index: 10;
    animation: fadeIn 0.4s ease-out;
}

.form-success__icon {
    width: 60px;
    height: 60px;
    background: #DCFCE7; /* Світло-зелений */
    color: #16A34A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.form-success__icon i {
    width: 30px;
    height: 30px;
}

/* Adaptive */
@media (max-width: 992px) {
    .contact__grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact__info {
        text-align: center;
    }
    
    .contact__list {
        align-items: center;
        text-align: left; /* Список залишаємо вирівняним зліва */
        max-width: 300px;
        margin: 0 auto;
    }
}

/* --- COOKIE POPUP --- */
.cookie-popup {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px); /* Сховано вниз */
    background: #1F2937; /* Темний фон */
    color: #fff;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 90%;
    max-width: 600px;
}

.cookie-popup.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: all;
}

.cookie-popup__content {
    font-size: 0.9rem;
    line-height: 1.4;
    flex: 1;
}

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

.cookie-popup__btn {
    background: var(--color-accent);
    color: #111827;
    white-space: nowrap;
}

/* --- POLICY PAGES STYLES (Privacy, Terms etc.) --- */
/* Стилі для структури <main><section class="pages">... */

.pages {
    padding: 120px 0 80px; /* Великий відступ зверху, бо хедер фіксований */
    background-color: var(--color-white);
    min-height: 80vh;
}

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

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

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

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

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

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

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

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

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

/* Адаптив для попапу */
@media (max-width: 600px) {
    .cookie-popup {
        flex-direction: column;
        align-items: stretch;
        bottom: 20px;
        padding: 20px;
        text-align: center;
    }
    
    .cookie-popup__btn {
        width: 100%;
    }
}