/* ===== Главная: первый экран ===== */
.hero { padding: 8px 0 72px; }
.hero-grid { --hero-gap: clamp(24px, 3vw, 56px); --hero-phone: 300px; container-type: inline-size; display: grid; grid-template-columns: 1fr auto 1fr; grid-template-rows: auto 1fr auto; column-gap: var(--hero-gap); min-height: calc(100svh - 90px); align-items: start; }
.hero-name { display: contents; }
/* Слова не переносятся по буквам; кегль не больше ширины боковой колонки (ЭКРАН ≈ 4.45 кегля, берём 4.6 с запасом) */
.hero-name .nl, .hero-name .nr { font-size: min(clamp(3.5rem, 7.4vw, 8rem), calc((100cqw - var(--hero-phone) - 2 * var(--hero-gap)) / 2 / 4.6)); line-height: .85; display: block; white-space: nowrap; overflow-wrap: normal; }
.hero-name .nl { grid-column: 1; grid-row: 1; }
.hero-name .nr { grid-column: 3; grid-row: 3; justify-self: end; align-self: end; }
.hero-phone { grid-column: 2; grid-row: 1 / 4; align-self: center; }
.hero-copy { grid-column: 1; grid-row: 2; align-self: center; display: flex; flex-direction: column; gap: 28px; max-width: 30rem; padding-top: 40px; }
.hero-act { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.hero-facts { grid-column: 3; grid-row: 1 / 3; list-style: none; margin: 0; padding: 12px 0 0; justify-self: end; text-align: right; font-size: 1rem; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.hero-facts li:first-child { color: var(--ink); font-weight: 600; }
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; grid-template-rows: none; min-height: 0; row-gap: 28px; }
  .hero-name .nl, .hero-name .nr, .hero-phone, .hero-copy, .hero-facts { grid-column: 1; grid-row: auto; }
  .hero-name .nl { font-size: 17vw; }
  .hero-name .nr { font-size: 17vw; order: 3; }
  .hero-phone { justify-self: center; order: 2; }
  .hero-copy { order: 4; padding-top: 0; }
  .hero-facts { order: 5; justify-self: start; text-align: left; flex-direction: row; flex-wrap: wrap; gap: 6px 18px; }
}

/* ===== Главная: закреплённый телефон ===== */
.story { background: var(--surface); padding: 120px 0 40px; }
.story-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.story-steps { grid-column: 1 / 7; }
.story-title { font-size: 1.625rem; font-weight: 600; margin-bottom: 8px; color: var(--muted); }
.step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 24px 0; }
.step-name { font-size: min(var(--step-head), 4.1vw, 3.75rem); color: var(--muted); transition: color .3s; }
@media (max-width: 900px) { .step-name { font-size: var(--step-head); } }
.step.on .step-name { color: var(--ink); }
.step .lead { max-width: 28ch; }
.step-meta { color: var(--muted); }
.story-stage { grid-column: 8 / 13; }
.stage-sticky { position: sticky; top: 8vh; height: 84vh; display: grid; place-items: center; }
.stage-frame { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; gap: 16px; opacity: 0; transform: scale(.97); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.stage-frame.on { opacity: 1; transform: none; }
.stage-frame .phone { --pw: min(300px, 34vh); }
.stage-cap { font-weight: 600; }
@media (max-width: 900px) {
  .story { padding-top: 72px; }
  .story-grid { display: flex; flex-direction: column-reverse; }
  .story-stage { position: sticky; top: 0; z-index: 2; background: var(--surface); padding: 8px 0 12px; }
  .stage-sticky { position: static; height: 46svh; }
  .stage-frame .phone { --pw: calc(46svh * .43); }
  .stage-cap { display: none; }
  .step { min-height: 54svh; }
}

/* ===== Секции каталога на главной ===== */
.popular { background: var(--field); color: var(--field-ink); padding: 120px 0; }
.popular .card { background: var(--field-2); }
.popular .card-stage { background: #383838; }
.sec-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; margin-bottom: 48px; }
.sec-head .h-head { grid-column: 1 / 8; }
.sec-head .lead { grid-column: 9 / 13; color: var(--field-muted); }
@media (max-width: 800px) { .sec-head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; } }
.catalog-home { padding: 120px 0 40px; }
.seg-block { margin-bottom: 110px; }
.seg-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 24px; align-items: end; margin-bottom: 32px; }
.seg-head .h-head { grid-column: 1 / -1; }
.seg-head p { grid-column: 1; max-width: 46ch; }
.seg-head .link-arrow { grid-column: 2; justify-self: end; white-space: nowrap; }
@media (max-width: 900px) { .seg-head { display: flex; flex-direction: column; align-items: flex-start; } .seg-head .link-arrow { justify-self: start; } }

/* ===== Конструктор (анонс) ===== */
.ctor { background: var(--accent); color: var(--accent-ink); padding: 120px 0; }
.ctor .muted { color: #8f3a45; }
.ctor .ctor-btn { background: var(--accent-ink); color: #fff; }
.ctor .ctor-btn:hover { background: #5e0a13; }
.ctor-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center; }
.ctor-copy { grid-column: 1 / 6; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.ctor-demo { grid-column: 7 / 13; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; }
.ctor-tile.t0 { grid-column: 1 / 3; }
.ctor-tile.t1 { width: 70%; justify-self: end; }
@media (max-width: 900px) { .ctor-copy, .ctor-demo { grid-column: 1 / -1; } }

/* ===== Установка ===== */
.install { padding: 120px 0; }
.install-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.install-grid .h-head { grid-column: 1 / 6; }
.steps-list { grid-column: 6 / 13; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 40px; }
.steps-list li { font-size: var(--step-lead); line-height: 1.35; max-width: 34ch; }
.steps-list b { display: block; font-weight: 600; }
@media (max-width: 1100px) { .install-grid .h-head, .steps-list { grid-column: 1 / -1; } .steps-list { gap: 28px; } }

/* ===== Вопросы ===== */
.faq { padding: 80px 0 0; }
.faq-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.faq-list { grid-column: 1 / 6; display: flex; flex-direction: column; gap: 18px; }
.faq-title { font-size: 1.125rem; font-weight: 500; color: var(--muted); }
.faq-q { display: flex; gap: 14px; align-items: baseline; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font-size: 1.125rem; color: var(--muted); }
.faq-q .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; transform: translateY(-2px); }
.faq-q[aria-selected="true"] { color: var(--ink); }
.faq-q[aria-selected="true"] .dot { background: var(--accent); }
.faq-pane { grid-column: 7 / 13; position: sticky; top: 120px; align-self: start; font-size: clamp(1.5rem, 1.1rem + 1vw, 1.75rem); line-height: 1.3; max-width: 30ch; min-height: 8em; }
.faq-pane.in { animation: fade .15s ease; }
.faq-a-m { display: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 800px) {
  .faq-list { grid-column: 1 / -1; } .faq-pane { display: none; }
  .faq-a-m.open { display: block; padding-left: 22px; font-size: 1.1875rem; }
}

/* ===== Каталог ===== */
.page-head { padding: 48px 0 40px; display: flex; flex-wrap: wrap; gap: 16px 48px; align-items: flex-end; justify-content: space-between; }
.page-head h1 { flex: 0 1 auto; min-width: 0; max-width: 100%; overflow-wrap: anywhere; font-size: clamp(2.5rem, 1.5rem + 4vw, 5.5rem); }
.page-head p { flex: 1 1 320px; max-width: 46ch; margin: 0; }
@media (max-width: 800px) { .page-head { display: flex; flex-direction: column; align-items: flex-start; } }
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.chip { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--line); background: transparent; font-weight: 500; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.chip span { color: var(--muted); font-size: .875rem; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--accent-ink); border-color: var(--ink); }
.chip[aria-pressed="true"] span { color: var(--accent-ink); }
.empty { padding: 60px 0; color: var(--muted); }

/* ===== Страница виджета ===== */
.crumbs { padding: 8px 0 0; font-size: .9375rem; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.wd { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding: 28px 0 100px; align-items: start; }
.wd-stage { grid-column: 1 / 8; background: var(--field); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 28px; position: sticky; top: 20px; }
.wd-preview { min-height: 420px; display: grid; place-items: center; background: var(--wall, #2f3e5c); border-radius: 14px; padding: 40px 24px; transition: background .3s; }
.wd-preview .wg-small { width: 200px; }
.wd-preview .wg-medium, .wd-preview .wg-large { width: min(100%, 430px); }
.wd-preview .wg-large { width: min(100%, 360px); }
.wd-preview .wg-circular { width: 120px; }
.wd-preview .wg-rectangular { width: 270px; }
.wd-preview .wg-inline .inl { font-size: 22px; }
.size-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.size-tabs .chip { color: var(--field-ink); border-color: rgba(255, 255, 255, .2); }
.size-tabs .chip[aria-pressed="true"] { background: #fff; color: #111; }
.size-group { display: flex; flex-direction: column; gap: 10px; }
.size-group > span { color: var(--field-muted); font-size: .9375rem; }
.wd-info { grid-column: 8 / 13; display: flex; flex-direction: column; gap: 22px; padding-top: 8px; }
.wd-info h1 { font-family: var(--f-display); text-transform: uppercase; letter-spacing: -0.03em; font-size: clamp(2rem, 1.2rem + 2.4vw, 3.25rem); line-height: 1.02; }
.wd-seg { color: var(--muted); text-decoration: none; font-weight: 500; }
.wd-price { font-size: 2rem; font-weight: 700; }
.wd-buy { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.wd-note { color: var(--muted); font-size: .9375rem; }
.wd-sizes { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.wd-sizes li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
.wd-sizes li span:last-child { color: var(--muted); }
.try { background: var(--surface); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.try h2 { font-size: 1.125rem; font-weight: 600; }
.try p { color: var(--muted); font-size: .9375rem; }
.try .field input, .try .field select { background: #fff; }
.try .field { color: var(--ink); }
.screens { padding: 100px 0; background: var(--surface); }
.screens-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; }
.screens-grid .h-head { grid-column: 1 / 6; }
.screens-grid .scr { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.screens-grid .scr.a { grid-column: 6 / 9; min-width: 0; }
.screens-grid .scr.b { grid-column: 10 / 13; min-width: 0; }
.scr p { color: var(--muted); font-size: .9375rem; text-align: center; max-width: 28ch; }
.related { padding: 100px 0 0; }
.related .h-head { margin-bottom: 36px; }
@media (max-width: 1000px) {
  .wd-stage, .wd-info { grid-column: 1 / -1; position: static; }
  .wd-stage { padding: 18px; }
  .wd-preview { min-height: 300px; }
  .screens-grid .h-head, .screens-grid .scr.a, .screens-grid .scr.b { grid-column: 1 / -1; }
}

/* ===== Кабинет ===== */
.acc { padding: 20px 0 80px; }
.acc-login { max-width: 460px; background: var(--surface); padding: 28px; border-radius: 20px; display: flex; flex-direction: column; gap: 16px; }
.acc-login .field { color: var(--ink); }
.acc-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; padding: 40px 0 48px; }
.acc-head h1 { grid-column: 1 / 8; font-size: clamp(2.5rem, 1.5rem + 3.5vw, 5rem); }
.acc-head .acc-who { grid-column: 9 / 13; justify-self: end; text-align: right; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.acc-head .muted { font-size: 1rem; }
.owned-list { display: flex; flex-direction: column; gap: 16px; }
.own { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 28px; align-items: center; background: var(--field); color: var(--field-ink); border-radius: 18px; padding: 20px; }
.own > *, .own-item > * { min-width: 0; }
.own h2, .own-meta, .own-item b, .own-item span { overflow-wrap: anywhere; }
.own-prev { background: var(--field-2); border-radius: 12px; padding: 18px; display: grid; place-items: center; }
.own-prev .wg { max-width: 170px; }
.own-prev .wg-medium { max-width: 100%; }
.own h2 { font-size: 1.25rem; font-weight: 600; }
.own h2 a { text-decoration: none; }
.own-meta { color: var(--field-muted); font-size: .9375rem; margin-top: 4px; }
.own-act { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.own-act .btn.ghost { color: #fff; }
.badge { display: inline-block; font-size: .8125rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: rgba(255, 255, 255, .12); margin-left: 8px; vertical-align: 2px; }
.own-edit { grid-column: 1 / -1; display: none; gap: 14px; background: var(--field-2); border-radius: 12px; padding: 18px; }
.own-edit.open { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); align-items: end; }
.own-edit .field { color: var(--field-ink); }
.acc-empty { background: var(--surface); border-radius: 20px; padding: 40px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.acc-help { margin-top: 64px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.acc-help h2 { grid-column: 1 / 5; font-family: var(--f-display); text-transform: uppercase; font-size: 1.5rem; letter-spacing: -0.02em; }
.acc-help ol { grid-column: 6 / 13; margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.acc-help a, .wd-note a, .scr-steps a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.own-act .btn[disabled], .own-item .row-b button[disabled] { opacity: .6; cursor: progress; }
@media (max-width: 800px) {
  .own { grid-template-columns: 1fr; }
  .acc-head { display: flex; flex-direction: column; align-items: flex-start; }
  .acc-head .acc-who { align-items: flex-start; text-align: left; }
  .acc-help h2, .acc-help ol { grid-column: 1 / -1; }
}

/* ===== Конструктор ===== */
.ct-head { padding-bottom: 28px; }
.ct { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; padding-bottom: 60px; }
.ct-stage { grid-column: 1 / 6; position: sticky; top: 16px; }
.ct-sticky { background: var(--field); border-radius: 20px; padding: 28px 20px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.ct-phone .phone { --pw: min(300px, 38vh); }
.ct-sizes { justify-content: center; }
.ct-note { color: var(--field-muted); font-size: .9375rem; }
.ct-form { grid-column: 7 / 13; display: flex; flex-direction: column; gap: 20px; }
.ct-step { background: var(--surface); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.ct-step h2 { font-family: var(--f-display); text-transform: uppercase; letter-spacing: -0.02em; font-size: 1.5rem; line-height: 1; }
.ct-step .field { color: var(--ink); }
.ct-step .field textarea { min-height: 120px; resize: vertical; line-height: 1.4; }
.ct-fields { display: flex; flex-direction: column; gap: 14px; }
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ct-row.three { grid-template-columns: repeat(3, 1fr); }
.ct-kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ct-kind { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 14px; border: 2px solid var(--line); cursor: pointer; transition: border-color .2s, background .2s; }
.ct-kind:hover { border-color: rgba(255, 255, 255, .4); }
.ct-kind.on, .ct-kind:has(input:checked) { border-color: var(--ink); background: rgba(255, 255, 255, .06); }
.ct-kind input { position: absolute; opacity: 0; }
.ct-kind:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.ct-kind-prev { display: block; margin-bottom: 6px; }
.ct-kind-prev .kp { display: block; width: 72%; margin: 0 auto; }
.ct-kind-t { font-weight: 600; }
.ct-kind-l { font-size: .875rem; color: var(--muted); line-height: 1.3; }
.ct-kind-p { font-size: .875rem; font-weight: 600; margin-top: auto; padding-top: 4px; }
.ct-sub { font-weight: 600; font-size: .9375rem; margin-bottom: -6px; }
.ct-pal { display: flex; flex-wrap: wrap; gap: 10px; }
.pal { width: 52px; height: 52px; border-radius: 14px; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--a); display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; overflow: hidden; }
.pal i:nth-child(1) { grid-column: 1 / 3; } .pal i:nth-child(2) { background: var(--b); margin: 0 0 6px 6px; border-radius: 6px; } .pal i:nth-child(3) { background: var(--c); margin: 0 6px 6px 3px; border-radius: 6px; }
.pal[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--surface) inset; }
.ct-colors { display: flex; gap: 16px; }
.ct-colors label { display: flex; flex-direction: column; gap: 6px; font-size: .9375rem; font-weight: 500; }
.ct-colors input { width: 64px; height: 44px; border-radius: 10px; border: 2px solid var(--line); padding: 2px; background: transparent; cursor: pointer; }
.ct-seg { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ct-seg legend { font-weight: 600; font-size: .9375rem; margin-bottom: 8px; padding: 0; }
.seg-o { position: relative; }
.seg-o input { position: absolute; opacity: 0; }
.seg-o span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--line); cursor: pointer; font-weight: 500; }
.seg-o.fs span { font-family: Georgia, serif; } .seg-o.fm span { font-family: ui-monospace, Consolas, monospace; }
.seg-o input:checked + span { background: var(--ink); color: var(--accent-ink); border-color: var(--ink); }
.seg-o input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.ct-photo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ct-thumb { width: 64px; height: 64px; border-radius: 12px; background-size: cover; background-position: center; }
.ct-file { cursor: pointer; }
.ct-file:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.ct-dim input { min-height: 0; padding: 0; accent-color: var(--accent); }
.ct-hint { font-size: .9375rem; color: var(--muted); }
.ct-done { background: var(--accent); color: var(--accent-ink); }
.ct-done .btn { background: var(--accent-ink); color: #fff; }
.ct-done .btn:hover { background: #5e0a13; }
.ct-done .link-arrow { color: var(--accent-ink); background: none; border: 0; cursor: pointer; font-size: 1rem; padding: 0; }
@media (max-width: 1000px) {
  .ct-stage, .ct-form { grid-column: 1 / -1; }
  .ct-stage { position: sticky; top: 0; z-index: 5; margin: 0 calc(var(--gut) * -1); }
  .ct-sticky { border-radius: 0; padding: 12px 12px 10px; gap: 10px; }
  .ct-phone .phone { --pw: 128px; }
  .ct-note { display: none; }
  .ct-sizes { flex-wrap: wrap; justify-content: center; max-width: 100%; }
  .ct-sizes .chip { min-height: 38px; flex: none; }
  .ct-kinds { grid-template-columns: repeat(2, 1fr); }
  .ct-row.three { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .ct-row { grid-template-columns: 1fr; } .ct-head h1 { font-size: 11.5vw; } }
.own-tag { background: var(--accent); color: var(--accent-ink); }

/* ===== Кастомные экраны ===== */
.scards { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.scard-stage { display: flex; justify-content: center; align-items: flex-end; gap: 0; padding: 28px 16px 0; min-height: 340px; overflow: hidden; }
.scard-ph { transform: translateY(18px); transition: transform .35s var(--ease); }
.scard-ph.back { margin-left: -36px; transform: translateY(46px) rotate(4deg); z-index: 0; }
.scard-ph:not(.back) { z-index: 1; }
.scard:hover .scard-ph:not(.back) { transform: translateY(6px); }
.scard:hover .scard-ph.back { transform: translateY(34px) rotate(6deg); }
.sd { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding: 28px 0 100px; align-items: start; }
.sd-stage { grid-column: 1 / 8; background: var(--field); border-radius: 20px; padding: 32px 24px 24px; display: flex; flex-direction: column; align-items: center; gap: 20px; position: sticky; top: 20px; }
.sd-phones { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; }
.sd-phones figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.sd-phones figcaption { color: var(--field-muted); font-size: .9375rem; }
.sd-toggle { display: inline-flex; gap: 10px; align-items: center; color: var(--field-ink); font-weight: 500; cursor: pointer; }
.sd-toggle input { width: 20px; height: 20px; accent-color: var(--accent); }
.sd .wd-info { grid-column: 8 / 13; }
.sd-get { background: var(--surface); border-radius: 16px; padding: 22px; }
.sd-get h2 { font-size: 1.125rem; font-weight: 600; margin-bottom: 10px; }
.sd-get ul { margin: 0 0 12px; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.sd-set { background: var(--surface); padding: 100px 0; }
.sd-set .h-head { margin-bottom: 36px; }
.sd-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.sd-list li { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center; background: var(--field); color: var(--field-ink); border-radius: 16px; padding: 16px; }
.sd-list li > div:last-child > b { display: block; font-weight: 600; font-size: 1.0625rem; }
.sd-list li > div:last-child > span { display: block; color: var(--field-muted); font-size: .9375rem; margin: 4px 0 10px; }
.sd-li-prev { background: var(--field-2); border-radius: 12px; padding: 14px; display: grid; place-items: center; min-height: 110px; }
.sd-li-prev .wg-small { max-width: 96px; } .sd-li-prev .wg-circular { max-width: 64px; } .sd-li-prev .wg-rectangular { max-width: 120px; }
.sd-li-prev .wg-inline .inl { font-size: 12px; white-space: normal; }
.sd-how { padding-top: 100px; }
@media (max-width: 1000px) { .sd-stage, .sd .wd-info { grid-column: 1 / -1; position: static; } .sd-phones .phone { --pw: 200px !important; } }
.home-screens { padding: 120px 0; }
.own-screen { grid-template-columns: 220px minmax(0, 1fr) auto; }
@media (max-width: 800px) {
  /* 0.7.8: правило выше перебивало мобильную раскладку — карточки экранов вылезали за край на iPhone */
  .own, .own-screen { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 14px; }
  .own-act { flex-direction: row; flex-wrap: wrap; }
  .own-act .btn { flex: 1 1 auto; }
  .own-item { grid-template-columns: 60px minmax(0, 1fr); gap: 10px; padding: 10px; }
  .own-edit.open { grid-template-columns: minmax(0, 1fr); padding: 14px; }
}
.own-scr-prev { background: var(--field-2); border-radius: 12px; padding: 14px 0 0; display: flex; justify-content: center; overflow: hidden; max-height: 240px; }
.own-items { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 10px; }
.own-item { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 12px; align-items: center; background: var(--field-2); border-radius: 12px; padding: 10px 12px; }
.own-item .wg-small { max-width: 60px; } .own-item .wg-medium { max-width: 70px; } .own-item .wg-circular { max-width: 46px; } .own-item .wg-rectangular { max-width: 70px; }
.own-item .wg-inline .inl { font-size: 10px; line-height: 1.25; white-space: normal; }
.own-item > div:nth-child(2) > b { display: block; font-size: .9375rem; font-weight: 600; }
.own-item > div:nth-child(2) > span { display: block; font-size: .8125rem; color: var(--field-muted); }
.own-item .row-b { display: flex; gap: 6px 14px; margin-top: 6px; flex-wrap: wrap; }
.own-item .row-b button { background: none; border: 0; padding: 4px 0; min-height: 32px; text-align: left; color: var(--accent); font-weight: 600; font-size: .875rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.own-item .own-edit { grid-column: 1 / -1; }
.acc-sec { font-family: var(--f-display); text-transform: uppercase; letter-spacing: -0.02em; font-size: 1.5rem; margin: 48px 0 18px; }

.mt-l { margin-top: 36px; }
.home-screens .sec-head .lead { color: var(--muted); }
.sd-list .link-arrow { white-space: nowrap; font-size: .9375rem; }
.sd-list li { grid-template-columns: 130px minmax(0, 1fr); }
@media (max-width: 400px) { .sd-list li { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 12px; } .sd-li-prev { padding: 10px; min-height: 90px; } }

/* ===== Рекламный баннер набора «Неоновый закат» (главная) ===== */
.promo { padding: 0 0 72px; }
.promo-frame { --dur: 5600ms; position: relative; height: 520px; border-radius: 28px; overflow: hidden; isolation: isolate; background: #170829; color: #fff;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08) inset; }
.promo-bg { position: absolute; inset: -4%; background-size: cover; background-position: center 62%; z-index: -2; animation: promo-drift 24s ease-in-out infinite alternate; }
.promo-frame::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(18, 5, 42, .92) 0%, rgba(18, 5, 42, .72) 42%, rgba(18, 5, 42, .2) 75%, rgba(18, 5, 42, .35) 100%); }
@keyframes promo-drift { from { transform: scale(1.02) translateY(0); } to { transform: scale(1.08) translateY(-2%); } }
.promo-slides { position: absolute; inset: 0; }
.promo-slide { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 32px; padding: 48px 56px 64px; color: inherit; text-decoration: none;
  opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; }
.promo-slide.on { opacity: 1; visibility: visible; transition: opacity .9s ease, visibility 0s; }
/* эффект проявления: из размытия в резкость, с небольшим наездом */
.promo-slide > * { filter: blur(14px); transform: scale(1.04); transition: filter 1.1s ease, transform 1.4s cubic-bezier(.2, .7, .2, 1); }
.promo-slide.on > * { filter: blur(0); transform: none; }
.promo-slide.on .promo-vis { transition-delay: .15s; }
.promo-copy { display: flex; flex-direction: column; gap: 14px; max-width: 30rem; min-width: 0; }
.promo-k { font: 600 .8125rem/1 var(--f-text, 'Onest'), sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #5cf2e0; }
.promo-t { margin: 0; font-family: 'Neon Condensed', 'Arial Narrow', sans-serif; font-style: italic; font-weight: 900; text-transform: uppercase; font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: .9; letter-spacing: .01em; text-wrap: balance;
  text-shadow: 2px 4px 0 #2b0f4c, 0 0 28px rgba(229, 48, 111, .55); }
.promo-p { margin: 0; font-size: 1.0625rem; line-height: 1.5; color: #f1dcf5; max-width: 26rem; }
.promo-act { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.promo-price { font-family: 'Neon Condensed', 'Arial Narrow', sans-serif; font-style: italic; font-weight: 900; font-size: 1.75rem; }
.promo-price.free { color: #5cf2e0; text-transform: uppercase; }
.promo-cta { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 600; color: #2b0f4c; background: linear-gradient(90deg, #ffe26e, #ff8a3d); }
.promo-slide:hover .promo-cta, .promo-slide:focus-visible .promo-cta { filter: brightness(1.08); }
.promo-slide:focus-visible { outline: 3px solid #5cf2e0; outline-offset: -6px; border-radius: 28px; }
.promo-vis { display: grid; place-items: center; min-width: 0; height: 100%; }
.promo-vis.is-phone .phone { transform: rotate(-4deg); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 0 80px rgba(229, 48, 111, .35); }
.promo-w { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 150px); align-items: end; gap: 18px; width: 100%; max-width: 520px; }
.promo-w .pw-m { width: 100%; transform: rotate(-3deg); filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .5)); }
.promo-w .pw-s { width: 100%; transform: translateY(34%) rotate(5deg); filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .55)); }
.promo-free { position: absolute; top: 22px; right: 22px; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 112px; height: 112px; border-radius: 50%;
  background: #5cf2e0; color: #2b0f4c; text-decoration: none; text-align: center; transform: rotate(10deg); box-shadow: 0 0 0 4px rgba(255, 255, 255, .25), 0 10px 30px rgba(0, 0, 0, .35); line-height: 1.1; }
.promo-free b { display: block; font-family: 'Neon Condensed', 'Arial Narrow', sans-serif; font-style: italic; font-weight: 900; font-size: 1.25rem; line-height: 1; text-transform: uppercase; }
.promo-free span { display: block; font-size: .75rem; font-weight: 600; line-height: 1.15; padding: 4px 12px 0; }
.promo-nav { position: absolute; left: 56px; bottom: 26px; z-index: 3; display: flex; gap: 8px; }
.promo-dot { width: 44px; height: 24px; padding: 10px 0; border: 0; background: none; cursor: pointer; }
.promo-dot i { display: block; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .3); overflow: hidden; position: relative; }
.promo-dot i::after { content: ''; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.promo-dot[aria-current="true"] i::after { transform: scaleX(1); }
.promo-dot.run i::after { transform: scaleX(0); animation: promo-run var(--dur) linear forwards; }
.promo-frame.paused .promo-dot.run i::after { animation-play-state: paused; }
@keyframes promo-run { to { transform: scaleX(1); } }
@media (max-width: 1100px) { .promo-w { grid-template-columns: minmax(0, 1fr); max-width: 360px; } .promo-w .pw-s { display: none; } }
@media (max-width: 900px) {
  .promo-frame { height: 700px; }
  .promo-slide { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; padding: 32px 24px 112px; gap: 20px; }
  .promo-vis.is-phone { align-items: start; overflow: hidden; }
  .promo-vis.is-phone .phone { --pw: 188px !important; }
  .promo-vis { align-self: center; }
  .promo-frame::before { background: linear-gradient(180deg, rgba(18, 5, 42, .9) 0%, rgba(18, 5, 42, .55) 50%, rgba(18, 5, 42, .25) 100%); }
  .promo-free { top: auto; bottom: 16px; right: 16px; width: 96px; height: 96px; }
  .promo-free span { font-size: .625rem; padding: 3px 10px 0; }
  .promo-free b { font-size: .9375rem; }
  .promo-nav { left: 24px; gap: 6px; }
  .promo-dot { width: 30px; } /* полоски слайдов не заходят под круглую плашку «Бесплатно» */
  .promo-w { width: min(86%, 340px); }
  .promo-w .pw-s { right: -4%; bottom: -30%; }
}
@media (max-width: 480px) {
  .promo-frame { height: 680px; border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .promo-bg { animation: none; }
  .promo-slide > *, .promo-slide.on > * { filter: none; transform: none; transition: none; }
  .promo-dot.run i::after { animation: none; transform: scaleX(1); }
}

.hero-phone-link { display: block; text-decoration: none; color: inherit; border-radius: 48px; }
.hero-phone-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }

/* ===== 0.7.8: заголовки помещаются в свою колонку целыми словами ===== */
.ctor-copy .h-head { font-size: min(var(--step-head), 3.8vw, 3.5rem); }
.install-grid .h-head { font-size: min(var(--step-head), 4.6vw); }
@media (max-width: 1100px) { .install-grid .h-head { font-size: var(--step-head); } }
@media (max-width: 900px) { .ctor-copy .h-head { font-size: var(--step-head); } }
@media (max-width: 480px) {
  /* самое длинное слово заголовка страницы («Конструктор») — во всю ширину экрана */
  .page-head h1, .ct-head h1 { font-size: calc((100vw - 2 * var(--gut)) / 9.6); }
}

/* Набор «Профессии»: второй ряд фильтров по профессии в разделе «Профессии» */
/* Фильтр профессий (вариант B, согласован 04.11.2026): тёмная панель с метками — отличается от разделов-«пилюль» */
.prof-panel { background: var(--field); color: var(--field-ink); border-radius: 18px; padding: 14px; margin: -18px 0 36px; }
.prof-panel[hidden] { display: none; }
.pp-label { display: flex; justify-content: space-between; gap: 12px; margin: 0 4px 12px; color: var(--field-muted); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.pp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pp-tag { min-height: 38px; padding: 0 12px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .08); color: var(--field-ink); font: 500 .9rem var(--f-text); cursor: pointer; }
.pp-tag:hover { background: rgba(255, 255, 255, .16); }
.pp-tag[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.pp-tag:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 640px) {
  .prof-panel { margin-top: -22px; padding: 12px; }
  .pp-tags { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding: 0 12px; }
  .pp-tags::-webkit-scrollbar { display: none; }
  .pp-tag { flex: none; }
}

/* ===== Оферта и правила возврата (0.9.1) ===== */
.legal { max-width: 860px; }
.legal .page-head p { max-width: 52ch; }
.legal-meta { color: var(--muted); margin: 0 0 24px; }
.legal h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.625rem); margin: 44px 0 14px; scroll-margin-top: 90px; }
.legal p, .legal li, .legal dd { line-height: 1.6; }
.legal p { margin: 0 0 12px; }
.legal ul, .legal ol { margin: 0 0 14px; padding-left: 1.3em; }
.legal li { margin-bottom: 6px; }
.legal a { text-underline-offset: 3px; }
.legal-toc { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 24px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); font-size: .9375rem; }
.legal-toc a { text-decoration: none; padding: 3px 0; }
.legal-toc a:hover { text-decoration: underline; }
.legal-terms { margin: 0; }
.legal-terms dt { font-weight: 700; margin-top: 12px; }
.legal-terms dd { margin: 2px 0 0; }
.legal-req { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.legal-req th, .legal-req td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.legal-req th { font-weight: 500; color: var(--muted); width: 42%; }
.legal-gap { background: var(--accent); color: var(--accent-ink); border-radius: 4px; padding: 0 4px; }
.legal-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 8px; }
.legal-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.legal-card h2 { margin: 0 0 10px; }
.legal-card p:last-child { margin-bottom: 0; }
@media (max-width: 640px) { .legal-cards { grid-template-columns: 1fr; } .legal-req th { width: auto; display: block; padding-bottom: 0; border: 0; } .legal-req td { display: block; padding-top: 2px; } .legal-req tr { display: block; } }
