/* === CookGlobe — Тёмная премиум тема === */
:root {
    --bg: #0a0a0f;
    --bg-card: #12121a;
    --bg-hover: #1a1a28;
    --text: #e8e8ef;
    --text-dim: #8888a0;
    --accent: #c9a84c;
    --accent-hover: #dbb95d;
    --accent-glow: rgba(201, 168, 76, 0.15);
    --border: rgba(255,255,255,0.06);
    --radius: 12px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* === NAV === */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: transparent;
    transition: background var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
}
.nav-logo {
    font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
    color: var(--accent); text-decoration: none;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
    color: var(--text-dim); text-decoration: none; font-size: 0.9rem;
    font-weight: 500; transition: color var(--transition);
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
    background: var(--accent); color: var(--bg); padding: 10px 24px;
    border-radius: 8px; text-decoration: none; font-weight: 600;
    font-size: 0.85rem; transition: all var(--transition);
}
.nav-cta:hover { background: var(--accent-hover); transform: translateY(-1px); }
.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-burger span {
    display: block; width: 24px; height: 2px; background: var(--text);
    margin: 5px 0; transition: var(--transition);
}

/* === HERO === */
.hero {
    position: relative; height: 100vh; min-height: 600px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1s ease;
    animation: heroZoom 8s ease-in-out infinite alternate;
}
.hero-slide.active { opacity: 1; }
@keyframes heroZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,10,15,0.4) 0%, rgba(10,10,15,0.8) 100%);
}
.hero-content {
    position: relative; z-index: 2; text-align: center;
    max-width: 700px; padding: 0 24px;
}
.hero-tagline {
    font-size: 0.8rem; color: var(--accent); text-transform: uppercase;
    letter-spacing: 3px; margin-bottom: 16px; font-weight: 500;
}
.hero-title {
    font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700; line-height: 1.15; margin-bottom: 16px;
    opacity: 0; animation: fadeUp 0.8s ease forwards;
}
.hero-subtitle {
    font-size: 1.15rem; color: var(--text-dim); margin-bottom: 12px;
    opacity: 0; animation: fadeUp 0.8s 0.2s ease forwards;
}
.hero-slogan {
    font-family: var(--font-display); font-size: 1.3rem; color: var(--accent);
    font-style: italic; margin-bottom: 32px;
    opacity: 0; animation: fadeUp 0.8s 0.4s ease forwards;
}
.hero-buttons {
    display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
    opacity: 0; animation: fadeUp 0.8s 0.6s ease forwards;
}
.hero-indicators {
    position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 10px; z-index: 3;
}
.hero-dot {
    width: 10px; height: 10px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.4);
    background: transparent; cursor: pointer; transition: var(--transition);
}
.hero-dot.active { background: var(--accent); border-color: var(--accent); width: 28px; border-radius: 5px; }
.hero-arrow {
    position: absolute; top: 50%; z-index: 3; background: rgba(255,255,255,0.08);
    border: none; color: white; font-size: 2rem; padding: 12px 16px;
    cursor: pointer; transition: var(--transition); border-radius: 8px;
}
.hero-arrow-left { left: 20px; transform: translateY(-50%); }
.hero-arrow-right { right: 20px; transform: translateY(-50%); }
.hero-arrow:hover { background: rgba(255,255,255,0.15); }

/* === BUTTONS === */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: 8px; font-weight: 600;
    font-size: 0.95rem; text-decoration: none; transition: all var(--transition);
    cursor: pointer; border: none;
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 24px var(--accent-glow); }
.btn-outline { background: transparent; color: var(--text); border: 2px solid rgba(255,255,255,0.2); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* === SECTIONS === */
.section { padding: 100px 0; }
.section-title {
    font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.5rem);
    text-align: center; margin-bottom: 12px;
}
.section-subtitle { text-align: center; color: var(--text-dim); margin-bottom: 56px; font-size: 1.05rem; }

/* === SERVICES === */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.service-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 36px 28px; transition: all var(--transition);
}
.service-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 12px 40px var(--accent-glow); }
.service-icon { width: 48px; height: 48px; color: var(--accent); margin-bottom: 20px; }
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 12px; font-weight: 600; }
.service-card p { color: var(--text-dim); font-size: 0.92rem; line-height: 1.6; }

/* === STATS === */
.stats { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 72px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-number { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--accent); }
.stat-suffix { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); color: var(--accent); }
.stat-label { display: block; margin-top: 8px; color: var(--text-dim); font-size: 0.9rem; }

/* === TIMELINE === */
.timeline-track { position: relative; max-width: 700px; margin: 0 auto; }
.timeline-track::before {
    content: ''; position: absolute; left: 28px; top: 0; bottom: 0;
    width: 2px; background: var(--border);
}
.timeline-item {
    display: flex; gap: 24px; margin-bottom: 40px; position: relative;
    opacity: 0; transform: translateX(-20px);
}
.timeline-item.visible { opacity: 1; transform: translateX(0); transition: all 0.6s ease; }
.timeline-number {
    width: 56px; height: 56px; min-width: 56px; border-radius: 50%;
    background: var(--bg-card); border: 2px solid var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
    color: var(--accent); z-index: 1;
}
.timeline-body h3 { margin-bottom: 4px; font-size: 1.1rem; }
.timeline-body p { color: var(--text-dim); font-size: 0.92rem; }

/* === GALLERY === */
.gallery-filters { display: flex; justify-content: center; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }
.filter-btn {
    padding: 10px 24px; border-radius: 8px; border: 1px solid var(--border);
    background: transparent; color: var(--text-dim); cursor: pointer;
    font-size: 0.9rem; transition: all var(--transition);
}
.filter-btn.active, .filter-btn:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.gallery-card {
    border-radius: var(--radius); overflow: hidden; position: relative;
    cursor: pointer; transition: transform var(--transition);
}
.gallery-card:hover { transform: scale(1.02); }
.gallery-card.hidden { display: none; }
.gallery-img { height: 240px; background-size: cover; background-position: center; }
.gallery-info {
    position: absolute; bottom: 0; left: 0; right: 0; padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    display: flex; justify-content: space-between; align-items: flex-end;
}
.gallery-info h3 { font-size: 1rem; font-weight: 600; }
.gallery-info span { color: var(--accent); font-size: 0.85rem; }

/* === BEFORE AFTER === */
.ba-container { max-width: 700px; margin: 0 auto; }
.ba-slider {
    position: relative; overflow: hidden; border-radius: var(--radius);
    height: 400px; cursor: ew-resize; user-select: none;
}
.ba-before, .ba-after {
    position: absolute; inset: 0; background-size: cover; background-position: center;
}
.ba-before { clip-path: inset(0 50% 0 0); }
.ba-label {
    position: absolute; top: 16px; padding: 6px 16px; border-radius: 6px;
    background: rgba(0,0,0,0.6); color: white; font-size: 0.8rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px;
}
.ba-before .ba-label { left: 16px; }
.ba-after .ba-label { right: 16px; }
.ba-handle {
    position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; z-index: 2;
}
.ba-line { flex: 1; width: 2px; background: var(--accent); }
.ba-circle {
    width: 40px; height: 40px; border-radius: 50%; background: var(--accent);
    color: var(--bg); display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.1rem;
}

/* === FAQ === */
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
    width: 100%; padding: 20px 0; background: none; border: none;
    color: var(--text); font-size: 1rem; font-weight: 500;
    display: flex; justify-content: space-between; align-items: center;
    cursor: pointer; text-align: left;
}
.faq-arrow { width: 20px; height: 20px; color: var(--text-dim); transition: transform var(--transition); min-width: 20px; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-answer p { padding: 0 0 20px; color: var(--text-dim); font-size: 0.95rem; line-height: 1.7; }
.faq-item.open .faq-answer { max-height: 300px; }

/* === CONTACTS === */
.contacts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.contact-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 32px; text-align: center; transition: all var(--transition);
}
.contact-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.contact-icon { width: 48px; height: 48px; margin: 0 auto 16px; color: var(--accent); }
.contact-icon svg { width: 100%; height: 100%; }
.contact-card h3 { margin-bottom: 8px; font-size: 1rem; }
.contact-card a, .contact-card p { color: var(--text-dim); text-decoration: none; font-size: 0.92rem; }
.contact-card a:hover { color: var(--accent); }

/* === FOOTER === */
.footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-logo { font-family: var(--font-display); font-size: 1.5rem; color: var(--accent); margin-bottom: 12px; }
.footer-desc { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 8px; }
.footer-legal { color: var(--text-dim); font-size: 0.8rem; }
.footer-grid h4 { color: var(--accent); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-grid a { display: block; color: var(--text-dim); text-decoration: none; font-size: 0.9rem; margin-bottom: 8px; transition: color var(--transition); }
.footer-grid a:hover { color: var(--accent); }
.footer-grid p { color: var(--text-dim); font-size: 0.9rem; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; text-align: center; }
.footer-bottom p { color: var(--text-dim); font-size: 0.8rem; }

/* === AI WIDGET === */
.ai-widget { position: fixed; bottom: 24px; right: 24px; z-index: 999; }
.ai-toggle {
    width: 56px; height: 56px; border-radius: 50%; background: var(--accent);
    border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px var(--accent-glow); transition: all var(--transition);
}
.ai-toggle:hover { transform: scale(1.1); }
.ai-toggle svg { width: 24px; height: 24px; color: var(--bg); }
.ai-chat {
    display: none; position: absolute; bottom: 72px; right: 0;
    width: 360px; max-height: 480px; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; flex-direction: column;
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}
.ai-chat.open { display: flex; }
.ai-header {
    padding: 16px; display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--border); font-weight: 600;
}
.ai-close { background: none; border: none; color: var(--text-dim); font-size: 1.5rem; cursor: pointer; }
.ai-messages { flex: 1; overflow-y: auto; padding: 16px; max-height: 340px; }
.ai-msg { padding: 10px 14px; border-radius: 10px; margin-bottom: 10px; font-size: 0.9rem; line-height: 1.5; max-width: 85%; }
.ai-bot { background: var(--bg-hover); color: var(--text); }
.ai-user { background: var(--accent); color: var(--bg); margin-left: auto; }
.ai-input-wrap {
    display: flex; padding: 12px; border-top: 1px solid var(--border); gap: 8px;
}
.ai-input-wrap input {
    flex: 1; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--border);
    background: var(--bg); color: var(--text); font-size: 0.9rem; outline: none;
}
.ai-input-wrap input:focus { border-color: var(--accent); }
.ai-input-wrap button {
    padding: 10px 16px; border-radius: 8px; background: var(--accent);
    color: var(--bg); border: none; cursor: pointer; font-size: 1rem;
}

/* === ANIMATIONS === */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
[data-aos=fade-up] { opacity: 0; transform: translateY(30px); transition: all 0.6s ease; }
[data-aos=fade-up].visible { opacity: 1; transform: translateY(0); }

/* === MOBILE === */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-cta { display: none; }
    .nav-burger { display: block; }
    .nav-links.open {
        display: flex; flex-direction: column; position: absolute;
        top: 72px; left: 0; right: 0; background: rgba(10,10,15,0.98);
        padding: 24px; gap: 20px;
    }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .gallery-grid { grid-template-columns: 1fr; }
    .ba-slider { height: 280px; }
    .hero-arrow { display: none; }
    .ai-chat { width: calc(100vw - 48px); right: -12px; }
}

/* === PAGE HERO (внутренние страницы) === */
.page-hero {
    height: 50vh; min-height: 350px; position: relative;
    display: flex; align-items: center; justify-content: center;
    background-size: cover; background-position: center;
}
.page-hero.compact { height: 40vh; min-height: 280px; }
.page-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,10,15,0.5) 0%, rgba(10,10,15,0.85) 100%);
}
.page-hero-content { position: relative; z-index: 2; text-align: center; padding: 0 24px; }
.page-hero-content h1 {
    font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 12px;
}
.page-hero-content p { color: var(--text-dim); font-size: 1.15rem; }

/* === SPLIT BLOCK === */
.split-block { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split-block.reverse { direction: rtl; }
.split-block.reverse > * { direction: ltr; }
.split-image { height: 400px; border-radius: var(--radius); background-size: cover; background-position: center; }
.section-title.left { text-align: left; }
.lead { color: var(--text-dim); font-size: 1.05rem; line-height: 1.7; margin-bottom: 20px; }
.feature-list { list-style: none; margin-bottom: 28px; }
.feature-list li {
    padding: 8px 0 8px 28px; position: relative; color: var(--text-dim); font-size: 0.95rem;
}
.feature-list li::before {
    content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700;
}

/* === BENEFITS GRID === */
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.benefit-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 32px; transition: all var(--transition);
}
.benefit-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.benefit-icon { font-size: 2rem; margin-bottom: 16px; }
.benefit-card h3 { margin-bottom: 12px; color: var(--accent); }
.benefit-card ul { list-style: none; }
.benefit-card li { padding: 4px 0; color: var(--text-dim); font-size: 0.92rem; }

/* === DARK SECTION === */
.section.dark { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* === CTA SECTION === */
.cta-section { background: linear-gradient(135deg, rgba(201,168,76,0.08), rgba(10,10,15,0.95)); }
.center { text-align: center; }

/* === PROCESS DETAILED === */
.process-detailed { max-width: 800px; margin: 0 auto; }
.process-step {
    display: flex; gap: 32px; margin-bottom: 48px; padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
}
.process-step:last-child { border-bottom: none; }
.process-number {
    font-family: var(--font-display); font-size: 3rem; font-weight: 700;
    color: var(--accent); opacity: 0.3; min-width: 80px;
}
.process-body h3 { font-size: 1.3rem; margin-bottom: 8px; }
.process-body p { color: var(--text-dim); font-size: 0.95rem; line-height: 1.7; }
.process-detail { margin-top: 8px; font-style: italic; }

/* === FAQ WIDE === */
.faq-list.wide { max-width: 900px; }

/* === GALLERY LARGE === */
.gallery-grid.large { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.gallery-grid.large .gallery-img { height: 280px; }

/* === CONTACTS LARGE === */
.contacts-grid.large { grid-template-columns: repeat(2, 1fr); gap: 28px; }
.contact-card.accent { border-color: var(--accent); }
.contact-link { color: var(--accent) !important; font-size: 1.1rem; font-weight: 600; display: block; margin-bottom: 4px; }
.contact-note { color: var(--text-dim); font-size: 0.82rem; }

/* === NAV ACTIVE === */
.nav-links a.active { color: var(--accent); }

/* === MOBILE pages === */
@media (max-width: 768px) {
    .split-block { grid-template-columns: 1fr; }
    .split-block.reverse { direction: ltr; }
    .split-image { height: 250px; }
    .process-step { flex-direction: column; gap: 16px; }
    .process-number { font-size: 2rem; }
    .contacts-grid.large { grid-template-columns: 1fr; }
    .gallery-grid.large { grid-template-columns: 1fr; }
}

/* === FIX NAV — яркие кнопки === */
.nav { background: rgba(10, 10, 15, 0.95); backdrop-filter: blur(20px); box-shadow: 0 1px 0 var(--border); }
.nav-links a {
    color: #e0e0e8;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 8px 14px;
    border-radius: 6px;
    transition: all var(--transition);
}
.nav-links a:hover { color: var(--bg); background: var(--accent); }
.nav-links a.active { color: var(--bg); background: var(--accent); }

/* === VIDEO === */
.video-container {
    max-width: 800px; margin: 0 auto; border-radius: var(--radius);
    overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    border: 1px solid var(--border);
}
.video-container video { width: 100%; display: block; }

/* === FIX NAV v2 — логотип отдельно, кнопки зеленовато-желтые === */
.nav-logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: #d4af37;
    text-decoration: none;
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 1px;
}
.nav-logo::before {
    content: '▲';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #d4af37, #b8960c);
    color: var(--bg);
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 900;
}
.nav-links {
    margin-left: 40px;
}
.nav-links a {
    color: #c8e6a0 !important;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: all var(--transition);
}
.nav-links a:hover {
    background: rgba(180, 220, 100, 0.15);
    border-color: rgba(180, 220, 100, 0.3);
    color: #e0f0b0 !important;
}
.nav-links a.active {
    background: rgba(180, 220, 100, 0.2) !important;
    border-color: #b4dc64 !important;
    color: #e0f0b0 !important;
}

/* === FIX NAV v3 — компактный логотип, всё в одну строку === */
.nav-logo {
    font-size: 1rem !important;
    white-space: nowrap;
    margin-right: 32px;
    letter-spacing: 0.5px;
}
.nav-logo::before {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.8rem !important;
    border-radius: 6px;
}
.nav-inner {
    gap: 0;
}
.nav-links {
    margin-left: 0 !important;
    gap: 4px !important;
}
.nav-links a {
    font-size: 0.82rem !important;
    padding: 6px 10px !important;
}

/* === SaaS STYLE — чистый профессиональный вид === */
:root {
    --bg: #0b0d17 !important;
    --bg-card: #111422 !important;
    --bg-hover: #181c2e !important;
    --text: #f0f2ff !important;
    --text-dim: #9ba1bf !important;
    --accent: #e8c547 !important;
    --accent-hover: #f5d85e !important;
    --accent-glow: rgba(232, 197, 71, 0.12) !important;
    --border: rgba(255,255,255,0.08) !important;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Заголовки — белые, чёткие */
h1, h2, h3, .section-title { color: #ffffff !important; }

/* Подзаголовки — светло-серо-голубые */
.section-subtitle, .lead, p { color: #b0b8d4; }

/* Hero текст яркий */
.hero-title { color: #ffffff !important; text-shadow: 0 2px 20px rgba(0,0,0,0.5); }
.hero-subtitle { color: #c8cde6 !important; }
.hero-slogan { color: var(--accent) !important; }
.hero-tagline { color: var(--accent) !important; opacity: 0.9; }

/* Карточки — чёткие границы, глубина */
.service-card, .benefit-card, .contact-card, .faq-item {
    border-color: rgba(255,255,255,0.06) !important;
    background: linear-gradient(145deg, #111422, #0e1120) !important;
}
.service-card:hover, .benefit-card:hover, .contact-card:hover {
    border-color: var(--accent) !important;
    box-shadow: 0 8px 32px rgba(232, 197, 71, 0.08) !important;
}

/* Кнопки CTA — яркие */
.btn-primary {
    background: linear-gradient(135deg, #e8c547, #d4a017) !important;
    color: #0b0d17 !important;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(232, 197, 71, 0.25);
}
.btn-primary:hover {
    box-shadow: 0 8px 32px rgba(232, 197, 71, 0.35) !important;
    transform: translateY(-2px);
}
.btn-outline {
    border-color: rgba(232, 197, 71, 0.4) !important;
    color: var(--accent) !important;
}
.btn-outline:hover {
    background: rgba(232, 197, 71, 0.1) !important;
    border-color: var(--accent) !important;
}

/* Stats — яркие цифры */
.stat-number, .stat-suffix { color: #e8c547 !important; }
.stat-label { color: #8891b0 !important; }

/* Footer — глубокий */
.footer { background: #080a12 !important; }

/* Nav SaaS */
.nav { background: rgba(11, 13, 23, 0.97) !important; border-bottom: 1px solid rgba(255,255,255,0.05); }
.nav-logo { color: #e8c547 !important; }

/* === FIX HERO TEXT — яркий контрастный === */
.hero-tagline {
    color: #ffd700 !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8) !important;
    font-size: 0.9rem !important;
}
.hero-title {
    text-shadow: 0 3px 24px rgba(0,0,0,0.8), 0 1px 4px rgba(0,0,0,0.9) !important;
}
.hero-subtitle {
    color: #e8eaf0 !important;
    text-shadow: 0 2px 12px rgba(0,0,0,0.8) !important;
}
.hero-slogan {
    color: #ffd700 !important;
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    text-shadow: 0 2px 12px rgba(0,0,0,0.8) !important;
}
.hero-overlay {
    background: linear-gradient(180deg, rgba(10,10,15,0.3) 0%, rgba(10,10,15,0.7) 60%, rgba(10,10,15,0.9) 100%) !important;
}

/* === Admin link в footer === */
.admin-link {
    display: inline-block;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.75rem;
    opacity: 0.4;
    margin-bottom: 8px;
    transition: opacity var(--transition);
}
.admin-link:hover { opacity: 1; color: var(--accent); }

/* === Hero region отдельной строкой === */
.hero-region {
    color: #c8cde6;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

/* === FIX SLOGAN — одна строка === */
.hero-slogan {
    font-size: 1.1rem !important;
    white-space: nowrap;
}
@media (max-width: 768px) {
    .hero-slogan {
        font-size: 0.9rem !important;
        white-space: normal;
    }
}

/* === FIX SLOGAN v2 — две строки === */
.hero-slogan {
    white-space: normal !important;
    font-size: 1.3rem !important;
    margin-bottom: 8px !important;
}
.hero-slogan2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: #ffd700;
    font-style: italic;
    margin-bottom: 32px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.8);
    opacity: 0;
    animation: fadeUp 0.8s 0.5s ease forwards;
}

/* === LIGHTBOX === */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
    object-fit: contain;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 10000;
    line-height: 1;
}
.lightbox-close:hover { color: var(--accent); }

/* === Logo image === */
.nav-logo-img { height: 32px; border-radius: 6px; margin-right: 8px; vertical-align: middle; }
.nav-logo-icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: linear-gradient(135deg, var(--accent), #b8960c); color: var(--bg); border-radius: 6px; font-size: 0.8rem; font-weight: 900; margin-right: 8px; }
.nav-logo::before { display: none !important; }

/* === FAQ SaaS style === */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: linear-gradient(145deg, #111422, #0e1120) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    border-radius: 12px !important;
    margin-bottom: 12px !important;
    padding: 0 !important;
    transition: all 0.3s ease;
    overflow: hidden;
}
.faq-item:hover {
    border-color: var(--accent) !important;
    box-shadow: 0 4px 20px rgba(232, 197, 71, 0.06);
}
.faq-item.open {
    border-color: var(--accent) !important;
    box-shadow: 0 4px 24px rgba(232, 197, 71, 0.08);
}
.faq-question {
    padding: 20px 24px !important;
    font-size: 1.05rem !important;
    font-weight: 500 !important;
    border-bottom: none !important;
}
.faq-question span {
    flex: 1;
}
.faq-arrow {
    width: 24px !important;
    height: 24px !important;
    color: var(--accent) !important;
    transition: transform 0.3s ease;
}
.faq-item.open .faq-arrow {
    transform: rotate(180deg);
}
.faq-answer {
    padding: 0 24px !important;
}
.faq-answer p {
    padding: 0 0 20px !important;
    line-height: 1.8 !important;
    color: #9ba1bf !important;
}
.faq-item:not(.open) .faq-answer {
    max-height: 0 !important;
}
.faq-item.open .faq-answer {
    max-height: 500px !important;
}

/* FAQ page wide */
.faq-list.wide { max-width: 900px; }
.faq-list.wide .faq-item { margin-bottom: 16px; }

/* === MOBILE FIX hero === */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    .hero-subtitle {
        font-size: 0.95rem !important;
    }
    .hero-slogan {
        font-size: 1rem !important;
    }
    .hero-tagline {
        font-size: 0.7rem !important;
    }
    .hero-region {
        font-size: 0.7rem !important;
    }
    .hero-content {
        padding: 0 16px !important;
    }
    .hero-buttons .btn {
        padding: 12px 20px !important;
        font-size: 0.85rem !important;
    }
    .nav-logo {
        font-size: 0.9rem !important;
    }
    .nav-logo-icon {
        width: 24px !important;
        height: 24px !important;
        font-size: 0.7rem !important;
    }
    .section-title {
        font-size: 1.5rem !important;
    }
    .section-subtitle {
        font-size: 0.9rem !important;
    }
    .page-hero-content h1 {
        font-size: 1.8rem !important;
    }
}

/* === MOBILE FIX v2 === */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.6rem !important;
    }
    .hero-slogan {
        font-size: 0.85rem !important;
    }
    .hero {
        min-height: 100vh !important;
    }
}
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.4rem !important;
    }
    .hero-subtitle {
        font-size: 0.8rem !important;
    }
    .hero-slogan {
        font-size: 0.75rem !important;
    }
}

/* === Logo image bigger === */
.nav-logo-img {
    height: 50px !important;
    border-radius: 0 !important;
}
@media (max-width: 768px) {
    .nav-logo-img {
        height: 36px !important;
    }
}
