:root {
  --bg-main: #0a0c10;
  --bg-surface: #10141c;
  --bg-card: #151a24;
  --bg-card-hover: #1b2230;
  --bg-input: #0d1016;
  --border: rgba(255, 255, 255, 0.08);
  --border-focus: #ff5722;
  --border-glow: rgba(255, 87, 34, 0.4);

  --accent: #ff5722;
  --accent-2: #ff7844;
  --accent-grad: linear-gradient(135deg, #ff5722 0%, #ff8a50 100%);
  --accent-glow: rgba(255, 87, 34, 0.35);

  --text: #f0f4fb;
  --text-muted: #8b99ad;
  --text-dim: #546072;
  --success: #2ec4b6;
  --warning: #ffb703;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 50px;

  --font-base: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Unbounded', -apple-system, sans-serif;

  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

body {
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(255, 87, 34, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(255, 120, 68, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-base);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  padding-bottom: 70px;
}

@media (min-width: 900px) {
  body { padding-bottom: 0; }
}

.wrap {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==================== АНИМАЦИИ ПОЯВЛЕНИЯ ПРИ СКРОЛЛЕ ==================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== СВЕТОВЫЕ ЭФФЕКТЫ ==================== */
.bg-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
}
.bg-glow--1 { top: -100px; left: -100px; background: var(--accent); }
.bg-glow--2 { top: 40%; right: -150px; background: #ff7844; }

/* ==================== ПРЕМИУМ КНОПКИ ==================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.3px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: var(--transition-smooth);
  white-space: nowrap;
  z-index: 1;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
  transition: 0.6s ease;
  z-index: -1;
}

.btn:hover::after {
  left: 140%;
}

.btn--accent {
  background: var(--accent-grad);
  color: #ffffff;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn--accent:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(255, 87, 34, 0.55);
}

.btn--accent:active {
  transform: translateY(-1px) scale(0.99);
}

.btn--line {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn--line:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 87, 34, 0.15);
}

.btn--sm {
  padding: 10px 22px;
  font-size: 0.88rem;
}

.btn--pill {
  border-radius: 999px;
  padding: 11px 24px;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.btn--wide {
  width: 100%;
}

/* ==================== ШАПКА ==================== */
.hdr {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 12, 16, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--transition-smooth);
}

.hdr__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  flex: none;
}

.logo__mark {
  background: var(--accent-grad);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  box-shadow: 0 0 20px var(--accent-glow);
  flex: none;
}

.logo__txt b {
  font-family: var(--font-display);
  font-size: 1.08rem;
  letter-spacing: 0.4px;
  color: #ffffff;
  display: block;
  line-height: 1.1;
}

.logo__txt small {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

.nav {
  display: none;
  align-items: center;
  gap: 26px;
}

.nav a {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition-smooth);
  position: relative;
  padding: 6px 0;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition-smooth);
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav a:hover { color: #fff; }
.nav a:hover::after { width: 100%; }

.hdr__cta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: none;
}

.hdr__phone {
  display: none;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.96rem;
  color: #ffffff;
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.hdr__phone:hover { color: var(--accent); }

.burger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: 0.2s;
}

@media (min-width: 1024px) {
  .nav { display: flex; }
  .hdr__phone { display: block; }
  .burger { display: none; }
}

/* ==================== HERO ==================== */
.hero {
  padding: 80px 0 60px;
  position: relative;
  z-index: 1;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 87, 34, 0.08);
  border: 1px solid rgba(255, 87, 34, 0.25);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.84rem;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.hero__text h1 {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.5vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: 22px;
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(180deg, #ffffff 40%, #c4cfde 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__lead {
  font-size: 1.18rem;
  color: var(--text-muted);
  margin-bottom: 34px;
  line-height: 1.7;
  max-width: 620px;
}

.hero__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

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

.pill-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: #d1d9e6;
}

.pill-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(46, 196, 182, 0.15);
  color: var(--success);
  font-size: 0.8rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 1px solid rgba(46, 196, 182, 0.3);
}

/* ==================== ИНТЕРАКТИВНАЯ КАРТОЧКА ЗАКАЗ-НАРЯДА ==================== */
.order-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 87, 34, 0.1);
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.order-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 87, 34, 0.4);
}

.order-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.order-badge {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  padding: 6px 12px;
  border-radius: 6px;
}

.order-status {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--success);
  text-transform: uppercase;
}

.order-car-info {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}

.car-avatar {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.order-car-info b {
  display: block;
  font-size: 1.15rem;
  color: #fff;
}

.order-car-info span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.order-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
}

.order-row--extra {
  background: rgba(255, 183, 3, 0.08);
  border-left: 3px solid var(--warning);
  padding: 8px 12px;
  border-radius: 4px;
}

.order-row--extra small {
  display: block;
  font-size: 0.78rem;
  color: var(--warning);
}

.order-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  font-size: 1.1rem;
  margin-bottom: 22px;
}

.order-total b {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent);
}

.order-media-preview {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  align-items: center;
}

.media-thumb {
  height: 80px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.media-tag {
  position: absolute;
  bottom: 4px;
  left: 4px;
  font-size: 0.65rem;
  background: rgba(0,0,0,0.8);
  padding: 2px 6px;
  border-radius: 4px;
  color: #fff;
}

.media-chat-bubble p {
  font-size: 0.82rem;
  color: #d1d9e6;
  line-height: 1.4;
  margin: 4px 0 6px;
}

.bubble-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--accent);
}

.bubble-ok {
  font-size: 0.74rem;
  color: var(--success);
  font-weight: 700;
}

/* ==================== СТАТИСТИКА ==================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition-smooth);
}

.stat-box:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 87, 34, 0.4);
}

.stat-box b {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--accent);
}

.stat-box span {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--accent);
}

.stat-box p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ==================== СЕКЦИИ ==================== */
.sec {
  padding: 95px 0;
  position: relative;
  z-index: 1;
}

.sec--dark {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.sec__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 54px;
}

.sec__head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 14px;
  color: #ffffff;
}

.sec__head p {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ==================== УСЛУГИ ==================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 26px;
}

.srv-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.srv-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 87, 34, 0.45);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4), 0 0 25px rgba(255, 87, 34, 0.12);
}

.srv-card__img {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s ease;
}

.srv-card:hover .srv-card__img {
  transform: scale(1.03);
}

.srv-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(10, 12, 16, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
}

.srv-card__body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.srv-card__body h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #ffffff;
}

.srv-card__body p {
  font-size: 0.92rem;
  color: var(--text-muted);
  flex-grow: 1;
  margin-bottom: 22px;
  line-height: 1.6;
}

.srv-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.srv-price {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
}

/* ==================== КАЛЬКУЛЯТОР ТО ==================== */
.calc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 900px) {
  .calc-grid { grid-template-columns: 1.1fr 0.9fr; }
}

.field-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.calc-mileage-val {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
}

.range-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 6px;
}

.parts-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 8px;
}

.parts-opt {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 10px;
  cursor: pointer;
  text-align: center;
  transition: var(--transition-smooth);
}

.parts-opt input { display: none; }
.parts-opt b { display: block; font-size: 0.9rem; color: #fff; margin-bottom: 2px; }
.parts-opt small { font-size: 0.72rem; color: var(--text-muted); display: block; }

.parts-opt:hover { border-color: rgba(255, 87, 34, 0.4); }
.parts-opt.is-active {
  background: rgba(255, 87, 34, 0.12);
  border-color: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
}
.parts-opt.is-active b { color: var(--accent); }

.calc-summary {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.calc-summary h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
}

.calc-items-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  min-height: 320px; /* Фиксированная высота полностью исключает дергание страницы */
  justify-content: flex-start;
}

.calc-items-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.calc-totals {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.totals-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}
.totals-line span { color: var(--text-muted); }

.totals-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  font-size: 1.15rem;
}

.totals-total b {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--accent);
}

/* ==================== ПРОЗРАЧНОСТЬ И СЛАЙДЕР ДО/ПОСЛЕ ==================== */
.transparency-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .transparency-grid { grid-template-columns: 1.1fr 0.9fr; }
}

.trans-info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin: 14px 0 16px;
  color: #ffffff;
}

.trans-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
}

.t-step {
  display: flex;
  gap: 16px;
}

.t-step__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 0 15px var(--accent-glow);
}

.t-step b {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.t-step p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.ba-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.ba-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}

.ba-head b { font-family: var(--font-display); font-size: 1.1rem; }
.ba-head span { font-size: 0.8rem; color: var(--text-muted); }

.ba-slider {
  position: relative;
  width: 100%;
  height: 340px;
  border-radius: var(--radius-md);
  overflow: hidden;
  user-select: none;
}

.ba-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.ba-layer--after {
  z-index: 2;
  border-right: 3px solid var(--accent);
  box-shadow: 5px 0 25px rgba(255, 87, 34, 0.7);
}

.ba-tag {
  position: absolute;
  top: 14px;
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
}

.ba-layer--before .ba-tag { right: 14px; }
.ba-layer--after .ba-tag { left: 14px; }

.ba-range {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 10;
  cursor: ew-resize;
}

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  z-index: 5;
  pointer-events: none;
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-grad);
  border: 2px solid #fff;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 0 20px var(--accent-glow);
}

.ba-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 14px;
}

/* ==================== ПРАЙС ==================== */
.price-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.price-tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.price-tab-btn:hover { border-color: rgba(255, 87, 34, 0.4); color: #fff; }
.price-tab-btn.is-active {
  background: var(--accent-grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 18px var(--accent-glow);
}

.price-table-card table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.price-table-card th, .price-table-card td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.price-table-card th {
  background: #0d1016;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.price-table-card td:last-child {
  text-align: right;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

/* ==================== ГАЛЕРЕЯ ==================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.g-item {
  height: 240px;
  border-radius: var(--radius-md);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.g-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 12, 16, 0.85) 100%);
}

.g-item span {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  z-index: 1;
}

.g-item:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 87, 34, 0.4);
}

/* ==================== ОТЗЫВЫ ==================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 24px;
}

.rev-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.rev-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

.rev-card__top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.rev-card__stars { color: #ffb703; font-size: 1rem; }
.rev-card__date { font-size: 0.8rem; color: var(--text-dim); }

.rev-card p {
  font-size: 0.94rem;
  color: var(--text);
  flex-grow: 1;
  margin-bottom: 18px;
  line-height: 1.6;
}

.rev-card__author b {
  display: block;
  font-size: 1rem;
  color: #fff;
}

.rev-card__author span {
  font-size: 0.82rem;
  color: var(--accent);
}

/* ==================== ИДЕАЛЬНАЯ ФОРМА ОНЛАЙН-ЗАПИСИ ==================== */
.book-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 900px) {
  .book-wrap { grid-template-columns: 0.9fr 1.1fr; align-items: center; }
}

.book-info h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin: 14px 0 16px;
  color: #ffffff;
}

.book-info p {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 1.05rem;
}

.book-advantages {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.adv-item b {
  display: block;
  font-size: 1rem;
  color: #fff;
}

.adv-item span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.book-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 38px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.form-title {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.form-title b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #fff;
}

.form-title small {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 550px) {
  .grid2 { grid-template-columns: 1fr 1fr; }
}

.field {
  margin-bottom: 22px;
}

.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #d8e2ef;
}

/* Все инпуты - ровно 52px, с идеальными отступами и подсветкой */
.field input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
.field select,
.field textarea {
  width: 100% !important;
  height: 52px !important;
  background-color: var(--bg-input) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  padding: 13px 16px !important;
  font-family: inherit !important;
  font-size: 0.96rem !important;
  outline: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.22);
  display: block;
  appearance: none;
  -webkit-appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%239ca3af' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
  padding-right: 42px !important;
  cursor: pointer;
}

.field textarea {
  height: auto !important;
  min-height: 96px !important;
  resize: vertical;
  line-height: 1.5;
}

.field input:not([type="checkbox"]):not([type="radio"]):not([type="range"])::placeholder,
.field textarea::placeholder {
  color: var(--text-dim) !important;
}

.field input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent) !important;
  background-color: #141822 !important;
  box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.16), inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

/* Роскошный кастомный ползунок пробега */
.field input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: linear-gradient(to right, var(--accent) 0%, var(--accent) var(--range-progress, 33.33%), rgba(255, 255, 255, 0.14) var(--range-progress, 33.33%), rgba(255, 255, 255, 0.14) 100%);
  border-radius: 99px;
  outline: none;
  cursor: grab;
  margin: 16px 0 10px;
  border: none !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4) !important;
  padding: 0 !important;
}

.field input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 99px;
  background: transparent;
}

.field input[type="range"]:active {
  cursor: grabbing;
}

.field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -8px;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid var(--accent);
  box-shadow: 0 0 16px var(--accent-glow), 0 3px 8px rgba(0, 0, 0, 0.5);
  cursor: grab;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.field input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 24px rgba(255, 87, 34, 0.8), 0 4px 10px rgba(0, 0, 0, 0.5);
}

.field input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.25);
  cursor: grabbing;
  box-shadow: 0 0 30px rgba(255, 87, 34, 1);
}

.field input[type="range"]::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
  cursor: grab;
  transition: transform 0.15s ease;
}

/* Слоты дат и времени */
.days, .slots {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 12px;
}

.day-btn, .slot-btn {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  font-size: 0.92rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.day-btn:hover, .slot-btn:hover {
  background: rgba(255, 87, 34, 0.1);
  border-color: rgba(255, 87, 34, 0.4);
  color: #fff;
  transform: translateY(-2px);
}

.day-btn.is-active, .slot-btn.is-active {
  background: var(--accent-grad);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 18px var(--accent-glow);
}

.hp { display: none !important; }

.form-msg {
  margin-top: 18px;
  font-size: 0.95rem;
  text-align: center;
  display: none;
  padding: 12px;
  border-radius: var(--radius-sm);
}

.form-msg.is-ok {
  background: rgba(46, 196, 182, 0.12);
  border: 1px solid rgba(46, 196, 182, 0.3);
  color: var(--success);
  display: block;
  font-weight: 600;
}

.form-msg.is-err {
  background: rgba(230, 57, 70, 0.12);
  border: 1px solid rgba(230, 57, 70, 0.3);
  color: #e63946;
  display: block;
}

.tiny {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 16px;
  text-align: center;
}

/* ==================== КОНТАКТЫ ==================== */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 860px) {
  .contacts-grid { grid-template-columns: 1fr 1fr; align-items: center; }
}

.contacts-info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.c-box {
  margin-bottom: 20px;
}

.c-box b {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.c-box span, .c-phone {
  font-size: 1.15rem;
  color: #ffffff;
  text-decoration: none;
}

.c-phone:hover { color: var(--accent); }

.msgr-row {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.m-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.m-pill:hover {
  background: var(--accent-grad);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--accent-glow);
}

.map-preview-img {
  height: 320px;
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.map-preview-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 16, 0.65);
}

.map-badge {
  position: relative;
  z-index: 2;
  background: rgba(10, 12, 16, 0.88);
  border: 1px solid var(--accent);
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  text-align: center;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.map-badge b { display: block; font-family: var(--font-display); font-size: 1.1rem; color: #fff; }
.map-badge span { font-size: 0.85rem; color: var(--accent); font-weight: 700; }

.map-link-cover:hover .map-badge {
  background: var(--accent-grad);
  transform: scale(1.05);
  box-shadow: 0 0 25px var(--accent-glow);
}
.map-link-cover:hover .map-badge span { color: #fff; }

/* ==================== ФУТЕР ==================== */
.ftr {
  border-top: 1px solid var(--border);
  padding: 34px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.ftr__in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.ftr a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-smooth);
}
.ftr a:hover { color: var(--accent); }

/* ==================== МОБИЛЬНЫЙ БАР ==================== */
.mbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 12, 16, 0.96);
  backdrop-filter: blur(15px);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  padding: 10px 14px;
  z-index: 999;
}

@media (min-width: 900px) {
  .mbar { display: none; }
}

.mbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
  color: var(--text-muted);
  text-decoration: none;
}

.mbar__btn {
  color: var(--accent) !important;
  font-weight: 800;
}
