/* =========================================================
   Гараж на Лесной — прототип лендинга (TES-13)
   Стили для index.html. Мобайл-фёрст, без зависимостей.
   ========================================================= */

/* ----------------------- Базис / токены ----------------------- */
:root {
  --color-bg: #ffffff;
  --color-bg-muted: #f4f6f8;
  --color-ink: #16202a;
  --color-ink-soft: #4a5763;
  --color-line: #dde3e9;
  --color-accent: #e8541e;        /* «моторный» оранжевый — CTA */
  --color-accent-dark: #c8430f;
  --color-accent-soft: #fff1ea;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 8px 24px rgba(22, 32, 42, 0.08);
  --maxw: 1120px;
  --gap: 24px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.55;
  font-size: 17px;
}

h1, h2, h3 { line-height: 1.2; margin: 0; }
p { margin: 0; }
strong { font-weight: 700; }

a { color: inherit; }

/* ----------------------- Кнопки ----------------------- */
.btn {
  display: inline-block;
  padding: 15px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .15s ease, transform .05s ease, box-shadow .15s ease;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 6px 16px rgba(232, 84, 30, 0.28);
}
.btn--primary:hover { background: var(--color-accent-dark); }
.btn--primary:active { transform: translateY(1px); }
.btn:focus-visible {
  outline: 3px solid rgba(232, 84, 30, 0.45);
  outline-offset: 2px;
}

/* ----------------------- HERO ----------------------- */
.hero {
  background: linear-gradient(180deg, var(--color-accent-soft) 0%, #ffffff 78%);
  border-bottom: 1px solid var(--color-line);
  padding-bottom: 12px;
}

.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
}
.nav__logo { font-weight: 800; font-size: 19px; letter-spacing: .2px; }
.nav__phone {
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  color: var(--color-ink);
}
.nav__phone:hover { color: var(--color-accent-dark); }

.hero__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 20px 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

.hero__title {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.5px;
}
.hero__subtitle {
  margin-top: 16px;
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--color-ink-soft);
  max-width: 42em;
}

.hero__anchors {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.anchor {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 14px 18px;
  min-width: 200px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.anchor__label { font-size: 14px; color: var(--color-ink-soft); }
.anchor__price { font-size: 24px; font-weight: 800; color: var(--color-ink); }
.anchor__note { font-size: 13px; color: var(--color-accent-dark); font-weight: 600; }

.hero__cta { margin-top: 28px; }

.hero__trust {
  margin-top: 16px;
  font-size: 14px;
  color: var(--color-ink-soft);
}

.hero__media { display: flex; justify-content: center; }
.hero__photo {
  width: 100%;
  min-height: 220px;
  border-radius: var(--radius);
  border: 1px dashed var(--color-line);
  background: repeating-linear-gradient(
    45deg, #eef1f4, #eef1f4 12px, #e7ebef 12px, #e7ebef 24px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ink-soft);
  font-size: 15px;
  font-weight: 600;
}

/* ----------------------- Секции ----------------------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 20px;
}
.section--muted {
  max-width: none;
  background: var(--color-bg-muted);
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}
.section--muted > * {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}
.section__title { font-size: clamp(24px, 3.5vw, 32px); font-weight: 800; }
.section__lead {
  margin-top: 12px;
  color: var(--color-ink-soft);
  font-size: 18px;
  max-width: 46em;
}

/* ----------------------- Блок диагностики: шаги ----------------------- */
.steps {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.step {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  box-shadow: var(--shadow);
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
}
.step__title { margin-top: 14px; font-size: 19px; font-weight: 700; }
.step__text { margin-top: 8px; color: var(--color-ink-soft); }

.diagnostics__promise {
  margin-top: 28px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--color-accent-soft);
  border: 1px solid #f3d6c8;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
}
.promise { max-width: 44em; color: var(--color-ink); }

/* ----------------------- Форма записи ----------------------- */
.booking__form {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 640px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field--wide { grid-column: 1 / -1; }
.field__label { font-size: 14px; font-weight: 600; color: var(--color-ink); }
.field__req { color: var(--color-accent-dark); font-style: normal; }
.field__input {
  padding: 13px 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-family: inherit;
  color: var(--color-ink);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field__input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(232, 84, 30, 0.18);
}
.field__input::placeholder { color: #9aa6b1; }

.booking__submit { grid-column: 1 / -1; justify-self: start; }
.booking__hint {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--color-ink-soft);
}

/* ----------------------- Футер ----------------------- */
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 20px 48px;
  color: var(--color-ink-soft);
  font-size: 14px;
  border-top: 1px solid var(--color-line);
}

/* ----------------------- Адаптив ----------------------- */
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 960px) {
  .hero__inner { grid-template-columns: 1.15fr 0.85fr; }
  .hero__photo { min-height: 320px; }
}

/* Уважение к пользовательским настройкам движения */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
