/* NXAI · каталог демо для ателье.
   Образ: книга образцов и книга заказов — бумага, тушь, чернильная печать, ткань.
   Mobile-first. Цвета — токены ниже. */

:root {
  --paper: #F3EEE4;
  --paper-2: #EAE3D6;
  --sheet: #FBF9F4;
  --ink: #1C1A17;
  --ink-2: #46413A;
  --muted: #6A6258;
  --rule: #D5CBB9;
  --rule-2: #E3DBCC;
  --blue: #2F3F94;
  --blue-2: #24317A;
  --blue-wash: #E8E9F1;

  --serif: 'Literata', Georgia, 'Times New Roman', serif;
  --sans: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'PT Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --gut: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-lift: 0 26px 44px -30px rgba(28, 26, 23, .5);
}
@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: 124px; }
@media (min-width: 900px) { html { scroll-padding-top: 84px; } }
body {
  margin: 0;
  background-color: var(--paper);
  /* едва заметное зерно бумаги */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .11 0 0 0 0 .1 0 0 0 0 .08 .07 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  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; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gut); }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nowrap { white-space: nowrap; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--sheet); padding: 10px 14px; border-radius: 2px; text-decoration: none; font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 2px;
  font: 600 15px/1.1 var(--sans); letter-spacing: .005em;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.btn .i { width: 18px; height: 18px; }
.btn--ink { background: var(--ink); color: var(--sheet); }
.btn--ink:hover { background: var(--blue); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-2); }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: var(--sheet); }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 14px; gap: 8px; }
.btn--lg { min-height: 58px; padding: 0 28px; font-size: 16px; }
.btn--ink .i, .btn--blue .i { stroke: currentColor; }

/* ---------- N-Enterprise bar: visible link to the studio's main site ---------- */
.studio-bar { background: var(--ink); color: rgba(251, 249, 244, .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; }

/* ---------- шапка ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 238, 228, .9);
  -webkit-backdrop-filter: saturate(1.1) blur(10px);
  backdrop-filter: saturate(1.1) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .3s ease;
}
.top.is-scrolled { border-bottom-color: var(--rule); }
.top__in { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 16px; padding-block: 10px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; min-width: 0; }
.logo__mark { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; }
.logo__mark use { stroke: inherit; }
.logo__name { font: 700 22px/1 var(--serif); letter-spacing: .04em; }
.logo__sub { font: 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; padding-left: 9px; border-left: 1px solid var(--rule); }
.top__cta { grid-column: 2; grid-row: 1; }
.niches {
  grid-column: 1 / -1; grid-row: 2;
  display: flex; gap: 3px; padding: 3px;
  background: var(--paper-2); border: 1px solid var(--rule); border-radius: 3px;
}
.niche {
  flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 36px; padding: 0 12px; border-radius: 2px;
  font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}
a.niche:hover { color: var(--ink); background: rgba(251, 249, 244, .6); }
.niche.is-current { background: var(--sheet); color: var(--ink); box-shadow: 0 1px 0 rgba(28, 26, 23, .08), 0 0 0 1px var(--rule); }
.niche.is-soon { color: var(--muted); cursor: not-allowed; }
.niche.is-soon em { font: 10.5px/1 var(--mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; padding: 3px 5px 2px; border: 1px dashed var(--rule); border-radius: 2px; }
.secnav { display: none; }
@media (max-width: 400px) {
  .logo__sub { display: none; }
}
/* телефон: пять разделов переносятся во вторую строку — «скоро» встаёт под «Бухгалтеры» */
@media (max-width: 519px) {
  .niches { flex-wrap: wrap; }
  .niche { padding: 0 6px; font-size: 13px; }
  .niche.is-soon { flex-direction: column; gap: 3px; line-height: 1; }
  .niche.is-soon em { font-size: 9px; padding: 2px 4px 1px; }
}
/* очень узкий экран: чуть плотнее */
@media (max-width: 359px) {
  .niche { padding: 0 5px; font-size: 12.5px; }
}
@media (min-width: 900px) {
  .top__in { grid-template-columns: auto auto 1fr auto; gap: 24px; }
  .niches { grid-column: 2; grid-row: 1; }
  .niche { flex: 0 0 auto; }
  .top__cta { grid-column: 4; }
}
/* средние экраны: подпись у логотипа убираем, чтобы переключатель и меню помещались */
@media (min-width: 900px) and (max-width: 1299px) {
  .logo__sub { display: none; }
}
@media (min-width: 1180px) {
  .secnav { display: flex; grid-column: 3; justify-self: end; gap: 22px; }
  .secnav a { font-size: 14px; color: var(--ink-2); text-decoration: none; padding-block: 6px; background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease), color .2s; }
  .secnav a:hover { color: var(--ink); background-size: 100% 1px; }
}

/* ---------- общие заголовки разделов ---------- */
.kicker, .sheet-no { font: 12px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 12px; }
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }
.sheet-no b { font-weight: 400; color: var(--blue); white-space: nowrap; }
.sheet-no { white-space: nowrap; }
.sheet-no::after { content: ""; flex: 0 1 120px; height: 1px; background: var(--rule); }
.sec { padding-block: 72px; }
@media (min-width: 900px) { .sec { padding-block: 112px; } }
.sec--sheet { background: var(--sheet); border-block: 1px solid var(--rule-2); }
.sec--paper2 { background: var(--paper-2); }
.sec-head { display: grid; gap: 16px; max-width: 860px; margin-bottom: 36px; }
@media (min-width: 900px) { .sec-head { margin-bottom: 52px; } }
h2 { font: 500 clamp(38px, 6.2vw, 72px)/.98 var(--serif); letter-spacing: -.015em; text-wrap: balance; }
h2 em, .hero__title em, .offer__text em, .roi em { font-style: italic; color: var(--blue); }
.lead { font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 40em; }
@media (min-width: 900px) { .lead { font-size: 18.5px; } }

/* ---------- первый экран ---------- */
.hero { position: relative; padding-block: 32px 56px; overflow: clip; }
.hero__grid { display: grid; gap: 28px; }
.hero__title { margin-top: 18px; font: 500 clamp(60px, 15vw, 150px)/.84 var(--serif); letter-spacing: -.025em; }
.hero__line { display: block; overflow: hidden; padding: 0 .12em .14em 0; margin-bottom: -.14em; }
.hero__line > span { display: inline-block; }
.ml-ready [data-reveal="rise"] { transition-duration: .9s, 1.1s; }
.ml-ready [data-reveal="rise"]:not(.is-in) { transform: translate3d(0, 102%, 0); }
.hero__title em { display: inline-block; padding-right: .06em; }
.hero__lead { margin-top: 22px; max-width: 30em; font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.facts { margin-top: 28px; display: grid; border-top: 1px solid var(--ink); }
.fact { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.fact dt { font: 12px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: right; }
.fact dd { font: 600 26px/1.05 var(--serif); white-space: nowrap; }
.hero__actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero__actions .btn { flex: 1 1 220px; }
@media (min-width: 560px) {
  .facts { grid-template-columns: minmax(0, .95fr) minmax(0, .8fr) minmax(0, 1.25fr); border-bottom: 1px solid var(--rule); }
  .fact { flex-direction: column-reverse; justify-content: flex-start; align-items: flex-start; gap: 6px; padding: 14px 18px 16px 0; border-bottom: 0; }
  .fact + .fact { padding-left: 18px; border-left: 1px solid var(--rule); }
  .fact dt { text-align: left; }
  .fact dd { font-size: clamp(23px, 2.3vw, 31px); }
  .hero__actions .btn { flex: 0 0 auto; }
}
@media (min-width: 1000px) {
  .hero { padding-block: 40px 72px; }
  .hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 32px; }
}

/* веер образцов */
.hero__visual { position: relative; height: clamp(360px, 92vw, 470px); display: grid; place-items: end center; }
@media (min-width: 1000px) { .hero__visual { height: 600px; } }
.fan { --cw: clamp(156px, 42vw, 220px); --spread: 9deg; position: relative; width: var(--cw); aspect-ratio: 4 / 5.85; margin-bottom: 48px; }
@media (min-width: 560px) { .fan { --spread: 12deg; } }
@media (min-width: 1000px) { .fan { --cw: clamp(200px, 19vw, 250px); --spread: 12deg; margin-bottom: 70px; } }
.fan__card {
  position: absolute; inset: 0; margin: 0;
  display: flex; flex-direction: column;
  padding: 8px 8px 0; background: var(--sheet);
  transform-origin: 50% 112%;
  transform: rotate(calc(var(--i) * var(--spread)));
  z-index: calc(10 - var(--a));
  filter: drop-shadow(0 1px 1px rgba(28, 26, 23, .14)) drop-shadow(0 18px 22px rgba(28, 26, 23, .16));
  transition: transform 1.3s var(--ease);
}
.fan__card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper-2); }
.fan__card figcaption { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 2px; font: 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.fan__card figcaption span { color: var(--blue); }
/* зубчатый край, как у образца ткани после фестонных ножниц */
.fan__card::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 6px; background: conic-gradient(from -45deg at bottom, var(--sheet) 90deg, #0000 0) 50% 0 / 12px 100%; }
.fan__rivet { position: absolute; left: 50%; top: 112%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #8C8577, #3B3731 70%); box-shadow: 0 1px 2px rgba(0, 0, 0, .3); z-index: 20; }
.hero__visual:hover .fan__card { transform: rotate(calc(var(--i) * (var(--spread) + 2deg))); }
.js .fan:not(.is-open) .fan__card { transform: rotate(calc(var(--i) * 1.2deg)); }

/* чернильная печать */
.stamp { position: absolute; right: 2%; top: 4%; width: clamp(108px, 28vw, 150px); color: var(--blue); transform: rotate(-14deg); mix-blend-mode: multiply; opacity: .9; z-index: 30; }
.stamp svg { width: 100%; height: auto; overflow: visible; }
.stamp__ring { font: 12.5px var(--mono); letter-spacing: 1px; fill: currentColor; }
.stamp__big { font: 600 34px var(--serif); fill: currentColor; }
.ml-ready .stamp:not(.is-in) { transform: rotate(-34deg) scale(1.5); }
@media (min-width: 1000px) { .stamp { right: 6%; top: 8%; } }

/* бегущая строка типов ателье */
.strip { border-block: 1px solid var(--rule); background: var(--sheet); overflow: hidden; }
.strip__run { --ml-gap: 0px; --ml-speed: 46s; display: flex; align-items: center; gap: 0; padding-block: 14px; white-space: nowrap; }
.strip__run .ml-marquee__track { align-items: center; }
.strip span { font: italic 500 clamp(24px, 3.4vw, 36px)/1 var(--serif); padding-inline: 22px; }
.strip .i { width: 14px; height: 14px; color: var(--blue); stroke-width: 2; }

/* ---------- фильтры ---------- */
.filters { position: relative; display: grid; gap: 16px; padding: 16px; margin-bottom: 32px; background: var(--sheet); border: 1px solid var(--rule); }
.filters::before { content: ""; position: absolute; inset: 6px; border: 1px dashed var(--rule-2); pointer-events: none; }
.fgroup { position: relative; display: grid; gap: 8px; }
.fgroup__label { font: 11.5px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 6px 11px 6px 6px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 3px;
  font: 500 14px/1.2 var(--sans); color: var(--ink); text-align: left;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, opacity .2s ease, transform .2s var(--ease);
}
.chip:hover { border-color: var(--ink-2); }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--sheet); }
.chip__sw { position: relative; width: 28px; height: 28px; flex: none; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(28, 26, 23, .16); }
/* правый край образца — зубчиками, как после фестонных ножниц */
.chip__sw {
  --z: 6px;
  -webkit-mask: linear-gradient(#000 0 0) left / calc(100% - var(--z)) 100% no-repeat, conic-gradient(from -135deg at right, #0000, #000 1deg 89deg, #0000 90deg) right / var(--z) var(--z) repeat-y;
  mask: linear-gradient(#000 0 0) left / calc(100% - var(--z)) 100% no-repeat, conic-gradient(from -135deg at right, #0000, #000 1deg 89deg, #0000 90deg) right / var(--z) var(--z) repeat-y;
}
.chip__n { min-width: 1.4em; font: 11.5px/1 var(--mono); color: var(--muted); text-align: right; }
.chip[aria-pressed="true"] .chip__n { color: rgba(251, 249, 244, .65); }
.chip.is-zero { opacity: .42; }
.fbar { position: relative; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding-top: 12px; border-top: 1px solid var(--rule-2); }
.fbar__count { font: 13px/1.3 var(--mono); letter-spacing: .04em; color: var(--ink-2); }
.fbar__reset { appearance: none; background: none; border: 0; padding: 6px 0; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--blue); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.fbar__reset:hover { color: var(--ink); }
/* на телефоне каждая группа — одна строка, листается пальцем */
@media (max-width: 619px) {
  .filters { gap: 12px; }
  .chips {
    flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
    margin-inline: -16px; padding: 2px 16px 4px; scroll-padding-inline: 16px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 30px), transparent);
    mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 30px), transparent);
  }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; white-space: nowrap; }
}
@media (min-width: 900px) {
  .filters { padding: 22px 24px; gap: 14px; }
  .fgroup { grid-template-columns: 120px 1fr; align-items: start; }
  .fgroup__label { padding-top: 13px; }
}

/* ткани-образцы для чипов */
.sw-start { background-color: #E7DECB; background-image: repeating-linear-gradient(0deg, rgba(60, 45, 25, .1) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(60, 45, 25, .08) 0 1px, transparent 1px 3px); }
.sw-atelier { background-color: #8A6A4C; background-image: radial-gradient(rgba(255, 240, 210, .35) 1px, transparent 1.2px), radial-gradient(rgba(30, 20, 10, .35) 1px, transparent 1.2px); background-size: 5px 5px, 7px 7px; background-position: 0 0, 2px 3px; }
.sw-premium { background: radial-gradient(120% 90% at 30% 20%, #8C3445, #4E1824 70%); }
.sw-individual { background-color: #C6A35C; background-image: radial-gradient(circle at 50% 50%, transparent 3px, rgba(110, 75, 20, .45) 3.5px 4.3px, transparent 4.8px), linear-gradient(45deg, rgba(255, 255, 255, .18), transparent 60%); background-size: 10px 10px, 100% 100%; }
.sw-remont { background-color: #3F5D84; background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .16) 0 1.5px, transparent 1.5px 4px); }
.sw-muzh { background-color: #1F2A44; background-image: repeating-linear-gradient(90deg, transparent 0 5px, rgba(220, 225, 235, .55) 5px 6px); }
.sw-zhen { background: linear-gradient(125deg, #0E5A4B 10%, #2F8A72 45%, #0E5A4B 75%); }
.sw-svadba { background-color: #F7F2E8; background-image: radial-gradient(circle, rgba(150, 130, 100, .35) 1.2px, transparent 1.6px), radial-gradient(circle, rgba(150, 130, 100, .2) 2.4px, transparent 2.8px); background-size: 6px 6px, 12px 12px; background-position: 0 0, 3px 3px; }
.sw-verh { background-color: #A8835A; background-image: repeating-linear-gradient(60deg, rgba(60, 40, 20, .28) 0 2px, transparent 2px 5px), repeating-linear-gradient(-60deg, rgba(255, 235, 200, .18) 0 2px, transparent 2px 5px); background-size: 100% 50%; background-repeat: repeat-x; background-position: 0 0, 0 100%; }
.sw-scena { background-color: #B3302A; background-image: radial-gradient(circle, rgba(255, 220, 200, .75) 1px, transparent 1.6px), radial-gradient(circle, rgba(80, 0, 0, .4) 1.4px, transparent 2px); background-size: 5px 5px, 8px 8px; background-position: 0 0, 2px 1px; }
.sw-uniform { background-color: #2E5B48; background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .1) 0 1px, transparent 1px 3px); }
.sw-rubashki { background-color: #D3DEEC; background-image: repeating-linear-gradient(90deg, transparent 0 3px, rgba(47, 74, 122, .45) 3px 4px, transparent 4px 7px); }
.sw-workroom { background: linear-gradient(90deg, #F2EFE8 0 40%, #1C2541 40% 75%, #B5392C 75%); }
.sw-cloth { background: linear-gradient(90deg, #D8D1C4 0 35%, #A8774A 35% 72%, #2B3FB0 72%); }
.sw-diary { background: linear-gradient(90deg, #F6F3EF 0 40%, #D9C7A7 40% 68%, #22382D 68%); }
.sw-archive { background: linear-gradient(90deg, #FAFAFA 0 45%, #121212 45% 82%, #E0412F 82%); }

/* ---------- карточки демо ---------- */
.demos { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 620px) { .demos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; } }
@media (min-width: 1040px) { .demos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 28px; } }
.demo-cell { min-width: 0; }
.demo {
  position: relative; height: 100%;
  display: flex; flex-direction: column;
  background: var(--sheet); border: 1px solid var(--rule-2);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s ease;
}
.demo:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--rule); }
.demo__media { position: relative; margin: 10px 10px 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); }
.demo__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.demo:hover .demo__media img { transform: scale(1.045); }
.demo__media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: conic-gradient(from -45deg at bottom, #0000 90deg, var(--sheet) 0) 50% 0 / 12px 100%; }
.demo__tag {
  position: absolute; left: 10px; top: 10px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 10px 6px 8px; background: var(--sheet);
  font: 11.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink);
  box-shadow: 0 1px 2px rgba(28, 26, 23, .15);
  transform-origin: 0 50%; transition: transform .6s var(--ease);
}
.demo__tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule); }
.demo:hover .demo__tag { transform: rotate(-3deg); }
.demo__body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.demo__pkg { font: 12.5px/1.4 var(--mono); letter-spacing: .02em; color: var(--muted); }
.demo__pkg b { font-weight: 400; color: var(--blue); white-space: nowrap; }
.demo__brand { margin-top: 2px; font: 600 31px/1.02 var(--serif); letter-spacing: -.005em; }
.demo__meta { font-size: 14px; line-height: 1.45; color: var(--muted); }
.demo__sig { margin: 6px 0 16px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.demo__foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px dashed var(--rule); }
.palette { display: flex; padding-left: 3px; }
.palette i { width: 15px; height: 15px; margin-left: -3px; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--sheet), inset 0 0 0 1px rgba(0, 0, 0, .12); }
.demo__link { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-weight: 600; font-size: 15px; text-decoration: none; color: var(--ink); }
.demo__link::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.demo__link .i { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.demo:hover .demo__link { color: var(--blue); }
.demo:hover .demo__link .i { transform: translateX(4px); }
.demo__link:focus-visible { outline: none; }
.demo__link:focus-visible::after { outline: 2px solid var(--blue); outline-offset: 4px; }

.empty { margin-top: 8px; padding: 28px 22px; background: var(--sheet); border: 1px dashed var(--rule); display: grid; gap: 10px; justify-items: start; }
.empty__title { font: 600 28px/1.1 var(--serif); }
.empty__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

/* ---------- что входит ---------- */
.incl { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--ink); }
.incl li { display: grid; grid-template-columns: 34px 1fr; gap: 4px 14px; padding: 20px 0 22px; border-bottom: 1px solid var(--rule); }
.incl .i { grid-row: span 2; width: 26px; height: 26px; color: var(--blue); stroke-width: 1.4; margin-top: 2px; }
.incl h3 { font: 600 24px/1.15 var(--serif); }
.incl p { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
@media (min-width: 620px) { .incl { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; } }
@media (min-width: 1100px) {
  .incl { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 32px; }
  .incl li { grid-template-columns: 1fr; padding: 26px 0 30px; gap: 12px; }
  .incl .i { grid-row: auto; width: 30px; height: 30px; }
}

/* ---------- как это работает ---------- */
.steps { list-style: none; position: relative; display: grid; gap: 28px; padding-left: 56px; counter-reset: s; }
.steps::before { content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 0; border-left: 2px dashed var(--blue); opacity: .7; transition: clip-path 1.6s var(--ease); clip-path: inset(0 0 0 0); }
.ml-ready .steps:not(.is-in)::before { clip-path: inset(0 0 100% 0); }
.step { position: relative; }
.step__no { position: absolute; left: -56px; top: 0; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--sheet); border: 1px solid var(--ink); font: 600 22px/1 var(--serif); }
.step__when { font: 12px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--blue); padding-top: 2px; }
.step h3 { margin-top: 6px; font: 600 27px/1.1 var(--serif); }
.step p:last-child { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; max-width: 30em; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-left: 0; padding-top: 64px; }
  .steps::before { left: 20px; right: 20px; top: 19px; bottom: auto; width: auto; height: 0; border-left: 0; border-top: 2px dashed var(--blue); }
  .ml-ready .steps:not(.is-in)::before { clip-path: inset(0 100% 0 0); }
  .step__no { left: 0; top: -64px; }
}
.offer {
  position: relative; margin-top: 52px; padding: 30px 22px;
  display: grid; gap: 22px; justify-items: start;
  background: var(--sheet); border: 1px solid var(--rule);
  outline: 1px dashed var(--blue); outline-offset: -9px;
}
.offer__text { font: 500 clamp(28px, 4.2vw, 46px)/1.08 var(--serif); letter-spacing: -.01em; max-width: 22em; text-wrap: balance; }
.offer__fine { display: block; margin-top: 14px; font: 400 15px/1.5 var(--sans); letter-spacing: 0; color: var(--ink-2); max-width: 36em; text-wrap: pretty; }
@media (min-width: 900px) {
  .offer { grid-template-columns: 1fr auto; align-items: center; gap: 40px; padding: 44px 48px; }
}

/* ---------- пакеты ---------- */
.pkgs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: stretch; }
@media (min-width: 720px) { .pkgs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1240px) { .pkgs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.pkg { position: relative; display: flex; flex-direction: column; padding: 24px 20px 20px; background: var(--sheet); border: 1px solid var(--rule); }
/* шапки карточек одной высоты — линии отрыва идут на одном уровне */
@supports (grid-template-rows: subgrid) {
  .pkg { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; }
}
.pkg__body { display: flex; flex-direction: column; }
.pkg--hot { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), var(--shadow-lift); }
.pkg__no { font: 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pkg__name { margin-top: 10px; font: 600 40px/1 var(--serif); letter-spacing: -.01em; overflow-wrap: anywhere; hyphens: auto; }
.pkg { min-width: 0; }
@media (min-width: 1240px) { .pkg__name { font-size: min(40px, 2.05vw); hyphens: manual; } .pkg__price { font-size: min(36px, 2.1vw); } }
.pkg__price { margin-top: 16px; font: 600 36px/1 var(--serif); white-space: nowrap; }
.pkg__price small { font: italic 500 22px/1 var(--serif); color: var(--muted); margin-right: 2px; }
.pkg__price--ask { font-style: italic; font-weight: 500; font-size: 32px; color: var(--ink-2); white-space: normal; }
.pkg__meta { margin-top: 10px; font: 12.5px/1.4 var(--mono); color: var(--muted); }
.pkg__lead { margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.pkg__perf {
  position: relative; height: 22px; margin: 18px -21px 16px; padding-inline: 18px;
  background: linear-gradient(90deg, var(--rule) 50%, transparent 0) 0 50% / 8px 1px repeat-x;
  background-clip: content-box;
}
/* вырезы, как у отрывного талона */
.pkg__perf::before, .pkg__perf::after { content: ""; position: absolute; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--paper-2); border: 1px solid var(--rule); }
.pkg__perf::before { left: -11px; clip-path: inset(0 0 0 50%); }
.pkg__perf::after { right: -11px; clip-path: inset(0 50% 0 0); }
.pkg--hot .pkg__perf::before, .pkg--hot .pkg__perf::after { border-color: var(--ink); border-width: 2px; }
.pkg__list { list-style: none; display: grid; gap: 10px; font-size: 14.5px; line-height: 1.45; }
.pkg__list li { position: relative; padding-left: 26px; }
.pkg__list li::before { content: ""; position: absolute; left: 0; top: .2em; width: 16px; height: 16px; background: var(--blue); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 9.5 17 19 7'/%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' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 9.5 17 19 7'/%3E%3C/svg%3E") center / contain no-repeat; }
.pkg__list li.is-all { font-weight: 600; }
.pkg__note { margin-top: 16px; padding: 10px 12px; font-size: 14px; line-height: 1.45; background: var(--blue-wash); color: var(--ink); }
.pkg__ex { margin-top: auto; padding-top: 18px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.pkg__ex a { color: var(--ink); text-decoration-color: var(--rule); text-underline-offset: 3px; }
.pkg__ex a:hover { color: var(--blue); text-decoration-color: currentColor; }
.pkg__cta { margin-top: 16px; width: 100%; }
.pkg__badge {
  position: absolute; right: 14px; top: -14px; z-index: 2;
  padding: 6px 10px 5px; background: var(--sheet); color: var(--blue);
  font: 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  border: 1.5px solid currentColor; outline: 1px solid currentColor; outline-offset: 2px;
  transform: rotate(-4deg);
}
.pkgs__note { margin-top: 26px; font-size: 15px; color: var(--ink-2); }
.pkgs__note a { color: var(--blue); text-underline-offset: 3px; }
.pkgs__note b { font-weight: 600; color: var(--ink); }
.care__note { margin-top: 22px; padding: 12px 0 12px 16px; border-left: 2px solid var(--blue); font-size: 16px; }

/* ---------- таблица сравнения ---------- */
.cmp { position: relative; background: var(--sheet); border: 1px solid var(--rule); }
.cmp__hint { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font: 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--rule-2); }
.cmp__hint .i { width: 16px; height: 16px; }
@media (min-width: 900px) { .cmp__hint { display: none; } }
.cmp__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.cmp__scroll:focus-visible { outline-offset: -3px; }
.cmp table { width: 100%; min-width: 700px; border-collapse: separate; border-spacing: 0; font-size: 14.5px; line-height: 1.4; }
.cmp th, .cmp td { padding: 12px 14px; border-bottom: 1px solid var(--rule-2); text-align: center; vertical-align: middle; }
.cmp thead th { padding-block: 22px 16px; font: 600 26px/1 var(--serif); vertical-align: bottom; border-bottom: 1px solid var(--ink); }
.cmp thead th small { display: block; margin-top: 8px; font: 12px/1.2 var(--mono); color: var(--muted); white-space: nowrap; }
.cmp td { white-space: nowrap; }
.cmp__corner { border-bottom: 1px solid var(--ink) !important; }
.cmp tbody th[scope="row"] { text-align: left; font-weight: 400; color: var(--ink); }
.cmp th[scope="row"], .cmp__corner { position: sticky; left: 0; z-index: 1; background: var(--sheet); width: 40%; min-width: 190px; box-shadow: 1px 0 0 var(--rule-2); }
@media (max-width: 619px) { .cmp table { font-size: 14px; } .cmp th, .cmp td { padding: 11px 12px; } .cmp thead th { font-size: 23px; } }
.cmp .is-hot, .cmp td:nth-child(3) { background: var(--blue-wash); }
.cmp thead .is-hot { color: var(--blue); }
.cmp tr.grp th { position: static; padding: 22px 14px 8px; text-align: left; font: 11.5px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); background: var(--sheet); box-shadow: none; border-bottom: 1px solid var(--rule); }
.cmp tr.grp th span { position: sticky; left: 14px; display: inline-block; }
.cmp .yes { display: inline-grid; place-items: center; color: var(--blue); }
.cmp .yes .i { width: 20px; height: 20px; stroke-width: 2; }
.cmp .no { color: #B3A995; }
.cmp tbody tr:not(.grp):hover th, .cmp tbody tr:not(.grp):hover td { background-color: #F4F1EA; }
.cmp tbody tr:not(.grp):hover td:nth-child(3) { background-color: #DFE1EC; }

/* ---------- обслуживание ---------- */
.care { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 900px) { .care { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plan { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px 20px 22px; background: var(--sheet); border: 1px solid var(--rule); }
.plan--rec { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.plan__tag { position: absolute; left: 20px; top: -12px; padding: 5px 9px 4px; background: var(--blue); color: #fff; font: 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.plan__name { font: 600 32px/1 var(--serif); }
.plan__price { font: 600 34px/1 var(--serif); white-space: nowrap; }
.plan__price small { font: italic 500 21px/1 var(--serif); color: var(--muted); }
.plan__price span { font: 14px/1 var(--sans); color: var(--muted); margin-left: 4px; }
.plan__alt { margin-top: 9px; font-size: 14px; line-height: 1.3; color: var(--muted); }
.plan__alt b { font-weight: 600; color: var(--ink); white-space: nowrap; }
@media (min-width: 900px) { .plan__cost { min-height: 66px; } }
.plan__lead { font-size: 15px; color: var(--ink-2); padding-bottom: 14px; border-bottom: 1px dashed var(--rule); }
.plan__list { list-style: none; display: grid; gap: 9px; margin-top: 4px; font-size: 14.5px; line-height: 1.45; }
.plan__list li { position: relative; padding-left: 20px; }
.plan__list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 1.5px; background: var(--blue); }
.plan__list li.is-all { font-weight: 600; }

.bots { margin-top: 28px; background: var(--sheet); border: 1px solid var(--rule); }
.bots__head { padding: 22px 20px 18px; border-bottom: 1px solid var(--rule-2); display: grid; gap: 6px; }
.bots__head h3 { font: 600 28px/1.1 var(--serif); }
.bots__head p { font-size: 15px; color: var(--ink-2); max-width: 46em; }
.bots__list { list-style: none; }
.bots__list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 16px 20px; border-bottom: 1px solid var(--rule-2); }
.bots__list li:last-child { border-bottom: 0; }
.bots__name { font-weight: 600; font-size: 16px; }
.bots__price { font: 600 22px/1.1 var(--serif); white-space: nowrap; text-align: right; }
.bots__price small { display: block; margin-top: 5px; font: 500 13px/1.25 var(--sans); color: var(--muted); }
.bots__desc { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }
@media (max-width: 440px) {
  .bots__list li { grid-template-columns: minmax(0, 1fr); }
  .bots__price { text-align: left; }
}
@media (min-width: 900px) {
  .bots { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .bots__head { border-bottom: 0; border-right: 1px solid var(--rule-2); padding: 28px; align-content: start; }
  .bots__list li { grid-template-columns: 170px 170px 1fr; align-items: baseline; padding: 18px 24px; }
  .bots__price { text-align: left; }
  .bots__desc { grid-column: auto; }
}

/* ---------- гарантии и окупаемость ---------- */
.trust { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--ink); }
.trust li { display: grid; grid-template-columns: 40px 1fr; gap: 2px 12px; padding: 18px 0 20px; border-bottom: 1px solid var(--rule); }
.trust__no { grid-row: span 2; font: 13px/1.6 var(--mono); color: var(--blue); }
.trust h3 { font: 600 23px/1.15 var(--serif); }
.trust p { font-size: 15px; color: var(--ink-2); }
@media (min-width: 720px) { .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; } }
@media (min-width: 1100px) {
  .trust { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 36px; }
  .trust li { grid-template-columns: 1fr; gap: 10px; padding: 24px 0 28px; align-content: start; }
  .trust__no { grid-row: auto; }
}
.roi { margin-top: 64px; display: grid; gap: 16px; max-width: 980px; }
.roi blockquote p { font: 500 clamp(32px, 5vw, 60px)/1.04 var(--serif); letter-spacing: -.015em; text-wrap: balance; }
.roi blockquote p::before { content: "«"; color: var(--blue); margin-right: .05em; }
.roi blockquote p::after { content: "»"; color: var(--blue); margin-left: .05em; }
.roi figcaption { font: 13px/1.4 var(--mono); letter-spacing: .04em; color: var(--muted); }

/* ---------- оплата сразу / в три этапа, предоплата обслуживания ---------- */
.care__note--prepay { margin-top: 12px; padding-right: 16px; background: var(--blue-wash); }
.plan__pre > span { display: block; }
.plan__pre > .plan__sep { display: none; }
.bots__pre { grid-column: 1 / -1; margin-top: 2px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.bots__pre b { font-weight: 600; color: var(--ink); white-space: nowrap; }
@media (max-width: 520px) {
  .bots__pre > span { display: block; }
  .bots__pre > .plan__sep { display: none; }
}
.pay { margin-top: 44px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; }
@media (min-width: 720px) { .pay { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
.pay .plan { gap: 8px; padding-top: 28px; }
.pay .plan__name { font-size: clamp(21px, 5.6vw, 26px); line-height: 1.1; }
.pay__text { font-size: 15px; color: var(--ink-2); }
/* в списке гарантий пять пунктов: последний занимает хвост ряда */
@media (min-width: 720px) and (max-width: 1099px) { .trust li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .trust li:last-child:nth-child(3n+2) { grid-column: span 2; } }

/* ---------- контакт ---------- */
.contact { padding-block: 72px 88px; }
.contact__card { position: relative; display: grid; gap: 18px; justify-items: start; padding: 34px 22px 36px; background: var(--sheet); border: 1px solid var(--rule); outline: 1px dashed var(--rule); outline-offset: -10px; overflow: hidden; }
.contact__card h2 { font-size: clamp(42px, 7vw, 84px); }
.contact__actions { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.contact__phone { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; font: 600 clamp(24px, 3vw, 32px)/1 var(--serif); text-decoration: none; white-space: nowrap; background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.contact__phone:hover { background-size: 100% 1px; }
.contact__phone .i { width: 22px; height: 22px; color: var(--blue); }
@media (min-width: 900px) { .contact__card { padding: 64px 64px 68px; } }
.stamp--contact { display: none; }
@media (min-width: 900px) {
  .stamp--contact { display: block; top: 50%; right: 7%; width: 190px; margin-top: -95px; transform: rotate(12deg); opacity: .85; }
}

/* ---------- подвал ---------- */
.foot { border-top: 1px solid var(--rule); padding-block: 28px 44px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.foot__in { display: grid; gap: 8px; }
.foot__brand { color: var(--ink); }
.foot__brand .logo__name { font-size: 18px; }
.foot a { color: var(--ink-2); text-underline-offset: 3px; }
.foot__legal { max-width: 62em; }

/* ---------- плавная фильтрация (View Transitions) ---------- */
::view-transition-group(*) { animation-duration: .45s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
::view-transition-old(*), ::view-transition-new(*) { animation-duration: .3s; }

/* ---------- меньше движения ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .js .fan:not(.is-open) .fan__card { transform: rotate(calc(var(--i) * var(--spread))); }
  .demo:hover, .demo:hover .demo__media img, .demo:hover .demo__tag { transform: none; }
}

/* --- «Хочу такой» на карточках, переключатель направлений (ночь 2026-10-17) --- */
.demo__want { margin: 0; }
.demo__want-link { position: relative; z-index: 3; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14.5px; font-weight: 600; color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.demo__want-link:hover { color: var(--ink); }
.foot__studio a { color: var(--ink-2); }
