/* Страница «Металлист», тёмная тема. Токены и общие компоненты: tokens.css, правила: ../../DESIGN.md */
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 10; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: var(--r-2); font-weight: 600; }
.skip:focus { top: 12px; }

/* Шапка: якоря */
.hdr-nav { display: flex; gap: var(--sp-5); margin-left: auto; margin-right: var(--sp-6); }
.hdr-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--fs-small); color: var(--text-2); text-decoration: none; }
.hdr-nav a:hover { color: var(--text); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
@media (max-width: 1100px) { .hdr-nav { display: none; } }

/* Первый экран */
.stage { position: relative; min-height: 900px; display: flex; flex-direction: column; overflow: hidden; }
.stage-photo { position: absolute; z-index: 0; inset: 0 auto 0 0; width: 62%; height: 74%; object-fit: cover; object-position: 30% 50%; filter: brightness(.8) contrast(1.08) saturate(.9); }
.stage::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(var(--bg-rgb),0) 0%, rgba(var(--bg-rgb),.18) 26%, rgba(var(--bg-rgb),.86) 50%, var(--bg) 62%),
    linear-gradient(180deg, rgba(var(--bg-rgb),.78) 0, rgba(var(--bg-rgb),0) 18%, rgba(var(--bg-rgb),0) 44%, rgba(var(--bg-rgb),.92) 68%, var(--bg) 74%); }
.stage > .hdr, .stage > .hero { position: relative; z-index: 2; }
.hero { flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding-top: 52px; padding-bottom: 44px; }
.hero-text { margin-left: 44%; }
.hero-text .lead { margin-top: var(--sp-5); }
.hero-text .cta { margin-top: var(--sp-6); }
.hero-text .note { margin-top: var(--sp-4); }
.hero .facts { margin-top: var(--sp-8); }
@media (max-width: 1100px) {
  .stage-photo { width: 100%; height: 420px; inset: 0 0 auto 0; object-position: 30% 40%; }
  .stage::before { background: linear-gradient(180deg, rgba(var(--bg-rgb),.7) 0, rgba(var(--bg-rgb),.1) 90px, rgba(var(--bg-rgb),.2) 260px, var(--bg) 420px); }
  .hero { padding-top: 330px; }
  .hero-text { margin-left: 0; }
}
@media (max-width: 640px) {
  .stage { min-height: 0; }
  .stage-photo { height: 270px; object-position: 30% 45%; }
  .stage::before { background: linear-gradient(180deg, rgba(var(--bg-rgb),.9) 0, rgba(var(--bg-rgb),.5) 64px, rgba(var(--bg-rgb),.08) 110px, rgba(var(--bg-rgb),.25) 180px, var(--bg) 270px); }
  .hero { padding-top: 176px; padding-bottom: 40px; }
  .hero-text .lead { margin-top: var(--sp-4); }
  .hero-text .cta { margin-top: var(--sp-5); }
  .hero-text .note { margin-top: var(--sp-3); }
  .hero .facts { margin-top: var(--sp-6); }
}

/* Секции */
.sec { padding-top: var(--sp-8); padding-bottom: var(--sp-8); }
.sec-band { background: var(--surface); padding-top: var(--sp-9); padding-bottom: var(--sp-9); margin: var(--sp-8) 0; }
.h2 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: var(--fs-h2); line-height: 1.05; text-wrap: balance; }
.h3 { margin: 0 0 var(--sp-3); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h3); line-height: 1.15; }
.sec-lead { margin: var(--sp-4) 0 0; font-size: var(--fs-lead); line-height: 1.5; color: var(--text-2); max-width: 36em; }
.sec-head { margin-bottom: var(--sp-7); }
.plain { margin: 0; padding: 0; list-style: none; }
.plain li { padding: 6px 0; }
.plain li:first-child { padding-top: 0; }
.shot { margin: 0; }
.shot img { width: 100%; height: auto; border-radius: var(--r-1); object-fit: cover; }
.shot figcaption { margin-top: var(--sp-2); font-size: var(--fs-micro); line-height: 1.4; color: var(--text-3); }
@media (max-width: 640px) {
  .sec { padding-top: 36px; padding-bottom: 36px; }
  .sec-band { padding-top: 56px; padding-bottom: 56px; margin: 36px 0; }
  .sec-head { margin-bottom: var(--sp-6); }
}

/* Возможности */
.caps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); column-gap: var(--sp-8); align-items: start; }
.caps .shot img { aspect-ratio: 29 / 25; }
.spec { margin: var(--sp-6) 0 0; }
.spec div { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--sp-5); align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); }
.spec div:last-child { border-bottom: 1px solid var(--line); }
.spec dt { color: var(--text-2); font-size: var(--fs-body); }
.spec dt small { display: block; font-size: var(--fs-micro); color: var(--text-3); }
.spec dd { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1.1; text-align: right; white-space: nowrap; }
.spec dd small { display: block; font-family: var(--font-body); font-weight: 400; font-size: var(--fs-small); color: var(--text-2); white-space: normal; }
@media (max-width: 1100px) { .caps { grid-template-columns: 1fr; row-gap: var(--sp-7); } }
@media (max-width: 640px) {
  .spec div { grid-template-columns: 1fr; row-gap: 2px; }
  .spec dd { text-align: left; font-size: 26px; }
}

/* Подготовка и покрытие */
.coat { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: var(--sp-8); align-items: start; }
.coat .shot img { aspect-ratio: 4 / 5; }
.props { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--sp-6); row-gap: var(--sp-6); }
.props > div { border-top: 1px solid var(--line); padding-top: var(--sp-4); }
.props > div.wide { grid-column: 1 / -1; }
.props dt { font-weight: 600; margin-bottom: 6px; }
.props dd { margin: 0; color: var(--text-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.tags li { padding: 8px 14px; background: var(--surface-2); border-radius: var(--r-1); font-size: var(--fs-small); color: var(--text); }
.ral-row { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.ral-row li { font-size: var(--fs-micro); line-height: 1; color: var(--text-2); font-variant-numeric: tabular-nums; }
.ral-row i { display: block; height: 44px; border-radius: 3px; margin-bottom: 6px; }
.ral-row i.edge { box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 1100px) { .coat { grid-template-columns: 1fr; row-gap: var(--sp-7); } .coat .shot img { aspect-ratio: 4 / 3; } }
@media (max-width: 640px) { .props { grid-template-columns: 1fr; } .ral-row { gap: 4px; } .ral-row li { font-size: 11px; } .ral-row i { height: 34px; } }

/* Цены */
.price { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--r-3); overflow: hidden; }
.sec-band .price { background: var(--bg); }
.price th, .price td { padding: 18px 24px; text-align: left; border-top: 1px solid var(--line); vertical-align: baseline; }
.price thead th { border-top: 0; background: var(--surface-2); font-weight: 500; font-size: var(--fs-small); color: var(--text-2); }
.price td.num, .price th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price td.num { font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1; }
.price td.unit { color: var(--text-2); white-space: nowrap; }
@media (max-width: 640px) {
  .price thead { display: none; }
  .price tr { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line); }
  .price tbody tr:first-child { border-top: 0; }
  .price th, .price td { padding: 0; border: 0; }
  .price td.work { grid-column: 1 / -1; margin-bottom: 6px; }
  .price td.num { font-size: 26px; }
}

/* Как проходит заказ */
.flow { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); column-gap: var(--sp-8); align-items: start; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--sp-6); row-gap: var(--sp-6); }
.steps li { counter-increment: step; border-top: 1px solid var(--line); padding-top: var(--sp-4); }
.steps li::before { content: counter(step); display: block; font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 1; color: var(--text-3); margin-bottom: var(--sp-2); }
.steps b { display: block; font-size: 19px; font-weight: 600; margin-bottom: 4px; }
.steps span { color: var(--text-2); }
.flow .shot img { aspect-ratio: 4 / 5; }
@media (max-width: 1100px) { .flow { grid-template-columns: 1fr; row-gap: var(--sp-7); } .flow .shot img { aspect-ratio: 4 / 3; } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }

/* Гарантия */
.warranty { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); column-gap: var(--sp-8); align-items: start; }
@media (max-width: 900px) { .warranty { grid-template-columns: 1fr; row-gap: var(--sp-6); } }

/* Заявка */
.order { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); column-gap: var(--sp-8); align-items: start; }
.form { background: var(--surface); border-radius: var(--r-3); padding: var(--sp-6); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--sp-4); row-gap: var(--sp-5); }
.sec-band .form { background: var(--bg); }
.field { display: flex; flex-direction: column; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field .label { font-size: var(--fs-small); color: var(--text-2); margin-bottom: 6px; }
.field .hint { font-size: var(--fs-micro); color: var(--text-3); margin-top: 6px; }
.input, .select, .textarea {
  width: 100%; min-height: 56px; padding: 14px 16px; font: 400 17px/1.4 var(--font-body); color: var(--text);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-1); appearance: none;
}
.textarea { min-height: 112px; resize: vertical; }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23B6BBC2' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-position: right 16px center; background-size: 12px 8px; background-repeat: no-repeat; padding-right: 40px; }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { border-color: var(--text); outline: 3px solid var(--text); outline-offset: 2px; }
.field.invalid .input, .field.invalid .textarea { border-color: var(--error); }
.field .err { display: none; font-size: var(--fs-small); color: var(--error); margin-top: 6px; }
.field.invalid .err { display: block; }
.vol { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 8px; }
.file { position: relative; border: 1.5px dashed var(--line); border-radius: var(--r-1); padding: 18px 16px; color: var(--text-2); }
.file:focus-within { border-color: var(--text); outline: 3px solid var(--text); outline-offset: 2px; }
.file input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file b { color: var(--text); font-weight: 600; }
.file-picked { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-4); margin-top: 8px; }
.file-picked[hidden] { display: none; }
.file-list { margin: 0; padding: 0; list-style: none; font-size: var(--fs-small); color: var(--text); min-width: 0; overflow-wrap: anywhere; }
.file-list li { padding: 4px 0; }
.link-btn { flex: none; min-height: 44px; margin-top: -8px; padding: 0 2px; background: none; border: 0; cursor: pointer; font: 500 var(--fs-small)/1 var(--font-body); color: var(--text); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.link-btn:hover { text-decoration-color: var(--accent); }
.check { display: flex; gap: 12px; align-items: center; min-height: 44px; font-size: var(--fs-small); color: var(--text-2); cursor: pointer; }
.check input { width: 24px; height: 24px; margin: 0; accent-color: var(--accent); flex: none; cursor: pointer; }
.form .btn { width: 100%; }
.form .btn[disabled] { background: var(--surface-2); color: var(--text-3); cursor: default; }
.form-status { grid-column: 1 / -1; margin: 0; padding: 14px 16px; border-radius: var(--r-1); border: 1px solid var(--line); font-size: var(--fs-small); }
.form-status[hidden] { display: none; }
.form-status.ok { border-color: var(--success); color: var(--success); }
.form-status.bad { border-color: var(--warning); color: var(--text); }
.reach p { margin: 0 0 var(--sp-4); color: var(--text-2); }
.reach .big-tel { display: inline-flex; align-items: center; min-height: 48px; font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 1; text-decoration: none; margin-bottom: var(--sp-4); white-space: nowrap; }
.reach .links { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.reach .links .btn { height: 48px; padding: 0 20px; font-size: 16px; width: auto; }
@media (max-width: 1100px) { .order { grid-template-columns: 1fr; row-gap: var(--sp-7); } }
@media (max-width: 640px) {
  .form { grid-template-columns: 1fr; padding: var(--sp-5) var(--sp-4); }
  .vol { grid-template-columns: minmax(0, 1fr) 120px; }
  .reach .big-tel { font-size: 36px; }
}

/* Панель с кнопкой заявки: появляется, когда кнопка первого экрана ушла из вида, и прячется у формы */
.bar { position: fixed; z-index: 20; left: 0; right: 0; top: 0; background: var(--bg); border-bottom: 1px solid var(--line); transform: translateY(-101%); visibility: hidden; transition: transform .28s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .28s; }
.bar.on { transform: none; visibility: visible; transition: transform .28s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
.bar-in { height: 64px; display: flex; align-items: center; gap: var(--sp-5); }
.bar .logo { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; }
.bar .logo img { height: 22px; width: auto; }
.bar-tel { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 17px; text-decoration: none; white-space: nowrap; }
.bar-tel svg { display: none; }
.bar-tel:hover span { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.bar .btn { height: 44px; padding: 0 20px; font-size: 16px; width: auto; }
@media (max-width: 640px) {
  body { padding-bottom: 76px; }
  .bar { top: auto; bottom: 0; border-bottom: 0; border-top: 1px solid var(--line); transform: translateY(101%); padding-bottom: env(safe-area-inset-bottom); }
  .bar-in { height: 68px; gap: var(--sp-3); }
  .bar .logo { display: none; }
  .bar .btn { order: 1; flex: 1; height: 48px; }
  .bar-tel { order: 2; flex: none; width: 48px; height: 48px; justify-content: center; border: 1.5px solid var(--text); border-radius: var(--r-2); }
  .bar-tel span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .bar-tel svg { display: block; }
}
@media (prefers-reduced-motion: reduce) { .bar, .bar.on { transition: none; } }

/* Ссылка в тексте */
.link { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.link:hover { text-decoration-color: var(--accent); }

/* Что берём: крупный список слева, условия справа */
.take { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); column-gap: var(--sp-8); align-items: start; }
.take-list { margin: var(--sp-7) 0 0; padding: 0; list-style: none; columns: 2; column-gap: var(--sp-7); }
.take-list li { break-inside: avoid; padding: 0 0 var(--sp-4); font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 1.1; }
.take-side { background: var(--surface); border-radius: var(--r-3); padding: var(--sp-6); }
.take-side .h3 { font-size: 24px; margin-bottom: var(--sp-2); }
.take-side p { margin: 0 0 var(--sp-5); color: var(--text-2); }
.take-side p:last-child { margin-bottom: 0; }
@media (max-width: 1100px) { .take { grid-template-columns: 1fr; row-gap: var(--sp-7); } }
@media (max-width: 640px) {
  .take-list { columns: 1; margin-top: var(--sp-6); }
  .take-list li { font-size: 26px; padding-bottom: var(--sp-3); }
  .take-side { padding: var(--sp-5) var(--sp-4); }
}

/* Цены: таблица и условия рядом, ниже что влияет на цену */
.price-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); column-gap: var(--sp-8); align-items: start; }
.price-side p { margin: 0 0 var(--sp-3); color: var(--text-2); }
.price-factors { margin-top: var(--sp-7); display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); column-gap: var(--sp-8); row-gap: var(--sp-6); }
.price-factors .h3 { font-size: 24px; margin-bottom: 0; }
@media (max-width: 1100px) { .price-grid, .price-factors { grid-template-columns: 1fr; row-gap: var(--sp-6); } }

/* Примеры покраски: один крупный кадр и пять малых */
.works { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--sp-5); }
.works li { grid-column: span 4; }
.works .w-big { grid-column: span 8; grid-row: span 2; }
.works figure { margin: 0; height: 100%; display: flex; flex-direction: column; }
.works img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-1); }
.works .w-big img { flex: 1; min-height: 0; aspect-ratio: auto; }
.works figcaption { margin-top: var(--sp-2); font-size: var(--fs-small); color: var(--text-2); }
@media (max-width: 900px) {
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
  .works li { grid-column: span 1; }
  .works .w-big { grid-column: span 2; grid-row: auto; }
  .works .w-big img { flex: none; aspect-ratio: 16 / 10; }
  .works li:last-child { grid-column: span 2; }
  .works li:last-child img { aspect-ratio: 16 / 10; }
}

/* Как нас найти: адрес крупно, справа факты */
.find { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--sp-8); align-items: start; }
.find .addr { margin: var(--sp-5) 0 var(--sp-2); font-family: var(--font-display); font-weight: 700; font-size: 44px; line-height: 1.05; text-wrap: balance; }
.find p { margin: 0; }
.find-facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--sp-6); row-gap: var(--sp-6); padding-top: var(--sp-3); }
.find-facts dt { font-size: var(--fs-small); color: var(--text-3); margin-bottom: 4px; }
.find-facts dd { margin: 0; color: var(--text); }
.find-facts dd .link { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 900px) { .find { grid-template-columns: 1fr; row-gap: var(--sp-6); } }
@media (max-width: 640px) { .find .addr { font-size: 32px; } .find-facts { grid-template-columns: 1fr; row-gap: var(--sp-5); } }

/* Подвал: имя цеха возвращается крупно */
.ftr { margin-top: var(--sp-8); background: var(--surface); padding-top: var(--sp-8); padding-bottom: var(--sp-7); }
.ftr-logo { display: block; width: min(100%, 520px); height: auto; }
.ftr-row { margin-top: var(--sp-7); display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-7); align-items: center; }
.ftr p { margin: 0; font-size: var(--fs-small); color: var(--text-2); }
@media (max-width: 640px) { .ftr { padding-top: var(--sp-7); } .ftr-row { margin-top: var(--sp-6); flex-direction: column; align-items: flex-start; gap: 0; } .ftr-row p:not(:has(a)) { padding: 6px 0; } }

/* Движение. Блоки входят по мере прокрутки: один раз, без отскока, только сдвиг и прозрачность.
   Класс .rise ставит скрипт, поэтому без скрипта всё видно сразу. */
.rise { opacity: 0; transform: translateY(18px); transition: opacity .5s cubic-bezier(.2, .8, .2, 1), transform .6s cubic-bezier(.2, .8, .2, 1); }
.rise.in { opacity: 1; transform: none; }
a, button, .file, .input, .select, .textarea { touch-action: manipulation; }
.input, .select, .textarea, .file { transition: border-color .12s ease-out, background-color .12s ease-out; }
.file.drag { border-color: var(--text); background: var(--surface-2); }
.link, .hdr-nav a, .bar-tel span { transition: text-decoration-color .12s ease-out, color .12s ease-out; }
@media (prefers-reduced-motion: reduce) {
  .rise { transform: none; transition: opacity .2s ease; }
  .btn:active { transform: none; }
}
@media (prefers-contrast: more) {
  :root, [data-theme="dark"] { --line: #7A828B; --text-2: #E3E5E8; --text-3: #C9CDD2; }
}
@media print { .rise { opacity: 1 !important; transform: none !important; } .bar { display: none; } }

/* Ловушка для роботов: поле не видно людям и недоступно с клавиатуры */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.link-inline { color: var(--text); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.link-inline:hover { text-decoration-color: var(--accent); }
/* Ссылка на политику под галочкой согласия: отступ ровно под текстом галочки (24 + 12) */
.check-more { margin: 0 0 0 36px; font-size: var(--fs-small); color: var(--text-2); }
.check-more a { display: inline-flex; align-items: center; min-height: 32px; }

/* Подбор фактуры и цвета. Цвет лежит под серой «картой рельефа» фактуры, карта наложена режимом hard-light:
   средний серый цвет не меняет, светлое даёт блик, тёмное даёт тень. Картинку переключает сам CSS через :has(),
   скрипт только обновляет подпись, отключает неправдоподобные пары и передаёт выбор в форму. */
.finish { margin-top: var(--sp-8); }
.cfg { --c: #154889; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: var(--sp-8); align-items: start; }
.cfg:has(input[value="9016"]:checked) { --c: #F1F0EA; }
.cfg:has(input[value="1023"]:checked) { --c: #F7B500; }
.cfg:has(input[value="3020"]:checked) { --c: #C1121C; }
.cfg:has(input[value="5012"]:checked) { --c: #0089B6; }
.cfg:has(input[value="5005"]:checked) { --c: #154889; }
.cfg:has(input[value="6018"]:checked) { --c: #61993B; }
.cfg:has(input[value="7024"]:checked) { --c: #45494E; }
.cfg:has(input[value="9005"]:checked) { --c: #0E0E10; }
.cfg-stage { position: relative; aspect-ratio: 3 / 2; border-radius: var(--r-1); overflow: hidden; background: var(--c); isolation: isolate; transition: background-color .25s ease-out; }
.cfg-stage .tx { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: hard-light; opacity: 0; transition: opacity .3s cubic-bezier(.2, .8, .2, 1); }
.cfg:has(input[value="glyanec"]:checked) .tx-glyanec,
.cfg:has(input[value="mat"]:checked) .tx-mat,
.cfg:has(input[value="shagren"]:checked) .tx-shagren,
.cfg:has(input[value="muar"]:checked) .tx-muar,
.cfg:has(input[value="metallik"]:checked) .tx-metallik { opacity: 1; }
.cfg-caption { margin: var(--sp-3) 0 0; font-weight: 600; color: var(--text); }
.cfg-controls .h3 { margin-bottom: var(--sp-5); }
.cfg-set { margin: 0 0 var(--sp-5); padding: 0; border: 0; min-width: 0; }
.cfg-set legend { padding: 0; margin-bottom: var(--sp-2); font-size: var(--fs-small); color: var(--text-2); }
.cfg input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.cfg-tex { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-2); }
.cfg-col { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.tex-opt, .col-opt { position: relative; display: block; cursor: pointer; touch-action: manipulation; }
.tex-chip { display: block; aspect-ratio: 3 / 2; border-radius: 3px; overflow: hidden; background: var(--c); isolation: isolate; transition: background-color .25s ease-out, transform .1s ease-out; }
.tex-chip img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: hard-light; }
.col-chip { display: block; height: 44px; border-radius: 3px; transition: transform .1s ease-out; }
.col-chip.edge { box-shadow: inset 0 0 0 1px var(--line); }
.opt-name { display: block; margin-top: 6px; font-size: var(--fs-micro); line-height: 1.2; color: var(--text-2); font-variant-numeric: tabular-nums; }
.tex-opt:active .tex-chip, .col-opt:active .col-chip { transform: scale(.96); }
.tex-opt:has(input:checked) .tex-chip, .col-opt:has(input:checked) .col-chip { outline: 2px solid var(--text); outline-offset: 2px; }
.tex-opt:has(input:checked) .opt-name, .col-opt:has(input:checked) .opt-name { color: var(--text); font-weight: 600; }
.tex-opt:has(input:focus-visible) .tex-chip, .col-opt:has(input:focus-visible) .col-chip { outline: 3px solid var(--accent); outline-offset: 3px; }
.col-opt:has(input:disabled) { opacity: .28; cursor: not-allowed; }
.cfg-hint { margin: var(--sp-3) 0 0; font-size: var(--fs-small); color: var(--text-2); }
.cfg-hint[hidden] { display: none; }
.cfg-controls .btn { margin-top: var(--sp-2); }
.cfg-note { margin: var(--sp-5) 0 0; font-size: var(--fs-small); color: var(--text-3); }
.cfg-strip { margin-top: var(--sp-8); }
.cfg-strip img { aspect-ratio: 16 / 5; object-position: 50% 62%; }
@media (max-width: 1100px) { .cfg { grid-template-columns: 1fr; row-gap: var(--sp-6); } }
@media (max-width: 640px) {
  .finish { margin-top: var(--sp-7); }
  .cfg-tex { gap: 6px; }
  .cfg-col { gap: 4px; }
  .col-chip { height: 40px; }
  .opt-name { font-size: 12px; }
  .cfg-controls .btn { width: 100%; }
  .cfg-strip { margin-top: var(--sp-7); }
  .cfg-strip img { aspect-ratio: 16 / 8; }
}
@media (prefers-reduced-motion: reduce) {
  .cfg-stage, .cfg-stage .tx, .tex-chip, .col-chip { transition: none; }
  .tex-opt:active .tex-chip, .col-opt:active .col-chip { transform: none; }
}

/* Чипы с пояснением: почему это влияет на цену */
.tags-why { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.tags-why li { padding: 12px 14px; }
.tags-why b { display: block; font-weight: 600; }
.tags-why span { display: block; margin-top: 2px; color: var(--text-2); line-height: 1.4; }

/* Якоря на планшете и телефоне: второй строкой шапки, на телефоне три главных */
@media (max-width: 1100px) {
  .stage .hdr { height: auto; flex-wrap: wrap; row-gap: 0; padding-top: 16px; }
  .hdr-nav { display: flex; order: 3; flex-basis: 100%; margin: 0; gap: var(--sp-5); }
  .hdr-nav a { color: var(--text); }
  .stage::before { background: linear-gradient(180deg, rgba(var(--bg-rgb),.88) 0, rgba(var(--bg-rgb),.72) 120px, rgba(var(--bg-rgb),.12) 180px, rgba(var(--bg-rgb),.2) 260px, var(--bg) 420px); }
  .hero { padding-top: 302px; }
}
@media (max-width: 640px) {
  .stage .hdr { padding-top: 12px; }
  .hdr-nav .nav-x { display: none; }
  .stage::before { background: linear-gradient(180deg, rgba(var(--bg-rgb),.92) 0, rgba(var(--bg-rgb),.8) 108px, rgba(var(--bg-rgb),.1) 150px, rgba(var(--bg-rgb),.25) 200px, var(--bg) 270px); }
  .hero { padding-top: 144px; }
}

/* Форма: пометка необязательных полей и ошибка у согласия */
.opt { margin-left: 6px; font-size: var(--fs-micro); color: var(--text-3); }
.field.invalid .check input { outline: 2px solid var(--error); outline-offset: 2px; }

/* Движущийся рельс: детали едут по линии и чуть качаются (вариант B, выбран 21.11).
   Только transform, без SMIL; стоит, пока полоса вне экрана (класс .on ставит site.js); при «уменьшить движение» — статичный кадр */
.line-band { --n: 5; --s: 1; --dur: 28s; position: relative; height: calc(40px + 190px * var(--s)); overflow: hidden; color: var(--rail); pointer-events: none; contain: layout paint; }
.line-band::before, .line-band::after { content: ""; position: absolute; left: 0; right: 0; background: currentColor; }
.line-band::before { top: 19px; height: 3px; opacity: .3; }
.line-band::after { top: 29px; height: 1px; opacity: .12; }
.line-band .lane { position: absolute; inset: 0;
  transform: translateX(calc(var(--i) * 100% / var(--n) + 50% / var(--n)));
  animation: line-ride var(--dur) linear infinite paused; animation-delay: calc(var(--i) * var(--dur) / var(--n) * -1); }
.line-band svg { position: absolute; top: 20px; left: calc(-100px * var(--s)); width: calc(200px * var(--s)); height: calc(190px * var(--s)); overflow: visible;
  fill: none; stroke: currentColor; stroke-opacity: .18; stroke-width: 1.5; transform-origin: calc(100px * var(--s)) 0;
  animation: line-sway 1.2s cubic-bezier(.37, 0, .63, 1) infinite alternate paused; animation-delay: calc(var(--i) * -.53s); }
.line-band svg * { vector-effect: non-scaling-stroke; }
.line-band .hook { stroke-opacity: .3; }
.line-band.on .lane, .line-band.on svg { animation-play-state: running; }
@keyframes line-ride { from { transform: translateX(-120px); } to { transform: translateX(calc(100% + 120px)); } }
/* Качание: цикл 2,4 с (0,42 Гц) — дальше от медленных колебаний около 0,2 Гц, которые укачивают; кривая синусоидальная, как у маятника */
@keyframes line-sway { from { rotate: -1.5deg; } to { rotate: 1.5deg; } }
@media (max-width: 1100px) { .line-band { --s: .75; --dur: 24s; } }
@media (max-width: 640px) { .line-band { --n: 3; --s: .55; --dur: 18s; } .line-band .lane:nth-child(n+4) { display: none; } }
@media (prefers-reduced-motion: reduce) { .line-band .lane, .line-band svg { animation: none; } }
#zakaz .line-band { margin: calc(var(--sp-8) * -1 + 8px) 0 var(--sp-6); }

/* Частые вопросы: аккордеон на <details>, без JS. Вопросы — h3 внутри summary, чтобы их видели поисковики и ассистенты */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); column-gap: var(--sp-8); align-items: start; }
.faq-wrap .sec-head { margin-bottom: 0; }
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); min-height: 64px; padding: var(--sp-4) 0; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { margin: 0; font-family: var(--font-body); font-weight: 600; font-size: var(--fs-lead); line-height: 1.35; color: var(--text); }
.faq-item summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 6px; border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: translateY(-3px) rotate(45deg); transition: transform .2s cubic-bezier(.2, 0, 0, 1); }
.faq-item[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq-item summary:hover::after { border-color: var(--text); }
.faq-a { padding: 0 0 var(--sp-5); max-width: 64ch; }
.faq-a p { margin: 0; color: var(--text-2); }
@media (max-width: 1100px) { .faq-wrap { grid-template-columns: 1fr; } .faq-wrap .sec-head { margin-bottom: var(--sp-6); } }
@media (prefers-reduced-motion: reduce) { .faq-item summary::after { transition: none; } }
