/* =========================================================
   Тара152 — styles.css
   Дизайн-система + адаптивная вёрстка
   ========================================================= */

:root {
  --primary: #0f4c81;
  --primary-600: #0d4270;
  --primary-700: #0a3459;
  --primary-050: #e8f1f9;
  --accent: #f59e0b;
  --accent-600: #d97706;
  --ink: #0f172a;
  --ink-soft: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-muted: #f6f8fb;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .16);
  --container: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 74px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--primary);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }

.btn--primary { --btn-bg: var(--primary); }
.btn--primary:hover { --btn-bg: var(--primary-600); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--primary);
  border-color: var(--line);
  background: #fff;
}
.btn--ghost:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }

.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--lg { padding: 15px 28px; font-size: 16px; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px rgba(15, 23, 42, .05);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.logo__mark { color: var(--primary); display: inline-flex; }
.logo__text { font-size: 22px; letter-spacing: -.03em; }
.logo__text b { color: var(--accent-600); }
.logo__text--light { color: #fff; }
.logo__text--light b { color: var(--accent); }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav__link {
  padding: 9px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-soft);
  transition: background .18s, color .18s;
}
.nav__link:hover { background: var(--primary-050); color: var(--primary); }

.header__actions { display: flex; align-items: center; gap: 12px; }
.header__phone {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  transition: color .18s;
}
.header__phone:hover { color: var(--primary); }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.burger span {
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 76px 0 64px; }
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 78% -10%, rgba(15, 76, 129, .14), transparent 60%),
    radial-gradient(700px 500px at 0% 110%, rgba(245, 158, 11, .12), transparent 55%),
    linear-gradient(180deg, var(--bg-muted), #fff);
}
.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(600px 400px at 70% 20%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(600px 400px at 70% 20%, #000, transparent 75%);
  opacity: .5;
}
.hero__inner { position: relative; }
.hero__content { max-width: 760px; }

.badge {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--primary-050);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
}
.hero__title { font-size: clamp(30px, 5vw, 54px); }
.hero__title span {
  background: linear-gradient(120deg, var(--primary), var(--accent-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
}
.hero__text {
  margin: 20px 0 28px;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--ink-soft);
  max-width: 620px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 32px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 15px;
}
.hero__points li { position: relative; padding-left: 26px; }
.hero__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary-050) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 13l4 4L19 7' stroke='%230f4c81' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---------- Stats ---------- */
.stats { padding: 0; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 34px 34px;
  color: #fff;
  box-shadow: var(--shadow);
  margin-top: -48px;
  position: relative;
  z-index: 2;
}
.stat { text-align: center; }
.stat__value { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.stat__label { font-size: 14px; opacity: .82; margin-top: 4px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--muted { background: var(--bg-muted); }
.section__head { max-width: 720px; margin: 0 0 44px; }
.section__eyebrow {
  display: inline-block;
  color: var(--primary);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section__title { font-size: clamp(26px, 3.4vw, 38px); }
.section__sub { margin: 14px 0 0; color: var(--ink-soft); font-size: 17px; }

/* ---------- Catalog ---------- */
.catalog {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.catalog__category {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 22px 0 2px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.catalog__category:first-child { margin-top: 0; }
.catalog__cat-title { font-size: 20px; font-weight: 800; }
.catalog__cat-price {
  color: var(--accent-600);
  font-weight: 800;
  font-size: 14px;
  background: #fff7e6;
  padding: 3px 10px;
  border-radius: 999px;
}

.card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfe0ef; }
.card__icon {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--primary-050);
  color: var(--primary);
}
.card__body { min-width: 0; }
.card__title { font-size: 16px; font-weight: 700; line-height: 1.3; }
.card__meta { font-size: 14px; color: var(--muted); margin-top: 3px; }
.card__price { color: var(--accent-600); font-weight: 800; }

.catalog__note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 34px;
  padding: 24px 28px;
  border-radius: var(--radius);
  background: var(--primary-050);
}
.catalog__note p { margin: 0; font-weight: 700; font-size: 18px; }

/* ---------- Process ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.process__item {
  position: relative;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.process__item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.process__num {
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-050);
  border-radius: 8px;
  padding: 4px 10px;
  margin-bottom: 16px;
}
.process__title { font-size: 18px; margin-bottom: 8px; }
.process__text { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- Why ---------- */
.why {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.why__item {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, var(--bg-muted));
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.why__item::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}
.why__title { font-size: 19px; margin-bottom: 8px; }
.why__text { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.about__text p { color: var(--ink-soft); font-size: 17px; margin: 0 0 16px; }
.about__text .section__title { margin-bottom: 18px; }
.about__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fact {
  padding: 22px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.fact b { display: block; font-size: 22px; color: var(--primary); letter-spacing: -.02em; }
.fact span { font-size: 13px; color: var(--muted); }

/* ---------- Contacts ---------- */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contacts__list { margin: 0 0 28px; display: grid; gap: 18px; }
.contacts__list li { display: grid; gap: 4px; }
.contacts__label { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.contacts__value { font-size: 18px; font-weight: 700; }
a.contacts__value:hover { color: var(--primary); }
.contacts__cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Form ---------- */
.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form__title { font-size: 22px; margin-bottom: 8px; }
.form__sub { color: var(--ink-soft); font-size: 15px; margin: 0 0 22px; }
.field { display: block; margin-bottom: 16px; }
.field__label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; color: var(--ink-soft); }
.field input[type="text"],
.field input[type="tel"] {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  background: var(--bg-muted);
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.field input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px var(--primary-050);
}
.field.is-invalid input { border-color: #dc2626; background: #fef2f2; }
.field--check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.field--check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--primary); }
.form__result { margin: 14px 0 0; font-size: 15px; font-weight: 600; min-height: 20px; }
.form__result.is-ok { color: #15803d; }
.form__result.is-err { color: #dc2626; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #cbd5e1; padding: 60px 0 26px; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer__brand p { margin: 12px 0 0; font-size: 15px; max-width: 320px; }
.footer__nav { display: grid; gap: 10px; align-content: start; }
.footer__nav a, .footer__contacts a, .footer__contacts span { color: #cbd5e1; font-size: 15px; }
.footer__nav a:hover, .footer__contacts a:hover { color: #fff; }
.footer__contacts { display: grid; gap: 10px; align-content: start; }
.footer__contacts a:first-child { font-size: 19px; font-weight: 800; color: #fff; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  font-size: 13px;
  color: #94a3b8;
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__overlay { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); backdrop-filter: blur(3px); }
.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-lg);
  transform: translateY(14px) scale(.98);
  transition: transform .25s var(--ease);
}
.modal.is-open .modal__dialog { transform: translateY(0) scale(1); }
.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border: none;
  border-radius: 10px;
  background: var(--bg-muted);
  color: var(--ink-soft);
  font-size: 24px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background .18s, color .18s;
}
.modal__close:hover { background: var(--line); color: var(--ink); }

/* =========================================================
   CHAT WIDGET
   ========================================================= */
.chat { position: fixed; right: 22px; bottom: 22px; z-index: 300; }

.chat__fab {
  position: relative;
  width: 62px;
  height: 62px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-700));
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(15, 76, 129, .38);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.chat__fab:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 16px 38px rgba(15, 76, 129, .48); }
.chat__fab-icon { position: absolute; transition: opacity .2s, transform .25s var(--ease); }
.chat__fab-icon--close { opacity: 0; transform: rotate(-90deg) scale(.6); }
.chat.is-open .chat__fab-icon--chat { opacity: 0; transform: rotate(90deg) scale(.6); }
.chat.is-open .chat__fab-icon--close { opacity: 1; transform: rotate(0) scale(1); }

.chat__fab-dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  animation: pulse 1.8s infinite;
}
.chat.is-open .chat__fab-dot { display: none; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, .6); }
  70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.chat__fab-label {
  position: absolute;
  right: 74px;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 10px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s var(--ease);
}
.chat__fab-label::after {
  content: "";
  position: absolute;
  right: -6px; top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--ink);
}
.chat:not(.is-open) .chat__fab:hover .chat__fab-label,
.chat:not(.is-open) .chat__fab-label.is-visible { opacity: 1; transform: translateY(-50%) translateX(0); }

.chat__window {
  position: absolute;
  right: 0;
  bottom: 78px;
  width: 372px;
  max-width: calc(100vw - 44px);
  height: 540px;
  max-height: calc(100vh - 120px);
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(.96);
  transition: opacity .24s, transform .28s var(--ease), visibility .24s;
}
.chat.is-open .chat__window { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.chat__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-700));
  color: #fff;
}
.chat__agent { display: flex; align-items: center; gap: 12px; }
.chat__avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  display: grid; place-items: center;
  flex: 0 0 auto;
}
.chat__agent strong { display: block; font-size: 15px; }
.chat__status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; opacity: .85; }
.chat__status i { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .25); }
.chat__close {
  border: none;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  width: 34px; height: 34px;
  border-radius: 10px;
  font-size: 22px;
  line-height: 1;
  display: grid; place-items: center;
  transition: background .18s;
}
.chat__close:hover { background: rgba(255, 255, 255, .26); }

.chat__body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  background: var(--bg-muted);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat__body::-webkit-scrollbar { width: 8px; }
.chat__body::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }

.msg { display: flex; max-width: 86%; }
.msg--bot { align-self: flex-start; }
.msg--user { align-self: flex-end; }
.msg__bubble {
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.5;
  box-shadow: var(--shadow-sm);
  animation: msgIn .25s var(--ease) both;
}
.msg--bot .msg__bubble { background: #fff; border-bottom-left-radius: 5px; }
.msg--user .msg__bubble { background: var(--primary); color: #fff; border-bottom-right-radius: 5px; }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.msg--typing .msg__bubble { display: inline-flex; gap: 5px; padding: 14px 16px; }
.msg--typing .dot { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; animation: blink 1.2s infinite; }
.msg--typing .dot:nth-child(2) { animation-delay: .2s; }
.msg--typing .dot:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.chat__quick { display: flex; flex-wrap: wrap; gap: 8px; align-self: flex-start; }
.chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--primary);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 13px;
  border-radius: 999px;
  transition: background .18s, border-color .18s, transform .18s;
}
.chip:hover { background: var(--primary-050); border-color: #b9d3e8; transform: translateY(-1px); }

.chat__form {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border-top: 1px solid var(--line);
}
.chat__form input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  background: var(--bg-muted);
  transition: border-color .18s, background .18s;
}
.chat__form input:focus { outline: none; border-color: var(--primary); background: #fff; }
.chat__form button {
  flex: 0 0 auto;
  width: 46px;
  border: none;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  display: grid; place-items: center;
  transition: background .18s, transform .18s;
}
.chat__form button:hover { background: var(--primary-600); transform: translateY(-1px); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .catalog, .why { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .about, .contacts { grid-template-columns: 1fr; gap: 34px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 4px;
    padding: 16px 20px 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s, transform .22s var(--ease), visibility .22s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__link { padding: 12px 14px; font-size: 16px; }
  .header__phone { display: none; }
  .burger { display: flex; }
  .header__actions { margin-left: auto; }
  .header__inner { gap: 12px; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .header__inner { gap: 8px; }
  .header__actions { gap: 8px; }
  .logo__mark svg { width: 28px; height: 28px; }
  .logo__text { font-size: 20px; }
  .header__actions .btn { padding: 8px 12px; font-size: 13px; }
  .burger { width: 40px; height: 40px; }
  .section { padding: 64px 0; }
  .catalog, .why, .process, .about__facts { grid-template-columns: 1fr; }
  .stats__grid { padding: 26px 20px; margin-top: -28px; border-radius: var(--radius); }
  .hero { padding: 48px 0 52px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .form { padding: 24px; }
  .footer__inner { grid-template-columns: 1fr; gap: 26px; }
  .catalog__note { flex-direction: column; align-items: flex-start; }
  .chat { right: 14px; bottom: 14px; }
  .chat__window { width: calc(100vw - 28px); height: calc(100vh - 130px); }
  .chat__fab-label { display: none; }
}







