/* ═══════════════════════════════════════════════
   РемФон — «Инженерная сталь» (тёмная версия)
   Чёрный верстак, приглушённая сталь вместо лайма,
   ghost-цифры, hairline-линии, mono-цифры.
   --accent: сталь для фонов кнопок/рамок (тёмная, нужен светлый текст поверх)
   --accent-text: светлая сталь для читаемого текста/акцентов на чёрном фоне
   ═══════════════════════════════════════════════ */
:root {
  --bg: #0a0a0b;
  --surface: #1a1a1e;
  --accent: #33566e;
  --accent-deep: #22394a;
  --accent-text: #7fa8c9;
  --text: #ffffff;
  --text-muted: #999999;
  --hairline: #333333;
  --ready: #2ecc71;
  --danger: #ff4444;

  --ff-sans: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --ff-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;

  --r-sm: 6px;
  --r-md: 10px;

  --shadow-float: 0 8px 28px -12px rgba(0, 0, 0, 0.6);
  --shadow-card-hover: 0 2px 10px -4px rgba(127, 168, 201, 0.15);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent-text); }

.mono {
  font-family: var(--ff-mono);
  font-variant-numeric: tabular-nums;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 {
  font-family: var(--ff-sans);
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
}
h3 {
  font-size: 1.2rem;
  font-weight: 600;
}

p { max-width: 68ch; }
.muted { color: var(--text-muted); }

/* ── Кнопки ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 28px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-family: var(--ff-sans);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); box-shadow: 0 0 20px rgba(127, 168, 201, 0.25); }
.btn-ghost { background: transparent; color: var(--accent-text); border-color: var(--accent-text); }
.btn-ghost:hover { background: rgba(127, 168, 201, 0.12); }
.btn-ready { background: var(--ready); color: #0a0a0b; } /* только «Готов к выдаче» */
.btn:disabled { opacity: 0.45; cursor: default; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
}

/* ── Шапка ──────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.logo-mark {
  width: 30px; height: 30px;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-mono);
  font-size: 0.85rem;
  font-weight: 600;
}
.nav { display: flex; gap: 26px; }
.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 0;
}
.nav a:hover { color: var(--accent-text); }
.nav-phone { display: none; }
.header .btn { min-height: 40px; padding: 8px 18px; font-size: 0.92rem; }
.header-phone {
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  white-space: nowrap;
}
.header-phone:hover { color: var(--accent-text); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero (чистый: заголовок + CTA, без калькулятора) ─── */
.hero {
  position: relative;
  padding: 100px 0 84px;
}
.hero-content-solo {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.eyebrow-line {
  font-family: var(--ff-mono);
  font-size: 0.8rem;
  color: var(--accent-text);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}
.hero h1 {
  margin-bottom: 20px;
  color: var(--text);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.1;
}
.hero h1 em { font-style: normal; color: var(--accent-text); }
.hero p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 auto 32px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 36px;
}

.trust-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.trust-items-row {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.trust-item .tick { color: var(--ready); font-weight: 700; display: inline-flex; flex: 0 0 auto; }
.trust-item .tick svg { width: 18px; height: 18px; }

/* ── Конфигуратор — отдельный просторный раздел ───────── */
.calc-section {
  position: relative;
  overflow: hidden;
}
.calc-head-split {
  margin-bottom: 56px;
  align-items: flex-start;
}
.calc-head h2 { margin-bottom: 12px; }
.calc-head p { color: var(--text-muted); max-width: 60ch; }

/* Ghost цифры на фоне */
.hero-ghost {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.08;
  font-family: var(--ff-mono);
  font-size: clamp(8rem, 20vw, 18rem);
  font-weight: 700;
  color: var(--accent-text);
  display: flex;
  align-items: center;
  justify-content: space-around;
  overflow: hidden;
  line-height: 1;
}
.ghost-num {
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 0 40px rgba(127, 168, 201, 0.15);
}

/* ── Секции ─────────────────────────────────── */
.section {
  padding: 88px 0;
  position: relative;
}
.section-alt { background: var(--surface); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.section-head { margin-bottom: 44px; }
.section-head .kicker {
  font-family: var(--ff-mono);
  font-size: 0.85rem;
  color: var(--accent-text);
  display: block;
  margin-bottom: 10px;
}
.section-head p { color: var(--text-muted); margin-top: 10px; }

/* ── Сплит Лейаут и Картинки ────────────────── */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.split-layout.reverse {
  direction: rtl;
}
.split-layout.reverse > * {
  direction: ltr;
}
.split-image {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-float);
}
.split-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.how-head-split .split-image,
.track-head-split .split-image,
.calc-head-split .split-image,
.extra-head-split .split-image {
  aspect-ratio: 4 / 3;
}
.how-head-split .split-image img,
.track-head-split .split-image img,
.calc-head-split .split-image img,
.extra-head-split .split-image img {
  height: 100%;
  object-position: center;
}
.how-head-split .split-image img {
  object-position: 68% center;
}
@media (max-width: 900px) {
  .split-layout { grid-template-columns: 1fr; gap: 24px; }
  .split-layout.reverse { direction: ltr; }
}

/* ── Конфигуратор ───────────────────────────── */
.calc {
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: rgba(26, 26, 30, 0.5);
  backdrop-filter: blur(8px);
  overflow: hidden;
}
.calc-steps {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}
.calc-col {
  padding: 28px;
  border-right: 1px solid var(--hairline);
  min-width: 0;
  transition: opacity 0.25s var(--ease);
}
.calc-col:last-child { border-right: none; }
.calc-col.is-locked {
  opacity: 0.45;
}
.calc-col-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}
.calc-col-title h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}
.opts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
}
.opt {
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  padding: 11px 13px;
  min-height: 44px;
  font-family: var(--ff-sans);
  font-size: 0.93rem;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.2s var(--ease);
}
.opt:hover {
  border-color: var(--accent-text);
  background: rgba(127, 168, 201, 0.10);
  box-shadow: 0 0 12px rgba(127, 168, 201, 0.15);
}
.opt[aria-pressed="true"] {
  border: 1px solid var(--accent-text);
  background: rgba(127, 168, 201, 0.15);
  font-weight: 600;
}
.opt .opt-price {
  font-family: var(--ff-mono);
  font-size: 0.85rem;
  color: var(--accent-text);
  white-space: nowrap;
}
.opt-placeholder {
  color: var(--text-muted);
  font-size: 0.92rem;
  padding: 12px 2px;
}
.opt-custom {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.opt-custom.hidden-custom { display: none; }
.opt-custom-input {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  padding: 11px 13px;
  min-height: 44px;
  font-family: var(--ff-sans);
  font-size: 0.93rem;
  color: var(--text);
}
.opt-custom-input::placeholder { color: var(--text-muted); }
.opt-custom-input:focus {
  outline: none;
  border-color: var(--accent-text);
  background: rgba(127, 168, 201, 0.08);
}
.opt-custom-confirm {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 16px;
  font-size: 0.9rem;
}

.calc-result {
  border-top: 1px solid var(--hairline);
  background: transparent;
  padding: 24px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}
.calc-summary {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex: 1 1 220px;
  min-width: 0;
}
.calc-summary .picked {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
}
.calc-price-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}
.calc-price {
  font-family: var(--ff-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.2rem, 3vw, 3.2rem);
  font-weight: 600;
  color: var(--accent-text);
  line-height: 1;
}
.calc-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
}
.calc-btn {
  flex: 0 0 auto;
  margin-top: 0;
}
.calc-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0 28px 24px;
  margin-top: 0;
}

/* ── Как мы работаем ────────────────────────── */
.how-head-split,
.extra-head-split {
  margin-bottom: 56px;
  align-items: flex-start;
}
.how-head h2 {
  margin-bottom: 12px;
}
.how-head p {
  color: var(--text-muted);
  max-width: 60ch;
}

.process-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* Вертикальная линия процесса */
.process-timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--hairline);
}

.process-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 32px;
  align-items: baseline;
  position: relative;
}

.step-number {
  font-family: var(--ff-mono);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent-text);
  position: relative;
  z-index: 2;
}

/* Кружок на линии */
.process-step::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 8px;
  width: 20px;
  height: 20px;
  background: var(--bg);
  border: 2px solid var(--accent-text);
  border-radius: 50%;
  z-index: 3;
}

.step-content {
  padding-top: 4px;
}

.step-content h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  color: var(--text);
}

.step-content p {
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 65ch;
  font-size: 0.98rem;
}

/* Old styles for compatibility */
.steps-grid {
  display: none;
}
.step-cell { background: var(--bg); padding: 26px; }
.step-cell .sn {
  font-family: var(--ff-mono);
  color: var(--accent-text);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 12px;
}
.step-cell h3 { margin-bottom: 8px; font-size: 1.05rem; }
.step-cell p { font-size: 0.95rem; color: var(--text-muted); }

/* ── Трекинг ────────────────────────────────── */
.track-head-split {
  margin-bottom: 56px;
  align-items: flex-start;
}
.track-head h2 {
  margin-bottom: 12px;
}
.track-head p {
  color: var(--text-muted);
  max-width: 65ch;
}

.track-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  position: relative;
}

.track-form-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.track-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.track-form input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  padding: 13px 15px;
  min-height: 48px;
  font-family: var(--ff-sans);
  font-size: 1rem;
  color: var(--text);
  transition: all 0.2s var(--ease);
}

.track-form input::placeholder {
  color: var(--text-muted);
}

.track-form input:focus {
  outline: none;
  border: 1px solid var(--accent-text);
  background: rgba(127, 168, 201, 0.10);
  box-shadow: 0 0 12px rgba(127, 168, 201, 0.15);
}

.track-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--ff-mono);
}

.track-error {
  color: var(--danger);
  font-size: 0.92rem;
  padding: 12px 14px;
  background: rgba(255, 68, 68, 0.08);
  border-radius: var(--r-sm);
  border-left: 2px solid var(--danger);
}

.track-result-col {
  display: flex;
  flex-direction: column;
}

.track-card {
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 28px;
  background: rgba(26, 26, 30, 0.5);
  backdrop-filter: blur(8px);
}

.order-info {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--hairline);
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 12px;
}

.info-row:last-child {
  margin-bottom: 0;
}

.info-row .label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

.info-row .value {
  font-size: 1.05rem;
  color: var(--accent-text);
  font-weight: 600;
}

.track-progress h3 {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 18px;
  font-weight: 600;
}

/* Ghost-символ на фоне */
.track-ghost {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  font-family: var(--ff-mono);
  font-size: clamp(12rem, 30vw, 24rem);
  font-weight: 700;
  color: var(--accent-text);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ghost-char {
  text-shadow: 0 0 60px rgba(127, 168, 201, 0.2);
}

/* Степпер статусов */
.stepper {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.stepper li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 18px;
  position: relative;
  padding-bottom: 24px;
}

.stepper li:last-child {
  padding-bottom: 0;
}

.stepper .dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--hairline);
  background: var(--bg);
  margin-top: 3px;
  justify-self: center;
  transition: all 0.2s var(--ease);
}

.stepper li::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 22px;
  bottom: 0;
  width: 2px;
  background: var(--hairline);
}

.stepper li:last-child::before {
  display: none;
}

.stepper-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stepper .st-name {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.stepper .st-time {
  font-family: var(--ff-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Done state */
.stepper li.done .dot {
  background: var(--accent-text);
  border-color: var(--accent-text);
}

.stepper li.done .st-name {
  color: var(--text);
}

.stepper li.done::before {
  background: var(--accent-text);
}

/* Current state */
.stepper li.current .dot {
  border-color: var(--accent-text);
  background: var(--bg);
  box-shadow: inset 0 0 0 3px var(--bg), inset 0 0 0 8px var(--accent-text);
}

.stepper li.current .st-name {
  color: var(--text);
  font-weight: 600;
}

/* Ready state — зелёный */
.stepper li.ready.done .dot,
.stepper li.ready.current .dot {
  background: var(--ready);
  border-color: var(--ready);
  box-shadow: none;
}

.stepper li.ready.current .st-name {
  color: var(--ready);
}

/* ── Филиалы ────────────────────────────────── */
.branch-card {
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 24px;
  background: var(--bg);
}
@media (prefers-reduced-motion: no-preference) {
  .branch-card, .service-card, .master-card {
    transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  }
  .branch-card:hover, .service-card:hover, .master-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-text);
    box-shadow: var(--shadow-card-hover);
  }
}
.branch-card h3 { margin-bottom: 10px; }
.branch-card p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 4px; }
.branch-card .mono { font-size: 0.92rem; color: var(--text); }

/* ── Формы ──────────────────────────────────── */
input, select {
  font-family: var(--ff-sans);
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  padding: 12px 15px;
  min-height: 48px;
  width: 100%;
  transition: border-color 0.15s var(--ease);
}
input:focus, select:focus { outline: none; border: 2px solid var(--accent); padding: 11px 14px; }
input.error { border: 2px solid var(--danger); padding: 11px 14px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; }
.field .err { display: none; color: var(--danger); font-size: 0.85rem; margin-top: 5px; }
.field.has-error .err { display: block; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: var(--text-muted); margin: 18px 0; }
.consent input { width: 18px; min-height: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: 0 0 auto; }

/* ── Модалка записи ─────────────────────────── */
.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.8); }
.modal-card {
  position: relative;
  background: var(--bg);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-float);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
}
.modal-card h3 { margin-bottom: 6px; font-size: 1.35rem; }
.modal-sub { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 20px; }
.modal-reassure { color: var(--text-muted); font-size: 0.85rem; text-align: center; margin-top: 12px; }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 40px; height: 40px;
  background: none; border: none;
  color: var(--text-muted);
  cursor: pointer; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
}
.modal-close svg { width: 20px; height: 20px; }
.modal-close:hover { background: var(--surface); color: var(--text); }
.order-summary {
  background: var(--surface);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 0.95rem;
}
.order-summary .row { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
.order-summary .row b { font-family: var(--ff-mono); font-weight: 600; }

/* Успех записи */
.success-box { text-align: center; padding: 12px 0; }
.success-box .ok-mark {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--ready);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.success-box .ok-mark svg { width: 26px; height: 26px; }
.success-box .big-num {
  font-family: var(--ff-mono);
  font-size: 2rem;
  font-weight: 600;
  margin: 10px 0 4px;
}
.success-box p { margin: 0 auto 8px; font-size: 0.95rem; color: var(--text-muted); }

/* ── Футер ──────────────────────────────────── */
.footer {
  background: #000000;
  color: var(--text-muted);
  padding: 56px 0 28px;
  margin-top: 88px;
}
.footer a { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 12px; }
.footer p, .footer li { font-size: 0.92rem; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 20px;
  font-size: 0.85rem;
  color: #9fb2bf;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}
.demo-badge {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  padding: 2px 8px;
}

/* ── Таблица цен (страницы-лендинги по брендам) */
.price-table { width: 100%; border-collapse: collapse; margin: 24px 0 8px; }
.price-table th, .price-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--hairline); }
.price-table th { color: var(--text-muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.price-table td.price { color: var(--accent-text); font-weight: 500; }
.price-table tbody tr:last-child td { border-bottom: none; }

/* ── Доп. услуги (без калькулятора) ─────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.service-card {
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 24px;
  background: var(--surface);
}
.service-card h3 { margin-bottom: 8px; }
.service-card p { color: var(--text-muted); font-size: 0.92rem; }

/* ── Мастера (профили) ──────────────────────── */
.masters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.masters-grid-single {
  grid-template-columns: 1fr;
  max-width: 320px;
  margin: 0 auto;
}
.master-card {
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 28px 24px;
  text-align: center;
}
.master-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-mono);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 auto 16px;
}
.master-card h3 { margin-bottom: 4px; }
.master-role { font-family: var(--ff-mono); font-size: 0.85rem; color: var(--accent-text); margin-bottom: 12px; }
.master-bio { font-size: 0.92rem; color: var(--text-muted); margin: 0 auto; }

/* ── Отзывы (реальный рейтинг, ссылка на 2ГИС) ── */
.rating-card {
  display: block;
  max-width: 360px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 40px 32px;
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.rating-card:hover { border-color: var(--accent-text); }
@media (prefers-reduced-motion: no-preference) {
  .rating-card { transition: border-color 0.2s var(--ease), transform 0.2s var(--ease); }
  .rating-card:hover { transform: translateY(-3px); }
}
.rating-score { font-size: 3rem; font-weight: 700; color: var(--text); line-height: 1; margin-bottom: 10px; }
.rating-stars { display: flex; justify-content: center; gap: 4px; color: var(--ready); margin-bottom: 12px; }
.rating-stars svg { width: 18px; height: 18px; }
.rating-count { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 20px; }
.rating-link { color: var(--accent-text); font-size: 0.95rem; font-weight: 600; }

/* ── Карусель отзывов (готова под будущие тексты) */
.reviews-carousel { max-width: 620px; margin: 28px auto 0; overflow: hidden; }
.carousel-track { display: flex; transition: transform 0.4s var(--ease); }
.carousel-slide { flex: 0 0 100%; min-width: 0; }
.carousel-slide .review-card {
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 28px 32px;
  background: var(--surface);
  text-align: center;
}
.carousel-slide .review-card p { color: var(--text-muted); font-size: 0.95rem; margin: 0 auto; max-width: 52ch; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 18px; }
.carousel-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--accent-text);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s var(--ease);
}
.carousel-btn svg { width: 16px; height: 16px; }
.carousel-btn:hover:not(:disabled) { border-color: var(--accent-text); }
.carousel-btn:disabled { opacity: 0.3; cursor: default; }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dot { width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0; background: var(--hairline); cursor: pointer; }
.carousel-dot.active { background: var(--accent-text); }

/* ── Карта филиалов ──────────────────────────── */
.map-toggle-btn { margin-bottom: 8px; }
.map-panel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), opacity 0.3s var(--ease);
}
.map-panel.is-open {
  max-height: 640px;
  opacity: 1;
}
.branches-map {
  display: block;
  margin-top: 20px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--hairline);
  margin-bottom: 8px;
}
.branches-map img { width: 100%; height: auto; }
.branches-map-caption { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 32px; }
.branches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.branch-address { margin-bottom: 4px; }
.branch-hours { color: var(--text-muted); margin-bottom: 14px; }
.branch-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.branch-phone-link { color: var(--text); text-decoration: none; }
.branch-phone-link:hover { color: var(--accent-text); }
.btn-map-link { color: var(--accent-text); text-decoration: none; font-size: 0.92rem; font-weight: 500; }
.btn-map-link:hover { text-decoration: underline; }
.branch-access-note { margin-top: 20px; font-size: 0.88rem; color: var(--text-muted); }

/* ── FAQ ─────────────────────────────────────── */
.faq-list { border-top: 1px solid var(--hairline); }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-icon {
  flex: 0 0 auto;
  color: var(--accent-text);
  font-family: var(--ff-mono);
  font-size: 1.2rem;
  transition: transform 0.2s var(--ease);
}
.faq-item[open] summary .faq-icon { transform: rotate(45deg); }
.faq-item p { padding-bottom: 20px; color: var(--text-muted); max-width: 70ch; }

/* ── Кабинет мастера ────────────────────────── */
.master-body { background: var(--surface); min-height: 100vh; }
.master-wrap { max-width: 860px; margin: 0 auto; padding: 24px; }
.master-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-bottom: 22px; flex-wrap: wrap;
}
.login-card {
  max-width: 380px;
  margin: 10vh auto 0;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 30px;
}
.login-card h1 { font-size: 1.5rem; margin-bottom: 4px; }
.login-card .muted { font-size: 0.92rem; margin-bottom: 20px; display: block; }
.login-err { color: var(--danger); font-size: 0.9rem; margin-top: 10px; display: none; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.seg {
  min-height: 44px;
  padding: 9px 16px;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  font-family: var(--ff-sans);
  font-size: 0.92rem;
  color: var(--text-muted);
  cursor: pointer;
}
.seg[aria-pressed="true"] { border: 2px solid var(--accent); color: var(--text); font-weight: 600; padding: 8px 15px; }

.order-row {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 18px 20px;
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
}
.order-row .o-num { font-family: var(--ff-mono); font-weight: 600; }
.order-row .o-info { font-size: 0.95rem; color: var(--text-muted); }
.order-row .o-status {
  font-family: var(--ff-mono);
  font-size: 0.82rem;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  white-space: nowrap;
}
.order-row .o-status.is-ready { background: #e7f3ec; border-color: var(--ready); color: var(--ready); }
.order-row .o-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.order-row .btn { min-height: 48px; }
.empty-note { text-align: center; color: var(--text-muted); padding: 48px 0; }

/* ── Анимации ──────────────────────────────────── */

/* Reveal на scroll */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
  .process-step.reveal { transition-delay: calc(var(--stagger-i, 0) * 0.08s); }
  .service-card.reveal { transition-delay: calc(var(--stagger-i, 0) * 0.1s); }
}

/* Hover-lift на кнопках */
@media (prefers-reduced-motion: no-preference) {
  .btn {
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
  }

  .btn:hover:not(:disabled) {
    transform: translateY(-2px);
  }
}

/* Counter-up на цифрах цены */
@media (prefers-reduced-motion: no-preference) {
  .calc-price {
    transition: color 0.3s var(--ease);
  }
}

/* Пульс на текущем статусе (stepper) */
@media (prefers-reduced-motion: no-preference) {
  .stepper li.current .dot {
    animation: pulse 2s var(--ease) infinite;
  }

  @keyframes pulse {
    0% {
      box-shadow: inset 0 0 0 3px var(--bg), inset 0 0 0 8px var(--accent-text), 0 0 0 0 rgba(127, 168, 201, 0.4);
    }
    50% {
      box-shadow: inset 0 0 0 3px var(--bg), inset 0 0 0 8px var(--accent-text), 0 0 0 8px rgba(127, 168, 201, 0);
    }
    100% {
      box-shadow: inset 0 0 0 3px var(--bg), inset 0 0 0 8px var(--accent-text), 0 0 0 0 rgba(127, 168, 201, 0);
    }
  }
}

/* Smooth transitions на inputs */
@media (prefers-reduced-motion: no-preference) {
  input, select {
    transition: all 0.2s var(--ease);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Адаптив ────────────────────────────────── */
@media (max-width: 1024px) {
  .calc-steps { grid-template-columns: 1fr; }
  .calc-col { border-right: none; border-bottom: 1px solid var(--hairline); }
  .calc-col:last-child { border-bottom: none; }

  .process-timeline::before {
    left: 20px;
  }
  .process-step::before {
    left: 11px;
  }
  .process-step {
    grid-template-columns: 48px 1fr;
    gap: 24px;
  }
  .step-number {
    font-size: 1.5rem;
  }
}
@media (max-width: 900px) {
  .hero { padding: 60px 0 80px; }
  .masters-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .calc-steps { grid-template-columns: 1fr; }
  .calc-col { border-right: none; border-bottom: 1px solid var(--hairline); }
  .calc-col:last-child { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .calc-result { flex-direction: column; align-items: stretch; }
  .calc-summary { flex-wrap: wrap; gap: 12px; }
  .calc-btn { width: 100%; }
  .hero-ghost {
    font-size: clamp(4rem, 15vw, 10rem);
  }

  .track-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .track-form {
    flex-direction: row;
    gap: 12px;
  }

  .form-group {
    flex-direction: row;
    gap: 12px;
  }

  .track-form input {
    flex: 1;
  }

  .track-form button {
    flex: 0 1 auto;
  }

  .track-ghost {
    font-size: clamp(8rem, 20vw, 16rem);
  }
}
@media (max-width: 760px) {
  .nav {
    position: fixed;
    top: 64px; right: 0;
    width: 280px;
    max-width: 78%;
    height: calc(100vh - 64px);
    background: var(--bg);
    border-left: 1px solid var(--hairline);
    flex-direction: column;
    gap: 0;
    padding: 18px 22px;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
  }
  .nav.open { transform: translateX(0); }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--hairline); font-size: 1.02rem; }
  .nav-phone { display: block; color: var(--accent-text); border-bottom: none; }
  .nav-toggle { display: flex; }
  .header .header-cta { display: none; }
  .header-phone { display: none; }
  .hero { padding: 56px 0 44px; }
  .section { padding: 60px 0; }
  .track-form { flex-direction: column; }
  .order-row { grid-template-columns: 1fr; }
  .order-row .o-actions { justify-content: stretch; }
  .order-row .o-actions .btn { flex: 1; }
}
