/* =====================================================
   HolodMaster — landing styles
   Mobile-first. Breakpoints: 640 / 768 / 1024 / 1280
   ===================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-soft: #f1f7fb;
  --ink: #0b1a2b;
  --ink-muted: #5b6b7c;
  --brand: #0ea5e9;
  --brand-dark: #0284c7;
  --brand-soft: #e0f2fe;
  --brand-softer: #f0f9ff;
  --success: #22c55e;
  --success-dark: #16a34a;
  --border: #e2e8f0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-md: 0 4px 14px -4px rgba(15, 23, 42, .12);
  --shadow-lg: 0 18px 40px -16px rgba(14, 165, 233, .35);
  --container: 1200px;
  --container-narrow: 760px;
  --transition: 180ms cubic-bezier(.2, .8, .2, 1);
  --header-h: 64px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.15; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ---------- Helpers ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.container--narrow { max-width: var(--container-narrow); }
.eyebrow {
  display: inline-block;
  padding: 6px 12px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.accent { color: var(--brand); white-space: nowrap; }
.t-muted { color: var(--ink-muted); }

/* ---------- Icons (Lucide + SVG sprite) ---------- */
[data-lucide],
i[data-lucide] svg,
svg.lucide,
.icon {
  width: 1em;
  height: 1em;
  stroke-width: 2;
  vertical-align: -.15em;
  flex-shrink: 0;
}
i[data-lucide] {
  display: inline-flex;
  width: 1em;
  height: 1em;
  line-height: 1;
}
.icon {
  display: inline-block;
  fill: currentColor;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn--lg { padding: 14px 26px; min-height: 54px; font-size: 1rem; }
.btn--lg [data-lucide] { font-size: 1.25rem; }
.btn [data-lucide] { font-size: 1.1rem; }
.btn--block { width: 100%; }
.btn--primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.btn--whatsapp {
  background: linear-gradient(135deg, var(--success) 0%, var(--success-dark) 100%);
  color: #fff;
  box-shadow: 0 18px 40px -16px rgba(34, 197, 94, .45);
}
.btn--ghost {
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.btn--phone .btn__label { display: inline; }

/* фиксируем белый текст для filled-кнопок во всех состояниях,
   чтобы глобальное `a:hover { color: var(--brand) }` его не перебивало */
.btn--primary,
.btn--primary:hover,
.btn--primary:focus,
.btn--primary:visited,
.btn--whatsapp,
.btn--whatsapp:hover,
.btn--whatsapp:focus,
.btn--whatsapp:visited { color: #fff; }

@media (hover: hover) {
  .btn:hover { transform: translateY(-1px); }
  .btn--primary:hover {
    background: linear-gradient(135deg, var(--brand-dark) 0%, #075985 100%);
    box-shadow: 0 16px 36px -12px rgba(2, 132, 199, .55);
  }
  .btn--whatsapp:hover {
    background: linear-gradient(135deg, var(--success-dark) 0%, #15803D 100%);
    box-shadow: 0 16px 36px -12px rgba(22, 163, 74, .55);
  }
  .btn--ghost:hover {
    background: var(--brand);
    color: #fff;
  }
}
.btn:active { transform: translateY(0); filter: none; }
.btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 40%, transparent); outline-offset: 2px; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  padding-top: env(safe-area-inset-top, 0px);
  transition: border-color var(--transition);
}
/* backdrop вынесен в ::before, чтобы сам header не становился containing block для position:fixed потомков (.nav на мобильном) */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  transition: background var(--transition);
}
.header.is-scrolled { border-bottom-color: var(--border); }
.header.is-scrolled::before { background: rgba(255, 255, 255, .94); }
.header__row {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.1rem;
  margin-right: auto;
}
.logo:hover { color: var(--ink); }
.logo__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  font-size: 20px;
}
.logo__dot { color: var(--brand); }
.logo--footer { font-size: 1rem; }

.nav {
  display: none;
  gap: 6px;
  align-items: center;
}
.nav__link {
  color: var(--ink);
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}
@media (hover: hover) {
  .nav__link:hover { background: var(--brand-soft); color: var(--brand-dark); }
}
.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn--phone {
  padding: 8px 14px;
  min-height: 40px;
  font-size: .9rem;
}
.btn--phone [data-lucide] { font-size: 1.05rem; }
.btn--phone .btn__label { display: none; }

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav: full-screen overlay below header */
@media (max-width: 1023.98px) {
  .nav {
    position: fixed;
    inset: 0;
    z-index: 30; /* под header (50), чтобы шапка и бургер оставались поверх и кликабельны */
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    background: #fff;
    padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 16px) 20px calc(env(safe-area-inset-bottom, 0px) + 24px);
    transform: translateY(-100%);
    transition: transform .28s ease, visibility 0s linear .28s;
    visibility: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    display: flex;
  }
  .nav.is-open {
    transform: translateY(0);
    visibility: visible;
    transition: transform .28s ease, visibility 0s linear 0s;
  }
  .nav__link {
    padding: 14px 12px;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    font-size: 1.05rem;
  }
  .nav__link:last-child { border-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 32px 0 56px;
  background:
    radial-gradient(800px 400px at 100% 0%, var(--brand-softer), transparent 60%),
    radial-gradient(600px 300px at 0% 80%, var(--brand-soft), transparent 60%),
    #fff;
}
.hero__grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  align-items: center;
}
.hero__title {
  font-size: clamp(28px, 6.5vw, 56px);
  font-weight: 800;
  letter-spacing: -.02em;
}
.hero__lead {
  font-size: clamp(15px, 2.3vw, 18px);
  color: var(--ink-muted);
  max-width: 56ch;
}
.hero__cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0 24px;
}
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero__badges li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.hero__badges [data-lucide] {
  font-size: 1.05rem;
  color: var(--brand);
}
.hero__media {
  position: relative;
  aspect-ratio: 4 / 3;
}
.hero__sticker {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .85rem;
}
.hero__sticker-icon {
  font-size: 1.8rem;
  color: var(--brand);
  flex-shrink: 0;
}
.hero__sticker strong {
  display: block;
  font-size: 1.4rem;
  color: var(--ink);
  line-height: 1.1;
}
.hero__sticker span { color: var(--ink-muted); }

@media (min-width: 1024px) {
  .hero { padding: 56px 0 80px; }
  .hero__grid {
    grid-template-columns: 1.05fr .95fr;
    gap: 48px;
  }
  .hero__cta { flex-direction: row; }
  .nav { display: flex; }
  .btn--phone .btn__label { display: inline; }
  .burger { display: none; }
}

/* ---------- Section base ---------- */
.section {
  padding: 56px 0;
}
.section--soft { background: var(--bg-soft); }
@media (min-width: 768px) {
  .section { padding: 80px 0; }
}
.section__head {
  text-align: center;
  margin-bottom: 36px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.section__title {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -.02em;
}
.section__lead {
  color: var(--ink-muted);
  font-size: clamp(15px, 2vw, 17px);
  margin: 8px 0 0;
}

/* ---------- Images ---------- */
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.card__img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}
.why__img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* ---------- Cards (services) ---------- */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1 1 100%;
  max-width: 100%;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
@media (hover: hover) {
  .card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-soft);
  }
}
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-radius: 16px;
  margin: 20px 20px 0;
  font-size: 30px;
}
.card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__title { font-size: 1.2rem; font-weight: 700; margin: 0; }
.card__text { color: var(--ink-muted); margin: 0; font-size: .95rem; }

@media (min-width: 640px) {
  .card { flex: 1 1 calc(50% - 9px); max-width: calc(50% - 9px); }
}
@media (min-width: 1024px) {
  /* 4 карточки → сетка 2×2: 2 фото сверху, 2 иконочных снизу. Карточки шире и одинаковой ширины. */
  .cards { max-width: 980px; margin-left: auto; margin-right: auto; }
  .card { flex: 0 1 calc(50% - 9px); max-width: calc(50% - 9px); }
}

/* ---------- Calculator ---------- */
.calc {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  align-items: start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.calc__list {
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--ink-muted);
  font-size: .95rem;
}
.calc__list li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.calc__list [data-lucide] {
  font-size: 1rem;
  color: var(--brand);
  flex-shrink: 0;
}
.calc__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--brand-softer);
  border-radius: 12px;
  padding: 22px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  min-height: 48px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent);
}
.field textarea { resize: vertical; min-height: 90px; }

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .95rem;
  cursor: pointer;
  user-select: none;
}
.check input {
  width: 20px;
  height: 20px;
  accent-color: var(--brand);
}

.calc__result {
  margin-top: 8px;
  padding: 16px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.calc__result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.calc__result-row strong { font-size: 1.1rem; color: var(--brand-dark); }

@media (min-width: 768px) {
  .calc { padding: 36px; }
  .calc__form { padding: 28px; }
}
@media (min-width: 1024px) {
  .calc { grid-template-columns: 1.1fr .9fr; gap: 40px; }
}

/* ---------- Brands ---------- */
.brands {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 16px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink);
  font-size: 1rem;
  transition: transform var(--transition), color var(--transition), border-color var(--transition);
}
@media (hover: hover) {
  .brand:hover { transform: translateY(-2px); color: var(--brand-dark); border-color: var(--brand-soft); }
}
@media (min-width: 640px) { .brands { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .brands { grid-template-columns: repeat(8, 1fr); } }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  counter-reset: step;
}
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
  font-size: 1rem;
}
.step__title { font-size: 1.1rem; margin-bottom: 4px; }
.step__text { color: var(--ink-muted); margin: 0; font-size: .95rem; }

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

/* ---------- Why us ---------- */
.why {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  align-items: center;
}
.bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0;
}
.bullets li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 1rem;
}
.bullets__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 15px;
}
.bullets__check [data-lucide] {
  stroke-width: 3;
}
.why__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}
.why__stats div {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.why__stats strong {
  font-size: 1.6rem;
  color: var(--brand-dark);
  line-height: 1.1;
}
.why__stats span { color: var(--ink-muted); font-size: .85rem; }

@media (min-width: 1024px) {
  .why { grid-template-columns: .9fr 1.1fr; gap: 48px; }
  .why__stats { gap: 16px; }
}

/* ---------- Reviews ---------- */
.reviews {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.review {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.review__head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review__head strong { display: block; }
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--avatar-bg, var(--brand));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
}
.review p { margin: 0; color: var(--ink); font-size: .98rem; }
.review__stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #f59e0b;
}
.review__stars [data-lucide] {
  font-size: 18px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.5;
}

/* Carousel on mobile */
@media (max-width: 767.98px) {
  .reviews {
    grid-auto-flow: column;
    grid-auto-columns: 86%;
    grid-template-columns: unset;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    padding: 4px 0 16px;
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
    scrollbar-width: none;
  }
  .reviews::-webkit-scrollbar { display: none; }
  .review { scroll-snap-align: start; }
}
@media (min-width: 768px) { .reviews { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .reviews { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* ---------- FAQ ---------- */
.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq__item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 18px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq__item[open] {
  border-color: var(--brand-soft);
  box-shadow: var(--shadow-sm);
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 36px 16px 0;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--brand-dark);
  border-bottom: 2px solid var(--brand-dark);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--transition);
}
.faq__item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq__body {
  color: var(--ink-muted);
  padding: 0 0 16px;
  font-size: .98rem;
  line-height: 1.6;
}

/* ---------- Lead form + contacts ---------- */
.lead {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}
.contacts {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 20px;
}
.contacts li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.contacts li > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.contacts li:last-child { border-bottom: 0; }
.contacts__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 20px;
  flex-shrink: 0;
}
.contacts__icon--whatsapp {
  background: rgba(34, 197, 94, .12);
  color: var(--success-dark);
}
.contacts__icon--instagram {
  background: linear-gradient(135deg, #f9ce34, #ee2a7b 50%, #6228d7);
  color: #fff;
}
.contacts__label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-muted);
  font-weight: 600;
}
.contacts__value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}
@media (hover: hover) {
  a.contacts__value:hover { color: var(--brand-dark); }
}

.lead-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-md);
}
.lead-form__hint {
  font-size: .82rem;
  color: var(--ink-muted);
  text-align: center;
  margin: 4px 0 0;
}

@media (min-width: 768px) { .lead-form { padding: 32px; } }
@media (min-width: 1024px) {
  .lead { grid-template-columns: 1fr 1fr; gap: 48px; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: #cbd5e1;
  padding: 56px 0 0;
}
.footer .logo { color: #fff; }
.footer .logo__icon { background: rgba(255, 255, 255, .12); }
.footer .logo__dot { color: var(--brand); }
.footer__row {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  padding-bottom: 40px;
}
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 6px;
}
.footer__col a,
.footer__col span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
  transition: color var(--transition);
}
.footer__col [data-lucide] {
  font-size: 1rem;
  color: var(--brand);
  flex-shrink: 0;
}
@media (hover: hover) {
  .footer__col a:hover { color: #fff; }
}
.footer__about { color: #94a3b8; max-width: 36ch; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 20px 0;
  text-align: center;
  color: #64748b;
  font-size: .85rem;
}
@media (min-width: 768px) {
  .footer__row { grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 56px; }
}

/* ---------- Floating WhatsApp ---------- */
.fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--success) 0%, var(--success-dark) 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 10px 30px -6px rgba(34, 197, 94, .55), 0 2px 6px rgba(0, 0, 0, .15);
  transition: transform var(--transition), opacity var(--transition), box-shadow var(--transition);
  isolation: isolate;
  text-decoration: none;
}
.fab__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--success);
  z-index: -1;
  opacity: .55;
  animation: fab-pulse 2.4s cubic-bezier(.22, .8, .25, 1) infinite;
}
.fab__pulse--delay { animation-delay: 1.2s; }
.fab__icon {
  width: 1em;
  height: 1em;
  animation: fab-wiggle 4.5s ease-in-out infinite;
  transform-origin: 50% 60%;
}
@keyframes fab-pulse {
  0%   { transform: scale(1);   opacity: .55; }
  70%  { opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}
@keyframes fab-wiggle {
  0%, 75%, 100% { transform: rotate(0deg); }
  78% { transform: rotate(-14deg); }
  82% { transform: rotate(14deg); }
  85% { transform: rotate(-10deg); }
  88% { transform: rotate(8deg); }
  92% { transform: rotate(0deg); }
}
@media (hover: hover) {
  .fab:hover { transform: scale(1.08); box-shadow: 0 16px 40px -8px rgba(34, 197, 94, .65); }
  .fab:hover .fab__icon { animation-play-state: paused; transform: rotate(0deg); }
}
.fab:active { transform: scale(.96); }
.fab.is-hidden { opacity: 0; pointer-events: none; transform: translateY(20px) scale(.9); }
.fab.is-hidden .fab__pulse { animation-play-state: paused; }

@media (min-width: 768px) {
  .fab { width: 68px; height: 68px; right: 24px; bottom: 24px; font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .fab__pulse,
  .fab__icon { animation: none; }
}

/* ---------- Language switcher ---------- */
.lang-switch {
  display: inline-flex;
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang-switch__item {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 6px 12px;
  min-height: 34px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--brand-dark);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.lang-switch__item.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
@media (hover: hover) {
  .lang-switch__item:not(.is-active):hover { background: rgba(255,255,255,.6); }
}

/* Desktop variant — справа в шапке, mobile вариант — внутри drawer */
.lang-switch--in-nav { display: none; margin-top: 16px; align-self: center; }
@media (max-width: 1023.98px) {
  .lang-switch--desktop { display: none; }
  .lang-switch--in-nav { display: inline-flex; }
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Hide focus ring on mouse, keep on keyboard */
:focus { outline: none; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 40%, transparent); outline-offset: 2px; border-radius: 8px; }
