/* СметаЛупа — главная страница и открытые страницы (справочник). Синий + оранжевый, много воздуха. */
:root {
  --bg: #FFFFFF;
  --tint: #F3F6FC;
  --card: #FFFFFF;
  --ink: #14213D;
  --ink-2: #3A4A66;
  --muted: #66758C;
  --line: #E1E7F0;
  --brand: #1B2D5B;
  --orange: #F28C1B;
  --orange-soft: #FFEBD6;
  --blue: #2459E0;
  --blue-hover: #1A47C2;
  --blue-soft: #E8EFFF;
  --green: #1C7C54;
  --green-soft: #DDF1E7;
  --yellow: #8A5A00;
  --yellow-soft: #FBE7A1;
  --shadow: 0 1px 2px rgba(20, 33, 61, .05), 0 10px 30px rgba(20, 33, 61, .07);
  --shadow-up: 0 2px 4px rgba(20, 33, 61, .06), 0 18px 44px rgba(20, 33, 61, .12);
  --r: 20px;
  --sans: "Golos Text", "Golos Fallback", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", "JetBrains Fallback", Consolas, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1522; --tint: #121B2B; --card: #172131; --ink: #E7EDF4; --ink-2: #BAC6D6; --muted: #8796AB; --line: #253349;
    --brand: #E7EDF4; --orange: #FF9F3D; --orange-soft: #3E2710; --blue: #7EA2FF; --blue-hover: #A3BEFF; --blue-soft: #1C2A4D;
    --green: #57C795; --green-soft: #163A2B; --yellow: #F2C230; --yellow-soft: #4A3C0E;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .25); --shadow-up: 0 18px 44px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; scrollbar-gutter: stable; }   /* полоса прокрутки не сдвигает страницу */
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--sans); }
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.in { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); font-size: 14px; }
.wordmark { font-weight: 800; letter-spacing: -0.02em; color: var(--brand); }
.wordmark span { color: var(--orange); }
.beta { display: inline-block; font: 700 12px/18px var(--sans); font-style: normal; padding: 0 6px; border-radius: 6px; background: var(--orange-soft); color: #A0520A; vertical-align: 2px; }
.soon { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); }

/* ---------- кнопки ---------- */
.b { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 14px; border: 0;
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; transition: background .15s, transform .12s, box-shadow .15s, color .15s; white-space: nowrap; }
.b:active { transform: translateY(1px); }
.b-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px color-mix(in srgb, var(--blue) 28%, transparent); }
.b-primary:hover { background: var(--blue-hover); }
@media (prefers-color-scheme: dark) { .b-primary { color: #0E1522; } }
.b-ghost { background: var(--blue-soft); color: var(--blue); }
.b-ghost:hover { background: color-mix(in srgb, var(--blue) 18%, var(--blue-soft)); }

/* ---------- шапка ---------- */
.h-bar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.h-bar.scrolled { border-bottom-color: var(--line); }
.h-in { max-width: 1180px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 28px; }
.h-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 21px; }
.h-nav { display: flex; gap: 24px; margin-left: auto; }
.h-nav a { color: var(--ink-2); text-decoration: none; font-size: 15.5px; font-weight: 500; }
.h-nav a:hover { color: var(--blue); }
.h-enter { height: 42px; padding: 0 20px; font-size: 15px; box-shadow: none; }
.h-burger { display: none; width: 42px; height: 42px; border: 0; background: var(--tint); border-radius: 12px; cursor: pointer; padding: 11px 10px; flex-direction: column; justify-content: space-between; }
.h-burger span { display: block; height: 2px; border-radius: 2px; background: var(--ink); }

/* ---------- первый экран ---------- */
.hero { padding: 56px 0 40px; background:
  radial-gradient(900px 420px at 85% 0%, color-mix(in srgb, var(--blue) 10%, transparent), transparent 70%),
  radial-gradient(600px 300px at 0% 100%, color-mix(in srgb, var(--orange) 9%, transparent), transparent 70%); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: start; }
.eyebrow { margin: 0 0 10px; color: var(--orange); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
h1 { font-size: clamp(42px, 6.2vw, 76px); line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 18px; font-weight: 800; color: var(--brand); }
.hl-or { color: var(--orange); white-space: nowrap; }
.lead { font-size: 20px; color: var(--ink-2); margin: 0 0 26px; max-width: 600px; }

/* гостевой поиск */
.hs { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow-up); padding: 10px; border: 1px solid var(--line); }
.hs-tabs { display: flex; gap: 4px; padding: 2px 2px 8px; }
.hs-tabs button { border: 0; background: transparent; padding: 7px 14px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.hs-tabs button.on { background: var(--blue-soft); color: var(--blue); }
.hs-row { display: flex; gap: 8px; }
.hs-row input { flex: 1; min-width: 0; height: 56px; padding: 0 18px; font-size: 18px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--tint); color: var(--ink); }
.hs-row input:focus { outline: none; border-color: var(--blue); background: var(--card); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 15%, transparent); }
.hs-row .b { height: 56px; padding: 0 26px; }
.hs-ex { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 4px 2px; font-size: 14px; color: var(--muted); }
.hs-ex button { border: 1px dashed color-mix(in srgb, var(--blue) 40%, var(--line)); background: transparent; color: var(--ink-2); border-radius: 999px; padding: 3px 11px; cursor: pointer; font-size: 14px; }
.hs-ex button:hover { border-style: solid; color: var(--blue); }

.hs-res { margin-top: 14px; background: var(--card); border-radius: var(--r); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; animation: rise .25s ease-out; }
.hs-res[hidden] { display: none; }
.hr-head { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; padding: 12px 16px; font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--line); }
.hr-head b { color: var(--ink); }
.hr-hint { padding: 8px 16px; font-size: 14px; color: var(--ink-2); background: var(--tint); border-bottom: 1px solid var(--line); }
.hr-hint b { background: linear-gradient(transparent 55%, var(--orange-soft) 55%); }
.hr-list { list-style: none; margin: 0; padding: 0; }
.hr-list li { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.hr-list li:last-child { border-bottom: 0; }
.hr-code { font: 600 14px/1.4 var(--sans); color: var(--ink); background: none; border: 0; padding: 0; cursor: copy; text-align: left; white-space: nowrap; }
.hr-code:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.hr-meta { display: flex; gap: 6px; align-items: center; margin-top: 4px; }
.hr-name { font-size: 15px; line-height: 1.45; }
.hr-name mark { background: var(--orange-soft); color: inherit; border-radius: 3px; padding: 0 1px; }
.hr-unit { font-size: 13px; color: var(--muted); }
.tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.6; white-space: nowrap; }
.t-direct { background: var(--green-soft); color: var(--green); }
.t-analog { background: var(--yellow-soft); color: var(--yellow); }
.t-coef { background: var(--blue-soft); color: var(--blue); }
.t-weak, .t-add { background: var(--tint); color: var(--muted); }
.pct { font: 600 12px/1 var(--sans); padding: 3px 5px; border-radius: 6px; }
.p-hi { background: var(--green-soft); color: var(--green); } .p-mid { background: var(--yellow-soft); color: var(--yellow); } .p-lo { background: var(--tint); color: var(--muted); }
.hr-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; background: var(--tint); font-size: 14px; color: var(--ink-2); }
.hr-foot .b { height: 40px; font-size: 14.5px; padding: 0 16px; }
.hr-msg { padding: 16px; font-size: 15px; color: var(--ink-2); }

/* демо-окно: «шифр за секунду» */
.hero-art { position: relative; min-height: 380px; padding-top: 70px; }
.demo { position: relative; z-index: 1; margin: 0 0 0 auto; width: min(430px, 100%); background: var(--card); border-radius: 22px; box-shadow: var(--shadow-up); border: 1px solid var(--line); padding: 0 0 12px; overflow: hidden; }
.demo-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--tint); }
.demo-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.demo-bar i:first-child { background: #FF6B5E; } .demo-bar i:nth-child(2) { background: #FFC53D; } .demo-bar i:nth-child(3) { background: #3DCB6C; }
.demo-bar span { margin-left: 10px; font-size: 12.5px; color: var(--muted); }
.demo-q { margin: 18px 18px 14px; height: 50px; border-radius: 14px; border: 1.5px solid var(--blue); padding: 0 16px; display: flex; align-items: center; font-size: 18px; font-weight: 500; box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 12%, transparent); }
.caret { display: inline-block; width: 2px; height: 22px; background: var(--blue); margin-left: 2px; animation: blink 1s steps(1) infinite; }
.demo-hit { margin: 0 18px; padding: 14px 16px; border-radius: 16px; background: var(--tint); opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s; min-height: 118px; }
.demo-hit.show { opacity: 1; transform: none; }
.demo-tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--green-soft); color: var(--green); }
.demo-tag.coef { background: var(--blue-soft); color: var(--blue); }
.demo-code { font: 600 17px var(--sans); color: var(--brand); margin: 8px 0 4px; }
.demo-name { font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.demo-ok { margin: 10px 20px 0; text-align: right; font-size: 13px; font-weight: 600; color: var(--green); opacity: 0; transition: opacity .25s; }
.demo-ok.show { opacity: 1; }
.hero-mascot { position: absolute; z-index: 2; left: -40px; top: 330px; width: 230px; filter: drop-shadow(0 12px 22px rgba(20, 33, 61, .18)); animation: bob 5s ease-in-out infinite; }

/* ---------- цифры ---------- */
.stats { padding: 10px 0 30px; }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stats-in > div { padding: 18px 20px; border-radius: var(--r); background: var(--tint); }
.stats-in b { display: block; font-size: 34px; font-weight: 800; letter-spacing: -0.03em; color: var(--brand); line-height: 1.1; }
.stats-in span { font-size: 14.5px; color: var(--muted); }

/* ---------- секции ---------- */
.sec { padding: 84px 0; }
.sec-tint { background: var(--tint); }
h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 12px; font-weight: 800; color: var(--brand); }
h3 { font-size: 20px; line-height: 1.25; margin: 0 0 8px; letter-spacing: -0.01em; }
.sub { margin: 0 0 36px; font-size: 19px; color: var(--ink-2); }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease; }
.card p { margin: 0; color: var(--ink-2); font-size: 16px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { padding: 28px 26px; }
.step-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--orange); color: #fff; font-weight: 800; font-size: 20px; margin-bottom: 18px; }

.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat { padding: 24px 24px 26px; position: relative; }
.feat:hover, .steps li:hover, .plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-up); }
.feat img { width: 96px; height: 96px; margin: -6px 0 10px -6px; }
.more-link { display: inline-block; margin-top: 12px; font-weight: 600; text-decoration: none; }
.claims { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.claims li { font-size: 16px; color: var(--ink-2); display: flex; gap: 10px; align-items: baseline; }
.claims li::before { content: "✓"; color: var(--green); font-weight: 800; }

.sp-teaser { display: flex; align-items: center; gap: 30px; padding: 34px 40px; background: linear-gradient(120deg, var(--card) 40%, var(--orange-soft)); }
.sp-teaser > div { flex: 1; }
.sp-teaser p { margin: 0 0 20px; max-width: 640px; }
.sp-teaser img { width: 160px; height: 160px; }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 920px; }
.plan { padding: 28px; display: flex; flex-direction: column; align-items: flex-start; }
.plan-main { border: 2px solid var(--blue); }
.plan-price { font-size: 22px; font-weight: 800; color: var(--brand) !important; margin: 0 0 14px !important; }
.plan ul { margin: 0 0 22px; padding-left: 20px; color: var(--ink-2); flex: 1; }
.plan li { margin: 6px 0; }
.plan-alt { margin-top: 12px; font-size: 15px; }

.about { display: grid; grid-template-columns: 360px 1fr; gap: 48px; align-items: start; }
.about-photo img { width: 100%; aspect-ratio: 6 / 7; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow-up); background: var(--tint); }
.about-photo img.mascot-fallback { object-fit: contain; padding: 40px; }
.lead-s { font-size: 19px; font-weight: 600; color: var(--ink); margin: 0 0 14px; }
.about-text > p { color: var(--ink-2); margin: 0 0 12px; }
.about-facts { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 22px; padding: 0; }
.about-facts li { padding: 14px 16px; border-radius: 16px; background: var(--tint); }
.about-facts b { display: block; font-size: 19px; font-weight: 800; color: var(--ink); line-height: 1.25; }
.about-facts span { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.contacts { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 12px; }
.contacts .b { height: 44px; font-size: 15px; }

.faq-in { max-width: 900px; }
.faq details { background: var(--card); border-radius: 16px; border: 1px solid var(--line); margin: 0 0 10px; padding: 0 22px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 17.5px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--blue); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--ink-2); }
.faq-cta { display: flex; align-items: center; gap: 18px; padding: 20px 24px; margin-top: 26px; }
.faq-cta div { flex: 1; } .faq-cta h3 { margin: 0; }

.foot { padding: 46px 0 28px; border-top: 1px solid var(--line); }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.foot-nav, .foot-c { display: grid; gap: 8px; align-content: start; font-size: 15px; }
.foot a { text-decoration: none; }
.foot-nav a, .foot-c a { color: var(--ink-2); }
.foot-nav a:hover, .foot-c a:hover { color: var(--blue); }
.foot-copy { margin-top: 24px; font-size: 13px; color: var(--muted); }

/* ---------- окно обратной связи ---------- */
.dlg { width: min(540px, calc(100vw - 24px)); border: 0; border-radius: 22px; padding: 0; background: var(--card); color: var(--ink); box-shadow: var(--shadow-up); }
.dlg::backdrop { background: rgba(10, 18, 30, .45); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px 6px; }
.dlg-head h2 { font-size: 22px; margin: 0; }
.dlg-x { border: 0; background: var(--tint); width: 36px; height: 36px; border-radius: 10px; font-size: 22px; cursor: pointer; }
.dlg-body { padding: 8px 22px 22px; display: grid; gap: 8px; }
.fb-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.fb-kinds label { position: relative; cursor: pointer; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.fb-kinds input { position: absolute; opacity: 0; }
.fb-kinds label:has(input:checked) { background: var(--brand); border-color: var(--brand); color: var(--bg); }
.fb-q { font-size: 14px; padding: 8px 10px; border-radius: 10px; background: var(--tint); }
.fld { display: grid; gap: 4px; font-size: 14px; color: var(--ink-2); }
.fld input, .fld textarea { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--tint); font-size: 15px; color: var(--ink); }
.fld input { height: 44px; }
.dlg .muted { margin: 0; }
.dlg-btns { display: flex; align-items: center; gap: 12px; margin-top: 4px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--brand); color: var(--bg);
  padding: 10px 16px; border-radius: 12px; font-size: 14.5px; transition: opacity .15s, transform .15s; max-width: calc(100vw - 32px); z-index: 50; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- появление при прокрутке ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.seen { opacity: 1; transform: none; }

@keyframes blink { 50% { opacity: 0; } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-mascot, .caret { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .demo-hit { transition: none; }
}

/* ---------- планшет и телефон ---------- */
@media (max-width: 1000px) {
  .hero-in { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { min-height: 0; display: flex; justify-content: center; padding: 0 0 40px; }
  .demo { margin: 0 auto; }
  .hero-mascot { left: auto; top: auto; right: -10px; width: 170px; bottom: -30px; }
  .feats { grid-template-columns: 1fr 1fr; }
  .stats-in { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 280px 1fr; gap: 32px; }
}
@media (max-width: 820px) {
  .h-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 16px; }
  .h-nav.open { display: flex; }
  .h-nav a { padding: 10px 0; font-size: 17px; }
  .h-burger { display: flex; }
  .h-login { margin-left: auto; }
  .h-enter { margin-left: 0; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .in, .h-in { padding-left: 16px; padding-right: 16px; }
  .h-in { gap: 10px; }
  .h-logo { font-size: 19px; }
  .hero { padding: 28px 0 24px; }
  .lead { font-size: 17.5px; }
  .hs-row { flex-direction: column; }
  .hs-row .b { width: 100%; height: 50px; }
  .hs-row input { flex: none; width: 100%; height: 52px; font-size: 17px; }
  .hero-art { display: none; }
  .stats-in b { font-size: 26px; }
  .stats-in > div { padding: 14px; }
  .sec { padding: 56px 0; }
  .sub { font-size: 17px; margin-bottom: 26px; }
  .steps, .feats, .plans { grid-template-columns: 1fr; }
  .sp-teaser { flex-direction: column-reverse; align-items: flex-start; padding: 24px; }
  .sp-teaser img { width: 110px; height: 110px; }
  .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 300px; }
  .hr-list li { grid-template-columns: 1fr; }
  .faq details { padding: 0 16px; }
  .faq summary { font-size: 16px; }
  .faq-cta { flex-direction: column; align-items: flex-start; }
  .foot-in { grid-template-columns: 1fr; gap: 20px; }
  .contacts .b { width: 100%; }
  .about-facts { grid-template-columns: 1fr; }
}

/* ---------- страница «не найдено» ---------- */
body.nf { display: grid; place-items: center; min-height: 100vh; padding: 24px; text-align: center; }
.nf-box img { width: 160px; height: 160px; }
.nf-box h1 { font-size: 36px; }
.nf-box .b { margin: 4px; }
.btn { display: inline-flex; align-items: center; height: 46px; padding: 0 20px; border-radius: 14px; font-weight: 600; text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-ghost { background: var(--blue-soft); color: var(--blue); }

/* ---------- квалификация в «Обо мне» ---------- */
.quals { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 4px; }
.qual { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 16px; background: var(--tint); text-decoration: none; color: var(--ink); flex: 1 1 280px; transition: background .15s; }
a.qual:hover { background: var(--blue-soft); }
.qual img { width: 96px; height: auto; border-radius: 8px; box-shadow: var(--shadow); flex: none; }
.qual span { font-size: 14.5px; color: var(--ink-2); line-height: 1.4; }
.qual b { display: block; color: var(--ink); font-size: 15px; }
.qual-text { padding-left: 16px; }

/* ---------- юридические страницы ---------- */
.doc-main { max-width: 820px; padding-top: 30px; padding-bottom: 60px; }
.doc-main h1 { font-size: clamp(28px, 4vw, 40px); }
.doc-main h2 { font-size: 21px; margin: 28px 0 8px; }
.doc-main p { color: var(--ink-2); margin: 0 0 10px; }
.doc-nav { margin-top: 30px; font-size: 14.5px; }
body.doc .h-enter { margin-left: auto; }

/* ---------- тарифы ---------- */
.plans-4 { grid-template-columns: repeat(4, 1fr); max-width: none; }
.plan { position: relative; }
.plan-price small { font-size: 14px; font-weight: 500; color: var(--muted); }
.plan-badge { position: absolute; top: -12px; left: 24px; background: var(--orange); color: #fff; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.plans-note { margin-top: 22px; }
.h-login { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15.5px; }
.h-login:hover { color: var(--blue); }
@media (max-width: 1000px) { .plans-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .plans-4 { grid-template-columns: 1fr; } .h-login { display: none; } }

/* ---------- 0.3.1: первый экран — сразу поиск ---------- */
.hero-s { padding: 40px 0 34px; }
.hero-s-in { max-width: 1180px; } /* поиск — на ту же ширину, что и карточки «Нашли / Добавили / Скачали» */
.hero-s-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.hero-s-head h1 { margin: 6px 0 8px; }
.hero-s-head .lead { margin: 0; max-width: 680px; }
.hero-mascot-s { width: 190px; height: auto; flex: none; filter: drop-shadow(0 12px 22px rgba(20, 33, 61, .18)); animation: bob 5s ease-in-out infinite; }
.hs-big { padding: 12px; }
.hs-big .hs-row { align-items: center; }
.hs-big .hs-tabs { padding: 4px; margin: 0; border-radius: 14px; background: var(--tint); border: 1px solid var(--line); flex: none; }
.hs-big .hs-tabs button { height: 52px; padding: 0 16px; font-size: 15.5px; color: var(--ink-2); }
.hs-big .hs-tabs button.on { background: var(--blue); color: #fff; }
.hs-big .hs-row input { height: 62px; font-size: 20px; background: var(--card); border: 2px solid var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 12%, transparent); caret-color: var(--blue); }
.hs-big .hs-row input::placeholder { color: color-mix(in srgb, var(--muted) 85%, transparent); }
.hs-big .hs-row .b { height: 62px; font-size: 17px; }
/* «Вы вошли — …» — своей строкой, а примеры — всегда в одну строку: при переключении «Расценки / Материалы» форма не меняет высоту */
.hs-me { flex-basis: 100%; margin: 2px 0 0; text-align: right; font-size: 13.5px; color: var(--ink-2); }
.hs-me[hidden] { display: none; }
.hs-me a { font-weight: 600; }
.hs-demo { margin-top: 14px; padding: 14px 16px; border-radius: var(--r); border: 1px dashed color-mix(in srgb, var(--blue) 35%, var(--line)); background: color-mix(in srgb, var(--card) 70%, transparent); }
.hs-demo[hidden] { display: none; }
.hs-demo-lbl { font-size: 13px; color: var(--muted); margin-bottom: 8px; min-height: 18px; }
.hs-demo-lbl span { color: var(--ink-2); font-weight: 600; }
.hs-demo-row { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 16px; align-items: start; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; min-height: 52px; }
.hs-demo-row.show { opacity: 1; transform: none; }
.hs-demo-row .demo-code { margin: 0 0 4px; font-size: 15.5px; }
.hs-demo-row .demo-name { font-size: 15px; color: var(--ink); }
.hs-demo-row .demo-ok { margin: 0; white-space: nowrap; align-self: center; padding: 7px 14px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 14px; transition: opacity .25s, background .25s, color .25s; }
.hs-demo-row .demo-ok.done { background: var(--green-soft); color: var(--green); }
.hs-smeta { margin-left: auto; padding: 3px 2px; font-size: 14px; font-weight: 600; color: var(--blue); text-decoration: none; white-space: nowrap; }
.hs-smeta:hover { text-decoration: underline; }
@media (max-width: 860px) {
  .hero-mascot-s { width: 130px; }
}
@media (max-width: 640px) {
  .hero-s { padding: 22px 0 20px; }
  .hero-s-head { align-items: flex-start; }
  .hero-mascot-s { display: none; }
  .hs-big .hs-row { flex-direction: column; align-items: stretch; }
  .hs-big .hs-tabs { display: flex; }
  .hs-big .hs-tabs button { flex: 1; height: 42px; }
  .hs-big .hs-row input { height: 54px; font-size: 17px; }
  .hs-big .hs-row .b { height: 50px; }
  .hs-demo-row { grid-template-columns: 1fr; }
  .hs-demo-row .demo-ok { justify-self: start; }
  .hs-smeta { margin-left: 0; flex-basis: 100%; padding-top: 6px; }
  .hs-me { margin-left: 0; flex-basis: 100%; }
}
/* маскот — ровно справа от заголовка, не залезает на поиск; покачивание только вверх-вниз, без наклона */
.hero-s-head { align-items: center; margin-bottom: 26px; }
.hero-mascot-s { width: 310px; margin-right: 40px; animation-name: bob-straight; }
.hero-s-head .lead { max-width: 760px; text-wrap: pretty; } /* текст шире — меньше пустоты до маскота; pretty — без одного слова на последней строке */
@keyframes bob-straight { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 1000px) { .hero-mascot-s { width: 230px; margin-right: 10px; } }
@media (max-width: 860px) { .hero-mascot-s { width: 170px; margin-right: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-mascot-s { animation: none; } .hs-demo-row { transition: none; } }

/* ---------- открытые страницы норм /normy ---------- */
.nm-main { max-width: 1040px; padding-top: 22px; padding-bottom: 40px; }
.nm-bc { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.nm-bc a { color: var(--ink-2); text-decoration: none; }
.nm-base { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 20px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.nm-base label { flex: none; font-weight: 600; }
.nm-base select { flex: 1 1 280px; min-width: 0; max-width: 100%; height: 40px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; }
.nm-base .muted:empty { display: none; }
.nm-empty { padding: 22px; border: 1px dashed var(--line-strong); border-radius: 12px; color: var(--ink-2); text-align: center; }
.nm-bc a:hover { color: var(--blue); text-decoration: underline; }
.nm-bc i { font-style: normal; color: var(--muted); }
.nm h1 { font-size: clamp(24px, 3.2vw, 34px); line-height: 1.25; letter-spacing: -0.02em; margin: 0 0 8px; }
.nm-c { font-family: var(--sans); color: var(--blue); white-space: nowrap; margin-right: 6px; }
.nm-path { margin: 0 0 10px; }
.nm-facts { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 16px; font-size: 15px; color: var(--ink-2); }
.nm-facts span { color: var(--line); }
.nm-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.nm-btns .b { height: 44px; font-size: 15px; padding: 0 18px; }
.nm-sec { margin-top: 28px; }
.nm-sec h2, .nm-h2 { font-size: 21px; letter-spacing: -0.01em; margin: 26px 0 10px; }
.nm-h3 { font-size: 15.5px; margin: 16px 0 6px; color: var(--ink-2); }
.nm-list { margin: 0; padding-left: 22px; line-height: 1.6; }
.nm-tw { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.nm-t { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.nm-t th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--tint); }
.nm-t td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.nm-t tr:last-child td { border-bottom: 0; }
.nm-t a { color: var(--ink); text-decoration: none; }
.nm-t a:hover { color: var(--blue); text-decoration: underline; }
.nm-code { font-family: var(--sans); font-size: 13px; white-space: nowrap; }
.nm-u { white-space: nowrap; color: var(--ink-2); }
.nm-n { text-align: right; white-space: nowrap; font-family: var(--sans); font-size: 13.5px; }
.nm-qs { display: flex; flex-wrap: wrap; gap: 8px; }
.nm-q { padding: 6px 12px; border-radius: 999px; border: 1px dashed color-mix(in srgb, var(--blue) 40%, var(--line)); color: var(--ink); text-decoration: none; font-size: 14.5px; }
.nm-q:hover { border-style: solid; color: var(--blue); }
.nm-q-wrap { display: inline-flex; align-items: center; gap: 2px; }
.nm-q-del { width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font: 16px/1 var(--sans); cursor: pointer; }
.nm-q-del:hover { color: var(--danger, #b43c36); }
.nm-q-del[hidden] { display: none !important; }
.nm-sib, .nm-colls, .nm-tables { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--card); overflow: hidden; }
.nm-sib li, .nm-colls li, .nm-tables li { padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.45; }
.nm-sib li:last-child, .nm-colls li:last-child, .nm-tables li:last-child { border-bottom: 0; }
.nm-sib li.on { background: var(--blue-soft); }
.nm-sib a, .nm-colls a, .nm-tables a { color: var(--ink); text-decoration: none; }
.nm-sib a:hover, .nm-colls a:hover, .nm-tables a:hover { color: var(--blue); }
.nm-sib b, .nm-colls b, .nm-tables b { font-family: var(--sans); font-size: 13px; margin-right: 6px; }
.nm-cta { display: grid; min-width: 0; grid-template-columns: 1fr minmax(280px, 1fr); gap: 16px 24px; align-items: center; margin-top: 36px; padding: 22px; }
.nm-cta h2 { font-size: 21px; margin: 0 0 6px; }
.nm-cta p { margin: 0; color: var(--ink-2); }
.nm-cta > div { min-width: 0; }
.nm-sf { display: flex; gap: 8px; min-width: 0; }
.nm-sf input { flex: 1 1 0; min-width: 0; height: 48px; padding: 0 14px; font-size: 16px; border: 1.5px solid var(--blue); border-radius: 12px; background: var(--card); color: var(--ink); }
.nm-sf .b { height: 48px; }
.nm-src { margin-top: 18px; font-size: 13px; }
@media (max-width: 720px) { .nm-cta { grid-template-columns: 1fr; } .nm-t { font-size: 13.5px; } }

.feat img.feat-wide { width: 136px; height: 96px; object-fit: contain; }

/* шапка: пункты меню в одну строку, ровные отступы */
.h-nav { gap: 22px; align-items: center; }
.h-nav a, .h-login { white-space: nowrap; line-height: 1.2; }
.h-in { gap: 22px; }
@media (max-width: 1220px) and (min-width: 1041px) { .h-nav { gap: 16px; } .h-nav a { font-size: 14.5px; } .h-in { gap: 16px; } }
@media (max-width: 1040px) {
  .h-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 16px; }
  .h-nav.open { display: flex; }
  .h-nav a { padding: 10px 0; font-size: 17px; }
  .h-burger { display: flex; }
  .h-login { margin-left: auto; }
  .h-enter { margin-left: 0; }
}

/* логотип и кнопки шапки не сжимаются — сжимается только меню */
.h-logo, .h-enter, .h-login, .h-burger { flex: none; }
.h-nav { min-width: 0; }
.plan-old { color: var(--muted, #8a94a6); font-size: .9em; font-weight: 500; margin-right: 4px; text-decoration-thickness: 2px; }
.nm-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #e3f5ea; color: #1d7a45; font-size: 12px; font-weight: 600; white-space: nowrap; }
.nm-tag2 { background: #fff2dd; color: #9a5a00; }

/* ---------- 0.4.9: шапка вошедшего — имя и меню ---------- */
.h-user { position: relative; margin-left: 4px; }
.h-user-btn { display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 12px 0 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font: 600 15px/1 var(--sans); cursor: pointer; max-width: 260px; transition: border-color .15s, box-shadow .15s; }
.h-user-btn:hover, .h-user.open .h-user-btn { border-color: color-mix(in srgb, var(--blue) 45%, var(--line)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 10%, transparent); }
.h-ava { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), #5B8CFF); color: #fff; font-weight: 800; font-size: 15px; }
.h-ava-l { width: 44px; height: 44px; font-size: 19px; }
.h-user-nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-caret { width: 12px; height: 12px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.h-user.open .h-caret { transform: rotate(180deg); }
.h-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 290px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-up); padding: 10px; z-index: 30; animation: rise .15s ease-out; }
.h-menu-head { display: flex; gap: 12px; align-items: center; padding: 6px 6px 12px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.h-menu-head > div { min-width: 0; }
.h-menu-head b { display: block; font-size: 16px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-menu-head > div > span { display: block; font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-menu-head > div > small { display: inline-block; margin-top: 5px; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); }
.h-menu-go { width: 100%; height: 44px; margin-bottom: 6px; }
.h-menu-i { display: block; width: 100%; text-align: left; padding: 10px 10px; border: 0; background: none; border-radius: 10px; color: var(--ink-2); font: 500 15px/1.2 var(--sans); text-decoration: none; cursor: pointer; }
.h-menu-i:hover { background: var(--tint); color: var(--blue); }
.h-menu-out { color: var(--muted); border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; margin-top: 4px; padding-top: 12px; }
@media (max-width: 820px) { .h-user { margin-left: auto; } }
@media (max-width: 680px) { .h-user-nm { display: none; } .h-user-btn { padding: 0 9px 0 4px; gap: 6px; } .h-menu { width: min(290px, calc(100vw - 32px)); } }

/* ---------- 0.5.0: три тарифа, подсказки, бета-цены ---------- */
.plans-3 { grid-template-columns: repeat(3, 1fr); max-width: none; align-items: stretch; }
.plans-3 .plan { display: flex; flex-direction: column; }
.plans-3 .plan > .b { margin-top: auto; }
.plan-list { list-style: none; padding: 0; margin: 4px 0 22px; display: grid; gap: 12px; }
.plan-list li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 15.5px; line-height: 1.45; }
.plan-list li::before { content: ''; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--green-soft); }
.plan-list li::after { content: ''; position: absolute; left: 5px; top: 7.5px; width: 6px; height: 3.5px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.plan-list b { color: var(--ink); font-weight: 700; }
.plan-hint { display: block; font-size: 13.5px; color: var(--muted); margin-top: 1px; }
.plans-beta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 22px; padding: 12px 16px; border-radius: 16px; background: var(--orange-soft); color: #7A3F06; font-size: 15px; }
.plans-beta-tag { flex: none; font-weight: 800; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--orange); color: #fff; }
@media (prefers-color-scheme: dark) { .plans-beta { color: #FFD9B0; background: color-mix(in srgb, var(--orange) 16%, transparent); } }
@media (max-width: 1000px) { .plans-3 { grid-template-columns: 1fr; max-width: 560px; } }
.plan .plan-list { padding-left: 0; flex: 0 0 auto; align-content: start; }
.plan .plan-list li { margin: 0; }

/* главная: от найденной расценки к готовым документам */
.hero-s-head h1 { font-size: clamp(37px, 5.3vw, 66px); }
.hero-s-head .hl-or { white-space: normal; }
.lead-accent { color: var(--brand); background: var(--orange-soft); border-radius: 6px; padding: 0 .2em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 22px 0; }
.hero-actions > span { color: var(--muted); font-size: 14px; }
.estimate-flow { padding: 10px 0 34px; }
.flow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.flow-item { display: flex; align-items: center; gap: 13px; min-width: 0; padding: 18px; border-radius: var(--r); background: var(--tint); }
.flow-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border: 1px solid var(--line); border-radius: 13px; background: var(--card); color: var(--blue); }
.flow-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.flow-item b { display: block; color: var(--ink); font-size: 16px; line-height: 1.35; }
.flow-item div > span { display: block; margin-top: 3px; color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.estimate-showcase { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 44px; align-items: center; }
.estimate-copy > p:not(.eyebrow) { color: var(--ink-2); }
.estimate-points { list-style: none; display: grid; gap: 13px; margin: 24px 0 28px; padding: 0; }
.estimate-points li { position: relative; padding-left: 28px; color: var(--ink-2); font-size: 16px; }
.estimate-points li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 800; }
.estimate-points b { color: var(--ink); }
.estimate-window { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--card); box-shadow: var(--shadow-up); }
.estimate-window-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--tint); }
.estimate-window-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.estimate-window-bar i:first-child { background: #FF6B5E; }
.estimate-window-bar i:nth-child(2) { background: #FFC53D; }
.estimate-window-bar i:nth-child(3) { background: #3DCB6C; }
.estimate-window-bar span { margin-left: 8px; color: var(--muted); font-size: 12px; }
.estimate-doc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 20px 16px; }
.estimate-doc-head small { display: block; margin-bottom: 3px; color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.estimate-doc-head b { color: var(--brand); font-size: 20px; }
.estimate-doc-btn { padding: 7px 12px; border-radius: 9px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 600; }
.estimate-sample { margin: 0 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.estimate-row { display: grid; grid-template-columns: 135px minmax(0, 1fr) 65px 90px; align-items: center; min-height: 59px; border-bottom: 1px solid var(--line); }
.estimate-row:last-child { border-bottom: 0; }
.estimate-row > span { min-width: 0; padding: 10px; color: var(--ink-2); font-size: 11px; line-height: 1.4; }
.estimate-row > span:first-child { color: var(--blue); font: 500 10px/1.4 var(--sans); overflow-wrap: anywhere; }
.estimate-row > span:nth-child(n+3) { text-align: right; white-space: nowrap; }
.estimate-row > span:last-child { color: var(--ink); font-weight: 600; }
.estimate-row-head { min-height: 0; background: var(--tint); }
.estimate-row-head > span, .estimate-row-head > span:first-child, .estimate-row-head > span:last-child { padding-top: 8px; padding-bottom: 8px; color: var(--muted); font: 600 10px/1.3 var(--sans); }
.estimate-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 20px; color: var(--muted); font-size: 13px; }
.estimate-total b { color: var(--brand); font-size: 20px; white-space: nowrap; }
.estimate-window-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 20px; border-top: 1px solid var(--line); background: var(--tint); color: var(--muted); font-size: 11px; }
.estimate-window-foot b { color: var(--blue); font-size: 12px; }
.export-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
.export-card { overflow: hidden; padding: 26px 26px 0; }
.export-format { display: inline-block; margin-bottom: 12px; padding: 3px 9px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: 12px; font-weight: 700; }
.export-visual { margin-top: 22px; padding: 18px 18px 0; border-radius: 14px 14px 0 0; background: var(--tint); }
.sheet-mini, .act-mini { width: 100%; border: 1px solid var(--line); border-bottom: 0; border-radius: 9px 9px 0 0; background: var(--card); box-shadow: var(--shadow); }
.sheet-mini { border-collapse: separate; border-spacing: 0; overflow: hidden; font-size: 11px; }
.sheet-mini caption { padding: 13px 10px; border-bottom: 1px solid var(--line); color: var(--brand); font-size: 13px; font-weight: 700; text-align: left; }
.sheet-mini th, .sheet-mini td { padding: 9px 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; }
.sheet-mini th:last-child, .sheet-mini td:last-child { border-right: 0; }
.sheet-mini th { background: var(--blue-soft); color: var(--ink-2); font-size: 9px; font-weight: 600; }
.sheet-mini td { color: var(--ink-2); }
.sheet-mini td:last-child { text-align: right; white-space: nowrap; }
.sheet-mini .sheet-total td { border-bottom: 0; color: var(--brand); font-weight: 700; }
.act-mini { width: 88%; margin: 0 auto; padding: 17px 20px 26px; color: var(--ink-2); }
.act-mini small { display: block; font-size: 8px; text-align: center; }
.act-mini > b { display: block; margin: 8px 0 12px; color: var(--brand); font-size: 16px; text-align: center; }
.act-mini > span { display: block; margin: 5px 0; border-bottom: 1px solid var(--line); font-size: 10px; }
.act-mini table { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: 9px; }
.act-mini th, .act-mini td { padding: 6px 4px; border: 1px solid var(--line); text-align: left; }
.act-mini th { background: var(--tint); font-weight: 600; }
.act-mini td:last-child { text-align: right; }
.act-mini > strong { display: block; margin-top: 10px; color: var(--brand); font-size: 11px; text-align: right; }
@media (max-width: 1000px) {
  .flow-grid { grid-template-columns: 1fr; }
  .estimate-showcase { grid-template-columns: 1fr; gap: 28px; }
  .estimate-copy { max-width: 700px; }
}
@media (max-width: 680px) {
  .hero-s-head h1 { font-size: clamp(34px, 10vw, 44px); }
  .hero-actions { align-items: flex-start; flex-direction: column; margin: 18px 0; }
  .hero-actions .b { width: 100%; }
  .flow-item { padding: 14px; }
  .estimate-doc-head { padding: 16px 12px 12px; }
  .estimate-doc-head b { font-size: 17px; }
  .estimate-sample { margin: 0 8px; }
  .estimate-row { grid-template-columns: minmax(0, 1fr) 49px 74px; }
  .estimate-row > span { padding: 8px 5px; font-size: 10px; }
  .estimate-row > span:first-child { display: none; }
  .estimate-row-head > span:first-child { display: none; }
  .estimate-row-head > span:nth-child(2)::before { content: 'Шифр и наименование'; }
  .estimate-row-head > span:nth-child(2) { font-size: 0; }
  .estimate-row-head > span:nth-child(2)::before { font-size: 10px; }
  .estimate-total { padding: 14px 12px; }
  .estimate-total b { font-size: 17px; }
  .estimate-window-foot { padding: 10px 12px; }
  .export-grid { grid-template-columns: 1fr; margin-top: 28px; }
  .export-card { padding: 22px 20px 0; }
}

/* ===== блок «Смета и документы» v2 ===== */
.sm-head { max-width: 820px; margin-bottom: 30px; }
.sm-head h2 { margin-bottom: 12px; }
.sm-head .sub { margin: 0; }
.sm-ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.sm-way { display: flex; flex-direction: column; padding: 26px 26px 0; overflow: hidden; }
.sm-way h3 { margin: 0 0 8px; }
.sm-way > p { margin: 0 0 22px; color: var(--ink-2); }
.sm-tag { align-self: flex-start; margin-bottom: 12px; padding: 3px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: 12.5px; font-weight: 700; }
.sm-shot { margin-top: auto; border-bottom: 0; border-radius: 16px 16px 0 0; box-shadow: var(--shadow); }
.sm-shot .estimate-sample { margin: 12px 12px 0; }
.sm-shot .estimate-row { grid-template-columns: 118px minmax(0, 1fr) 56px 78px; min-height: 48px; }
.sm-shot .estimate-total { padding: 14px 16px 18px; }

.sm-ways-one { grid-template-columns: 1fr; }
.sm-ways-one .sm-way > p { max-width: 760px; }

/* макет помощника поверх сметной программы */
.sm-pc { position: relative; margin-top: auto; min-height: 326px; border: 1px solid var(--line); border-bottom: 0; border-radius: 16px 16px 0 0; background: var(--card); box-shadow: var(--shadow); overflow: hidden; font-size: 11.5px; }
.sm-pc-bar { padding: 9px 14px; border-bottom: 1px solid var(--line); background: #EEF1F6; color: var(--muted); font-size: 12px; }
.sm-pc-grid { margin: 12px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.sm-pc-row { display: grid; grid-template-columns: 34px 160px minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.sm-pc-row:last-child { border-bottom: 0; }
.sm-pc-row > span { min-height: 34px; padding: 9px 8px; border-right: 1px solid var(--line); color: var(--ink-2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sm-pc-row > span:last-child { border-right: 0; }
.sm-pc-row > span:nth-child(2) { font-family: var(--sans); font-size: 10.5px; color: var(--brand); }
.sm-pc-head > span, .sm-pc-head > span:nth-child(2) { min-height: 0; padding: 7px 8px; background: var(--tint); color: var(--muted); font: 600 10.5px var(--sans); }
.sm-pc-cell { position: relative; outline: 2px solid var(--green); outline-offset: -2px; background: var(--green-soft); }
.sm-pc-cell i { display: inline-block; width: 1px; height: 12px; margin-left: 2px; vertical-align: -2px; background: var(--ink); animation: blink 1s steps(1) infinite; }
.sm-pc-pop { position: absolute; right: 22px; bottom: 18px; width: min(330px, calc(100% - 230px)); padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: var(--shadow-up); }
.sm-pc-q { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 2px solid var(--blue); border-radius: 10px; font-size: 14px; color: var(--ink); }
.sm-pc-q svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; }
.sm-pc-hit { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; margin-top: 8px; padding: 9px 10px; border-radius: 10px; background: var(--blue-soft); }
.sm-pc-hit b { font: 600 12px var(--sans); color: var(--brand); }
.sm-pc-hit span { grid-column: 1; font-size: 12px; color: var(--ink-2); line-height: 1.35; }
.sm-pc-hit kbd { grid-column: 2; grid-row: 1 / span 2; align-self: center; padding: 3px 7px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--card); font: 600 11px var(--sans); color: var(--ink-2); }
@keyframes blink { 50% { opacity: 0; } }

/* готовые документы */
.sm-docs { margin-top: 56px; }
.sm-docs-h { margin: 0 0 18px; font-size: clamp(22px, 2.4vw, 28px); }
.sm-excel { position: relative; margin: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--shadow-up); }
.sm-excel a { display: block; position: relative; }
.sm-excel img { display: block; width: 100%; height: auto; }
.sm-excel figcaption { padding: 10px 16px 14px; color: var(--muted); font-size: 13.5px; background: #fff; }
.sm-formats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.sm-f { padding: 18px; border-radius: var(--r); background: var(--tint); }
.sm-f b { display: block; margin: 10px 0 6px; color: var(--ink); font-size: 16px; line-height: 1.3; }
.sm-f p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.sm-f-badge { display: inline-block; padding: 3px 9px; border-radius: 7px; background: var(--card); border: 1px solid var(--line); color: var(--blue); font: 700 12px var(--sans); }
.sm-f-gge { background: var(--green-soft); }
.sm-f-gge b { color: var(--green); }
.sm-f-gge .sm-f-badge { color: var(--green); }
.sm-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 30px; }
.sm-cta > span { color: var(--muted); font-size: 14px; }

@media (max-width: 1000px) {
  .sm-ways { grid-template-columns: 1fr; }
  .sm-formats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .sm-way { padding: 22px 18px 0; }
  .sm-shot .estimate-row { grid-template-columns: minmax(0, 1fr) 50px 70px; }
  .sm-shot .estimate-row > span:first-child { display: none; }
  .sm-pc-row { grid-template-columns: 28px 128px minmax(0, 1fr); }
  .sm-pc-pop { right: 10px; bottom: 10px; width: calc(100% - 20px); }
  .sm-pc { min-height: 300px; }
  .sm-excel { overflow-x: auto; }
  .sm-excel img { width: 760px; max-width: none; }
  .sm-formats { grid-template-columns: 1fr; }
  .sm-cta .b { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .sm-pc-cell i { animation: none; } }

/* окно режима сметы v3 */
.smw { margin-top: auto; overflow: hidden; border: 1px solid var(--line); border-bottom: 0; border-radius: 16px 16px 0 0; background: var(--card); box-shadow: var(--shadow); }
.smw-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 20px; padding: 16px 18px 12px; }
.smw-head small { display: block; margin-bottom: 3px; color: var(--muted); font-size: 10.5px; letter-spacing: .06em; }
.smw-head b { color: var(--brand); font-size: 18px; }
.smw-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.smw-meta span { padding: 3px 9px; border-radius: 999px; background: var(--tint); border: 1px solid var(--line); color: var(--ink-2); font-size: 12px; }
.smw-scroll { margin: 0 12px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.smw-t { min-width: 900px; }
.smw-r { display: grid; grid-template-columns: 196px minmax(0, 1fr) 64px 82px 92px 98px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.smw-r:last-child { border-bottom: 0; }
.smw-r > span { padding: 6px 9px; color: var(--ink-2); line-height: 1.35; }
.smw-r > span:nth-child(n+3) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.smw-r > span:nth-child(3) { text-align: center; }
.smw-r > span:first-child { font: 500 11.5px/1.35 var(--sans); color: var(--blue); white-space: nowrap; }
.smw-h { background: var(--tint); }
.smw-h > span, .smw-h > span:first-child { padding-top: 8px; padding-bottom: 8px; color: var(--muted); font: 600 11px/1.3 var(--sans); }
.smw-pos { background: color-mix(in srgb, var(--blue-soft) 45%, var(--card)); }
.smw-pos > span { padding-top: 9px; padding-bottom: 9px; color: var(--ink); font-weight: 600; }
.smw-pos > span:first-child { color: var(--brand); font-weight: 600; }
.smw-pos em { display: inline-block; min-width: 18px; margin-right: 6px; color: var(--muted); font: 600 11px var(--sans); font-style: normal; }
.smw-pos small { display: block; color: var(--muted); font-weight: 400; font-size: 11px; }
.smw-tg { margin-right: 6px; color: var(--blue); font-style: normal; font-weight: 400; }
.smw-res > span { padding-top: 4px; padding-bottom: 4px; font-size: 12px; }
.smw-res > span:first-child { padding-left: 33px; color: var(--muted); font-size: 11px; }
.smw-res > span:nth-child(2) { padding-left: 24px; }
.smw-n > span, .smw-n > span:first-child { color: #C0392B; font-style: italic; }
.smw-nrsp > span { color: var(--muted); }
.smw-tot { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; margin: 12px 12px 0; border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; overflow: hidden; }
.smw-tot > div { padding: 10px 12px 12px; border-right: 1px solid var(--line); background: var(--tint); }
.smw-tot > div:last-child { border-right: 0; }
.smw-tot span { display: block; color: var(--muted); font-size: 11.5px; }
.smw-tot b { display: block; margin-top: 2px; color: var(--ink); font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.smw-tot .smw-all { background: var(--blue); }
.smw-tot .smw-all span { color: rgba(255,255,255,.8); }
.smw-tot .smw-all b { color: #fff; }
@media (max-width: 1000px) { .smw-tot { grid-template-columns: repeat(3, minmax(0, 1fr)); } .smw-tot > div:nth-child(3) { border-right: 0; } .smw-tot > div:nth-child(-n+3) { border-bottom: 1px solid var(--line); } }
@media (max-width: 680px) { .smw-tot { grid-template-columns: repeat(2, minmax(0, 1fr)); } .smw-tot > div { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line); } .smw-tot > div:nth-child(2n) { border-right: 0 !important; } .smw-head b { font-size: 16px; } }

/* ===== автосмета ===== */
#avtosmeta .sm-tag { display: inline-block; margin-bottom: 12px; }
#avtosmeta .sm-tag .beta { font-style: normal; }
.av-demo { display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1.25fr); align-items: stretch; }
.av-pane { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.av-bar { display: flex; align-items: center; gap: 9px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--tint); font-size: 13px; }
.av-bar b { color: var(--ink); font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.av-file { display: grid; place-items: center; height: 22px; padding: 0 6px; border-radius: 5px; color: #fff; font: 700 10px var(--sans); flex: none; }
.av-xls { background: #217346; } .av-sl { background: var(--blue); }
.av-sum { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; color: var(--ink-2); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.av-sum .av-dot-w { margin-left: 6px; }
.av-scroll { overflow-x: auto; }
.av-t { min-width: 420px; }
.av-t-res { min-width: 520px; }
.av-vr, .av-rr { display: grid; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.av-vr { grid-template-columns: 30px minmax(0, 1fr) 56px 64px; }
.av-rr { grid-template-columns: 22px 150px minmax(0, 1fr) 56px 62px; }
.av-vr:last-child, .av-rr:last-child { border-bottom: 0; }
.av-vr > span, .av-rr > span { padding: 7px 8px; color: var(--ink-2); line-height: 1.35; }
.av-vr > span:nth-child(n+3), .av-rr > span:nth-child(n+4) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.av-vr > span:nth-child(3), .av-rr > span:nth-child(4) { text-align: center; }
.av-vr > span:first-child { color: var(--muted); text-align: center; }
.av-h > span { padding-top: 8px; padding-bottom: 8px; background: var(--tint); color: var(--muted); font: 600 11px/1.3 var(--sans); }
.av-rr.av-h > span:nth-child(2) { font: 600 11px/1.3 var(--sans); color: var(--muted); }
.sm-head h2 { text-wrap: balance; }
.av-sec > span { padding-top: 6px; padding-bottom: 6px; color: var(--ink); font-weight: 700; font-size: 12px; background: color-mix(in srgb, var(--tint) 60%, var(--card)); }
.av-plain > span:nth-child(2) { color: var(--ink); font-style: italic; }
.av-rr > span:nth-child(2) { font: 500 11px/1.35 var(--sans); color: var(--blue); white-space: nowrap; }
.av-rr small { display: block; margin-top: 3px; color: #8A5A00; font-size: 11.5px; }
.av-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #2FA35B; flex: none; }
.av-rr > .av-dot { justify-self: center; align-self: start; width: 9px; height: 9px; margin-top: 11px; padding: 0; }
.av-check { background: #FFF8E6; }
.av-check > .av-dot, .av-dot-w { background: #F0A500; }
.av-arrow { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--blue); }
.av-arrow span { font-size: 11.5px; font-weight: 700; writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: .04em; }
.av-arrow svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.av-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.av-p { padding: 18px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.av-p b { display: flex; align-items: center; gap: 9px; color: var(--ink); font-size: 16px; line-height: 1.3; }
.av-p b svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.av-p p { margin: 8px 0 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.av-p-ok { border-color: color-mix(in srgb, #2FA35B 35%, var(--line)); }
.av-p-warn { border-color: color-mix(in srgb, #F0A500 45%, var(--line)); }
@media (max-width: 1000px) {
  .av-demo { grid-template-columns: 1fr; gap: 0; }
  .av-arrow { flex-direction: row; padding: 10px 0; }
  .av-arrow span { writing-mode: horizontal-tb; transform: none; }
  .av-arrow svg { transform: rotate(90deg); }
  .av-points { grid-template-columns: 1fr; }
}

/* ===== программа для Windows ===== */
.pc-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.pc-copy .sm-tag { display: inline-block; margin-bottom: 12px; }
.pc-copy h2 { text-wrap: balance; margin-bottom: 12px; }
.pc-copy .sub { margin: 0; }
.pc-points { list-style: none; display: grid; gap: 14px; margin: 24px 0 26px; padding: 0; }
.pc-points li { position: relative; padding-left: 28px; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.pc-points li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 800; }
.pc-points b { color: var(--ink); }
kbd { display: inline-block; padding: 0 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--card); font: 600 .85em/1.6 var(--sans); color: var(--ink-2); white-space: nowrap; }
.pc-shot { position: relative; padding: 26px 0 0; }
.pc-app { overflow: hidden; border: 1px solid #C9CFD9; border-radius: 12px; background: #fff; box-shadow: var(--shadow); font-size: 12px; }
.pc-app-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #E9ECF1; border-bottom: 1px solid #C9CFD9; color: #5B6575; font-size: 12px; }
.pc-app-bar i { width: 9px; height: 9px; border-radius: 50%; background: #C3C9D3; }
.pc-app-bar span { margin-left: 8px; }
.pc-app-grid { margin: 10px; border: 1px solid #D5DAE2; }
.pc-r { display: grid; grid-template-columns: 30px 132px minmax(0, 1fr) 58px 52px; border-bottom: 1px solid #E1E5EB; }
.pc-r:last-child { border-bottom: 0; }
.pc-r > span { min-height: 30px; padding: 7px 7px; border-right: 1px solid #E1E5EB; color: #2B3443; line-height: 1.3; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pc-r > span:last-child { border-right: 0; text-align: right; }
.pc-r > span:nth-child(2) { font: 500 11px/1.3 var(--sans); color: #1F3A8A; }
.pc-r > span:nth-child(4) { text-align: center; }
.pc-h > span, .pc-h > span:nth-child(2) { min-height: 0; padding: 6px 7px; background: #F1F3F6; color: #5B6575; font: 600 10.5px/1.3 var(--sans); }
.pc-sel > span:nth-child(2) { outline: 2px solid var(--blue); outline-offset: -2px; background: #EEF3FF; }
.pc-caret { display: inline-block; width: 1px; height: 13px; margin-left: 1px; vertical-align: -2px; background: var(--ink); animation: blink 1s steps(1) infinite; }
.pc-pop { position: relative; z-index: 2; margin: -96px -10px 0 auto; width: min(410px, 80%); padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: 0 24px 60px rgba(20, 33, 61, .22), 0 4px 14px rgba(20, 33, 61, .08); }
.pc-pop-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.pc-logo { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--blue); color: #fff; font: 800 10.5px var(--sans); }
.pc-tabs { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border-radius: 10px; background: var(--tint); font-size: 12.5px; }
.pc-tabs > b { padding: 4px 10px; border-radius: 8px; background: var(--blue); color: #fff; font-weight: 600; }
.pc-tabs > span { padding: 4px 8px; color: var(--ink-2); }
.pc-q { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border: 2px solid var(--blue); border-radius: 11px; font-size: 15px; color: var(--ink); }
.pc-q svg { width: 17px; height: 17px; flex: none; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; }
.pc-hits { display: grid; gap: 4px; margin-top: 8px; }
.pc-hit { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 10px; padding: 8px 10px; border-radius: 10px; }
.pc-hit b { font: 600 12px var(--sans); color: var(--brand); }
.pc-hit span { grid-column: 1; font-size: 12px; color: var(--ink-2); line-height: 1.35; }
.pc-hit kbd { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 11px; }
.pc-hit.on { background: var(--blue-soft); }
.pc-toast { margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: var(--green-soft); color: var(--green); font-size: 12.5px; font-weight: 600; }
.pc-toast kbd { font-size: 11px; color: var(--green); }
.pc-key { position: absolute; z-index: 3; right: 18px; top: 0; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: var(--shadow); }
.pc-key kbd { padding: 4px 12px; font-size: 18px; border-bottom-width: 3px; color: var(--ink); }
.pc-key span { color: var(--ink-2); font-size: 13.5px; }
@media (max-width: 1000px) {
  .pc-grid { grid-template-columns: 1fr; gap: 30px; }
  .pc-pop { margin-right: 0; }
}
@media (max-width: 680px) {
  .pc-r { grid-template-columns: 26px 112px minmax(0, 1fr); }
  .pc-r > span:nth-child(n+4) { display: none; }
  .pc-r > span:nth-child(3) { border-right: 0; }
  .pc-pop { width: auto; margin: -60px 8px 0; }
  .pc-shot { padding-top: 0; }
  .pc-key { position: relative; right: auto; top: auto; display: inline-flex; margin: 12px 0 0 8px; }
  .sm-cta .b { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .pc-caret { animation: none; } }

/* блок «Умный поиск»: три карточки — три колонки, на узких экранах одна */
.feats.feats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#vozmozhnosti h2 { text-wrap: balance; }
@media (max-width: 900px) { .feats.feats-3 { grid-template-columns: 1fr; } }

/* ===== сравнение цен и «Обо мне» v2 ===== */
.cost { margin: 0 0 22px; padding: 24px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.cost-head h3 { margin: 0 0 6px; font-size: clamp(20px, 2.2vw, 26px); }
.cost-head p { margin: 0 0 18px; color: var(--ink-2); max-width: 780px; }
.cost-rows { display: grid; gap: 10px; }
.cost-r { display: grid; grid-template-columns: 300px minmax(0, 1fr) 170px; align-items: center; gap: 16px; }
.cost-l { color: var(--ink); font-weight: 700; font-size: 15.5px; line-height: 1.3; }
.cost-l small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }
.cost-bar { height: 14px; border-radius: 999px; background: var(--tint); overflow: hidden; }
.cost-bar i { display: block; height: 100%; width: var(--w); min-width: 6px; border-radius: 999px; background: var(--blue); transition: width .6s ease; }
.cost-r > b { text-align: right; white-space: nowrap; font-size: 18px; color: var(--brand); font-variant-numeric: tabular-nums; }
.cost-r-them .cost-bar i { background: #9AA4B5; }
.cost-r-them > b { color: var(--ink-2); }
.cost-r-full .cost-bar i { background: var(--orange); }
.cost-r-free .cost-bar i { min-width: 0; }
.cost-r-free > b { color: var(--green); }
.cost-note { margin: 14px 0 0; color: var(--muted); font-size: 12.5px; }
.about-photo .quals { margin-top: 18px; }
.about-photo .qual { flex-basis: 100%; }
.about-ask { margin-top: 18px !important; padding: 12px 16px; border-left: 3px solid var(--blue); border-radius: 0 12px 12px 0; background: var(--blue-soft); color: var(--ink) !important; font-weight: 600; }
@media (max-width: 820px) {
  .cost { padding: 18px; }
  .cost-r { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .cost-bar { grid-column: 1 / -1; grid-row: 2; }
}

/* ===== цена на первом экране ===== */
.hero-price { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 0; padding: 0; font-size: 14.5px; color: var(--ink-2); }
.hero-price li { display: inline-flex; align-items: center; gap: 6px; }
.hero-price li::before { content: "✓"; color: var(--green); font-weight: 700; }
.hero-price b { color: var(--ink); }
.faq kbd { font: 600 12px/1 inherit; padding: 2px 5px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: var(--card); }
.plans .plan .plan-price { font-size: 30px; line-height: 1.2; letter-spacing: -.01em; }

/* ===== годовая подписка и контакты v3 ===== */
.cost-save { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--orange); color: #fff; font-style: normal; font-size: 12px; font-weight: 700; vertical-align: 2px; }
.cost-r-year > b { color: var(--orange); font-size: 22px; }
.cost-r-month .cost-l { font-weight: 600; color: var(--ink-2); }
.cost-r-month .cost-bar i { background: color-mix(in srgb, var(--orange) 45%, #fff); }
.plan-year { margin: -6px 0 14px; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--orange) 12%, transparent); font-size: 14px; color: var(--ink-2); }
.plan-year b { color: var(--ink); }
.contacts-note { margin: 0; font-size: 13.5px; color: var(--muted); max-width: 560px; }
.foot-c a small { display: block; font-size: 12.5px; color: var(--muted); }
@media (min-width: 761px) { .cost-r { grid-template-columns: 360px minmax(0, 1fr) 170px; } }

.hs-prices { display: flex; gap: 12px; margin: 10px 0 0; }
.hs-prices[hidden] { display: none; }
.hs-prices label { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--muted); font-size: 13px; }
.hs-prices select { width: auto; max-width: 330px; min-width: 0; height: 36px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); color: var(--ink); font: inherit; }
.hs-actions { display: inline-flex; gap: 14px; margin-left: auto; white-space: nowrap; }
.home-app-frame { display: block; width: 100%; height: min(1000px, 85vh); min-height: 640px; margin-top: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.home-add-note { margin-top: 10px; padding: 12px 16px; border-radius: 12px; background: var(--green-soft); color: var(--green); font-weight: 600; }
.sm-region-note, .sm-download { max-width: 1050px; margin: 14px auto 0; color: var(--ink-2); }
.sm-download a { font-weight: 700; }
.plan-terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 22px 0; }
.plan-terms > div { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.plan-terms p { margin: 6px 0 0; color: var(--ink-2); font-size: 13.5px; }
.plan-off { color: var(--muted); }
.pc-req { line-height: 1.6; }
@media (max-width: 760px) {
  .hs-prices { flex-direction: column; gap: 6px; }
  .hs-prices label, .hs-prices select { width: 100%; max-width: none; }
  .hs-actions { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; margin-left: auto; }
  .home-app-frame { height: 80vh; min-height: 560px; }
  .plan-terms { grid-template-columns: 1fr; }
}

.nm h1 { font-size: clamp(22px, 2.1vw, 30px); }
.nm-over { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; margin: 0 0 5px; color: var(--muted); font-size: 14px; }
.nm-code-title { color: var(--blue); font: 600 15px var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nm-copy { border: 0; padding: 2px 5px; background: transparent; color: var(--muted); cursor: pointer; font-size: 16px; }
.nm-copy:hover { color: var(--blue); }
.nc-calc { margin: 12px 0 16px; scroll-margin-top: 90px; }
.nc-controls { display: flex; flex-wrap: wrap; gap: 7px 10px; align-items: end; margin-bottom: 9px; }
.nc-controls > label { display: grid; gap: 3px; color: var(--ink-2); font-size: 12px; }
.nc-controls > label:first-child { flex: 1 1 190px; max-width: 240px; }
.nc-controls > label:nth-child(2) { flex: 1 1 245px; max-width: 330px; }
.nc-controls select, .nc-vol { height: 36px; min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font: inherit; font-size: 13px; }
.nc-controls select { width: 100%; padding: 0 7px; }
.nc-volume { flex: 0 0 130px; }
.nc-vol { display: flex; align-items: center; gap: 6px; padding: 0 8px; }
.nc-vol input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-variant-numeric: tabular-nums; }
#ncFactor { margin: 0 0 10px; white-space: nowrap; font-size: 12px; }
.nc-actions { display: flex; gap: 6px; margin-left: auto; }
.nc-actions .b { height: 36px; padding: 0 12px; font-size: 13px; white-space: nowrap; }
.nc-table { width: 100%; max-width: 100%; min-width: 0; overflow: hidden; contain: inline-size; }
.nc-scroll { width: 100%; max-width: 100%; overflow-x: auto; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--card); }
.nc-table table { width: 100%; min-width: 850px; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 12px; line-height: 1.25; font-variant-numeric: tabular-nums; }
.nc-table th { padding: 5px 6px; background: #EEF2F8; color: #3A4A66; border-right: 1px solid #DCE3EC; border-bottom: 1px solid var(--line-strong); font-weight: 600; text-align: left; }
.nc-table td { height: 30px; padding: 4px 6px; border-right: 1px solid #DCE3EC; border-bottom: 1px solid #DCE3EC; vertical-align: middle; overflow-wrap: anywhere; }
.nc-table th:first-child, .nc-table td:first-child { width: 145px; }
.nc-table th:nth-child(2), .nc-table td:nth-child(2) { width: auto; }
.nc-table th:nth-child(3), .nc-table td:nth-child(3) { width: 65px; }
.nc-table th:nth-child(4), .nc-table td:nth-child(4) { width: 80px; }
.nc-table th:nth-child(5), .nc-table td:nth-child(5) { width: 85px; }
.nc-table th:nth-child(6), .nc-table td:nth-child(6) { width: 100px; }
.nc-table th:nth-child(7), .nc-table td:nth-child(7) { width: 105px; }
.nc-table th:nth-child(n+4), .nc-table td:nth-child(n+4), .nc-n { text-align: right; white-space: nowrap; }
.nc-table .nc-pos td { background: #F7F9FC; font-weight: 700; }
.nc-table .nc-l td { background: #EEF3FE; }
.nc-table .nc-o td:nth-child(2) { padding-left: 18px; color: var(--ink-2); }
.nc-table .nc-a td, .nc-table .nc-p td { color: #C0392B; }
.nc-table .nc-selected td { color: var(--ink); }
.nc-table td small { display: block; color: var(--muted); font-size: 10.5px; }
.nc-un-pick { display: block; width: 100%; max-width: 100%; margin-top: 3px; padding: 2px; border: 1px solid var(--line); border-radius: 5px; background: var(--card); color: var(--ink); font: inherit; font-size: 11px; }
.nc-total td { background: #FFF9F0; }
.nc-total td:last-child { font-size: 13px; }
.nc-all td { background: #EEF2F8; font-weight: 700; }
#ncResult { margin: 6px 0; font-size: 13px; }
.nc-warning { margin: 6px 0; color: #9A4E00; font-size: 12px; }
.nm-related h2, .nm-queries h2 { margin-bottom: 7px; }
.nm-related .nm-sib li { padding: 6px 12px; }
.nm-more { margin-top: 7px; height: 32px; font-size: 13px; }
.price-zone-help { color: var(--muted); font-size: 12px; text-decoration: none; }
.price-zone-help:hover { color: var(--blue); text-decoration: underline; }
@media (min-width: 900px) { .nm-list-cols { columns: 2; column-gap: 34px; } .nm-list-cols li { break-inside: avoid; } }
@media (max-width: 850px) { .nc-actions { flex-basis: 100%; margin-left: 0; } .nc-controls price-zone-link { flex-basis: 100%; } }
@media (max-width: 480px) {
  .nm h1 { font-size: 21px; }
  .nm-over { font-size: 12px; }
  .nc-controls > label:first-child, .nc-controls > label:nth-child(2) { max-width: none; flex-basis: 100%; }
  .nc-volume { flex-basis: 120px; }
  .nc-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .nc-actions .b { padding: 0 8px; text-align: center; }
  .nc-table { width: 100%; max-width: 100%; contain: none; }
  .nc-scroll { overflow: visible; }
  .nc-table .nc-estimate { display: block; width: 100%; min-width: 0; table-layout: auto; }
  .nc-estimate thead { display: none; }
  .nc-estimate tbody, .nc-estimate tfoot { display: block; }
  .nc-estimate tbody tr { display: grid; grid-template-columns: 1fr 1fr; width: 100%; padding: 6px 8px; border-bottom: 1px solid var(--line); }
  .nc-estimate tbody td { display: block; width: auto !important; height: auto; padding: 2px 3px; border: 0; background: transparent; text-align: left !important; white-space: normal !important; }
  .nc-estimate tbody td:first-child, .nc-estimate tbody td:nth-child(2) { grid-column: 1 / -1; }
  .nc-estimate tbody td:first-child { position: static; font-weight: 600; box-shadow: none; }
  .nc-estimate tbody td:nth-child(3)::before { content: 'Ед.: '; color: var(--muted); }
  .nc-estimate tbody td:nth-child(4)::before { content: 'На ед.: '; color: var(--muted); }
  .nc-estimate tbody td:nth-child(5)::before { content: 'Всего: '; color: var(--muted); }
  .nc-estimate tbody td:nth-child(6)::before { content: 'Цена: '; color: var(--muted); }
  .nc-estimate tbody td:nth-child(7)::before { content: 'Сумма: '; color: var(--muted); }
  .nc-estimate tfoot tr { display: flex; width: 100%; justify-content: space-between; gap: 8px; padding: 5px 8px; }
  .nc-estimate tfoot td { display: block; width: auto !important; border: 0; padding: 0; white-space: normal !important; }
  .nc-estimate tfoot td:last-child { text-align: right; white-space: nowrap !important; }
}
.news-list { display: grid; gap: 14px; }
.news-item { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); scroll-margin-top: 90px; }
.news-item h2 { margin: 8px 0; font-size: 21px; }
.news-item p { margin: 0; color: var(--ink-2); }
.news-meta { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 13px; }
.news-label { padding: 3px 9px; border-radius: 999px; font-weight: 600; }
.news-site { background: var(--blue-soft); color: var(--blue); }
.news-app { background: var(--orange-soft); color: var(--orange); }
.news-base { background: var(--green-soft); color: var(--green); }
@media (max-width: 480px) {
  .h-in { gap: 8px; padding: 10px 12px; }
  .h-logo { gap: 6px; font-size: 18px; }
  .h-logo img { width: 30px; height: 30px; }
  .h-enter { height: 38px; padding: 0 11px; font-size: 13px; }
  .h-burger { width: 36px; height: 36px; padding: 9px 8px; }
}
