/* =========================================================
   DOCTOR DYO SERVICE — индустриальный стиль
   ---------------------------------------------------------
   Референс: tgk-auto.ru — белый фон, чёрные блоки,
   красный акцент, широкий заглавный шрифт, острые углы.

   Все цвета и шрифты меняются в блоке :root.
   ========================================================= */

:root {
  --paper: #ffffff;
  --paper-2: #f1f1f4;
  --paper-3: #e4e4ea;
  --ink: #0a0a0a;
  --ink-2: #16161a;
  --muted: #6d6d78;
  --line: #0a0a0a;
  --line-soft: rgba(10, 10, 10, 0.16);
  --red: #fe0000;
  --red-dark: #d40000;
  --display: 'Unbounded', 'Arial Black', 'Segoe UI', Arial, sans-serif;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --shadow-hard: 8px 8px 0 rgba(10, 10, 10, 0.1);
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
  background: var(--paper-2);
  color: var(--ink);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  border-radius: 0;
}

::selection {
  background: var(--red);
  color: #fff;
}

/* =========================================================
   ШАПКА
   ========================================================= */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: auto;
  height: 44px;
  flex: none;
  box-sizing: content-box;
}

.brand-word {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-word strong {
  font: 800 15px/1 var(--display);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-word small {
  margin-top: 4px;
  color: var(--muted);
  font: 600 8.5px/1 var(--font);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.top-phone {
  display: none;
  color: var(--ink);
  font: 700 12px/1 var(--font);
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.top-phone:hover {
  color: var(--red);
}

.phone-icon {
  display: inline-grid;
  padding: 0;
  width: 38px;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  height: 38px;
  min-width: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.icon-btn:hover {
  background: var(--ink);
  color: #fff;
}

.top-cta {
  display: none;
  height: 38px;
  padding: 0 16px;
  border: 0;
  background: var(--ink);
  color: #fff;
  font: 700 11px/1 var(--display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.top-cta:hover {
  background: var(--red);
}

/* =========================================================
   ОБЩИЕ БЛОКИ
   ========================================================= */

.app {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 16px 30px;
}

.screen {
  display: none;
}

.screen.is-active {
  display: block;
  animation: screen-in 0.3s ease both;
}

@keyframes screen-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--muted);
  font: 600 10px/1 var(--font);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 18px;
  height: 3px;
  background: var(--red);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.page-title {
  margin: 0 0 14px;
  font-size: clamp(34px, 9vw, 68px);
  line-height: 0.98;
}

.page-sub {
  max-width: 58ch;
  margin: 0 0 26px;
  color: #3d3d46;
  font-size: 15px;
  line-height: 1.6;
}

.section-title {
  margin: 0 0 18px;
  font-size: clamp(24px, 5.4vw, 40px);
  line-height: 1.02;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 34px 0 16px;
}

.section-head .section-title {
  margin: 0;
}

.section-head .section-note {
  display: none;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.breadcrumbs b {
  color: var(--ink);
  font-weight: 600;
}

.breadcrumbs span {
  color: var(--red);
}

/* Кнопки */

.btn {
  display: inline-flex;
  align-items: stretch;
  justify-content: center;
  min-height: 54px;
  padding: 0;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font: 700 11.5px/1.1 var(--display);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s, color 0.15s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: translate(2px, 2px);
}

.btn > span {
  display: flex;
  align-items: center;
  padding: 0 20px;
}

.btn-ico {
  display: flex !important;
  align-items: center;
  padding: 0 14px !important;
  background: var(--red);
  color: #fff;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -2px;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  background: #000;
  box-shadow: 6px 6px 0 rgba(254, 0, 0, 0.35);
}

.btn-ghost {
  background: var(--paper);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--paper-2);
}

.btn-ghost .btn-ico {
  background: var(--ink);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  min-height: 42px;
  font-size: 10px;
}

.btn-sm > span {
  padding: 0 14px;
}

/* =========================================================
   ГЛАВНАЯ
   ========================================================= */

.hero {
  display: grid;
  gap: 24px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--ink);
  font: 600 10px/1 var(--font);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-kicker::before {
  content: '';
  width: 9px;
  height: 9px;
  background: var(--red);
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(36px, 10.4vw, 62px);
  line-height: 0.9;
  letter-spacing: -0.035em;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
}

.hero-sub {
  max-width: 34ch;
  margin: 0 0 10px;
  color: #2c2c33;
  font-size: 16px;
  line-height: 1.55;
}

.hero-claim {
  max-width: 40ch;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
}

.hero-note::before {
  content: '';
  width: 7px;
  height: 7px;
  flex: none;
  background: var(--red);
}

/* Визуал: фото из бокса (или контурный рисунок) + оверлеи */

.hero-figure {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
  padding: 16px;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}

.hero-figure::before {
  content: 'DD';
  position: absolute;
  right: -10px;
  top: -34px;
  color: rgba(255, 255, 255, 0.045);
  font: 800 190px/1 var(--display);
  letter-spacing: -0.06em;
  pointer-events: none;
}

/* Фотография заполняет весь блок */
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 56%;
  display: none;
}

/* Показываем фото только после успешной загрузки */
.hero-figure.is-photo .hero-photo {
  display: block;
}

/* Затемнение поверх фото, чтобы надписи читались */
.hero-figure.is-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.66) 0%,
    rgba(10, 10, 10, 0.08) 34%,
    rgba(10, 10, 10, 0.14) 58%,
    rgba(10, 10, 10, 0.84) 100%
  );
}

/* В режиме фото контурный рисунок и водяной знак не нужны */
.hero-figure.is-photo::before,
.hero-figure.is-photo .car {
  display: none;
}

.figure-tag {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: var(--red);
  color: #fff;
  font: 600 9px/1 var(--font);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.car {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  margin: 6px 0;
}

.figure-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.figure-foot strong {
  display: block;
  font: 600 10px/1.5 var(--font);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.figure-foot small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.figure-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  background: var(--red);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  text-decoration: none;
}

/* Стикер со срезанным углом */

.sticker {
  position: absolute;
  left: 16px;
  top: 58px;
  z-index: 2;
  display: none;
  max-width: 78%;
  padding: 12px 18px 12px 15px;
  background: var(--paper);
  color: var(--ink);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

.sticker span {
  display: block;
  font: 600 9px/1 var(--font);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.sticker strong {
  display: block;
  margin-top: 6px;
  font: 800 15px/1.15 var(--display);
  text-transform: uppercase;
}

/* Бегущая строка */

.marquee {
  position: relative;
  display: flex;
  overflow: hidden;
  margin: 24px 0 2px;
  padding: 11px 0;
  background: var(--ink);
  color: #fff;
  user-select: none;
}

.marquee-track {
  display: flex;
  flex: none;
  gap: 0;
  min-width: 100%;
  animation: marquee 26s linear infinite;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding-right: 18px;
  font: 600 10px/1 var(--font);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee-track span::after {
  content: '✳';
  color: var(--red);
  font-size: 12px;
  letter-spacing: 0;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* Цифры */

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 26px 0 4px;
  border-top: 2px solid var(--line);
  border-left: 1px solid var(--line-soft);
}

.stat {
  padding: 16px 14px 18px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.stat-value {
  display: block;
  color: var(--red);
  font: 800 clamp(30px, 8vw, 44px)/0.95 var(--display);
  letter-spacing: -0.04em;
}

.stat-value small {
  font-size: 0.62em;
  letter-spacing: 0;
}

.stat-label {
  display: block;
  margin-top: 8px;
  font: 700 10px/1.3 var(--font);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stat-desc {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.4;
}

/* Преимущества */

.trust-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-soft);
}

.trust {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 4px 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
}

.trust-num {
  grid-row: 1 / span 2;
  color: var(--red);
  font: 800 26px/1 var(--display);
  letter-spacing: -0.04em;
}

.trust h3 {
  font-size: 12.5px;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.trust p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

/* Чёрный CTA-блок */

.cta-band {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-top: 26px;
  padding: 26px 20px;
  background: var(--ink);
  color: #fff;
  border-left: 6px solid var(--red);
}

.cta-band strong {
  display: block;
  max-width: 22ch;
  font: 800 clamp(22px, 5.4vw, 34px)/0.98 var(--display);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.cta-band p {
  max-width: 46ch;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12.5px;
  line-height: 1.5;
}

.cta-band .btn {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.cta-band .btn-ico {
  background: var(--red);
  color: #fff;
}

/* =========================================================
   ПРАЙС
   ========================================================= */

.cats {
  display: flex;
  gap: 8px;
  margin: 0 -16px 18px;
  padding: 2px 16px 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.cats::-webkit-scrollbar {
  display: none;
}

.cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: 600 10px/1 var(--font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.cat:hover {
  background: var(--paper-3);
}

.cat.is-active {
  background: var(--ink);
  color: #fff;
  box-shadow: inset 4px 0 0 var(--red);
}

.cat-count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--red);
  color: #fff;
  font: 700 9px/1 var(--font);
  letter-spacing: 0;
}

.cat.is-active .cat-count {
  background: #fff;
  color: var(--ink);
}

.price-card {
  border: 1px solid var(--line);
  background: var(--paper);
}

.price-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  background: var(--ink);
  color: #fff;
}

.price-cat-name {
  font: 800 15px/1.15 var(--display);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.price-range {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.price-total {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}

.price-total strong {
  color: var(--red);
  font: 800 24px/1 var(--display);
}

.price-total small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.price-row {
  display: grid;
  grid-template-columns: 30px 1fr auto 14px;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: var(--paper);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.price-row:last-child {
  border-bottom: 0;
}

.price-row:hover {
  background: var(--ink);
  color: #fff;
}

.price-idx {
  color: var(--muted);
  font: 700 10px/1 var(--font);
  letter-spacing: 0.06em;
}

.price-row:hover .price-idx {
  color: var(--red);
}

.price-name {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.price-val {
  flex: none;
  font: 700 13px/1 var(--display);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.price-val small {
  margin-right: 2px;
  color: var(--muted);
  font: 500 10px/1 var(--font);
}

.price-row:hover .price-val small {
  color: rgba(255, 255, 255, 0.6);
}

.price-go {
  color: var(--red);
  font-size: 15px;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.15s;
}

.price-row:hover .price-go {
  opacity: 1;
}

.note {
  margin: 16px 0 0;
  padding: 16px;
  border: 1px solid var(--line-soft);
  background: var(--paper);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}

.note b {
  color: var(--ink);
}

/* =========================================================
   ЗАПИСЬ
   ========================================================= */

.step-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 12px;
}

.step-head span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  background: var(--ink);
  color: #fff;
  font: 800 11px/1 var(--display);
}

.step-head h3 {
  font-size: 13px;
  letter-spacing: 0.02em;
}

.step-head small {
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  margin-bottom: 4px;
  border-left: 4px solid var(--red);
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.chip::before {
  content: '';
  width: 7px;
  height: 7px;
  flex: none;
  background: var(--red);
}

.chip.is-empty {
  border-left-color: var(--line-soft);
  background: var(--paper-3);
  color: var(--muted);
  font-weight: 500;
}

.chip.is-empty::before {
  background: var(--muted);
}

.cal-card {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 12px;
}

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.cal-head strong {
  font: 700 13px/1.2 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-align: center;
}

.cal-nav {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.cal-nav:hover {
  background: var(--ink);
  color: #fff;
}

.cal-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 4px;
}

.cal-week span {
  padding: 2px 0;
  color: var(--muted);
  font: 600 9px/1 var(--font);
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-day {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 42px;
  aspect-ratio: 1;
  border: 1px solid transparent;
  background: var(--paper-2);
  color: var(--ink);
  font: 600 12px/1 var(--font);
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.cal-day:hover:not(:disabled) {
  border-color: var(--line);
}

.cal-day:disabled {
  opacity: 0.28;
  cursor: default;
  text-decoration: line-through;
}

.cal-day.is-today {
  border-color: var(--red);
}

.cal-day.is-active {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.cal-empty {
  aspect-ratio: 1;
}

.slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 6px;
}

.slot {
  height: 44px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: 600 11px/1 var(--font);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.slot:hover:not(:disabled) {
  background: var(--paper-3);
}

.slot.is-active {
  background: var(--ink);
  color: #fff;
  box-shadow: inset 0 -3px 0 var(--red);
}

.slot:disabled {
  border-color: var(--line-soft);
  background: var(--paper-2);
  color: #a0a0aa;
  text-decoration: line-through;
  cursor: default;
}

.hint {
  grid-column: 1 / -1;
  margin: 0;
  padding: 16px;
  border: 1px dashed var(--line-soft);
  background: var(--paper);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
  text-align: center;
}

/* Форма */

.form {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 16px;
}

.field {
  display: block;
  margin-bottom: 12px;
}

.field > span {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
  color: var(--muted);
  font: 600 9px/1 var(--font);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.field > span::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--red);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  height: 54px;
  padding: 0 14px;
  border: 1px solid rgba(10, 10, 10, 0.38);
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field textarea {
  height: auto;
  min-height: 96px;
  padding: 13px 14px;
  resize: vertical;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='2.4' stroke-linecap='square'%3E%3Cpath d='m5 9 7 7 7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.field input::placeholder {
  color: #a6a6b0;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--ink);
}

.form-error {
  margin: 0 0 12px;
  padding: 11px 12px;
  border-left: 4px solid var(--red);
  background: #fff0f0;
  color: #b00000;
  font-size: 12px;
  line-height: 1.45;
}

.form-hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.form .btn-block {
  margin-top: 6px;
}

.success {
  margin-top: 16px;
  padding: 18px;
  border: 2px solid var(--ink);
  border-left: 8px solid var(--red);
  background: var(--paper);
}

.success h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.success p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

/* =========================================================
   КОНТАКТЫ + БЛОГ
   ========================================================= */

.blog-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  margin-bottom: 12px;
  border-left: 6px solid var(--red);
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  transition: transform 0.15s;
}

.blog-card:hover {
  transform: translate(-2px, -2px);
}

.blog-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  background: var(--red);
  color: #fff;
}

.blog-text {
  min-width: 0;
}

.blog-text strong {
  display: block;
  font: 800 12px/1.3 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.blog-text span {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11.5px;
  line-height: 1.4;
}

.blog-arrow {
  margin-left: auto;
  color: var(--red);
  font-size: 20px;
  line-height: 1;
}

.contact-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.contact-card {
  padding: 15px 16px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.contact-card .label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  color: var(--muted);
  font: 600 9px/1 var(--font);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-card .label::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--red);
}

.contact-card .value {
  display: inline-block;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
}

a.value:hover {
  color: var(--red);
}

.phone-link {
  display: block;
  padding: 3px 0;
  color: var(--ink);
  font: 700 clamp(16px, 4.6vw, 20px)/1.25 var(--display);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.phone-link:hover {
  color: var(--red);
}

.footer {
  margin-top: 30px;
  padding: 24px 20px 22px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.6);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: #fff;
}

.footer-brand .brand-mark {
  height: 48px;
  padding: 5px;
  background: #fff;
}

.footer-brand strong {
  display: block;
  font: 800 14px/1 var(--display);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.footer-brand small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 16px;
}

.footer-nav a,
.footer-nav button {
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
}

.footer-nav a:hover,
.footer-nav button:hover {
  color: var(--red);
}

.footer p {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 10.5px;
  line-height: 1.6;
}

.footer .link-muted {
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 10.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.footer .link-muted:hover {
  color: #fff;
}

/* =========================================================
   НИЖНЯЯ НАВИГАЦИЯ
   ========================================================= */

.nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(100%, 560px);
  padding: 0 0 env(safe-area-inset-bottom);
  background: var(--ink);
  border-top: 3px solid var(--red);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px 12px;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.55);
  font: 600 8.5px/1 var(--font);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.nav-item svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.nav-item.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.nav-item.is-active svg {
  color: var(--red);
}

/* =========================================================
   АДМИН-ПАНЕЛЬ
   ========================================================= */

.admin {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow-y: auto;
  padding: calc(18px + env(safe-area-inset-top)) 16px calc(28px + env(safe-area-inset-bottom));
  background: var(--paper-2);
}

.admin-login {
  max-width: 380px;
  margin: 10vh auto 0;
  padding: 24px 20px;
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: 10px 10px 0 var(--red);
}

.admin-login h2 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.1;
}

.admin-login p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}

.admin-login input {
  width: 100%;
  height: 50px;
  margin-bottom: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  text-align: center;
  font-weight: 600;
  outline: none;
}

.admin-login input:focus {
  box-shadow: inset 0 0 0 2px var(--red);
  border-color: var(--red);
}

.admin-login .btn {
  width: 100%;
  margin-bottom: 10px;
}

.admin-login .link-muted {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 11px;
  text-decoration: underline;
  cursor: pointer;
}

.admin-err {
  margin: 0 0 10px !important;
  padding: 8px 10px;
  border-left: 3px solid var(--red);
  background: #fff0f0;
  color: #b00000 !important;
  font-size: 11px !important;
}

.admin-panel {
  max-width: 760px;
  margin: 0 auto;
}

.admin-top {
  position: sticky;
  top: calc(-18px - env(safe-area-inset-top));
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 -16px 16px;
  padding: 12px 16px;
  background: var(--ink);
  border-bottom: 3px solid var(--red);
}

.admin-top strong {
  color: #fff;
  font: 800 11px/1 var(--display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-btn {
  height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #fff;
  font: 600 9.5px/1 var(--font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.admin-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.admin-btn--accent {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
  font-weight: 700;
}

.admin-btn--accent:hover {
  background: var(--red-dark);
}

.admin-section {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.admin-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.admin-section h3::before {
  content: '';
  width: 6px;
  height: 14px;
  background: var(--red);
}

.admin-field {
  display: block;
  margin-bottom: 11px;
}

.admin-field > span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font: 600 9px/1.3 var(--font);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-field input,
.admin-field textarea {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid var(--line-soft);
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  outline: none;
}

.admin-field textarea {
  min-height: 70px;
  resize: vertical;
}

.admin-field input:focus,
.admin-field textarea:focus {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.admin-hint {
  margin: -3px 0 14px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.admin-price-row {
  display: grid;
  grid-template-columns: 1fr 90px;
  gap: 8px;
  margin-bottom: 7px;
  align-items: center;
}

.admin-price-row label {
  font-size: 12px;
  color: #3d3d46;
}

.admin-price-row input {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line-soft);
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  text-align: right;
  outline: none;
}

.admin-price-row input:focus {
  border-color: var(--ink);
}

.admin-item-grid {
  display: grid;
  grid-template-columns: 1fr 84px;
  gap: 6px;
  margin-bottom: 6px;
}

.admin-item-grid input {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line-soft);
  background: var(--paper);
  color: var(--ink);
  font-size: 12.5px;
  outline: none;
}

.admin-item-grid input:focus {
  border-color: var(--ink);
}

.admin-item-grid input[data-price] {
  text-align: right;
}

.admin-days {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.admin-day {
  width: 44px;
  height: 36px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: 600 10px/1 var(--font);
  text-transform: uppercase;
  cursor: pointer;
}

.admin-day.is-on {
  background: var(--ink);
  color: #fff;
  box-shadow: inset 0 -3px 0 var(--red);
}

.admin-note {
  padding: 13px 14px;
  border-left: 4px solid var(--red);
  background: var(--paper-3);
  color: #4a4a55;
  font-size: 11px;
  line-height: 1.55;
}

.admin-savebar {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.admin-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-tools .admin-btn {
  flex: 1;
  min-width: 130px;
  border-color: var(--line);
  color: var(--ink);
}

.admin-tools .admin-btn:hover {
  background: var(--ink);
  color: #fff;
}

/* =========================================================
   УВЕДОМЛЕНИЕ
   ========================================================= */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(84px + env(safe-area-inset-bottom));
  transform: translate(-50%, 12px);
  z-index: 200;
  max-width: calc(100% - 32px);
  padding: 12px 16px;
  border-left: 5px solid var(--red);
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.is-error {
  border-left-color: #fff;
  background: #b00000;
}

/* =========================================================
   АДАПТИВ
   ========================================================= */

@media (min-width: 560px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid .contact-card--wide {
    grid-column: 1 / -1;
  }

  .sticker {
    display: block;
  }

  .hero-figure {
    min-height: 390px;
  }

  .sticker {
    left: 20px;
    top: 64px;
  }

  .stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    border-top: 2px solid var(--line);
  }

  .trust {
    display: block;
    padding: 18px 16px 20px;
    border-right: 1px solid var(--line-soft);
  }

  .trust:nth-child(2n) {
    border-right: 0;
  }

  .trust:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    border-right: 0;
  }

  .trust-num {
    display: block;
    margin-bottom: 12px;
    font-size: 30px;
  }

  .cta-band {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 28px 24px;
  }

  .cta-band .btn {
    flex: none;
  }
}

@media (min-width: 760px) {
  .topbar {
    padding: calc(12px + env(safe-area-inset-top)) 24px 12px;
  }

  .top-phone {
    display: inline-flex;
    align-items: center;
    height: 38px;
  }

  .phone-icon {
    display: none;
  }

  .top-cta {
    display: inline-flex;
    align-items: center;
  }

  .brand-mark {
    height: 48px;
  }

  .brand-word strong {
    font-size: 17px;
  }

  .app {
    padding: 30px 24px 40px;
  }

  .hero-figure {
    min-height: 400px;
    padding: 20px;
  }

  .hero-sub {
    font-size: 18px;
  }

  .hero-claim {
    font-size: 14px;
  }

  .hero-actions .btn {
    min-height: 60px;
  }

  .section-note {
    display: block;
  }

  .section-head .section-note {
    display: block;
  }

  .hero-title {
    font-size: clamp(38px, 7.9vw, 88px);
  }

  .slots {
    grid-template-columns: repeat(6, 1fr);
  }

  .price-row {
    grid-template-columns: 44px 1fr auto 20px;
    padding: 16px 20px;
  }

  .price-name {
    font-size: 14px;
  }

  .price-val {
    font-size: 14px;
  }

  .price-head {
    padding: 20px;
  }

  .price-cat-name {
    font-size: 18px;
  }

  .form {
    padding: 20px;
  }

  .form-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
  }

  .form-fields .field--wide {
    grid-column: 1 / -1;
  }

  .footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 30px 26px;
  }

  .footer-brand {
    margin-bottom: 0;
  }

  .footer-legal {
    grid-column: 1 / -1;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }
}

/* Две колонки на главной включаем позже: фотографии нужно больше ширины */
@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.06fr 0.94fr;
    gap: 32px;
    align-items: start;
  }

  .hero-figure {
    min-height: 430px;
  }
}

@media (min-width: 1000px) {
  .app {
    padding-top: 36px;
  }

  #screen-home.is-active {
    display: block;
  }

  #screen-home .hero {
    grid-template-columns: 1.02fr 0.98fr;
    gap: 44px;
  }

  #screen-home .hero-figure {
    min-height: 452px;
  }

  #screen-home .stats {
    margin-top: 34px;
  }

  #screen-home .marquee {
    margin-top: 34px;
  }

  .nav {
    width: 100%;
    max-width: none;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 0;
  }

  .nav-item {
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    padding: 15px 10px;
    font-size: 9.5px;
  }

  .booking-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 32px;
    align-items: start;
  }

  .booking-side {
    position: sticky;
    top: 96px;
  }

  .booking-side .step-head {
    margin-top: 0;
  }

  .footer {
    padding: 34px 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
