/* Первый экран как вход в кабинет: тёплая панель с бумажным нарядом и белая сторона с выбором роли.
   Оранжевый из логотипа разведён до цвета автомобильной грунтовки; страница только светлая, окна программы тёмные.
   Шрифт системный: сайт не обращается к чужим серверам. */
:root {
  --bg: #ffffff; --tint: #fbe9d6; --tint2: #fdf5ec; --line: #eadfd2;
  --ink: #1f2023; --muted: #66625c; --accent: #e8892b; --accent-hover: #f39a3d; --accent-ink: #a9560c; --on-accent: #1f2023; --ok: #4e8a2c;
  --head: "Bahnschrift", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --body: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 16px/1.5 var(--body); }
h1, h2, h3 { font-family: var(--head); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 4.6vw, 62px); line-height: 1.06; font-weight: 700; letter-spacing: -.5px; }
h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; font-weight: 700; }
h3 { font-size: 18px; line-height: 1.25; font-weight: 600; }
p { margin: 0; }
a { color: var(--accent-ink); }
img { max-width: 100%; display: block; height: auto; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.num { font-variant-numeric: tabular-nums; }
.eyebrow { font-size: 12px; letter-spacing: 1.4px; color: var(--muted); }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
section .wrap { padding-block: 64px; }
.tint { background: var(--tint2); }

/* первый экран */
.entry { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100svh; }
.brandside { background: var(--tint); display: flex; flex-direction: column; gap: 14px; justify-content: center; min-width: 0;
  padding-block: 40px; padding-left: max(32px, 7vw, env(safe-area-inset-left, 0px)); padding-right: 32px; }
.logo { height: 58px; width: auto; margin-bottom: 8px; align-self: flex-start; }
.sub { max-width: 30em; color: #4f4a43; font-size: 17px; }
.scene { position: relative; margin-top: 18px; max-width: 390px; min-height: 196px; }
.roll { position: absolute; width: 68px; height: 68px; left: -26px; top: -24px; z-index: 2; animation: rollin 1.1s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes rollin { from { transform: translateX(-180px) rotate(-300deg); } to { transform: none; } }
.sheet { position: relative; background: #fff; border-radius: 4px; padding: 16px 18px; box-shadow: 0 16px 34px rgba(120, 72, 22, .22); transform: rotate(-1.4deg); font-size: 14.5px; transition: transform .25s; }
.sheet.swap { animation: sheetin .28s ease-out; }
@keyframes sheetin { from { opacity: .3; transform: rotate(-1.4deg) translateY(6px); } to { opacity: 1; transform: rotate(-1.4deg); } }
.sheet-head { display: flex; justify-content: space-between; gap: 10px; border-bottom: 3px solid var(--accent); padding: 0 0 6px 34px; margin-bottom: 4px; }
.sheet-head span { color: var(--muted); white-space: nowrap; }
.sheet-row { display: flex; justify-content: space-between; gap: 14px; padding: 4px 0; border-bottom: 1px solid #efe9e0; font-variant-numeric: tabular-nums; }
.sheet-row span:last-child { white-space: nowrap; }
.sheet-row .low { color: #b5341f; font-weight: 600; }
.sheet-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 7px; }
.sheet-total b { font-family: var(--head); font-size: 24px; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.cal-mini { display: grid; grid-template-columns: 44px repeat(3, minmax(0, 1fr)); gap: 3px; font-size: 12.5px; margin-top: 6px; }
.cal-mini span { padding: 3px 5px; border-radius: 2px; background: #f7f3ec; min-height: 24px; overflow: hidden; white-space: nowrap; }
.cal-mini .t { background: none; color: var(--muted); padding-left: 0; }
.cal-mini .h { background: none; color: var(--muted); text-align: center; }
.cal-mini .b { background: #f8d9b6; border-left: 3px solid var(--accent); }
.cal-mini .g { background: #dcebcf; border-left: 3px solid var(--ok); }
.foot-note { color: var(--muted); font-size: 13px; margin-top: 12px; }

.chooser { display: flex; align-items: center; justify-content: center; min-width: 0;
  padding-block: 40px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.chooser-in { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 14px; }
.roles { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.role { display: flex; align-items: center; justify-content: space-between; gap: 14px; text-decoration: none; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 10px; padding: 13px 16px; transition: border-color .15s, background .15s, transform .15s; }
.role b { display: block; font-family: var(--head); font-weight: 600; font-size: 16.5px; }
.role small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.35; margin-top: 2px; }
.role i { font-style: normal; color: var(--accent-ink); font-size: 20px; transition: transform .15s; }
.role:hover, .role:focus-visible, .role.on { border-color: var(--accent); background: var(--tint2); }
.role:hover i, .role:focus-visible i { transform: translateX(4px); }
.hint { background: var(--tint2); border-radius: 10px; padding: 11px 14px; font-size: 13.5px; color: #4f4a43; }
.more { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; }
.contact { display: flex; flex-direction: column; gap: 1px; }
.link { font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
.link:hover { text-decoration: underline; }

/* живой наряд */
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 44px; align-items: start; }
.paper { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px; box-shadow: 0 14px 34px rgba(120, 72, 22, .12); min-width: 0; }
.paper-top { display: flex; flex-wrap: wrap; gap: 2px 12px; justify-content: space-between; align-items: baseline; border-bottom: 3px solid var(--accent); padding-bottom: 7px; margin-bottom: 10px; font-family: var(--head); font-size: 18px; }
.paper input[type="text"] { width: 100%; background: #fff; border: 1px solid #cfc7ba; border-radius: 6px; padding: 9px 11px; }
.paper input[type="text"]:focus { border-color: var(--accent); outline: 0; }
.pick { position: relative; }
.pick-list { position: absolute; z-index: 5; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid var(--accent); border-radius: 0 0 6px 6px; max-height: 228px; overflow-y: auto; }
.pick-list button { display: flex; justify-content: space-between; gap: 12px; width: 100%; background: none; border: 0; text-align: left; padding: 7px 10px; cursor: pointer; font-size: 15px; }
.pick-list button:hover, .pick-list button.on { background: var(--tint); }
.pick-list span:last-child { color: var(--muted); white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { background: var(--tint2); border: 1px solid var(--line); border-radius: 20px; padding: 3px 11px; font-size: 13px; cursor: pointer; }
.chip:hover { border-color: var(--accent); }
.olines { margin-top: 10px; font-size: 14.5px; min-height: 76px; }
.oline { display: grid; grid-template-columns: minmax(0, 1fr) 48px 78px 22px; gap: 6px; padding: 5px 0; border-top: 1px solid #efe9e0; align-items: baseline; }
.oline.head { color: var(--muted); font-size: 12px; border-top: 0; }
.oline .r { text-align: right; font-variant-numeric: tabular-nums; }
.oline button { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; }
.oline button:hover { color: #b5341f; }
.oline.new { animation: inkin .4s ease-out; }
@keyframes inkin { from { background: var(--tint); } to { background: transparent; } }
.rel { margin-top: 8px; border: 1px dashed var(--accent); border-radius: 6px; padding: 8px 11px; font-size: 14px; }
.rel b { font-weight: 600; }
.rel-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.rel-row button { background: var(--tint); border: 1px solid var(--accent); border-radius: 20px; padding: 2px 10px; font-size: 13px; cursor: pointer; }
.paper-foot { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; align-items: flex-end; margin-top: 12px; padding-top: 10px; border-top: 2px solid var(--ink); }
.rate { flex: 1 1 190px; font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 3px; }
.rate b { color: var(--ink); font-size: 15px; }
.rate input { accent-color: var(--accent); width: 100%; }
.pay { text-align: right; }
.pay small { display: block; color: var(--muted); font-size: 13px; }
.pay strong { font-family: var(--head); font-size: 36px; line-height: 1.1; color: var(--accent-ink); }

/* разделы */
.mod-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.mod-tab { flex: none; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 7px 16px; cursor: pointer; font-weight: 600; color: var(--muted); transition: background .15s, color .15s; }
.mod-tab:hover { color: var(--ink); border-color: var(--accent); }
.mod-tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.mod-view { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.mod-view img { border-radius: 8px; width: 100%; box-shadow: 0 14px 34px rgba(60, 40, 15, .22); }
.mod-view img.swap { animation: swap .25s ease-out; }
@keyframes swap { from { opacity: .35; } to { opacity: 1; } }
#mod-lead { font-size: 18px; }
.mod-view ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 28px; }
.mod-view li { color: var(--muted); }
.mod-view li b { color: var(--ink); font-weight: 600; }

/* цена */
.btn { display: inline-block; font-family: var(--head); font-weight: 600; font-size: 17px; text-decoration: none; text-align: center; padding: 12px 22px; border-radius: 8px;
  background: var(--accent); color: var(--on-accent); border: 0; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--accent-hover); }
.deal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px; align-items: start; margin-top: 8px; }
.price-card { background: var(--tint); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.price-card strong { font-family: var(--head); font-size: 50px; line-height: 1; font-weight: 700; }
.price-card ul { margin: 4px 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 5px; }
.price-card li { padding-left: 20px; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: flex; flex-direction: column; gap: 18px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: 8px; }
.steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--tint); color: var(--accent-ink); font-weight: 700; text-align: center; line-height: 28px; grid-row: span 2; }
.steps p { color: var(--muted); font-size: 15.5px; }
.hash { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; color: var(--muted); font-size: 13px; margin-top: 8px; }
.hash code { overflow-wrap: anywhere; font-family: Consolas, "Courier New", monospace; min-width: 0; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent-ink); text-decoration: underline; cursor: pointer; font-size: 13px; }

/* вопросы */
.faq { display: flex; flex-direction: column; background: #fff; border-radius: 12px; padding: 4px 20px; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 14px 0; font-family: var(--head); font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-ink); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 14px; color: var(--muted); max-width: 50em; }

/* договор-оферта */
.legal { display: flex; flex-direction: column; gap: 10px; padding-block: 24px 48px; max-width: 820px; }
.legal h1 { font-size: clamp(24px, 3.4vw, 34px); line-height: 1.2; letter-spacing: 0; }
.legal h2 { font-size: 20px; margin-top: 18px; }
.legal-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 8px; }
.legal-top img { height: 40px; width: auto; }
.sub-p { padding-left: 22px; }
.legal-table { overflow-x: auto; }
.legal table { border-collapse: collapse; width: 100%; font-size: 15px; }
.legal th, .legal td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal thead th, .legal tbody th { background: var(--tint2); font-weight: 600; }
.legal tbody th { width: 34%; }
.legal .r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

footer { color: var(--muted); font-size: 13.5px; }
footer .wrap { padding-block: 22px; display: flex; flex-direction: column; gap: 4px; }

@media (max-width: 900px) {
  .entry { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .brandside { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 28px 30px; }
  .scene { display: none; }
  .foot-note { display: none; }
  .chooser { padding-block: 26px 36px; }
  .chooser-in { max-width: none; }
  .two, .deal { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  section .wrap { padding-block: 44px; }
  .mod-view ul { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .roll, .sheet.swap, .oline.new, .mod-view img.swap { animation: none; }
}
