:root {
  --ink: #15181c;
  --steel: #232830;
  --steel-2: #2e343d;
  --paper: #f3f1ec;
  --concrete: #e4e1d8;
  --line: #cfcbc0;
  --yellow: #f5b800;
  --yellow-deep: #d99e00;
  --muted: #5a6068;
  --ok: #1f7a4d;
  --body: 'Manrope', Arial, sans-serif;
  --gutter: clamp(20px, 4.5vw, 80px);
  --space: clamp(64px, 8vw, 120px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--body); }
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; cursor: pointer; background: none; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ul { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 600; line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
h2 { font-size: clamp(38px, 5vw, 68px); }
h3 { font-size: clamp(24px, 2.4vw, 32px); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.section-pad { padding: var(--space) var(--gutter); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 14px 24px; font-size: 15px; font-weight: 600; line-height: 1.2; transition: background .15s, color .15s; }
.button-yellow { background: var(--yellow); color: var(--ink); }
.button-yellow:hover { background: var(--yellow-deep); }
.button-dark { background: var(--ink); color: var(--paper); }
.button-dark:hover { background: var(--steel-2); }
.button-line { border: 1px solid currentColor; }
.button[disabled] { opacity: .5; cursor: default; }
.text-link { min-height: 44px; padding: 10px 0; font-weight: 600; text-decoration: underline; text-underline-offset: 6px; }

.demo-banner { display: block; width: 100%; height: 38px; padding: 0 12px; background: #000; color: #d8d6cf; font: 500 12.5px/38px var(--body); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-banner b { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 420px) { .demo-banner span { display: none; } }

.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px var(--gutter); background: var(--ink); color: var(--paper); }
.wordmark { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.wordmark i { display: block; width: 26px; height: 26px; background: repeating-linear-gradient(135deg, var(--yellow) 0 6px, var(--ink) 6px 12px); border: 2px solid var(--yellow); }
.desktop-nav { display: flex; gap: 28px; font-size: 14px; }
.desktop-nav a { display: flex; align-items: center; min-height: 44px; opacity: .85; }
.desktop-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
@media (max-width: 860px) { .desktop-nav { display: none; } .site-header .button { min-height: 44px; padding: 10px 16px; } }

.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 112px) var(--gutter) 0; background: var(--steel); color: var(--paper); }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(900px 420px at 85% 0, rgba(245, 184, 0, .14), transparent 70%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(46px, 7vw, 104px); line-height: .96; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero-description { max-width: 520px; margin-top: 26px; font-size: 18px; color: #d4d2cb; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 26px; font-size: 14px; color: #bdbbb4; }
.hero-facts strong { color: var(--paper); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hazard { position: relative; height: 14px; margin: clamp(48px, 7vw, 96px) calc(var(--gutter) * -1) 0; background: repeating-linear-gradient(135deg, var(--yellow) 0 18px, var(--ink) 18px 36px); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.board { background: var(--ink); border: 1px solid var(--steel-2); padding: 20px; }
.board-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; font-size: 13px; color: #bdbbb4; }
.board-head strong { color: var(--paper); font-size: 15px; font-weight: 600; }
.board-row { display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: center; padding: 8px 0; }
.board-name { font-size: 13px; font-weight: 600; line-height: 1.25; }
.board-cells { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; }
.board-cells i { height: 26px; background: var(--ok); opacity: .9; }
.board-cells i.busy { background: repeating-linear-gradient(135deg, #3a4048 0 3px, #2a2f36 3px 6px); opacity: 1; }
.board-scale { display: grid; grid-template-columns: 112px 1fr; gap: 12px; margin-top: 6px; font-size: 11px; color: #8d9199; }
.board-scale span:last-child { display: flex; justify-content: space-between; }
.board-legend { display: flex; gap: 18px; margin-top: 14px; font-size: 12px; color: #bdbbb4; }
.board-legend i { display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; background: var(--ok); }
.board-legend i.busy { background: repeating-linear-gradient(135deg, #3a4048 0 3px, #2a2f36 3px 6px); }
@media (max-width: 520px) { .board-row, .board-scale { grid-template-columns: 78px 1fr; } .board-name { font-size: 12px; } }

.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; margin-bottom: 48px; }
.section-heading > p { max-width: 360px; color: var(--muted); }
@media (max-width: 760px) { .section-heading { flex-direction: column; align-items: flex-start; gap: 16px; } }

.fleet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.unit { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); }
.unit-top { padding: 28px 24px 20px; background: var(--steel); color: var(--paper); }
.unit-spec { font-size: clamp(54px, 5.2vw, 76px); font-weight: 600; line-height: .9; letter-spacing: -.05em; color: var(--yellow); }
.unit-spec small { font-size: .34em; letter-spacing: 0; margin-left: 6px; color: var(--paper); }
.unit-top h3 { margin-top: 14px; font-size: 24px; }
.unit-body { display: flex; flex: 1; flex-direction: column; gap: 14px; padding: 22px 24px 24px; }
.unit-body ul { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.unit-body li::before { content: '—'; margin-right: 8px; color: var(--yellow-deep); }
.unit-price { margin-top: auto; padding-top: 10px; font-size: 20px; font-weight: 600; }
.unit-price span { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }
@media (max-width: 900px) { .fleet-grid { grid-template-columns: 1fr; } }

.how { background: var(--concrete); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { padding: 26px 24px; background: var(--paper); border-top: 4px solid var(--yellow); counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 40px; font-size: 14px; font-weight: 600; color: var(--muted); }
.step h3 { font-size: 26px; }
.step p { margin-top: 12px; color: var(--muted); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } .step::before { margin-bottom: 16px; } }

.faq h2 { margin-bottom: 36px; }
.faq-list { max-width: 880px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 14px 0; font-size: 18px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { font-size: 24px; font-weight: 400; transition: transform .2s; }
.faq details[open] summary span { transform: rotate(45deg); }
.faq details p { max-width: 720px; padding: 0 0 22px; color: var(--muted); }

.footer { background: var(--ink); color: var(--paper); }
.footer-top { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.footer h2 { font-size: clamp(36px, 4.4vw, 60px); }
.footer-top > div > p { margin-top: 18px; color: #bdbbb4; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.contact-actions a { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 20px; border: 1px solid #4a515b; font-size: 15px; }
.contact-actions a.is-main { background: var(--yellow); border-color: var(--yellow); color: var(--ink); font-weight: 600; }
.contact-note { margin-top: 22px; font-size: 14px; color: #bdbbb4; }
.requisites { display: block; margin-top: 22px; font-size: 12px; color: #8d9199; }
.requisites a { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--steel-2); font-size: 13px; color: #8d9199; }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; } .footer { padding-bottom: 104px; } .footer-bottom { flex-direction: column; } }

dialog { width: min(720px, calc(100vw - 24px)); max-height: calc(100svh - 24px); padding: 0; border: 0; background: var(--paper); color: var(--ink); overflow: auto; overscroll-behavior: contain; }
dialog::backdrop { background: rgba(10, 12, 14, .72); }
.dialog-body { padding: clamp(24px, 4vw, 44px); }
.dialog-close { position: sticky; top: 0; float: right; z-index: 2; width: 52px; height: 52px; font-size: 30px; line-height: 1; background: var(--paper); }
dialog h2 { font-size: clamp(34px, 5vw, 52px); padding-right: 40px; }
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 0; background: #fff; font-size: 16px; font-weight: 400; color: var(--ink); }
.field textarea { min-height: 76px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.form { display: grid; gap: 16px; margin-top: 22px; }
.form-note { font-size: 13px; color: var(--muted); }
.form-error { min-height: 1.4em; font-size: 14px; font-weight: 600; color: #b3261e; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; font-weight: 400; line-height: 1.5; cursor: pointer; }
.consent input { flex: none; width: 22px; min-height: 0; height: 22px; margin: 1px 0 0; accent-color: var(--ink); }
.consent a { text-decoration: underline; text-underline-offset: 3px; }

.cal { padding: 14px; background: #fff; border: 1px solid var(--line); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head button { width: 44px; height: 44px; font-size: 22px; }
.cal-head button:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-week { padding: 4px 0; text-align: center; font-size: 12px; color: var(--muted); }
.cal-day { min-height: 44px; font-size: 15px; background: var(--paper); }
.cal-day:hover:not(:disabled) { background: var(--concrete); }
.cal-day.part { box-shadow: inset 0 -3px 0 var(--yellow); }
.cal-day.sel { background: var(--ink); color: var(--paper); }
.cal-day:disabled { color: #a8a59c; background: transparent; cursor: default; }
.cal-day.busy:disabled { background: repeating-linear-gradient(135deg, transparent 0 4px, rgba(21, 24, 28, .16) 4px 5.5px); text-decoration: line-through; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; color: var(--muted); }
.cal-legend span::before { content: ''; display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; background: var(--paper); border: 1px solid var(--line); }
.cal-legend .part::before { box-shadow: inset 0 -3px 0 var(--yellow); }
.cal-legend .taken::before { background: repeating-linear-gradient(135deg, #fff 0 2px, #8b9080 2px 3px); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.slot { min-height: 46px; background: #fff; border: 1px solid var(--line); font-size: 15px; font-weight: 600; }
.slot:hover:not(:disabled) { border-color: var(--ink); }
.slot.sel { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.slot:disabled { color: #a8a59c; background: var(--concrete); text-decoration: line-through; cursor: default; font-weight: 400; }
.estimate { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 18px; background: var(--ink); color: var(--paper); }
.estimate span { font-size: 14px; color: #d4d2cb; }
.estimate strong { font-size: 24px; font-weight: 600; white-space: nowrap; }
.request-summary { display: grid; gap: 4px; margin: 22px 0; padding: 18px; background: #fff; border-left: 4px solid var(--yellow); }

.sales-price { margin-top: 12px; font-size: 17px; }
.sales-price strong { font-size: 30px; font-weight: 600; }
.sales-list { margin-top: 18px; font-size: 15px; }
.sales-list li { position: relative; padding: 5px 0 5px 24px; }
.sales-list li::before { content: '✓'; position: absolute; left: 0; font-weight: 700; color: var(--ok); }
.admin-mock { margin-top: 24px; padding: 16px; background: var(--concrete); }
.admin-mock-label, .admin-mock-note { font-size: 12px; color: var(--muted); }
.admin-mock-card { margin: 10px 0; padding: 14px; background: #fff; font-size: 14px; line-height: 1.5; }
.admin-mock-card > div:first-child { display: flex; justify-content: space-between; gap: 10px; }
.admin-mock-card p { margin: 4px 0; font-size: 13px; color: var(--muted); }
.admin-mock-actions { display: flex; gap: 8px; margin-top: 10px; }
.admin-mock-actions span { padding: 8px 14px; border: 1px solid var(--line); font-size: 13px; }
.admin-mock-actions .yes { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.dialog-body .contact-actions a { border-color: var(--ink); }
.dialog-body .contact-actions a.is-main { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.dialog-body .contact-note { color: var(--muted); }
.policy-dialog p { margin-top: 14px; }

.mobile-bar { display: none; }
@media (max-width: 780px) {
  .mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(10, 12, 14, .94); transform: translateY(110%); transition: transform .3s; }
  .mobile-bar.is-on { transform: none; }
  .mobile-bar .button { flex: 1; min-height: 48px; padding: 12px 10px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
