/* ===================== ФНК — Premium dark/gold theme ===================== */
:root {
    --bg:        #0a0a0c;
    --bg-2:      #0f0f12;
    --bg-3:      #141418;
    --card:      #15151a;
    --card-2:    #1a1a20;
    --line:      rgba(201, 162, 75, 0.16);
    --line-soft: rgba(255, 255, 255, 0.07);
    --txt:       #ece9e3;
    --txt-mut:   #9a958c;
    --txt-dim:   #6f6a62;
    --gold:      #c9a24b;
    --gold-2:    #e7c87a;
    --gold-3:    #a8842f;
    --gold-grad: linear-gradient(135deg, #e7c87a 0%, #c9a24b 45%, #a8842f 100%);
    --radius:    18px;
    --radius-sm: 12px;
    --maxw:      1180px;
    --shadow:    0 24px 60px rgba(0,0,0,0.45);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
    font-family: 'Montserrat', system-ui, sans-serif;
    background: var(--bg);
    color: var(--txt);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

.gold {
    background: var(--gold-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Typography helpers ---------- */
.eyebrow, .kicker {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 18px;
}
.kicker.center, .section-sub.center, .section-title.center { text-align: center; display: block; }
.kicker.center { margin-left: auto; margin-right: auto; }

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 18px;
}
.section-sub { color: var(--txt-mut); font-size: 17px; max-width: 680px; margin: 0 auto 12px; }
.lead-muted { color: var(--txt-mut); font-size: 17px; margin-bottom: 18px; }
.muted { color: var(--txt-dim); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 15px 30px;
    border-radius: 999px;
    font-weight: 600; font-size: 15px;
    cursor: pointer; border: 1px solid transparent;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
    white-space: nowrap;
}
.btn.full { width: 100%; }
.btn-gold {
    background: var(--gold-grad);
    color: #1a1407;
    box-shadow: 0 12px 28px rgba(201,162,75,0.28);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(201,162,75,0.42); }
.btn-ghost { background: transparent; color: var(--txt); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); transform: translateY(-2px); }
.btn-gold-outline { background: transparent; color: var(--gold-2); border-color: var(--gold); }
.btn-gold-outline:hover { background: var(--gold-grad); color: #1a1407; transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 18px 0;
    transition: background .3s, padding .3s, border-color .3s;
    border-bottom: 1px solid transparent;
}
.site-header.scrolled {
    background: rgba(10,10,12,0.85);
    backdrop-filter: blur(14px);
    padding: 12px 0;
    border-bottom-color: var(--line-soft);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 46px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
    font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 22px; letter-spacing: 0.04em;
    background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-sub { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--txt-dim); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: 15px; color: var(--txt-mut); transition: color .2s; position: relative; }
.nav a:not(.nav-cta):hover { color: var(--gold-2); }
.nav a:not(.nav-cta)::after {
    content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px;
    background: var(--gold); transition: width .25s;
}
.nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
    padding: 9px 20px; border: 1px solid var(--gold); border-radius: 999px; color: var(--gold-2);
    font-weight: 600; transition: all .25s;
}
.nav-cta:hover { background: var(--gold-grad); color: #1a1407; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.burger span { width: 26px; height: 2px; background: var(--gold-2); transition: .3s; border-radius: 2px; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section-dark { background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 160px 0 90px; overflow: hidden; }
.hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background:
        radial-gradient(900px 500px at 78% 18%, rgba(201,162,75,0.16), transparent 60%),
        radial-gradient(700px 500px at 10% 80%, rgba(201,162,75,0.06), transparent 60%),
        var(--bg);
}
.hero-bg::after {
    content: ''; position: absolute; inset: 0;
    background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
    background-size: 64px 64px; opacity: .35;
    mask-image: radial-gradient(70% 60% at 50% 40%, #000 30%, transparent 80%);
}
.hero-inner {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center;
}
.hero-text h1 {
    font-family: 'Montserrat', sans-serif; font-weight: 600;
    font-size: clamp(34px, 5.2vw, 60px); line-height: 1.08; letter-spacing: -0.015em; margin-bottom: 22px;
}
.hero-lead { font-size: 18px; color: var(--txt-mut); max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-trust { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-trust div { display: flex; flex-direction: column; }
.hero-trust b { font-family: 'Montserrat', sans-serif; font-size: 30px; color: var(--gold-2); }
.hero-trust span { font-size: 13px; color: var(--txt-dim); letter-spacing: 0.04em; }

.hero-visual { display: flex; justify-content: center; }
.hero-logo-frame {
    position: relative; border-radius: 24px; overflow: hidden;
    border: 1px solid var(--line); box-shadow: var(--shadow);
    background: #000;
}
.hero-logo-frame::before {
    content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    box-shadow: inset 0 0 90px rgba(201,162,75,0.18);
}
.hero-logo { width: 100%; max-width: 460px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.about-points { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.point {
    background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
    padding: 22px; display: flex; gap: 14px; transition: border-color .25s, transform .25s;
}
.point:hover { border-color: var(--line); transform: translateY(-4px); }
.point-num { font-family: 'Montserrat', sans-serif; color: var(--gold); font-size: 22px; }
.point b { display: block; margin-bottom: 4px; }
.point p { font-size: 14px; color: var(--txt-mut); margin: 0; }

/* ---------- Facts ---------- */
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 42px; }
.fact {
    background: linear-gradient(160deg, var(--card-2), var(--card));
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 38px 28px; text-align: center; position: relative; overflow: hidden;
    transition: transform .3s, border-color .3s;
}
.fact::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--gold-grad); opacity: .6;
}
.fact:hover { transform: translateY(-6px); border-color: var(--gold); }
.fact b { font-family: 'Montserrat', sans-serif; font-size: clamp(34px, 4vw, 50px); color: var(--gold-2); display: block; }
.fact span { color: var(--txt-mut); font-size: 14px; }

/* ---------- Pains ---------- */
.pains-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 42px; }
.pain {
    background: var(--card); border: 1px solid var(--line-soft); border-left: 3px solid var(--gold-3);
    border-radius: var(--radius-sm); padding: 20px 24px; color: var(--txt); font-size: 16px;
    transition: transform .25s, border-color .25s, background .25s;
}
.pain:hover { transform: translateX(6px); border-left-color: var(--gold); background: var(--card-2); }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 42px; }
.service {
    background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius);
    padding: 34px 30px; transition: transform .3s, border-color .3s, box-shadow .3s;
}
.service:hover { transform: translateY(-8px); border-color: var(--gold); box-shadow: var(--shadow); }
.service-ico {
    width: 58px; height: 58px; display: flex; align-items: center; justify-content: center;
    font-size: 26px; border-radius: 14px; margin-bottom: 20px;
    background: rgba(201,162,75,0.08); border: 1px solid var(--line);
    color: var(--gold-2);
}
.service-ico svg { width: 27px; height: 27px; display: block; }
.service:hover .service-ico { background: rgba(201,162,75,0.14); border-color: var(--gold); }
.service h3 { font-size: 20px; margin-bottom: 10px; font-weight: 700; }
.service p { color: var(--txt-mut); font-size: 15px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 46px; }
.step { position: relative; padding-top: 14px; }
.step-n {
    font-family: 'Montserrat', sans-serif; font-size: 56px; line-height: 1;
    color: transparent; -webkit-text-stroke: 1px var(--gold-3); display: block; margin-bottom: 14px;
}
.step h4 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--txt-mut); font-size: 15px; }

/* ---------- Cases ---------- */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 42px; }
.case {
    background: linear-gradient(165deg, var(--card-2), var(--card));
    border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 30px;
    transition: transform .3s, border-color .3s;
}
.case:hover { transform: translateY(-6px); border-color: var(--gold); }
.case-tag {
    display: inline-block; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--gold-2); padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; margin-bottom: 16px;
}
.case h3 { font-family: 'Montserrat', sans-serif; font-size: 23px; color: var(--txt); margin-bottom: 10px; }
.case p { color: var(--txt-mut); font-size: 15px; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 46px; align-items: stretch; }
.plan {
    background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius);
    padding: 38px 30px; display: flex; flex-direction: column; position: relative;
    transition: transform .3s, border-color .3s;
}
.plan:hover { transform: translateY(-6px); border-color: var(--line); }
.plan-featured {
    border-color: var(--gold); background: linear-gradient(170deg, rgba(201,162,75,0.10), var(--card));
    box-shadow: var(--shadow); transform: scale(1.02);
}
.plan-featured:hover { transform: scale(1.02) translateY(-6px); }
.plan-badge {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--gold-grad); color: #1a1407; font-size: 12px; font-weight: 700;
    padding: 6px 18px; border-radius: 999px; letter-spacing: 0.06em;
}
.plan h3 { font-size: 21px; margin-bottom: 14px; }
.plan-price { font-family: 'Montserrat', sans-serif; font-size: 38px; color: var(--gold-2); margin-bottom: 8px; }
.plan-price span { font-size: 15px; color: var(--txt-dim); font-family: 'Montserrat'; }
.plan-desc { color: var(--txt-mut); font-size: 15px; margin-bottom: 22px; min-height: 44px; }
.plan ul { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; flex: 1; }
.plan li { position: relative; padding-left: 28px; color: var(--txt); font-size: 15px; }
.plan li::before {
    content: '✓'; position: absolute; left: 0; top: 0; color: var(--gold-2);
    font-weight: 700; width: 18px; height: 18px;
}

/* ---------- Reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 42px; }
.review {
    background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius);
    padding: 32px; transition: transform .3s, border-color .3s;
}
.review:hover { transform: translateY(-4px); border-color: var(--line); }
.stars { color: var(--gold-2); letter-spacing: 3px; margin-bottom: 16px; }
.review p { font-size: 16px; color: var(--txt); margin-bottom: 22px; font-style: italic; }
.review-author b { display: block; }
.review-author span { color: var(--txt-dim); font-size: 14px; }

/* ---------- FAQ ---------- */
.faq { margin-top: 42px; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); overflow: hidden; transition: border-color .25s; }
.faq-item.open { border-color: var(--line); }
.faq-q {
    width: 100%; text-align: left; background: none; border: none; cursor: pointer;
    padding: 22px 26px; font-size: 17px; color: var(--txt); font-family: inherit; font-weight: 500;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-ic { color: var(--gold-2); font-size: 24px; transition: transform .3s; flex-shrink: 0; }
.faq-item.open .faq-ic { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 26px 22px; color: var(--txt-mut); font-size: 15px; }

/* ---------- Contact ---------- */
.contact { background: var(--bg-2); border-top: 1px solid var(--line-soft); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-list { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.contact-list li { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); }
.contact-list li span:first-child { color: var(--txt-dim); font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; }
.contact-list a:hover { color: var(--gold-2); }

.contact-form-wrap {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 38px; box-shadow: var(--shadow);
}
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; position: relative; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-label { font-size: 13px; color: var(--txt-dim); letter-spacing: 0.04em; }
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%; background: var(--bg-3); border: 1px solid var(--line-soft); border-radius: 12px;
    padding: 15px 16px; color: var(--txt); font-family: inherit; font-size: 15px; transition: border-color .2s, box-shadow .2s;
}
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--txt-dim); }
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,75,0.12);
}
.contact-form select option { background: var(--bg-3); color: var(--txt); }
.field-error { color: #e98b7a; font-size: 13px; display: none; }
.field-error.show { display: block; }
.field.invalid input, .field.invalid textarea { border-color: #e98b7a; }
.form-note { font-size: 12px; color: var(--txt-dim); text-align: center; margin-top: 4px; }
.form-result { font-size: 15px; text-align: center; }
.form-result.ok { color: var(--gold-2); }
.form-result.err { color: #e98b7a; }

.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 16px; font-size: 15px; }
.alert-success { background: rgba(201,162,75,0.12); border: 1px solid var(--line); color: var(--gold-2); }
.alert-error { background: rgba(233,139,122,0.1); border: 1px solid rgba(233,139,122,0.3); color: #e98b7a; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--line-soft); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .brand-name { font-size: 30px; }
.footer-desc { color: var(--txt-mut); margin-top: 14px; max-width: 320px; font-size: 15px; }
.footer-col h4 { font-size: 15px; margin-bottom: 18px; color: var(--txt); letter-spacing: 0.04em; }
.footer-col a, .footer-col span { display: block; color: var(--txt-mut); font-size: 15px; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--gold-2); }
.footer-bottom {
    display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    padding-top: 24px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--txt-dim);
}

/* ---------- To top ---------- */
.to-top {
    position: fixed; right: 26px; bottom: 26px; z-index: 90;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--gold-grad); color: #1a1407; font-size: 20px;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transform: translateY(12px);
    transition: opacity .3s, transform .3s; box-shadow: 0 10px 24px rgba(201,162,75,0.3);
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-lead { margin-left: auto; margin-right: auto; }
    .hero-actions, .hero-trust { justify-content: center; }
    .hero-visual { order: -1; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
    .facts-grid, .services-grid, .cases-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .plan-featured { transform: none; }
    .plan-featured:hover { transform: translateY(-6px); }
}
@media (max-width: 760px) {
    .nav {
        position: fixed; top: 0; right: 0; height: 100vh; width: min(82vw, 320px);
        flex-direction: column; align-items: flex-start; justify-content: center; gap: 26px;
        background: var(--bg-2); border-left: 1px solid var(--line); padding: 40px;
        transform: translateX(100%); transition: transform .35s ease; z-index: 99;
    }
    .nav.open { transform: translateX(0); }
    .nav a { font-size: 19px; }
    .burger { display: flex; z-index: 100; }
    .section { padding: 74px 0; }
    .hero { padding: 130px 0 60px; }
    .facts-grid, .services-grid, .cases-grid, .pricing-grid,
    .pains-grid, .reviews-grid, .about-points, .steps { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .contact-form-wrap { padding: 26px; }
    .hero-trust { gap: 26px; }
}
