/* Автосервис «Механик» — Верхняя Пышма */

:root {
  --ink: #0b0d10;
  --ink-2: #12151a;
  --ink-3: #171b21;
  --line: #232830;
  --line-2: #2e343d;
  --tx: #edf0f3;
  --tx-2: #a6aeb9;
  /* приглушённый тон один: два почти одинаковых серых различались только в коде */
  --tx-3: var(--tx-2);
  --brand: #58f803;
  --brand-dim: #46c605;
  --brand-ink: #071003;

  --wrap: 1200px;
  --pad: clamp(1.15rem, 4vw, 2.5rem);
  --r: 4px;
  --bar-h: 0px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--tx);
  font: 400 clamp(1rem, 0.96rem + 0.2vw, 1.075rem)/1.65 "Golos Text", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--bar-h);
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: Geologica, ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

::selection { background: var(--brand); color: var(--brand-ink); }

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

@supports (scrollbar-color: red blue) {
  html { scrollbar-color: var(--line-2) var(--ink); scrollbar-width: thin; }
}
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--line-2); border: 3px solid var(--ink); border-radius: var(--r); }
::-webkit-scrollbar-thumb:hover { background: #3c434e; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.muted { color: var(--tx-2); }
.small { font-size: 0.875rem; }

.rate {
  font-family: Geologica, sans-serif;
  font-weight: 700;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

.skip {
  position: fixed;
  left: 1rem;
  top: -100px;
  z-index: 60;
  background: var(--brand);
  color: var(--brand-ink);
  padding: 0.7rem 1.1rem;
  font-weight: 600;
  border-radius: var(--r);
  transition: top 0.2s var(--ease);
}
.skip:focus { top: 1rem; }

/* icons */
.i {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.i--lg { width: 28px; height: 28px; stroke-width: 1.5; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.72rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--r);
  font-family: Geologica, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
              color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn--lg { padding: 0.95rem 1.5rem; font-size: 1.02rem; }

.btn--brand {
  background: var(--brand);
  color: var(--brand-ink);
  box-shadow: 0 1px 0 rgba(255,255,255,0.28) inset, 0 8px 22px -14px rgba(0,0,0,0.9);
}
.btn--brand:hover { background: #6cff24; transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 12px 26px -14px rgba(0,0,0,0.95); }
.btn--brand:active { transform: translateY(0); background: var(--brand-dim); }

.btn--ghost {
  background: transparent;
  color: var(--tx);
  border-color: var(--line-2);
}
.btn--ghost:hover { border-color: #444c58; background: rgba(255, 255, 255, 0.035); }
.btn--ghost:active { background: rgba(255, 255, 255, 0.06); }

.lnk {
  color: var(--brand);
  font-family: Geologica, sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
  text-decoration-color: rgba(88, 248, 3, 0.35);
  transition: text-decoration-color 0.2s var(--ease), color 0.2s var(--ease);
}
.lnk:hover { text-decoration-color: var(--brand); }
.lnk--btn { background: none; border: 0; padding: 0; cursor: pointer; font-size: 0.875rem; }

/* header */
.head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 13, 16, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.head__in {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  min-height: 72px;
}
.head__logo { display: block; flex: none; }
.head__logo img { width: clamp(148px, 17vw, 204px); height: auto; }

.head__nav {
  display: flex;
  gap: clamp(0.9rem, 2vw, 1.7rem);
  margin-left: auto;
  font-family: Geologica, sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
}
.head__nav a {
  color: var(--tx-2);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.head__nav a:hover { color: var(--tx); border-color: var(--brand); }

/* Кнопка звонка живёт только в мобильной шапке и только при известном номере. */
.head__call { display: none; }

/* hero */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: min(760px, calc(100svh - 72px));
  padding-block: clamp(3.5rem, 11vw, 7rem) clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11,13,16,0.76) 0%, rgba(11,13,16,0.5) 35%, rgba(11,13,16,0.92) 88%),
    linear-gradient(100deg, rgba(11,13,16,0.92) 12%, rgba(11,13,16,0.2) 62%, rgba(11,13,16,0.42) 100%);
}
.hero__in { width: 100%; }
.hero__h1 {
  font-size: clamp(2.3rem, 1.2rem + 4.6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.038em;
  max-width: 17ch;
}
.hero__sub {
  margin-top: clamp(1rem, 2vw, 1.5rem);
  max-width: 54ch;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  color: var(--tx-2);
}
.hero__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(1.6rem, 3vw, 2.25rem);
}
.hero__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  margin: clamp(2.5rem, 6vw, 4.5rem) 0 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.hero__facts > div { background: rgba(11, 13, 16, 0.72); padding: 1rem 1.15rem; }
.hero__facts dt {
  font-family: Geologica, sans-serif;
  font-size: 0.735rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--tx-3);
}
.hero__facts dd { margin: 0.32rem 0 0; font-size: 0.95rem; }

/* sections */
.sect { padding-block: clamp(3.5rem, 8vw, 7rem); border-bottom: 1px solid var(--line); }
.sect--alt { background: var(--ink-2); }

.sect__head { max-width: 62ch; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.sect__head h2 { font-size: clamp(1.75rem, 1.2rem + 2.1vw, 2.9rem); font-weight: 700; }
.sect__head p { margin-top: 1rem; color: var(--tx-2); max-width: 60ch; }

/* services */
.srv { list-style: none; margin: 0; padding: 0; }
.srv--major {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.srv__it {
  display: flex;
  gap: 1.1rem;
  padding: clamp(1.35rem, 2.4vw, 2rem);
  background: var(--ink);
  transition: background-color 0.25s var(--ease);
}
.sect--alt .srv__it { background: var(--ink-2); }
/* десятая услуга занимает остаток ряда — сетка без дыры */
.srv--major > li:last-child { grid-column: span 3; }
.srv__it:hover { background: var(--ink-3); }
.srv__it .i--lg { color: var(--brand); margin-top: 2px; }
.srv__it h3 { font-size: 1.08rem; font-weight: 600; letter-spacing: -0.02em; }
.srv__it p { margin-top: 0.5rem; color: var(--tx-2); font-size: 0.95rem; }
.srv__it .lnk { display: inline-block; margin-top: 0.85rem; }

.srv--minor {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.srv--minor li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: border-color 0.25s var(--ease);
}
.srv--minor li:hover { border-color: var(--line-2); }
.srv--minor .i { color: var(--brand); }
.srv--minor h3 { font-size: 1rem; font-weight: 500; letter-spacing: -0.015em; }
.srv--minor .lnk { font-size: 0.875rem; margin-top: 0.2rem; display: inline-block; }

/* request builder */
.req {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.req__copy { position: sticky; top: calc(72px + 2.5rem); }
.req__copy h2 { font-size: clamp(1.75rem, 1.2rem + 2.1vw, 2.9rem); }
.req__copy p { margin-top: 1.1rem; color: var(--tx-2); }

.req__form { display: grid; gap: 1.25rem; }

.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips legend {
  padding: 0;
  margin-bottom: 0.85rem;
  font-family: Geologica, sans-serif;
  font-size: 0.735rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--tx-3);
}
.chip { position: relative; }
.chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.chip span {
  display: block;
  padding: 0.6rem 0.95rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  font-size: 0.95rem;
  color: var(--tx-2);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.chip:hover span { border-color: #4a525e; color: var(--tx); }
.chip input:checked + span {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-ink);
  font-weight: 500;
}
.chip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 3px; }

.field { display: grid; gap: 0.45rem; }
.field label {
  font-family: Geologica, sans-serif;
  font-size: 0.735rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--tx-3);
}
.field input, .field textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.8rem 0.95rem;
  background: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  color: var(--tx);
  font: inherit;
  caret-color: var(--brand);
  resize: vertical;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--tx-3); }
.field input:hover, .field textarea:hover { border-color: #444c58; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #0d1013; }

.preview { border: 1px solid var(--line); border-radius: var(--r); background: var(--ink); overflow: hidden; }
.preview__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.95rem;
  border-bottom: 1px solid var(--line);
  font-family: Geologica, sans-serif;
  font-size: 0.735rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--tx-3);
}
.preview__body {
  display: block;
  padding: 0.95rem;
  white-space: pre-wrap;
  font-size: 0.95rem;
  color: var(--tx-2);
  min-height: 5.5em;
}
.preview__body b { color: var(--tx); font-weight: 500; }

.req__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 0.85rem 1.1rem; }
.hint { font-size: 0.875rem; color: var(--tx-3); }
.hint[data-ok] { color: var(--brand); }

/* why */
.why__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.why__list li { background: var(--ink); padding: clamp(1.35rem, 2.4vw, 2rem); }
.why__list h3 { font-size: 1.08rem; font-weight: 600; letter-spacing: -0.02em; }
.why__list p { margin-top: 0.6rem; color: var(--tx-2); font-size: 0.95rem; }

/* steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  counter-reset: s;
}
.steps li { background: var(--ink); padding: clamp(1.35rem, 2.4vw, 1.9rem); }
.steps__n {
  display: block;
  font-family: Geologica, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.9rem;
}
.steps h3 { font-size: 1.06rem; font-weight: 600; letter-spacing: -0.02em; }
.steps p { margin-top: 0.55rem; color: var(--tx-2); font-size: 0.95rem; }

/* reviews */
.revs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1rem;
}
.rev {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(1.35rem, 2.4vw, 1.9rem);
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.rev blockquote {
  margin: 0;
  font-family: Geologica, sans-serif;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--tx);
  text-wrap: balance;
}
.rev p { color: var(--tx-2); font-size: 0.95rem; }
.rev footer { margin-top: auto; padding-top: 0.85rem; border-top: 1px solid var(--line); display: grid; gap: 0.15rem; }
.rev__who { font-family: Geologica, sans-serif; font-weight: 500; font-size: 0.95rem; }
.rev__src { font-size: 0.875rem; color: var(--tx-3); }
.revs__note { margin-top: 1.5rem; font-size: 0.875rem; color: var(--tx-3); max-width: 70ch; }
.revs__note .lnk { margin-left: 0.4rem; }

/* contacts */
.cont {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: stretch;
}
.cont h2 { font-size: clamp(1.75rem, 1.2rem + 2.1vw, 2.9rem); }
.cont__list { margin: clamp(1.75rem, 3vw, 2.5rem) 0 0; display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.cont__list > div { background: var(--ink); padding: 1.1rem 0; display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: 1rem; align-items: baseline; }
.cont__list dt {
  font-family: Geologica, sans-serif;
  font-size: 0.735rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--tx-3);
}
.cont__list dd { margin: 0; }
.status { display: block; margin-top: 0.3rem; font-size: 0.875rem; color: var(--tx-2); }
.status[data-open] { color: var(--brand); }
.cont__acts { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.cont__map { display: grid; }
.map {
  height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--ink);
  padding: clamp(2rem, 5vw, 3.25rem) clamp(1.35rem, 3vw, 2rem);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.9rem;
  text-align: center;
}
.map__mark { width: 34px; height: 34px; fill: none; stroke: var(--brand); stroke-width: 1.5; stroke-linejoin: round; }
.map__addr { font-family: Geologica, sans-serif; font-weight: 500; font-size: 1.08rem; letter-spacing: -0.02em; line-height: 1.45; }
.map__acts { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; justify-content: center; }

/* final */
.final { padding-block: clamp(4rem, 9vw, 7.5rem); background: var(--ink-2); border-bottom: 1px solid var(--line); }
.final__in { max-width: 44rem; text-align: center; }
.final h2 { font-size: clamp(1.75rem, 1.2rem + 2.1vw, 2.9rem); font-weight: 800; letter-spacing: -0.035em; }
.final p { margin-top: 1.2rem; color: var(--tx-2); max-width: 52ch; margin-inline: auto; }
.final .btn { margin-top: 2rem; }

/* footer */
.foot { padding-block: clamp(2.25rem, 4vw, 3rem); }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem 2rem; }
.foot__in img { width: 150px; opacity: 0.75; }
.foot__addr { font-size: 0.875rem; color: var(--tx-3); }
.foot__nav { display: flex; gap: 1.25rem; margin-left: auto; font-size: 0.875rem; }
.foot__nav a { color: var(--tx-2); text-decoration: none; border-bottom: 1px solid transparent; transition: color 0.2s var(--ease), border-color 0.2s var(--ease); }
.foot__nav a:hover { color: var(--tx); border-color: var(--brand); }

/* demo */
.demo {
  border-top: 1px solid var(--line);
  background: var(--ink-2);
  padding-block: 0.95rem;
}
.demo p {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--tx-3);
  text-align: center;
}

/* sticky mobile bar */
.bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: none;
  padding: 0.65rem var(--pad) calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(11, 13, 16, 0.9);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.4s var(--ease);
}
.bar .btn { width: 100%; }
.bar[data-show] { transform: translateY(0); }

/* окно статуса */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bar-h, 0px) + 1rem + env(safe-area-inset-bottom));
  z-index: 60;
  width: min(30rem, calc(100vw - 2 * var(--pad)));
  transform: translate(-50%, 12px);
  opacity: 0;
  padding: 0.85rem 1rem;
  background: var(--ink-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  font-size: 0.95rem;
  color: var(--tx-2);
  box-shadow: 0 18px 40px -22px rgba(0,0,0,0.95);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.toast[data-show] { opacity: 1; transform: translate(-50%, 0); }
.toast a { color: var(--brand); text-decoration: none; border-bottom: 1px solid currentColor; white-space: nowrap; }
.toast a:hover { color: var(--tx); }

/* reveal */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal[data-in] {
  opacity: 1;
  transform: none;
  transition: opacity 0.65s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--d, 0ms);
}

/* responsive */
@media (max-width: 1000px) {
  .srv--major { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .srv--major > li:last-child { grid-column: auto; }
  .req, .cont { grid-template-columns: 1fr; }
  .req__copy { position: static; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 74px; }
  .head__nav { display: none; }
  .head__cta { margin-left: auto; padding: 0.6rem 0.95rem; font-size: 0.875rem; }
  [data-phone] .head__cta { display: none; }
  [data-phone] .head__call {
    display: inline-flex;
    margin-left: auto;
    padding: 0.6rem 0.95rem;
    font-size: 0.875rem;
  }
  body { --bar-h: 76px; }
  .bar { display: block; }
  .hero { min-height: auto; padding-top: clamp(2.5rem, 9vw, 4rem); }
  /* на узком экране текст лежит на всей ширине фото — затемнение становится вертикальным */
  .hero::after {
    background:
      linear-gradient(180deg, rgba(11,13,16,0.82) 0%, rgba(11,13,16,0.7) 40%, rgba(11,13,16,0.95) 92%),
      linear-gradient(100deg, rgba(11,13,16,0.72) 0%, rgba(11,13,16,0.62) 60%, rgba(11,13,16,0.72) 100%);
  }
  .hero__facts { margin-top: 2.25rem; }
  .srv--major { grid-template-columns: 1fr; }
  .cont__list > div { grid-template-columns: 1fr; gap: 0.3rem; }
  .foot__nav { margin-left: 0; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero__acts .btn,
  .cont__acts .btn,
  .final .btn,
  .req__acts .btn--brand { width: 100%; justify-content: center; }
  .req__acts { display: grid; gap: 0.75rem; }
}

@media (max-width: 520px) {
  .srv__it { flex-direction: column; gap: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
