/* ══════════════════════════════════════════════════════════════════════
   Стартовая страница (лендинг) — app/views/home/index.html.erb
   Propshaft подключает все *.css из app/assets на каждой странице, поэтому
   всё, кроме @font-face, — строго под .lp / .lp-body и с префиксом lp-.
   Макет «cheykod-presentation» 1440×900: контейнер 1056px (поля 192px).
   Брейкпоинты: <600 — телефон, <900 — одна колонка, ≥900 — две колонки,
   ≥1200 — как в макете, ≥1680×940 и ≥2200×1240 — крупнее.
   ══════════════════════════════════════════════════════════════════════ */

/* Inter со своего сервера (вместо Google Fonts): переменный, вес 100–900 */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/inter-cyrillic-wght-normal-abad5a4f.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/inter-latin-wght-normal-5e6b0c47.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.lp-body { background: #fff; }

.lp {
  --ink: #2e2e2e;
  --ink-soft: rgba(46, 46, 46, .7);
  --blue: #1fa0fa;
  --blue-dark: #0276c7;
  --dark: #1b1b1b;
  --gutter: clamp(24px, 9.5vw, 192px);
  --container: 1056px;

  /* размеры, которые растут на больших экранах (см. медиазапросы в конце) */
  --title: clamp(36px, 2.4vw + 17.4px, 52px);
  --lead: 21px;
  --lead-lh: 28px;
  --btn-fs: 16px;
  --btn-pad: 16px 32px;
  --mark: 40px;
  --brand-fs: 22px;
  --section-fs: 16px;
  --nav-h: 46px;
  --nav-fs: 16px;
  --feat-icon: 56px;
  --feat-img: 24px;
  --feat-fs: 16px;
  --feat-lh: 24px;
  /* ширина иллюстрации: по ширине и по высоте окна, чтобы первый экран помещался */
  --mock-w: clamp(340px, min(36vw, 64vh), 520px);

  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: clip;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

.lp *,
.lp *::before,
.lp *::after { box-sizing: border-box; }

.lp :where(h1, p, ul, li) { margin: 0; padding: 0; }
.lp :where(ul) { list-style: none; }
.lp :where(img, svg) { display: block; }

.lp a { color: inherit; text-decoration: none; }
.lp a:focus-visible {
  outline: 3px solid rgba(31, 160, 250, .55);
  outline-offset: 3px;
  border-radius: 8px;
}

.lp-container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* ── Верхняя (белая) часть: шапка + первый экран ─────────────────────── */
.lp-top {
  position: relative;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}

/* ── Капли ───────────────────────────────────────────────────────────────
   На десктопе координаты и размеры — в vw от макета 1440 (как раньше масштаб
   всего полотна), так капли не наезжают на шапку на любой ширине. */
.lp-drops { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.lp-drop {
  position: absolute;
  width: auto;
  max-width: none;
  user-select: none;
  pointer-events: none;
  will-change: transform;
}
.lp-drop--tl { left: -3.18vw; top: -.66vw; height: 9.72vw; rotate: 17.27deg; animation: lp-float-tl 6.2s ease-in-out infinite; }
.lp-drop--tr { right: -4.98vw; top: 2.34vw; height: 10.97vw; rotate: -30deg; animation: lp-float-tr 7.1s ease-in-out infinite; }
.lp-drop--bl { left: -11.8vw; top: 29.69vw; height: 18.82vw; rotate: 14deg; animation: lp-float-bl 8s ease-in-out infinite; }
.lp-drop--br { right: -2.63vw; bottom: -2.95vw; height: 9.72vw; rotate: 17.27deg; animation: lp-float-br 6.6s ease-in-out infinite; }

@keyframes lp-float-tl { 0%, 100% { transform: translate(0, 0); } 30% { transform: translate(6px, -18px); } 65% { transform: translate(-4px, -8px); } }
@keyframes lp-float-mid { 0%, 100% { transform: translate(0, 0); } 40% { transform: translate(-8px, -22px); } 75% { transform: translate(5px, -10px); } }
@keyframes lp-float-tr { 0%, 100% { transform: translate(0, 0); } 35% { transform: translate(10px, -16px); } 70% { transform: translate(4px, -24px); } }
@keyframes lp-float-bl { 0%, 100% { transform: translate(0, 0); } 45% { transform: translate(-6px, -20px); } 80% { transform: translate(8px, -8px); } }
@keyframes lp-float-br { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(7px, -14px); } }

/* ── Шапка ───────────────────────────────────────────────────────────── */
.lp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 32px;
}

.lp-brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.lp-brand__mark { width: var(--mark); height: var(--mark); flex-shrink: 0; }
.lp-brand__name { font-size: var(--brand-fs); font-weight: 700; white-space: nowrap; }
.lp-brand__section {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  font-size: var(--section-fs);
  color: rgba(46, 46, 46, .55);
  white-space: nowrap;
}
.lp-brand__section::before {
  content: "";
  width: 1px;
  height: 24px;
  margin-left: 12px;
  background: rgba(46, 46, 46, .4);
}

.lp-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  height: var(--nav-h);
  padding: 0 20px 0 16px;
  border: 2px solid rgba(46, 46, 46, .1);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 .6px .6px -1.25px rgba(171, 171, 171, .18), 0 2.3px 2.3px -2.5px rgba(171, 171, 171, .16), 0 10px 10px -3.75px rgba(171, 171, 171, .06);
  font-size: var(--nav-fs);
  font-weight: 600;
  white-space: nowrap;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.lp-nav-btn img { width: 1.25em; height: 1.25em; }
.lp a.lp-nav-btn:focus-visible { border-radius: 999px; }

/* ── Первый экран ────────────────────────────────────────────────────── */
.lp-main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 10px 72px;
}

.lp-hero { display: flex; align-items: center; gap: 32px; }
.lp-hero__text {
  flex: 1 1 0;
  min-width: 0;
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.lp-title {
  font-size: var(--title);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: .02em;
  color: var(--ink);
  text-wrap: balance;
}
.lp-title span { display: inline-block; }

.lp-lead {
  margin-top: 28px;
  max-width: 34em;
  font-size: var(--lead);
  line-height: var(--lead-lh);
  color: var(--ink-soft);
}

.lp-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: var(--btn-pad);
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--blue) 13%, var(--blue-dark) 109%);
  box-shadow: 0 4px 20px rgba(2, 118, 199, .35);
  color: #fff;
  font-size: var(--btn-fs);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.lp a.lp-btn { color: #fff; }
.lp a.lp-btn:focus-visible { border-radius: 999px; }

/* Иллюстрация: блок шириной --mock-w, «пиксель макета» --u = --mock-w / 612.
   В макете бокс 520px выступает за правый край контейнера на 72px. */
.lp-visual {
  position: relative;
  flex: 0 0 auto;
  width: var(--mock-w);
  margin-right: calc(var(--mock-w) * -.1385);
  --u: calc(var(--mock-w) / 612);
}
.lp-drop--mid {
  left: calc(-51 * var(--u));
  top: calc(-14 * var(--u));
  height: calc(122 * var(--u));
  rotate: -15deg;
  z-index: 0;
  animation: lp-float-mid 5.8s ease-in-out infinite;
}

/* ── Преимущества ────────────────────────────────────────────────────── */
.lp-features {
  position: relative;
  margin-top: 56px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.lp-feature { display: flex; align-items: center; gap: 16px; }
.lp-feature__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: var(--feat-icon);
  height: var(--feat-icon);
  border-radius: calc(var(--feat-icon) * .286);
  background: rgba(31, 160, 250, .15);
  transition: transform .22s, background .22s, box-shadow .22s;
}
.lp-feature__icon img { width: var(--feat-img); height: var(--feat-img); }
.lp-feature__text { font-size: var(--feat-fs); line-height: var(--feat-lh); color: var(--ink-soft); }

/* ── Подвал ──────────────────────────────────────────────────────────── */
.lp-footer { background: var(--dark); color: #fff; }
.lp-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  padding-block: 40px;
}
.lp-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.lp-footer__logo { height: 28px; width: auto; }
.lp-footer__copy { font-size: 12px; font-weight: 500; line-height: 16px; color: rgba(255, 255, 255, .5); }
.lp-footer__links {
  display: grid;
  grid-template-rows: auto auto;
  grid-auto-flow: column;
  gap: 10px 40px;
}
.lp .lp-footer__links a {
  font-size: 12px;
  line-height: 16px;
  color: rgba(255, 255, 255, .8);
  white-space: nowrap;
  transition: color .2s;
}

/* ── Наведение — только там, где есть мышь ───────────────────────────── */
@media (hover: hover) {
  .lp-nav-btn:hover { border-color: rgba(31, 160, 250, .45); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(31, 160, 250, .15); }
  .lp-btn:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 10px 32px rgba(2, 118, 199, .5); filter: brightness(1.06); }
  .lp-feature:hover .lp-feature__icon { transform: translateY(-5px) scale(1.1); background: rgba(31, 160, 250, .25); box-shadow: 0 6px 20px rgba(31, 160, 250, .22); }
  .lp .lp-footer__links a:hover { color: #fff; }
}

/* Нажатие — после :hover, иначе hover-трансформация его перекрывает */
.lp-btn:active { transform: scale(.97); transition-duration: .08s; }

/* ══ Веер «web-карточка + телефон» (партиал home/_lp_mockup) ═════════════
   Все размеры — пиксели макета, умноженные на --u. */
.lp-fan {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(584 * var(--u));
  height: calc(500 * var(--u));
  margin: calc(20 * var(--u)) auto;
  line-height: 1.25;
  letter-spacing: normal;
  text-align: left;
}
.lp-fan svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.lp-card {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: calc(356 * var(--u));
  margin-right: calc(-10 * var(--u));
  padding: calc(24 * var(--u));
  border-radius: calc(28 * var(--u));
  background: #fff;
  box-shadow: 0 calc(44 * var(--u)) calc(90 * var(--u)) calc(-28 * var(--u)) rgba(20, 60, 120, .4);
  rotate: -5deg;
  color: var(--ink);
}
.lp-card__top { display: flex; align-items: center; justify-content: space-between; }
.lp-card__brand { display: flex; align-items: center; gap: calc(8 * var(--u)); font-size: calc(15 * var(--u)); font-weight: 700; }
.lp-card__logo { width: calc(22 * var(--u)); height: calc(22 * var(--u)); }
.lp-card__badge {
  padding: calc(5 * var(--u)) calc(10 * var(--u));
  border-radius: calc(8 * var(--u));
  background: rgba(31, 160, 250, .1);
  color: var(--blue);
  font-size: calc(11 * var(--u));
  font-weight: 600;
  letter-spacing: .04em;
}
.lp-card__qr {
  width: calc(170 * var(--u));
  height: calc(170 * var(--u));
  margin: calc(20 * var(--u)) auto calc(18 * var(--u));
  padding: calc(12 * var(--u));
  border: calc(2 * var(--u)) solid #eef0f3;
  border-radius: calc(16 * var(--u));
  background: #fff;
}
.lp-card__qr img { width: 100%; height: 100%; max-width: none; }
.lp-card__name { font-size: calc(20 * var(--u)); font-weight: 700; letter-spacing: -.01em; }
.lp-card__rows { display: flex; flex-direction: column; gap: calc(11 * var(--u)); margin-top: calc(14 * var(--u)); }
.lp-card__rows li { display: flex; align-items: center; gap: calc(11 * var(--u)); font-size: calc(15 * var(--u)); font-weight: 500; }
.lp-card__rows .lp-card__link { color: var(--blue); }
.lp-card__ico {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: calc(32 * var(--u));
  height: calc(32 * var(--u));
  border-radius: calc(9 * var(--u));
  background: #f4f5f7;
  color: #6b7280;
}
.lp-card__ico svg { width: calc(16 * var(--u)); height: calc(16 * var(--u)); }

.lp-phone {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: calc(238 * var(--u));
  height: calc(500 * var(--u));
  padding: calc(9 * var(--u));
  border-radius: calc(44 * var(--u));
  background: #0f1115;
  box-shadow:
    inset 0 0 calc(3 * var(--u)) calc(1 * var(--u)) rgba(0, 0, 0, .55),
    inset 0 0 calc(8 * var(--u)) calc(2 * var(--u)) rgba(0, 0, 0, .35),
    0 calc(44 * var(--u)) calc(90 * var(--u)) calc(-30 * var(--u)) rgba(15, 17, 21, .6),
    0 calc(8 * var(--u)) calc(24 * var(--u)) calc(-12 * var(--u)) rgba(15, 17, 21, .5);
  rotate: 8deg;
  color: var(--ink);
}
.lp-phone__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: calc(35 * var(--u));
  background:
    radial-gradient(120% 55% at 82% 0%, rgba(31, 160, 250, .26), transparent 60%),
    radial-gradient(110% 55% at 0% 100%, rgba(31, 160, 250, .16), transparent 58%),
    linear-gradient(180deg, #eef5fd, #f5f9fc);
}
.lp-phone__island {
  position: absolute;
  z-index: 5;
  top: calc(8 * var(--u));
  left: 50%;
  width: calc(80 * var(--u));
  height: calc(20 * var(--u));
  border-radius: calc(12 * var(--u));
  background: #000;
  translate: -50% 0;
}
.lp-phone__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(9 * var(--u)) calc(20 * var(--u)) calc(2 * var(--u));
  font-size: calc(11 * var(--u));
  font-weight: 600;
}
.lp-phone__status-icons { display: flex; align-items: center; gap: calc(5 * var(--u)); }
.lp-fan .lp-phone__signal { width: calc(16 * var(--u)); height: calc(11 * var(--u)); fill: currentColor; stroke: none; }
.lp-fan .lp-phone__wifi { width: calc(15 * var(--u)); height: calc(11 * var(--u)); stroke-width: 1.4; }
.lp-fan .lp-phone__wifi circle { fill: currentColor; stroke: none; }
.lp-fan .lp-phone__battery { width: calc(24 * var(--u)); height: calc(12 * var(--u)); fill: currentColor; stroke: none; }
.lp-fan .lp-phone__battery rect[fill="none"] { stroke: currentColor; stroke-width: 1; }

.lp-phone__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(6 * var(--u)) calc(14 * var(--u)) calc(8 * var(--u));
  font-size: calc(14 * var(--u));
  font-weight: 600;
}
.lp-fan .lp-phone__back { width: calc(22 * var(--u)); height: calc(22 * var(--u)); color: var(--blue); stroke-width: 2.2; }
.lp-phone__share { width: calc(19 * var(--u)); height: calc(19 * var(--u)); }

.lp-phone__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding: calc(4 * var(--u)) calc(16 * var(--u)) 0;
}
.lp-phone__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(54 * var(--u));
  height: calc(54 * var(--u));
  border-radius: calc(16 * var(--u));
  background: linear-gradient(145deg, #34aaff, #0a73be);
  box-shadow: 0 calc(10 * var(--u)) calc(20 * var(--u)) calc(-8 * var(--u)) rgba(10, 115, 190, .55);
  color: #fff;
}
.lp-fan .lp-phone__avatar svg { width: calc(27 * var(--u)); height: calc(27 * var(--u)); stroke-width: 1.8; }
.lp-phone__name { margin-top: calc(11 * var(--u)); font-size: calc(16 * var(--u)); font-weight: 700; }
.lp-phone__phone { margin-top: calc(4 * var(--u)); font-size: calc(12 * var(--u)); font-weight: 500; color: rgba(46, 46, 46, .5); }
.lp-phone__addr {
  display: flex;
  align-items: center;
  gap: calc(4 * var(--u));
  margin-top: calc(5 * var(--u));
  font-size: calc(12 * var(--u));
  font-weight: 500;
  color: var(--blue);
}
.lp-phone__addr svg { width: calc(13 * var(--u)); height: calc(13 * var(--u)); }
.lp-phone__add {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: calc(34 * var(--u));
  margin-top: calc(13 * var(--u));
  border-radius: calc(12 * var(--u));
  background: rgba(31, 160, 250, .1);
  color: var(--blue);
  font-size: calc(13 * var(--u));
  font-weight: 600;
}
.lp-phone__tabs { display: flex; gap: calc(22 * var(--u)); width: 100%; margin-top: calc(15 * var(--u)); }
.lp-phone__tabs > span {
  position: relative;
  padding-bottom: calc(7 * var(--u));
  font-size: calc(13 * var(--u));
  font-weight: 700;
  color: rgba(46, 46, 46, .4);
}
.lp-phone__tabs > .is-active { color: var(--ink); }
.lp-phone__tabs > .is-active::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: calc(2 * var(--u));
  border-radius: calc(2 * var(--u));
  background: var(--blue);
}
.lp-phone__links { display: flex; flex-direction: column; width: 100%; }
.lp-phone__links > span {
  display: flex;
  align-items: center;
  gap: calc(11 * var(--u));
  padding: calc(10 * var(--u)) 0;
  border-bottom: calc(1 * var(--u)) solid #e4ecf4;
  font-size: calc(12.5 * var(--u));
  font-weight: 500;
}
.lp-phone__links > span:last-child { border-bottom: 0; }
.lp-phone__links svg { width: calc(16 * var(--u)); height: calc(16 * var(--u)); color: #6b7280; }
.lp-phone__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(7 * var(--u));
  width: 100%;
  height: calc(40 * var(--u));
  margin-top: auto;
  margin-bottom: calc(15 * var(--u));
  border-radius: calc(22 * var(--u));
  background: linear-gradient(180deg, var(--blue) 13%, var(--blue-dark) 108%);
  box-shadow: 0 calc(12 * var(--u)) calc(24 * var(--u)) calc(-12 * var(--u)) rgba(2, 118, 199, .6);
  color: #fff;
  font-size: calc(13 * var(--u));
  font-weight: 600;
}
.lp-phone__cta svg { width: calc(16 * var(--u)); height: calc(16 * var(--u)); }

/* ══ Адаптив ═════════════════════════════════════════════════════════ */

/* 900–1199: две колонки, преимущества — пять колонок «иконка над текстом» */
@media (max-width: 1199.98px) {
  .lp { --lead: clamp(17px, .96vw + 7.2px, 21px); --lead-lh: 1.4; --feat-icon: 52px; --feat-fs: 15px; --feat-lh: 22px; }
  .lp-title span { display: inline; }
  .lp-lead { text-wrap: balance; }
  .lp-wide-only { display: none; }
  .lp-features { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
  .lp-feature { flex-direction: column; text-align: center; gap: 12px; }
}

/* ≥1200: заголовок ровно в две строки, как в макете */
@media (min-width: 1200px) {
  .lp-title span { white-space: nowrap; }
}

/* <900: одна колонка, всё по центру */
@media (max-width: 899.98px) {
  .lp {
    --gutter: clamp(20px, 5vw, 40px);
    --title: clamp(28px, 4.2vw + 12px, 44px);
    --lead: clamp(15px, 1vw + 11px, 19px);
    --lead-lh: 1.5;
    --btn-fs: 16px;
    --btn-pad: 14px 36px;
    --mock-w: min(100vw - 2 * var(--gutter), 440px, 82vh);
  }
  /* Ширина иллюстрации — от контейнера, а не от 100vw (в нём есть полоса прокрутки) */
  .lp-main { container-type: inline-size; }
  @supports (width: 1cqi) {
    .lp { --mock-w: min(100cqi, 440px, 82vh); }
  }
  .lp-header { padding-block: 16px; }
  .lp-main { justify-content: flex-start; padding-block: 24px 40px; }
  .lp-hero { flex-direction: column; align-items: center; gap: 28px; }
  .lp-hero__text { align-items: center; padding-top: 0; text-align: center; }
  .lp-title { max-width: 13em; letter-spacing: 0; }
  .lp-lead { margin-top: 16px; max-width: 32em; }
  .lp-actions { margin-top: 28px; justify-content: center; }
  .lp-visual { margin-right: 0; }
  .lp-features { margin-top: 40px; }

  .lp-drop--tl { left: -24px; top: 62px; height: clamp(64px, 16vw, 110px); }
  .lp-drop--tr { right: -40px; top: 70px; height: clamp(70px, 18vw, 120px); }
  .lp-drop--bl,
  .lp-drop--br { display: none; }

  .lp-footer__inner { flex-direction: column; align-items: flex-start; padding-block: 28px 32px; }
}

/* 600–899: преимущества — 3 + 2 */
@media (max-width: 899.98px) and (min-width: 600px) {
  .lp-features { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 24px; }
  .lp-feature { grid-column: span 2; }
  .lp-feature:nth-child(4) { grid-column: 2 / span 2; }
}

/* <640: шапка компактнее, «Личный кабинет» прячем */
@media (max-width: 639.98px) {
  .lp { --mark: 32px; --brand-fs: 18px; --nav-h: 40px; --nav-fs: 15px; }
  .lp-brand { gap: 8px; }
  .lp-brand__section { display: none; }
  .lp-nav-btn { gap: 6px; padding: 0 14px 0 12px; }
}

/* <600: преимущества — список в одну колонку, подпись в одну строку */
@media (max-width: 599.98px) {
  .lp { --feat-icon: 44px; --feat-img: 20px; --feat-fs: 15px; --feat-lh: 20px; }
  .lp-features {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
  }
  .lp-feature { flex-direction: row; text-align: left; gap: 14px; }
  .lp-feature__text br { display: none; }
  .lp-footer__links { grid-template-rows: none; grid-auto-flow: row; gap: 4px; }
  .lp .lp-footer__links a { display: inline-block; padding-block: 5px; font-size: 13px; white-space: normal; }
}

/* Невысокие окна в альбомной ориентации (телефон боком): иллюстрация меньше,
   капли не лезут на заголовок */
@media (max-width: 899.98px) and (max-height: 500px) {
  .lp { --mock-w: min(100vw - 2 * var(--gutter), 360px); }
  @supports (width: 1cqi) {
    .lp { --mock-w: min(100cqi, 360px); }
  }
  .lp-drop--tl, .lp-drop--tr { top: 56px; height: 64px; }
}

/* Большие экраны: макет крупнее, без JS-масштабирования */
@media (min-width: 1680px) and (min-height: 940px) {
  .lp {
    --container: 1200px;
    --title: 60px;
    --lead: 24px;
    --lead-lh: 32px;
    --btn-fs: 18px;
    --btn-pad: 18px 38px;
    --mark: 46px;
    --brand-fs: 25px;
    --section-fs: 18px;
    --nav-h: 52px;
    --nav-fs: 18px;
    --feat-icon: 64px;
    --feat-img: 28px;
    --feat-fs: 18px;
    --feat-lh: 27px;
    --mock-w: min(600px, 66vh);
  }
  .lp-header { padding-block: 40px; }
  .lp-features { margin-top: 64px; }
}
@media (min-width: 2200px) and (min-height: 1240px) {
  .lp {
    --container: 1440px;
    --title: 72px;
    --lead: 28px;
    --lead-lh: 38px;
    --btn-fs: 20px;
    --btn-pad: 20px 44px;
    --mark: 54px;
    --brand-fs: 30px;
    --section-fs: 21px;
    --nav-h: 60px;
    --nav-fs: 20px;
    --feat-icon: 76px;
    --feat-img: 32px;
    --feat-fs: 21px;
    --feat-lh: 31px;
    --mock-w: min(720px, 60vh);
  }
  .lp-header { padding-block: 48px; }
  .lp-hero { gap: 48px; }
  .lp-features { margin-top: 80px; }
  .lp-footer__inner { padding-block: 48px; }
  .lp-footer__logo { height: 34px; }
  .lp-footer__copy, .lp .lp-footer__links a { font-size: 14px; line-height: 20px; }
}

/* Без анимаций для тех, кто их отключил в системе */
@media (prefers-reduced-motion: reduce) {
  .lp-drop { animation: none; }
  .lp-btn, .lp-nav-btn, .lp-feature__icon { transition: none; }
  .lp-btn:hover, .lp-nav-btn:hover, .lp-feature:hover .lp-feature__icon { transform: none; }
}
