/* GPS-Next — тёплый сервисный стиль (вариант B) */
:root {
  --bg: #fdfbf7;
  --bg-soft: #f7f1e8;
  --fg: #20232a;
  --muted: #6b6f77;
  --line: #ece5dc;
  --accent: #e1761a;
  --accent-dark: #b45c10;
  --radius: 18px;
  --radius-btn: 999px;
  --shadow: 0 10px 30px rgba(60, 40, 10, .07);
  --shadow-hover: 0 14px 36px rgba(60, 40, 10, .11);
  --wrap: 1080px;
  --font: system-ui, -apple-system, "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(--fg);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

/* Шапка */
.site-header {
  border-bottom: 1px solid var(--line);
  background: #fffdf9;
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 80px;
  flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 38px; width: auto; display: block; }
.nav { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: #4a4e56; font-size: 14.5px; }
.nav a:hover { color: var(--accent); text-decoration: none; }
.header-phone { font-weight: 700; white-space: nowrap; font-size: 14.5px; color: var(--fg); }

/* Кнопки */
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: var(--radius-btn);
  background: var(--accent);
  color: #fff;
  font-weight: 650;
  font-size: 15px;
  border: 0;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(225, 118, 26, .25);
}
.btn:hover { background: var(--accent-dark); text-decoration: none; }
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: none;
}
.btn-ghost:hover { background: #fdf0e3; color: var(--accent-dark); }

/* Секции */
.section { padding: 64px 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.14; letter-spacing: -.02em; margin: 0 0 18px; }
h2 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; letter-spacing: -.02em; margin: 0 0 12px; }
h3 { font-size: 17px; margin: 0 0 8px; }
p { margin: 0 0 14px; }
.lead { font-size: 17.5px; color: var(--muted); max-width: 60ch; margin-bottom: 26px; }
.muted { color: var(--muted); }

/* Первый экран — по центру */
.hero { padding: 76px 0 66px; text-align: center; }
.hero .lead { margin-left: auto; margin-right: auto; }
.hero h1 { max-width: 26ch; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 26px; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 34px; }
.hero-grid > .card { text-align: left; max-width: 620px; margin: 0 auto; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1fr 1fr; text-align: left; align-items: center; }
  .hero-grid > * { min-width: 0; }
  .hero h1, .hero .lead { margin-left: 0; margin-right: 0; }
  .hero-actions { justify-content: flex-start; }
  .hero-grid > .card { margin: 0; }
}

/* Карточки */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
/* Ровно четыре плашки в один ряд */
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cards-4 .card { padding: 20px; }
@media (max-width: 1000px) { .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards-4 { grid-template-columns: 1fr; } }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: box-shadow .18s ease, transform .18s ease;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card h3 { margin-top: 0; }
.badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent-dark);
  background: #fdf0e3;
  border-radius: 999px;
  padding: 5px 11px;
  margin-bottom: 12px;
}
.card-actions { margin-top: 16px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.price { font-weight: 800; font-size: 20px; margin: 14px 0 0; color: var(--fg); }

/* Иконки и шаги */
.ico { width: 26px; height: 26px; color: var(--accent); margin-bottom: 10px; display: block; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.step { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.step b { display: block; margin: 6px 0 4px; font-size: 15.5px; }
.step span { font-size: 13.5px; color: var(--muted); }
.num { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--accent); text-transform: uppercase; }

/* Списки */
ul.checks { list-style: none; padding: 0; margin: 0; }
ul.checks li { padding-left: 26px; position: relative; margin-bottom: 10px; }
ul.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .16;
}
ul.checks li::after {
  content: "";
  position: absolute;
  left: 5px; top: 11px;
  width: 6px; height: 3px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* Таблица характеристик */
.specs { width: 100%; border-collapse: collapse; margin: 8px 0 0; }
.specs th, .specs td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.specs th { color: var(--muted); font-weight: 500; width: 45%; }

/* Форма */
.form { max-width: 540px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  color: var(--fg);
  background: #fff;
}
.field input:focus, .field textarea:focus { outline: 2px solid #f6dcc2; border-color: var(--accent); }
.field textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* Подвал */
.site-footer { border-top: 1px solid var(--line); background: #fffdf9; padding: 36px 0; margin-top: 40px; }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.site-footer a { color: var(--muted); }

/* Плавающая кнопка в MAX — круглая, только логотип */
.max-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: block;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 22px rgba(72, 48, 248, .35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.max-fab:hover { transform: scale(1.06); box-shadow: 0 12px 28px rgba(72, 48, 248, .45); text-decoration: none; }
.max-fab img { width: 100%; height: 100%; display: block; }
@media (max-width: 640px) {
  .max-fab { width: 52px; height: 52px; right: 14px; bottom: 14px; }
  .site-footer { padding-bottom: 80px; }
}

/* Служебное */
.notice {
  border: 1px dashed #e3c08a;
  background: #fff8ee;
  color: #6b4e00;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 24px;
}

/* Примеры работ: картинка тянется по ширине карточки,
   по клику открывается во весь экран */
.zoom { display: block; cursor: zoom-in; }
.zoom img { width: 100%; height: auto; display: block; border-radius: 12px; }

.zoom-dialog {
  border: 0;
  padding: 0;
  margin: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  background: transparent;
}
.zoom-dialog::backdrop { background: rgba(24, 20, 14, .86); }
.zoom-dialog[open] { display: grid; place-items: center; }
.zoom-dialog img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  cursor: zoom-out;
}
body:has(.zoom-dialog[open]) { overflow: hidden; }

/* Схема этапов «Как это работает» — вертикальная цепочка с номерами */
.flow { margin-top: 26px; }
.flow-item { position: relative; padding: 0 0 28px 58px; }
.flow-item:last-child { padding-bottom: 0; }
.flow-item::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 42px;
  bottom: 4px;
  width: 2px;
  background: var(--line);
}
.flow-item:last-child::before { display: none; }
.flow-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fdf0e3;
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 15px;
  box-shadow: var(--shadow);
}
.flow-item h3 { margin: 9px 0 4px; font-size: 16.5px; }
.flow-item p { margin: 0; max-width: 62ch; }

/* Первый экран: схема вместо карточки «Что получаете» */
.hero-art { margin: 0; min-width: 0; }
.hero-art img { width: 100%; max-width: 100%; height: auto; display: block; }
.hero-art figcaption { margin-top: 14px; font-size: 14px; }

/* Финальный блок заявки на главной — тёмная подложка */
.cta {
  position: relative;
  isolation: isolate;
  padding: 76px 0;
  color: #fff;
  background: #0b1626 url(/img/cta-bg.jpg) center / cover no-repeat;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7, 16, 32, .74), rgba(7, 16, 32, .82));
}
.cta-grid { display: grid; grid-template-columns: 1fr 430px; gap: 44px; align-items: center; }
.cta h2 { color: #fff; margin-bottom: 12px; }
.cta-text p { color: rgba(255, 255, 255, .84); max-width: 42ch; }
.cta-phone { margin: 22px 0 0; }
.cta-phone a { color: #fff; font-size: 22px; font-weight: 700; }
.cta-phone a:hover { text-decoration: none; opacity: .9; }
.cta-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 24px 60px rgba(5, 12, 24, .38);
}
.cta-form .form { max-width: none; }
@media (max-width: 900px) {
  .cta { padding: 56px 0; background-image: url(/img/cta-bg-sm.jpg); }
  .cta-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-text p { max-width: none; }
}

/* Карточки товаров в каталоге и страница модели */
/* Карточки каталога: одинаковая высота, кнопки прижаты к низу */
.cards > .product { display: flex; flex-direction: column; }
.product .card-actions { margin-top: auto; padding-top: 16px; }
.product h3 { margin-bottom: 8px; }
.product-img { display: block; margin: -6px -6px 12px; }
.product-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; display: block; border-radius: 12px; background: #f6f2ec; }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; align-items: start; }
.product-photo { display: flex; align-items: center; justify-content: center; padding: 18px; }
.product-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; display: block; border-radius: 12px; background: #f6f2ec; }
.buy { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
@media (max-width: 860px) { .product-grid { grid-template-columns: 1fr; } }