/* ======================= ПЕРЕМЕННЫЕ =======================
   Меняются в одном месте — весь сайт перекрашивается.
   Контраст проверять скриптом tools\check.py после смены цветов. */
:root {
  --ink: #0f172a;          /* основной текст */
  --muted: #475467;        /* второстепенный текст */
  --line: #e4e7ec;         /* линии и рамки */
  --accent: #1d4ed8;       /* акцент: кнопки, ссылки */
  --accent-dark: #163ea8;  /* акцент при наведении */
  --accent-soft: #eaf1ff;  /* мягкий фон плашек */
  --dark: #0b1120;         /* тёмный блок */
  --tint: #f7f9fc;         /* светлый фон секций */
  --ok: #067647;
  --err: #b42318;
  --bg: #ffffff;
  --radius: 18px;
  --shadow: 0 18px 36px rgba(16, 24, 40, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font: 17px/1.6 "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.wrap { width: min(1180px, 100% - 40px); margin: 0 auto; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 14px; letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 4.2vw, 50px); font-weight: 800; }
h2 { font-size: clamp(25px, 3vw, 36px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 14px; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  z-index: 100;
  border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; color: #fff; }

/* ======================= ШАПКА ======================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 14px 0;
  flex-wrap: wrap;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 20px;
}
.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
}
.nav { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 8px 2px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--accent); }
.phone {
  margin-left: auto;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.phone:hover { color: var(--accent); }

/* ======================= КНОПКИ ======================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--accent);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(29, 78, 216, 0.22);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
}
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn-ghost:hover { background: var(--tint); color: var(--ink); border-color: #c7d2e4; }
.btn[disabled], .btn[aria-disabled="true"] { background: #667085; border-color: #667085; box-shadow: none; cursor: progress; transform: none; }

/* ======================= ПЕРВЫЙ ЭКРАН ======================= */
.hero {
  padding: 56px 0 64px;
  background:
    radial-gradient(900px 380px at 10% -10%, var(--accent-soft) 0%, rgba(234, 241, 255, 0) 70%),
    var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  margin: 0 0 18px;
}
.eyebrow-light { background: rgba(255, 255, 255, 0.12); color: #e2e8f0; }
.lede { font-size: 19px; color: var(--muted); max-width: 50ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 22px; }
.facts { display: flex; gap: 10px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 15px;
  color: var(--muted);
  font-weight: 500;
}
.facts li::before { content: "✓"; color: var(--accent); font-weight: 800; }
.hero-figure { margin: 0; }
.hero-figure img { width: 100%; height: auto; border-radius: 24px; display: block; box-shadow: var(--shadow); }
figcaption, .credit { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* ======================= СЕКЦИИ ======================= */
.section { padding: 68px 0; }
.section-alt { background: var(--tint); }
.section-lede { color: var(--muted); max-width: 64ch; margin-bottom: 30px; font-size: 18px; }

/* ======================= ПРЕИМУЩЕСТВА ======================= */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.features li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  margin-bottom: 14px;
}
.feature-icon svg, .card .icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.features p { color: var(--muted); margin: 0; }

/* ======================= КАРТОЧКИ УСЛУГ ======================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow .15s ease, transform .15s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  margin-bottom: 14px;
}
.card p { color: var(--muted); margin-bottom: 12px; font-size: 16px; }
.card .price { color: var(--ink); font-weight: 800; font-size: 19px; margin: auto 0 0; padding-top: 10px; }

/* ======================= ТАБЛИЦА ======================= */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
table { border-collapse: collapse; width: 100%; min-width: 540px; }
caption { text-align: left; padding: 18px 20px 0; font-weight: 700; font-size: 16px; }
th, td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line); }
thead th { background: var(--accent-soft); color: var(--accent-dark); font-size: 14px; text-transform: uppercase; letter-spacing: .05em; }
tbody tr:nth-child(even) { background: #fafbfe; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
td { white-space: nowrap; font-weight: 600; }

/* ======================= ШАГИ ======================= */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
}
.steps li { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 24px; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  margin-bottom: 14px;
}
.steps p { color: var(--muted); margin: 0; }

/* ======================= ГАЛЕРЕЯ ======================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.gallery img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  box-shadow: var(--shadow);
}

/* ======================= ОТЗЫВЫ ======================= */
.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.review-text { font-size: 17px; }
.review-author { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; margin: 0; }
.avatar {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 800;
}

/* ======================= ТЁМНЫЙ БЛОК ЗАПИСИ ======================= */
.section-dark { background: var(--dark); color: #fff; padding: 68px 0; }
.section-dark h2 { color: #fff; }
.dark-lede { color: #cbd5e1; max-width: 46ch; }
.booking-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: start; }
.contacts { margin: 0; }
.contacts dt { font-weight: 700; margin-top: 16px; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: #94a3b8; }
.contacts dd { margin: 6px 0 0; font-size: 18px; font-weight: 600; color: #fff; }
.contacts a { color: #fff; }

.form {
  background: #fff;
  color: var(--ink);
  border-radius: 24px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  box-shadow: var(--shadow);
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field-wide { grid-column: 1 / -1; }
label { font-weight: 600; font-size: 15px; }
input, select, textarea {
  font: inherit;
  color: var(--ink);
  padding: 13px 15px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  width: 100%;
}
input:hover, select:hover, textarea:hover { border-color: #c7d2e4; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 3px solid rgba(29, 78, 216, 0.28); outline-offset: 1px; }
textarea { resize: vertical; }
.hint { font-size: 14px; color: var(--muted); margin: 0; }
.form-note { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.form-status { grid-column: 1 / -1; margin: 0; font-weight: 700; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--err); background: #fff6f5; }

/* ======================= ПОДВАЛ ======================= */
.site-footer { border-top: 1px solid var(--line); padding: 30px 0 40px; color: var(--muted); font-size: 15px; background: var(--tint); }
.footer-inner p { margin: 0 0 6px; }

/* ======================= АДАПТИВ ======================= */
@media (max-width: 900px) {
  .hero { padding: 36px 0 44px; }
  .hero-grid, .booking-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-figure { order: -1; }
  .form { grid-template-columns: 1fr; }
  .phone { margin-left: 0; }
  .section, .section-dark { padding: 48px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .btn:hover, .card:hover { transform: none; }
}
