/* h2 «Коралл и персик». Токены — единственный источник цвета, типографики и движения. */
:root {
  --ink: #2b2729;          /* основной текст, тёплый тёмно-серый */
  --slate: #5e5557;        /* лид, подзаголовки */
  --muted: #7a7072;        /* подписи */
  --faint: #a59b9b;        /* плейсхолдеры, логотипы служб */
  --ok: #1f7a45; --ok-bg: #e6f5ec;
  --err: #c8302a;

  --sh-card: 0 1px 2px rgba(51, 26, 20, .06), 0 14px 34px rgba(var(--tint), .08);
  --sh-ui: 0 1px 2px rgba(51, 26, 20, .06), 0 22px 48px rgba(var(--tint), .14);
  --sh-btn: 0 8px 20px rgba(var(--btn-rgb), .34);

  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .25, 1);

  --wrap: 1198px;
  /* шрифты: значения ставит boot.js по выбору ?font=; здесь — вариант по умолчанию */
  --font-body: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-head: var(--font-body);
  --font-num: var(--font-body);
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

/* ---------- палитры: ?theme=gold|peach|apricot|rose, по умолчанию peach ----------
   --coral кнопки (тёмный текст), --coral-text мелкий акцент (≥4.5:1), --coral-head вторая строка крупных заголовков (≥3:1),
   --silk-* цвета шёлка (читает silk.js), --tint тон теней. */
[data-theme="peach"] {
  --silk-contrast: 1;
  --line: #efe7e4; --soft: #faf5f2; --soft-hover: #f5ebe5; --cream: #fff7f1; --peach: #ffdcc8; --peach-2: #ffc4a6;
  --coral: #ff9466; --coral-hover: #ff8757; --btn-rgb: 255, 120, 80; --coral-hi: #ffa77f; --coral-dot: #f2774c;
  --coral-text: #b5512e; --coral-head: #e2683f; --tint: 150, 60, 30;
  --box-t: #fff1e7; --box-l: #ffcfb4; --box-r: #ffb894; --box-line: #e08a63;
  --silk-cream: #fff4ec; --silk-peach: #ffc2a2; --silk-coral: #ff9466; --silk-deep: #f07d55;
}
/* gold — тема по умолчанию (и без JS) */
:root:where(:not([data-theme])), [data-theme="gold"] {
  --silk-contrast: 1;
  --line: #eeeae2; --soft: #f8f6f2; --soft-hover: #f2eee5; --cream: #fffaf0; --peach: #ffe9c4; --peach-2: #f5d08a;
  --coral: #eaa30a; --coral-hover: #df9905; --btn-rgb: 234, 163, 10; --coral-hi: #f2b632; --coral-dot: #e39a12;
  --coral-text: #9a6200; --coral-head: #a86f08; --tint: 120, 70, 0;
  --box-t: #fff4dc; --box-l: #f9d993; --box-r: #f0c063; --box-line: #c98a12;
  --silk-cream: #fff6e6; --silk-peach: #ffd2ad; --silk-coral: #f2b632; --silk-deep: #df9a1a;
}
[data-theme="apricot"] {
  --line: #efe8e1; --soft: #faf6f1; --soft-hover: #f4ece3; --cream: #fff8f0; --peach: #ffe1c4; --peach-2: #ffc995;
  --coral: #f7a35c; --coral-hover: #f1954a; --btn-rgb: 247, 163, 92; --coral-hi: #ffbb80; --coral-dot: #ec8a3c;
  --coral-text: #a85a1c; --coral-head: #cf7330; --tint: 140, 70, 20;
  --box-t: #fff2e4; --box-l: #ffd5aa; --box-r: #ffbf85; --box-line: #d98a48;
  --silk-cream: #fff5ea; --silk-peach: #ffd3a8; --silk-coral: #f9a95f; --silk-deep: #ea8c40;
}
[data-theme="rose"] {
  --line: #efe6e5; --soft: #faf5f4; --soft-hover: #f4eae8; --cream: #fff6f4; --peach: #fbdcd5; --peach-2: #f5bdb0;
  --coral: #ee8a6f; --coral-hover: #e87c60; --btn-rgb: 238, 138, 111; --coral-hi: #f5a592; --coral-dot: #e0735a;
  --coral-text: #a94a3a; --coral-head: #d0634d; --tint: 140, 55, 50;
  --box-t: #fff0ed; --box-l: #f9cfc5; --box-r: #f3b4a5; --box-line: #d8826d;
  --silk-cream: #fff3f1; --silk-peach: #f8cdc6; --silk-coral: #f7a58c; --silk-deep: #e5866f;
}
/* тёплая «апельсиновая» линейка (итерация 4) */
[data-theme="orange"] {
  --line: #f0e9e1; --soft: #fbf7f3; --soft-hover: #f6eee5; --cream: #fff8f0; --peach: #fde5cc; --peach-2: #f9cc9f;
  --coral: #f9a85e; --coral-hover: #f59d4e; --btn-rgb: 249, 168, 94; --coral-hi: #fbbc80; --coral-dot: #ec9450;
  --coral-text: #a5561e; --coral-head: #d97a35; --tint: 140, 80, 30;
  --box-t: #fff3e6; --box-l: #fcd6b0; --box-r: #f8bf8a; --box-line: #d99055;
  --silk-cream: #fff3e6; --silk-peach: #fbcf9f; --silk-coral: #f6a560; --silk-deep: #e08345; --silk-contrast: 1.05;
}
[data-theme="tiger"] {
  --line: #f0e7df; --soft: #fbf6f2; --soft-hover: #f6ece4; --cream: #fff6ee; --peach: #fce0c8; --peach-2: #f6c29c;
  --coral: #f2955a; --coral-hover: #ee894b; --btn-rgb: 242, 149, 90; --coral-hi: #f6ae7d; --coral-dot: #e3824b;
  --coral-text: #98471c; --coral-head: #d06c35; --tint: 140, 70, 30;
  --box-t: #fff1e5; --box-l: #f9d2b0; --box-r: #f3b285; --box-line: #cf7d4a;
  --silk-cream: #f6c977; --silk-peach: #f3ad68; --silk-coral: #ef9459; --silk-deep: #c96a3a; --silk-contrast: 1.25;
}
[data-theme="tangerine"] {
  --line: #f0e8df; --soft: #fbf7f2; --soft-hover: #f6ede3; --cream: #fff8ef; --peach: #ffe4c6; --peach-2: #ffcb8a;
  --coral: #ffa024; --coral-hover: #f99412; --btn-rgb: 255, 160, 36; --coral-hi: #ffb757; --coral-dot: #f08c14;
  --coral-text: #a8520a; --coral-head: #d0720a; --tint: 150, 80, 15;
  --box-t: #fff3e3; --box-l: #ffd6a3; --box-r: #ffbd6b; --box-line: #d98a2a;
  --silk-cream: #fff3e6; --silk-peach: #ffd2a6; --silk-coral: #ffa024; --silk-deep: #ea830e; --silk-contrast: 1.1;
}
[data-theme="amber"] {
  --line: #efe9df; --soft: #faf7f1; --soft-hover: #f4eee2; --cream: #fff9ec; --peach: #fde7b8; --peach-2: #f9c96e;
  --coral: #f59e0b; --coral-hover: #eb9205; --btn-rgb: 245, 158, 11; --coral-hi: #f8b740; --coral-dot: #e88a06;
  --coral-text: #92400e; --coral-head: #d97706; --tint: 130, 70, 5;
  --box-t: #fff4d9; --box-l: #fbd789; --box-r: #f6b94d; --box-line: #c98410;
  --silk-cream: #fff3d6; --silk-peach: #fcd34d; --silk-coral: #f59e0b; --silk-deep: #e0700a; --silk-contrast: 1.25;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; }
body { font-size: var(--body-size, 16px); line-height: 1.6; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
/* цифры (цены, номера, суммы) — своим начертанием, если шрифт это задаёт */
.wp-num, .hp-row__price, .hp-quote__sum, .hp-lv__facts dd b, .hp-mini__field b, .hp-mini--coin b, .hp-pick__n b, .hp-track__id { font-family: var(--font-num); }
:focus-visible { outline: 2px solid var(--coral-head); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
/* свой цвет считается после загрузки модуля колориста: до этого страница не показывается (максимум 1,5 с) */
html.wp-pending body { visibility: hidden; }

.wp-wrap { width: var(--wrap); max-width: calc(100% - 48px); margin: 0 auto; }

/* ---------- кнопки ---------- */
.wp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 54px; padding: 0 28px; border: 0; border-radius: 12px;
  background: var(--coral); color: var(--coral-ink, var(--ink)); font-size: 17px; font-weight: var(--w-semi, 600);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s var(--ease-out), box-shadow .15s var(--ease-out), background-color .15s;
}
.wp-btn:hover { transform: translateY(-1px); box-shadow: var(--sh-btn); background: var(--coral-hover); }
.wp-btn:active { transform: scale(.97); }
.wp-btn--sm { height: 42px; padding: 0 18px; font-size: 15px; border-radius: 10px; }
.wp-top .wp-btn { box-shadow: 0 1px 2px rgba(51,26,20,.12), 0 4px 12px rgba(var(--btn-rgb), .28); }
.wp-btn--ghost { background: var(--soft); color: var(--ink); }
.wp-btn--ghost:hover { background: var(--soft-hover); box-shadow: none; }

.wp-eyebrow { font-size: 12px; font-weight: var(--w-bold, 700); letter-spacing: .08em; text-transform: uppercase; color: var(--coral-text); }

/* ---------- шапка ---------- */
.wp-top { position: relative; z-index: 5; height: 76px; }
.wp-top__in { height: 100%; display: flex; align-items: center; gap: 40px; }
.wp-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.wp-logo__mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--coral-hi), var(--coral-dot)); box-shadow: 0 4px 10px rgba(var(--btn-rgb), .22); }
.wp-logo__mark svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linejoin: round; }
.wp-logo__word { font-family: var(--font-head); font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.wp-logo .wp-logo__word b { font-weight: 700; color: var(--coral-head); }
.wp-sheet__logo { margin-bottom: 8px; }
.wp-nav { display: flex; gap: 28px; font-size: 15px; font-weight: 500; color: var(--slate); }
.wp-nav a { text-decoration: none; transition: color .15s; }
.wp-nav a:hover { color: var(--ink); }
.wp-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--coral-dot); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.wp-sheet__nav a[aria-current="page"] { color: var(--coral-text); }
.wp-top__act { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.wp-link { font-weight: var(--w-semi, 600); font-size: 15px; text-decoration: none; }
.wp-burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(255,255,255,.8); cursor: pointer; padding: 10px; }
.wp-burger svg { width: 24px; height: 24px; }

/* мобильное меню — нижняя шторка */
.wp-sheet { position: fixed; inset: auto 0 0 0; margin: 0; width: 100%; max-width: 100%; border: 0; padding: 12px 20px 28px; border-radius: 24px 24px 0 0; background: #fff; box-shadow: 0 -20px 50px rgba(var(--tint),.16); }
.wp-sheet::backdrop { background: rgba(43,39,41,.42); backdrop-filter: blur(3px); }
.wp-sheet[open] { animation: sheet-up .4s var(--ease-out); }
@keyframes sheet-up { from { transform: translateY(100%); } }
.wp-sheet__grip { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 12px; }
.wp-sheet__nav { display: grid; }
.wp-sheet__nav a { padding: 14px 4px; font-size: 18px; font-weight: var(--w-semi, 600); text-decoration: none; border-bottom: 1px solid var(--line); }
.wp-sheet__act { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.wp-sheet__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; background: var(--soft); border-radius: 50%; padding: 10px; cursor: pointer; }

/* ---------- герой ---------- */
.hp-hero { position: relative; margin-top: -76px; padding-top: 76px; }
.hp-hero__grid { position: relative; display: grid; grid-template-columns: 600px 460px; justify-content: space-between; padding: 40px 0 120px; }

/* шёлк: холст справа сверху, уходит под шапку */
.hp-silk {
  /* начинается под шапкой: кнопки шапки всегда на белом */
  position: absolute; z-index: 0; top: 76px; right: 0; width: min(66vw, 1080px); height: 860px; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 70px, #000 72%, transparent 99%), linear-gradient(to right, transparent 0, #000 26%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to bottom, transparent 0, #000 70px, #000 72%, transparent 99%), linear-gradient(to right, transparent 0, #000 26%); mask-composite: intersect;
  /* статичный кадр без WebGL: дуга шёлка вокруг карточки */
  background:
    radial-gradient(closest-side at 62% 46%, transparent 62%, var(--silk-peach) 70%, var(--silk-coral) 76%, var(--silk-cream) 82%, transparent 90%),
    radial-gradient(60% 50% at 70% 40%, var(--silk-cream), transparent 75%);
}
.hp-silk.is-gl { background: radial-gradient(55% 50% at 66% 42%, var(--silk-cream), transparent 75%); }
.hp-silk__cv { width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.4s var(--ease-out); }
.hp-silk.is-on .hp-silk__cv { opacity: 1; }

.hp-hero__text { position: relative; z-index: 2; }
.hp-hero__art { position: relative; z-index: 2; padding-top: 6px; }

.hp-h1, .hp-h2, .hp-h3 { font-family: var(--font-head); font-weight: var(--w-head, 700) !important; }
/* поправки под шрифт (design/typography/FONTS.md, круг 2): --w-head вес заголовков, --h-track / --h2-track трекинг,
   --h1-k множитель h1, --body-size текст; у тонких шрифтов интерфейс 500 (--w-semi, --w-bold), крупная цена 600 (--w-price) */
[data-font$="-light"] { --w-semi: 500; --w-bold: 500; --w-price: 600; }
[data-font$="-light"] b, [data-font$="-light"] strong { font-weight: 500; }
[data-font="onest-light"] { --w-head: 300; --h-track: -.015em; --h2-track: -.01em; }
[data-font="source-sans-3-light"] { --w-head: 300; --h-track: -.01em; --h2-track: -.005em; --h1-k: 1.034; --body-size: 17px; }
[data-font="geologica-light"] { --w-head: 300; --h-track: -.02em; --h2-track: -.015em; --h1-k: .934; }
/* тонкая вторая строка в ярких темах бледнеет — берём тёмный акцент, как у gold */
[data-font$="-light"]:is([data-theme="peach"], [data-theme="tiger"], [data-theme="tangerine"]) { --coral-head: var(--coral-text); }
.hp-h1 { margin-top: 18px; font-size: calc(60px * var(--h1-k, 1)); line-height: var(--h1-lh, 1.04); letter-spacing: var(--h-track, -.035em); text-wrap: balance; color: var(--ink); }
.hp-h1 span, .hp-h2 span { display: block; color: var(--coral-head); }
.hp-lead { margin-top: 22px; max-width: 540px; font-size: 20px; line-height: 1.5; color: var(--slate); text-wrap: pretty; }

/* форма */
.hp-form {
  position: relative; z-index: 3;
  margin-top: 26px; padding: 8px; border-radius: 18px; background: #fff; box-shadow: var(--sh-card), 0 0 0 1px var(--line);
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
/* Письмо / Посылка */
.hp-kind { grid-column: 1 / -1; display: flex; align-items: center; gap: 4px; padding: 2px 2px 4px; }
.hp-kind label { position: relative; cursor: pointer; }
.hp-kind input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.hp-kind span { display: block; padding: 7px 16px; border-radius: 10px; font-size: 15px; font-weight: var(--w-semi, 600); color: var(--muted); transition: background-color .2s var(--ease-out), color .2s, box-shadow .2s; }
.hp-kind label:hover span { color: var(--ink); }
.hp-kind input:checked + span { background: var(--cream); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--peach-2); }
.hp-kind input:focus-visible + span { outline: 2px solid var(--coral-head); outline-offset: 2px; }
.hp-kind__hint { margin-left: auto; padding-right: 8px; font-size: 13px; color: var(--muted); }
.hp-wd { min-width: 0; }
.hp-field--btn {
  width: 100%; height: 58px; border: 0; border-radius: 12px; background: var(--soft); text-align: left; cursor: pointer;
  padding: 22px 36px 6px 46px; font-size: 16px; font-weight: 500; transition: background-color .2s, box-shadow .2s;
}
.hp-field--btn:hover { background: var(--soft-hover); }
.hp-field--btn[aria-expanded="true"] { background: #fff; box-shadow: inset 0 0 0 2px var(--coral-head); }
.hp-field--btn[aria-invalid="true"] { background: #fff; box-shadow: inset 0 0 0 2px var(--err); }
.hp-field__lbl { position: absolute; left: 46px; top: 8px; font-size: 12px; font-weight: var(--w-semi, 600); color: var(--muted); }
.hp-field__val { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.hp-field .hp-field__chev { left: auto; right: 12px; transition: transform .2s var(--ease-out); }
.hp-field--btn[aria-expanded="true"] .hp-field__chev { transform: rotate(180deg); }

/* блок «Вес и размеры» */
/* аккордеон внутри формы: строка сетки растёт 0fr → 1fr, страница ниже съезжает вместе с ней */
.hp-acc { grid-column: 1 / -1; display: grid; grid-template-rows: 0fr; margin-top: -8px; }
.motion .hp-acc { transition: grid-template-rows .36s var(--ease-io); }
.hp-acc.is-open { grid-template-rows: 1fr; }
.hp-acc__in { min-height: 0; overflow: hidden; }
.hp-acc.is-settled .hp-acc__in { overflow: visible; } /* подсказка «Как считают вес» не обрезается */
.hp-dims {
  display: grid; grid-template-columns: 1fr 168px; gap: 0 16px; margin-top: 8px; padding: 14px 8px 6px;
  border-top: 1px dashed var(--line);
}
.motion .hp-dims { transition: opacity .25s var(--ease-out), transform .36s var(--ease-io); }
.motion .hp-acc:not(.is-open) .hp-dims { opacity: 0; transform: translateY(-8px); }
.hp-dims__t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.hp-unit { position: relative; }
.hp-unit label, .hp-size legend { display: block; font-size: 12px; font-weight: var(--w-semi, 600); color: var(--slate); margin-bottom: 4px; padding: 0; }
.hp-unit input, .hp-size input {
  width: 100%; height: 42px; border: 0; border-radius: 10px; background: var(--soft); padding: 0 12px; font-size: 16px; font-weight: var(--w-semi, 600); font-variant-numeric: tabular-nums; color: var(--ink);
  transition: background-color .2s, box-shadow .2s;
}
.hp-unit input { width: 140px; }
.hp-unit input:focus, .hp-size input:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 2px var(--coral-head); }
.hp-unit input[aria-invalid="true"], .hp-size input[aria-invalid="true"] { background: #fff; box-shadow: inset 0 0 0 2px var(--err); }
.hp-unit small { margin-left: 10px; font-size: 13px; color: var(--muted); }
.hp-size { margin: 12px 0 0; padding: 0; border: 0; min-width: 0; }
.hp-presets { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.hp-presets button { height: 30px; padding: 0 9px; letter-spacing: -.01em; font-size: 12px !important; border: 0; border-radius: 999px; background: var(--soft); font-size: 13px; font-weight: 500; color: var(--slate); cursor: pointer; font-variant-numeric: tabular-nums; transition: background-color .15s, color .15s, box-shadow .15s; }
.hp-presets button b { color: var(--ink); margin-right: 4px; }
.hp-presets button:hover { background: var(--soft-hover); }
.hp-presets button[aria-pressed="true"] { background: var(--cream); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--peach-2); }
.hp-size__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hp-size__row label { font-size: 12px; font-weight: var(--w-semi, 600); color: var(--muted); }
.hp-size__row label > span { display: block; margin-bottom: 2px; }
.hp-size__short { display: none !important; }
.hp-box { grid-column: 2; grid-row: 1; align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 10px 8px; border-radius: 14px; text-align: center;
  background: linear-gradient(150deg, var(--cream) 0%, var(--peach) 100%); }
.hp-box__svg { width: 140px; height: 98px; overflow: visible; }
.hp-box__svg { transform-origin: 50% 92%; }
.hp-box__svg path { stroke: var(--box-line); stroke-width: 1.5; stroke-linejoin: round; transition: d .4s var(--ease-io); }
.hp-box__t { fill: var(--box-t); }
.hp-box__l { fill: var(--box-l); }
.hp-box__r { fill: var(--box-r); }
.hp-box__svg .hp-box__tape { fill: none; stroke: var(--cream); stroke-width: 3; opacity: .9; }
.hp-box__cap { font-size: 12px; font-weight: var(--w-semi, 600); color: var(--slate); font-variant-numeric: tabular-nums; line-height: 1.4; }
.hp-box__note { margin-top: 8px; font-size: 12px; line-height: 1.4; color: var(--coral-text); }
.hp-box__how { position: relative; font-size: 12px; }
.hp-box__how > span:first-child { color: var(--coral-text); text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }
.hp-tip { position: absolute; z-index: 2; right: -6px; bottom: calc(100% + 8px); width: 220px; padding: 10px 12px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 12px; line-height: 1.45; text-align: left; opacity: 0; pointer-events: none; transform: translateY(4px); transition: opacity .15s var(--ease-out), transform .15s var(--ease-out); }
.hp-box__how > span:first-child:hover + .hp-tip, .hp-box__how > span:first-child:focus + .hp-tip { opacity: 1; transform: none; }
.hp-dims__main { grid-column: 1; grid-row: 1 / span 2; }
.hp-dims__ok { grid-column: 2; grid-row: 2; justify-self: stretch; margin-top: 8px; }
.hp-field { position: relative; }
.hp-field label { position: absolute; left: 46px; top: 8px; font-size: 12px; font-weight: var(--w-semi, 600); color: var(--muted); pointer-events: none; }
.hp-field svg { position: absolute; left: 16px; top: 19px; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.hp-field input {
  width: 100%; height: 58px; border: 0; border-radius: 12px; background: var(--soft); padding: 22px 14px 6px 46px; font-size: 16px; font-weight: 500;
  transition: background-color .2s, box-shadow .2s;
}
.hp-field input::placeholder, .hp-unit input::placeholder, .hp-size input::placeholder { color: var(--faint); }
.hp-field input:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 2px var(--coral-head); }
.hp-field input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--err); background: #fff; }
.hp-err { font-size: 13px; font-weight: 500; color: var(--err); padding: 4px 4px 0; }
.hp-err:empty { display: none; }
.hp-form__go { height: 58px; }
.hp-noreg { margin-top: 14px; font-size: 15px; font-weight: var(--w-semi, 600); }

.hp-carriers { margin-top: 26px; }
.hp-carriers ul { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.hp-carriers li { display: flex; align-items: center; height: 24px; }
.hp-carriers img { display: block; width: auto; opacity: .85; }
.hp-carriers p { margin-top: 8px; font-size: 13px; color: var(--muted); }

/* ---------- карточка расчёта ---------- */
.hp-quote { position: relative; background: #fff; border-radius: 22px; box-shadow: var(--sh-ui); padding: 22px 22px 18px; }
.hp-quote__head { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: start; padding-bottom: 14px; position: relative; }
.hp-quote__route { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: var(--w-bold, 700); letter-spacing: -.01em; }
.hp-quote__route svg { width: 22px; height: 12px; color: var(--coral-dot); flex: none; }
.hp-quote__meta { font-size: 13px; color: var(--muted); }
.hp-quote__state { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: var(--w-semi, 600); color: var(--slate); white-space: nowrap; padding-top: 4px; }
.hp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral-dot); }
.motion .hp-quote.is-busy .hp-dot { animation: dot 1s var(--ease-io) infinite alternate; }
@keyframes dot { to { opacity: .25; transform: scale(.7); } }
.hp-quote.is-done .hp-dot { background: var(--ok); }
.hp-quote__bar { grid-column: 1 / -1; height: 3px; margin-top: 12px; border-radius: 3px; background: var(--soft); overflow: hidden; }
.hp-quote__bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--peach-2), var(--coral-dot)); transform-origin: 0 50%; transform: scaleX(var(--p, 1)); transition: transform .5s var(--ease-out); }

.hp-rows { position: relative; display: grid; gap: 6px; }
.hp-row {
  --h: 56px; height: var(--h); display: grid; grid-template-columns: 1fr auto 84px; align-items: center; gap: 12px;
  padding: 0 12px; border-radius: 12px; background: var(--soft); position: relative;
}
.hp-row__name { min-width: 0; display: grid; grid-template-rows: 24px auto; align-items: center; }
.hp-row__logo { display: block; width: auto; max-width: 120px; object-fit: contain; object-position: left center; }
.hp-row__name small { display: block; font-size: 12px; font-weight: 500; line-height: 1.3; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-row__days { font-size: 13px; color: var(--slate); white-space: nowrap; }
.hp-row__price { font-size: 17px; font-weight: var(--w-bold, 700); text-align: right; font-variant-numeric: tabular-nums; }
.hp-row__tags { position: absolute; top: -8px; right: 10px; display: flex; gap: 4px; }
.hp-tag { font-size: 11px; font-weight: var(--w-bold, 700); padding: 2px 8px; border-radius: 999px; line-height: 1.5; }
.hp-tag--cheap { background: var(--coral); color: var(--coral-ink, var(--ink)); }
.hp-tag--fast { background: var(--ink); color: #fff; }
.hp-row { transition: background-color .3s var(--ease-out), box-shadow .3s var(--ease-out); }
.hp-row.is-best { background: var(--cream); box-shadow: inset 0 0 0 1.5px var(--peach-2); }
/* тень обгоняющей строки: готовая тень на псевдоэлементе, анимируется только opacity */
.hp-row::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 10px 24px rgba(var(--tint), .16); opacity: 0; pointer-events: none; }
.hp-row.is-lift::before { animation: lift var(--lift-ms, 600ms) cubic-bezier(.65,0,.25,1); }
@keyframes lift { 45% { opacity: 1; } }
/* ожидание ответа службы */
.hp-row.is-wait > * { opacity: 0; }
.hp-row.is-wait { overflow: hidden; }
.hp-row.is-wait::before { inset: 50% 20px auto 16px; height: 8px; margin-top: -4px; border-radius: 8px; box-shadow: none; opacity: 1; background: var(--line); }
/* блик скелетона: узкая полоса едет поперёк строки, только transform */
.hp-row.is-wait::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.7), rgba(255,255,255,0)); transform: translateX(-100%); }
.motion .hp-row.is-wait::after { animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { transform: translateX(260%); } }
.motion .hp-row.is-in .hp-row__price { animation: row-in .4s var(--ease-out) both; }
@keyframes row-in { from { opacity: 0; transform: translateY(6px); filter: blur(2px); } }
.motion .hp-tag { animation: pop .45s var(--ease-out) both; }
@keyframes pop { from { opacity: 0; transform: scale(.9) translateY(4px); } }

.hp-quote__foot { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.hp-quote__lbl { font-size: 12px; color: var(--muted); }
.hp-quote__sum { font-size: 24px; font-weight: var(--w-price, 700); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hp-quote__sum small { font-size: 13px; font-weight: 500; color: var(--slate); letter-spacing: 0; }
.motion .tick { animation: row-in .4s var(--ease-out); }
.is-paused *, .is-paused *::before, .is-paused *::after { animation-play-state: paused !important; }

/* ---------- секции ---------- */
.hp-sec { padding: 96px 0 0; }
.hp-h2 { margin-top: 14px; font-size: 40px; line-height: 1.12; font-weight: var(--w-bold, 700); letter-spacing: var(--h2-track, -.025em); text-wrap: balance; }
.hp-sub { margin-top: 16px; max-width: 620px; font-size: 18px; line-height: 1.55; color: var(--slate); text-wrap: pretty; }

/* одна отправка — весь путь */
.hp-path__grid { display: grid; grid-template-columns: 1fr 600px; gap: 64px; align-items: center; }
.hp-steps { margin: 30px 0 32px; display: grid; gap: 4px; counter-reset: s; }
.hp-steps li { counter-increment: s; position: relative; padding: 12px 14px 12px 52px; border-radius: 14px; color: var(--slate); font-size: 16px; line-height: 1.5; transition: background-color .4s var(--ease-out), color .4s; }
.hp-steps li::before { content: counter(s); position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: var(--w-bold, 700); background: var(--soft); color: var(--muted); transition: background-color .4s, color .4s; }
.hp-steps li b { color: var(--ink); font-weight: var(--w-semi, 600); }
.hp-steps li.is-on { background: var(--cream); color: var(--ink); }
.hp-steps li.is-on::before { background: var(--coral); color: var(--coral-ink, var(--ink)); }

.hp-panel { border-radius: 24px; padding: 40px 36px; }
.hp-panel--path { background: linear-gradient(140deg, var(--cream) 0%, var(--peach) 100%); }
.hp-track { background: #fff; border-radius: 18px; box-shadow: var(--sh-card); padding: 22px; container-type: inline-size; position: relative; }
.hp-track__head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.hp-track__id { font-size: 18px; font-weight: var(--w-bold, 700); }
.hp-track__route { font-size: 13px; color: var(--muted); }
.hp-pill { flex: none; font-size: 12px; font-weight: var(--w-bold, 700); padding: 4px 10px; border-radius: 999px; background: var(--cream); color: var(--coral-text); transition: background-color .4s, color .4s; }
.hp-pill.is-ok { background: var(--ok-bg); color: var(--ok); }
.hp-line { position: relative; height: 44px; margin: 22px 0 8px; }
.hp-line__rail { position: absolute; left: 18px; right: 18px; top: 20px; height: 4px; border-radius: 4px; background: var(--soft); overflow: hidden; }
.hp-line__rail i { display: block; height: 100%; background: linear-gradient(90deg, var(--peach-2), var(--coral-dot)); transform-origin: 0 50%; transform: scaleX(var(--p, 1)); }
.hp-line__box { position: absolute; left: 0; top: 4px; width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(135deg, var(--coral-hi), var(--coral-dot)); box-shadow: 0 8px 18px rgba(var(--btn-rgb),.32); display: grid; place-items: center; transform: translateX(calc(var(--p, 1) * (100cqw - 44px - 36px))); }
.hp-line__box svg { width: 20px; height: 20px; }
.hp-ev { display: grid; gap: 2px; }
.hp-ev li { display: grid; grid-template-columns: 14px 1fr auto; column-gap: 12px; padding: 8px 0; align-items: baseline; transition: opacity .4s var(--ease-out); }
.hp-ev li::before { content: ""; grid-row: span 2; width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; background: #fff; box-shadow: inset 0 0 0 2px var(--line); transition: background-color .4s, box-shadow .4s; }
.hp-ev span { font-weight: var(--w-semi, 600); font-size: 15px; }
.hp-ev small { grid-column: 2; font-size: 13px; color: var(--muted); }
.hp-ev time { grid-row: 1; grid-column: 3; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.hp-ev li.is-off { opacity: .38; }
.hp-ev li.is-done::before { background: var(--coral-dot); box-shadow: 0 0 0 4px rgba(var(--btn-rgb),.2); }
.hp-ev li.is-last.is-done::before { background: var(--ok); box-shadow: 0 0 0 4px rgba(31,122,69,.15); }
.hp-toast { position: absolute; left: 50%; bottom: -20px; display: flex; gap: 8px; align-items: center; white-space: nowrap; font-size: 13px; font-weight: var(--w-semi, 600); padding: 9px 14px; border-radius: 999px; background: var(--ink); color: #fff; box-shadow: 0 12px 28px rgba(43,39,41,.22); transform: translateX(-50%); transition: opacity .4s var(--ease-out), transform .4s var(--ease-out); }
.hp-toast svg { width: 18px; height: 18px; color: var(--coral); }
.hp-toast.is-off { opacity: 0; transform: translate(-50%, 8px); }

/* для бизнеса */
.hp-biz { padding-bottom: 120px; }
.hp-biz__card { margin-top: 48px; display: grid; grid-template-columns: 1fr 540px; gap: 56px; align-items: center; background: var(--soft); border-radius: 24px; padding: 48px; }
.hp-only { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: var(--w-bold, 700); padding: 5px 12px 5px 10px; border-radius: 999px; background: #fff; color: var(--coral-text); box-shadow: 0 0 0 1px var(--line); }
.hp-only svg { width: 14px; height: 14px; }
.hp-feats { margin-top: 24px; display: grid; gap: 22px; }
.hp-feats li { position: relative; padding-left: 34px; color: var(--slate); font-size: 16px; line-height: 1.55; }
.hp-feats li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, var(--coral-hi), var(--coral-dot)); }
.hp-feats li::after { content: ""; position: absolute; left: 7px; top: 8px; width: 8px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg); }
.hp-feats b { display: block; color: var(--ink); font-weight: var(--w-semi, 600); font-size: 17px; margin-bottom: 2px; }
.hp-biz__cta { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.hp-price { font-size: 15px; color: var(--slate); }
.hp-price b { color: var(--ink); }
.hp-biz__cta .wp-btn--ghost { background: #fff; box-shadow: 0 0 0 1px var(--line); }

.hp-pick { background: #fff; border-radius: 18px; box-shadow: var(--sh-card); padding: 22px; }
.hp-pick__head { display: flex; justify-content: space-between; gap: 16px; align-items: start; margin-bottom: 14px; }
.hp-pick__t { font-weight: var(--w-bold, 700); font-size: 17px; }
.hp-pick__s { font-size: 13px; color: var(--muted); }
.hp-pick__n { font-size: 13px; color: var(--muted); white-space: nowrap; }
.hp-pick__n b { font-size: 22px; color: var(--ink); font-variant-numeric: tabular-nums; display: inline-block; }
.hp-pick__list { display: grid; gap: 4px; }
.hp-pick__list li { display: grid; grid-template-columns: 22px 1fr auto 56px; gap: 12px; align-items: center; height: 44px; padding: 0 12px; border-radius: 10px; font-size: 14px; transition: background-color .35s var(--ease-out); }
.hp-pick__list span { font-weight: var(--w-semi, 600); font-variant-numeric: tabular-nums; }
.hp-pick__list em { font-style: normal; color: var(--slate); }
.hp-pick__list small { text-align: right; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.hp-chk { width: 22px; height: 22px; border-radius: 7px; box-shadow: inset 0 0 0 2px var(--line); position: relative; transition: background-color .3s var(--ease-out), box-shadow .3s; }
.hp-chk::after { content: ""; position: absolute; left: 6px; top: 6px; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) scale(.6); opacity: 0; transition: transform .3s var(--ease-out), opacity .2s; }
.hp-pick__list li.is-on { background: var(--cream); }
.hp-pick__list li.is-on .hp-chk { background: var(--coral-dot); box-shadow: none; }
.hp-pick__list li.is-on .hp-chk::after { opacity: 1; transform: rotate(-45deg) scale(1); }
.hp-pick__foot { margin-top: 14px; }
.hp-pick__bar { height: 4px; border-radius: 4px; background: var(--soft); overflow: hidden; }
.hp-pick__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--peach-2), var(--coral-dot)); transform-origin: 0 50%; transform: scaleX(var(--p, 1)); transition: transform .45s var(--ease-io); }
.hp-pick__done { margin-top: 12px; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: var(--w-semi, 600); color: var(--ok); transition: opacity .4s var(--ease-out), transform .4s var(--ease-out); }
.hp-pick__done svg { width: 18px; height: 18px; }
.hp-pick__done.is-off { opacity: 0; transform: translateY(6px); }

/* ---------- итерация 5: блоки из старого сайта, в стиле страницы ---------- */
.hp-h3 { font-size: 22px; line-height: 1.25; font-weight: var(--w-bold, 700); letter-spacing: -.015em; text-wrap: balance; }
.hp-note { margin-top: 20px; font-size: 14px; line-height: 1.55; color: var(--muted); max-width: 620px; }
.hp-note a, .hp-sub a { color: var(--coral-text); }
.hp-sec__head { max-width: 760px; }

/* один договор: тихая строка под листом вызова */
.hp-deal { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; padding: 32px 48px; border-radius: 24px; border: 1px solid var(--line); }
.hp-deal__list { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 32px; }
.hp-deal__list li { position: relative; padding-left: 18px; color: var(--slate); font-size: 15px; line-height: 1.5; }
.hp-deal__list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--coral-dot); }
.hp-deal .wp-btn { flex: none; }

/* способы передачи */
.hp-ways { padding-top: 0; }
.hp-ways__grid { display: grid; grid-template-columns: 1fr 520px; gap: 64px; align-items: center; }
.hp-ways__opts { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hp-ways__opts button { text-align: left; border: 0; border-radius: 16px; padding: 16px 18px; background: var(--soft); cursor: pointer; font: inherit; color: var(--slate); font-size: 14px; line-height: 1.5;
  transition: background-color .25s var(--ease-out), box-shadow .25s var(--ease-out); }
.hp-ways__opts button b { display: block; color: var(--ink); font-size: 16px; font-weight: var(--w-semi, 600); margin-bottom: 4px; }
.hp-ways__opts button:hover { background: var(--soft-hover); }
.hp-ways__opts button[aria-checked="true"] { background: var(--cream); box-shadow: inset 0 0 0 1.5px var(--peach-2); }
.hp-panel--ways { background: linear-gradient(140deg, var(--cream) 0%, var(--peach) 100%); padding: 56px 36px; }
.hp-route { margin: 0; display: grid; grid-template-columns: 120px 1fr 120px; align-items: center; gap: 0 8px; background: #fff; border-radius: 18px; box-shadow: var(--sh-card); padding: 32px 24px 24px; }
.hp-route__end { display: grid; justify-items: center; text-align: center; gap: 4px; }
.hp-route__end b { font-size: 14px; font-weight: var(--w-semi, 600); line-height: 1.3; min-height: 2.6em; }
.hp-route__end small { font-size: 12px; color: var(--muted); }
.hp-route__ico { position: relative; width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, var(--coral-hi), var(--coral-dot)); color: #fff; margin-bottom: 6px; }
.hp-route__ico svg { position: absolute; inset: 14px; width: 28px; height: 28px; transition: opacity .3s var(--ease-out), transform .3s var(--ease-out); }
.hp-route__ico[data-kind="door"] svg:last-child, .hp-route__ico[data-kind="point"] svg:first-child { opacity: 0; transform: scale(.85); }
.hp-route__line { width: 100%; height: 40px; overflow: visible; align-self: start; margin-top: 4px; }
.hp-route__line path { fill: none; stroke: var(--coral-dot); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; vector-effect: non-scaling-stroke; }
.motion .hp-panel--ways:not(.in) .hp-route__line path { stroke-dashoffset: 1; }
.motion .hp-route__line path { transition: stroke-dashoffset 1s var(--ease-io) .3s; }
.hp-route__cap { grid-column: 1 / -1; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); text-align: center; font-size: 14px; color: var(--slate); }

/* что входит: бенто, в каждой карточке маленький экран продукта; строки карточек выровнены через subgrid */
.hp-incl__grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hp-card { grid-row: span 3; display: grid; grid-template-rows: subgrid; row-gap: 0; position: relative; padding: 24px 24px 26px; border-radius: 22px;
  background: linear-gradient(165deg, var(--cream) 0%, #fff 70%); box-shadow: 0 0 0 1px var(--line); color: var(--slate); font-size: 15px; line-height: 1.55; }
.hp-card--wide { grid-column: span 2; }
.hp-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 16px 40px rgba(var(--tint), .12); opacity: 0; transition: opacity .25s var(--ease-out); pointer-events: none; }
@media (hover: hover) {
  .hp-card:hover { transform: translateY(-3px); }
  .hp-card:hover::after { opacity: 1; }
}
.hp-card__t { display: block; margin: 20px 0 6px; color: var(--ink); font-size: 17px; font-weight: var(--w-semi, 600); line-height: 1.3; text-wrap: balance; }
.hp-card p { margin: 0; }
.hp-mini { height: 112px; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: #fff; box-shadow: var(--sh-card); overflow: hidden; }
/* ценность */
.hp-mini__field { flex: 1; min-width: 0; padding: 10px 14px; border-radius: 12px; background: var(--soft); box-shadow: inset 0 0 0 2px var(--peach-2); }
.hp-mini__field small { display: block; font-size: 12px; color: var(--muted); }
.hp-mini__field b { font-size: 22px; font-weight: var(--w-price, 700); color: var(--ink); font-variant-numeric: tabular-nums; }
.hp-mini__shield { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); font-size: 13px; font-weight: var(--w-semi, 600); white-space: nowrap; }
.hp-mini__shield svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* переписка */
.hp-mini--chat { flex-direction: column; align-items: stretch; justify-content: center; gap: 8px; }
.hp-bubble { max-width: 92%; padding: 7px 12px; border-radius: 14px 14px 14px 4px; background: var(--soft); color: var(--ink); font-size: 13px; line-height: 1.35; }
.hp-bubble--me { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: var(--peach); }
.hp-bubble em { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: var(--cream); color: var(--coral-text); font-style: normal; font-size: 11px; font-weight: var(--w-bold, 700); }
/* документы */
.hp-mini--docs { justify-content: center; gap: 0; }
.hp-doc { position: relative; flex: none; width: 76px; height: 84px; margin: 0 -6px; padding: 32px 6px 0; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 6px 14px rgba(var(--tint), .1); font-size: 11px; font-weight: var(--w-semi, 600); color: var(--ink); text-align: center; line-height: 1.2; }
.hp-doc i { position: absolute; left: 8px; top: 8px; padding: 1px 5px; border-radius: 4px; background: var(--coral); color: var(--coral-ink, var(--ink)); font-style: normal; font-size: 9px; font-weight: var(--w-bold, 700); }
.hp-doc:nth-child(1) { transform: rotate(-8deg) translateY(4px); }
.hp-doc:nth-child(2) { z-index: 1; }
.hp-doc:nth-child(3) { transform: rotate(8deg) translateY(4px); }
/* бонусы */
.hp-mini--coin { gap: 16px; padding-left: 22px; }
.hp-coin { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--coral-hi), var(--coral-dot)); color: #fff; font-weight: var(--w-bold, 700); font-size: 22px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.08), 0 6px 14px rgba(var(--btn-rgb), .35); }
.hp-mini--coin b { display: block; font-size: 26px; font-weight: var(--w-price, 700); color: var(--ink); font-variant-numeric: tabular-nums; }
.hp-mini--coin small { font-size: 13px; color: var(--muted); }
/* мини-экраны оживают один раз вместе с карточками */
.motion .hp-card { transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.motion .hp-card.is-shown { transition: transform .25s var(--ease-out); }
.motion .hp-bubble, .motion .hp-doc, .motion .hp-coin, .motion .hp-mini__shield { transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
.motion [data-incl]:not(.in) .hp-bubble { opacity: 0; transform: translateY(8px); }
.motion [data-incl] .hp-bubble--me { transition-delay: .4s; }
.motion [data-incl] .hp-bubble + .hp-bubble { transition-delay: .9s; }
.motion [data-incl]:not(.in) .hp-doc { transform: none; }
.motion [data-incl] .hp-doc { transition-delay: .45s; }
.motion [data-incl]:not(.in) .hp-coin { transform: scale(.8) rotate(-30deg); opacity: 0; }
.motion [data-incl] .hp-coin { transition-delay: .5s; }
.motion [data-incl]:not(.in) .hp-mini__shield { opacity: 0; transform: translateX(-6px); }
.motion [data-incl] .hp-mini__shield { transition-delay: 1s; }

/* уровни бонусов: компактная шкала; уровни зажигаются по очереди, бегунок едет к выбранному */
.hp-lv { margin-top: 40px; padding: 28px; border-radius: 24px; background: linear-gradient(160deg, var(--cream), var(--soft)); }
.hp-lv__scale { position: relative; padding: 24px 20px 18px; border-radius: 18px; background: #fff; box-shadow: var(--sh-card); }
.hp-lv__track { position: absolute; left: calc(20px + 10%); right: calc(20px + 10%); top: 35px; height: 4px; border-radius: 4px; background: var(--line); }
.hp-lv__track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--coral-hi), var(--coral-dot)); transform-origin: left; transform: scaleX(var(--lv, 1)); }
.hp-lv__runner { position: absolute; z-index: 0; top: 50%; left: 0; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--coral-dot); box-shadow: 0 0 0 4px rgba(var(--btn-rgb), .25); transform: translateX(var(--run, 0px)); }
.motion .hp-lv__track i { transition: transform .5s var(--ease-io); }
.motion .hp-lv__runner { transition: transform .5s var(--ease-io); }
.hp-lv__row { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, 1fr); }
.hp-lv__row button { display: grid; justify-items: center; align-content: start; gap: 3px; padding: 4px 2px; border: 0; border-radius: 12px; background: none; cursor: pointer; font: inherit; }
.hp-lv__row i { width: 22px; height: 22px; margin-bottom: 6px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--line); transition: box-shadow .3s var(--ease-out), background-color .3s; }
.hp-lv__row button.is-on i { background: var(--coral); box-shadow: inset 0 0 0 5px #fff, 0 0 0 2px var(--coral-dot); }
.hp-lv__row b { font-size: 15px; font-weight: var(--w-bold, 700); color: var(--muted); transition: color .3s; }
.hp-lv__row button.is-on b { color: var(--ink); }
.hp-lv__row button[aria-checked="true"] b { color: var(--coral-text); }
.hp-lv__row span { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.hp-lv__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 12px 0 0; }
.hp-lv__facts > div { padding: 18px 20px; border-radius: 16px; background: #fff; }
.hp-lv__facts dt { font-size: 13px; font-weight: var(--w-semi, 600); color: var(--muted); }
.hp-lv__facts dd { display: grid; gap: 2px; margin: 6px 0 0; }
.hp-lv__facts dd b { font-size: 24px; font-weight: var(--w-price, 700); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.hp-lv__facts dd > span { font-size: 13px; color: var(--slate); }
.hp-lv .hp-note { margin-top: 14px; }

/* отзывы: лента с ручной прокруткой, стрелки на десктопе, свайп на телефоне */
.hp-revs__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.hp-revs__nav { display: flex; gap: 8px; }
.hp-arrow { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--soft); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background-color .15s, opacity .2s, transform .15s var(--ease-out); }
.hp-arrow svg { width: 20px; height: 20px; }
.hp-arrow:hover:not(:disabled) { background: var(--soft-hover); }
.hp-arrow:active:not(:disabled) { transform: scale(.96); }
.hp-arrow:disabled { opacity: .35; cursor: default; }
.hp-revs__list { margin: 40px -8px 0; padding: 8px 8px 24px; display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 8px; scrollbar-width: none; overscroll-behavior-x: contain; }
.hp-revs__list::-webkit-scrollbar { display: none; }
.hp-revs__list:focus-visible { outline: 2px solid var(--coral-head); outline-offset: 2px; border-radius: 24px; }
.hp-rev { flex: 0 0 470px; scroll-snap-align: start; display: flex; flex-direction: column; padding: 32px; border-radius: 22px; background: #fff; box-shadow: var(--sh-card), 0 0 0 1px var(--line); }
.hp-rev__stars { display: flex; gap: 3px; }
.hp-rev__stars svg { width: 18px; height: 18px; fill: var(--line); }
.hp-rev__stars svg.is-on { fill: var(--coral-dot); }
.hp-rev blockquote { margin: 18px 0 24px; font-size: 18px; line-height: 1.55; color: var(--ink); text-wrap: pretty; flex: 1; }
.hp-rev footer { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px dashed var(--line); }
.hp-rev__ava { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: var(--w-bold, 700); color: var(--ink); background: linear-gradient(135deg, var(--peach), var(--peach-2)); }
.hp-rev footer b { display: block; font-size: 15px; font-weight: var(--w-semi, 600); }
.hp-rev footer small { font-size: 13px; color: var(--muted); }

/* частые вопросы */
.hp-faq__grid { display: grid; grid-template-columns: 1fr 640px; gap: 64px; align-items: start; }
.hp-faq__list details { border-bottom: 1px solid var(--line); }
.hp-faq__list summary { list-style: none; cursor: pointer; position: relative; padding: 22px 44px 22px 0; font-size: 17px; font-weight: var(--w-semi, 600); line-height: 1.4; }
.hp-faq__list summary::-webkit-details-marker { display: none; }
.hp-faq__list summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--coral-text); border-bottom: 2px solid var(--coral-text); transform: rotate(45deg); transition: transform .3s var(--ease-out); }
.hp-faq__list details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.hp-faq__list details p { padding: 0 44px 22px 0; color: var(--slate); line-height: 1.6; }
.hp-faq__list summary:focus-visible { outline-offset: 4px; }
@supports (interpolate-size: allow-keywords) {
  .hp-faq__list { interpolate-size: allow-keywords; }
  .hp-faq__list details::details-content { height: 0; overflow: clip; transition: height .35s var(--ease-io), content-visibility .35s allow-discrete; }
  .hp-faq__list details[open]::details-content { height: auto; }
}

/* финальный призыв */
.hp-final { padding-bottom: 120px; }
.hp-final__card { text-align: center; padding: 72px 32px; border-radius: 32px; background: linear-gradient(140deg, var(--cream) 0%, var(--peach) 100%); }
.hp-final__card .hp-sub { margin-left: auto; margin-right: auto; }
.hp-final__btns { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hp-final__btns .wp-btn--ghost { background: #fff; }

/* стаггер детей: появляются вслед за родителем через 70 мс */
.motion [data-stagger] > * { transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.motion [data-stagger]:not(.in) > * { opacity: 0; transform: translateY(24px); }
.motion [data-r][data-stagger]:not(.in) { opacity: 1; transform: none; } /* сам контейнер не двигается, двигаются дети */

/* ---------- общие мелочи страниц: текстовая кнопка-ссылка и переключатель состояний «для макета» ---------- */
.wp-tlink { border: 0; background: none; padding: 0; font: inherit; font-size: 14px; font-weight: var(--w-semi, 600); color: var(--coral-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.wp-demo { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 16px; font-size: 12px; color: var(--muted); }
.wp-demo button { height: 28px; padding: 0 10px; border: 1px dashed var(--line); border-radius: 999px; background: #fff; font-size: 12px; color: var(--slate); cursor: pointer; }
.wp-demo button[aria-pressed="true"] { border-style: solid; border-color: var(--ink); color: var(--ink); }

/* иконка в карточке: квадрат с мягким градиентом акцента темы, белая линейная иконка (как в h1) */
.hp-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: linear-gradient(135deg, var(--coral) 10%, var(--coral-head)); box-shadow: 0 8px 18px rgba(var(--btn-rgb), .26); }
.hp-ico svg { width: 32px; height: 32px; fill: none; stroke: #fff; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- внутренние страницы: короткий герой с тёплым светом ---------- */
.pg-hero { position: relative; isolation: isolate; padding: 48px 0 40px; overflow: hidden; }
.pg-hero::before { content: ""; position: absolute; z-index: -1; right: -10%; top: -40%; width: 60%; height: 180%; background: radial-gradient(closest-side, var(--peach), transparent 70%); opacity: .7; pointer-events: none; }
.pg-h1 { font-size: calc(52px * var(--h1-k, 1)); }
.pg-hero .hp-lead { max-width: 640px; }
@media (max-width: 620px) {
  .pg-hero { padding: 24px 0 28px; }
  .pg-h1 { font-size: calc(34px * var(--h1-k, 1)); }
}

/* подвал */
.wp-foot { border-top: 1px solid var(--line); padding: 56px 0 96px; font-size: 14px; color: var(--muted); }
.wp-foot__cols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.wp-foot__brand p { margin-top: 14px; max-width: 260px; line-height: 1.55; }
.wp-foot nav { display: grid; align-content: start; gap: 10px; }
.wp-foot nav p { font-size: 13px; font-weight: var(--w-bold, 700); color: var(--coral-text); margin-bottom: 2px; }
.wp-foot nav a { text-decoration: none; color: var(--slate); transition: color .15s; }
.wp-foot nav a:hover { color: var(--ink); }
.wp-foot__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.wp-foot .wp-logo__mark { width: 30px; height: 30px; border-radius: 9px; }
.wp-foot .wp-logo__mark svg { width: 19px; height: 19px; }
.wp-foot .wp-logo__word { font-size: 19px; }
/* палитры: плавающая плашка справа внизу, сворачивается в одну кнопку */
.wp-pal { position: fixed; z-index: 60; left: 16px; bottom: 16px; display: flex; gap: 10px; padding: 6px; border-radius: 22px; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); box-shadow: 0 1px 2px rgba(51,26,20,.1), 0 10px 30px rgba(var(--tint), .18), 0 0 0 1px var(--line); }
.wp-pal__toggle { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 6px; border: 0; border-radius: 999px; background: none; cursor: pointer; font: inherit; font-size: 13px; font-weight: var(--w-semi, 600); color: var(--slate); }
.wp-pal__toggle i { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--coral-hi), var(--coral)); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.wp-pal { align-items: center; }
.wp-pal__body { display: flex; align-items: center; gap: 12px; padding-right: 6px; }
.wp-pal:not(.is-open) .wp-pal__body { display: none; }
.wp-pal__list { display: flex; align-items: center; gap: 8px; height: 30px; }
.wp-pal__ver { display: inline-flex; padding: 2px; border-radius: 9px; background: var(--soft); font-size: 12px; font-weight: 700; }
.wp-pal__ver a, .wp-pal__ver span { display: grid; place-items: center; height: 26px; padding: 0 10px; border-radius: 7px; text-decoration: none; color: var(--muted); }
.wp-pal__ver a:hover { color: var(--ink); }
.wp-pal__ver span { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.wp-pal__custom { display: flex; align-items: center; gap: 6px; padding-left: 12px; border-left: 1px solid var(--line); }
.wp-pal__swatch { position: relative; width: 26px; height: 26px; border-radius: 50%; cursor: pointer; background: conic-gradient(#ff5f5f, #ffb347, #ffe066, #7bd389, #5fb7ff, #a78bfa, #ff5f5f); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.wp-pal__swatch.is-on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.wp-pal__swatch input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.wp-pal__swatch:focus-within { outline: 2px solid var(--coral-head); outline-offset: 2px; }
.wp-pal__hex { width: 78px; height: 30px; padding: 0 8px; border: 0; border-radius: 8px; background: var(--soft); font-family: var(--font-num); font-size: 13px; color: var(--ink); }
.wp-pal__hex:focus { outline: none; box-shadow: inset 0 0 0 2px var(--coral-head); background: #fff; }
.wp-pal__hex[aria-invalid] { box-shadow: inset 0 0 0 2px var(--err); }
.wp-pal__reset { height: 30px; padding: 0 10px; border: 0; border-radius: 8px; background: none; font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.wp-pal__reset:hover { color: var(--ink); }
.wp-pal__fonts { display: flex; align-items: center; gap: 6px; padding-left: 12px; border-left: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.wp-pal__fonts select { height: 30px; padding: 0 8px; border: 0; border-radius: 8px; background: var(--soft); font-size: 13px; font-weight: var(--w-semi, 600); color: var(--ink); cursor: pointer; }
@media (max-width: 620px) {
  .wp-pal.is-open { right: 12px; flex-wrap: wrap; border-radius: 20px; }
  .wp-pal__body { flex-wrap: wrap; row-gap: 8px; }
  .wp-pal__fonts { border-left: 0; padding-left: 0; }
}
.wp-pal:not(.is-open) .wp-pal__toggle { padding-right: 6px; }
.wp-pal:not(.is-open) .wp-pal__toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.wp-pal__list button { position: relative; }
.wp-pal__list button::after { content: attr(data-name); position: absolute; left: 50%; bottom: calc(100% + 10px); padding: 4px 8px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 500; white-space: nowrap; opacity: 0; transform: translate(-50%, 4px); pointer-events: none; transition: opacity .15s var(--ease-out), transform .15s var(--ease-out); }
.wp-pal__list button:hover::after, .wp-pal__list button:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.wp-pal__list button { width: 22px; height: 22px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); transition: transform .15s var(--ease-out), box-shadow .15s; }
.wp-pal__list button:hover { transform: scale(1.1); }
.wp-pal__list button[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.wp-pal__list [data-theme-set="gold"] { background: linear-gradient(135deg, #f2b632, #eaa30a); }
.wp-pal__list [data-theme-set="peach"] { background: linear-gradient(135deg, #ffc4a6, #ff9466); }
.wp-pal__list [data-theme-set="apricot"] { background: linear-gradient(135deg, #ffd3a8, #f7a35c); }
.wp-pal__list [data-theme-set="rose"] { background: linear-gradient(135deg, #f8cdc6, #ee8a6f); }
.wp-pal__sep { width: 1px; height: 18px; background: var(--line); margin: 0 4px; align-self: center; }
.wp-pal__list [data-theme-set="orange"] { background: linear-gradient(135deg, #fbcf9f, #f9a85e); }
.wp-pal__list [data-theme-set="tiger"] { background: linear-gradient(135deg, #f6c977, #ef9459 55%, #c96a3a); }
.wp-pal__list [data-theme-set="tangerine"] { background: linear-gradient(135deg, #ffd2a6, #ffa024); }
.wp-pal__list [data-theme-set="amber"] { background: linear-gradient(135deg, #fcd34d, #f59e0b); }

/* появление секций (герой не анимируется) */
.motion [data-r] { transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.motion [data-r]:not(.in) { opacity: 0; transform: translateY(28px); }
.motion .hp-path [data-r]:nth-child(2), .motion .hp-biz__card[data-r] { transition-delay: 70ms; }

/* ---------- адаптив ---------- */
@media (max-width: 1180px) {
  .hp-hero__grid { grid-template-columns: minmax(0, 1fr) 440px; gap: 40px; }
  .hp-h1 { font-size: calc(clamp(40px, 4.9vw, 58px) * var(--h1-k, 1)); }
  .hp-path__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .hp-ways__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .hp-faq__grid { grid-template-columns: 1fr 1.4fr; gap: 40px; }
  .hp-biz__card { grid-template-columns: 1fr 1fr; gap: 36px; padding: 36px; }
  .wp-nav { gap: 20px; }
}
@media (max-width: 980px) {
  .wp-nav, .wp-top__act .wp-link, .wp-top__act .wp-btn { display: none; }
  .wp-burger { display: block; }
  .wp-top { height: 64px; }
  .hp-hero { margin-top: -64px; padding-top: 64px; }
  .hp-hero__grid { grid-template-columns: 1fr; padding: 28px 0 72px; gap: 44px; }
  .hp-hero__art { padding-top: 150px; margin-top: -40px; }
  .hp-silk { top: auto; bottom: 40px; width: 100%; height: 820px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 80%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 80%, transparent 100%); }
  .hp-hero__art { max-width: 560px; }
  .hp-path__grid, .hp-biz__card { grid-template-columns: 1fr; }
  .hp-ways__grid, .hp-faq__grid { grid-template-columns: 1fr; gap: 40px; }
  /* на телефоне схема стоит сразу под заголовком, над вариантами: видно, что меняется при выборе */
  .hp-ways__grid { gap: 0; }
  .hp-ways__text { display: contents; }
  .hp-ways__text > * { order: 1; }
  .hp-panel--ways { order: 2; margin-top: 28px; }
  .hp-ways__opts, .hp-ways__text > .hp-note { order: 3; }
  .hp-incl__grid { grid-template-columns: 1fr 1fr; }
  .hp-card--wide { grid-column: span 1; }
  .hp-deal { flex-direction: column; align-items: flex-start; padding: 28px; }
  .hp-sec { padding-top: 88px; }
  .hp-biz { padding-bottom: 88px; }
}
@media (max-width: 620px) {
  .wp-wrap { max-width: calc(100% - 32px); }
  .hp-h1 { font-size: calc(38px * var(--h1-k, 1)); letter-spacing: max(var(--h-track, -.03em), -.03em); }
  .hp-lead { font-size: 17px; }
  .hp-h2 { font-size: 30px; }
  .hp-sub { font-size: 16px; }
  .hp-form { grid-template-columns: 1fr; }
  .hp-kind__hint { display: none; }
  .hp-dims { grid-template-columns: 1fr; padding: 14px 4px 4px; }
  .hp-box { flex-direction: row; justify-content: flex-start; text-align: left; flex-wrap: wrap; padding: 10px 12px; }
  .hp-box__svg { width: 104px; height: 73px; }
  .hp-box > p { flex: 1 1 140px; }
  .hp-size__long { display: none !important; }
  .hp-size__short { display: block !important; }
  .hp-unit input { width: 110px; }
  .hp-dims__ok { justify-self: stretch; }
  .hp-box, .hp-dims__main, .hp-dims__ok { grid-column: auto; grid-row: auto; }
  .hp-quote { padding: 18px 14px 14px; border-radius: 18px; }
  .hp-quote__head { grid-template-columns: 1fr; }
  .hp-quote__route { font-size: 18px; }
  .hp-row { grid-template-columns: 1fr auto; gap: 10px; padding: 0 12px; }
  .hp-row__days { display: none; }
  .hp-row__name small::after { content: attr(data-days); }
  .hp-panel { padding: 20px 14px 36px; border-radius: 20px; }
  .hp-track { padding: 18px 16px; }
  .hp-ev time { display: none; }
  .hp-biz__card { padding: 20px 14px; border-radius: 20px; }
  .hp-pick { padding: 18px 14px; }
  .hp-pick__t { font-size: 16px; }
  .hp-pick__head { flex-direction: column; gap: 6px; }
  .hp-pick__list li { grid-template-columns: 22px 1fr auto; padding: 0 8px; }
  .hp-pick__list small { display: none; }
  .wp-foot__cols { grid-template-columns: 1fr 1fr; }
  .wp-foot__brand { grid-column: 1 / -1; }
  .hp-deal { padding: 22px 18px; }
  .hp-deal__list { grid-template-columns: 1fr; }
  .hp-ways__opts { grid-template-columns: 1fr; }
  .hp-panel--ways { padding: 28px 14px; }
  .hp-route { grid-template-columns: 96px 1fr 96px; padding: 24px 12px 18px; }
  .hp-route__end b { font-size: 13px; }
  .hp-incl__grid { grid-template-columns: 1fr; gap: 12px; }
  .hp-card__t { min-height: 0; }
  .hp-lv { padding: 12px; margin-top: 28px; border-radius: 20px; }
  .hp-lv__scale { padding: 20px 4px 14px; }
  .hp-lv__track { left: calc(4px + 10%); right: calc(4px + 10%); top: 31px; }
  .hp-lv__row b { font-size: 12px; }
  .hp-lv__row span { font-size: 10px; text-align: center; }
  .hp-lv__facts { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .wp-pal { left: auto; right: 12px; bottom: 12px; }
  .wp-pal.is-open { left: 12px; }
  .wp-pal:not(.is-open) { padding: 4px; }
  .hp-final__card { padding: 48px 18px; border-radius: 24px; }
  .hp-revs__nav { display: none; }
  .hp-revs__list { gap: 12px; margin-top: 28px; }
  .hp-rev { flex-basis: 86%; padding: 24px 20px; }
  .hp-rev blockquote { font-size: 16px; }
  .hp-final__btns .wp-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
