/* YARKIY — справочник по мезороллерам
   Палитра и шрифты взяты с упаковки: белый картон, тёмно-синяя печать,
   бирюзовый барабан. Сквозной приём — линия «Y ——— ·······» с торца коробки:
   сплошная часть = пройдено, точки = впереди (и след от игл). */

@property --x {
  syntax: "<number>";
  inherits: true;
  initial-value: 14;
}

:root {
  color-scheme: light;
  interpolate-size: allow-keywords;

  --paper: #f4f5f3;
  --surface: #ffffff;
  --ink: #1b1d5a;
  --ink-2: #2b2e78;
  --text: #24273b;
  --muted: #5a5f73;
  --line: rgba(27, 29, 90, 0.13);
  --line-strong: rgba(27, 29, 90, 0.34);
  --teal: #0d7c70;
  --teal-soft: #e1f0ec;
  --mist: #e6ebf4;
  --caution: #8f4520;
  --caution-soft: #f6ebe3;

  --serif: "Noto Serif Display", "Times New Roman", Georgia, serif;
  --sans: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
  --step-3: clamp(2rem, 1.45rem + 2.2vw, 3.25rem);
  --step-4: clamp(2.5rem, 1.5rem + 4.2vw, 5.25rem);
  --step-5: clamp(2.875rem, 1.2rem + 7vw, 8.25rem);

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1280px;
  --header-h: 72px;
  --radius-lg: 28px;
  --radius: 18px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 0.7, 0.18, 1);
}

/* ---------- База ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 var(--step-0) / 1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4,
p,
figure,
dl,
dd {
  margin: 0;
  font-weight: inherit;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

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

::selection {
  background: var(--teal-soft);
  color: var(--ink);
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Типографика ---------- */

.display,
.h1,
.h2,
.h3 {
  font-family: var(--serif);
  color: var(--ink);
  text-wrap: balance;
}

.display {
  font-size: var(--step-5);
  font-weight: 300;
  line-height: 0.96;
  letter-spacing: -0.028em;
}

.h1 {
  font-size: var(--step-4);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.022em;
}

.h2 {
  font-size: var(--step-3);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.016em;
}

.h3 {
  font-size: var(--step-2);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.005em;
}

.h4 {
  font-family: var(--sans);
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.lede {
  font-size: clamp(1.125rem, 1.02rem + 0.4vw, 1.3125rem);
  line-height: 1.55;
  max-width: 34em;
  text-wrap: pretty;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: var(--step--1);
  line-height: 1.5;
}

.prose {
  max-width: 40em;
  text-wrap: pretty;
}

.prose > * + * {
  margin-top: 1em;
}

.prose strong {
  font-weight: 600;
  color: var(--ink);
}

.prose ul {
  padding-left: 1.2em;
}

.prose li + li {
  margin-top: 0.4em;
}

.link {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline dotted;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
  transition: text-decoration-color 0.2s;
}

.link:hover {
  text-decoration-style: solid;
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 500 0.9375rem / 1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}

.btn:hover {
  background: var(--ink);
  color: #fff;
}

.btn--solid {
  background: var(--ink);
  color: #fff;
}

.btn--solid:hover {
  background: var(--ink-2);
  border-color: var(--ink-2);
}

.btn--small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.875rem;
}

/* ---------- Шапка ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  -webkit-backdrop-filter: saturate(1.3) blur(14px);
  backdrop-filter: saturate(1.3) blur(14px);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}

.wordmark__name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  margin-right: -0.16em;
}

.wordmark__sub {
  margin-top: 5px;
  font-family: var(--serif);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  margin-right: -0.32em;
}

.site-nav ul {
  display: flex;
  gap: clamp(18px, 2.4vw, 36px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  position: relative;
  display: block;
  padding: 10px 0;
  color: var(--text);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.2s;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  background: radial-gradient(circle, var(--ink) 0.9px, transparent 1.2px) 0 50% / 5px 2px repeat-x;
  opacity: 0;
  transition: opacity 0.2s;
}

.site-nav a:hover::after {
  opacity: 1;
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav a[aria-current="page"]::after {
  opacity: 1;
  background: var(--ink);
  height: 1px;
}

.menu-btn {
  display: none;
}

/* Линия прогресса чтения: пройдено — сплошная, впереди — точки */
.trail {
  display: flex;
  align-items: center;
  height: 1px;
}

.trail__line {
  width: calc(var(--progress, 0) * 100%);
  height: 1px;
  background: var(--ink);
}

.trail__dots {
  flex: 1;
  height: 2px;
  background: radial-gradient(circle, var(--line-strong) 0.8px, transparent 1.1px) 0 50% / 6px 2px repeat-x;
}

@media (max-width: 1023px) {
  .menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
  }

  .menu-btn__bars {
    position: relative;
    width: 16px;
    height: 8px;
    border-block: 1.5px solid currentColor;
    transition: transform 0.25s var(--ease);
  }

  .menu-btn[aria-expanded="true"] .menu-btn__bars {
    transform: scaleY(0.2);
  }

  .site-nav {
    position: fixed;
    inset: calc(var(--header-h) + 1px) 0 auto;
    max-height: calc(100dvh - var(--header-h));
    overflow: auto;
    padding: 8px var(--gutter) 32px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(27, 29, 90, 0.25);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition:
      opacity 0.25s var(--ease),
      transform 0.25s var(--ease),
      visibility 0s 0.25s;
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition:
      opacity 0.25s var(--ease),
      transform 0.25s var(--ease);
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav li + li {
    border-top: 1px solid var(--line);
  }

  .site-nav a {
    padding: 16px 0;
    font-family: var(--serif);
    font-size: 1.625rem;
    font-weight: 300;
    color: var(--ink);
  }

  .site-nav a::after {
    display: none;
  }

  .site-nav a[aria-current="page"] {
    color: var(--teal);
  }
}

/* ---------- Подвал ---------- */

.site-footer {
  padding-block: clamp(56px, 8vw, 96px) 32px;
  background: var(--ink);
  color: #d9dcef;
}

.site-footer .wordmark {
  color: #fff;
  align-items: flex-start;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 5fr);
  gap: 40px;
}

.site-footer__about {
  margin-top: 20px;
  max-width: 22em;
  color: #b9bddb;
  font-size: 0.9375rem;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 10px;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline dotted;
  text-underline-offset: 5px;
}

.site-footer__note {
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  color: #c9cde6;
  font-size: 0.875rem;
  line-height: 1.55;
}

.site-footer__note strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-weight: 500;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #9da2c6;
  font-size: 0.8125rem;
}

@media (max-width: 860px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Секции ---------- */

.section {
  padding-block: clamp(72px, 10vw, 144px);
}

.section--white {
  background: var(--surface);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px clamp(32px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-head > p {
  max-width: 30em;
}

@media (max-width: 860px) {
  .section-head {
    grid-template-columns: 1fr;
  }
}

/* ---------- Главная: первый экран ---------- */

.hero {
  padding-top: clamp(40px, 7vw, 104px);
  overflow: hidden;
}

.hero__top {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 32px clamp(32px, 5vw, 80px);
  align-items: end;
}

.hero__title {
  max-width: 9.5em;
}

.hero__aside .lede {
  max-width: 24em;
}

.hero__aside p + p {
  margin-top: 16px;
}

/* Прокатка: роллер едет справа налево и оставляет точечный след */
.roll {
  --h: clamp(92px, 15vw, 230px);
  --ratio: 2.846; /* пропорции фото roller-flat */
  --drum: 0.11; /* центр барабана по ширине фото */
  --x-end: 12;
  position: relative;
  height: calc(var(--h) * 1.02);
  margin-block: clamp(36px, 6vw, 80px) clamp(28px, 4vw, 56px);
  container-type: inline-size;
  /* container-type изолирует слой: без своего фона multiply смешивался бы с пустотой */
  background: var(--paper);
}

.roll__img {
  position: absolute;
  top: 0;
  left: 0;
  width: auto;
  max-width: none;
  height: var(--h);
  mix-blend-mode: multiply;
  transform: translateX(calc(var(--x) * 1cqw - var(--h) * var(--ratio) * var(--drum)));
  will-change: transform;
}

.roll__trail {
  position: absolute;
  inset: calc(var(--h) * 0.2) 0 auto 0;
  height: calc(var(--h) * 0.36);
  background-image: radial-gradient(circle, var(--teal) 0 1.1px, transparent 1.5px);
  background-size: 9px calc(var(--h) * 0.36 / 6);
  opacity: 0.7;
  clip-path: inset(0 0 0 calc(var(--x) * 1cqw));
  -webkit-mask-image: linear-gradient(90deg, #000 72%, transparent);
  mask-image: linear-gradient(90deg, #000 72%, transparent);
}

.roll {
  --x: var(--x-end);
}

@media (prefers-reduced-motion: no-preference) {
  .roll {
    animation: roll 2.8s var(--ease) 0.35s both;
  }
}

@keyframes roll {
  from {
    --x: 104;
  }
  to {
    --x: var(--x-end);
  }
}

@media (max-width: 760px) {
  .roll {
    --x-end: 6;
  }

  .hero__top {
    grid-template-columns: 1fr;
  }
}

.routes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(20px, 3vw, 40px);
  padding-bottom: clamp(56px, 8vw, 104px);
}

.route {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 24px 0 26px;
  border-top: 1px solid var(--ink);
  color: var(--text);
  text-decoration: none;
}

.route::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: radial-gradient(circle, var(--line-strong) 0.9px, transparent 1.2px) 0 50% / 6px 2px repeat-x;
}

.route::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.route:hover::before,
.route:focus-visible::before {
  transform: scaleX(1);
}

.route__title {
  font-family: var(--serif);
  font-size: var(--step-2);
  color: var(--ink);
}

.route__text {
  color: var(--muted);
  font-size: 0.9375rem;
}

@media (max-width: 760px) {
  .routes {
    grid-template-columns: 1fr;
  }

  .route + .route {
    border-top-color: transparent;
  }
}

/* ---------- Пять вопросов ---------- */

.answers {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.answer {
  display: grid;
  grid-template-columns: 56px minmax(0, 5fr) minmax(0, 6fr);
  gap: 16px clamp(24px, 4vw, 56px);
  padding-block: clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
}

.answer__num {
  font-family: var(--serif);
  font-size: var(--step-2);
  line-height: 1.25;
  color: var(--teal);
}

.answer__q {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 1.35rem + 1.5vw, 2.625rem);
  font-weight: 300;
  line-height: 1.08;
  color: var(--ink);
  text-wrap: balance;
}

.answer__a p {
  max-width: 34em;
  text-wrap: pretty;
}

.answer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 16px;
}

@media (max-width: 860px) {
  .answer {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .answer__a {
    grid-column: 2;
  }
}

/* ---------- Длина игл ---------- */

.lengths {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.lengths__photo img {
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  mix-blend-mode: multiply;
}

.lengths__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.length__needle {
  width: 100%;
  height: 176px;
  margin-bottom: 20px;
  overflow: visible;
}

.length__needle .base {
  stroke: var(--ink);
  stroke-width: 1.5;
}

.length__needle .needle {
  fill: var(--ink);
}

.length__needle .ruler {
  stroke: var(--line-strong);
  stroke-dasharray: 1 5;
  stroke-linecap: round;
  stroke-width: 1.5;
}

.length__value {
  font-family: var(--serif);
  font-size: var(--step-3);
  font-weight: 300;
  line-height: 1;
  color: var(--ink);
}

.length__value span {
  font-size: 0.45em;
  letter-spacing: 0;
}

.length__zone {
  margin-top: 12px;
  color: var(--teal);
  font-weight: 500;
}

.length__note {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9375rem;
}

@media (max-width: 860px) {
  .lengths {
    grid-template-columns: 1fr;
  }

  .lengths__photo img {
    max-width: 320px;
  }
}

@media (max-width: 520px) {
  .lengths__list {
    gap: 12px;
  }

  .length__needle {
    height: 150px;
  }

  .length__note {
    font-size: 0.8125rem;
  }
}

/* ---------- Что в коробке ---------- */

.unbox {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.video {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #e9ebea;
  aspect-ratio: 4 / 3;
}

.video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.video__play span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 26px 0 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-weight: 500;
  box-shadow: 0 12px 32px -12px rgba(27, 29, 90, 0.35);
  transition: transform 0.25s var(--ease);
}

.video__play:hover span {
  transform: scale(1.04);
}

.video__play .icon {
  fill: currentColor;
  stroke: none;
}

.video.is-playing .video__play {
  display: none;
}

.kit {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.kit li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.kit .icon {
  color: var(--teal);
  margin-top: 1px;
}

.kit strong {
  display: block;
  color: var(--ink);
  font-weight: 500;
}

.kit span {
  color: var(--muted);
  font-size: 0.9375rem;
}

@media (max-width: 860px) {
  .unbox {
    grid-template-columns: 1fr;
  }
}

/* ---------- Правила ---------- */

.rules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.rule {
  padding: 28px 24px 32px 0;
  background: var(--paper);
}

.section--white .rule {
  background: var(--surface);
}

.rule + .rule {
  padding-left: 24px;
}

.rule__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink);
}

.rule h3 {
  margin-bottom: 8px;
}

.rule p {
  color: var(--muted);
  font-size: 0.9375rem;
}

@media (max-width: 700px) {
  .rules {
    grid-template-columns: 1fr;
  }

  .rule,
  .rule + .rule {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 0 18px;
    padding: 22px 0;
  }

  .rule__icon {
    grid-row: span 2;
    margin: 0;
  }
}

/* ---------- Вопросы ---------- */

.faq {
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.1875rem, 1.05rem + 0.55vw, 1.5rem);
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 10px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 10px no-repeat;
  transition:
    transform 0.3s var(--ease),
    background-color 0.2s;
}

.faq__item[open] summary::after {
  transform: rotate(45deg);
}

.faq__item summary:hover::after {
  background-color: var(--mist);
}

.faq__item::details-content {
  height: 0;
  overflow: clip;
  transition:
    height 0.35s var(--ease),
    content-visibility 0.35s allow-discrete;
}

.faq__item[open]::details-content {
  height: auto;
}

.faq__a {
  max-width: 42em;
  padding: 0 52px 26px 0;
}

.faq__a > * + * {
  margin-top: 0.8em;
}

.faq__a ul {
  padding-left: 1.2em;
}

.faq-group + .faq-group {
  margin-top: clamp(48px, 7vw, 80px);
}

.faq-group__title {
  margin-bottom: 16px;
}

.faq-search {
  position: relative;
  max-width: 560px;
  margin-top: 32px;
}

.faq-search input {
  width: 100%;
  min-height: 56px;
  padding: 0 20px 0 52px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.faq-search input:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}

.faq-search .icon {
  position: absolute;
  left: 20px;
  top: 50%;
  translate: 0 -50%;
  color: var(--muted);
}

.faq-empty {
  margin-top: 32px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
}

/* ---------- Блок продукции ---------- */

.shelf {
  padding-block: clamp(64px, 9vw, 112px);
  border-top: 1px solid var(--line);
}

.shelf__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px 40px;
  margin-bottom: 32px;
}

.shelf__intro p {
  max-width: 34em;
  margin-top: 10px;
  color: var(--muted);
}

.shelf__buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.shelf__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 14px 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.product__img {
  width: 100%;
  aspect-ratio: 1.44;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 10px);
  margin-bottom: 8px;
}

.product > :not(img) {
  margin-inline: 8px;
}

.product__name {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}

.product__zone {
  color: var(--teal);
  font-size: 0.9375rem;
  font-weight: 500;
}

.product__specs {
  display: grid;
  gap: 8px;
  margin-block: 6px 14px;
  font-size: 0.875rem;
}

.product__specs div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 8px;
  background: radial-gradient(circle, var(--line-strong) 0.7px, transparent 1px) 0 100% / 5px 2px repeat-x;
}

.product__specs dt {
  color: var(--muted);
}

.product__specs dd {
  text-align: right;
}

.product .btn {
  align-self: flex-start;
  margin-top: auto;
}

@media (max-width: 960px) {
  .shelf__list {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(78vw, 340px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .product {
    scroll-snap-align: start;
  }
}

/* ---------- Где купить ---------- */

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.buy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px 0 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s;
}

.buy-btn .icon {
  width: 20px;
  height: 20px;
}

.buy-btn:hover {
  background: var(--ink-2);
  border-color: var(--ink-2);
}

/* Окно в шапке. Popover живёт в верхнем слое, поэтому позиционируется от окна */
.buy-pop {
  position: fixed;
  inset: calc(var(--header-h) + 8px) calc((100vw - min(100vw - 2 * var(--gutter), var(--maxw))) / 2) auto auto;
  width: min(380px, 100vw - 2 * var(--gutter));
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 24px 60px -24px rgba(27, 29, 90, 0.35);
  transition:
    opacity 0.22s var(--ease),
    transform 0.22s var(--ease),
    overlay 0.22s allow-discrete,
    display 0.22s allow-discrete;
}

.buy-pop:not(:popover-open) {
  opacity: 0;
  transform: translateY(-6px);
}

@starting-style {
  .buy-pop:popover-open {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* Браузеры без Popover API: окно не показываем, кнопка ведёт к разделу «Где купить» (см. main.js) */
@supports not selector(:popover-open) {
  .buy-pop {
    display: none;
  }
}

.buy-pop__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.buy-pop__title {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.25;
  color: var(--ink);
}

.buy-pop__close {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.buy-pop__close:hover {
  border-color: var(--ink);
}

.buy-pop__close .icon {
  width: 18px;
  height: 18px;
}

.buy-pop__note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.875rem;
}

/* Ссылка на маркетплейс. Базовый вид — компактная «таблетка» */
.markets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.market {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.market:hover {
  border-color: var(--ink);
}

/* Цветные метки — узнаваемые цвета площадок вместо их логотипов */
.market__mark {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.market--wb .market__mark {
  background: linear-gradient(135deg, #cb11ab, #481173);
}

.market--ozon .market__mark {
  background: #005bff;
}

.market__text {
  display: flex;
  flex-direction: column;
}

.market__note {
  display: none;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 400;
}

.market__ext {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

/* В окне шапки и на странице каталога — крупные строки с пояснением */
.buy-pop .markets {
  flex-direction: column;
}

.buy-pop .market,
.stores .market {
  display: flex;
  width: 100%;
}

.buy-pop .market {
  min-height: 64px;
  padding: 12px 16px;
  border-radius: var(--radius);
}

.buy-pop .market__note,
.stores .market__note {
  display: block;
  margin-top: 2px;
}

.buy-pop .market__ext,
.stores .market__ext {
  margin-left: auto;
}

.buy-pop .market__mark {
  width: 12px;
  height: 12px;
}

.stores .markets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.stores .market {
  gap: 18px;
  min-height: 128px;
  padding: clamp(22px, 3vw, 32px);
  border-color: transparent;
  border-radius: var(--radius-lg);
  background: var(--paper);
}

.stores .market:hover {
  border-color: var(--ink);
}

.stores .market__mark {
  width: 16px;
  height: 16px;
}

.stores .market__name {
  font-family: var(--serif);
  font-size: var(--step-2);
  font-weight: 400;
}

.stores .market__note {
  font-size: 0.9375rem;
}

.stores .market__ext {
  width: 22px;
  height: 22px;
}

@media (max-width: 640px) {
  .stores .markets {
    grid-template-columns: 1fr;
  }

  .stores .market {
    min-height: 96px;
  }
}

.item__buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.shelf__buy-label,
.item__buy-label {
  color: var(--muted);
  font-size: 0.875rem;
}

/* В подвале — светлые таблетки на тёмном фоне */
.site-footer__buy {
  margin-top: 28px;
}

.site-footer__label {
  margin-bottom: 10px;
  color: #9da2c6;
  font-size: 0.8125rem;
}

.site-footer .markets li + li {
  margin-top: 0;
}

.site-footer .market {
  border-color: rgba(255, 255, 255, 0.24);
  background: transparent;
  color: #fff;
}

.site-footer .market:hover {
  border-color: #fff;
  text-decoration: none;
}

.site-footer .market__ext {
  color: #b9bddb;
}

@media (max-width: 420px) {
  .wordmark__name {
    font-size: 1.25rem;
  }

  .buy-btn {
    padding: 0 14px 0 12px;
  }

  .menu-btn {
    justify-content: center;
    width: 44px;
    padding: 0;
  }

  .menu-btn__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* ---------- Внутренние страницы ---------- */

.page-hero {
  padding-block: clamp(32px, 6vw, 88px) clamp(48px, 7vw, 96px);
}

.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px clamp(32px, 5vw, 80px);
  align-items: center;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.875rem;
}

.crumbs li + li::before {
  content: "/";
  margin-right: 10px;
  color: var(--line-strong);
}

.crumbs a {
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--ink);
}

.page-hero .lede {
  margin-top: 24px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

.facts div {
  padding-top: 16px;
}

.facts dt {
  color: var(--muted);
  font-size: 0.8125rem;
}

.facts dd {
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 1.375rem;
  line-height: 1.2;
  color: var(--ink);
}

.page-hero__visual {
  justify-self: center;
  width: 100%;
  max-width: 440px;
}

.page-hero__visual img {
  mix-blend-mode: multiply;
}

.page-hero__visual--wide {
  max-width: 580px;
}

.disclaimer {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  max-width: 36em;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.disclaimer .icon {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: var(--teal);
}

@media (max-width: 860px) {
  .page-hero__grid {
    grid-template-columns: 1fr;
  }

  .page-hero__visual {
    max-width: 340px;
  }
}

@media (max-width: 520px) {
  .facts {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .facts div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding-block: 12px;
    border-bottom: 1px solid var(--line);
  }

  .facts dd {
    font-size: 1.125rem;
    text-align: right;
  }
}

/* Статья с оглавлением */
.doc {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  padding-bottom: clamp(64px, 8vw, 120px);
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  align-self: start;
  max-height: calc(100vh - var(--header-h) - 56px);
  overflow: auto;
  scrollbar-width: none;
}

.toc summary {
  display: none;
}

.toc__title {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.8125rem;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc li {
  position: relative;
  padding-left: 24px;
}

.toc li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0;
  bottom: 0;
  border-left: 1.5px dotted var(--line-strong);
}

.toc li:first-child::before {
  top: 18px;
}

.toc li:last-child::before {
  bottom: calc(100% - 18px);
}

.toc li.is-passed::before {
  border-left: 1px solid var(--ink);
  left: 4.25px;
}

.toc li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 9.5px;
  height: 9.5px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
  transition:
    background 0.2s,
    border-color 0.2s;
}

.toc li.is-passed::after {
  border-color: var(--ink);
  background: var(--ink);
}

.toc li.is-active::after {
  border-color: var(--teal);
  background: var(--teal);
  box-shadow: 0 0 0 4px var(--teal-soft);
}

.toc a {
  display: block;
  padding: 8px 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.2s;
}

.toc a:hover,
.toc li.is-active a {
  color: var(--ink);
}

.toc li.is-active a {
  font-weight: 500;
}

@media (max-width: 1023px) {
  .doc {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .toc {
    position: static;
    max-height: none;
    margin-bottom: 8px;
    border-block: 1px solid var(--line);
  }

  .toc summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    color: var(--ink);
    font-weight: 500;
    list-style: none;
    cursor: pointer;
  }

  .toc summary::-webkit-details-marker {
    display: none;
  }

  .toc summary .icon {
    transition: transform 0.25s var(--ease);
  }

  .toc details[open] summary .icon {
    transform: rotate(180deg);
  }

  .toc__title {
    display: none;
  }

  .toc ol {
    padding-bottom: 16px;
  }
}

.chapter {
  padding-block: clamp(48px, 7vw, 88px);
  border-top: 1px solid var(--line);
}

.chapter:first-child {
  border-top: 0;
  padding-top: 0;
}

@media (max-width: 1023px) {
  .chapter:first-child {
    padding-top: 40px;
  }
}

.chapter__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  margin-bottom: clamp(24px, 3vw, 36px);
}

.chapter__num {
  min-width: 1.6em;
  font-family: var(--serif);
  font-size: var(--step-2);
  color: var(--teal);
}

.chapter__head .h2 {
  font-size: clamp(1.875rem, 1.45rem + 1.6vw, 2.875rem);
}

.chapter > * + * {
  margin-top: 28px;
}

.chapter > .chapter__head + * {
  margin-top: 0;
}

/* Чек-лист */
.checklist {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  max-width: 44em;
}

.checklist li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.checklist .icon {
  color: var(--teal);
}

.checklist strong {
  color: var(--ink);
  font-weight: 500;
}

/* Шаги — настоящая последовательность, поэтому с номерами */
.steps {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 46em;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 20px;
  padding-bottom: 32px;
}

.step::before {
  content: "";
  position: absolute;
  left: 23.5px;
  top: 52px;
  bottom: 4px;
  border-left: 1px solid var(--ink);
}

.step:last-child::before {
  display: none;
}

.step:last-child {
  padding-bottom: 0;
}

.step__num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.25rem;
}

.step__body {
  padding-top: 10px;
}

.step__body > * + * {
  margin-top: 8px;
}

.step__body p {
  color: var(--text);
}

.step__tip {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 0.875rem;
}

/* Можно / не стоит */
.duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.duo__col {
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.duo__col h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.duo__col h3 .icon {
  width: 32px;
  height: 32px;
  padding: 6px;
  border-radius: 50%;
}

.duo__col--yes h3 .icon {
  background: var(--teal-soft);
  color: var(--teal);
}

.duo__col--no h3 .icon {
  background: var(--caution-soft);
  color: var(--caution);
}

.duo ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.duo li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 0.9688rem;
}

.duo li span {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
}

@media (max-width: 760px) {
  .duo {
    grid-template-columns: 1fr;
  }
}

/* Таблица частоты */
.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9688rem;
}

.table th,
.table td {
  padding: 16px 16px 16px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table thead th {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 400;
}

.table tbody th {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--ink);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .table thead {
    display: none;
  }

  .table tr {
    display: grid;
    grid-template-columns: 1fr;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .table th,
  .table td {
    padding: 2px 0;
    border: 0;
  }

  .table td::before {
    content: attr(data-label) ": ";
    color: var(--muted);
  }
}

/* Уход после процедуры: периоды */
.phases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(20px, 3vw, 36px);
}

.phase {
  padding-top: 18px;
  border-top: 1px solid var(--ink);
}

.phase h3 {
  margin-bottom: 10px;
}

.phase ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.phase li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9688rem;
}

@media (max-width: 760px) {
  .phases {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Противопоказания: иконки */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.icon-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.icon-item .icon {
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 50%;
  background: var(--caution-soft);
  color: var(--caution);
}

.icon-item strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-weight: 500;
}

.icon-item span {
  color: var(--muted);
}

.note {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 14px;
  max-width: 46em;
  padding: 18px 20px;
  border-left: 2px solid var(--teal);
  background: var(--teal-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9375rem;
}

.note .icon {
  color: var(--teal);
}

.note--caution {
  border-color: var(--caution);
  background: var(--caution-soft);
}

.note--caution .icon {
  color: var(--caution);
}

/* Когда к специалисту */
.callout {
  padding: clamp(24px, 4.5vw, 52px);
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #d9dcef;
}

.callout .h3 {
  color: #fff;
  max-width: 22em;
}

.callout > p {
  margin-top: 12px;
  max-width: 40em;
}

.callout ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0 32px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.callout li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.callout li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin: 9px 0 0 4px;
  border-radius: 50%;
  background: #7fd3c6;
}

.callout__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* ---------- Схемы ---------- */

.scheme {
  width: 100%;
  height: auto;
  overflow: visible;
}

.scheme__outline {
  fill: var(--surface);
  stroke: var(--ink);
  stroke-width: 1.4;
}

.scheme__line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scheme__thin {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1;
  stroke-linecap: round;
}

.scheme__dot {
  fill: var(--teal);
}

.scheme__zone {
  opacity: 0.9;
}

.scheme__avoid {
  fill: var(--caution-soft);
  stroke: var(--caution);
  stroke-width: 1.2;
  stroke-dasharray: 2 4;
  stroke-linecap: round;
}

.scheme__arrow {
  fill: none;
  stroke: var(--teal);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scheme__label {
  fill: var(--ink);
  font-family: var(--sans);
  font-size: 12.5px;
}

.scheme__label--muted {
  fill: var(--muted);
}

.scheme__label--caution {
  fill: var(--caution);
}

.scheme__leader {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1;
  stroke-dasharray: 1 3;
  stroke-linecap: round;
}

/* ---------- Интерактивная схема техники ---------- */

.technique {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px clamp(24px, 4vw, 48px);
  align-items: center;
  padding: clamp(20px, 3.5vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.technique__svg {
  width: 100%;
  max-width: 400px;
  margin-inline: auto;
  overflow: visible;
}

.technique__skin {
  fill: var(--mist);
}

.technique__ring {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1;
  stroke-dasharray: 1 5;
  stroke-linecap: round;
}

.technique__drum {
  fill: var(--teal);
}

.technique__needles {
  opacity: 0.35;
}

.technique__handle {
  fill: rgba(255, 255, 255, 0.72);
  stroke: var(--ink);
  stroke-width: 1.2;
}

.technique__roller {
  transition: opacity 0.2s;
}

.technique__roller.is-lifted {
  opacity: 0.35;
}

.technique__body h3 {
  margin-bottom: 10px;
}

.technique__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}

.chip:hover {
  border-color: var(--ink);
}

.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.chip.is-done {
  border-color: var(--teal);
  color: var(--teal);
}

.chip.is-done::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.chip:disabled {
  cursor: progress;
}

.chip--plain {
  border-color: transparent;
  color: var(--muted);
}

.technique__caption {
  min-height: 3.2em;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9375rem;
}

@media (max-width: 760px) {
  .technique {
    grid-template-columns: 1fr;
  }
}

/* ---------- Медиа и галереи ---------- */

.figure img {
  width: 100%;
  mix-blend-mode: multiply;
}

.figure figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.875rem;
}

.pack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pack figure {
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
}

.pack img {
  width: 100%;
  aspect-ratio: 3 / 1.1;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.pack figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.875rem;
}

@media (max-width: 760px) {
  .pack {
    grid-template-columns: 1fr;
  }
}

/* ---------- Обработка: протокол ---------- */

.protocol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.protocol__col {
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.protocol__col > .h3 {
  margin-bottom: 6px;
}

.protocol__col > p {
  margin-bottom: 28px;
  color: var(--muted);
}

@media (max-width: 860px) {
  .protocol {
    grid-template-columns: 1fr;
  }
}

.needs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.needs li {
  padding: 20px 0;
  border-top: 1px solid var(--ink);
}

.needs .icon {
  width: 28px;
  height: 28px;
  margin-bottom: 14px;
  color: var(--teal);
}

.needs strong {
  display: block;
  color: var(--ink);
  font-weight: 500;
}

.needs span {
  color: var(--muted);
  font-size: 0.9375rem;
}

@media (max-width: 860px) {
  .needs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.storage {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

@media (max-width: 860px) {
  .storage {
    grid-template-columns: 1fr;
  }
}

.signs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.signs li {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.signs strong {
  display: block;
  color: var(--ink);
  font-weight: 500;
}

.signs span {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ---------- Каталог ---------- */

.compare {
  margin-top: 8px;
}

.compare .table tbody th {
  font-size: 1.75rem;
}

.item {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding-block: clamp(48px, 7vw, 96px);
  border-top: 1px solid var(--line);
}

.item__photo {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.item__photo img {
  width: 100%;
  border-radius: calc(var(--radius-lg) - 10px);
}

.item__zone {
  margin-top: 14px;
  color: var(--teal);
  font-weight: 500;
}

.item__text {
  margin-top: 16px;
  max-width: 32em;
}

.item .product__specs {
  margin-top: 24px;
  font-size: 0.9375rem;
}

.item__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

@media (max-width: 860px) {
  .item {
    grid-template-columns: 1fr;
  }
}

.anatomy {
  position: relative;
}

.anatomy img {
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  mix-blend-mode: multiply;
}

.parts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.parts li {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.parts strong {
  display: block;
  color: var(--ink);
  font-weight: 500;
}

.parts span {
  color: var(--muted);
  font-size: 0.9375rem;
}

.duo--paper .duo__col {
  background: var(--paper);
}

.storage .checklist {
  margin-top: 32px;
}

.storage .figure img {
  max-width: 360px;
  margin-inline: auto;
}

.storage .figure figcaption {
  text-align: center;
}

.faq-page {
  padding-bottom: clamp(72px, 10vw, 128px);
}

.compare th a {
  text-decoration: none;
}

.compare th a:hover {
  text-decoration: underline dotted;
  text-underline-offset: 6px;
}

.parts {
  margin-top: 32px;
}

.parts__legal {
  margin-top: 24px;
}

/* ---------- 404 ---------- */

.notfound .routes {
  padding-bottom: 0;
}

.notfound {
  min-height: 60vh;
  display: grid;
  align-content: center;
  gap: 24px;
  padding-block: 80px;
}

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