:root {
  --ink: #0E0E10;
  --ink-2: #17171A;
  --paper: #ECEAE6;
  --card: #FFFFFF;
  --accent: #E8401C;
  --accent-ink: #C7340F;
  --muted: #6B6B70;
  --line: #D9D6D0;
  --line-dark: rgba(255, 255, 255, .12);
  --display: 'Fira Sans Extra Condensed', Impact, 'Arial Narrow', sans-serif;
  --text: 'Manrope', system-ui, sans-serif;
  --cut: 7vw;           /* глубина диагональных срезов */
  --gutter: clamp(16px, 4vw, 56px);
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: .95; letter-spacing: -.01em; }
h2 { font-size: clamp(36px, 4.4vw, 56px); }
h3 { font-size: 18px; line-height: 1.1; }
p { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend, .field > span { display: block; padding: 0; margin-bottom: 10px; font-size: 13px; font-weight: 600; }
.sub { color: var(--muted); margin-top: 8px; }
.muted { color: var(--muted); }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 52px; padding: 0 26px;
  background: var(--accent); color: #fff; border: 0; border-radius: 4px;
  font: 600 15px/1 var(--text); text-decoration: none; cursor: pointer;
  transition: background .2s;
}
.btn:hover { background: var(--accent-ink); }
.btn:focus-visible, .link:focus-visible, .chip:focus-visible, .tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn i, .link i { font-style: normal; }
.btn:disabled { opacity: .55; cursor: progress; }
.link {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px;
  background: none; border: 0; padding: 0; cursor: pointer;
  font: 600 15px/1 var(--text); color: var(--ink); text-decoration: none;
}
.link i { color: var(--accent); }
.link-light { color: #fff; }

/* Шапка — прозрачная, лежит на первом экране: логотип на фото, меню на бумаге */
.top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; gap: 32px;
  height: 92px; padding: 0 var(--gutter);
  color: var(--ink);
}
.logo { font: 900 30px/1 var(--display); letter-spacing: .01em; text-decoration: none; color: #fff; }
.logo span { color: var(--accent); margin-left: 3px; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { font-size: 13px; font-weight: 600; text-decoration: none; }
.nav a:hover { color: var(--accent); }
.top-phone { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.top-phone a { font: 700 16px/1.2 var(--text); text-decoration: none; }
.top-phone small { font-size: 11px; color: var(--muted); }
.top-call { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); flex: none; }
.top-call svg { width: 20px; height: 20px; fill: #fff; }

/* Первый экран: фото срезано клином, текст на бумаге с наклоном −4° */
.hero {
  position: relative; isolation: isolate;
  min-height: clamp(720px, 100vh, 960px);
  background: var(--paper);
}
.hero-photo {
  position: absolute; inset: 0 44% 0 0; overflow: hidden; background: var(--ink);
  clip-path: polygon(0 0, 79% 0, 100% 45%, 84% 100%, 0 100%);
}
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 38% 40%; }
.hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,14,16,.6), rgba(14,14,16,0) 22%), linear-gradient(0deg, rgba(14,14,16,.9), rgba(14,14,16,0) 45%); }
.hero-rail {
  position: absolute; z-index: 1; left: var(--gutter); top: 150px;
  margin: 0; padding: 0; list-style: none;
  writing-mode: vertical-rl; transform: rotate(180deg);
  display: flex; gap: 40px;
  font: 600 11px/1 var(--text); letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.55);
}
.hero-rail li:first-child { color: var(--accent); }
.hero-slogan {
  position: absolute; z-index: 1; left: var(--gutter); bottom: 96px;
  font: 900 clamp(40px, 4.6vw, 68px)/.92 var(--display); text-transform: uppercase; color: #fff;
  transform: rotate(-4deg); transform-origin: left bottom;
}
.hero-panel {
  position: relative; z-index: 2;
  width: 39%; margin-left: 57%;
  padding: 170px 0 64px;
  transform: rotate(-4deg); transform-origin: left top;
}
.eyebrow { display: flex; align-items: center; gap: 14px; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--accent); }
.hero h1 { margin-top: 22px; font-size: clamp(48px, 5.6vw, 84px); line-height: .98; }
.hero h1 span { color: var(--accent); white-space: nowrap; }
.lead { max-width: 380px; margin: 20px 0 0 24px; font-size: 17px; color: #3E4440; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin: 28px 0 0 24px; }

/* Шаги лесенкой вдоль среза фото */
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 12px; }
.steps li { display: grid; grid-template-columns: 124px 58px 1fr; align-items: center; gap: 14px; }
.steps li:nth-child(1) { margin-left: 40px; }
.steps li:nth-child(2) { margin-left: 52px; }
.steps li:nth-child(3) { margin-left: 64px; }
.steps li:nth-child(4) { margin-left: 76px; }
.steps img { width: 124px; height: 78px; object-fit: cover; clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%); }
.steps b { font: 900 46px/1 var(--display); color: var(--accent); }
.steps h3 { font-size: 19px; }
.steps p { font-size: 12px; color: var(--muted); margin-top: 4px; max-width: 230px; }

/* Калькулятор */
.calc {
  position: relative;
  display: grid; grid-template-columns: 38fr 62fr; gap: 32px;
  padding: 96px var(--gutter) 120px;
  background: var(--paper);
}
.calc::before { /* диагональ над калькулятором */
  content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 64px;
  background: var(--paper); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 30%);
  filter: brightness(.94);
}
.calc-side { position: relative; }
.calc-art { position: relative; margin-top: 24px; }
.ghost {
  position: absolute; left: -12px; top: 50%; transform: translateY(-50%);
  font: 900 clamp(200px, 24vw, 360px)/1 var(--display); color: rgba(14,14,16,.08);
  pointer-events: none; user-select: none;
}
.calc-art img { position: relative; width: min(88%, 400px); margin-left: auto; aspect-ratio: 1; object-fit: cover;
  /* чёрный студийный фон растворяется в бумаге, остаётся колесо */
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 71%); mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 71%); }
.calc-note { position: absolute; left: 0; bottom: 0; font: 700 11px/1.5 var(--text); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

.card { background: var(--card); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(0,0,0,.08); padding: clamp(20px, 3vw, 36px); }
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 6px; padding: 4px; gap: 4px; }
.tab { min-height: 44px; border: 0; border-radius: 4px; background: none; font: 600 14px/1.1 var(--text); color: var(--muted); cursor: pointer; }
.tab[aria-checked="true"] { background: var(--ink); color: #fff; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 36px; margin-top: 28px; }
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 6px; }
.chips-wide { grid-template-columns: repeat(3, 1fr); }
.chip {
  min-height: 44px; border: 1px solid var(--line); border-radius: 4px; background: #fff;
  font: 600 14px/1 var(--text); color: var(--ink); cursor: pointer;
}
.chip:hover:not(:disabled) { border-color: var(--ink); }
.chip[aria-checked="true"], .chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip:disabled { color: #B9B6B0; background: #F6F5F3; cursor: not-allowed; text-decoration: line-through; }
.field select, .field input {
  width: 100%; min-height: 48px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 4px; background: #fff;
  font: 400 16px/1 var(--text); color: var(--ink);
}
.field select:focus, .field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.checks label, .consent { display: flex; gap: 10px; align-items: center; min-height: 32px; font-size: 14px; cursor: pointer; }
input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); flex: none; }
.calc-total { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
#price { display: block; font: 900 clamp(40px, 4.4vw, 56px)/1 var(--display); }
#priceNote { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }

/* Запись */
.calc > *, .booking > *, .contacts > * { min-width: 0; }
.booking {
  position: relative;
  display: grid; grid-template-columns: 38fr 62fr; gap: 32px;
  padding: 0 var(--gutter) 120px;
}
.booking-sum { padding: 14px 16px; margin-bottom: 24px; background: var(--paper); border-radius: 6px; font-size: 14px; }
.booking-sum b { font-weight: 700; }
.booking-card fieldset + fieldset { margin-top: 24px; }
.days { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.day {
  flex: none; width: 64px; min-height: 64px; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 1px solid var(--line); border-radius: 4px; background: #fff; cursor: pointer; font: 900 20px/1 var(--display); color: var(--ink);
}
.day small { font: 600 11px/1 var(--text); text-transform: uppercase; color: var(--muted); }
.day[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.day[aria-checked="true"] small { color: rgba(255,255,255,.7); }
.day:disabled { opacity: .35; cursor: not-allowed; }
.slots { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
.hint { grid-column: 1 / -1; color: var(--muted); font-size: 14px; }
.booking-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.consent { margin-top: 18px; }
.form-error { min-height: 22px; margin: 10px 0; color: var(--accent-ink); font-size: 14px; font-weight: 600; }
.booking-done h3 { font-size: 32px; }
.booking-done p { margin: 12px 0 8px; }

/* Бокс */
.box {
  position: relative;
  display: grid; grid-template-columns: 36fr 64fr; align-items: stretch;
  background: var(--ink); color: #fff;
  clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%);
  margin-top: calc(var(--cut) * -0.5);
}
.box-text { padding: calc(var(--cut) + 48px) var(--gutter) 72px; display: flex; flex-direction: column; gap: 20px; justify-content: center; }
.box-text p { color: rgba(255,255,255,.75); max-width: 360px; }
.box img { width: 100%; height: 100%; min-height: 420px; max-height: 640px; object-fit: cover; clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%); }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--ink-2); color: #fff; }
.facts > div { display: grid; grid-template-columns: 40px 1fr; gap: 4px 16px; align-items: center; padding: 32px var(--gutter); border-left: 1px solid var(--line-dark); }
.facts > div:first-child { border-left: 0; }
.facts svg { grid-row: span 2; width: 36px; height: 36px; fill: none; stroke: #fff; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.facts h3 { font-size: 15px; }
.facts p { font-size: 13px; color: rgba(255,255,255,.6); }

/* Контакты */
.contacts { display: grid; grid-template-columns: 38fr 62fr; gap: 32px; padding: 96px var(--gutter); }
.contacts-text { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.addr { font-size: 18px; margin-top: 10px; }
.phone-big { font: 900 36px/1 var(--display); text-decoration: none; }
.map { width: 100%; min-height: 380px; border: 0; border-radius: var(--radius); background: #DDD; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 28px var(--gutter); background: var(--ink); color: rgba(255,255,255,.5); font-size: 13px; }

/* Планшет */
@media (max-width: 1080px) {
  .nav { display: none; }
  .top-phone { margin-left: auto; }
  .hero-photo { inset: 0 40% 0 0; }
  .hero-panel { width: 46%; margin-left: 52%; padding-top: 130px; transform: rotate(-3deg); }
  .steps li:nth-child(n) { margin-left: 0; grid-template-columns: 96px 44px 1fr; }
  .steps img { width: 96px; height: 60px; }
  .steps b { font-size: 36px; }
  .calc, .booking, .contacts { grid-template-columns: 1fr; }
  .calc-side { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  .calc-art { margin-top: 0; grid-row: span 3; grid-column: 2; }
  .calc-note { position: static; margin-top: 16px; }
}

/* Телефон */
@media (max-width: 760px) {
  :root { --cut: 12vw; }
  .top { height: 64px; gap: 12px; }
  .logo { font-size: 26px; }
  .top-phone { display: none; }
  .top-call { margin-left: auto; background: var(--accent); }
  .hero { min-height: 0; }
  .hero-photo { position: relative; inset: auto; height: clamp(340px, 58vh, 520px); clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%); }
  .hero-slogan { bottom: calc(18% + 16px); font-size: 34px; }
  .hero-rail { top: 92px; gap: 24px; }
  .hero-panel { width: auto; margin: 0; padding: 4px var(--gutter) 48px; transform: rotate(-2deg); }
  .hero h1 { font-size: 46px; margin-top: 16px; }
  .lead, .hero-actions { margin-left: 0; }
  .lead { font-size: 16px; margin-top: 14px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .steps { margin-top: 32px; }
  .steps li:nth-child(n) { margin-left: 0; grid-template-columns: 84px 38px 1fr; gap: 10px; }
  .steps img { width: 84px; height: 54px; }
  .steps b { font-size: 32px; }
  .steps h3 { font-size: 17px; }
  .calc { padding: 72px var(--gutter) 72px; gap: 20px; }
  .calc-side { grid-template-columns: 1fr 120px; }
  .calc-art img { width: 120px; }
  .ghost { font-size: 160px; left: auto; right: 40px; }
  .calc-note { display: none; }
  .tabs { grid-template-columns: 1fr 1fr; }
  .calc-grid { grid-template-columns: 1fr; gap: 22px; }
  .chips { grid-template-columns: repeat(6, 1fr); }
  .chips-wide { grid-template-columns: repeat(3, 1fr); }
  .calc-total .btn { flex: 1 1 100%; }
  .booking { padding-bottom: 72px; gap: 20px; }
  .booking-fields { grid-template-columns: 1fr; }
  .booking-card .btn { width: 100%; }
  .slots { grid-template-columns: repeat(4, 1fr); }
  .box { grid-template-columns: 1fr; margin-top: 0; }
  .box-text { padding: calc(var(--cut) + 32px) var(--gutter) 32px; }
  .box img { min-height: 240px; clip-path: none; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div { padding: 24px var(--gutter); grid-template-columns: 1fr; border-left: 0; border-top: 1px solid var(--line-dark); }
  .facts svg { grid-row: auto; width: 30px; height: 30px; margin-bottom: 8px; }
  .contacts { padding: 64px var(--gutter); }
  .map { min-height: 300px; }
}
