/* Шрифты лежат на своём сервере — без запросов к Google */
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/onest-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/onest-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD,U+20BD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/onest-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/onest-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD,U+20BD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/onest-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/onest-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD,U+20BD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 700; font-display: swap; src: url("/static/fonts/onest-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 700; font-display: swap; src: url("/static/fonts/onest-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD,U+20BD; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/unbounded-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/unbounded-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD,U+20BD; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 700; font-display: swap; src: url("/static/fonts/unbounded-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 700; font-display: swap; src: url("/static/fonts/unbounded-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD,U+20BD; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 800; font-display: swap; src: url("/static/fonts/unbounded-cyrillic-800-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 800; font-display: swap; src: url("/static/fonts/unbounded-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD,U+20BD; }

:root {
  --paper: #eef1f4;
  --surface: #ffffff;
  --ink: #14181f;
  --ink-soft: #4d5663;
  --line: #cbd3dc;
  --petg: #138f87;
  --petg-deep: #0c615c;
  --petg-glass: rgba(19, 143, 135, 0.12);
  --amber: #e29a2f;
  --danger: #c23b3b;
  --ok: #2f8a4f;
  --radius-lg: 22px;
  --radius-sm: 10px;
  --display: "Unbounded", "Onest", system-ui, sans-serif;
  --body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--body);
}
img, canvas { max-width: 100%; display: block; }
a { color: var(--petg-deep); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---------- шапка ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo {
  font: 800 20px/1 var(--display); color: var(--ink); text-decoration: none;
  display: flex; align-items: center; gap: 10px; letter-spacing: -0.01em;
}
.logo-mark {
  width: 28px; height: 28px; border-radius: 7px; background:
    repeating-linear-gradient(0deg, var(--petg) 0 3px, var(--petg-deep) 3px 4px);
}
.nav { display: flex; gap: 20px; margin-left: auto; align-items: center; }
.nav .nav-tg { color: var(--petg-deep); font-weight: 600; }
.nav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav-toggle { display: none; }

@media (max-width: 1080px) {
  .top .wrap { gap: 12px; }
  .nav-toggle {
    display: inline-flex; margin-left: auto; background: none; border: 1px solid var(--line);
    border-radius: 999px; padding: 8px 14px; font: 600 14px var(--body); color: var(--ink);
  }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column;
    align-items: flex-start; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px;
  }
  .nav.open { display: flex; }
  .nav a, .nav .btn { padding: 10px 0; font-size: 17px; }
}

/* ---------- кнопки и поля ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 16px/1 var(--body); padding: 15px 24px; border-radius: 999px;
  border: 2px solid var(--ink); background: var(--ink); color: #fff;
  cursor: pointer; text-decoration: none; transition: background .15s, color .15s;
}
.btn:hover { background: var(--petg-deep); border-color: var(--petg-deep); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.small { padding: 10px 16px; font-size: 14px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--petg-deep); cursor: pointer; text-decoration: underline; }

label.field { display: block; margin-bottom: 14px; }
label.field > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--ink-soft); }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=number], input[type=date], select, textarea {
  width: 100%; font: 16px/1.4 var(--body); color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px;
}
input:focus, select:focus, textarea:focus { border-color: var(--petg); outline: none; box-shadow: 0 0 0 3px var(--petg-glass); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--petg); }

.err { color: var(--danger); font-size: 14px; margin: 8px 0 0; min-height: 1em; }
.note { color: var(--ink-soft); font-size: 14px; }
.hidden { display: none !important; }

/* ---------- типографика ---------- */
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(36px, 6.2vw, 76px); line-height: 1.02; font-weight: 800; }
h2 { font-size: clamp(26px, 3.6vw, 42px); line-height: 1.1; font-weight: 700; }
h3 { font-size: 19px; line-height: 1.25; font-weight: 700; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-soft); max-width: 36em; }
.section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { color: var(--ink-soft); margin: 14px 0 0; }

/* ---------- главная: герой ---------- */
.hero { padding: 64px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
/* надпись «напечатана» слоями — как деталь на принтере */
.layered .row {
  display: block;
  background: repeating-linear-gradient(180deg, var(--ink) 0 5px, #3a4350 5px 6px);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.layered .fresh {
  background: repeating-linear-gradient(180deg, var(--petg) 0 5px, var(--petg-deep) 5px 6px);
  -webkit-background-clip: text; background-clip: text;
}
.hero .lead { margin: 22px 0 30px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px; font-size: 15px; color: var(--ink-soft); }
.hero-facts b { color: var(--ink); font-weight: 600; }

@media (prefers-reduced-motion: no-preference) {
  .hero h1 .row { display: block; clip-path: inset(100% 0 0 0); animation: print 1.1s steps(18, end) forwards; }
  .hero h1 .row:nth-child(2) { animation-delay: .9s; }
  @keyframes print { to { clip-path: inset(0 0 0 0); } }
}

.drop {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; min-height: 360px; padding: 32px;
  background: var(--surface); border: 2px dashed var(--line); border-radius: var(--radius-lg);
  cursor: pointer; transition: border-color .15s, background .15s;
}
.drop:hover, .drop.over { border-color: var(--petg); background: #f6fbfa; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop .icon {
  width: 84px; height: 84px; border-radius: 20px; margin-bottom: 20px;
  background: repeating-linear-gradient(0deg, var(--petg) 0 4px, var(--petg-deep) 4px 5px);
  clip-path: polygon(50% 0, 100% 28%, 100% 72%, 50% 100%, 0 72%, 0 28%);
}
.drop strong { font: 700 20px/1.25 var(--display); }
.drop p { margin: 10px 0 0; color: var(--ink-soft); font-size: 15px; }
.drop .progress { width: 70%; height: 6px; border-radius: 3px; background: var(--paper); margin-top: 18px; overflow: hidden; }
.drop .progress i { display: block; height: 100%; width: 0; background: var(--petg); transition: width .2s; }

@media (max-width: 880px) {
  .hero { padding: 36px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .drop { min-height: 240px; }
}

/* ---------- главная: состав цены ---------- */
.price-parts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
.price-parts > div { padding: 26px 26px 6px 0; }
.price-parts > div + div { padding-left: 26px; border-left: 1px solid var(--line); }
.price-parts p { color: var(--ink-soft); margin: 10px 0 0; }
@media (max-width: 760px) {
  .price-parts { grid-template-columns: 1fr; }
  .price-parts > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- шаги ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.steps li { counter-increment: s; padding: 0 22px 0 0; position: relative; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: #fff; font: 700 17px var(--display); margin-bottom: 18px;
}
.steps li::after {
  content: ""; position: absolute; top: 22px; left: 52px; right: 8px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 10px);
}
.steps li:last-child::after { display: none; }
.steps p { color: var(--ink-soft); margin: 8px 0 0; font-size: 16px; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .steps li::after { display: none; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- материал ---------- */
.material { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.swatches { display: flex; flex-wrap: wrap; gap: 14px; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-soft); width: 76px; text-align: center; }
.swatch i {
  width: 60px; height: 60px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12);
  box-shadow: inset 0 -10px 18px rgba(0,0,0,.18), inset 0 8px 14px rgba(255,255,255,.35);
}
.props { list-style: none; padding: 0; margin: 22px 0 0; }
.props li { padding: 12px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 860px) { .material { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { font-weight: 600; font-size: 19px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font: 500 24px/1 var(--display); color: var(--petg); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-soft); margin: 12px 0 0; max-width: 44em; }

.cta-band { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; max-width: 15em; }
.cta-band .btn { background: var(--petg); border-color: var(--petg); }
.cta-band .btn:hover { background: #fff; color: var(--ink); border-color: #fff; }
@media (max-width: 600px) { .cta-band { padding: 32px 24px; } }

/* ---------- подвал ---------- */
.foot { border-top: 1px solid var(--line); padding: 36px 0 48px; margin-top: 40px; font-size: 14px; color: var(--ink-soft); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot a { color: var(--ink-soft); }

/* ---------- модальное окно входа ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(20,24,31,.55); }
.modal-box { width: 100%; max-width: 420px; background: var(--surface); border-radius: var(--radius-lg); padding: 30px; position: relative; }
.modal-box h2 { font-size: 24px; margin-bottom: 8px; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--paper); font-size: 20px; cursor: pointer; }
.code-input { font: 700 28px/1 var(--display) !important; letter-spacing: .4em; text-align: center; }

/* ---------- страницы приложения ---------- */
.page { padding: 40px 0 60px; }
.page h1 { font-size: clamp(30px, 4.4vw, 48px); margin-bottom: 10px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }

/* конструктор */
.order-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; margin-top: 28px; }
.summary { position: sticky; top: 84px; }
@media (max-width: 960px) {
  .order-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
}
.model { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 22px; margin-bottom: 18px; }
.viewer {
  position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; touch-action: none;
  background: radial-gradient(circle at 50% 35%, #fff, #dde3ea);
}
.viewer .dims { position: absolute; left: 10px; bottom: 10px; font-size: 13px; background: rgba(255,255,255,.85); padding: 4px 9px; border-radius: 6px; }
.model-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 14px; }
.model-head h3 { word-break: break-all; font-size: 17px; }
.model-head .remove { flex: none; }
.opts { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 0 16px; }
.colors { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.colors button {
  width: 36px; height: 36px; border-radius: 50%; border: 2px solid transparent; padding: 0; cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.15);
}
.colors button[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 4px rgba(0,0,0,.15); }
.warn { background: #fff6e8; border-left: 3px solid var(--amber); padding: 10px 12px; border-radius: 6px; font-size: 14px; margin-top: 10px; }
.model-price { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; font-size: 15px; color: var(--ink-soft); }
.model-price b { font: 700 22px var(--display); color: var(--ink); }
@media (max-width: 700px) {
  .model { grid-template-columns: 1fr; }
  .viewer { max-width: 360px; width: 100%; margin: 0 auto; }
}
@media (max-width: 520px) { .opts { grid-template-columns: 1fr; } }

.add-more { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 92px; border: 2px dashed var(--line); border-radius: var(--radius-lg); position: relative; color: var(--ink-soft); font-weight: 600; cursor: pointer; }
.add-more:hover { border-color: var(--petg); color: var(--ink); }
.add-more input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 15px; }
.sum-row span:first-child { color: var(--ink-soft); }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid var(--ink); margin-top: 10px; padding-top: 14px; }
.sum-total b { font: 800 30px var(--display); }

/* заказы */
.order-card { margin-bottom: 18px; }
.order-card header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 14px; }
.badge { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--paper); }
.badge.awaiting_payment { background: #fff0d9; color: #8a5300; }
.badge.paid, .badge.printing { background: var(--petg-glass); color: var(--petg-deep); }
.badge.ready, .badge.shipped { background: #e4effc; color: #1f4f8f; }
.badge.done { background: #e5f4ea; color: var(--ok); }
.badge.cancelled { background: #f6e3e3; color: var(--danger); }
.track { display: flex; gap: 4px; margin: 6px 0 16px; }
.track i { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.track i.on { background: var(--petg); }
.items { width: 100%; border-collapse: collapse; font-size: 15px; }
.items th { text-align: left; font-weight: 600; color: var(--ink-soft); font-size: 13px; padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line); }
.items td { padding: 10px 8px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-scroll { overflow-x: auto; }

.empty { text-align: center; padding: 56px 20px; }
.empty p { color: var(--ink-soft); }

/* статистика */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--ink); margin-top: 28px; }
.stats > div { padding: 24px 24px 24px 0; }
.stats > div + div { border-left: 1px solid var(--line); padding-left: 24px; }
.stats b { display: block; font: 800 clamp(34px, 5vw, 56px)/1 var(--display); }
.stats span { color: var(--ink-soft); }
@media (max-width: 700px) {
  .stats { grid-template-columns: 1fr; }
  .stats > div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
}

/* юридические страницы */
.legal { max-width: 760px; }
.legal h2 { font-size: 22px; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--ink-soft); }

/* админка */
.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0; }
.admin-tabs button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px; font: 600 14px var(--body); cursor: pointer; }
.admin-tabs button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpis div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.kpis b { display: block; font: 700 24px var(--display); }
.kpis span { font-size: 13px; color: var(--ink-soft); }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 18px; }
.inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline select, .inline input { width: auto; padding: 8px 10px; font-size: 14px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; z-index: 60; font-size: 15px; }

/* выбор слоя и стенок */
.choice { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.choice legend { font-size: 14px; font-weight: 600; color: var(--ink-soft); margin-bottom: 8px; padding: 0; }
.choice legend b { color: var(--ink); margin-left: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button {
  min-width: 46px; padding: 8px 10px; border-radius: 10px; border: 1.5px solid var(--line);
  background: var(--surface); font: 600 14px var(--body); color: var(--ink); cursor: pointer;
}
.chips button:hover { border-color: var(--petg); }
.chips button[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.hint { display: flex; gap: 12px; align-items: center; margin-top: 10px; background: #f6f8fa; border-radius: 12px; padding: 10px; }
.hint .mini { width: 88px; height: auto; flex: none; display: block; }
.hint span:first-child { flex: none; }
.hint p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
.hint p b { display: block; color: var(--petg-deep); font-size: 13px; margin-bottom: 2px; }
.qty-field { max-width: 180px; }

.explain { margin-bottom: 18px; padding: 0; }
.explain summary { cursor: pointer; padding: 18px 24px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.explain summary::after { content: "+"; font: 500 22px/1 var(--display); color: var(--petg); }
.explain[open] summary::after { content: "−"; }
.explain-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 0 24px 24px; }
.explain-grid h3 { margin-bottom: 8px; }
.explain-grid p { margin: 0 0 12px; color: var(--ink-soft); font-size: 15px; }
.explain-pair { display: flex; gap: 14px; margin-bottom: 10px; }
.explain-pair figure { margin: 0; }
.explain-pair .mini { width: 120px; height: auto; display: block; }
.explain-pair figcaption { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }
@media (max-width: 700px) { .explain-grid { grid-template-columns: 1fr; } }

/* главная: слой и стенки */
.tune { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 2px solid var(--ink); }
.tune > div { padding: 26px 32px 0 0; }
.tune > div + div { padding-left: 32px; border-left: 1px solid var(--line); }
.tune p { color: var(--ink-soft); margin: 10px 0 20px; }
.tune-row { display: flex; gap: 14px; flex-wrap: wrap; }
.tune-row figure { margin: 0; width: 120px; }
.tune-row .mini { width: 120px; height: 72px; display: block; }
.tune-row figcaption { font-size: 13px; color: var(--ink-soft); margin-top: 8px; }
.tune-row figcaption b { display: block; color: var(--ink); font-size: 14px; }
@media (max-width: 860px) {
  .tune { grid-template-columns: 1fr; }
  .tune > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 26px; }
  .tune-row figure { width: calc(33% - 10px); }
  .tune-row .mini { width: 100%; }
}

/* индивидуальный заказ и опт */
.routes { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 2px solid var(--ink); margin: 32px 0 48px; }
.route { padding: 28px 32px 8px 0; display: flex; flex-direction: column; align-items: flex-start; }
.route + .route { padding-left: 32px; border-left: 1px solid var(--line); }
.route h2 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 18px; }
.route .note { margin: 0 0 20px; }
.route .btn { margin-top: auto; }
.ticks { list-style: none; padding: 0; margin: 0 0 16px; }
.ticks li { position: relative; padding: 0 0 14px 30px; color: var(--ink-soft); }
.ticks li b { color: var(--ink); font-weight: 600; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 12px; border-radius: 3px;
  background: repeating-linear-gradient(0deg, var(--petg) 0 3px, var(--petg-deep) 3px 4px);
}
@media (max-width: 860px) {
  .routes { grid-template-columns: 1fr; }
  .route { padding-right: 0; }
  .route + .route { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 28px; }
}

.request-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; scroll-margin-top: 84px; }
#request-form { scroll-margin-top: 84px; }
@media (max-width: 960px) { .request-grid { grid-template-columns: 1fr; } }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 600px) { .two { grid-template-columns: 1fr; } }
.opt { font-style: normal; font-weight: 400; }

.segmented { display: inline-flex; background: var(--paper); border-radius: 999px; padding: 4px; margin-bottom: 20px; max-width: 100%; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span { display: block; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--ink-soft); }
.segmented input:checked + span { background: var(--ink); color: #fff; }
.segmented input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
@media (max-width: 420px) { .segmented span { padding: 10px 12px; font-size: 14px; } }

.files {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px; cursor: pointer;
  border: 2px dashed var(--line); border-radius: var(--radius-sm); text-align: center;
}
.files:hover { border-color: var(--petg); }
.files input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.files span { font-size: 14px; color: var(--ink-soft); }
.file-list { list-style: none; padding: 0; margin: 8px 0 0; }
.file-list li { display: flex; gap: 12px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.file-list li span:first-child { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.direct { padding: 24px; border-radius: var(--radius-lg); background: var(--ink); color: #fff; }
.direct h3 { color: #fff; margin-bottom: 6px; }
.direct .note { color: #b9c2cc; margin: 0 0 18px; }
.direct a { color: #fff; }
.direct-line { margin: 10px 0 0; }
.btn.tg { background: var(--petg); border-color: var(--petg); width: 100%; }
.btn.tg:hover { background: #fff; color: var(--ink); border-color: #fff; }
.request-done { text-align: left; }
.request-done p { color: var(--ink-soft); }
.two.single { grid-template-columns: 1fr; }

/* группы полей оформления */
.group { border: 0; padding: 0; margin: 0 0 8px; min-width: 0; }
.group + .group { border-top: 1px solid var(--line); padding-top: 16px; }
.group legend { font: 700 16px var(--display); padding: 0; margin-bottom: 6px; }
.group > .note { margin: 0 0 12px; }

/* ссылка на заказ */
.link-box { display: grid; grid-template-columns: 1fr minmax(0, 1.2fr); gap: 18px; align-items: center; margin-top: 18px; border-color: var(--petg); background: #f4fbfa; }
.link-box p { margin: 4px 0 0; }
.link-row { display: flex; gap: 8px; }
.link-row input { font-size: 14px; }
@media (max-width: 760px) { .link-box { grid-template-columns: 1fr; } }
.login-box { max-width: 400px; margin-top: 20px; }
.login-box h3 { margin-bottom: 14px; }
