/* =========================================================
   SHINE — клининговая компания
   Дизайн-система «блоки»: карточки на светлом холсте,
   тёмные акцентные плиты, электрический синий, жёлтый спот.
   ========================================================= */

/* ---------- 1. Токены ---------- */
:root {
  /* Цвет */
  --ink:        #071026;
  --ink-2:      #0d1b33;
  --ink-3:      #16294a;
  --graphite:   #3b4a63;
  --slate:      #6b7b95;
  --canvas:     #e9eef5;
  --canvas-2:   #dfe7f1;
  --paper:      #ffffff;

  --blue:       #1257f5;
  --blue-700:   #0b3fbe;
  --blue-300:   #7ea6ff;
  --blue-100:   #dbe6ff;
  --blue-50:    #eff4ff;

  --sun:        #ffd641;
  --foam:       #b9e4ff;

  /* Радиусы */
  --r-xl: 44px;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --r-pill: 999px;

  /* Тени */
  --sh-soft:  0 2px 4px rgba(9, 30, 66, .04), 0 18px 40px -28px rgba(9, 30, 66, .35);
  --sh-card:  0 1px 2px rgba(9, 30, 66, .05), 0 30px 60px -40px rgba(9, 30, 66, .45);
  --sh-lift:  0 4px 10px rgba(9, 30, 66, .06), 0 44px 80px -44px rgba(9, 30, 66, .55);
  --sh-glass: 0 20px 50px -24px rgba(3, 12, 32, .55);
  --sh-blue:  0 14px 34px -14px rgba(18, 87, 245, .55);

  /* Сетка и ритм */
  --wrap: 1280px;
  --gap: 20px;
  --pad-block: clamp(48px, 7vw, 104px);

  /* Типографика */
  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-text: "Golos Text", -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(.22, .8, .28, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Едва заметная «воздушная» подсветка холста */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 600px at 12% -5%, rgba(18, 87, 245, .10), transparent 60%),
    radial-gradient(700px 500px at 92% 8%, rgba(185, 228, 255, .35), transparent 60%);
}

img { max-width: 100%; height: auto; display: block; }
/* <picture> — только обёртка для выбора формата, в раскладке её быть не должно */
picture { display: contents; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }

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

::selection { background: var(--blue); color: #fff; }

/* ---------- 3. Раскладка ---------- */
.wrap {
  width: min(100% - 32px, var(--wrap));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.section { padding-block: var(--pad-block); }
.section--tight { padding-block: clamp(28px, 4vw, 56px); }

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}

.card {
  background: var(--paper);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-card);
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.card--dark {
  background:
    radial-gradient(520px 320px at 85% 0%, rgba(18, 87, 245, .38), transparent 62%),
    linear-gradient(160deg, var(--ink-2), var(--ink) 62%);
  color: #fff;
  box-shadow: var(--sh-lift);
}

.card--blue {
  background: linear-gradient(155deg, #2a6bff, var(--blue) 45%, var(--blue-700));
  color: #fff;
  box-shadow: var(--sh-blue);
}

.card--sun { background: var(--sun); color: var(--ink); }

.card--flush { padding: 0; }

/* ---------- 4. Типографика ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.card--dark .eyebrow,
.card--blue .eyebrow { color: var(--foam); }

.display {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.02em;
  line-height: .96;
  margin: 0;
  text-wrap: balance;
  /* Unbounded широкий, а в русском встречаются слова вроде «поддерживающая» —
     разрешаем перенос, он срабатывает только когда слово иначе не влезает */
  -webkit-hyphens: auto;
  hyphens: auto;
}

.d1 { font-size: clamp(38px, 6vw, 76px); }
.d2 { font-size: clamp(30px, 4.2vw, 52px); }
.d3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.02; }
.d4 { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.12; letter-spacing: -.01em; }

.display em {
  font-style: normal;
  color: var(--blue);
}
.card--dark .display em { color: var(--sun); }

.lead {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--graphite);
  max-width: 52ch;
  margin: 0;
}
.card--dark .lead,
.card--blue .lead { color: rgba(255, 255, 255, .74); }

.muted { color: var(--slate); }
.card--dark .muted { color: rgba(255, 255, 255, .6); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}
.section-head__text { max-width: 62ch; display: grid; gap: 14px; }

/* ---------- 5. Кнопки, чипы ---------- */
.btn {
  --btn-bg: var(--blue);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
  box-shadow: var(--sh-blue);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(18, 87, 245, .65); }
.btn:active { transform: translateY(0); }

.btn--sun { --btn-bg: var(--sun); --btn-fg: var(--ink); box-shadow: 0 14px 34px -14px rgba(255, 214, 65, .8); }
.btn--sun:hover { box-shadow: 0 18px 40px -14px rgba(255, 214, 65, .9); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  box-shadow: inset 0 0 0 1.5px rgba(9, 30, 66, .14);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px rgba(9, 30, 66, .3); }

.btn--glass {
  --btn-bg: rgba(255, 255, 255, .1);
  --btn-fg: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22);
  backdrop-filter: blur(8px);
}
.btn--glass:hover { --btn-bg: rgba(255, 255, 255, .18); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .4); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}
.chip--sun { background: var(--sun); color: var(--ink); }
.chip--dark { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }

.tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ---------- 6. Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding-top: 16px;
  padding-bottom: 4px;
  transition: padding-top .3s var(--ease);
}
.header.is-stuck { padding-top: 10px; }

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding: 10px 10px 10px 20px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: var(--sh-soft);
  transition: box-shadow .3s var(--ease), background .3s;
}
.header.is-stuck .nav { box-shadow: var(--sh-card); background: rgba(255, 255, 255, .92); }

.logo {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.logo img { width: 26px; height: 26px; }
.logo span sup {
  font-family: var(--font-text);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--blue);
  margin-left: 4px;
  vertical-align: super;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.nav__links a {
  display: block;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 500;
  color: var(--graphite);
  transition: background .2s, color .2s;
}
.nav__links a:hover { background: var(--blue-50); color: var(--blue-700); }

.nav__phone {
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  padding: 9px 4px;
  flex: none;
}

.nav__cta { flex: none; }

/* телефон и кнопка, которые переезжают внутрь выпадающего меню */
.nav__extra { display: none; }
.nav__links .nav__extra-btn {
  width: 100%;
  margin-top: 6px;
  padding: 14px 20px;
  background: var(--blue);
  color: #fff;
  text-align: center;
  justify-content: center;
}

.burger {
  display: none;
  flex: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  cursor: pointer;
  position: relative;
}
.burger i {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform .3s var(--ease), opacity .2s;
}
.burger i:nth-child(1) { top: 18px; }
.burger i:nth-child(2) { top: 23px; }
.burger i:nth-child(3) { top: 28px; }
.burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- 7. Герой ---------- */
.hero { padding-top: clamp(90px, 11vw, 140px); padding-bottom: clamp(24px, 3vw, 40px); }

.hero__card {
  position: relative;
  border-radius: var(--r-xl);
  padding: clamp(32px, 4vw, 56px);
  color: #fff;
  background:
    radial-gradient(760px 520px at 78% 110%, rgba(18, 87, 245, .55), transparent 62%),
    radial-gradient(560px 420px at 8% -10%, rgba(122, 168, 255, .28), transparent 60%),
    linear-gradient(165deg, #10203c, var(--ink) 58%);
  box-shadow: var(--sh-lift);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: end;
  isolation: isolate;
}

/* пузырьки пены — амбиентный фон тёмных плит */
.bubbles { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; z-index: 0; pointer-events: none; }
.bubbles i {
  position: absolute;
  border-radius: 50%;
  /* мыльный пузырь: прозрачная сердцевина, светящийся ободок, блик */
  background: radial-gradient(circle at 30% 26%, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 34%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .10),
    inset 0 0 18px rgba(185, 228, 255, .12);
  animation: drift 18s var(--ease) infinite;
}
.bubbles i:nth-child(1) { width: 240px; height: 240px; right: 30%; top: -80px;   animation-duration: 22s; }
.bubbles i:nth-child(2) { width: 96px;  height: 96px;  left: -40px; bottom: -34px; animation-delay: -6s; }
.bubbles i:nth-child(3) { width: 44px;  height: 44px;  left: 7%;    top: 12%;      animation-delay: -11s; animation-duration: 15s; }
.bubbles i:nth-child(4) { width: 150px; height: 150px; right: -50px; top: 24%;     animation-delay: -3s; }
.bubbles i:nth-child(5) { width: 30px;  height: 30px;  right: 26%;  bottom: 12%;   animation-delay: -9s; animation-duration: 13s; }

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(14px, -26px, 0) scale(1.06); }
}

.hero__copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 22px;
  padding-bottom: clamp(8px, 2vw, 28px);
}

.hero__title { color: #fff; }
.hero__title em { color: var(--sun); }

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.hero__marks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.hero__figure {
  position: relative;
  z-index: 1;
  align-self: end;
  min-height: 420px;
}

.hero__photo {
  position: relative;
  z-index: 1;
  display: block;
  width: clamp(280px, 34vw, 460px);
  margin: 0 auto;
  margin-top: clamp(-190px, -14vw, -110px);
  margin-bottom: calc(-1 * clamp(32px, 4vw, 56px));
  filter: drop-shadow(0 40px 60px rgba(3, 12, 32, .45));
}

/* стеклянные подкарточки вокруг героини */
.glass {
  position: absolute;
  z-index: 2;
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: rgba(8, 18, 40, .58);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), var(--sh-glass);
  color: #fff;
}
.glass strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1; }
.glass small { display: block; margin-top: 6px; font-size: 12px; color: rgba(255, 255, 255, .72); }

.glass--rating { left: -18px; top: 12%; }
.glass--rating .stars { color: var(--sun); font-size: 13px; letter-spacing: 2px; }

.glass--price {
  left: -2%;
  bottom: 5%;
  background: var(--sun);
  color: var(--ink);
  box-shadow: 0 20px 40px -18px rgba(255, 214, 65, .7);
}
.glass--price small { color: rgba(7, 16, 38, .62); }

/* ---------- 8. Полоса цифр ---------- */
.stats { grid-column: span 12; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }

.stat {
  background: var(--paper);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-soft);
  padding: 26px 24px;
  display: grid;
  gap: 6px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--sh-card); }
.stat__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -.03em;
  background: linear-gradient(150deg, #4d8bff, var(--blue-700));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label { font-size: 14px; color: var(--slate); line-height: 1.35; }

/* ---------- 9. Услуги — бенто ---------- */
.svc { border-radius: var(--r-lg); overflow: hidden; position: relative; display: flex; }
.svc__inner { position: relative; z-index: 2; padding: 26px; display: flex; flex-direction: column; gap: 12px; width: 100%; }
.svc__inner .d3, .svc__inner .d4 { margin-top: auto; }
.svc p { margin: 0; font-size: 14.5px; line-height: 1.5; }

.svc--photo { min-height: 300px; color: #fff; }
.svc--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(4, 12, 28, .93) 12%, rgba(4, 12, 28, .5) 55%, rgba(4, 12, 28, .12));
}
.svc__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.svc--photo:hover .svc__bg { transform: scale(1.06); }

.svc--paper { background: var(--paper); box-shadow: var(--sh-card); min-height: 220px; }
.svc--paper p { color: var(--graphite); }

.svc__icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--blue-50);
  color: var(--blue);
  flex: none;
}
.card--dark .svc__icon, .svc--photo .svc__icon { background: rgba(255, 255, 255, .12); color: #fff; }

.svc__price {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  margin-top: 2px;
}
.svc--photo .svc__price,
.card--dark .svc__price { color: var(--sun); }
.card--blue .svc__price { color: #fff; }

.svc__arrow {
  position: absolute;
  z-index: 3;
  top: 22px;
  right: 22px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
  color: #fff;
  transition: transform .3s var(--ease), background .3s;
}
.svc--paper .svc__arrow { background: var(--blue-50); color: var(--blue); box-shadow: none; }
.svc:hover .svc__arrow { transform: rotate(45deg); background: var(--sun); color: var(--ink); box-shadow: none; }

/* ---------- 10. Процесс — шкала времени ---------- */
.flow { display: grid; gap: 14px; margin-top: 34px; }
.flow__row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: clamp(16px, 3vw, 40px);
  align-items: start;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.flow__row:last-child { border-bottom: 1px solid rgba(255, 255, 255, .12); }

.flow__time {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
  color: var(--sun);
  padding-top: 3px;
}
.flow__body { display: grid; gap: 8px; }
.flow__body h3 { margin: 0; }
.flow__body p { margin: 0; font-size: 15px; color: rgba(255, 255, 255, .68); max-width: 64ch; }

/* ---------- 11. Кейс: до/после ---------- */
.ba {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--sh-card);
  cursor: ew-resize;
  user-select: none;
  /* горизонтальный свайп двигает ползунок, вертикальный по-прежнему листает страницу */
  touch-action: pan-y;
  background: var(--ink);
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__after { clip-path: inset(0 0 0 var(--pos, 50%)); }

.ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  width: 2px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(3, 12, 32, .2);
  z-index: 3;
}
.ba__handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%231257f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6 4 12l5 6M15 6l5 6-5 6'/%3E%3C/svg%3E") center / 22px no-repeat;
  box-shadow: 0 10px 24px -8px rgba(3, 12, 32, .5);
}
.ba__label {
  position: absolute;
  z-index: 2;
  bottom: 16px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: rgba(7, 16, 38, .62);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ba__label--before { left: 16px; }
.ba__label--after { right: 16px; background: var(--sun); color: var(--ink); }

.ba__range {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

/* ---------- 12. Тарифы ---------- */
.plan { display: flex; flex-direction: column; gap: 18px; }
.plan .display { font-size: clamp(19px, 1.8vw, 25px); line-height: 1.04; }
.plan__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1;
  letter-spacing: -.03em;
}
.plan__price sup { font-size: .42em; font-weight: 600; vertical-align: super; margin-right: 2px; opacity: .6; }
.plan__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; font-size: 15px; }
.plan__list li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.plan__list li::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%231257f5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 7.5 3 3 5-6'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.card--dark .plan__list li::before, .card--blue .plan__list li::before {
  background: rgba(255, 255, 255, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 7.5 3 3 5-6'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.plan .btn { margin-top: auto; width: 100%; }

.plan__flag {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--sun);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ---------- 13. Отзывы — бегущая лента ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track { display: flex; gap: var(--gap); width: max-content; animation: slide 46s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }

.review {
  width: 360px;
  flex: none;
  background: var(--paper);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-soft);
  padding: 26px;
  display: grid;
  gap: 14px;
  align-content: start;
}
.review__stars { color: var(--sun); font-size: 14px; letter-spacing: 3px; }
.review p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--graphite); }
.review__who { display: flex; align-items: center; gap: 12px; margin-top: 2px; }
.review__ava {
  width: 40px; height: 40px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--blue-300), var(--blue));
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}
.review__name { font-weight: 600; font-size: 15px; line-height: 1.2; }
.review__meta { font-size: 12.5px; color: var(--slate); }

/* ---------- 14. Финальный блок и форма ---------- */
.cta {
  border-radius: var(--r-xl);
  padding: clamp(32px, 4vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.form { display: grid; gap: 12px; }
.field { display: grid; gap: 7px; }
.field > span { font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .68); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 15px;
  transition: box-shadow .2s, background .2s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, .38); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, .16);
  box-shadow: inset 0 0 0 1.5px var(--sun);
}
.field select option { color: var(--ink); }
.form__note { font-size: 12.5px; color: rgba(255, 255, 255, .5); margin: 2px 0 0; }
.form__note a { text-decoration: underline; text-underline-offset: 2px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- 15. Подвал ---------- */
.footer { padding-bottom: 28px; }
.footer__card {
  border-radius: var(--r-xl);
  padding: clamp(28px, 3.4vw, 44px);
  color: #fff;
  background: linear-gradient(165deg, var(--ink-2), var(--ink) 70%);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
}
.footer__col { display: grid; gap: 12px; align-content: start; }
.footer__col h4 {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .42);
}
.footer__col a { font-size: 15px; color: rgba(255, 255, 255, .78); transition: color .2s; }
.footer__col a:hover { color: var(--sun); }
.footer__bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 13px;
  color: rgba(255, 255, 255, .45);
}

/* ---------- 16. Утилиты, появление ----------
   Базовый вариант — class="reveal": блок всплывает снизу.
   Направление и характер меняются атрибутом, задержка — переменной:

     <div class="reveal">…</div>                        снизу вверх
     <div class="reveal" data-reveal="fade">…</div>      только прозрачность
     <div class="reveal" data-reveal="left">…</div>      выезжает слева
     <div class="reveal" data-reveal="right">…</div>     справа
     <div class="reveal" data-reveal="scale">…</div>     чуть подрастает
     <div class="reveal" style="--delay:.15s">…</div>    с задержкой

   Соседние карточки удобно пускать лесенкой — см. .stagger ниже.
   Всё выключается системной настройкой «уменьшить движение».         */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity .7s var(--ease) var(--delay, 0s),
    transform .7s var(--ease) var(--delay, 0s);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

.reveal[data-reveal="fade"]  { transform: none; }
.reveal[data-reveal="left"]  { transform: translateX(-32px); }
.reveal[data-reveal="right"] { transform: translateX(32px); }
.reveal[data-reveal="scale"] { transform: scale(.94); }
.reveal[data-reveal="up-lg"] { transform: translateY(48px); }

/* Лесенка: дети появляются по очереди, шаг задаётся --step */
.stagger > * { transition-delay: calc(var(--step, .08s) * var(--i, 0)); }

/* Плавный «выдох» у элемента под курсором — общий приём для плиток */
.lift { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.lift:hover { transform: translateY(-4px); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Спаны бенто */
.s3 { grid-column: span 3; }
.s4 { grid-column: span 4; }
.s5 { grid-column: span 5; }
.s6 { grid-column: span 6; }
.s7 { grid-column: span 7; }
.s8 { grid-column: span 8; }
.s12 { grid-column: span 12; }
.r2 { grid-row: span 2; }

/* ---------- 17. Адаптив ----------
   1180 — узкий десктоп: меню в бургер
    980 — планшет: сетка в две колонки, форма под текстом
    760 — планшет портрет: герой в одну колонку
    600 — телефон: всё в одну колонку, телефон и кнопка уезжают в меню
    380 — узкий телефон
*/

/* Ничто не должно расширять документ по горизонтали */
.bento > *, .stats > *, .nav > *, .flow__row > * { min-width: 0; }

@media (max-width: 1180px) {
  .nav__links { display: none; }
  .burger { display: block; }

  .nav.is-open { border-radius: var(--r-lg); flex-wrap: wrap; }
  .nav.is-open .nav__links {
    display: grid;
    order: 4;
    width: 100%;
    gap: 2px;
    padding: 8px 0 6px;
    margin: 6px 0 0;
    border-top: 1px solid rgba(9, 30, 66, .08);
  }
  .nav__links a { padding: 12px 14px; }
  /* ссылки скрыты — правую группу прижимаем к краю вручную */
  .nav > .nav__phone { margin-left: auto; }

  .hero__photo { width: clamp(260px, 32vw, 400px); }
  .r2 { grid-row: auto; }
  .s3 { grid-column: span 6; }
}

/* ---- планшет: 761–980 ---- */
@media (max-width: 980px) {
  :root { --pad-block: clamp(44px, 6vw, 76px); }

  .nav__phone { display: none; }
  .nav > .nav__cta { margin-left: auto; }
  .nav.is-open .nav__extra--phone { display: block; }

  .hero { padding-top: clamp(80px, 10vw, 120px); }
  .hero__card { gap: 18px; }
  /* фигуру больше не растягиваем — героиня встаёт на нижний край плиты */
  .hero__figure { min-height: 0; }
  .hero__photo {
    width: clamp(250px, 42vw, 360px);
    margin-top: clamp(-150px, -13vw, -80px);
  }
  .glass { padding: 12px 15px; }
  .glass strong { font-size: 18px; }
  /* на планшете уводим карточки от лица — обе крепим к низу */
  .glass--rating { left: -14px; top: auto; bottom: 40%; }
  .glass--price { left: -6%; bottom: 3%; }

  .stats { grid-template-columns: 1fr 1fr; }
  .s3, .s4, .s5 { grid-column: span 6; }
  .s7, .s8 { grid-column: span 12; }

  .cta { grid-template-columns: 1fr; }
  .footer__card { grid-template-columns: 1fr 1fr; }
  .section-head { margin-bottom: 26px; }
}

/* три тарифа рядом держатся до 760 — ниже ломаются в столбец */
@media (min-width: 761px) and (max-width: 980px) {
  /* в три колонки заголовки тарифов уже не помещаются: два сверху, третий во всю ширину */
  .plan.s4 { grid-column: span 6; }
  .plan.s4:nth-of-type(3) { grid-column: span 12; }
  .plan.s4:nth-of-type(3) .plan__list { grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .plan.s4:nth-of-type(3) .btn { max-width: 300px; }
  /* в узкой колонке метка «чаще всего берут» встаёт в поток, а не в угол */
  .plan__flag { position: static; align-self: flex-start; }
}
@media (max-width: 760px) {
  .plan.s4 { grid-column: span 12; }
}

/* ---- планшет портрет и ниже: герой в колонку ---- */
@media (max-width: 760px) {
  .hero { padding-top: clamp(76px, 16vw, 104px); }
  .hero__card { grid-template-columns: 1fr; align-items: stretch; }
  .hero__figure { min-height: 0; order: -1; }
  .hero__photo {
    width: min(72%, 300px);
    margin-top: clamp(-104px, -18vw, -64px);
    margin-bottom: 0;
  }
  .hero__copy { padding-bottom: 0; gap: 18px; }

  /* карточки разводим по разным углам, чтобы не наваливались друг на друга */
  .glass--rating { left: -10px; top: 2%; bottom: auto; }
  .glass--price { left: auto; right: -10px; bottom: 0; }

  .flow__row { grid-template-columns: 1fr; gap: 10px; padding: 20px 0; }
  .flow__time {
    justify-self: start;
    padding: 5px 12px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .1);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
    font-size: 13px;
  }
}

/* ---- телефон ---- */
@media (max-width: 600px) {
  body { font-size: 16px; }
  :root { --r-xl: 28px; --r-lg: 20px; --gap: 12px; }

  .wrap { width: min(100% - 24px, var(--wrap)); }

  /* в узкой полосе остаются только логотип и бургер */
  .nav { gap: 10px; padding: 8px 8px 8px 16px; }
  .nav__cta { display: none; }
  .burger { margin-left: auto; }
  .nav.is-open .nav__extra { display: block; }
  .nav__extra a { font-weight: 600; }

  .s3, .s4, .s5, .s6 { grid-column: span 12; }
  .footer__card { grid-template-columns: 1fr; gap: 26px; }
  .form__row { grid-template-columns: 1fr; }
  .review { width: 282px; }

  .hero__card { padding: 24px 20px 26px; }
  .hero__cta { display: grid; gap: 10px; }
  .hero__cta .btn { width: 100%; }
  .glass { padding: 10px 13px; border-radius: var(--r-sm); }
  .glass strong { font-size: 16px; }
  .glass small { margin-top: 4px; font-size: 11px; max-width: 15ch; }
  .glass--rating .stars { font-size: 11px; }

  .card { padding: 22px 20px; }
  .svc__inner { padding: 22px 20px; }
  .svc--photo { min-height: 260px; }
  .svc__arrow { top: 16px; right: 16px; width: 36px; height: 36px; }

  .section-head { gap: 16px; margin-bottom: 22px; }
  .section-head .btn { width: 100%; }

  .stat { padding: 20px 18px; }
  .ba__handle::after { width: 44px; height: 44px; background-size: 19px; }

  /* крупные пузыри на маленьком экране только мешают */
  .bubbles i:nth-child(1), .bubbles i:nth-child(4) { display: none; }

  .d2 { font-size: 28px; }
  .d3 { font-size: 21px; }
}

@media (max-width: 380px) {
  .d1 { font-size: 33px; }
  .d2 { font-size: 26px; }
  .stats { grid-template-columns: 1fr; }
  .hero__marks { gap: 6px; }
  .chip { padding: 7px 11px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
