/* =========================================================
   BOOSTER — автопомощь Алматы
   Стиль: нео-брутализм (жёсткие рамки, тени без размытия,
   нулевые скругления). Вёрстка mobile-first.
   ========================================================= */

:root {
  --ink: #1a1a1a;
  --yellow: #ffcc00;
  --red: #e63b2e;
  --blue: #0055ff;
  --wa: #25d366;
  --wa-dark: #128c4a;

  --bg: #f5f0e8;
  --bg-low: #f2ede5;
  --bg-mid: #eee9e0;
  --bg-high: #e8e3da;
  --paper: #ffffff;

  --muted: #4a4a4a;
  --line: #d0cbc3;
  --on-dark: #f5f0e8;
  --on-dark-muted: #c9c3b8;

  --header-h: 64px;
  --mbar-h: 68px;
}

@media (min-width: 768px) {
  :root { --header-h: 80px; --mbar-h: 0px; }
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--mbar-h) + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 768px) { body { padding-bottom: 0; } }

h1, h2, h3, h4, p, dl, dd, fieldset { margin: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px)  { .wrap { padding: 0 24px; } }
@media (min-width: 1024px) { .wrap { padding: 0 48px; } }

.only-desktop { display: none; }
@media (min-width: 768px) {
  .only-desktop { display: inline; }
  .only-mobile { display: none; }
}

/* Иконки Material Symbols */
.i {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  width: 1em;
  overflow: hidden;
  flex-shrink: 0;
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

.wa-logo { width: 22px; height: 22px; flex-shrink: 0; }
.wa-logo--green { color: var(--wa); }

/* Мигающая точка */
.dot { width: 8px; height: 8px; background: var(--yellow); flex-shrink: 0; animation: blink 1.2s infinite; }
.dot--red { background: var(--red); }
@keyframes blink { 50% { opacity: 0.25; } }

/* ---------- Кнопки ---------- */
.btn {
  --sh: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border: 2.5px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  text-align: center;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--sh);
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease, color .12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--sh); }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--sh); }

.btn--yellow { background: var(--yellow); }
.btn--dark   { background: var(--ink); color: var(--paper); }
.btn--wa     { background: var(--wa); }
.btn--light  { background: var(--bg); }
.btn--sm     { padding: 10px 14px; font-size: 12px; gap: 6px; }
.btn--sm .i  { font-size: 18px; }
.btn--lg     { padding: 17px 22px; font-size: 15px; }
.btn--lg .i  { font-size: 24px; }
.btn--block  { width: 100%; }
@media (min-width: 768px) { .btn--lg { padding: 20px 30px; font-size: 18px; } }

.pill {
  background: var(--ink);
  color: var(--yellow);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* ---------- Метки ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 7px 10px;
  border: 1.5px solid var(--ink);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0;
}
.tag .i { font-size: 16px; }
.tag--dark   { background: var(--ink); color: var(--paper); }
.tag--yellow { background: var(--yellow); color: var(--ink); }

/* ---------- Шапка ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 2px solid var(--ink);
}
.header__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo__mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--yellow);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}
.logo__mark .i { font-size: 22px; }
.logo__name { display: block; font-size: 18px; font-weight: 900; text-transform: uppercase; letter-spacing: -0.05em; line-height: 1; }
.logo__sub { display: block; margin-top: 3px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); line-height: 1; }

.nav { display: none; }
@media (min-width: 1100px) {
  .nav { display: flex; gap: 4px; }
  .nav a {
    padding: 9px 13px;
    font-size: 12px; font-weight: 800; text-transform: uppercase;
    color: var(--muted);
    transition: background-color .12s, color .12s;
  }
  .nav a:hover { background: var(--ink); color: var(--paper); box-shadow: 2px 2px 0 var(--yellow); }
}

.header__right { display: flex; align-items: center; gap: 16px; }
.header__contacts { display: none; }
@media (min-width: 768px) {
  .header__contacts { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
  .header__contacts .tag { padding: 3px 7px; font-size: 10px; align-self: flex-end; }
  .header__phone { font-size: 19px; font-weight: 900; letter-spacing: -0.045em; line-height: 1; }
  .header__phone:hover { color: var(--red); }
}
.header__right { gap: 10px; }
@media (min-width: 768px) { .header__right { gap: 16px; } }

.header__call { white-space: nowrap; padding: 9px 10px; }
@media (min-width: 768px) { .header__call { padding: 10px 14px; } }
@media (max-width: 359px) { .logo__sub { display: none; } }

/* Переключатель языка */
.lang { display: flex; border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.lang__btn {
  min-width: 34px;
  padding: 7px 6px;
  background: var(--bg);
  border: 0;
  border-left: 2px solid var(--ink);
  font-size: 11px; font-weight: 900; line-height: 1;
  cursor: pointer;
  transition: background-color .12s;
}
.lang__btn:first-child { border-left: 0; }
.lang__btn:hover { background: var(--bg-high); }
.lang__btn[aria-pressed="true"] { background: var(--yellow); }
@media (min-width: 768px) { .lang__btn { min-width: 38px; padding: 9px 8px; font-size: 12px; } }

/* ---------- Жёлтая полоса ---------- */
.topbar { display: none; }
@media (min-width: 768px) {
  .topbar {
    display: block;
    margin-top: var(--header-h);
    background: var(--yellow);
    border-bottom: 2px solid var(--ink);
    font-size: 12px; font-weight: 800; text-transform: uppercase;
  }
  .topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
  .topbar__left { display: flex; align-items: center; gap: 12px; }
  .topbar__phone { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; white-space: nowrap; font-size: 15px; font-weight: 900; letter-spacing: -0.04em; }
  .topbar .sos { flex-shrink: 0; white-space: nowrap; }
  .topbar__phone:hover { color: var(--red); }
  .topbar__phone .i { font-size: 18px; }
}
.sos {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px;
  background: var(--red); color: var(--paper);
  font-size: 11px;
  animation: blink 1.6s infinite;
}
.sos .i { font-size: 15px; }

/* ---------- Первый экран ---------- */
.hero {
  position: relative;
  margin-top: var(--header-h);
  background: var(--ink);
  color: var(--on-dark);
  overflow: hidden;
}
@media (min-width: 768px) { .hero { margin-top: 0; } }

/* сетка-«чертёж» на фоне */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(245, 240, 232, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 240, 232, .06) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
/* предупреждающая полоса снизу */
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 10px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 14px, var(--ink) 14px 28px);
}
.hero__photo {
  position: absolute; inset: 0;
  background: url('../img/hero.jpg') 82% center / cover no-repeat;
  opacity: .6;
  filter: grayscale(1) contrast(1.25);
}
/* затемнение, чтобы текст читался поверх фото */
.hero__photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(26, 26, 26, .45) 0%, rgba(26, 26, 26, .55) 50%, rgba(26, 26, 26, .9) 100%);
}
@media (min-width: 900px) {
  .hero__photo { background-position: center 40%; opacity: .45; }
  .hero__photo::after {
    background: linear-gradient(to top, var(--ink) 0%, rgba(26, 26, 26, .7) 40%, rgba(26, 26, 26, .15) 100%);
  }
}

.hero__in { position: relative; padding-top: 28px; padding-bottom: 42px; }
@media (min-width: 768px)  { .hero__in { padding-top: 80px; padding-bottom: 76px; } }
@media (min-width: 1024px) { .hero__in { padding-top: 104px; padding-bottom: 92px; } }

.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  background: var(--yellow); color: var(--ink);
  font-size: 11px; font-weight: 800; text-transform: uppercase; line-height: 1.1;
  box-shadow: 2px 2px 0 var(--paper);
}

.hero__title {
  margin-top: 18px;
  font-size: clamp(38px, 10.5vw, 78px);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  color: var(--paper);
}
.hero__title span {
  color: var(--yellow);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 4px;
  text-underline-offset: .14em;
}

.hero__lead {
  margin-top: 16px;
  max-width: 640px;
  font-size: 15px;
  color: var(--on-dark-muted);
}
@media (min-width: 768px) { .hero__lead { margin-top: 24px; font-size: 19px; } }

.hero__cta { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
@media (min-width: 640px) { .hero__cta { flex-direction: row; flex-wrap: wrap; } }
@media (min-width: 768px) { .hero__cta { margin-top: 34px; gap: 20px; } }
.hero__cta .btn--yellow { box-shadow: 5px 5px 0 var(--sh); }
.hero__cta .btn--yellow:hover { box-shadow: 7px 7px 0 var(--sh); }

.hero__facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 28px;
}
@media (min-width: 900px) {
  .hero__facts {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid rgba(245, 240, 232, .2);
  }
}
.fact {
  display: flex; align-items: center; gap: 10px;
  padding: 10px;
  background: rgba(245, 240, 232, .07);
  text-transform: uppercase;
}
@media (min-width: 900px) { .fact { padding: 0; background: none; } }
.fact__icon { width: 40px; height: 40px; display: grid; place-items: center; flex-shrink: 0; color: var(--ink); }
.fact__icon--yellow { background: var(--yellow); }
.fact__icon--red    { background: var(--red); color: var(--paper); }
.fact__icon--blue   { background: var(--blue); color: var(--paper); }
.fact__icon--light  { background: var(--bg); }
.fact__label { display: block; font-size: 10px; font-weight: 700; color: var(--on-dark-muted); }
.fact__value { display: block; font-size: 13px; font-weight: 900; color: var(--paper); letter-spacing: -0.03em; line-height: 1.15; }

/* ---------- Общие секции ---------- */
.section { padding: 40px 0; border-bottom: 4px solid var(--ink); }
@media (min-width: 768px) { .section { padding: 80px 0; } }
.section--low  { background: var(--bg-low); }
.section--high { background: var(--bg-high); }
.section--last { border-bottom: 0; }

.section__head {
  display: flex; flex-direction: column; gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--ink);
}
@media (min-width: 768px) {
  .section__head { flex-direction: row; align-items: flex-end; justify-content: space-between; padding-bottom: 24px; margin-bottom: 44px; }
  .section__head .tag { align-self: flex-end; }
}
.eyebrow { display: block; font-size: 12px; font-weight: 900; text-transform: uppercase; color: var(--red); }
.h2 {
  margin-top: 6px;
  font-size: clamp(28px, 7vw, 48px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.section__note { max-width: 380px; font-size: 13px; font-weight: 700; text-transform: uppercase; color: var(--muted); }

.card { background: var(--paper); border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); }

/* ---------- О компании ---------- */
.about__grid { display: grid; gap: 20px; }
@media (min-width: 1024px) { .about__grid { grid-template-columns: 7fr 5fr; gap: 32px; } }

.about__text { padding: 20px; display: flex; flex-direction: column; justify-content: space-between; }
.about__text p { font-size: 15px; }
.about__text strong { font-weight: 900; }
@media (min-width: 768px) {
  .about__text { padding: 36px; }
  .about__text p { font-size: 18px; }
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 12px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat__num { display: block; font-size: 28px; font-weight: 900; line-height: 1; letter-spacing: -0.05em; white-space: nowrap; }
.stat__num--red  { color: var(--red); }
.stat__num--blue { color: var(--blue); }
.stat__label { display: block; margin-top: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--muted); }

.about__dark {
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: 20px;
  background: var(--ink);
  color: var(--on-dark);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--yellow);
}
@media (min-width: 768px) { .about__dark { padding: 32px; } }
.about__dark h3 { margin-top: 14px; font-size: 24px; font-weight: 900; line-height: 1.1; letter-spacing: -0.04em; text-transform: uppercase; color: var(--paper); }
.about__dark p { margin-top: 10px; font-size: 14px; color: var(--on-dark-muted); }
.about__dark-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(245, 240, 232, .2);
  font-size: 12px; font-weight: 800; text-transform: uppercase; color: var(--yellow);
}

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 24px; }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; } }
.feature {
  padding: 14px;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .15s ease;
}
.feature:hover { transform: translateY(-4px); }
@media (min-width: 768px) { .feature { padding: 24px; } }
.feature__icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 14px; border: 2px solid var(--ink); }
.feature__icon .i { font-size: 24px; }
.feature__icon--yellow { background: var(--yellow); }
.feature__icon--red    { background: var(--red); color: var(--paper); }
.feature__icon--light  { background: var(--bg-high); }
.feature__icon--dark   { background: var(--ink); color: var(--paper); }
.feature h4 { font-size: 14px; font-weight: 900; line-height: 1.15; letter-spacing: -0.03em; text-transform: uppercase; }
.feature p { margin-top: 6px; font-size: 12px; color: var(--muted); }
@media (min-width: 768px) {
  .feature h4 { font-size: 18px; }
  .feature p { font-size: 13px; }
}

/* ---------- Услуги ----------
   Телефон: компактная строка (иконка | название | цена+кнопка)
   От 768px: карточка (иконка+цена / описание / кнопка) */
.services { display: grid; gap: 10px; }

.svc {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  grid-template-areas:
    "icon body price"
    "icon body btn";
  align-items: center;
  column-gap: 12px;
  row-gap: 6px;
  padding: 12px;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transition: border-color .15s ease;
}
.svc__icon {
  grid-area: icon;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--ink); color: var(--yellow);
}
.svc__icon--red { background: var(--red); color: var(--paper); }
.svc__body { grid-area: body; min-width: 0; }
.svc__title { font-size: 13px; font-weight: 900; line-height: 1.15; letter-spacing: -0.03em; text-transform: uppercase; }
.svc__short { margin-top: 3px; font-size: 12px; color: var(--muted); }
.svc__desc, .svc__time { display: none; }
.svc__price { grid-area: price; justify-self: end; align-self: end; font-size: 13px; font-weight: 900; letter-spacing: -0.03em; white-space: nowrap; }
.svc__btn {
  grid-area: btn;
  justify-self: end; align-self: start;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 9px;
  background: var(--ink); color: var(--paper);
  border: 0;
  font-size: 10px; font-weight: 800; text-transform: uppercase; line-height: 1;
  cursor: pointer;
}
.svc__btn .i { display: none; }

@media (min-width: 768px) {
  .services { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .svc {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "icon price"
      "body body"
      "btn  btn";
    align-items: start;
    row-gap: 16px;
    padding: 26px;
    box-shadow: 5px 5px 0 var(--ink);
  }
  .svc:hover { border-color: var(--red); }
  .svc__icon { width: 50px; height: 50px; background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); }
  .svc__icon--red { background: var(--yellow); color: var(--ink); }
  .svc__icon .i { font-size: 26px; }
  .svc__price { align-self: center; font-size: 24px; color: var(--red); letter-spacing: -0.045em; }
  .svc__title { font-size: 20px; }
  .svc__short { display: none; }
  .svc__desc { display: block; margin-top: 10px; font-size: 14px; color: var(--muted); }
  .svc__time { display: flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--muted); }
  .svc__time .i { font-size: 16px; color: var(--ink); }
  .svc__btn {
    align-self: end;
    justify-self: stretch;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
    padding: 14px;
    border: 2px solid var(--ink);
    font-size: 12px;
    transition: background-color .12s, color .12s;
  }
  .svc__btn .i { display: inline-block; font-size: 18px; }
  .svc:hover .svc__btn { background: var(--yellow); color: var(--ink); }
}
/* «Другое» занимает 2 колонки, чтобы закрыть последний ряд.
   Сейчас 10 обычных карточек: при 2 колонках — 5 полных рядов + «Другое» на всю ширину,
   при 3 колонках — 3 полных ряда + 1 карточка + «Другое» рядом с ней.
   Если число услуг изменится — проверьте, что последний ряд остаётся ровным. */
@media (min-width: 768px) { .svc--wide { grid-column: span 2; } }

@media (min-width: 1024px) {
  .services { grid-template-columns: repeat(3, 1fr); }

  .svc--wide {
    grid-template-columns: auto 1fr auto 220px;
    grid-template-areas: "icon body price btn";
    align-items: center;
    column-gap: 24px;
  }
  .svc--wide .svc__desc { max-width: 640px; }
  .svc--wide .svc__btn { margin-top: 0; align-self: center; }
}

/* ---------- Заявка ---------- */
.order {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 16px 20px;
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}
@media (min-width: 768px) { .order { padding: 52px 48px 40px; border-width: 4px; box-shadow: 8px 8px 0 var(--ink); } }

.order__flag {
  position: absolute; top: -15px; left: 16px;
  padding: 6px 12px;
  background: var(--red); color: var(--paper);
  border: 2px solid var(--ink);
  font-size: 11px; font-weight: 900; text-transform: uppercase;
}
@media (min-width: 768px) { .order__flag { left: 32px; } }

.order__title { font-size: clamp(24px, 6vw, 40px); font-weight: 900; line-height: 1.08; letter-spacing: -0.04em; text-transform: uppercase; }
.order__lead { margin-top: 10px; font-size: 13px; color: var(--muted); }
@media (min-width: 768px) { .order__lead { font-size: 15px; } }

.form { display: grid; gap: 20px; margin-top: 24px; }
@media (min-width: 768px) { .form { gap: 24px; margin-top: 32px; } }
.form__row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; gap: 24px; } }

.label { display: block; margin-bottom: 8px; padding: 0; font-size: 11px; font-weight: 800; text-transform: uppercase; }

.chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 900px) { .chips { grid-template-columns: repeat(4, 1fr); } }
/* «Другое» — на 2 колонки, чтобы закрыть последний ряд (10 обычных + «Другое») */
.chip--wide { grid-column: span 2; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip > span {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px;
  padding: 10px 8px;
  background: var(--bg);
  border: 2px solid var(--ink);
  font-size: 12px; font-weight: 800; text-transform: uppercase; text-align: center;
  transition: background-color .12s, box-shadow .12s, transform .12s;
}
.chip > span .i { font-size: 18px; }
.chip:hover > span { background: var(--bg-high); }
.chip input:checked + span { background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); transform: translate(-1px, -1px); }
.chip input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }

.input {
  width: 100%;
  padding: 14px;
  background: var(--bg-low);
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  font-size: 16px; /* 16px — чтобы iPhone не зумил поле */
  font-weight: 600;
  transition: background-color .12s, box-shadow .12s;
}
.input::placeholder { color: #8a857d; font-weight: 500; }
.input:focus { outline: none; background: #fff6cc; box-shadow: inset 0 -2px 0 var(--ink); }
.input.is-invalid { background: #ffe9e6; border-bottom-color: var(--red); }
.input--area { display: block; min-height: 96px; resize: vertical; line-height: 1.35; font-family: inherit; }

.geo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-height: 50px; }
.geo__status { font-size: 12px; font-weight: 700; color: var(--muted); }
.geo__status.is-ok  { color: var(--wa-dark); }
.geo__status.is-err { color: var(--red); }

.form__error {
  display: none;
  padding: 10px 12px;
  background: #ffe9e6;
  border: 2px solid var(--red);
  font-size: 13px; font-weight: 700;
}
.form__error.is-visible { display: block; }

.form__hint { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.form__hint .i { font-size: 18px; color: var(--red); }

/* ---------- Контакты и карта ---------- */
.contacts { display: grid; gap: 20px; }
@media (min-width: 1024px) { .contacts { grid-template-columns: 7fr 5fr; gap: 32px; align-items: start; } }

.map-card {
  padding: 12px;
  background: var(--ink);
  color: var(--on-dark);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}
@media (min-width: 768px) { .map-card { padding: 20px; } }
.map-card__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 12px; margin-bottom: 12px;
  border-bottom: 1px solid rgba(245, 240, 232, .2);
  font-size: 12px; font-weight: 800; text-transform: uppercase;
}
.map-card__head > span:first-child { display: inline-flex; align-items: center; gap: 6px; color: var(--yellow); }
.map-card__head .i { font-size: 18px; }
.map-card__addr { color: var(--on-dark-muted); font-size: 11px; text-align: right; }

.map { position: relative; height: 280px; background: #2a2a2a; border: 1px solid rgba(245, 240, 232, .2); }
@media (min-width: 768px) { .map { height: 400px; } }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }

.map-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }

.contacts__cards { display: grid; gap: 16px; }
.ccard { padding: 18px; box-shadow: 4px 4px 0 var(--ink); }
@media (min-width: 768px) { .ccard { padding: 22px; } }
.ccard__label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; text-transform: uppercase; color: var(--red); }
.ccard__label .i { font-size: 18px; }
.ccard__label--green { color: var(--wa-dark); }
.ccard__label .wa-logo { width: 16px; height: 16px; }
.ccard__big { display: block; margin-top: 6px; font-size: 26px; font-weight: 900; line-height: 1.05; letter-spacing: -0.05em; transition: color .12s; }
.ccard__big:hover { color: var(--red); }
.ccard__big--wa:hover { color: var(--wa-dark); }
@media (min-width: 768px) { .ccard__big { font-size: 30px; } }
.ccard__text { margin-top: 6px; font-size: 13px; color: var(--muted); }

.info__row { padding: 12px 0; border-top: 1px solid var(--line); }
.info__row:first-child { padding-top: 0; border-top: 0; }
.info__row:last-child { padding-bottom: 0; }
.info dt { font-size: 12px; font-weight: 800; text-transform: uppercase; }
.info dd { margin-top: 4px; font-size: 14px; color: var(--muted); }
.pay { display: flex; flex-wrap: wrap; gap: 6px; }
.pay span {
  padding: 5px 8px;
  background: var(--bg-mid);
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 10px; font-weight: 800; text-transform: uppercase;
}
.pay .pay--accent { background: #ffdad6; }

/* ---------- Подвал ---------- */
.footer { padding: 40px 0 24px; background: var(--bg-high); border-top: 2px solid var(--ink); }
@media (min-width: 768px) { .footer { padding: 64px 0 28px; } }

.footer__grid { display: grid; gap: 32px; }
@media (min-width: 768px)  { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 40px; } }

.footer h3 {
  display: inline-block;
  margin-bottom: 14px; padding-bottom: 6px;
  border-bottom: 2px solid var(--ink);
  font-size: 14px; font-weight: 900; text-transform: uppercase;
}
.footer p { font-size: 13px; color: var(--muted); }
.footer__brand { display: flex; flex-direction: column; gap: 14px; }
.footer__brand .logo__name { font-size: 22px; }

.footer__links { display: grid; gap: 10px; }
.footer__links a { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.footer__links a:hover { color: var(--ink); }
.footer__links .i { font-size: 16px; color: var(--red); }

.footer__phone { display: inline-block; font-size: 22px; font-weight: 900; letter-spacing: -0.05em; }
.footer__phone:hover { color: var(--red); }
.footer__addr { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.footer__addr .i { font-size: 16px; color: var(--ink); }
.footer__wa { margin-top: 14px; }

.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  margin-top: 36px; padding-top: 20px;
  border-top: 2px solid var(--ink);
  font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--muted);
}

/* ---------- Нижняя панель (телефон) ---------- */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 9px 16px calc(9px + env(safe-area-inset-bottom, 0px));
  background: rgba(245, 240, 232, .97);
  border-top: 2px solid var(--ink);
}
.mbar .btn { padding: 13px 10px; font-size: 13px; gap: 8px; box-shadow: 2px 2px 0 var(--ink); }
.mbar .btn:hover { transform: none; box-shadow: 2px 2px 0 var(--ink); }
.mbar__call { color: var(--yellow); }
@media (min-width: 768px) { .mbar { display: none; } }

/* ---------- Меньше движения ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
