/* ============================================================
   FINERA — landing styles
   Дизайн-система построена на палитре логотипа (глубокий
   фиолетовый) с тёплым акцентом-шампань для премиальности.
   ============================================================ */

:root {
  /* Brand */
  --brand:      #4A3A63;   /* глубокий фиолетовый (фон логотипа) */
  --brand-d:    #2E2440;   /* тёмный фиолетовый */
  --brand-dd:   #211A30;   /* почти чёрный фиолет — текст */
  --violet:     #6E4FA0;   /* живой фиолетовый — акцент */
  --violet-l:   #8E6FC0;
  --plum:       #9B5A7B;   /* плам из логотипа */
  --gold:       #C6A15B;   /* шампань-золото — премиум-акцент */

  /* Neutrals */
  --ink:        #211A30;
  --muted:      #6B6480;
  --line:       #EBE6F3;
  --bg:         #FFFFFF;
  --bg-soft:    #F6F3FB;   /* лавандовый тинт */

  /* Effects */
  --grad:       linear-gradient(135deg, #4A3A63 0%, #6E4FA0 100%);
  --grad-soft:  linear-gradient(135deg, #6E4FA0 0%, #9B5A7B 100%);
  --shadow-sm:  0 4px 16px rgba(46,36,64,.08);
  --shadow:     0 18px 48px rgba(46,36,64,.14);
  --shadow-lg:  0 30px 70px rgba(46,36,64,.22);

  /* Layout */
  --radius:     18px;
  --radius-sm:  12px;
  --maxw:       1160px;
  --gap:        clamp(16px, 2.5vw, 28px);

  --ff: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 { line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: var(--brand-dd); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--brand-d); }

.section__head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.section__title { font-size: clamp(28px, 4.2vw, 44px); }
.section__sub { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }
.section__head--light .section__title { color: #fff; }
.section__head--light .section__sub { color: rgba(255,255,255,.7); }

.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--violet);
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--gold); }

.accent { color: var(--violet); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 28px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap; text-align: center;
}
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 26px rgba(110,79,160,.35); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(110,79,160,.45); }
.btn--ghost { background: #fff; color: var(--brand-dd); border: 1.5px solid rgba(110,79,160,.40); }
.btn--ghost:hover { border-color: var(--violet); color: var(--violet); transform: translateY(-2px); }
.btn--sm { padding: 11px 20px; font-size: .92rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__text { font-weight: 800; font-size: 1.35rem; letter-spacing: .18em; color: var(--brand-dd); }
.logo--light .logo__text { color: #fff; }
.logo__mark { display: grid; place-items: center; }

.nav { display: flex; gap: 24px; margin-left: 18px; }
.nav a { font-weight: 600; font-size: .96rem; color: var(--ink); position: relative; transition: color .15s; }
.nav a::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--violet); transition: width .2s; }
.nav a:hover { color: var(--violet); }
.nav a:hover::after { width: 100%; }

.header__actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.header__phone { font-weight: 700; font-size: .98rem; color: var(--brand-dd); white-space: nowrap; transition: color .15s; }
.header__phone:hover { color: var(--violet); }

.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; margin-left: auto; }
.burger span { width: 24px; height: 2px; background: var(--brand-dd); border-radius: 2px; transition: .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(20px, 3.2vh, 44px) 0 clamp(28px, 4vh, 52px); overflow: hidden; }
@media (min-width: 981px) {
  .hero { display: flex; align-items: center; min-height: calc(100vh - 72px); }
  .hero__inner { width: 100%; grid-template-columns: 1fr 1fr; }
  .hero__media { justify-content: flex-end; }   /* фигура занимает правую часть */
}
.hero__glow {
  position: absolute; top: -20%; right: -10%; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  background: radial-gradient(circle, rgba(110,79,160,.22), rgba(155,90,123,.10) 45%, transparent 70%);
  filter: blur(10px); z-index: 0; pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: .82rem; font-weight: 700;
  color: var(--violet); background: rgba(110,79,160,.10); margin-bottom: 10px;
}
.hero__title { font-size: clamp(26px, 2.9vw, 40px); line-height: 1.1; margin-bottom: 12px; }
.hero__lead { font-size: clamp(.95rem, 1.2vw, 1.06rem); color: var(--muted); max-width: 520px; margin-bottom: 14px; }

.hero__price { display: inline-flex; flex-direction: column; padding: 9px 16px; border-radius: var(--radius-sm); background: var(--bg-soft); border: 1px solid var(--line); margin-bottom: 14px; }
.hero__price-label { font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.hero__price-value { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; color: var(--brand-dd); }
.hero__price-value span { font-size: .95rem; font-weight: 600; color: var(--muted); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.hero__trust { display: grid; gap: 7px; }
.hero__trust li { position: relative; padding-left: 28px; color: var(--ink); font-weight: 500; font-size: .92rem; }
.hero__trust li::before {
  content: '✓'; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%;
  background: var(--grad); color: #fff; font-size: .7rem; font-weight: 800; display: grid; place-items: center;
}

/* Hero media — фото основателя на брендовой подложке */
.hero__media { position: relative; display: flex; justify-content: center; align-items: flex-end; }
.hero__stage {
  position: relative; border-radius: 26px; padding: 22px clamp(28px, 4.5vw, 64px) 0;
  display: flex; align-items: flex-end; justify-content: center;
  overflow: hidden; box-shadow: var(--shadow-lg);
  background-color: #4A3A63;
  background-image:
    radial-gradient(130% 100% at 78% 6%, rgba(255,255,255,.22), transparent 55%),
    radial-gradient(120% 95% at 12% 108%, rgba(20,14,32,.45), transparent 60%),
    linear-gradient(135deg, #4A3A63 0%, #6E4FA0 58%, #835FBE 100%);
}
/* зерно/шум поверх градиента */
.hero__stage::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px; opacity: .18; mix-blend-mode: soft-light;
}
.hero__stage::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: 26px;
  box-shadow: inset 0 0 70px rgba(20,14,32,.40);
}
/* Высота фото = доля экрана -> всегда влезает в первый кадр.
   Подложка сама подгоняется под ширину фото. */
.hero__photo { position: relative; z-index: 2; width: auto; height: clamp(360px, 70vh, 680px); max-width: 100%; display: block;
  transform: translateX(22px);
  filter: drop-shadow(0 16px 30px rgba(33,26,48,.34)); }

/* Чип «ДДС · ОПиУ · Баланс» */
.hero__chip {
  position: absolute; top: 22px; right: 14px; z-index: 3;
  background: #fff; color: var(--brand-dd); font-weight: 700; font-size: .82rem;
  padding: 10px 16px; border-radius: 999px; box-shadow: var(--shadow);
  border: 1px solid var(--line); white-space: nowrap;
}

/* Плавающая плашка с прибылью */
.hero__float {
  position: absolute; left: clamp(-110px, -6vw, -48px); top: 50%; transform: translateY(-50%); z-index: 3;
  background: #fff; border-radius: 20px; box-shadow: var(--shadow);
  border: 1px solid var(--line); padding: 20px 26px; display: grid; gap: 6px; min-width: 240px;
}
.hero__float-label { font-size: .82rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.hero__float-val { font-size: 1.7rem; font-weight: 800; color: var(--brand-dd); }
.hero__float-val i { font-size: .92rem; font-weight: 700; color: #2BA77B; font-style: normal; }
.hero__spark { display: flex; align-items: flex-end; gap: 6px; height: 48px; margin-top: 10px; }
.hero__spark span { flex: 1; height: var(--h); background: var(--grad); border-radius: 4px 4px 0 0; opacity: .9; }
.hero__spark span:nth-child(even) { background: var(--grad-soft); }

/* ---------- Strip ---------- */
.strip { padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.strip__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; justify-content: center; }
.strip__text { font-weight: 700; color: var(--brand-dd); }
.strip__list { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.strip__list li { color: var(--muted); font-weight: 600; font-size: .95rem; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Problems ---------- */
.prob {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .2s, box-shadow .2s, border-color .2s; position: relative;
}
.prob:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.prob__num { font-size: .9rem; font-weight: 800; color: var(--gold); letter-spacing: .05em; }
.prob h3 { font-size: 1.15rem; margin: 12px 0 8px; }
.prob p { color: var(--muted); font-size: .96rem; }

/* ---------- Service cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; transition: transform .2s, box-shadow .2s; position: relative; overflow: hidden;
}
.card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card:hover::before { transform: scaleX(1); }
.card__icon { font-size: 2rem; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 16px; background: var(--bg-soft); margin-bottom: 18px; }
.card h3 { font-size: 1.35rem; margin-bottom: 12px; }
.card > p { color: var(--muted); margin-bottom: 18px; }

.ticks { display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; font-weight: 500; font-size: .96rem; }
.ticks li::before { content: '✓'; position: absolute; left: 0; top: 1px; color: var(--violet); font-weight: 800; }
.ticks--lg li { font-size: 1.02rem; padding: 8px 0 8px 30px; border-bottom: 1px solid var(--line); }
.ticks--lg li:last-child { border-bottom: none; }
.ticks--lg li::before { top: 9px; }

/* ---------- Features (why) ---------- */
.feat { padding: 28px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid transparent; transition: .2s; }
.feat:hover { border-color: var(--violet); background: #fff; box-shadow: var(--shadow-sm); transform: translateY(-4px); }
.feat h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--violet); }
.feat p { color: var(--muted); font-size: .96rem; }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); counter-reset: step; }
.step { position: relative; padding: 30px 24px; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.10); }
.step__num { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; font-size: 1.2rem; margin-bottom: 18px; }
.step h3 { color: #fff; font-size: 1.18rem; margin-bottom: 10px; }
.step p { color: rgba(255,255,255,.72); font-size: .95rem; }

/* ---------- Results ---------- */
.res { text-align: center; padding: 30px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.res__big { font-size: 3.4rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; }
.res p { color: var(--muted); margin-top: 10px; }
.checklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 36px; max-width: 880px; margin: 44px auto 0; }
.checklist li { position: relative; padding-left: 34px; font-weight: 500; }
.checklist li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--grad); color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: center; }

/* ---------- Pricing ---------- */
.price { display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-width: 980px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.price__left { padding: clamp(32px, 4vw, 48px); background: var(--grad); color: #fff; display: flex; flex-direction: column; justify-content: center; }
.price__label { font-size: .9rem; font-weight: 600; opacity: .85; text-transform: uppercase; letter-spacing: .08em; }
.price__value { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; margin: 10px 0 16px; }
.price__value span { font-size: 1.1rem; font-weight: 600; opacity: .8; }
.price__note { font-size: .95rem; opacity: .82; margin-bottom: 26px; }
.price__left .btn--primary { background: #fff; color: var(--violet); box-shadow: none; align-self: flex-start; }
.price__left .btn--primary:hover { box-shadow: 0 12px 26px rgba(0,0,0,.18); }
.price__right { padding: clamp(32px, 4vw, 48px); background: #fff; }
.price__incl-title { font-weight: 800; color: var(--brand-dd); margin-bottom: 16px; font-size: 1.1rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 24px; transition: box-shadow .2s; }
.faq__item[open] { box-shadow: var(--shadow-sm); }
.faq__item summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; font-weight: 700; color: var(--brand-dd); position: relative; font-size: 1.06rem; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--violet); transition: transform .2s; }
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { color: var(--muted); padding-bottom: 20px; }

/* ---------- Lead / CTA ---------- */
.lead { background: var(--bg-soft); }
.lead__card { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(32px, 4vw, 56px); align-items: center; }
.lead__text h2 { font-size: clamp(24px, 3.4vw, 36px); margin-bottom: 16px; }
.lead__text > p { color: var(--muted); margin-bottom: 22px; }
.lead__bullets { display: grid; gap: 10px; margin-bottom: 24px; }
.lead__bullets li { position: relative; padding-left: 28px; font-weight: 500; }
.lead__bullets li::before { content: '✓'; position: absolute; left: 0; color: var(--violet); font-weight: 800; }
.lead__alt { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--muted); font-size: .95rem; }
.link-ic { font-weight: 700; color: var(--violet); border-bottom: 1.5px solid transparent; transition: border-color .15s; }
.link-ic:hover { border-color: var(--violet); }

.lead__form { display: grid; gap: 16px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.btn[disabled] { opacity: .65; cursor: default; transform: none; }
.field { display: grid; gap: 6px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--brand-dd); }
.field input {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; color: var(--ink); transition: border-color .15s, box-shadow .15s; background: #fff;
}
.field input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(110,79,160,.12); }
.field input.invalid { border-color: var(--plum); box-shadow: 0 0 0 4px rgba(155,90,123,.12); }
.field__hint { font-size: .82rem; color: var(--muted); }
.field__hint a { color: var(--violet); text-decoration: underline; }
.form__success { background: rgba(43,167,123,.10); color: #1F8A63; padding: 14px 18px; border-radius: var(--radius-sm); font-weight: 600; font-size: .95rem; }

/* ---------- Footer ---------- */
.footer { background: var(--brand-dd); color: rgba(255,255,255,.78); padding: clamp(48px, 6vw, 72px) 0 28px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.10); }
.footer__tagline { margin-top: 16px; max-width: 320px; font-size: .95rem; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .08em; }
.footer__nav { display: grid; gap: 10px; align-content: start; }
.footer__nav a:hover { color: #fff; }
.footer__contacts { display: grid; gap: 12px; align-content: start; }
.footer__contacts > a { font-weight: 600; color: #fff; }
.footer__contacts > a[data-contact]:hover { color: var(--gold); }
.footer__socials { display: flex; gap: 16px; }
.footer__socials a { font-weight: 600; color: rgba(255,255,255,.78); border-bottom: 1px solid transparent; }
.footer__socials a:hover { color: #fff; border-color: var(--gold); }
.footer__contacts .btn { margin-top: 6px; justify-self: start; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 24px; font-size: .88rem; color: rgba(255,255,255,.55); }
.footer__bottom a:hover { color: #fff; }

/* ---------- Floating action button (mobile) ---------- */
.fab { display: none; position: fixed; right: 16px; bottom: 16px; z-index: 90; background: var(--grad); color: #fff; padding: 14px 22px; border-radius: 999px; font-weight: 700; box-shadow: var(--shadow);
  transition: opacity .25s ease, transform .25s ease, visibility .25s; }
.fab--hidden { opacity: 0; visibility: hidden; transform: translateY(20px); pointer-events: none; }

/* ---------- Согласие у формы ---------- */
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: .84rem; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--violet); cursor: pointer; }
.consent.invalid { color: var(--plum); }
.consent.invalid input { outline: 2px solid var(--plum); outline-offset: 1px; border-radius: 3px; }
.consent a { color: var(--violet); text-decoration: underline; }

/* ---------- Юридические страницы ---------- */
.legal-top { border-bottom: 1px solid var(--line); }
.legal-top .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.legal-top .logo__text { color: var(--brand-dd); }
.legal-back { font-weight: 600; color: var(--violet); }
.legal-back:hover { text-decoration: underline; }
.legal { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 7vw, 90px); }
.legal__wrap { max-width: 820px; margin: 0 auto; }
.legal h1 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 8px; }
.legal__date { color: var(--muted); font-size: .9rem; margin-bottom: 32px; }
.legal h2 { font-size: 1.25rem; margin: 30px 0 12px; color: var(--brand-dd); }
.legal p, .legal li { color: #3a3450; font-size: 1rem; margin-bottom: 10px; }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 12px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--violet); text-decoration: underline; }
.legal .placeholder { background: rgba(198,161,91,.18); padding: 1px 6px; border-radius: 4px; font-weight: 600; }

/* ---------- Встроенный редактор ---------- */
.editable-on { outline: 1px dashed rgba(110,79,160,.45); outline-offset: 3px; border-radius: 3px; cursor: text; transition: background .15s; }
.editable-on:hover { background: rgba(110,79,160,.06); }
.editable-on:focus { outline: 2px solid var(--violet); background: rgba(110,79,160,.08); }
.edit-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; padding: 12px 18px; background: var(--brand-dd); color: #fff; box-shadow: 0 -6px 24px rgba(0,0,0,.25); }
.edit-bar__status { font-weight: 600; font-size: .92rem; }
.edit-bar button { padding: 10px 20px; border-radius: 999px; font-weight: 700; font-size: .92rem; }
.edit-bar__save { background: var(--grad); color: #fff; }
.edit-bar__exit { background: rgba(255,255,255,.14); color: #fff; }

/* ---------- Чип-подарок (лид-магнит) ---------- */
.hero__magnet {
  position: absolute; left: 50%; top: 65%;
  transform: translate(-50%, -50%) scale(.82); opacity: 0;
  z-index: 4; display: flex; flex-direction: column; gap: 10px; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 13px;
  box-shadow: var(--shadow); cursor: pointer; width: 248px; max-width: 86vw;
  animation: magnetIn .5s cubic-bezier(.2,.9,.3,1.25) .7s forwards, floatY 3.4s ease-in-out 1.3s infinite;
}
@keyframes magnetIn { to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.hero__magnet::before { content: ''; position: absolute; left: 0; top: 13px; bottom: 13px; width: 3px; border-radius: 3px; background: var(--grad); }
.hero__magnet:hover { animation-play-state: paused; transform: translate(-50%, -50%) scale(1.03); box-shadow: var(--shadow-lg); }
.hero__magnet-head { display: flex; align-items: center; }
.hero__magnet-tx { display: flex; flex-direction: column; gap: 1px; }
.hero__magnet-tx small { font-size: .64rem; font-weight: 800; color: var(--gold); text-transform: uppercase; letter-spacing: .06em; }
.hero__magnet-tx b { font-size: .86rem; color: var(--brand-dd); line-height: 1.2; }
/* мини-дашборд внутри чипа */
.hmd { display: block; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; }
.hmd__top { display: flex; gap: 10px; margin-bottom: 8px; }
.hmd__kpi { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.hmd__kpi i { font-size: .56rem; font-style: normal; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.hmd__kpi b { font-size: .8rem; color: var(--brand-dd); }
.hmd__up { color: #2BA77B !important; }
.hmd__chart { display: flex; align-items: flex-end; gap: 4px; height: 30px; }
.hmd__chart span { flex: 1; height: var(--h); background: var(--grad); border-radius: 2px 2px 0 0; opacity: .9; }
.hmd__chart span:nth-child(even) { background: var(--grad-soft); }
.hmd__legend { display: flex; align-items: center; gap: 5px; margin-top: 6px; font-size: .6rem; font-weight: 700; color: var(--muted); }
.hmd__legend i { width: 8px; height: 8px; border-radius: 2px; background: var(--gold); }
@keyframes floatY { 0%,100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, calc(-50% - 8px)); } }

/* ---------- Модальное окно ---------- */
.modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(33,26,48,.55); backdrop-filter: blur(3px); }
.modal__box { position: relative; z-index: 1; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); width: min(440px, 100%); padding: 34px; max-height: 92vh; overflow: auto; animation: modalIn .25s ease; }
.modal__x { position: absolute; top: 10px; right: 16px; font-size: 1.9rem; color: var(--muted); line-height: 1; background: none; }
.modal__x:hover { color: var(--brand-dd); }
.modal__gift { font-size: 2.6rem; line-height: 1; }
.modal__box h3 { font-size: 1.5rem; margin: 8px 0 6px; }
.modal__box > p { color: var(--muted); margin-bottom: 20px; font-size: .96rem; }
@keyframes modalIn { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }

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

/* ============================================================
   Responsive
   ============================================================ */
/* --- Планшеты --- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 30px; }
  .hero__content { order: 1; }
  .hero__media { order: 2; }                 /* фото под текстом */
  .hero__photo { height: clamp(320px, 46vh, 440px); }
  .grid--4, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* --- Телефоны --- */
@media (max-width: 760px) {
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
    transform: translateY(-120%); transition: transform .3s ease; box-shadow: var(--shadow); margin: 0;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .header__cta { display: none; }
  .header__actions { gap: 12px; }
  .header__phone { font-size: .92rem; }
  .burger { display: flex; }

  .grid--2, .grid--3, .grid--4, .steps, .checklist, .price, .lead__card { grid-template-columns: 1fr; }
  .price { max-width: 480px; margin: 0 auto; }
  .fab { display: inline-flex; }

  .section { padding: clamp(48px, 8vw, 72px) 0; }
  .section__head { margin-bottom: 30px; }

  /* hero на телефоне */
  .hero__title { font-size: clamp(26px, 7vw, 34px); }
  .hero__lead { font-size: 1rem; }
  .hero__magnet { position: static; transform: none; animation: none; opacity: 1; max-width: none; width: 100%; margin: 16px auto 0; justify-content: center; }
  .hero__magnet:hover { transform: none; }
  .hero__photo { height: clamp(300px, 52vh, 400px); }
  .hero__chip { top: 14px; right: 4px; font-size: .75rem; padding: 8px 13px; }
  .hero__float { left: 4px; right: auto; top: auto; bottom: 16px; transform: none; min-width: 146px; padding: 11px 14px; }
  .hero__float-val { font-size: 1.1rem; }

  .lead__alt { font-size: .9rem; }
}

/* --- Узкие телефоны --- */
@media (max-width: 430px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .header__phone { display: none; }
  .card, .prob, .feat, .res, .step { padding: 22px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .hero__photo { height: clamp(280px, 50vh, 360px); }
  .hero__chip { right: 0; }
  .hero__float { left: 0; right: auto; min-width: 138px; }
  .lead__card { padding: 24px; }
  .price__left, .price__right { padding: 28px 22px; }
  .faq__item { padding: 2px 18px; }
  .faq__item summary { font-size: 1rem; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; padding-bottom: 32px; }
  .footer__contacts .btn { margin-top: 10px; }
  .footer__bottom { justify-content: flex-start; gap: 6px; padding-top: 22px; padding-bottom: 16px; }
}

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