/* ============================================================
   BotanicAI — общие стили
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --color-bg: #FDFDFD;
    --color-text: #074049;
    --color-accent: #06A77B;
    --color-white: #ffffff;
    --radius-lg: 32px;
    --radius-md: 24px;
    --radius-sm: 20px;
    --radius-xs: 14px;
    --shadow-soft: 0 8px 30px rgba(7, 64, 73, 0.06);
    --shadow-hover: 0 16px 48px rgba(7, 64, 73, 0.08);
    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --header-height: 56px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ============ КИТАЙСКАЯ ВЕРСИЯ ============ */

body.lang-cn {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', 'Inter', sans-serif;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============ HEADER ============ */

.header {
    position: sticky; top: 0; left: 0; right: 0; z-index: 1000;
    background: #ffffff; padding: 8px 24px;
    border-bottom: 1px solid rgba(7, 64, 73, 0.06);
    display: flex; align-items: center; gap: 16px;
    min-height: 56px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: 0 2px 20px rgba(7, 64, 73, 0.04);
    transition: box-shadow var(--transition);
}
.header:hover { box-shadow: 0 4px 32px rgba(7, 64, 73, 0.08); }

.logo {
    display: flex; align-items: center; flex-shrink: 0;
    text-decoration: none; height: 100%;
}
.logo img {
    height: 48px; width: auto; display: block;
    transition: transform var(--transition);
}
.logo:hover img { transform: scale(1.02); }

.burger {
    display: none; background: none; border: none; cursor: pointer;
    padding: 8px; flex-direction: column; gap: 5px; margin-left: auto;
}
.burger span {
    display: block; width: 22px; height: 2px;
    background: var(--color-text); border-radius: 2px;
    transition: all 0.3s;
}

.nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.nav a {
    color: var(--color-text); text-decoration: none; font-weight: 500;
    font-size: 14px;
    transition: color var(--transition), border-color var(--transition);
    padding-bottom: 4px; border-bottom: 2px solid transparent;
    letter-spacing: 0.01em; white-space: nowrap;
}
.nav a:hover { color: var(--color-accent); border-bottom-color: var(--color-accent); }
.nav .btn {
    padding: 8px 20px; font-size: 0.85rem; white-space: nowrap;
    border-bottom: none; color: #fff;
}
.nav .btn:hover { color: #fff; border-bottom: none; }

/* ============ LANG SWITCHER ============ */

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    background: rgba(7, 64, 73, 0.05);
    border-radius: 40px;
    margin: 0 4px;
}

.lang-link {
    padding: 5px 12px;
    border-radius: 40px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
    border-bottom: none;
    line-height: 1;
}

.lang-link:hover {
    background: rgba(6, 167, 123, 0.12);
    color: var(--color-accent);
    border-bottom: none;
}

.lang-link.active {
    background: var(--color-accent);
    color: #fff;
}

.lang-link.active:hover {
    background: var(--color-accent);
    color: #fff;
}

.header-spacer { height: var(--header-height); background: transparent; }

/* ============ BUTTONS ============ */

.btn {
    display: inline-block; padding: 14px 36px; border-radius: 60px;
    font-size: 1rem; font-weight: 600; border: none; cursor: pointer;
    transition: all var(--transition); text-decoration: none;
    background: var(--color-accent); color: #fff;
    box-shadow: 0 4px 16px rgba(6, 167, 123, 0.30);
    letter-spacing: 0.02em; white-space: nowrap;
}
.btn:hover {
    background: #058e66; transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(6, 167, 123, 0.35); color: #fff;
}
.btn-outline {
    background: transparent; color: var(--color-accent);
    border: 2px solid var(--color-accent); box-shadow: none;
}
.btn-outline:hover {
    background: var(--color-accent); color: #fff;
    box-shadow: 0 12px 32px rgba(6, 167, 123, 0.25);
}
.btn-small { padding: 8px 20px; font-size: 0.85rem; }

/* ============ SCROLL DOT ============ */

.scroll-dot {
    position: fixed; right: 12px; top: 40%;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--color-accent); z-index: 999;
    transition: top 0.2s ease-out; pointer-events: none;
}

/* ============ SECTIONS ============ */

.section-block {
    padding: 64px 0; border-radius: var(--radius-lg);
    background: var(--color-white); margin: 24px 0;
    box-shadow: var(--shadow-soft);
    transition: box-shadow var(--transition), transform var(--transition);
}
.section-block:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}
.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700;
    text-align: center; margin-bottom: 40px;
    color: var(--color-text); letter-spacing: -0.02em;
}
.section-subtitle {
    text-align: center; font-size: 1.1rem; opacity: 0.75;
    max-width: 640px; margin: -20px auto 40px;
}

/* ============ HERO (index) ============ */

.hero-wrapper {
    background: var(--color-bg);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    overflow: hidden; margin: 0 0 40px 0; padding: 0;
    min-height: calc(100vh - var(--header-height));
    display: flex; flex-direction: column; justify-content: center;
    box-shadow: inset 0 -2px 20px rgba(7, 64, 73, 0.02);
}
.hero-content {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 48px; align-items: center; padding: 40px 0;
}
.hero-text .badge {
    display: inline-block; background: rgba(6, 167, 123, 0.12);
    color: var(--color-accent); padding: 4px 16px; border-radius: 40px;
    font-size: 0.8rem; font-weight: 600;
    letter-spacing: 0.03em; margin-bottom: 16px;
}
.hero-text h1 {
    font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 700;
    line-height: 1.15; margin-bottom: 16px;
    letter-spacing: -0.02em; color: var(--color-text);
}
.hero-text p {
    font-size: clamp(1.1rem, 2vw, 1.3rem); opacity: 0.8;
    margin-bottom: 32px; max-width: 520px;
    color: var(--color-text); line-height: 1.7;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-image {
    display: flex; justify-content: center; align-items: center; width: 100%;
}

/* Видео: обрезка снизу на 8% (плашка Qwen) */
.hero-video {
    width: 100%; max-width: 500px; height: auto; display: block;
    border-radius: var(--radius-sm);
    overflow: hidden;
    object-fit: cover;
    clip-path: inset(0 0 8% 0 round var(--radius-sm));
}

/* ============ PAGE HERO (agents) ============ */

.page-hero {
    background: var(--color-bg);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    padding: 64px 0 96px;
    text-align: center;
    margin-bottom: 48px;
}
.page-hero .badge {
    display: inline-block; background: rgba(6, 167, 123, 0.12);
    color: var(--color-accent); padding: 4px 16px; border-radius: 40px;
    font-size: 0.8rem; font-weight: 600; margin-bottom: 16px;
}
.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700;
    line-height: 1.15; margin-bottom: 16px; letter-spacing: -0.02em;
}
.page-hero p {
    font-size: 1.1rem; opacity: 0.8; max-width: 680px;
    margin: 0 auto; line-height: 1.7;
}

/* Hero каталога: лид + фичи внедрения */

.page-hero-lead {
    max-width: 640px;
    margin: 0 auto 96px;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    align-items: start;
}

.hero-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 22px 24px;
    min-height: 96px;
    background: var(--color-white);
    border: 1px solid rgba(7, 64, 73, 0.08);
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 12px rgba(7, 64, 73, 0.04);
    transition: all var(--transition);
}

.hero-feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-accent);
}

.hero-feature-num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(6, 167, 123, 0.12);
    color: var(--color-accent);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.hero-feature-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-feature-body strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.3;
}

.hero-feature-body span {
    font-size: 0.82rem;
    opacity: 0.7;
    color: var(--color-text);
    line-height: 1.45;
}

/* Анимация появления hero-фич */

@keyframes featureFadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-feature {
    opacity: 0;
    animation: featureFadeUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero-feature:nth-child(1) { animation-delay: 0.10s; }
.hero-feature:nth-child(2) { animation-delay: 0.25s; }
.hero-feature:nth-child(3) { animation-delay: 0.40s; }

/* Пульс цифр 01 / 02 / 03 */

@keyframes numberPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(6, 167, 123, 0.18);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(6, 167, 123, 0);
    }
}

.hero-feature-num {
    animation: numberPulse 2.6s ease-in-out infinite;
}

.hero-feature:nth-child(1) .hero-feature-num { animation-delay: 0s; }
.hero-feature:nth-child(2) .hero-feature-num { animation-delay: 0.4s; }
.hero-feature:nth-child(3) .hero-feature-num { animation-delay: 0.8s; }

/* ============ GRIDS ============ */

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }

/* ============ CARDS (index) ============ */

.card {
    background: var(--color-bg);
    border-radius: var(--radius-sm);
    padding: 24px 24px 28px;
    border: 2px solid rgba(7, 64, 73, 0.2);
    transition: all var(--transition);
    box-shadow: 0 2px 8px rgba(7, 64, 73, 0.02);
    height: 100%; display: flex; flex-direction: column;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-accent);
}
.card h3 {
    font-size: 1.4rem; font-weight: 700; margin-bottom: 4px;
    color: var(--color-text);
}
.card .tag {
    display: inline-block; font-size: 0.7rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--color-accent); background: rgba(6, 167, 123, 0.08);
    padding: 2px 12px; border-radius: 40px; margin-bottom: 12px;
    align-self: flex-start;
}
.card p {
    color: #2a5a63; font-size: 0.95rem; opacity: 0.85;
    margin-bottom: 12px; flex: 1; line-height: 1.7;
}
.card .tech-tags {
    display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px;
}
.card .tech-tags span {
    background: var(--color-white);
    padding: 2px 12px; border-radius: 40px;
    font-size: 0.7rem; font-weight: 500;
    border: 1px solid rgba(7, 64, 73, 0.08);
    color: var(--color-text);
}

/* ============ TECH PILLS ============ */

.tech-group { margin-bottom: 32px; }
.tech-group h4 {
    font-size: 1rem; font-weight: 600; margin-bottom: 12px;
    color: var(--color-text);
}
.tech-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-pills span {
    background: var(--color-accent);
    padding: 6px 16px; border-radius: 40px;
    font-size: 0.85rem; font-weight: 500; color: #fff;
    transition: all var(--transition); white-space: nowrap;
}
.tech-pills span:hover {
    background: #058e66; transform: translateY(-2px);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}
.tech-pills span:nth-child(1) { animation: blink 2.2s infinite; }
.tech-pills span:nth-child(2) { animation: blink 3.8s infinite 0.4s; }
.tech-pills span:nth-child(3) { animation: blink 1.7s infinite 0.9s; }
.tech-pills span:nth-child(4) { animation: blink 4.5s infinite 0.2s; }
.tech-pills span:nth-child(5) { animation: blink 2.9s infinite 1.3s; }
.tech-pills span:nth-child(6) { animation: blink 3.3s infinite 0.7s; }
.tech-pills span:nth-child(7) { animation: blink 1.4s infinite 1.8s; }
.tech-pills span:nth-child(8) { animation: blink 5.2s infinite 0.1s; }

/* ============ AGENTS: FILTERS ============ */

.filters {
    display: flex; flex-wrap: wrap; gap: 8px;
    justify-content: center; margin-bottom: 32px;
}
.filter-btn {
    background: var(--color-bg);
    border: 1px solid rgba(7, 64, 73, 0.12);
    color: var(--color-text);
    padding: 8px 18px; border-radius: 40px;
    font-size: 0.85rem; font-weight: 500;
    cursor: pointer; transition: all var(--transition);
    font-family: inherit;
}
.filter-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}
.filter-btn.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

/* ============ AGENTS GRID + CARD ============ */

.agents-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.agent-card {
    background: var(--color-bg);
    border-radius: var(--radius-sm);
    padding: 24px 24px 28px;
    border: 2px solid rgba(7, 64, 73, 0.2);
    transition: all var(--transition);
    box-shadow: 0 2px 8px rgba(7, 64, 73, 0.02);
    height: 100%; display: flex; flex-direction: column;
}
.agent-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-accent);
}
.agent-card.hidden { display: none; }

.agent-card .tag {
    display: inline-block; font-size: 0.7rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--color-accent); background: rgba(6, 167, 123, 0.08);
    padding: 2px 12px; border-radius: 40px; margin-bottom: 12px;
    align-self: flex-start;
}
.agent-card h3 {
    font-size: 1.3rem; font-weight: 700; margin-bottom: 8px;
    color: var(--color-text);
}
.agent-card .desc {
    font-size: 0.95rem; opacity: 0.85; margin-bottom: 16px;
    color: #2a5a63; line-height: 1.65;
}
.agent-card ul {
    list-style: none; padding: 0; margin: 0 0 16px; flex: 1;
}
.agent-card ul li {
    font-size: 0.88rem; opacity: 0.85;
    padding-left: 22px; position: relative;
    margin-bottom: 6px; line-height: 1.55;
}
.agent-card ul li::before {
    content: "✓"; position: absolute; left: 0; top: 0;
    color: var(--color-accent); font-weight: 700;
}

.agent-meta {
    display: flex; flex-direction: column;
    gap: 8px; margin-bottom: 16px;
}
.agent-meta .meta-row {
    display: flex; flex-wrap: wrap; gap: 6px;
}
.agent-meta .effect {
    display: inline-block;
    background: rgba(6, 167, 123, 0.1);
    border: 1px solid rgba(6, 167, 123, 0.2);
    color: var(--color-accent);
    font-weight: 600; padding: 4px 14px;
    border-radius: 40px; font-size: 0.75rem;
}
.agent-meta .tech-row span {
    background: var(--color-white);
    padding: 3px 12px; border-radius: 40px;
    font-size: 0.7rem; font-weight: 500;
    border: 1px solid rgba(7, 64, 73, 0.08);
    color: var(--color-text);
}

.agent-actions {
    display: flex; gap: 10px; margin-top: auto;
}
.agent-actions .btn {
    flex: 1; padding: 10px 16px; font-size: 0.85rem;
    text-align: center;
}
.agent-actions .btn-outline { flex: 1; }

/* ============ MODAL ============ */

.modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(7, 64, 73, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000; justify-content: center;
    align-items: center; padding: 24px;
}
.modal-overlay.open { display: flex; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
    background: #fff; border-radius: var(--radius-md);
    padding: 40px; max-width: 640px; width: 100%;
    max-height: 85vh; overflow-y: auto;
    position: relative; animation: slideUp 0.3s ease;
}
@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.modal-close {
    position: absolute; top: 16px; right: 20px;
    background: none; border: none;
    font-size: 1.8rem; cursor: pointer;
    color: var(--color-text); opacity: 0.5;
    transition: opacity var(--transition); line-height: 1;
}
.modal-close:hover { opacity: 1; }
.modal h3 {
    font-size: 1.8rem; font-weight: 700; margin-bottom: 8px;
    color: var(--color-text);
}
.modal .modal-desc {
    font-size: 1rem; opacity: 0.85; margin-bottom: 24px;
    color: #2a5a63; line-height: 1.7;
}
.modal h4 {
    font-size: 1rem; font-weight: 700; margin: 20px 0 10px;
    color: var(--color-text);
}
.modal ul { list-style: none; padding: 0; margin: 0 0 16px; }
.modal ul li {
    font-size: 0.95rem; opacity: 0.85;
    padding-left: 24px; position: relative;
    margin-bottom: 8px; line-height: 1.6;
}
.modal ul li::before {
    content: "→"; position: absolute; left: 0; top: 0;
    color: var(--color-accent); font-weight: 700;
}
.modal .modal-meta {
    display: flex; flex-direction: column;
    gap: 8px; margin-bottom: 20px;
}
.modal .modal-meta .meta-row {
    display: flex; flex-wrap: wrap; gap: 6px;
}
.modal .modal-meta span {
    background: var(--color-bg);
    padding: 6px 16px; border-radius: 40px;
    font-size: 0.8rem; font-weight: 500;
    border: 1px solid rgba(7, 64, 73, 0.08);
}
.modal .modal-meta .effect {
    background: rgba(6, 167, 123, 0.1);
    border-color: rgba(6, 167, 123, 0.2);
    color: var(--color-accent); font-weight: 600;
}
.modal .modal-actions {
    display: flex; gap: 12px; margin-top: 24px;
}
.modal .modal-actions .btn { flex: 1; text-align: center; }

/* ============ FORM ============ */

.request-form {
    max-width: 480px; margin: 0 auto;
    background: var(--color-bg);
    border-radius: var(--radius-md);
    padding: 32px;
    border: 2px solid rgba(7, 64, 73, 0.2);
}
.request-form .field { margin-bottom: 14px; }
.request-form label {
    display: block; font-size: 0.85rem; font-weight: 600;
    margin-bottom: 4px;
}
.request-form input, .request-form textarea {
    width: 100%; padding: 12px 14px;
    border: 1px solid rgba(7, 64, 73, 0.1);
    border-radius: 12px; font-size: 0.95rem;
    font-family: inherit; background: #fff;
}
.request-form input:focus, .request-form textarea:focus {
    outline: none; border-color: var(--color-accent);
}
.request-form textarea { height: 80px; resize: vertical; }
.request-form .consent {
    display: flex; align-items: flex-start;
    gap: 8px; margin: 16px 0;
    font-size: 0.8rem; color: #2a5a63;
}
.request-form .consent input { width: auto; margin-top: 2px; }
.request-form .consent a {
    color: var(--color-accent); text-decoration: underline;
}
.request-form .status {
    text-align: center; margin-top: 12px;
    font-size: 0.85rem; min-height: 20px;
}
.request-form .status.success { color: var(--color-accent); }
.request-form .status.error { color: #d32f2f; }

/* ============ FOOTER ============ */

.footer {
    background: var(--color-text); color: #b6d4d4;
    padding: 48px 0 24px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin-top: 16px;
}
.footer-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 32px 24px; margin-bottom: 28px;
}
.footer-col h3 {
    color: #f0f8f5; font-size: 1.1rem; font-weight: 600;
    margin-bottom: 12px;
}
.footer-col p, .footer-col a {
    color: #b6d4d4; font-size: 0.9rem; line-height: 1.8;
    display: block; text-decoration: none;
    transition: color var(--transition);
}
.footer-col a:hover { color: var(--color-accent); }
.footer-bottom {
    border-top: 1px solid #1d5f66; padding-top: 20px;
    text-align: center; font-size: 0.8rem; color: #8bb2b2;
}
.footer-bottom a {
    color: #8bb2b2; text-decoration: underline;
}
.footer-bottom a:hover { color: var(--color-accent); }
.footer-socials {
    display: flex; gap: 16px; flex-wrap: wrap;
    margin-top: 8px; align-items: center;
}
.footer-socials a { display: inline-flex; align-items: center; }
.footer-socials img {
    width: 28px; height: 28px; object-fit: contain;
    display: block; transition: opacity 0.3s;
}
.footer-socials img:hover { opacity: 0.7; }

/* ============ RESPONSIVE ============ */

@media (max-width: 1024px) {
    .grid-5 { grid-template-columns: repeat(3, 1fr); }
    .grid-6 { grid-template-columns: repeat(3, 1fr); }
    .agents-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root { --header-height: 56px; }

    .header {
        padding: 6px 16px; min-height: 56px;
        border-radius: 0 0 var(--radius-xs) var(--radius-xs);
        gap: 12px; position: sticky; top: 0; background: #ffffff;
    }
    .logo img { max-height: 44px; height: 44px; }
    .burger { display: flex; }
    .nav {
        display: none; position: absolute; top: 56px; left: 0; right: 0;
        background: #ffffff; flex-direction: column; padding: 16px 20px;
        gap: 0; margin-left: 0;
        border-radius: 0 0 var(--radius-md) var(--radius-md);
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    }
    .nav.open { display: flex; }
    .nav a {
        font-size: 15px; padding: 12px 0;
        border-bottom: 1px solid rgba(7, 64, 73, 0.06);
        white-space: normal; color: var(--color-text);
    }
    .nav .btn { color: #fff; text-align: center; margin-top: 8px; }
    .nav a:last-child { border-bottom: none; }

    /* Переключатель на мобилке */
    .lang-switcher {
        margin: 12px 0 4px;
        padding: 4px;
        justify-content: center;
        background: rgba(7, 64, 73, 0.05);
        align-self: stretch;
    }
    .lang-link {
        flex: 1;
        text-align: center;
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .hero-wrapper { padding: 0; margin-bottom: 28px; min-height: auto; }
    .hero-content {
        display: flex; flex-direction: column;
        gap: 0; padding: 0;
    }
    .hero-image {
        order: -1;
        width: 100%;
        padding: 0 16px;
        box-sizing: border-box;
    }
    .hero-video {
        width: 100%; max-width: 100%;
        height: auto; display: block;
        border-radius: var(--radius-sm);
        clip-path: inset(0 0 8% 0 round var(--radius-sm));
    }
    .hero-text { padding: 24px 16px 40px; text-align: center; }
    .hero-text p { max-width: 100%; }
    .hero-buttons { justify-content: center; }

    .page-hero {
        padding: 40px 0 64px;
        border-radius: 0 0 var(--radius-md) var(--radius-md);
        margin-bottom: 32px;
    }
    .page-hero-lead {
        margin-bottom: 56px;
    }
    .hero-features {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .hero-feature {
        padding: 18px 20px;
        min-height: auto;
    }

    .section-block {
        padding: 40px 0; border-radius: var(--radius-md);
        margin: 16px 0;
    }
    .section-title { margin-bottom: 28px; }

    .grid-2, .grid-3, .grid-4, .grid-5, .grid-6 { grid-template-columns: 1fr 1fr; }
    .agents-grid { grid-template-columns: 1fr; gap: 16px; }

    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer {
        padding: 32px 0 20px;
        border-radius: var(--radius-md) var(--radius-md) 0 0;
    }
    .modal { padding: 28px 20px; }
}

@media (max-width: 480px) {
    :root { --header-height: 56px; }
    .header {
        padding: 4px 14px; min-height: 56px;
        border-radius: 0 0 var(--radius-xs) var(--radius-xs);
        gap: 8px; position: sticky; top: 0; background: #ffffff;
    }
    .logo img { max-height: 40px; height: 40px; }
    .hero-text h1 { font-size: 1.8rem; }
    .hero-video {
        max-width: 100%;
        border-radius: var(--radius-sm);
        clip-path: inset(0 0 8% 0 round var(--radius-sm));
    }
    .page-hero h1 { font-size: 1.8rem; }

    .hero-feature-num {
        width: 34px;
        height: 34px;
        font-size: 0.75rem;
    }
    .hero-feature-body strong { font-size: 0.9rem; }
    .hero-feature-body span { font-size: 0.78rem; }

    .lang-link {
        font-size: 0.8rem;
        padding: 6px 10px;
    }

    .section-block {
        padding: 24px 0; border-radius: var(--radius-sm);
        margin: 10px 0;
    }
    .grid-2, .grid-3, .grid-4, .grid-5, .grid-6 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .tech-pills span { font-size: 0.75rem; padding: 4px 12px; }
    .footer { padding: 20px 0 16px; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
    .agent-actions { flex-direction: column; }
    .modal { padding: 24px 16px; }
    .modal .modal-actions { flex-direction: column; }
}

/* ============ Уважение к системным настройкам анимации ============ */

@media (prefers-reduced-motion: reduce) {
    .hero-feature,
    .hero-feature-num {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}