/* --- VARIABLES --- */
:root {
    --color-bg: #F8FAFC;         /* Очень светлый фон */
    --color-text: #334155;       /* Темно-серый текст */
    --color-heading: #0F172A;    /* Почти черный для заголовков */
    
    --color-primary: #4F46E5;    /* Индиго */
    --color-primary-hover: #4338CA;
    
    --color-accent: #14B8A6;     /* Тиловый/Бирюзовый */
    
    --color-white: #ffffff;
    --color-footer-bg: #1E293B;  /* Темный фон футера */

    --font-main: 'Manrope', sans-serif;
    --font-head: 'Outfit', sans-serif;

    --border-radius: 12px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --transition: 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;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1; /* Чтобы футер был прижат к низу при малом контенте */
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-weight: 600;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
}

.btn:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
}

/* --- HEADER --- */
.header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 15px 0;
}

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

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

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

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

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

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

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

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

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

/* --- FOOTER --- */
.footer {
    background-color: var(--color-footer-bg);
    color: #94A3B8; /* Светло-серый для текста на темном */
    padding-top: 60px;
    margin-top: auto;
}

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

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-white);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.footer__desc {
    font-size: 0.9rem;
    max-width: 300px;
}

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

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

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

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

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

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

/* --- ADAPTIVE (Mobile) --- */
@media (max-width: 992px) {
    .nav {
        display: none; /* Временное скрытие, JS для мобильного меню будет позже */
    }
    .header__btn {
        display: none; /* Убираем кнопку на моб для чистоты или переносим в бургер */
    }
    .header__burger {
        display: block;
    }
    
    .footer__container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer__container {
        grid-template-columns: 1fr;
    }
}

/* --- HERO SECTION --- */
.hero {
    padding: 120px 0 80px; /* Отступ сверху с учетом фиксированного хедера */
    position: relative;
    overflow: hidden;
}

.hero__container {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Контент шире визуальной части */
    align-items: center;
    gap: 40px;
    min-height: 60vh;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: rgba(79, 70, 229, 0.1); /* Прозрачный индиго */
    color: var(--color-primary);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
}

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

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

/* Эффект градиента на тексте */
.text-gradient {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__desc {
    font-size: 1.15rem;
    color: #64748B;
    margin-bottom: 32px;
    max-width: 540px;
}

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

.hero__btn--primary {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.hero__btn--outline {
    background-color: transparent;
    color: var(--color-text);
    border: 2px solid #E2E8F0;
    padding: 14px 30px; /* Чуть меньше паддинг из-за бордера */
}

.hero__btn--outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background-color: transparent;
    box-shadow: none;
    transform: translateY(-2px);
}

.hero__note {
    font-size: 0.8rem;
    color: #94A3B8;
    font-style: italic;
}

/* Контейнер для 3D графики */
.hero__visual {
    width: 100%;
    height: 500px;
    position: relative;
    z-index: 1;
}

/* --- ADAPTIVE HERO --- */
@media (max-width: 992px) {
    .hero__title {
        font-size: 2.5rem;
    }
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero__badge {
        margin: 0 auto 20px;
    }
    .hero__desc {
        margin: 0 auto 32px;
    }
    .hero__actions {
        justify-content: center;
    }
    .hero__visual {
        height: 400px;
        order: -1; /* Визуальная часть сверху на мобильных */
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 2rem;
    }
    .hero__actions {
        flex-direction: column;
    }
    .hero__btn {
        width: 100%;
        text-align: center;
    }
}

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

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

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent);
    font-weight: 700;
    margin-bottom: 15px;
}

.section-tag i {
    width: 16px;
    height: 16px;
}

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

.section-title .highlight {
    color: var(--color-primary);
    position: relative;
    display: inline-block;
}

/* Декоративное подчеркивание заголовка */
.section-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(20, 184, 166, 0.2); /* Тиловый прозрачный */
    z-index: -1;
}

.section-desc {
    color: #64748B;
    font-size: 1.1rem;
}

/* --- FEATURES GRID (HOME AI) --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--color-white);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

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

.feature-card__icon-box {
    width: 50px;
    height: 50px;
    background-color: #EEF2FF; /* Очень светлый индиго */
    color: var(--color-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition);
}

.feature-card:hover .feature-card__icon-box {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.feature-card__title {
    font-family: var(--font-head);
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--color-heading);
}

.feature-card__text {
    font-size: 0.95rem;
    color: #64748B;
    margin-bottom: 20px;
    flex-grow: 1;
}

.feature-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    transition: gap 0.3s ease;
}

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

.feature-card__link:hover {
    gap: 12px;
}

.feature-card__status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #10B981; /* Зеленый успех */
    font-weight: 600;
    background: #ECFDF5;
    padding: 6px 12px;
    border-radius: 20px;
    align-self: flex-start;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: currentColor;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Акцентная карточка (последняя) */
.feature-card--accent {
    background: linear-gradient(135deg, var(--color-primary) 0%, #4338CA 100%);
    border: none;
    position: relative;
}

.feature-card--accent .feature-card__title {
    color: #fff;
}

.text-white-70 {
    color: rgba(255, 255, 255, 0.8);
}

.btn--white {
    background-color: #fff;
    color: var(--color-primary);
    text-align: center;
    margin-top: auto;
}

.btn--white:hover {
    background-color: #f8fafc;
    color: var(--color-heading);
}

.feature-card__bg-icon {
    position: absolute;
    bottom: -20px;
    right: -20px;
    color: rgba(255, 255, 255, 0.1);
    transform: rotate(-15deg);
}

.feature-card__bg-icon i {
    width: 120px;
    height: 120px;
}

/* --- ANIMATION CLASSES (SCROLL REVEAL) --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

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

.assistant__list {
    margin: 30px 0 40px;
}

.assistant__item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.assistant__icon-check {
    width: 24px;
    height: 24px;
    background-color: #ECFDF5;
    color: #10B981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.assistant__icon-check i {
    width: 14px;
    height: 14px;
}

.assistant__item strong {
    display: block;
    color: var(--color-heading);
    margin-bottom: 4px;
}

.assistant__item p {
    font-size: 0.9rem;
    color: #64748B;
}

/* --- CHAT INTERFACE UI --- */
.assistant__visual {
    position: relative;
    padding: 20px; /* Место для теней/блобов */
}

.chat-interface {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    z-index: 2;
    max-width: 400px;
    margin: 0 auto;
}

/* Chat Header */
.chat-header {
    background: var(--color-heading);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-avatar i {
    width: 20px;
    height: 20px;
    color: #fff;
}

.chat-info {
    flex-grow: 1;
}

.chat-name {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
}

.chat-status {
    display: block;
    font-size: 0.75rem;
    opacity: 0.8;
}

.chat-actions {
    display: flex;
    gap: 4px;
}

.chat-actions .dot {
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
}

/* Chat Body */
.chat-body {
    background: #F1F5F9;
    padding: 20px;
    height: 350px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    position: relative;
    line-height: 1.5;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

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

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

.message--ai {
    background: #fff;
    color: var(--color-text);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    animation-delay: 0.5s; /* Появляется позже */
    opacity: 0; /* Начальное состояние для анимации */
}

.message-time {
    display: block;
    font-size: 0.65rem;
    margin-top: 4px;
    opacity: 0.7;
    text-align: right;
}

.message-list {
    margin: 8px 0;
    padding-left: 0;
}

.message-list li {
    margin-bottom: 4px;
    font-size: 0.85rem;
}

.message-attachment {
    margin-top: 8px;
    background: #F8FAFC;
    padding: 8px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.8rem;
    border: 1px solid #E2E8F0;
}

.message-attachment i {
    width: 14px;
    height: 14px;
}

/* Typing Indicator */
.typing-indicator {
    background: #fff;
    padding: 10px 15px;
    border-radius: 20px;
    align-self: flex-start;
    display: flex;
    gap: 4px;
    width: fit-content;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    animation: fadeIn 0.3s forwards;
    animation-delay: 1.5s; /* Показывается после сообщений */
    opacity: 0;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: #CBD5E1;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

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

/* Chat Input */
.chat-input-area {
    padding: 15px;
    border-top: 1px solid #E2E8F0;
    display: flex;
    gap: 10px;
    align-items: center;
}

.fake-input {
    flex-grow: 1;
    background: #F1F5F9;
    padding: 10px 15px;
    border-radius: 20px;
    color: #94A3B8;
    font-size: 0.9rem;
}

.chat-send-btn {
    background: var(--color-primary);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-send-btn i {
    width: 18px;
    height: 18px;
    margin-left: -2px; /* Визуальная центровка иконки send */
}

/* Blobs (Фон) */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    z-index: 1;
    opacity: 0.6;
}

.blob-1 {
    width: 200px;
    height: 200px;
    background: #C7D2FE;
    top: -20px;
    right: -20px;
    animation: float 6s ease-in-out infinite;
}

.blob-2 {
    width: 150px;
    height: 150px;
    background: #99F6E4;
    bottom: -10px;
    left: -10px;
    animation: float 8s ease-in-out infinite reverse;
}

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

/* --- ADAPTIVE ASSISTANT --- */
@media (max-width: 992px) {
    .assistant__container {
        grid-template-columns: 1fr;
    }
    .assistant__content {
        order: -1; /* Текст сверху */
    }
    .assistant__visual {
        max-width: 400px;
        margin: 0 auto;
        width: 100%;
    }
}

/* --- SECTION: EDUCATION --- */
.education__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Visual Image Composition */
.education__image-box {
    position: relative;
    border-radius: 24px;
    /* Создаем красивую подложку под картинку */
}

.education__image-box::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-primary);
    border-radius: 24px;
    opacity: 0.2;
    z-index: 0;
}

.education__img {
    border-radius: 24px;
    width: 100%;
    height: auto;
    object-fit: cover;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Floating Cards */
.floating-card {
    position: absolute;
    background: #fff;
    padding: 12px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: floatCard 4s ease-in-out infinite;
}

.floating-card--top {
    top: 40px;
    right: -30px;
}

.floating-card--bottom {
    bottom: 40px;
    left: -30px;
    animation-delay: 2s;
}

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

.floating-card__icon {
    width: 40px;
    height: 40px;
    background: #EEF2FF;
    color: var(--color-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-card__icon--accent {
    background: #CCFBF1; /* Светлый тил */
    color: #0F766E;
}

.floating-card__value {
    display: block;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--color-heading);
    line-height: 1;
}

.floating-card__label {
    font-size: 0.75rem;
    color: #64748B;
}

/* Accordion Styles */
.accordion {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.accordion__item {
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    background: #fff;
    transition: var(--transition);
    overflow: hidden;
}

.accordion__item.active {
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.08);
}

.accordion__header {
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-heading);
    text-align: left;
    transition: color 0.3s;
}

.accordion__item.active .accordion__header {
    color: var(--color-primary);
}

.accordion__title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.accordion__icon {
    width: 20px;
    height: 20px;
    color: #94A3B8;
    transition: 0.3s;
}

.accordion__item.active .accordion__icon {
    color: var(--color-primary);
}

.accordion__arrow {
    width: 20px;
    height: 20px;
    color: #94A3B8;
    transition: transform 0.3s ease;
}

.accordion__item.active .accordion__arrow {
    transform: rotate(180deg);
    color: var(--color-primary);
}

.accordion__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.accordion__inner {
    padding: 0 24px 24px;
    padding-left: 56px; /* Отступ под иконку заголовка */
    color: #64748B;
    font-size: 0.95rem;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 10px;
}

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

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

/* --- ADAPTIVE EDUCATION --- */
@media (max-width: 992px) {
    .education__container {
        grid-template-columns: 1fr;
    }
    
    .education__visual {
        max-width: 500px;
        margin: 0 auto 40px;
    }
    
    .floating-card--top {
        right: -10px;
    }
    .floating-card--bottom {
        left: -10px;
    }
}

/* --- SECTION: CREATIVITY (BENTO GRID) --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 280px);
    gap: 24px;
    margin-bottom: 40px;
}

/* Настройка сетки: 
   Item 1 занимает 2 колонки и 2 ряда (Большой квадрат слева)
   Остальные заполняют пространство
*/
.bento-item {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    cursor: default; /* или pointer, если будет лайтбокс */
}

.bento-item--large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-item--wide {
    grid-column: span 2;
}

.bento-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hover Effects */
.bento-item:hover .bento-img {
    transform: scale(1.1);
}

.bento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 30px;
}

.bento-item:hover .bento-overlay {
    opacity: 1;
}

.bento-content {
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.bento-item:hover .bento-content {
    transform: translateY(0);
}

.prompt-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    padding: 6px 12px;
    border-radius: 20px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.prompt-badge i {
    width: 12px;
    height: 12px;
}

.bento-content p {
    color: #E2E8F0;
    font-size: 0.95rem;
    line-height: 1.4;
    font-family: var(--font-head); /* Для стилизации под код/терминал можно сменить шрифт, но оставим head */
}

/* Текстовая карточка внутри грида */
.bento-item--text {
    background: #fff;
    border: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.creative-card {
    padding: 30px;
    text-align: center;
}

.icon-box-gradient {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FCD34D 0%, #F59E0B 100%); /* Золотой градиент для денег */
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #fff;
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
}

.creative-card h3 {
    font-family: var(--font-head);
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--color-heading);
}

.creative-card p {
    font-size: 0.9rem;
    color: #64748B;
}

.creativity-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 1.1rem;
    color: var(--color-text);
}

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

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

/* --- ADAPTIVE CREATIVITY --- */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: 1fr 1fr; /* 2 колонки */
        grid-template-rows: auto; /* Высота авто */
        gap: 20px;
    }
    
    .bento-item {
        height: 250px; /* Фикс высота для картинок */
    }

    .bento-item--large {
        grid-column: span 2; /* На всю ширину */
        height: 300px;
    }
    
    .bento-item--text {
        height: auto; /* Текст подстраивается */
        min-height: 250px;
    }
}

@media (max-width: 600px) {
    .bento-grid {
        grid-template-columns: 1fr; /* 1 колонка */
    }
    
    .bento-item, .bento-item--large, .bento-item--wide {
        grid-column: span 1;
        height: 280px;
    }
    
    .bento-item--text {
        height: auto;
    }
}

/* --- SECTION: CONTACT --- */
.contact {
    background: linear-gradient(to bottom, var(--color-bg), #EEF2FF);
}

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

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--color-heading);
}

.benefit-item i {
    color: #10B981;
    width: 20px;
    height: 20px;
}

/* Form Styles */
.contact__form-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.form__group {
    margin-bottom: 20px;
}

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

.form__input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
    background: #F8FAFC;
}

.form__input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

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

.captcha-question {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--color-primary);
    background: #EEF2FF;
    padding: 10px 16px;
    border-radius: 8px;
    letter-spacing: 2px;
    user-select: none; /* Защита от копирования */
}

.captcha-input {
    width: 80px;
    text-align: center;
}

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

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input {
    margin-top: 5px;
    accent-color: var(--color-primary);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.checkbox-group label {
    font-size: 0.85rem;
    color: #64748B;
    line-height: 1.4;
    cursor: pointer;
}

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

.form__btn {
    width: 100%;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

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

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

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

.success-message h3 {
    font-family: var(--font-head);
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--color-heading);
}

.btn--small {
    margin-top: 20px;
    padding: 8px 16px;
    font-size: 0.9rem;
    background: #F1F5F9;
    color: var(--color-text);
}

/* --- COOKIE POPUP --- */
.cookie-popup {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px); /* Скрыт внизу */
    background: #fff;
    padding: 16px 24px;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 9999;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #E2E8F0;
    width: 90%;
    max-width: 600px;
}

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

.cookie-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--color-text);
}

.cookie-content i {
    color: #F59E0B;
}

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

.cookie-btn {
    padding: 8px 20px;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* --- POLICY PAGES STYLES (Этап 5.2) --- */
/* Эти стили для страниц privacy.html, terms.html и т.д. */
.pages {
    padding: 120px 0 80px;
    min-height: 80vh;
}

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

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

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

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

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

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

/* Adaptive Contact */
@media (max-width: 768px) {
    .contact__container {
        grid-template-columns: 1fr;
    }
    .contact__info {
        text-align: center;
    }
    .contact__benefits {
        display: inline-block;
        text-align: left;
    }
    .cookie-popup {
        flex-direction: column;
        border-radius: 24px;
        bottom: 20px;
        text-align: center;
    }
    .cookie-content {
        flex-direction: column;
    }
}

.spin { animation: spin 1s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }