/* ==========================================================================
   Q-TRI — матовая глина. Стили лендинга
   ========================================================================== */

:root {
  --bg: #ECECE8;
  --paper: #F6F6F3;
  --ink: #0C0C0D;
  --muted: #65655F;
  --line: rgba(12, 12, 13, .14);
  --lime: #B4E44C;
  --c-powder: #FFB21A;
  --c-clay: #B4E44C;
  --c-paste: #2A8CFF;
  --err: #FF7A6B;

  --display: "Oswald", "Arial Narrow", "Roboto Condensed", sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --pad: clamp(20px, 4vw, 56px);
  --sec: clamp(88px, 11.5vw, 176px);
  --nav-h: 84px;

  --ease: cubic-bezier(.2, .75, .15, 1);
  --ease-io: cubic-bezier(.65, 0, .2, 1);
  --spring: cubic-bezier(.2, 1.3, .3, 1);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 8px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.5 var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }

::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 6px; }

.container { width: 100%; max-width: 1480px; margin-inline: auto; padding-inline: var(--pad); }

/* ---------- Типографика ---------- */
.label {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 13px/1 var(--text); letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted);
}
.label::before {
  content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime); box-shadow: inset 0 0 0 1px rgba(12, 12, 13, .28);
}
.label--light { color: rgba(255, 255, 255, .62); }
.label--light::before { box-shadow: none; }

.h-display {
  font: 700 clamp(54px, 9.6vw, 156px)/.9 var(--display);
  letter-spacing: -.014em; text-transform: uppercase;
  margin-top: clamp(16px, 1.6vw, 26px);
}
.h-display--md { font-size: clamp(44px, 6.2vw, 100px); }

.lead {
  font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; color: var(--muted);
  max-width: 42ch; margin-top: clamp(20px, 2.2vw, 34px);
}
.lead--light { color: rgba(255, 255, 255, .66); }

.note { font-size: 12px; letter-spacing: .02em; color: var(--muted); }

.link {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  font: 500 15px/1.2 var(--text); padding: 6px 0;
}
.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform-origin: right; transition: transform .5s var(--ease);
}
.link:hover::after { transform: scaleX(0); transform-origin: left; }
.link svg { transition: transform .5s var(--ease); }
.link:hover svg { transform: translateY(3px); }

/* ---------- Кнопки ---------- */
.btn {
  --fill: var(--ink); --fill-text: #fff;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  height: 54px; padding: 0 28px; border-radius: 999px;
  font: 600 15px/1 var(--text); letter-spacing: -.005em; white-space: nowrap;
  transition: color .45s var(--ease), translate .6s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
  background: var(--fill); transform: translateY(102%);
  transition: transform .55s var(--ease);
}
.btn:hover { color: var(--fill-text); }
.btn:hover::before { transform: none; }
.btn:active { scale: .98; }

.btn--lime { background: var(--lime); color: var(--ink); }
.btn--ink { background: var(--ink); color: #fff; --fill: var(--lime); --fill-text: var(--ink); }
.btn--acc { background: var(--pc); color: var(--ink); --fill: #fff; --fill-text: var(--ink); }
.btn--sm { height: 44px; padding: 0 22px; font-size: 14px; }
.btn--lg { height: 64px; padding: 0 12px 0 30px; font-size: 16px; }
.btn--block { width: 100%; justify-content: space-between; }

.btn__icon {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: var(--lime);
  transition: background .45s var(--ease), color .45s var(--ease), transform .55s var(--ease);
}
.btn--ink .btn__icon { background: var(--lime); color: var(--ink); }
.btn:hover .btn__icon { background: var(--lime); color: var(--ink); transform: rotate(-45deg); }
.btn--ink:hover .btn__icon { background: var(--ink); color: var(--lime); }

/* на тёмном фоне заливка белая */
.order .btn--lime, .sticky .btn--lime, .footer .btn--lime, .size--dark .btn--lime { --fill: #fff; --fill-text: var(--ink); }
.order .btn--lime:hover .btn__icon { background: var(--ink); color: #fff; }

/* ---------- Появление при скролле ---------- */
.line { display: block; }

.js .line {
  overflow: hidden;
  padding: .2em .06em .2em 0; margin: -.2em -.06em -.2em 0;
}
.js .line > span {
  display: block; transform: translateY(118%);
  transition: transform 1.15s var(--ease); transition-delay: var(--d, 0s);
}
.js .line:nth-child(2) > span { --d: .09s; }
.js .line:nth-child(3) > span { --d: .18s; }
.js [data-lines].is-in .line > span,
.js.is-ready .hero__title .line > span { transform: none; }

.js [data-reveal] {
  opacity: 0; transform: translate3d(0, 34px, 0);
  transition: opacity .9s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Заставка ---------- */
.loader { display: none; }
/* Шторка уезжает вверх через transform, а не clip-path: transform анимирует видеокарта,
   а clip-path Chrome перерисовывает покадрово — из-за этого на выходе экран моргал. */
.js .loader {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: var(--ink);
  transform: translate3d(0, 0, 0); will-change: transform;
  transition: transform .95s var(--ease-io), visibility 0s .95s;
}
.js:not(.is-loading) .loader { transform: translate3d(0, -101%, 0); visibility: hidden; pointer-events: none; }
.loader__logo { width: min(44vw, 210px); animation: loaderLogo .7s var(--ease) both; }
.loader__bar {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 4px; background: var(--lime);
  transform-origin: left; animation: loaderBar 1s var(--ease-io) both;
}
@keyframes loaderBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes loaderLogo { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Навигация ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 14px var(--pad); pointer-events: none;
}
.nav__bar {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: calc(1480px - var(--pad) * 2); height: 56px; margin-inline: auto;
  padding: 0; border-radius: 999px; border: 1px solid transparent;
  transition: background .5s var(--ease), border-color .5s var(--ease), padding .6s var(--ease), box-shadow .5s var(--ease);
}
.nav.is-scrolled .nav__bar {
  padding: 0 6px 0 22px;
  background: rgba(246, 246, 243, .78);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  border-color: rgba(12, 12, 13, .08);
  box-shadow: 0 10px 34px -14px rgba(12, 12, 13, .28);
}
.nav__logo { flex: none; display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.nav__logo img { width: 92px; }
/* Подпись линейки бренда рядом с логотипом */
.nav__line {
  display: inline-flex; align-items: center; gap: 12px;
  font: 600 13px/1 var(--display); letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink); white-space: nowrap;
}
.nav__line::before { content: ""; width: 1px; height: 18px; background: rgba(12, 12, 13, .3); }
.nav__links { display: flex; gap: clamp(18px, 2.4vw, 38px); font: 500 14px/1 var(--text); }
.nav__links a { position: relative; padding: 8px 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.js .nav__bar { opacity: 0; transform: translateY(-16px); }
.js.is-ready .nav__bar { opacity: 1; transform: none; transition: background .5s var(--ease), border-color .5s var(--ease), padding .6s var(--ease), box-shadow .5s var(--ease), opacity .9s var(--ease) .5s, transform .9s var(--ease) .5s; }

/* ---------- Первый экран ---------- */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  display: flex; flex-direction: column;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--nav-h) + clamp(8px, 2vh, 26px)) var(--pad) 30px;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(58% 72% at 80% 46%, #FAFAF7 0%, rgba(250, 250, 247, 0) 72%);
}
.hero__inner { display: contents; }

.hero__eyebrow { position: relative; z-index: 3; align-self: flex-start; }

.hero__title {
  position: relative; z-index: 1;
  margin: max(.12em, 16px) 0 0 -.03em;
  font: 700 min(14.2vw, 25.5vh)/.86 var(--display);
  letter-spacing: -.02em; text-transform: uppercase;
}

.hero__lower {
  position: relative; z-index: 3;
  display: flex; flex-direction: column; gap: clamp(20px, 3vh, 30px);
  max-width: 430px; margin-top: clamp(18px, 3.4vh, 40px);
}
.hero__sub { font-size: clamp(17px, 1.42vw, 21px); line-height: 1.42; letter-spacing: -.01em; }
.hero__cta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 26px; }

.hero__facts {
  position: relative; z-index: 3;
  display: flex; margin-top: auto; padding-top: 30px;
}
.hero__facts li { display: flex; flex-direction: column; gap: 6px; padding: 2px clamp(12px, 1.4vw, 22px); border-left: 1px solid var(--line); }
.hero__facts li:first-child { padding-left: 0; border-left: 0; }
.hero__facts a { display: flex; flex-direction: column; gap: 6px; }
.hero__facts strong { display: flex; align-items: center; gap: 9px; font: 600 clamp(16px, 1.45vw, 22px)/1 var(--display); text-transform: uppercase; letter-spacing: .01em; white-space: nowrap; }
.hero__facts strong::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(12, 12, 13, .22); transition: scale .45s var(--spring); }
.hero__facts a:hover strong::before { scale: 1.5; }
.hero__facts span { font-size: 13px; color: var(--muted); }

.hero__visual { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero__model { position: absolute; right: 0; bottom: 0; height: min(93%, 60vw); aspect-ratio: 1069 / 1201; }
.hero__model > div, .hero__model img { width: 100%; height: 100%; }
.hero__model img { object-fit: contain; object-position: right bottom; }
.hero__tin { position: absolute; left: 41.5%; bottom: 3.5%; width: clamp(250px, 31vw, 540px); }
.hero__tin img { width: 100%; filter: drop-shadow(0 36px 30px rgba(12, 12, 13, .26)); }
.hero__note { position: absolute; right: var(--pad); bottom: 16px; font-size: 11px; letter-spacing: .03em; color: rgba(255, 255, 255, .78); text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }

/* вход первого экрана */
.js .hero__eyebrow,
.js .hero__lower > *,
.js .hero__facts li,
.js .hero__note {
  opacity: 0; transform: translateY(24px);
  transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s);
}
.js.is-ready .hero__eyebrow,
.js.is-ready .hero__lower > *,
.js.is-ready .hero__facts li,
.js.is-ready .hero__note { opacity: 1; transform: none; }

.js .hero__title .line:nth-child(1) > span { --d: .2s; }
.js .hero__title .line:nth-child(2) > span { --d: .3s; }
.js .hero__eyebrow { --d: .15s; }
.js .hero__sub { --d: .55s; }
.js .hero__cta { --d: .65s; }
.js .hero__facts li:nth-child(1) { --d: .8s; }
.js .hero__facts li:nth-child(2) { --d: .88s; }
.js .hero__facts li:nth-child(3) { --d: .96s; }
.js .hero__note { --d: 1.2s; }

/* слои картинок готовятся заранее, ещё под заставкой — иначе Chrome рисует их в момент появления и экран мигает */
.js .hero__model img, .js .hero__tin img { will-change: opacity, transform; }
.js .hero__model img {
  opacity: 0; transform: translateY(8%) scale(1.04); transform-origin: right bottom;
  transition: opacity 1.1s var(--ease) .3s, transform 1.6s var(--ease) .3s;
}
.js.is-ready .hero__model img { opacity: 1; transform: none; }

.js .hero__tin img {
  opacity: 0; transform: translateY(90px) rotate(-18deg) scale(.84);
  transition: opacity .7s var(--ease) .65s, transform 1.4s var(--spring) .65s, filter .6s;
}
.js.is-ready .hero__tin img { opacity: 1; transform: none; }
.js.is-ready .hero__tin-float { animation: float 7s ease-in-out 2.2s infinite; }
@keyframes float {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -12px; rotate: 1.4deg; }
}

/* ---------- Бегущая строка ---------- */
.marquee { position: relative; z-index: 3; background: var(--lime); color: var(--ink); overflow: hidden; padding: clamp(14px, 1.5vw, 22px) 0; }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__set {
  display: flex; align-items: center; flex: none;
  gap: clamp(20px, 2.6vw, 42px); padding-right: clamp(20px, 2.6vw, 42px);
  font: 600 clamp(24px, 3.3vw, 50px)/1 var(--display); text-transform: uppercase; white-space: nowrap;
}
.marquee__set i {
  flex: none; width: .42em; height: .42em; background: var(--ink);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}

/* ---------- Линейка ---------- */
.lineup {
  --acc: var(--c-clay);
  position: relative; isolation: isolate; overflow: clip;
  background: var(--ink); color: #fff; padding: var(--sec) 0;
}
.lineup[data-active="powder"] { --acc: var(--c-powder); }
.lineup[data-active="paste"] { --acc: var(--c-paste); }
.lineup__glow {
  position: absolute; z-index: -1; right: -12%; bottom: -18%; width: min(78vw, 1200px); aspect-ratio: 1;
  color: var(--acc); opacity: .24; pointer-events: none;
  background: radial-gradient(closest-side, currentColor 0%, transparent 72%);
  transition: color 1s var(--ease);
}
.lineup__head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px 60px; }
.lineup__intro { max-width: 34ch; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.5; color: rgba(255, 255, 255, .66); }

/* шкала «объём — контроль» */
.scale { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: clamp(16px, 2.6vw, 44px); margin-top: clamp(38px, 4.8vw, 76px); }
.scale__end { font: 500 12px/28px var(--text); letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; color: rgba(255, 255, 255, .55); }
.scale__track { --pos: 50; position: relative; height: 96px; cursor: pointer; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.scale__line { position: absolute; left: 0; right: 0; top: 13px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--c-powder), var(--c-clay) 50%, var(--c-paste)); }
.scale__thumb {
  position: absolute; z-index: 2; top: 14px; left: calc(var(--pos) * 1%); width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border-radius: 50%; background: var(--ink); border: 2px solid var(--acc); pointer-events: none;
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--acc) 24%, transparent);
  transition: left .75s var(--spring), border-color .6s var(--ease), box-shadow .6s var(--ease);
}
.scale__thumb::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--acc); transition: background-color .6s var(--ease); }
.scale__stop { position: absolute; top: 0; left: 50%; translate: -50% 0; padding: 42px 0 0; text-align: center; white-space: nowrap; color: rgba(255, 255, 255, .5); transition: color .45s var(--ease); }
.scale__stop::before { content: ""; position: absolute; top: 9px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--c); }
.scale__stop:nth-of-type(1) { left: 0; translate: 0 0; text-align: left; }
.scale__stop:nth-of-type(1)::before { left: 0; }
.scale__stop:nth-of-type(3) { left: auto; right: 0; translate: 0 0; text-align: right; }
.scale__stop:nth-of-type(3)::before { left: auto; right: -5px; margin-left: 0; }
.scale__stop b { display: block; font: 600 clamp(18px, 1.85vw, 27px)/1 var(--display); letter-spacing: .01em; text-transform: uppercase; }
.scale__stop span { display: block; margin-top: 7px; font-size: 13px; }
.scale__stop:hover, .scale__stop.is-active { color: #fff; }

/* карточка средства */
.lineup__stage { display: grid; margin-top: clamp(22px, 2.8vw, 44px); }
.product { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: clamp(24px, 4vw, 76px); }
.product + .product { margin-top: 70px; }
.js .product { grid-area: 1 / 1; margin: 0; visibility: hidden; pointer-events: none; transition: visibility 0s .4s; }
.js .product.is-active { visibility: visible; pointer-events: auto; transition: visibility 0s 0s; }

.js .product__info > * { opacity: 0; transform: translateY(24px); transition: opacity .35s var(--ease), transform .4s var(--ease); }
.js .product.is-active .product__info > * { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(.1s + var(--k, 0) * .06s); }
.product__info > :nth-child(2) { --k: 1; } .product__info > :nth-child(3) { --k: 2; } .product__info > :nth-child(4) { --k: 3; }
.product__info > :nth-child(5) { --k: 4; } .product__info > :nth-child(6) { --k: 5; }

.product__claims { display: flex; flex-wrap: wrap; gap: 8px; }
.product__claims span { display: inline-flex; align-items: center; height: 32px; padding: 0 13px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; font: 500 12.5px/1 var(--text); letter-spacing: .02em; }
.product__claims span:first-child { background: var(--pc); border-color: var(--pc); color: var(--ink); font-weight: 600; }
.product__name { margin-top: clamp(14px, 1.6vw, 22px); font: 700 clamp(56px, 6.6vw, 112px)/.88 var(--display); letter-spacing: -.014em; text-transform: uppercase; }
.product__tag { margin-top: 14px; font: 500 clamp(19px, 1.75vw, 27px)/1.2 var(--text); letter-spacing: -.02em; color: var(--pc); }

.meter { display: grid; gap: 12px; margin: clamp(20px, 2vw, 30px) 0 0; }
.meter__row { display: grid; grid-template-columns: clamp(108px, 10vw, 150px) auto; justify-content: start; align-items: center; }
.meter dt { font: 600 clamp(16px, 1.4vw, 20px)/1 var(--display); letter-spacing: .03em; text-transform: uppercase; }
.meter dd { display: flex; gap: 10px; margin: 0; font: 500 15px/1 var(--text); color: rgba(255, 255, 255, .7); }
.meter i { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .38); transition: background-color .45s var(--ease), border-color .45s var(--ease), scale .6s var(--spring); }
.meter i.on { background: var(--pc); border-color: var(--pc); }
.js .product:not(.is-active) .meter i.on { background: transparent; border-color: rgba(255, 255, 255, .38); scale: .55; transition-duration: 0s; transition-delay: .4s; }
.js .product.is-active .meter i.on { transition-delay: calc(.4s + var(--i) * .08s); }

.product__notes { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, .9fr); margin-top: clamp(20px, 2vw, 30px); border-top: 1px solid rgba(255, 255, 255, .16); }
.product__notes > div { padding: 16px 16px 0 0; }
.product__notes > div + div { padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .16); }
.product__notes span { display: block; font: 500 11.5px/1 var(--text); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.product__notes > div:last-child b { white-space: nowrap; }
.product__notes b { display: block; margin-top: 10px; font: 600 clamp(17px, 1.5vw, 22px)/1.1 var(--display); text-transform: uppercase; }
.product__notes p { margin-top: 8px; font-size: 13.5px; line-height: 1.45; color: rgba(255, 255, 255, .62); }
.product .btn { margin-top: clamp(22px, 2.2vw, 34px); }

.product__visual { position: relative; aspect-ratio: 1 / .9; }
.pv { position: absolute; height: auto; max-width: none; }
.pv--aroma { z-index: 1; right: -5%; top: -3%; width: 60%; }
.pv--tin { z-index: 2; left: 1%; top: 25%; width: 82%; filter: drop-shadow(0 40px 44px rgba(0, 0, 0, .62)); }
.pv--smear { z-index: 3; left: 30%; bottom: -9%; width: 60%; filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .5)); }
.js .pv { opacity: 0; transition: opacity .3s var(--ease), transform .4s var(--ease); }
.js .pv--aroma { transform: translate3d(10%, -8%, 0) rotate(14deg) scale(.86); }
.js .pv--tin { transform: translate3d(9%, 0, 0) rotate(7deg) scale(.88); }
.js .pv--smear { transform: translate3d(-12%, 10%, 0) scale(.9); }
.js .product.is-active .pv { opacity: 1; transform: none; }
.js .product.is-active .pv--tin { transition: opacity .7s var(--ease) .06s, transform 1.15s var(--spring) .06s; }
.js .product.is-active .pv--aroma { transition: opacity .8s var(--ease) .2s, transform 1.4s var(--ease) .2s; }
.js .product.is-active .pv--smear { transition: opacity .7s var(--ease) .3s, transform 1.2s var(--ease) .3s; }

.lineup__pin { position: relative; }
/* пока ползунок ведёт прокрутка, он не «догоняет» с пружиной, а идёт точно за ней */
.lineup.is-scrub .scale__thumb { transition: border-color .6s var(--ease), box-shadow .6s var(--ease); }

/* Десктоп: блок закреплён на экране целиком — заголовок, карточка средства и шкала под ней.
   Прокрутка ведёт ползунок по шкале: паста-пудра → глина → паста. */
@media (min-width: 700px) and (min-height: 600px) {
  .js .lineup { height: 300vh; padding: 0; }
  .js .lineup__pin {
    position: sticky; top: 0; height: 100vh;
    display: flex; flex-direction: column;
    padding-top: calc(var(--nav-h) + 4px); padding-bottom: clamp(16px, 2.8vh, 30px);
  }
  .js .lineup__head { flex: none; flex-wrap: nowrap; align-items: flex-end; }
  .js .lineup .h-display { margin-top: 12px; font-size: min(5vw, 9.4vh); white-space: nowrap; }
  .js .lineup .h-display .line { display: inline-block; vertical-align: top; }
  .js .lineup__intro { max-width: 40ch; font-size: clamp(14px, 1.1vw, 16px); }

  .js .lineup__stage { order: 2; flex: 1; min-height: 0; margin-top: clamp(8px, 1.8vh, 22px); grid-template-rows: minmax(0, 1fr); }
  .js .product { height: 100%; min-height: 0; grid-template-rows: minmax(0, 1fr); }
  .js .product__visual { justify-self: center; height: 100%; width: auto; max-width: 100%; aspect-ratio: 1 / .84; }
  /* картинка вписывается в ячейку целиком и на низких, и на высоких экранах */
  .js .lineup__stage { container-type: size; }
  @supports (width: 1cqh) {
    .js .product__visual { height: auto; width: min(100%, calc(100cqh / .84)); }
  }
  .js .pv--tin { top: 23%; }
  .js .pv--smear { bottom: -3%; }

  .js .scale { order: 3; flex: none; margin-top: clamp(8px, 1.8vh, 20px); column-gap: clamp(30px, 2.8vw, 46px); }
  .js .scale__track { height: 76px; }
  .js .scale__stop { padding-top: 33px; }
  .js .scale__stop b { font-size: clamp(16px, 1.5vw, 22px); }
  .js .scale__stop span { margin-top: 5px; font-size: 12px; }

  /* карточка плотнее, чтобы всё помещалось в высоту экрана */
  .js .product__name { margin-top: min(16px, 1.7vh); font-size: min(5.6vw, 9.2vh); }
  .js .product__tag { margin-top: min(12px, 1.2vh); font-size: clamp(17px, 1.5vw, 23px); }
  .js .meter { gap: min(11px, 1.2vh); margin-top: min(20px, 2.2vh); }
  .js .meter i { width: 19px; height: 19px; }
  .js .product__notes { margin-top: min(20px, 2.2vh); grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr) auto; }
  .js .product__notes > div { padding-top: 14px; }
  .js .product__notes p { font-size: 13px; line-height: 1.4; }
  .js .product .btn { height: 54px; margin-top: min(20px, 2.2vh); }
  .js .product .btn__icon { width: 34px; height: 34px; }
}
/* невысокие экраны ноутбуков: ещё плотнее */
@media (min-width: 700px) and (min-height: 600px) and (max-height: 830px) {
  .js .product__notes p { display: none; }
  .js .lineup .h-display { font-size: min(5vw, 7.8vh); }
  .js .product__name { font-size: min(5.6vw, 8.4vh); }
  .js .meter { gap: 9px; }
  .js .meter i { width: 17px; height: 17px; }
  .js .product .btn { height: 50px; }
}
/* совсем низкие окна: оставляем главное — название, шкалы и кнопку */
@media (min-width: 700px) and (min-height: 600px) and (max-height: 699px) {
  .js .lineup .h-display { font-size: min(5vw, 7.4vh); }
  .js .product__notes { display: none; }
}
/* планшеты и узкие окна: те же две колонки, без вводного текста */
@media (min-width: 700px) and (max-width: 1023px) and (min-height: 600px) {
  .js .lineup__intro { display: none; }
  .js .lineup .h-display { font-size: min(6.6vw, 8.4vh); }
  .js .scale { grid-template-columns: auto minmax(0, 1fr) auto; row-gap: 0; }
  .js .scale__track { grid-column: auto; grid-row: auto; margin-inline: 0; }
  .js .scale__end { font-size: 10.5px; letter-spacing: .06em; }
  .js .scale__stop span { display: none; }
  .js .scale__track { height: 58px; }
  .js .product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
  .js .product__visual { order: 0; margin: 0; }
  .js .product__name { font-size: min(6.4vw, 8.4vh); }
  .js .product__notes { grid-template-columns: 1fr; }
  .js .product__notes > div + div, .js .product__notes p { display: none; }
  .js .product .btn { width: auto; }
}
/* телефоны: свечение стоит за картинкой, а не внизу блока */
@media (max-width: 699px) {
  .lineup__glow { right: -40%; bottom: auto; top: 250px; width: 130vw; }
}

/* ---------- О продукте ---------- */
.about { padding: var(--sec) 0 calc(var(--sec) * .8); }
.about__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 4.4fr); gap: 24px; align-items: start; }
.about__top .label { margin-top: .9em; }
.about__text {
  font: 500 clamp(28px, 4.5vw, 72px)/1.07 var(--text); letter-spacing: -.04em;
  max-width: 19.5em;
}
.about__text .w { opacity: .14; transition: opacity .25s linear; }

.benefits {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: calc(var(--sec) * .62);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.benefit {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: clamp(230px, 22vw, 320px);
  padding: 24px clamp(18px, 2vw, 30px) 28px;
  border-left: 1px solid var(--line);
  transition: color .5s var(--ease), opacity .9s var(--ease), transform 1s var(--ease);
  transition-delay: 0s, var(--d, 0s), var(--d, 0s);
}
.benefit:last-child { border-right: 1px solid var(--line); }
.benefit::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink);
  transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease);
}
.benefit__n { font: 500 15px/1 var(--display); letter-spacing: .04em; color: var(--muted); transition: color .5s var(--ease); }
.benefit__t { margin-top: auto; font: 600 clamp(25px, 2.5vw, 40px)/1 var(--display); text-transform: uppercase; }
.benefit p { margin-top: 12px; font-size: 15px; line-height: 1.45; color: var(--muted); max-width: 26ch; transition: color .5s var(--ease); }
@media (hover: hover) {
  .benefit:hover { color: #fff; }
  .benefit:hover::before { transform: none; }
  .benefit:hover .benefit__n { color: var(--lime); }
  .benefit:hover p { color: rgba(255, 255, 255, .7); }
}

/* ---------- До / После ---------- */
.result { background: var(--paper); padding: var(--sec) 0; border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0; }
.result__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 110px); align-items: center; }
.result__copy .btn { margin-top: clamp(26px, 3vw, 42px); }

.ticks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.ticks li {
  display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 16px 0 12px;
  border: 1px solid var(--line); border-radius: 999px; font: 500 14px/1 var(--text);
}
.ticks li::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--lime);
  -webkit-mask: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.6 2.6L13 6.6' fill='none' stroke='%230C0C0D' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.result__media { justify-self: end; width: 100%; max-width: 620px; }
.result__media .note { margin-top: 12px; text-align: right; }

.ba {
  --pos: 50%;
  position: relative; width: 100%; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: clamp(22px, 2.4vw, 34px); background: #d9d9d5;
  cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; pointer-events: none; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; outline: none; }
.ba__knob {
  position: absolute; top: 50%; left: 50%; translate: -50% -50%;
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: var(--lime); color: var(--ink);
  box-shadow: 0 12px 34px rgba(12, 12, 13, .3);
  transition: scale .35s var(--ease);
}
.ba:hover .ba__knob { scale: 1.08; }
.ba.is-drag .ba__knob { scale: .9; }
.ba__handle:focus-visible .ba__knob { outline: 2px solid var(--ink); outline-offset: 3px; }
.ba__tag {
  position: absolute; top: 18px; height: 34px; padding: 0 14px; border-radius: 999px;
  display: inline-flex; align-items: center;
  font: 600 12px/1 var(--text); letter-spacing: .06em; text-transform: uppercase;
  transition: opacity .35s var(--ease);
}
.ba__tag--l { left: 18px; background: rgba(12, 12, 13, .6); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ba__tag--r { right: 18px; background: var(--lime); color: var(--ink); }
.ba.hide-l .ba__tag--l, .ba.hide-r .ba__tag--r { opacity: 0; }

/* ---------- Три способа ---------- */
.methods { position: relative; background: var(--paper); }
.methods__pin { padding: 0 0 var(--sec); }
.methods__head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 22px 40px; margin-bottom: clamp(26px, 3.6vw, 52px); }
.methods__head .h-display { margin-top: 16px; }

.methods__tabs { display: flex; gap: 8px; }
.methods__tab {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 22px;
  border: 1px solid var(--line); border-radius: 999px;
  font: 500 15px/1 var(--text); white-space: nowrap;
  transition: background .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease);
}
.methods__tab b { font: 500 14px/1 var(--display); letter-spacing: .04em; color: var(--muted); transition: color .45s var(--ease); }
.methods__tab i { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--lime); transform: scaleX(var(--p, 0)); transform-origin: left; opacity: 0; }
.methods__tab:hover { border-color: var(--ink); }
.methods__tab.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.methods__tab.is-active b { color: var(--lime); }
.methods__tab.is-active i { opacity: 1; }

.methods__stage { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(28px, 5.4vw, 100px); align-items: center; }

.methods__media { position: relative; isolation: isolate; aspect-ratio: 1 / .98; }
.mfig { position: absolute; inset: 0; display: none; }
.mfig:first-of-type { display: block; }
.js .mfig {
  display: block;
  opacity: 0;
  mix-blend-mode: plus-lighter;
  pointer-events: none;
  transition: opacity .48s ease-in-out;
}
.js .mfig.is-active { opacity: 1; }
.mfig__main {
  position: absolute; left: 0; top: 0; width: 70%; height: 100%;
  object-fit: cover; object-position: 50% 18%; border-radius: clamp(20px, 2.2vw, 32px);
}
.mfig__inset {
  position: absolute; right: 0; bottom: 7%; width: 41%; aspect-ratio: 4 / 5;
  object-fit: cover; object-position: 50% 20%;
  border-radius: clamp(16px, 1.8vw, 26px); outline: 7px solid var(--paper);
}
.mfig__inset--wide { object-position: 62% 30%; }
.methods__note { position: absolute; left: 14px; bottom: 14px; z-index: 3; padding: 6px 11px; border-radius: 999px; background: rgba(12, 12, 13, .5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-size: 11px; }

.methods__panels { display: grid; }
.method + .method { margin-top: 56px; }
.js .method { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transform: translateY(26px); transition: opacity .4s var(--ease), transform .4s var(--ease), visibility 0s .4s; }
.js .method.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .8s var(--ease) .22s, transform .9s var(--ease) .22s, visibility 0s 0s; }

.method__k { display: flex; flex-wrap: wrap; gap: 8px; }
.method__k span {
  display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); font: 500 13px/1 var(--text); letter-spacing: .01em;
}
.method__k span:first-child { background: var(--lime); border-color: var(--lime); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.method__t { margin: clamp(16px, 2vw, 26px) 0 clamp(18px, 2.2vw, 32px); font: 700 clamp(46px, 5.6vw, 96px)/.92 var(--display); letter-spacing: -.012em; text-transform: uppercase; }

.steps { border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: clamp(52px, 5vw, 76px) 1fr; align-items: baseline; padding: clamp(14px, 1.5vw, 20px) 0; border-bottom: 1px solid var(--line); }
.steps span { font: 500 clamp(24px, 2.3vw, 36px)/1 var(--display); color: var(--muted); }
.steps p { font-size: clamp(16px, 1.32vw, 19px); line-height: 1.35; letter-spacing: -.005em; }
.js .method.is-active .steps li { animation: stepIn .8s var(--ease) both; animation-delay: calc(.32s + var(--i) * .09s); }
@keyframes stepIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* закреплённая сцена на десктопе: скролл переключает способы */
@media (min-width: 1024px) and (min-height: 700px) {
  .js .methods { height: 330vh; }
  .js .methods__pin {
    position: sticky; top: 0; height: 100vh; overflow: hidden;
    display: flex; flex-direction: column;
    padding: calc(var(--nav-h) + 6px) 0 clamp(20px, 3.4vh, 40px);
  }
  .js .methods__head { margin-bottom: clamp(18px, 3.4vh, 40px); }
  .js .methods__head .h-display { font-size: min(5.2vw, 9.6vh); }
  .js .methods__stage { flex: 1; min-height: 0; grid-template-rows: minmax(0, 1fr); align-items: center; }
  .js .methods__media { height: 100%; aspect-ratio: auto; }
  .js .method__t { font-size: min(5.6vw, 10.5vh); margin: min(26px, 2.6vh) 0 min(30px, 3vh); }
  .js .steps li { padding: min(20px, 2.1vh) 0; }
}

/* ---------- Текстура ---------- */
.texture { position: relative; isolation: isolate; overflow: clip; background: var(--ink); color: #fff; padding: calc(var(--sec) * .9) 0 calc(var(--sec) * .55); }
/* слова лежат поверх мазка и инвертируются на нём: белые на чёрном, чёрные на белом */
.texture__stage { position: relative; }
.texture__words {
  position: relative; z-index: 2; mix-blend-mode: difference; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: clamp(90px, 19vw, 330px);
  font: 700 clamp(84px, 22.5vw, 400px)/.86 var(--display); letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap;
  color: #fff;
  user-select: none; -webkit-user-select: none;
}
.texture__swatch {
  position: absolute; z-index: 1; left: 50%; top: 50%;
  width: clamp(280px, 58vw, 1020px); translate: -50% -50%;
}
.texture__swatch img { width: 100%; filter: drop-shadow(0 50px 60px rgba(0, 0, 0, .55)); }
.texture__foot { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 60px; flex-wrap: wrap; margin-top: clamp(40px, 6vw, 96px); }
.texture__h { margin-top: 16px; font: 600 clamp(34px, 4vw, 64px)/1 var(--display); text-transform: uppercase; }
.texture__p { max-width: 34ch; font-size: clamp(17px, 1.35vw, 20px); color: rgba(255, 255, 255, .68); }

/* ---------- Формула ---------- */
.formula { position: relative; overflow: clip; background: var(--bg); padding: var(--sec) 0; }
.formula__copy { position: relative; z-index: 2; max-width: min(56%, 760px); }
.ingr { margin-top: clamp(30px, 3.6vw, 56px); border-top: 1px solid var(--line); }
.ingr li {
  display: grid; grid-template-columns: clamp(40px, 4vw, 64px) minmax(0, 1fr) minmax(0, 1fr); align-items: baseline; gap: 12px;
  padding: clamp(15px, 1.5vw, 22px) 0; border-bottom: 1px solid var(--line);
}
.ingr span { font: 500 14px/1 var(--display); letter-spacing: .04em; color: var(--muted); }
.ingr b { font: 600 clamp(22px, 2.3vw, 36px)/1.05 var(--display); text-transform: uppercase; }
.ingr em { font-style: normal; font-size: 15px; line-height: 1.4; color: var(--muted); }

.formula__art { position: absolute; top: 0; right: 0; bottom: 0; width: 46%; z-index: 1; pointer-events: none; }
.formula__art img { position: absolute; max-width: none; filter: drop-shadow(0 30px 34px rgba(12, 12, 13, .2)); }
.formula__coconut { right: -5%; top: 16%; width: 80%; height: auto; }
.formula__jojoba { left: 0; bottom: 9%; width: clamp(170px, 20vw, 330px); height: auto; }
.formula__oil { left: 10%; top: 13%; width: clamp(90px, 10vw, 170px); height: auto; }

/* ---------- Примеры укладок ---------- */
.look { overflow: clip; background: var(--paper); padding: var(--sec) 0 calc(var(--sec) * .7); border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0; }
.look__viewport { margin-top: clamp(34px, 4.6vw, 70px); overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.look__viewport::-webkit-scrollbar { display: none; }
.look__track { display: flex; align-items: flex-start; gap: clamp(10px, 1.5vw, 22px); width: max-content; padding-inline: var(--pad); will-change: transform; }
.look__item { flex: none; width: clamp(220px, 23.5vw, 380px); aspect-ratio: 3 / 4.15; overflow: hidden; border-radius: clamp(18px, 2vw, 28px); background: #dededa; scroll-snap-align: center; }
.look__item:nth-child(even) { margin-top: clamp(22px, 4.4vw, 72px); }
.look__item img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: transform 1.3s var(--ease); }
.look__item:hover img { transform: scale(1.06); }
.look__note { margin-top: 20px; }
@media (min-width: 900px) {
  .fine .look__viewport { overflow: visible; }
}

/* ---------- Вопросы ---------- */
.faq { background: var(--bg); padding: var(--sec) 0; border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0; margin-top: calc(clamp(28px, 4vw, 56px) * -1); position: relative; }
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(30px, 5vw, 90px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--nav-h) + 20px); }
.faq__trio { display: block; max-width: 440px; margin-top: clamp(26px, 3.4vw, 52px); }
.faq__trio img { width: 100%; filter: drop-shadow(0 22px 22px rgba(12, 12, 13, .2)); transition: transform .9s var(--ease); }
.faq__trio:hover img { transform: translateY(-6px) rotate(-2deg); }
.faq__trio .link { margin-top: 18px; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item button {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%;
  padding: clamp(20px, 2vw, 30px) 0; text-align: left;
  font: 500 clamp(18px, 1.7vw, 26px)/1.25 var(--text); letter-spacing: -.02em;
}
.faq__item button i { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); transition: background .45s var(--ease), border-color .45s var(--ease), rotate .6s var(--ease); }
.faq__item button i::before, .faq__item button i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.6px; margin: -.8px 0 0 -7px; background: currentColor; transition: transform .5s var(--ease); }
.faq__item button i::after { transform: rotate(90deg); }
.faq__item button:hover i { border-color: var(--ink); }
.faq__item.is-open button i { background: var(--lime); border-color: var(--lime); rotate: 180deg; }
.faq__item.is-open button i::after { transform: rotate(0deg); }
.faq__a p { max-width: 58ch; padding: 0 60px clamp(20px, 2vw, 30px) 0; color: var(--muted); }
.js .faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.js .faq__a > div { overflow: hidden; min-height: 0; opacity: 0; transition: opacity .4s var(--ease); }
.js .faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.js .faq__item.is-open .faq__a > div { opacity: 1; transition-delay: .12s; }

/* ---------- Заказ ---------- */
.order {
  position: relative; overflow: clip; background: var(--ink); color: #fff;
  padding: var(--sec) 0;
  border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0;
}
.order::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(42% 56% at 80% 62%, rgba(180, 228, 76, .2), rgba(180, 228, 76, 0) 70%);
}
.order__copy { position: relative; z-index: 2; max-width: min(100%, 600px); }
.order .h-display { font-size: clamp(54px, 6.9vw, 112px); white-space: nowrap; }
.order__art { position: absolute; right: 0; bottom: 0; z-index: 1; width: min(43%, 680px); pointer-events: none; }
.order__art img { width: 100%; margin-left: auto; }

.form { margin-top: clamp(26px, 3vw, 44px); }
.field { margin-bottom: 4px; }
.field__box { position: relative; }
.field__box::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.field__box:focus-within::after { transform: none; }
.field input {
  display: block; width: 100%; padding: 30px 0 13px;
  background: transparent; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .24); border-radius: 0; outline: none;
  color: #fff; font: 500 clamp(18px, 1.5vw, 22px)/1.2 var(--text); letter-spacing: -.01em;
  transition: border-color .3s;
}
.field input:-webkit-autofill { -webkit-text-fill-color: #fff; -webkit-box-shadow: 0 0 0 100px var(--ink) inset; caret-color: #fff; }
.field label {
  position: absolute; left: 0; top: 30px; pointer-events: none;
  font-size: clamp(18px, 1.5vw, 22px); line-height: 1.2; color: rgba(255, 255, 255, .5);
  transform-origin: left top; transition: transform .4s var(--ease), color .3s;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label { transform: translateY(-25px) scale(.62); color: rgba(255, 255, 255, .62); }
.field__err { display: block; min-height: 22px; padding-top: 5px; font-size: 13px; line-height: 1.3; color: var(--err); opacity: 0; transform: translateY(-4px); transition: opacity .3s, transform .3s; }
.field.is-error .field__err { opacity: 1; transform: none; }
.field.is-error input { border-bottom-color: var(--err); }

.form__cap { display: block; margin-bottom: 10px; font-size: 15px; color: rgba(255, 255, 255, .56); }
.pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 4px; }
.pick label { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick__card {
  display: flex; flex-direction: column; gap: 9px; height: 100%; padding: 14px 12px 13px;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 18px;
  transition: border-color .35s var(--ease), background-color .35s var(--ease), translate .5s var(--ease);
}
.pick__card b { font: 600 clamp(15px, 1.3vw, 18px)/1.05 var(--display); letter-spacing: .01em; text-transform: uppercase; }
.pick__card em { font-style: normal; font-size: 12px; line-height: 1.3; color: rgba(255, 255, 255, .56); }
.pick label:hover .pick__card { border-color: rgba(255, 255, 255, .6); }
.pick input:checked + .pick__card { border-color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); translate: 0 -3px; }
.pick input:focus-visible + .pick__card { outline: 2px solid #fff; outline-offset: 3px; }
/* крышка банки, нарисованная кодом */
.lid {
  display: block; width: 40px; aspect-ratio: 1; border-radius: 50%;
  background: linear-gradient(90deg, var(--c) 0 31%, #161618 31%);
  box-shadow: 0 0 0 2px #d9dadc, 0 0 0 3px #6c6d70, 0 8px 14px rgba(0, 0, 0, .5);
  transition: rotate .7s var(--spring);
}
.pick input:checked + .pick__card .lid { rotate: -14deg; }

.seg { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.seg__label { margin-right: 10px; font-size: 15px; color: rgba(255, 255, 255, .56); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label span {
  display: inline-flex; align-items: center; height: 46px; padding: 0 24px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .24); font: 600 15px/1 var(--text);
  transition: background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}
.seg label:hover span { border-color: #fff; }
.seg input:checked + span { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.seg input:focus-visible + span { outline: 2px solid #fff; outline-offset: 3px; }

.check { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 26px; font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, .62); cursor: pointer; }
.check input {
  -webkit-appearance: none; appearance: none; flex: none; display: grid; place-items: center;
  width: 20px; height: 20px; margin: 0; border: 1px solid rgba(255, 255, 255, .45); border-radius: 6px; cursor: pointer;
  transition: background .25s, border-color .25s;
}
.check input::after { content: ""; width: 10px; height: 6px; margin-top: -2px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg) scale(0); transition: transform .3s var(--spring); }
.check input:checked { background: var(--lime); border-color: var(--lime); }
.check input:checked::after { transform: rotate(-45deg) scale(1); }
.check a { text-decoration: underline; text-underline-offset: 3px; }
.check.is-error { color: var(--err); }
.check.is-error input { border-color: var(--err); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn__icon svg { animation: spin .8s linear infinite; }
.btn.is-loading .btn__icon svg path { d: path("M12 4a8 8 0 1 0 8 8"); }
@keyframes spin { to { transform: rotate(360deg); } }

.form__fail { margin-top: 14px; font-size: 14px; color: var(--err); }
.form__alt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 22px; font-size: 15px; color: rgba(255, 255, 255, .6); }
.form__alt .link { color: #fff; }

.done { margin-top: clamp(30px, 3.4vw, 50px); outline: none; }
.done__icon { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--lime); color: var(--ink); animation: pop .8s var(--spring) both; }
.done__icon path { stroke-dasharray: 26; stroke-dashoffset: 26; animation: draw .55s var(--ease) .35s forwards; }
.done__t { margin-top: 26px; font: 600 clamp(34px, 3.6vw, 56px)/1 var(--display); text-transform: uppercase; animation: rise .8s var(--ease) .15s both; }
.done__p { margin-top: 14px; max-width: 36ch; font-size: clamp(17px, 1.35vw, 20px); color: rgba(255, 255, 255, .68); animation: rise .8s var(--ease) .25s both; }
.done__demo { margin-top: 22px; padding: 14px 16px; max-width: 46ch; border: 1px dashed rgba(255, 255, 255, .3); border-radius: 14px; font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, .7); }
@keyframes pop { from { transform: scale(0); } to { transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Подвал ---------- */
.footer { position: relative; background: var(--ink); color: #fff; padding: 0 0 26px; }
.footer__top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding-top: 30px; padding-bottom: clamp(40px, 6vw, 90px); border-top: 1px solid rgba(255, 255, 255, .14); }
.footer__links { display: flex; flex-wrap: wrap; gap: 10px clamp(18px, 2.4vw, 38px); font: 500 14px/1 var(--text); color: rgba(255, 255, 255, .7); }
.footer__links a { transition: color .3s; }
.footer__links a:hover { color: var(--lime); }
.footer__word { padding-inline: var(--pad); }
.footer__word img { width: 100%; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: clamp(26px, 3vw, 44px); font-size: 12px; color: rgba(255, 255, 255, .5); }
.footer__bottom a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Закреплённая кнопка (телефон) ---------- */
.sticky {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  display: none; align-items: center; gap: 12px; padding: 8px 8px 8px 12px; border-radius: 999px;
  background: rgba(12, 12, 13, .9); color: #fff;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 18px 44px -12px rgba(0, 0, 0, .5);
  transform: translateY(150%); transition: transform .7s var(--ease);
}
.sticky.is-on { transform: none; }
.sticky img { flex: none; width: 52px; }
.sticky div { min-width: 0; }
.sticky b { display: block; font: 600 14px/1.2 var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky div span { display: block; margin-top: 3px; font-size: 11.5px; color: rgba(255, 255, 255, .6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky .btn { flex: none; margin-left: auto; }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (min-width: 900px) and (max-width: 1279px) {
  .hero__facts span { display: none; }
}

@media (max-width: 1023px) {
  .nav__links { display: none; }
  .methods__pin { padding-top: 0; }
}

@media (max-width: 899px) {
  :root { --nav-h: 76px; }

  /* первый экран */
  .hero { min-height: 0; padding-bottom: 0; }
  .hero__title { font-size: 20.8vw; margin-top: .17em; }
  .hero__lower { max-width: 100%; margin-top: 18px; gap: 20px; }
  .hero__cta .btn { flex: 1 1 auto; justify-content: space-between; }
  .hero__visual { position: relative; inset: auto; order: 5; height: 104vw; max-height: 720px; margin: 6px calc(var(--pad) * -1) 0; }
  .hero__model { height: 100%; right: -3%; }
  .hero__tin { left: 1%; bottom: 5%; width: min(60vw, 420px); }
  .hero__facts { order: 6; margin: 0 calc(var(--pad) * -1); padding: 18px var(--pad); justify-content: space-between; background: var(--ink); color: #fff; }
  .hero__facts li { padding: 0 0 0 14px; border-left-color: rgba(255, 255, 255, .2); flex: 1; }
  .hero__facts li:first-child { padding-left: 0; }
  .hero__facts span { color: rgba(255, 255, 255, .6); font-size: 12px; }
  .hero__note { right: 14px; bottom: 12px; }

  .lineup__intro { max-width: 46ch; }
  .scale { grid-template-columns: 1fr 1fr; row-gap: 14px; }
  .scale__end--r { text-align: right; }
  .scale__track { grid-column: 1 / -1; grid-row: 2; margin-inline: 15px; }
  .product { grid-template-columns: 1fr; gap: 6px; }
  .product__visual { order: -1; width: 100%; max-width: 560px; margin: 0 auto 18px; }
  .pv--smear { bottom: -2%; }

  .about__top { grid-template-columns: 1fr; gap: 20px; }
  .about__top .label { margin-top: 0; }
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefit { min-height: 200px; }
  .benefit:nth-child(odd) { border-left: 0; padding-left: 0; }
  .benefit:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .benefit:last-child { border-right: 0; }

  /* на телефоне сначала слайдер, потом текст и кнопка */
  .result__grid { display: flex; flex-direction: column; gap: 0; }
  .result__copy { display: contents; }
  .result__media { order: 3; max-width: none; margin: 26px 0 4px; }
  .result__copy .lead { order: 4; }
  .result__copy .ticks { order: 5; }
  .result__copy .btn { order: 6; align-self: flex-start; }

  .methods__stage { grid-template-columns: 1fr; gap: 30px; }
  .methods__tabs { width: 100%; }
  .methods__tab { flex: 1; justify-content: center; padding: 0 10px; }
  .methods__media { aspect-ratio: 1 / 1.02; }

  .texture__words { gap: 30vw; }
  .texture__swatch { width: 84vw; }

  .formula__copy { max-width: 100%; }
  .formula__art { position: relative; width: auto; height: 78vw; max-height: 560px; margin: calc(var(--sec) * -.4) 0 10px; }
  .formula__coconut { width: 62%; top: 10%; right: -4%; }
  .formula__jojoba { left: 2%; bottom: 6%; width: 40vw; }
  .formula__oil { left: 10%; top: 12%; width: 22vw; }

  .faq__grid { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .faq__a p { padding-right: 0; }

  .order__art { display: none; }
  .order::before { background: radial-gradient(70% 40% at 80% 6%, rgba(180, 228, 76, .2), rgba(180, 228, 76, 0) 70%); }
}

@media (max-width: 767px) {
  body { font-size: 16px; }
  .sticky { display: flex; }
  .footer { padding-bottom: 96px; }
  .sizes__grid { grid-template-columns: 1fr; }
  .size { min-height: 400px; }
  .scale__track { height: 74px; }
  .scale__stop span { display: none; }
  .scale__stop b { font-size: 14px; letter-spacing: 0; }
  .product__notes { grid-template-columns: 1fr 1fr; }
  .product__notes > div:first-child { grid-column: 1 / -1; padding: 16px 0 16px; border-bottom: 1px solid rgba(255, 255, 255, .16); }
  .product__notes > div:nth-child(2) { padding-left: 0; border-left: 0; }
  .product .btn { width: 100%; justify-content: space-between; }
  .pick__card { padding: 12px 10px; }
  .pick__card em { display: none; }
  .ingr li { grid-template-columns: 36px minmax(0, 1fr); }
  .ingr em { grid-column: 2; }
  .look__item { width: 64vw; }
  .methods__tab b { display: none; }
  .ba__tag { top: 14px; font-size: 11px; height: 30px; padding: 0 11px; }
  .ba__tag--l { left: 14px; } .ba__tag--r { right: 14px; }
}

@media (max-width: 479px) {
  .benefits { grid-template-columns: 1fr; }
  .benefit { min-height: 0; padding: 22px 0 24px; border-left: 0; border-bottom: 1px solid var(--line); }
  .benefit:last-child { border-bottom: 0; }
  .benefit__t { margin-top: 26px; }
  .size__buy { align-items: stretch; width: 100%; }
  .size__buy .btn { width: 100%; }
  .hero__facts strong { font-size: 14px; gap: 6px; }
  .hero__facts strong::before { width: 8px; height: 8px; }
  .hero__facts span { font-size: 11px; line-height: 1.25; }
}

/* ---------- Меньше движения ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* ---------- Подвал: юридические ссылки ---------- */
.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ---------- Баннер согласия на cookie ---------- */
.cookie {
  position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 16px;
  max-width: 560px; margin-left: auto;
  padding: 18px 18px 16px; border-radius: 18px;
  background: var(--ink); color: rgba(255, 255, 255, .78);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
  font: 13px/1.5 var(--text);
  opacity: 0; transform: translateY(16px);
  transition: opacity .35s var(--ease), transform .45s var(--ease);
}
.cookie.is-on { opacity: 1; transform: none; }
.cookie__t { margin: 0 0 14px; }
.cookie__t a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cookie__b { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.cookie__btn {
  appearance: none; border: 0; cursor: pointer; border-radius: 999px;
  padding: 11px 20px; font: 600 13px/1 var(--text);
  background: var(--lime); color: var(--ink);
}
.cookie__btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.cookie__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 767px) {
  .cookie { bottom: calc(88px + env(safe-area-inset-bottom)); }   /* над закреплённой кнопкой */
  .cookie__btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .cookie { transition: none; } }
