:root {
  --graphite: #2b2c30;
  --graphite-deep: #202124;
  --smoke: #393b41;
  --smoke-line: #4a4d55;
  --honey: #d9a55c;
  --honey-deep: #b37f36;
  --honey-glow: rgba(217, 165, 92, 0.28);
  --cream: #f1ebe1;
  --mute: #a6a19a;
  --danger: #e07a6a;
  --ok: #8fc28a;
  --display: 'Unbounded', system-ui, sans-serif;
  --text: 'Manrope', system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
  --radius: 4px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--graphite);
  color: var(--cream);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; line-height: 1.05; }
p { margin: 0; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--honey); outline-offset: 3px; }

/* ---------- Шапка ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  position: sticky; top: 0; z-index: 10;
  background: linear-gradient(var(--graphite) 70%, rgba(43, 44, 48, 0));
}
.brand { font-family: var(--display); font-weight: 600; font-size: 15px; text-decoration: none; letter-spacing: 0.01em; }
.nav { display: flex; gap: 28px; align-items: center; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--mute); }
.nav a:hover { color: var(--cream); }
.nav-cta { color: var(--honey) !important; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 28px; border-radius: var(--radius); border: 1px solid transparent;
  font-family: var(--display); font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .1s;
}
.btn-primary { background: var(--honey); color: var(--graphite-deep); }
.btn-primary:hover { background: #e6b46e; }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { background: var(--smoke); color: var(--mute); cursor: not-allowed; }
.btn-ghost { background: transparent; border-color: var(--smoke-line); color: var(--cream); }
.btn-ghost:hover { border-color: var(--honey); }

/* ---------- Первый экран ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  grid-template-areas: "text windows";
  gap: 0 64px;
  padding: 24px var(--gutter) 0;
  align-items: start;
}
.hero-text { grid-area: text; padding-top: 32px; }
.title {
  font-size: clamp(56px, 9vw, 132px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.92;
}
.lead { max-width: 30em; margin-top: 28px; font-size: 19px; color: var(--cream); }
.hero-cities { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 22px; color: var(--mute); font-size: 15px; }
.hero-text .btn { margin-top: 32px; }

/* Окошки — главный элемент */
.windows { grid-area: windows; margin-top: 32px; padding: 28px 0 0; border-top: 1px solid var(--smoke-line); }
.windows-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }
.windows-head h2 { font-size: 15px; font-weight: 600; }
.windows-head p { color: var(--mute); font-size: 14px; }
.windows-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 18px; }
.wcity { min-width: 0; }
.wcity-name { font-size: 14px; color: var(--mute); margin-bottom: 10px; }
.wrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.win {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 10px 8px; border-radius: 3px;
  background: var(--graphite-deep); border: 1px solid var(--smoke-line);
  color: var(--cream); text-decoration: none; font-size: 13px; line-height: 1.2;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition: border-color .15s, box-shadow .15s;
}
.win b { font-family: var(--display); font-weight: 600; font-size: 15px; }
.win small { color: var(--mute); }
.win.lit { border-color: var(--honey); box-shadow: 0 0 0 1px var(--honey) inset, 0 0 24px var(--honey-glow); }
.win.lit:hover { background: #2a2824; box-shadow: 0 0 0 1px var(--honey) inset, 0 0 36px var(--honey-glow); }
.win.off { opacity: .55; }
.win.off b { color: var(--mute); }
.wrow.empty { color: var(--mute); font-size: 14px; display: block; }

/* ---------- Секции ---------- */
.h2 { font-size: clamp(30px, 4.2vw, 52px); letter-spacing: -0.02em; }
section { padding: clamp(72px, 10vw, 140px) var(--gutter) 0; }

.mix-intro { max-width: 36em; margin-top: 24px; font-size: 19px; }
.mix-formula {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px;
  margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--smoke-line);
}
.mix-part h3 { font-size: 20px; color: var(--honey); }
.mix-part p { margin-top: 12px; color: var(--mute); max-width: 28em; }
.mix-part + .mix-part { position: relative; }
.mix-part + .mix-part::before {
  content: "+"; position: absolute; left: -24px; top: -2px; font-family: var(--display); font-size: 22px; color: var(--smoke-line);
}
.mix-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 56px; }
.mix-meta div { display: flex; flex-direction: column; gap: 6px; padding-left: 16px; border-left: 2px solid var(--honey); }
.mix-meta strong { font-family: var(--display); font-weight: 600; font-size: 22px; }
.mix-meta span { color: var(--mute); font-size: 15px; }

.where { max-width: 760px; }
.places { margin: 36px 0 0; }
.place { display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; padding: 22px 0; border-top: 1px solid var(--smoke-line); }
.place:last-child { border-bottom: 1px solid var(--smoke-line); }
.place dt { font-family: var(--display); font-weight: 600; font-size: 22px; grid-column: 1; }
.place .price { font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--honey); grid-column: 2; grid-row: 1; white-space: nowrap; }
.place dd { margin: 0; color: var(--mute); grid-column: 1 / -1; }
.place dd em { font-style: normal; color: var(--cream); }
.where-note { margin-top: 24px; color: var(--mute); max-width: 32em; }

/* ---------- Запись ---------- */
.book-head p { margin-top: 16px; color: var(--mute); max-width: 34em; }
.booking {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px 56px;
  margin-top: 48px; padding: 40px; border-radius: 6px; background: var(--graphite-deep);
}
.steps { display: flex; flex-direction: column; gap: 36px; }
.step-label { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 13px; font-weight: 600; color: var(--cream); margin-bottom: 14px; }
.step-label .num {
  display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--honey); color: var(--graphite-deep); font-size: 12px;
}
.city-switch { display: flex; gap: 8px; }
.city-switch button {
  flex: 1; padding: 14px 16px; border-radius: var(--radius);
  background: var(--graphite); border: 1px solid var(--smoke-line); cursor: pointer; text-align: left;
}
.city-switch button b { display: block; font-family: var(--display); font-weight: 600; font-size: 15px; }
.city-switch button span { color: var(--mute); font-size: 14px; }
.city-switch button[aria-selected="true"] { border-color: var(--honey); box-shadow: inset 0 0 0 1px var(--honey); }

/* Календарь */
.cal { max-width: 420px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-title { font-family: var(--display); font-weight: 600; font-size: 15px; text-transform: capitalize; }
.cal-nav {
  width: 36px; height: 36px; border-radius: 50%; background: var(--graphite); border: 1px solid var(--smoke-line);
  color: var(--cream); font-size: 20px; line-height: 1; cursor: pointer;
}
.cal-nav:hover { border-color: var(--honey); }
.cal-nav:disabled { opacity: .3; cursor: default; border-color: var(--smoke-line); }
.cal-wd, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-wd span { text-align: center; font-size: 12px; color: var(--mute); padding: 4px 0 6px; }
.cal-wd span:nth-child(n+6) { color: #7a7066; }
.cal-day {
  position: relative; aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border-radius: 6px; font-family: var(--display); font-weight: 600; font-size: 14px;
  background: transparent; border: 1px solid transparent; color: #5e6068; cursor: default;
}
.cal-day.pad { visibility: hidden; }
.cal-day.free { color: var(--cream); background: var(--graphite); border-color: var(--smoke-line); cursor: pointer; }
.cal-day.free::after {
  content: ""; position: absolute; bottom: 5px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--honey);
}
.cal-day.free:hover { border-color: var(--honey); }
.cal-day.today { text-decoration: underline; text-underline-offset: 3px; }
.cal-day[aria-selected="true"] { background: var(--honey); border-color: var(--honey); color: var(--graphite-deep); }
.cal-day[aria-selected="true"]::after { background: var(--graphite-deep); }
.cal-hint { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--mute); }
.cal-hint i { width: 6px; height: 6px; border-radius: 50%; background: var(--honey); }
.step-sub { font-family: var(--text); font-weight: 400; font-size: 14px; color: var(--mute); margin-left: 4px; }

.times { display: flex; flex-direction: column; gap: 16px; max-width: 420px; }
.times .hint { color: var(--mute); font-size: 15px; }
.tgroup-name { font-size: 13px; color: var(--mute); margin-bottom: 8px; }
.tgroup-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.time {
  padding: 14px 8px; border-radius: 3px; cursor: pointer; text-align: center;
  font-family: var(--display); font-weight: 600; font-size: 15px;
  background: var(--graphite); border: 1px solid var(--smoke-line); color: var(--cream);
}
.time:hover { border-color: var(--honey); }
.time[aria-selected="true"] {
  background: var(--honey); border-color: var(--honey); color: var(--graphite-deep);
  box-shadow: 0 0 0 3px var(--graphite-deep), 0 0 0 5px var(--honey);
}
.time[aria-selected="true"]::before { content: "✓ "; }

.form { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 80px; }
.form .step-label { margin-bottom: 0; }
.chosen { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 4px; background: var(--graphite); border: 1px dashed var(--smoke-line); }
.chosen-label { font-size: 13px; color: var(--mute); }
.chosen-text { font-size: 15px; color: var(--mute); }
.chosen.set { border-style: solid; border-color: var(--honey); background: rgba(217, 165, 92, 0.08); }
.chosen.set .chosen-label { color: var(--honey); font-weight: 600; }
.chosen.set .chosen-text { font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--cream); line-height: 1.35; }
.chosen-price { display: block; margin-top: 4px; font-family: var(--text); font-weight: 400; font-size: 15px; color: var(--mute); }
.fields { display: flex; flex-direction: column; gap: 14px; transition: opacity .2s; }
.fields.locked { opacity: .35; pointer-events: none; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--mute); }
.form label small { color: #6d7079; margin-left: 6px; }
.form input {
  padding: 13px 14px; border-radius: 3px; background: var(--graphite); border: 1px solid var(--smoke-line); color: var(--cream);
}
.form input:focus { border-color: var(--honey); outline: none; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.form .btn { margin-top: 8px; }
.form-error { color: var(--danger); font-size: 14px; }

.done { margin-top: 48px; padding: 48px 40px; border-radius: 6px; background: var(--graphite-deep); border: 1px solid var(--honey); max-width: 640px; }
.done h3 { font-size: 28px; }
.done p { margin-top: 16px; }
.done .btn { margin-top: 24px; }
.done-sub { color: var(--mute); font-size: 15px; }
.done .btn-ghost { margin-top: 12px; margin-left: 12px; }

/* ---------- Подвал ---------- */
.foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  margin-top: clamp(72px, 10vw, 140px); padding: 36px var(--gutter) 40px; border-top: 1px solid var(--smoke-line); color: var(--mute); font-size: 15px;
}
.foot strong { display: block; color: var(--cream); font-family: var(--display); font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.foot-links { display: flex; gap: 24px; }
.foot-links a { color: var(--honey); text-decoration: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; grid-template-areas: "text" "windows"; }
  .cal, .times { max-width: none; }
  .windows { margin-top: 48px; }
  .booking { grid-template-columns: 1fr; padding: 24px; gap: 32px; }
  .mix-formula, .mix-meta { grid-template-columns: 1fr; gap: 24px; }
  .mix-part + .mix-part::before { position: static; display: block; margin-bottom: 12px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav { gap: 16px; font-size: 14px; }
  .nav a:not(.nav-cta) { display: none; }
  .windows-grid { grid-template-columns: 1fr; }
  .wrow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lead { font-size: 17px; }
  .done { padding: 32px 24px; }
  .done .btn-ghost { margin-left: 0; display: flex; }
}
