/* NXAI · каталог демо для адвокатов и юристов.
   Идея: «Реестр» — спокойный журнал по праву. Холодная светлая бумага, чернила цвета тёмной хвои,
   один акцент (малахит), линейка вместо декора, засечки для мысли, гротеск для действий, моно для номеров.
   Mobile-first. Без JS всё видно; анимации включаются только после .ml-ready (motion-lite). */

:root {
  --paper: #F5F6F2;
  --paper-2: #ECEFE9;
  --sheet: #FFFFFF;
  --ink: #14201C;
  --ink-2: #34423C;
  --muted: #5E6B65;
  --rule: #D6DBD3;
  --rule-2: #E5E8E1;
  --accent: #0B6E4F;
  --accent-2: #07553D;
  --wash: #E3EFE8;
  --wash-2: #CFE3D8;

  --serif: 'Source Serif 4', 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --gut: 16px;
  --max: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --lift: 0 34px 50px -38px rgba(20, 32, 28, .55);
}
@media (min-width: 720px) { :root { --gut: 28px; } }
@media (min-width: 1180px) { :root { --gut: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
a { color: inherit; }
::selection { background: var(--wash-2); color: var(--ink); }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.offer :focus-visible { outline-color: #fff; }

.skip { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 12px 16px; background: var(--ink); color: #fff; border-radius: 3px; font-weight: 500; text-decoration: none; transition: top .15s; }
.skip:focus { top: 12px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 3px;
  font: 500 15px/1.15 var(--sans); text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--accent); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-2); }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--accent-2); }
.btn--light:hover { background: var(--wash); }

/* ---------- N-Enterprise bar: visible link to the studio's main site ---------- */
.studio-bar { background: var(--ink); color: rgba(255, 255, 255, .82); font: 500 12.5px/1.25 var(--sans); }
.studio-bar__in { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; min-height: 34px; padding-block: 3px; }
.studio-bar__link { display: inline-flex; align-items: center; min-height: 28px; color: #fff; font-weight: 700; letter-spacing: .01em; text-decoration: none; }
.studio-bar__link::after { content: "\2197"; margin-left: 5px; font-weight: 500; opacity: .8; }
.studio-bar__link:hover, .studio-bar__link:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.studio-bar__note { opacity: .74; }

/* ---------- переключатель направлений ---------- */
.mast { background: var(--sheet); border-bottom: 1px solid var(--rule); }
.mast__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.niches { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.niche {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px 0 0; margin-right: 8px;
  font: 500 13px/1 var(--sans); color: var(--muted); text-decoration: none;
  box-shadow: inset 0 -2px 0 transparent; transition: color .2s, box-shadow .2s;
}
a.niche:hover { color: var(--ink); box-shadow: inset 0 -2px 0 var(--rule); }
.niche.is-current { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }
.niche.is-soon { color: #7B8680; cursor: default; }
.niche em { font: 500 10px/1 var(--mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; padding: 3px 6px; border: 1px solid var(--rule); border-radius: 2px; color: var(--muted); }
.mast__note { display: none; margin: 0; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
@media (min-width: 720px) { .niche { padding: 0 6px; margin-right: 14px; } }
@media (min-width: 960px) { .mast__note { display: block; } }

/* ---------- шапка ---------- */
.top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(245, 246, 242, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark { width: 28px; height: 28px; }
.logo__mark rect { fill: var(--accent); }
.logo__mark path { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.logo__name { font: 600 16px/1 var(--mono); letter-spacing: .06em; }
.logo__sub { display: none; font: 400 13px/1 var(--sans); color: var(--muted); padding-left: 10px; border-left: 1px solid var(--rule); }
@media (min-width: 480px) { .logo__sub { display: inline; } }
.secnav { display: none; }
@media (min-width: 1020px) {
  .secnav { display: flex; gap: 4px; }
  .secnav a { padding: 10px 12px; font-size: 14px; color: var(--ink-2); text-decoration: none; border-radius: 3px; transition: background-color .2s, color .2s; }
  .secnav a:hover { background: var(--wash); color: var(--accent-2); }
}
.top::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: 0 50%; pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .top::after { animation: nx-progress linear both; animation-timeline: scroll(root block); }
}
@keyframes nx-progress { to { transform: scaleX(1); } }

/* ---------- общие блоки секций ---------- */
.sec { padding: 64px 0; }
.sec--tight { padding-top: 16px; }
.sec--paper2 { background: var(--paper-2); }
@media (min-width: 900px) { .sec { padding: 104px 0; } .sec--tight { padding-top: 24px; } }

.sec-head { margin-bottom: 36px; }
.label {
  display: flex; align-items: center; gap: 12px; margin: 0 0 22px;
  font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.label__no { color: var(--accent); }
.ruler {
  flex: 1; min-width: 20px; height: 11px;
  background-image:
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, #8E9993 0 1px, transparent 1px 8px);
  background-size: 100% 11px, 100% 6px;
  background-position: left bottom, left bottom;
  background-repeat: no-repeat;
  opacity: .55;
}
.sec h2, .offer h2, .contact h2 {
  font: 400 clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem)/1.12 var(--serif);
  letter-spacing: -.015em; max-width: 21em; text-wrap: balance;
}
.sec h2 em, .contact h2 em { font-style: italic; color: var(--accent); }
.lead { margin-top: 18px; max-width: 62ch; font-size: 17px; line-height: 1.6; color: var(--ink-2); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: clip; padding: 40px 0 56px; border-bottom: 1px solid var(--rule); }
.hero::before {
  content: "§"; position: absolute; right: -3vw; top: -.12em; z-index: 0;
  font: 600 clamp(17rem, 44vw, 42rem)/1 var(--serif); color: var(--wash);
  pointer-events: none; user-select: none;
}
.hero__grid { position: relative; z-index: 1; display: grid; gap: 52px; }
@media (min-width: 960px) {
  .hero { padding: 72px 0 88px; }
  .hero__grid { grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr); gap: 72px; align-items: center; }
}
.kicker { display: flex; align-items: center; gap: 10px; font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.kicker__dot { width: 8px; height: 8px; background: var(--accent); }
.hero__title {
  margin: 22px 0 24px; font: 400 clamp(2.6rem, 1.45rem + 4.9vw, 4.7rem)/1.04 var(--serif);
  letter-spacing: -.022em; text-wrap: balance;
}
.hero__title em { font-style: italic; color: var(--accent); }
.hero__line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero__line > span { display: block; }
.hero__lead { max-width: 54ch; font-size: 18px; line-height: 1.6; color: var(--ink-2); }

.facts { display: grid; margin: 32px 0 0; border-top: 1px solid var(--ink); }
.fact { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.fact dt { font: 500 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fact dd { font: 400 1.7rem/1.1 var(--serif); letter-spacing: -.01em; text-align: right; }
@media (min-width: 640px) {
  .facts { display: flex; flex-wrap: wrap; }
  .fact { display: block; padding: 16px 28px 4px 0; margin-right: 28px; border-bottom: 0; border-right: 1px solid var(--rule); }
  .fact:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
  .fact dd { margin-top: 8px; text-align: left; font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* карточка «Блок Статус» */
.hero__visual { position: relative; isolation: isolate; width: 100%; max-width: 430px; justify-self: center; }
.sheet {
  position: relative; background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px;
  padding: 18px 18px 22px; box-shadow: var(--lift);
}
.sheet::before {
  content: ""; position: absolute; inset: 10px -10px -10px 10px; z-index: -1;
  background: var(--paper-2); border: 1px solid var(--rule); border-radius: 4px;
}
.sheet__top { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sheet__who { display: grid; grid-template-columns: 88px 1fr; gap: 16px; padding: 18px 0; align-items: center; }
.sheet__photo { width: 88px; height: 110px; object-fit: cover; object-position: 50% 20%; border-radius: 2px; background: var(--paper-2); }
.sheet__role { font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.sheet__name { margin-top: 8px; font: 600 1.55rem/1.1 var(--serif); letter-spacing: -.01em; }
.sheet__form { margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.sheet__rows { margin: 0; border-top: 1px solid var(--rule); }
.sheet__rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule-2); }
.sheet__rows dt { font-size: 13px; color: var(--muted); }
.sheet__rows dd { font: 500 13.5px/1.35 var(--sans); text-align: right; }
.sheet__btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; margin-top: 18px;
  background: var(--accent); color: #fff; border-radius: 3px; font: 500 14px/1 var(--sans);
}
.hero__visual figcaption { margin-top: 26px; font: 400 12px/1.4 var(--mono); color: var(--muted); letter-spacing: .02em; }

/* печать-штамп */
.seal { color: var(--accent); transform: rotate(-9deg); }
.seal svg { width: 100%; height: auto; overflow: visible; }
.seal__ring { font: 500 12.5px/1 var(--mono); fill: currentColor; letter-spacing: .06em; }
.seal__big { font: 600 46px/1 var(--serif); fill: currentColor; }
.seal__tick { stroke-dasharray: 64; stroke-dashoffset: 0; transition: stroke-dashoffset .7s .55s var(--ease); }
.seal--sheet { position: absolute; right: -8px; top: -42px; width: 100px; z-index: 2; }
.seal--sheet svg { background: radial-gradient(circle, var(--sheet) 0 61%, transparent 62%); border-radius: 50%; }
@media (min-width: 480px) { .seal--sheet { right: -22px; top: -46px; width: 108px; } }
@media (prefers-reduced-motion: no-preference) {
  .seal__ring { transform-box: view-box; transform-origin: 50% 50%; animation: nx-spin 90s linear infinite; }
}
@keyframes nx-spin { to { transform: rotate(360deg); } }

/* ---------- этика ---------- */
.ethics { background: var(--wash); border-bottom: 1px solid var(--wash-2); }
.ethics .label__no { color: var(--accent-2); }
.ethics .lead { color: var(--ink-2); }
.ethics__grid { display: grid; background: var(--sheet); border: 1px solid var(--wash-2); border-radius: 4px; box-shadow: var(--lift); }
.col { padding: 26px 20px 12px; }
.col + .col { border-top: 1px solid var(--rule); }
@media (min-width: 900px) {
  .ethics__grid { grid-template-columns: 1fr 1fr; }
  .col { padding: 40px 44px 24px; }
  .col + .col { border-top: 0; border-left: 1px solid var(--rule); }
}
.col__tag {
  display: inline-block; padding-bottom: 8px; margin-bottom: 4px; border-bottom: 2px solid var(--ink);
  font: 600 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
}
.col__tag--yes { border-bottom-color: var(--accent); color: var(--accent-2); }
.rules { list-style: none; margin: 0; padding: 0; }
.rule { display: grid; grid-template-columns: 28px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--rule-2); }
.rule:first-child { border-top: 0; }
.rule h3 { font: 600 1.2rem/1.25 var(--serif); }
.rule p { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; margin-top: 1px; }
.mark .i { width: 16px; height: 16px; stroke-width: 2.4; }
.mark--no { border: 1.5px solid var(--ink-2); color: var(--ink-2); }
.mark--yes { background: var(--accent); color: #fff; }
.strike { background: linear-gradient(var(--ink), var(--ink)) no-repeat 0 57% / 100% 2px; transition: background-size .8s .3s cubic-bezier(.7, 0, .2, 1); }
.ml-ready .rule:not(.is-in) .strike { background-size: 0 2px; }
.art { display: inline-block; margin-top: 10px; padding: 4px 8px; border: 1px solid var(--rule); border-radius: 2px; font: 500 11px/1 var(--mono); letter-spacing: .06em; color: var(--muted); }
.ethics__foot { display: grid; gap: 14px; margin-top: 32px; font-size: 16px; color: var(--ink); }
@media (min-width: 900px) { .ethics__foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; margin-top: 40px; } }
.ethics__foot b { font-weight: 600; }
.ethics__note { font-size: 14px; line-height: 1.6; color: var(--muted); }
.ethics__foot p { max-width: 62ch; }

/* ---------- фильтры ---------- */
.fbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 10px 0; border-top: 1px solid var(--ink); }
.fbar__count { flex: 1 1 auto; font: 600 1.2rem/1.2 var(--serif); }
.fbar__toggle, .fbar__reset { min-height: 44px; border: 0; background: none; font: 500 14px/1 var(--sans); cursor: pointer; }
.fbar__toggle { display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid var(--ink); border-radius: 3px; color: var(--ink); }
.fbar__toggle[aria-expanded="true"] { background: var(--ink); color: #fff; }
.fbar__badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: #fff; font: 500 11px/1 var(--mono); }
.fbar__reset { padding: 0 4px; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.fbar__reset:hover { color: var(--accent-2); }
@media (min-width: 900px) { .fbar__toggle { display: none; } }

.fpanel { background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px; margin-bottom: 28px; }
@media (max-width: 899.98px) { .fpanel[data-open="false"] { display: none; } }
.fgroup { padding: 16px; border-top: 1px solid var(--rule-2); }
.fgroup:first-child { border-top: 0; }
.fgroup__label { margin-bottom: 10px; font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fgroup__hint { margin-top: 12px; max-width: 74ch; font-size: 13px; line-height: 1.55; color: var(--muted); }
@media (min-width: 900px) {
  .fgroup { display: grid; grid-template-columns: 132px 1fr; gap: 0 16px; padding: 16px 22px; align-items: start; }
  .fgroup__label { margin: 0; padding-top: 13px; }
  .fgroup__hint { grid-column: 2; }
}
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  background: var(--sheet); border: 1px solid var(--rule); border-radius: 3px;
  font: 500 14px/1.1 var(--sans); color: var(--ink); cursor: pointer; text-align: left;
  transition: background-color .18s, border-color .18s, color .18s, opacity .18s;
}
@media (min-width: 900px) { .chip { min-height: 40px; } }
.chip:hover { border-color: var(--ink); }
.chip__n { font: 500 11px/1 var(--mono); color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip[aria-pressed="true"]::before { content: ""; width: 5px; height: 9px; margin: -2px 2px 0 0; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.chip[aria-pressed="true"] .chip__n { color: rgba(255, 255, 255, .82); }
.chip.is-zero { opacity: .45; border-style: dashed; }

/* ---------- карточки демо ---------- */
.demos { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 1000px) { .demos { grid-template-columns: 1fr 1fr; gap: 20px; } }

.card {
  position: relative; display: grid; height: 100%;
  grid-template-columns: 92px minmax(0, 1fr); grid-template-areas: "fig head" "tool tool" "foot foot"; gap: 0 16px;
  padding: 16px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px;
  transition: border-color .2s, box-shadow .3s;
}
.card:hover { border-color: var(--ink); box-shadow: var(--lift); }
.card:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.card__fig { grid-area: fig; align-self: start; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); border-radius: 2px; }
.card__fig img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: transform .8s var(--ease); }
.card:hover .card__fig img { transform: scale(1.045); }
.card__head { grid-area: head; min-width: 0; }
.card__pack { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 10px; }
.card__packname { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.card__price { margin-left: auto; font: 600 14px/1 var(--sans); color: var(--accent-2); white-space: nowrap; }
.card__brand { font: 600 1.15rem/1.22 var(--serif); letter-spacing: -.005em; }
.card__practice { margin-top: 6px; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.card__city { margin-top: 8px; font: 400 12px/1.4 var(--mono); color: var(--muted); }
.card__tool { grid-area: tool; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule-2); font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.card__toollabel { display: block; margin-bottom: 4px; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); }
.card__foot { grid-area: foot; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; align-self: end; }
.card__style { font: 400 12px/1.3 var(--mono); color: var(--muted); }
.card__go {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--ink); border-radius: 3px; font: 500 14px/1 var(--sans); color: var(--ink); text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
.card__go::after { content: ""; position: absolute; inset: 0; }
.card__go:focus-visible { outline: none; }
.card:hover .card__go, .card__go:focus-visible { background: var(--accent); border-color: var(--accent); color: #fff; }
.card__go .i { transition: transform .25s var(--ease); }
.card:hover .card__go .i { transform: translateX(3px); }
@media (min-width: 640px) {
  .card { grid-template-columns: 204px minmax(0, 1fr); grid-template-areas: "fig head" "fig tool" "fig foot"; grid-template-rows: auto 1fr auto; gap: 0 24px; padding: 20px; }
  .card__fig { align-self: stretch; aspect-ratio: auto; min-height: 255px; }
  .card__brand { font-size: 1.3rem; }
}

.empty { padding: 36px 20px; text-align: center; background: var(--sheet); border: 1px dashed var(--rule); border-radius: 4px; color: var(--ink-2); }
.empty__t { margin-bottom: 6px; font: 600 1.3rem/1.2 var(--serif); color: var(--ink); }
.empty .btn { margin-top: 18px; }

/* индикатор пакета: 1–4 деления */
.tier { --n: 1; position: relative; display: inline-block; width: 30px; height: 6px; flex: none; background: repeating-linear-gradient(90deg, var(--rule) 0 6px, transparent 6px 8px); }
.tier::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--n) * 8px - 2px); background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 8px); }
.tier[data-n="2"] { --n: 2; } .tier[data-n="3"] { --n: 3; } .tier[data-n="4"] { --n: 4; }

/* ---------- как это работает ---------- */
.steps { list-style: none; margin: 0; display: grid; gap: 0; counter-reset: s; }
.step { padding: 22px 0 26px; border-top: 2px solid var(--ink); }
.step__no { font: 500 13px/1 var(--mono); letter-spacing: .1em; color: var(--accent); }
.step h3 { margin-top: 14px; font: 600 1.35rem/1.2 var(--serif); }
.step p { margin-top: 10px; max-width: 34ch; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); column-gap: 28px; } }

/* ---------- оффер ---------- */
.offer { position: relative; overflow: clip; background: var(--accent); color: #fff; margin-top: 56px; }
.offer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 11px; opacity: .45;
  background-image:
    repeating-linear-gradient(90deg, #fff 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, #fff 0 1px, transparent 1px 8px);
  background-size: 100% 11px, 100% 6px; background-position: left top, left top; background-repeat: no-repeat;
}
.offer__in { position: relative; display: grid; gap: 28px; padding-block: 56px 60px; }
.offer__tag { font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.offer h2 { margin: 16px 0 30px; color: #fff; font-size: clamp(1.7rem, 1.05rem + 2.4vw, 2.8rem); max-width: 25em; }
.offer__fine { margin: -14px 0 28px; max-width: 36em; font-size: 1rem; line-height: 1.55; color: rgba(255, 255, 255, .92); }
.offer__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.offer__phone { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; color: #fff; font: 500 19px/1 var(--sans); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .5); text-underline-offset: 5px; }
.offer__phone:hover { text-decoration-color: #fff; }
.seal--offer { order: -1; width: 92px; color: rgba(255, 255, 255, .92); }
@media (min-width: 900px) {
  .offer__in { grid-template-columns: minmax(0, 1fr) 220px; align-items: center; gap: 56px; padding-block: 92px; }
  .seal--offer { order: 0; width: 210px; justify-self: end; }
}

/* ---------- пакеты ---------- */
.packs { display: grid; gap: 22px; align-items: stretch; }
@media (min-width: 720px) { .packs { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1180px) { .packs { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.pack { position: relative; display: flex; flex-direction: column; padding: 26px 22px 22px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px; }
.pack--rec { border-color: var(--accent); box-shadow: inset 0 3px 0 var(--accent), var(--lift); }
.pack__flag { position: absolute; top: 0; right: 18px; transform: translateY(-50%); padding: 7px 10px; background: var(--accent); color: #fff; border-radius: 2px; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.pack__tier { display: flex; align-items: center; gap: 10px; font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pack__name { margin-top: 14px; font: 600 1.8rem/1.1 var(--serif); letter-spacing: -.01em; }
.pack__price { margin-top: 14px; font: 600 2.15rem/1 var(--serif); letter-spacing: -.015em; white-space: nowrap; }
.pack__price small { margin-right: 4px; font: 400 1rem/1 var(--sans); letter-spacing: 0; color: var(--muted); }
.pack__price--ask { font-size: 1.55rem; padding-top: 6px; }
.pack__meta { margin-top: 10px; font: 400 12px/1.4 var(--mono); color: var(--muted); }
.pack__lead { margin-top: 14px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.ticks { display: grid; gap: 10px; list-style: none; margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid var(--rule-2); font-size: 14.5px; line-height: 1.5; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 17px; height: 17px; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5 9.5 17 19 7' fill='none' stroke='%23000' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5 9.5 17 19 7' fill='none' stroke='%23000' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ticks li.is-all { font-weight: 500; }
.pack__ex { margin-top: auto; padding-top: 24px; }
.pack__exh { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ex { display: grid; gap: 6px; list-style: none; margin: 12px 0 0; padding: 0; }
.ex__a { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; padding: 6px; margin: 0 -6px; border-radius: 3px; text-decoration: none; transition: background-color .2s; }
.ex__a:hover { background: var(--paper); }
.ex__a img { width: 40px; height: 50px; object-fit: cover; object-position: 50% 22%; border-radius: 2px; background: var(--paper-2); }
.ex__t b { display: block; font: 500 13.5px/1.25 var(--sans); }
.ex__t i { display: block; margin-top: 3px; font: 400 11.5px/1.3 var(--mono); font-style: normal; color: var(--muted); }
.pack__go { width: 100%; margin-top: 18px; }

/* ---------- сравнение ---------- */
.cmp { position: relative; }
.cmp__scroll { position: relative; overflow-x: auto; background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px; -webkit-overflow-scrolling: touch; }
.cmp__table { width: 100%; min-width: 780px; border-collapse: separate; border-spacing: 0; font-size: 14px; line-height: 1.45; }
.cmp__table th, .cmp__table td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule-2); }
.cmp__table thead th { padding-block: 16px; background: var(--paper-2); border-bottom: 1px solid var(--ink); font: 600 1.1rem/1.2 var(--serif); }
.cmp__table tbody th { position: sticky; left: 0; z-index: 1; min-width: 132px; max-width: 220px; background: var(--sheet); font-weight: 500; color: var(--ink-2); box-shadow: 1px 0 0 var(--rule-2); }
.cmp__table thead th:first-child { position: sticky; left: 0; z-index: 3; }
.cmp__table tbody tr:last-child th, .cmp__table tbody tr:last-child td { border-bottom: 0; }
.cmp__table .is-rec { background: var(--wash); }
.cmp__table thead .is-rec { background: var(--wash-2); color: var(--accent-2); }
.cmp__table td { white-space: normal; }
.cmp__table .yes { width: 19px; height: 19px; stroke: var(--accent); stroke-width: 2.6; }
.cmp__table .no { color: #AEB6B0; }
.cmp__table tbody th { font-size: 13.5px; }
@media (min-width: 640px) { .cmp__table tbody th { min-width: 170px; font-size: 14px; } }
.cmp__hint { margin-top: 10px; font: 400 12px/1.3 var(--mono); color: var(--muted); }
@media (min-width: 860px) { .cmp__hint { display: none; } }

/* ---------- обслуживание ---------- */
.care { display: grid; gap: 22px; align-items: stretch; }
@media (min-width: 900px) { .care { grid-template-columns: repeat(3, 1fr); } }
.plan { position: relative; display: flex; flex-direction: column; padding: 26px 22px 24px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px; }
.plan--rec { border-color: var(--accent); box-shadow: inset 0 3px 0 var(--accent); }
.plan__tag { position: absolute; top: 0; right: 18px; transform: translateY(-50%); padding: 7px 10px; background: var(--accent); color: #fff; border-radius: 2px; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.plan__name { font: 600 1.6rem/1.1 var(--serif); }
.plan__price { margin-top: 12px; font: 600 2rem/1 var(--serif); letter-spacing: -.01em; white-space: nowrap; }
.plan__price small { margin-right: 4px; font: 400 1rem/1 var(--sans); color: var(--muted); }
.plan__price span { margin-left: 2px; font: 400 .95rem/1 var(--sans); color: var(--muted); }
.plan__lead { margin-top: 12px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.plan > .ticks { margin-bottom: 18px; }
.plan__pre { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--rule-2); font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.care--pay { margin-bottom: 44px; }
@media (min-width: 720px) { .care--pay { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .care:not(.care--pay) .plan__lead { min-height: 3.1em; } }
.care__note { display: flex; align-items: flex-start; gap: 12px; margin-top: 22px; padding: 16px 20px; background: var(--wash); border: 1px solid var(--wash-2); border-left: 3px solid var(--accent); border-radius: 2px; font-size: 15px; line-height: 1.5; color: var(--ink); }
.care__note--top { margin: 0 0 30px; }
.care__note .i { margin-top: 2px; width: 18px; height: 18px; color: var(--accent); stroke-width: 2.4; }

.bots { display: grid; gap: 20px; margin-top: 28px; padding: 24px 22px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px; }
.bots__head h3 { font: 600 1.4rem/1.2 var(--serif); }
.bots__head p { margin-top: 8px; max-width: 60ch; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.bots__list { list-style: none; margin: 0; }
.bots__list li { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid var(--rule-2); }
.bots__name { font: 600 1.05rem/1.2 var(--serif); }
.bots__price { font: 600 15px/1.2 var(--sans); color: var(--accent-2); }
.bots__price small { display: block; margin-top: 4px; font: 400 13.5px/1.3 var(--sans); color: var(--muted); }
.bots__desc { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.bots__pre { margin-top: 2px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
@media (min-width: 900px) {
  .bots { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; padding: 32px 36px; }
  .bots__list li { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; align-items: baseline; }
  .bots__price { grid-column: 2; grid-row: 1; text-align: right; }
  .bots__desc { grid-column: 1 / -1; max-width: 58ch; }
  .bots__pre { grid-column: 1 / -1; }
  .bots__list li:first-child { border-top: 0; padding-top: 0; }
}

/* ---------- условия ---------- */
.trust { display: grid; gap: 0; list-style: none; margin: 0; }
.trust li { padding: 22px 24px 26px 0; border-top: 2px solid var(--ink); }
.trust__no { font: 500 13px/1 var(--mono); letter-spacing: .1em; color: var(--accent); }
.trust h3 { margin-top: 14px; font: 600 1.25rem/1.25 var(--serif); }
.trust p { margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); max-width: 36ch; }
@media (min-width: 640px) { .trust { grid-template-columns: repeat(2, 1fr); column-gap: 28px; } }
@media (min-width: 1000px) { .trust { grid-template-columns: repeat(3, 1fr); column-gap: 32px; } }

/* ---------- контакты ---------- */
.contact__card { position: relative; padding: 36px 22px 40px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px; box-shadow: var(--lift); }
.contact__card .label { max-width: 360px; }
.contact__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 30px; }
.contact__phone { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; font: 400 1.6rem/1 var(--serif); text-decoration: none; border-bottom: 1px solid var(--rule); }
.contact__phone:hover { border-color: var(--ink); }
@media (min-width: 900px) { .contact__card { padding: 64px 64px 68px; } }

/* ---------- подвал ---------- */
.foot { padding: 36px 0 52px; background: var(--paper-2); border-top: 1px solid var(--rule); font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.foot__in { display: grid; gap: 10px; }
.foot__brand { color: var(--ink); }
.foot .logo__name { font-size: 14px; }
.foot a { text-underline-offset: 3px; }
.foot__legal { max-width: 78ch; }

/* ---------- движение (поверх motion-lite) ---------- */
.ml-ready [data-reveal="rise"]:not(.is-in) { transform: translate3d(0, 108%, 0); opacity: 1 !important; }
.ml-ready [data-reveal="rise"] { transition: transform 1s var(--ease); }
.ml-ready [data-reveal="stamp"]:not(.is-in) { transform: rotate(-24deg) scale(1.55); opacity: 0; }
.ml-ready [data-reveal="stamp"] { transition: transform .75s cubic-bezier(.3, 1.4, .5, 1), opacity .35s ease; }
.ml-ready .seal:not(.is-in) .seal__tick { stroke-dashoffset: 64; }
.ml-ready .demo[data-reveal] { will-change: auto; }

@media (prefers-reduced-motion: no-preference) {
  ::view-transition-group(*) { animation-duration: .32s; animation-timing-function: var(--ease); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .top::after { display: none; }
}

/* --- «Хочу такой» на карточках, переключатель направлений (ночь 2026-10-17) --- */
.card__foot { flex-wrap: wrap; }
.card__want { position: relative; z-index: 2; order: 3; flex: 1 0 100%; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font: 500 14px/1.2 var(--sans); color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.card__want:hover { color: var(--accent-2); }
