/* ============================================================
   БИЗНЕС-АКТИВ — покупка и продажа ТОО (основной стиль)
   Палитра: тёмно-синий (navy), золотой акцент, нейтрали
   ============================================================ */
:root {
    --navy-900: #0a1526;
    --navy-800: #0e1c33;
    --navy-700: #16294a;
    --navy-600: #213860;
    --gold: #c99a3f;
    --gold-600: #b3852f;
    --gold-100: #f6ecd6;
    --ink: #16202e;
    --muted: #5c6b7e;
    --line: #e7ebf1;
    --bg: #ffffff;
    --bg-soft: #f5f7fa;
    --white: #ffffff;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 18px 50px -20px rgba(14, 28, 51, .28);
    --shadow-sm: 0 8px 24px -12px rgba(14, 28, 51, .25);
    --container: 1400px;
    --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; background: var(--bg); }
body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
body.modal-open, body.nav-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
.icon { width: 24px; height: 24px; }

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

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 26px; border-radius: var(--radius-sm); font-weight: 700; font-size: 15px;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
    position: relative; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold); color: var(--navy-900); box-shadow: 0 10px 24px -10px rgba(201,154,63,.7); }
.btn-primary:hover { background: var(--gold-600); transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(201,154,63,.75); }
.btn-outline-light { border: 1.5px solid rgba(255,255,255,.5); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-lg { padding: 17px 34px; font-size: 16px; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn .btn-spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(0,0,0,.25); border-top-color: var(--navy-900); border-radius: 50%; animation: spin .7s linear infinite; }
.btn.is-loading .btn-label { opacity: .5; }
.btn.is-loading .btn-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Хедер ---------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 16px 0; transition: padding .3s var(--ease), background .3s, box-shadow .3s;
}
.site-header.is-scrolled { background: rgba(255,255,255,.96); backdrop-filter: blur(10px); box-shadow: 0 6px 24px -14px rgba(14,28,51,.4); padding: 10px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: .5px; color: #fff; }
.site-header.is-scrolled .logo { color: var(--navy-800); }
.logo-mark { width: 30px; height: 30px; color: var(--gold); }
.main-nav { display: flex; gap: 28px; }
.main-nav a { font-weight: 600; font-size: 15px; color: rgba(255,255,255,.9); position: relative; padding: 4px 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--gold); transition: width .3s var(--ease); }
.main-nav a:hover::after { width: 100%; }
.site-header.is-scrolled .main-nav a { color: var(--navy-800); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.lang-switch { display: inline-flex; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; overflow: hidden; }
.lang-switch a { padding: 6px 10px; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.85); }
.lang-switch a.active { background: var(--gold); color: var(--navy-900); }
.site-header.is-scrolled .lang-switch { border-color: var(--line); }
.site-header.is-scrolled .lang-switch a { color: var(--navy-700); }
.site-header.is-scrolled .lang-switch a.active { background: var(--gold); color: var(--navy-900); }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: #fff; }
.header-phone .icon { width: 18px; height: 18px; color: var(--gold); }
.site-header.is-scrolled .header-phone { color: var(--navy-800); }
.nav-toggle { display: none; color: #fff; }
.site-header.is-scrolled .nav-toggle { color: var(--navy-800); }

/* ---------- Секции ---------- */
.section { padding: 96px 0; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 100px;
    background: var(--gold-100); color: var(--gold-600); font-weight: 700; font-size: 13px;
    letter-spacing: .6px; text-transform: uppercase; margin-bottom: 18px;
}
.section-badge .icon { width: 15px; height: 15px; }
.badge-light { background: rgba(201,154,63,.18); color: var(--gold); }
.section-title { font-family: var(--font-display); font-size: clamp(28px, 4vw, 44px); line-height: 1.15; font-weight: 700; color: var(--navy-800); text-wrap: balance; }
.section-subtitle { margin-top: 16px; font-size: 17px; color: var(--muted); text-wrap: pretty; }
.section-dark { background: var(--navy-800); }
.section-dark .section-title { color: #fff; }
.section-dark .section-subtitle { color: rgba(255,255,255,.7); }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 140px 0 80px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.05); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(105deg, rgba(10,21,38,.95) 0%, rgba(14,28,51,.82) 45%, rgba(14,28,51,.55) 100%); }
.hero-inner { position: relative; z-index: 2; }
.hero-content { max-width: 720px; color: #fff; }
.hero-title { font-family: var(--font-display); font-size: clamp(34px, 5.5vw, 62px); line-height: 1.08; font-weight: 700; text-wrap: balance; }
.hero-subtitle { margin-top: 22px; font-size: clamp(16px, 2vw, 20px); color: rgba(255,255,255,.85); max-width: 600px; text-wrap: pretty; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 16px; }
.hero-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 40px; margin-top: 56px; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-display); font-size: 40px; font-weight: 700; color: var(--gold); }
.hero-stats span { font-size: 14px; color: rgba(255,255,255,.7); margin-top: 4px; }

/* ---------- Сетка карточек ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-grid.cards-4 { grid-template-columns: repeat(4, 1fr); }
.service-card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card-icon { width: 60px; height: 60px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-100); color: var(--gold-600); margin-bottom: 22px; transition: background .3s, color .3s; }
.service-card:hover .card-icon { background: var(--gold); color: #fff; }
.card-icon .icon { width: 30px; height: 30px; }
.service-card h3 { font-size: 20px; font-weight: 700; color: var(--navy-800); margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 15px; }
.card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-weight: 700; font-size: 14px; color: var(--gold-600); }
.card-link .icon { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.card-link:hover .icon { transform: translateX(5px); }

.advantage-card { text-align: center; padding: 34px 24px; border-radius: var(--radius); background: var(--navy-700); }
.advantage-card .card-icon { margin: 0 auto 22px; background: rgba(201,154,63,.15); color: var(--gold); }
.advantage-card h3 { color: #fff; font-size: 19px; margin-bottom: 10px; }
.advantage-card p { color: rgba(255,255,255,.65); font-size: 15px; }

/* ---------- О компании ---------- */
.section-about { background: var(--bg-soft); }
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; aspect-ratio: 4/4.2; width: 100%; }
.about-badge { position: absolute; right: -18px; bottom: 40px; background: var(--gold); color: var(--navy-900); border-radius: 14px; padding: 18px 24px; box-shadow: var(--shadow); text-align: center; }
.about-badge strong { display: block; font-family: var(--font-display); font-size: 34px; line-height: 1; }
.about-badge span { font-size: 13px; font-weight: 600; }
.about-text { margin: 22px 0; color: var(--muted); font-size: 16px; }
.check-list { list-style: none; display: grid; gap: 14px; margin-bottom: 30px; }
.check-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--navy-800); }
.check-list .icon { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--gold-100); color: var(--gold-600); flex-shrink: 0; }

/* ---------- Квиз ---------- */
.section-quiz { background: var(--bg-soft); }
.quiz { max-width: 760px; margin: 0 auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.quiz-progress { height: 6px; background: var(--line); }
.quiz-progress-bar { height: 100%; width: 0; background: var(--gold); transition: width .4s var(--ease); }
.quiz-steps { padding: 44px; }
.quiz-step { display: none; animation: fadeUp .4s var(--ease); }
.quiz-step.active { display: block; }
.quiz-question { font-size: 24px; font-weight: 700; color: var(--navy-800); margin-bottom: 26px; text-align: center; }
.quiz-options { display: grid; gap: 14px; }
.quiz-option {
    text-align: left; padding: 18px 22px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    font-weight: 600; font-size: 16px; color: var(--navy-800); transition: all .25s var(--ease);
}
.quiz-option:hover { border-color: var(--gold); background: var(--gold-100); transform: translateX(4px); }
.quiz-option.selected { border-color: var(--gold); background: var(--gold-100); }
.quiz-final-text { text-align: center; color: var(--muted); margin-bottom: 24px; }
.quiz-final .lead-form { max-width: 420px; margin: 0 auto; }

/* ---------- CTA ---------- */
.cta-block { position: relative; background-size: cover; background-position: center; padding: 90px 0; overflow: hidden; }
.cta-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,21,38,.94), rgba(14,28,51,.8)); }
.cta-inner { position: relative; z-index: 2; text-align: center; max-width: 720px; margin: 0 auto; color: #fff; }
.cta-inner h2 { font-family: var(--font-display); font-size: clamp(26px, 3.6vw, 40px); font-weight: 700; text-wrap: balance; }
.cta-inner p { margin: 16px 0 30px; font-size: 18px; color: rgba(255,255,255,.82); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #fff; transition: box-shadow .3s, border-color .3s; }
.faq-item.is-open { box-shadow: var(--shadow-sm); border-color: transparent; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; font-weight: 700; font-size: 17px; color: var(--navy-800); text-align: left; }
.faq-toggle { position: relative; width: 20px; height: 20px; flex-shrink: 0; }
.faq-toggle::before, .faq-toggle::after { content: ""; position: absolute; background: var(--gold-600); border-radius: 2px; transition: transform .3s var(--ease); }
.faq-toggle::before { top: 9px; left: 0; width: 20px; height: 2px; }
.faq-toggle::after { top: 0; left: 9px; width: 2px; height: 20px; }
.faq-item.is-open .faq-toggle::after { transform: rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a p { padding: 0 26px 24px; color: var(--muted); }

/* ---------- Контакты ---------- */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contacts-list { list-style: none; display: grid; gap: 20px; margin-top: 30px; }
.contacts-list li { display: flex; align-items: center; gap: 16px; font-size: 16px; color: var(--navy-800); }
.contacts-list .ci { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-100); color: var(--gold-600); flex-shrink: 0; }
.contacts-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-sm); }
.contacts-form h3 { font-size: 22px; color: var(--navy-800); margin-bottom: 22px; }
.map-wrap { margin-top: 56px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }

/* ---------- Формы ---------- */
.lead-form .field { margin-bottom: 14px; }
.lead-form input, .lead-form textarea {
    width: 100%; padding: 15px 18px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    font-family: inherit; font-size: 15px; color: var(--ink); background: var(--bg-soft); transition: border-color .25s, background .25s;
}
.lead-form input:focus, .lead-form textarea:focus { outline: none; border-color: var(--gold); background: #fff; }
.lead-form textarea { resize: vertical; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0; }
.agree { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--muted); margin: 6px 0 16px; cursor: pointer; }
.agree input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--gold); flex-shrink: 0; }
.form-status { margin-top: 12px; font-size: 14px; font-weight: 600; text-align: center; }
.form-status.is-success { color: #1f9254; }
.form-status.is-error { color: #d23b3b; }

/* ---------- Подвал ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.7); padding: 70px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .logo { margin-bottom: 18px; }
.footer-brand p { font-size: 15px; max-width: 340px; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: var(--gold); transition: background .25s; }
.footer-social a:hover { background: var(--gold); color: var(--navy-900); }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer-col a { display: block; padding: 6px 0; color: rgba(255,255,255,.7); transition: color .2s; }
.footer-col a:hover { color: var(--gold); }
.footer-contacts a, .footer-contacts span { display: flex; align-items: center; gap: 10px; padding: 6px 0; color: rgba(255,255,255,.7); }
.footer-contacts .icon { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 13px; flex-wrap: wrap; gap: 10px; }
.footer-admin-link { color: rgba(255,255,255,.4); }
.footer-admin-link:hover { color: var(--gold); }

/* ---------- Модалки ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(10,21,38,.7); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s var(--ease); }
.modal-overlay.is-open { opacity: 1; }
.modal-overlay[hidden] { display: none; }
.modal { position: relative; width: 100%; max-width: 460px; background: #fff; border-radius: var(--radius); padding: 44px 38px; box-shadow: var(--shadow); transform: translateY(24px) scale(.98); transition: transform .35s var(--ease); }
.modal-overlay.is-open .modal { transform: translateY(0) scale(1); }
.modal-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); background: var(--bg-soft); transition: background .2s, color .2s; }
.modal-close:hover { background: var(--gold-100); color: var(--gold-600); }
.modal-body h3 { font-family: var(--font-display); font-size: 26px; color: var(--navy-800); margin: 8px 0; }
.modal-body > p { color: var(--muted); margin-bottom: 22px; }
.popup-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-100); color: var(--gold-600); margin-bottom: 18px; }
.popup-icon .icon { width: 34px; height: 34px; }

/* ---------- WhatsApp FAB ---------- */
.whatsapp-fab { position: fixed; right: 22px; bottom: 22px; z-index: 150; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37,211,102,.6); transition: transform .25s; animation: pulse 2.4s infinite; }
.whatsapp-fab svg { width: 30px; height: 30px; }
.whatsapp-fab:hover { transform: scale(1.08); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

/* ---------- Анимации скролла ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Мобильное меню ---------- */
@media (max-width: 992px) {
    .cards-grid, .cards-grid.cards-4 { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-media { max-width: 460px; margin: 0 auto; }
    .contacts-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .main-nav {
        position: fixed; top: 0; right: 0; bottom: 0; width: 78%; max-width: 320px;
        flex-direction: column; gap: 0; background: var(--navy-800); padding: 90px 30px 30px;
        transform: translateX(100%); transition: transform .35s var(--ease); z-index: 90; box-shadow: -10px 0 40px rgba(0,0,0,.3);
    }
    .main-nav.is-open { transform: translateX(0); }
    .main-nav a { color: #fff; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 17px; }
    .nav-toggle { display: grid; place-items: center; }
    .header-phone, .header-actions .btn { display: none; }
    .section { padding: 68px 0; }
    .hero { min-height: auto; padding: 130px 0 70px; }
    .hero-stats { gap: 28px; }
    .hero-stats strong { font-size: 32px; }
    .quiz-steps { padding: 28px 20px; }
    .quiz-question { font-size: 20px; }
    .modal { padding: 38px 24px; }
}
@media (max-width: 560px) {
    .cards-grid, .cards-grid.cards-4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .container { padding: 0 18px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .about-badge { right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    * { scroll-behavior: auto; }
    .whatsapp-fab { animation: none; }
}
