/* =========================================================
   iikosoft.kg — официальный партнёр iiko в Кыргызстане
   Цвета и типографика в фирменном стиле iiko
   ========================================================= */

:root {
  --red: #ef3b39;          /* фирменный красный iiko (из логотипа) */
  --red-600: #d92f2d;
  --red-700: #b9201f;
  --red-50: #fff1f0;
  --red-100: #ffe0de;

  --ink: #171717;
  --ink-2: #3d3d42;
  --muted: #6b6b72;
  --line: #e7e7ec;
  --soft: #f5f5f7;
  --soft-2: #ededf1;
  --bg: #ffffff;
  --dark: #141416;

  --wa: #25d366;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(20, 20, 22, .06), 0 2px 8px rgba(20, 20, 22, .04);
  --shadow: 0 10px 30px -10px rgba(20, 20, 22, .18);
  --shadow-red: 0 10px 24px -8px rgba(239, 59, 57, .55);

  --container: 1200px;
  --gutter: 20px;
  --header-h: 76px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*,
*::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;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.red { color: var(--red); }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

/* ---------- Кнопки ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 26px;
  border: 1.5px solid transparent; border-radius: 12px;
  font-weight: 600; font-size: 16px; line-height: 1.2; text-align: center;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s;
  white-space: nowrap;
}
.btn .icon { width: 20px; height: 20px; }
.btn:active { transform: translateY(1px); }
.btn--red { background: var(--red); color: #fff; box-shadow: var(--shadow-red); }
.btn--red:hover { background: var(--red-600); }
.btn--outline { border-color: var(--red); color: var(--red); background: #fff; }
.btn--outline:hover { background: var(--red-50); }
.btn--ghost { border-color: var(--line); background: #fff; color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--white { background: #fff; color: var(--red); }
.btn--white:hover { background: var(--red-50); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #1fb457; }
.btn--sm { --h: 44px; padding: 0 18px; font-size: 15px; border-radius: 10px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .7; pointer-events: none; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--red); }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px -12px rgba(0, 0, 0, .15); }
.header__inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand__iiko { width: 62px; height: auto; }
.brand__divider { width: 1px; height: 34px; background: var(--line); }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__title { font-size: 13px; font-weight: 700; color: var(--ink); }
.brand__sub { font-size: 12px; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a { padding: 8px 11px; border-radius: 8px; font-size: 15px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--red); background: var(--red-50); }

.header__actions { display: flex; align-items: center; gap: 14px; flex: none; }
.header__phone { display: flex; flex-direction: column; line-height: 1.25; text-align: right; }
.header__phone a { font-weight: 700; font-size: 16px; white-space: nowrap; }
.header__phone a:hover { color: var(--red); }
.header__phone span { font-size: 12px; color: var(--muted); }

.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center;
  border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  transition: border-color .2s, color .2s, background-color .2s;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn--wa { color: #fff; background: var(--wa); border-color: var(--wa); }
.icon-btn--wa:hover { background: #1fb457; border-color: #1fb457; }
.burger { display: none; }

/* Мобильное меню */
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: #fff; padding: 16px var(--gutter) 32px;
  display: flex; flex-direction: column; gap: 4px;
  overflow-y: auto;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .2s, transform .2s, visibility .2s;
}
.mobile-menu.is-open { transform: none; opacity: 1; visibility: visible; }
.mobile-menu a.mobile-menu__link { padding: 14px 4px; font-size: 18px; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-menu__bottom { margin-top: 20px; display: grid; gap: 10px; }
.mobile-menu__phone { font-size: 22px; font-weight: 800; padding: 8px 4px; }

/* ---------- Общие секции ---------- */
.section { padding: 96px 0; }
.section--soft { background: var(--soft); }
.section--tight { padding: 64px 0; }

.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head--left { margin-left: 0; text-align: left; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--red-50); color: var(--red-700);
  font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase;
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; }
.section-head p { margin-top: 16px; font-size: 18px; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { padding: 28px 0 0; }
.hero__card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px;
  background: var(--soft); border-radius: var(--radius-xl);
  min-height: 560px;
}
.hero__content { padding: 64px 0 64px 64px; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2; }
.hero .eyebrow { align-self: flex-start; margin-bottom: 0; background: #fff; }

.hero h1 {
  margin-top: 22px;
  font-size: clamp(38px, 5.2vw, 66px); line-height: 1.03; font-weight: 800; letter-spacing: -.03em;
}
.hero__lead { margin-top: 22px; font-size: 20px; line-height: 1.5; color: var(--ink-2); max-width: 470px; }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero__media { position: relative; min-height: 420px; }
.hero__media > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 80% 50%;
}
.hero__media::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, var(--soft) 0%, rgba(245, 245, 247, 0) 35%);
}
.float-card {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: 16px;
  background: rgba(255, 255, 255, .96); box-shadow: var(--shadow);
  font-size: 14px; line-height: 1.3; color: var(--ink-2);
}
.float-card b { display: block; font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.float-card__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--red-50); color: var(--red); flex: none; }
.float-card--b { right: 6%; bottom: 9%; }

/* ---------- Цифры ---------- */
.stats { padding: 24px 0 80px; }
.stats__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.stat { padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; }
.stat__num { font-size: clamp(30px, 3.2vw, 42px); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--red); }
.stat__num small { font-size: .55em; font-weight: 700; margin-left: 4px; color: var(--ink); letter-spacing: 0; }
.stat__label { margin-top: 10px; font-size: 14px; color: var(--muted); line-height: 1.4; }

/* ---------- Задачи (benefits) ---------- */
.tasks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.task {
  padding: 30px; border-radius: var(--radius-lg); background: #fff;
  transition: transform .25s, box-shadow .25s;
}
.task:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.task__icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--red); color: #fff; margin-bottom: 22px;
}
.task__icon .icon { width: 28px; height: 28px; }
.task h3 { font-size: 21px; font-weight: 700; margin-bottom: 14px; }
.task ul { display: grid; gap: 10px; }
.task li { position: relative; padding-left: 18px; font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.task li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }

/* ---------- Форматы заведений ---------- */
.formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.format {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3.4; color: #fff; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 26px;
  text-align: left; border: 0; background: var(--dark);
}
.format img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s; }
.format::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .78) 100%); }
.format:hover img { transform: scale(1.05); }
.format__tag { position: absolute; top: 18px; right: 18px; padding: 5px 10px; border-radius: 8px; background: var(--red); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.format h3 { font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.format p { margin-top: 6px; font-size: 15px; opacity: .88; line-height: 1.4; }
.format__more { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; }
.format__more .icon { width: 18px; height: 18px; transition: transform .2s; }
.format:hover .format__more .icon { transform: translateX(4px); }

.chips { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chips__label { width: 100%; text-align: center; color: var(--muted); font-size: 15px; margin-bottom: 4px; }
.chip { padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 15px; font-weight: 500; }

/* ---------- Модули ---------- */
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.module { display: flex; flex-direction: column; border-radius: var(--radius-lg); background: var(--soft); overflow: hidden; }
.module__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft-2); }
.module__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.module:hover .module__img img { transform: scale(1.04); }
.module__body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.module h3 { font-size: 21px; font-weight: 700; }
.module__lead { font-size: 15px; color: var(--ink-2); font-weight: 500; }
.module ul { display: grid; gap: 7px; }
.module li { display: flex; gap: 8px; font-size: 14.5px; color: var(--muted); line-height: 1.4; }
.module li .icon { width: 18px; height: 18px; color: var(--red); margin-top: 1px; stroke-width: 2.5; }

/* ---------- Тарифы ---------- */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price {
  position: relative; display: flex; flex-direction: column;
  padding: 34px 30px 30px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line);
}
.price--hit { border: 2px solid var(--red); box-shadow: 0 30px 60px -30px rgba(239, 59, 57, .45); }
.price__hit {
  position: absolute; top: -14px; left: 30px;
  padding: 5px 12px; border-radius: 8px; background: var(--red); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.price__name { font-size: 24px; font-weight: 800; }
.price__for { margin-top: 4px; color: var(--muted); font-size: 15px; }
.price__cost { margin-top: 22px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price__cost small { font-size: 15px; color: var(--muted); }
.price__cost b { font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.price__cost span { font-size: 16px; font-weight: 600; }
.price__divider { height: 1px; background: var(--line); margin: 24px 0 20px; }
.price__base { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.price ul { display: grid; gap: 11px; margin-bottom: 28px; }
.price li { display: flex; gap: 10px; font-size: 15px; color: var(--ink-2); line-height: 1.4; }
.price li .icon { width: 20px; height: 20px; color: var(--red); stroke-width: 2.5; }
.price__actions { margin-top: auto; display: grid; gap: 10px; }
.prices-note {
  margin-top: 28px; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  padding: 18px 24px; border-radius: var(--radius); background: var(--red-50); color: var(--ink-2); text-align: center; font-size: 15.5px;
}
.prices-note b { color: var(--ink); }
.prices-note .icon { color: var(--red); }

/* ---------- Промо-форма ---------- */
.promo {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-xl); background: var(--red); color: #fff;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  padding: 56px;
}
.promo::before {
  content: ""; position: absolute; z-index: -1; right: -120px; top: -160px; width: 520px; height: 520px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 70%);
}
.promo h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.promo p { margin-top: 14px; font-size: 18px; opacity: .92; }
.promo__badges { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.promo__badges span { padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: 14px; font-weight: 600; }
.promo .lead-form { background: #fff; color: var(--ink); padding: 28px; border-radius: var(--radius-lg); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45); }
.lead-form__title { font-size: 20px; font-weight: 700; margin-bottom: 16px; }

/* ---------- Формы ---------- */
.lead-form { display: grid; gap: 12px; }
.field { position: relative; }
.field input {
  width: 100%; height: 54px; padding: 0 18px;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  font: inherit; font-size: 16px; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: #9a9aa1; }
.field input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(239, 59, 57, .12); }
.field input.is-invalid { border-color: var(--red); background: var(--red-50); }
.lead-form__policy { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.lead-form--row { grid-template-columns: 1fr 1fr auto; align-items: start; }
.lead-form--row .lead-form__policy { grid-column: 1 / -1; }

/* ---------- Этапы ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; position: relative; }
.step { position: relative; padding: 30px 26px; border-radius: var(--radius-lg); background: #fff; display: flex; flex-direction: column; }
.step__num {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--red); color: #fff; font-size: 20px; font-weight: 800; margin-bottom: 20px;
  box-shadow: 0 0 0 8px var(--red-50);
}
.step__label { font-size: 13px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .04em; }
.step h3 { margin-top: 6px; font-size: 20px; font-weight: 700; line-height: 1.25; }
.step ol { margin: 14px 0 0; padding-left: 18px; display: grid; gap: 8px; }
.step li { font-size: 14.5px; color: var(--ink-2); line-height: 1.45; }
.step li::marker { color: var(--red); font-weight: 700; }
.step__note { margin-top: auto; padding-top: 18px; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.step__note::before { content: ""; display: block; height: 1px; background: var(--line); margin-bottom: 14px; }
.step__free { display: inline-block; margin-top: 12px; padding: 4px 10px; border-radius: 8px; background: var(--red-50); color: var(--red-700); font-size: 13px; font-weight: 600; }

/* ---------- Оборудование ---------- */
.equip { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: stretch; }
.equip__cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.equip-cat {
  display: flex; flex-direction: column; gap: 10px; justify-content: space-between;
  padding: 14px 18px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: border-color .2s, box-shadow .2s, color .2s, transform .2s;
  min-height: 128px;
}
.equip-cat:hover { border-color: var(--red); color: var(--red); box-shadow: var(--shadow); transform: translateY(-3px); }
.equip-cat__img { flex: 1; display: grid; place-items: center; min-height: 96px; }
.equip-cat__img img { width: 100%; height: 96px; object-fit: contain; transition: transform .3s; }
.equip-cat:hover .equip-cat__img img { transform: scale(1.06); }
.equip-cat > span:last-child { font-weight: 600; font-size: 16px; line-height: 1.3; }
.equip__products { display: grid; grid-template-columns: 1fr; gap: 14px; }
.product { display: flex; align-items: center; gap: 18px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.product__img { flex: none; width: 128px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 12px; background: #fff; overflow: hidden; }
.product__img img { width: 100%; height: 100%; object-fit: contain; }
.product__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.product__stock { font-size: 13px; font-weight: 600; color: #1a9d4b; display: flex; align-items: center; gap: 6px; }
.product__stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #1a9d4b; }
.product h3 { margin-top: 6px; font-size: 15.5px; font-weight: 600; line-height: 1.35; }
.product__price { padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.product__price b { font-size: 20px; font-weight: 800; }
.equip__cta {
  margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 26px 30px; border-radius: var(--radius-lg); background: var(--dark); color: #fff;
}
.equip__cta b { font-size: 20px; display: block; }
.equip__cta span { color: rgba(255, 255, 255, .7); font-size: 15px; }
.equip__cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.equip__cta .btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.equip__cta .btn--ghost:hover { border-color: #fff; }

/* ---------- FAQ ---------- */
.faq { max-width: 880px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: transparent; box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 24px; font-size: 18px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--ink); transition: transform .25s, background-color .2s, color .2s; }
.faq summary .plus .icon { width: 18px; height: 18px; }
.faq details[open] summary .plus { transform: rotate(45deg); background: var(--red); color: #fff; }
.faq__answer { padding: 0 24px 24px; color: var(--ink-2); font-size: 16px; line-height: 1.6; }

/* ---------- Контакты ---------- */
.contacts { display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px; }
.contact-card { padding: 36px; border-radius: var(--radius-lg); background: var(--soft); display: flex; flex-direction: column; gap: 22px; }
.contact-row { display: flex; gap: 14px; align-items: flex-start; }
.contact-row__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--red); flex: none; }
.contact-row small { display: block; font-size: 13px; color: var(--muted); }
.contact-row a, .contact-row p { font-size: 18px; font-weight: 700; }
.contact-row a:hover { color: var(--red); }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.social { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; background: #fff; font-weight: 600; font-size: 15px; transition: color .2s, background-color .2s; }
.social:hover { background: var(--ink); color: #fff; }
.social .icon { width: 20px; height: 20px; }
.contact-card .lead-form { margin-top: 4px; padding-top: 22px; border-top: 1px solid var(--line); }
.map { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 460px; background: var(--soft); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__link { position: absolute; left: 16px; bottom: 16px; z-index: 2; }

/* ---------- Финальный CTA ---------- */
.final {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-xl); padding: 80px 56px; color: #fff; text-align: center;
  background: var(--dark);
}
.final > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 75% 50%; z-index: -2; }
.final::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 10, 12, .9) 0%, rgba(10, 10, 12, .72) 55%, rgba(10, 10, 12, .45) 100%); }
.final h2 { font-size: clamp(30px, 4vw, 50px); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; max-width: 820px; margin: 0 auto; }
.final p { margin: 18px auto 0; max-width: 620px; font-size: 18px; color: rgba(255, 255, 255, .85); }
.final__actions { margin-top: 32px; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ---------- Подвал ---------- */
.footer { margin-top: 32px; background: var(--dark); color: rgba(255, 255, 255, .72); padding: 64px 0 28px; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer__brand { display: flex; align-items: center; gap: 14px; color: #fff; }
.footer__brand img { width: 70px; }
.footer__brand .brand__divider { background: rgba(255, 255, 255, .2); }
.footer__brand .brand__title { color: #fff; }
.footer__brand .brand__sub { color: rgba(255, 255, 255, .6); }
.footer__about { margin-top: 18px; max-width: 340px; line-height: 1.55; }
.footer h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.footer ul { display: grid; gap: 10px; }
.footer a:hover { color: #fff; }
.footer__contacts a { color: #fff; font-weight: 600; }
.footer__bottom { margin-top: 48px; padding: 24px 76px 0 0; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: rgba(255, 255, 255, .5); }

/* ---------- Плавающие кнопки ---------- */
.fab-wa {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: #fff; box-shadow: 0 10px 25px -6px rgba(37, 211, 102, .6);
  transition: transform .2s;
}
.fab-wa:hover { transform: scale(1.06); }
.fab-wa .icon { width: 30px; height: 30px; }
.fab-wa::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

.mobile-bar { display: none; }

/* ---------- Модальное окно ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s; }
.modal.is-open { visibility: visible; opacity: 1; }
.modal__overlay { position: absolute; inset: 0; background: rgba(15, 15, 17, .6); backdrop-filter: blur(4px); }
.modal__box {
  position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto;
  background: #fff; border-radius: var(--radius-lg); padding: 36px 32px 30px;
  transform: translateY(12px) scale(.98); transition: transform .25s;
}
.modal.is-open .modal__box { transform: none; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--soft); display: grid; place-items: center; }
.modal__close:hover { background: var(--soft-2); }
.modal__close .icon { width: 20px; height: 20px; }
.modal__logo { width: 56px; margin-bottom: 18px; }
.modal__title { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; padding-right: 30px; }
.modal__text { margin: 10px 0 22px; color: var(--muted); font-size: 15.5px; }
.modal__alt { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.modal__alt a { color: #1a9d4b; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.modal__alt a .icon { width: 18px; height: 18px; }

.form-success { text-align: center; padding: 10px 0; }
.form-success__icon { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: #e8f8ee; color: #1a9d4b; }
.form-success__icon .icon { width: 36px; height: 36px; stroke-width: 2.5; }
.form-success h3 { font-size: 22px; font-weight: 800; }
.form-success p { margin-top: 8px; color: var(--muted); }

/* Тост-уведомления */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 120; transform: translate(-50%, 20px);
  max-width: min(520px, calc(100vw - 32px)); padding: 16px 20px; border-radius: 14px;
  background: var(--ink); color: #fff; box-shadow: var(--shadow); font-size: 15px; line-height: 1.45;
  opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s;
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast a { color: #7ee2a2; font-weight: 700; text-decoration: underline; }

/* Анимация появления */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .fab-wa::after { animation: none; }
}

:focus-visible { outline: 3px solid rgba(239, 59, 57, .5); outline-offset: 2px; }

/* =========================================================
   Адаптив
   ========================================================= */
@media (min-width: 1025px) {
  .header__actions .icon-btn--wa { display: none; } /* на десктопе есть плавающая кнопка WhatsApp */
}
@media (max-width: 1320px) {
  .header__inner { gap: 16px; }
  .nav a { padding: 8px 8px; font-size: 14.5px; }
  .header__phone span { display: none; }
}
@media (max-width: 1200px) {
  .brand__text { display: none; }
  .brand__divider { display: none; }
}

@media (max-width: 1024px) {
  :root { --header-h: 68px; }
  .nav, .header__phone, .header__actions .btn { display: none; }
  .burger { display: inline-grid; }
  .header__inner { justify-content: space-between; }
  .brand__text, .brand__divider { display: flex; }
  .header__actions { margin-left: auto; gap: 8px; }

  .hero__card { grid-template-columns: 1fr; min-height: 0; }
  .hero__content { padding: 44px 40px 8px; }
  .hero__media { min-height: 360px; margin: 0 16px 16px; border-radius: var(--radius-lg); overflow: hidden; }
  .hero__media::before { display: none; }
  .float-card--b { right: 16px; bottom: 16px; }

  .stats__grid { grid-template-columns: repeat(3, 1fr); }
  .tasks, .formats, .modules { grid-template-columns: repeat(2, 1fr); }
  .prices { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; gap: 28px; }
  .promo { grid-template-columns: 1fr; padding: 44px 40px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .equip { grid-template-columns: 1fr; }
  .contacts { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; }
  body { font-size: 15.5px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head p { font-size: 16px; }

  .brand__iiko { width: 52px; }
  .brand__title { font-size: 12px; }
  .brand__sub { font-size: 11px; }
  .header__actions .icon-btn--wa { display: none; }

  .hero { padding-top: 12px; }
  .hero__card { border-radius: var(--radius-lg); }
  .hero__content { padding: 32px 20px 8px; }
  .hero .eyebrow { font-size: 11.5px; }
  .hero__lead { font-size: 17px; }
  .hero__actions { margin-top: 28px; }
  .hero__actions .btn { width: 100%; }
  .hero__media { min-height: 260px; margin: 0 10px 10px; }
  .float-card { padding: 10px 12px; font-size: 12.5px; }
  .float-card b { font-size: 18px; }
  .float-card__icon { width: 36px; height: 36px; }
  .float-card--b { right: 10px; bottom: 10px; }

  .stats { padding-bottom: 56px; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 18px; border-radius: var(--radius); }
  .stat:last-child { grid-column: 1 / -1; }

  .tasks, .formats, .modules, .steps { grid-template-columns: 1fr; }
  .task { padding: 24px; }
  .format { aspect-ratio: 4 / 3; }
  .price { padding: 30px 22px 24px; }
  .promo { padding: 32px 20px 20px; border-radius: var(--radius-lg); }
  .promo .lead-form { padding: 20px; }
  .lead-form--row { grid-template-columns: 1fr; }
  .equip__cats { grid-template-columns: 1fr 1fr; }
  .equip__cta { padding: 22px; }
  .equip__cta-actions, .equip__cta-actions .btn { width: 100%; }
  .faq summary { font-size: 16px; padding: 18px; }
  .faq__answer { padding: 0 18px 18px; font-size: 15px; }
  .contact-card { padding: 24px 20px; }
  .map { min-height: 340px; }
  .final { padding: 56px 20px; border-radius: var(--radius-lg); }
  .final__actions .btn { width: 100%; }
  .footer { margin-top: 64px; padding-bottom: 96px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { padding-right: 0; }

  .fab-wa { display: none; }
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
    backdrop-filter: blur(10px);
  }
  .mobile-bar .btn { --h: 48px; padding: 0 12px; font-size: 15px; }
  .toast { bottom: 84px; }
}

@media (max-width: 720px) {
  .equip-cat { min-height: 112px; padding: 18px; }
  .product { padding: 14px; gap: 14px; }
  .product__img { width: 92px; }
}
@media (max-width: 380px) {
  .equip-cat span { font-size: 15px; }
  .hero__content { padding: 28px 16px 8px; }
  .hero h1 { font-size: 31px; }
  .h2 { font-size: 26px; }
  .eyebrow { font-size: 11px; }
  .product { flex-direction: column; align-items: stretch; }
  .product__img { width: 100%; aspect-ratio: 16 / 9; }
  .btn { white-space: normal; padding: 0 16px; }
}
@media (max-width: 1024px) {
  /* не даём длинным кнопкам распирать колонку на узких экранах */
  .hero__card, .promo { grid-template-columns: minmax(0, 1fr); }
}
