/* ============================================================
   абрау ресвера — лендинг
   Дизайн-система по гайдбуку фирменного стиля 2025:
   IBM Plex Serif Light (акцент) + Geist Mono (базовый),
   палитра: розе / каберне / совиньон / фон F1F5EB,
   метафора фармацевтики и лабораторных исследований.
   ============================================================ */

/* ---------- шрифты (self-hosted, SIL OFL) ---------- */
@font-face {
  font-family: 'IBM Plex Serif';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/ibm-plex-serif-300-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Serif';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/ibm-plex-serif-300-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2013-2014, U+2018-201A, U+201C-201E, U+2026, U+2212;
}
@font-face {
  font-family: 'IBM Plex Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-serif-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-serif-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2013-2014, U+2018-201A, U+201C-201E, U+2026, U+2212;
}
/* Onest — гротеск для текстового начертания логотипа
   (ближайший свободный аналог фирменного знака, кириллица, SIL OFL) */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/onest-500-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/onest-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2013-2014, U+2018-201A, U+201C-201E, U+2026, U+2212;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/onest-600-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/onest-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2013-2014, U+2018-201A, U+201C-201E, U+2026, U+2212;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/geist-mono-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/geist-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2013-2014, U+2018-201A, U+201C-201E, U+2026, U+2212;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/geist-mono-500-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/geist-mono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2013-2014, U+2018-201A, U+201C-201E, U+2026, U+2212;
}

/* ---------- токены ---------- */
:root {
  /* основные цвета — гайдбук, стр. 12–13 */
  --rose: #FFCECF;      /* Розе / calm  */
  --cabernet: #CEC6EC;  /* Каберне / boost */
  --sauvignon: #E1FACD; /* Совиньон / glow */
  --bg: #F1F5EB;        /* вспомогательный фон */
  --ink: #000000;
  --paper: #FFFFFF;

  /* полупрозрачные производные для линий и паттерна */
  --line: rgba(0, 0, 0, .12);
  --rose-ink: #E2999B;      /* линии молекулы на розе-подложке */
  --cabernet-ink: #9D91C9;
  --sauvignon-ink: #9FBE85;

  --serif: 'IBM Plex Serif', 'Times New Roman', Georgia, serif;
  --mono: 'Geist Mono', 'PT Mono', 'SF Mono', 'Courier New', monospace;
  --logo: 'Onest', 'Golos Text', 'Helvetica Neue', Arial, sans-serif;

  --pad: clamp(20px, 5vw, 80px);   /* отступ от краёв макета — гайдбук, стр. 29 */
  --maxw: 1440px;
  --dur: .7s;
  --ease: cubic-bezier(.22, .61, .2, 1);
}

/* ---------- база ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.55; /* интерлиньяж ≥120% — гайдбук, стр. 16 */
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
}

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

a:focus-visible, button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 4px;
}

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

h1, h2, h3 { margin: 0; font-weight: 300; }

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- типографика ---------- */
.h-display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(42px, 7.2vw, 104px);
  line-height: .92; /* крупный заголовок, интерлиньяж 80–90% */
  letter-spacing: -.01em;
}

.h-section {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(32px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -.01em;
}

.h-card {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.1;
}

.overline {
  font-size: 13px;
  letter-spacing: .02em;
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.overline::after {
  content: '';
  height: 1px;
  flex: 0 1 120px;
  background: var(--ink);
  opacity: .25;
}

.small { font-size: 13px; }
.muted { opacity: .62; }

/* выделение-подложка — фирменный приём (гайдбук, обложка и стр. 17) */
.hl {
  position: relative;
  z-index: 0;
  white-space: nowrap;
}
.hl::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: .06em -.14em -.04em -.14em;
  background: var(--hl-c, var(--bg));
  transform-origin: left center;
  transition: transform .8s var(--ease) .25s;
}
/* анимационные стартовые состояния — только при работающем JS */
.js .hl::before { transform: scaleX(0); }
.in .hl::before, .hl.now::before { transform: scaleX(1); }
.hl-rose { --hl-c: var(--rose); }
.hl-cab { --hl-c: var(--cabernet); }
.hl-sav { --hl-c: var(--sauvignon); }
@media (max-width: 720px) {
  .hl { white-space: normal; }
  .hl::before { inset: .04em -.08em -.02em -.08em; }
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover { background: var(--paper); color: var(--ink); }
.btn:hover .arr { transform: translateX(4px); }
.btn:active { transform: scale(.97); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* круглая кнопка-стрелка — как навигация в гайдбуке */
.circle-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease);
  color: var(--ink);
}
.circle-btn:hover { background: var(--ink); color: var(--paper); }

/* чипы преимуществ — как выделения на упаковке */
.chip {
  display: inline-block;
  padding: 3px 8px 4px;
  font-size: 13px;
  background: var(--chip-c, var(--rose));
  color: var(--ink);
}

/* ---------- шапка ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-head__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
/* текстовое начертание логотипа */
.logotype {
  font-family: var(--logo);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: .96;
}

.brand {
  font-family: var(--logo);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.02;
  text-decoration: none;
  letter-spacing: -.01em;
}
.brand b { font-weight: 600; display: block; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  font-size: 13.5px;
  text-decoration: none;
  position: relative;
  padding: 4px 0;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 4px;
  background: var(--rose);
  z-index: -1;
  transition: right .3s var(--ease);
}
.site-nav a:hover::after { right: 0; }
.site-nav .btn { padding: 11px 20px; font-size: 13px; }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: none;
  cursor: pointer;
  position: relative;
}
.burger span, .burger span::before, .burger span::after {
  content: '';
  position: absolute;
  left: 13px;
  width: 16px; height: 1.5px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s;
}
.burger span { top: 21px; }
.burger span::before { left: 0; top: -5px; }
.burger span::after { left: 0; top: 5px; }
.menu-open .burger span { transform: rotate(45deg); }
.menu-open .burger span::before { transform: rotate(-90deg) translateX(-5px); opacity: 1; top: 0; left: 0; }
.menu-open .burger span::after { opacity: 0; }

@media (max-width: 900px) {
  .site-nav {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 20px;
    transform: translateY(calc(-100% - 64px));
    visibility: hidden;
    transition: transform .35s var(--ease), visibility 0s .35s;
    z-index: 49;
  }
  .menu-open .site-nav {
    transform: translateY(0);
    visibility: visible;
    transition: transform .35s var(--ease), visibility 0s;
  }
  .site-nav a { padding: 13px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .site-nav a:last-of-type { border-bottom: 0; }
  .site-nav .btn { margin-top: 10px; justify-content: center; padding: 15px; }
  .burger { display: block; }
}

/* ---------- герой (сетка постера — гайдбук, стр. 29–30) ---------- */
.hero {
  position: relative;
  overflow: clip;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(1100px 520px at 86% 8%, rgba(255, 206, 207, .35), transparent 68%),
    var(--paper);
}
.hero__in {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  grid-template-rows: auto 1fr auto;
  min-height: min(88svh, 900px);
  padding-top: 28px;
  padding-bottom: 56px;
  gap: 0 24px;
}
.hero__slogan {
  grid-column: 1;
  max-width: 34ch;
  font-size: clamp(13px, 1.15vw, 15px);
}
.hero__site {
  grid-column: 2;
  justify-self: end;
  font-size: 13px;
  opacity: .8;
}
.hero__main {
  grid-column: 1;
  grid-row: 2 / 4;
  align-self: end;
  padding-top: 48px;
}
.hero__logo {
  font-size: clamp(58px, 8.6vw, 132px);
  margin: 0 0 10px;
  letter-spacing: -.02em;
}
.hero__line {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 5.4vw, 84px);
  line-height: 1;
  letter-spacing: .16em;
  margin: 6px 0 26px;
}
.hero__sub {
  max-width: 42ch;
  margin: 0 0 34px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero__product {
  grid-column: 2;
  grid-row: 1 / 4;
  position: relative;
  align-self: stretch;
}
.hero__product img {
  position: absolute;
  bottom: -12%;
  right: 4%;
  height: 108%;
  max-width: none;
  width: auto;
  mix-blend-mode: multiply; /* белый фон пак-шота растворяется в фоне */
  animation: canFloat 7s ease-in-out infinite;
}
@keyframes canFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(-.6deg); }
}
.hero__molecule {
  position: absolute;
  z-index: -1;
  right: -6%;
  top: -4%;
  width: 130%;
  color: var(--rose-ink);
  opacity: .5;
}

@media (max-width: 900px) {
  .hero__in {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    min-height: 0;
    padding-bottom: 0;
  }
  .hero__site { display: none; }
  .hero__slogan { max-width: 100%; margin-bottom: 8px; }
  .hero__main { grid-column: 1; grid-row: auto; padding-top: 26px; }
  .hero__logo { font-size: clamp(58px, 16.5vw, 96px); }
  .hero__cta .btn { flex: 1 1 100%; justify-content: center; }
  .hero__product {
    grid-column: 1;
    grid-row: auto;
    height: clamp(340px, 92vw, 520px);
    margin-top: 10px;
  }
  .hero__product img {
    position: absolute;
    height: 118%;
    right: 6%;
    bottom: -18%;
  }
  .hero__molecule { width: 170%; right: -30%; top: -12%; }
}

/* ---------- бегущая строка ---------- */
.ticker {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: tick 36s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__seq {
  display: flex;
  align-items: center;
  padding: 13px 0;
  font-size: 13px;
  letter-spacing: .03em;
}
.ticker__seq span { padding: 0 18px; white-space: nowrap; }
.ticker__seq span::after {
  content: '/';
  padding-left: 36px;
  opacity: .35;
}
@keyframes tick {
  to { transform: translateX(-50%); }
}

/* ---------- секции ---------- */
.section { padding-block: clamp(64px, 9vw, 140px); scroll-margin-top: 56px; }
.section--tint { background: var(--bg); }
.section--line { border-top: 1px solid var(--line); }

.sect-head { margin-bottom: clamp(36px, 5vw, 72px); max-width: 900px; }

/* ---------- продукт ---------- */
.product {
  display: grid;
  grid-template-columns: minmax(300px, 480px) 1fr;
  gap: clamp(28px, 5vw, 88px);
  align-items: start;
}
.product__media {
  position: sticky;
  top: 96px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(20px, 3vw, 44px);
  overflow: hidden;
}
.product__media::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(640px 320px at 20% 0%, rgba(255, 206, 207, .5), transparent 70%);
}
.product__media .p-molecule {
  position: absolute;
  right: -12%;
  bottom: -6%;
  width: 70%;
  color: var(--rose-ink);
  opacity: .45;
}
.product__media img {
  position: relative;
  margin-inline: auto;
  width: min(62%, 300px);
  height: auto;
  filter: drop-shadow(0 26px 34px rgba(0, 0, 0, .14));
}
.product__body .h-section { margin-bottom: 26px; }
.product__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 30px;
}
.spec {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(120px, 220px) 1fr;
  gap: 8px 24px;
  padding: 13px 0;
  font-size: 14px;
}
.spec:last-of-type { border-bottom: 1px solid var(--line); }
.spec dt { margin: 0; opacity: .55; }
.spec dd { margin: 0; }
.product__buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
}
.product__price {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
}
@media (max-width: 900px) {
  .product { grid-template-columns: 1fr; }
  .product__media { position: static; }
  .product__buy .btn { flex: 1 1 100%; justify-content: center; }
}

/* ---------- наука ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
  margin-bottom: clamp(40px, 6vw, 80px);
}
.stat {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  padding: clamp(20px, 2.6vw, 34px);
}
.stat__num {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(38px, 4.6vw, 64px);
  line-height: 1.05;
  padding: 0 .18em;
  background: var(--stat-c, var(--rose));
  margin-bottom: 18px;
}
.stat__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 19px;
  margin-bottom: 10px;
}
.research {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
}
.research__card {
  background: var(--paper);
  border-radius: 18px;
  padding: clamp(22px, 2.6vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  border: 1px solid var(--line);
}
.section--tint .research__card, .section--tint .stat { border-color: transparent; }
.research__card p { margin: 0; font-size: 14px; flex: 1; }
.research__card .h-card { order: 2; }
@media (max-width: 900px) {
  .stats, .research { grid-template-columns: 1fr; }
}

/* ---------- линейка ---------- */
.lineup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.5vw, 28px);
}
.pcard {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}
.pcard__top {
  position: relative;
  background: var(--pc, var(--rose));
  min-height: clamp(300px, 30vw, 430px);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.pcard__top .p-molecule {
  position: absolute;
  width: 88%;
  right: -22%;
  top: -8%;
  color: #fff;
  opacity: .55;
}
.pcard__top img {
  position: relative;
  height: clamp(240px, 24vw, 350px);
  width: auto;
  mix-blend-mode: multiply; /* белый фон пак-шотов растворяется в цвете карточки */
  transition: transform .5s var(--ease);
}
.pcard:hover .pcard__top img { transform: translateY(-10px) scale(1.02); }
.pcard__body {
  padding: clamp(20px, 2.6vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.pcard__logo {
  font-family: var(--logo);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.05;
  letter-spacing: -.01em;
}
.pcard__name {
  font-family: var(--serif);
  font-size: clamp(34px, 3.4vw, 48px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: .1em;
}
.pcard__name .hl::before { transform: scaleX(1); }
.pcard__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.pcard p { margin: 0; font-size: 14px; max-width: 52ch; }
.pcard__foot {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  .lineup { grid-template-columns: 1fr; }
}

/* ---------- о нас ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 88px);
}
.about__lead {
  font-size: 16px;
}
.about__lead p { margin: 0 0 18px; }
.quote {
  border-left: 3px solid var(--q, var(--rose));
  padding: 6px 0 6px 26px;
  margin: 0 0 34px;
}
.quote p {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(19px, 1.8vw, 24px);
  line-height: 1.32;
  margin: 0 0 14px;
}
.quote footer { font-size: 13px; opacity: .62; }
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
}

/* ---------- медиа ---------- */
.media-list { border-top: 1px solid var(--line); }
.media-item {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 10px 28px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  position: relative;
}
.media-item__src { font-size: 13px; opacity: .55; }
.media-item__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.25;
  transition: opacity .2s;
}
.media-item .arr {
  font-family: var(--mono);
  transition: transform .3s var(--ease);
}
.media-item:hover .media-item__title {
  background-image: linear-gradient(var(--bg), var(--bg));
  background-size: 100% 88%;
  background-position: 0 90%;
  background-repeat: no-repeat;
}
.media-item:hover .arr { transform: translate(5px, -3px); }
@media (max-width: 720px) {
  .media-item { grid-template-columns: 1fr auto; }
  .media-item__src { grid-column: 1 / -1; }
}

/* ---------- галерея / соцсети ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 1.6vw, 20px);
}
.gallery a {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  display: block;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.gallery a:hover img { transform: scale(1.05); }
.gallery a::after {
  content: attr(data-cap);
  position: absolute;
  inset: auto 0 0 0;
  padding: 34px 14px 12px;
  font-size: 12.5px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .55));
  opacity: 0;
  transition: opacity .35s;
}
.gallery a:hover::after { opacity: 1; }
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- предупреждение ---------- */
.callout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 22px;
  background: var(--paper);
  margin-top: clamp(30px, 4vw, 52px);
  font-size: 13px;
}
.callout__mark {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--rose);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 16px;
}

/* ---------- подвал ---------- */
.site-foot {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(48px, 7vw, 96px) 34px;
}
.site-foot a { color: inherit; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  margin-bottom: clamp(40px, 6vw, 72px);
}
.foot-logo {
  font-family: var(--logo);
  font-weight: 600;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -.015em;
}
.foot-logo .hl-rose {
  font-family: var(--serif);
  font-weight: 300;
  color: var(--ink);
  letter-spacing: .1em;
}
.foot-logo .hl-rose::before { transform: scaleX(1); }
.foot-col h3 {
  font-size: 13px;
  font-weight: 400;
  opacity: .5;
  margin: 0 0 16px;
}
.foot-col ul {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 10px;
  font-size: 14px;
}
.foot-legal {
  border-top: 1px solid rgba(255, 255, 255, .18);
  padding-top: 22px;
  display: grid;
  gap: 10px;
  font-size: 12px;
  opacity: .55;
  line-height: 1.6;
}
@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr; }
}

/* ---------- анимации появления ---------- */
.js .rev {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.in .rev, .rev.in {
  opacity: 1;
  transform: none;
}

/* прорисовка молекулы */
/* содержимое <use> живёт в shadow DOM — стилизуем корень svg:
   fill/stroke/stroke-dasharray наследуются внутрь */
.p-molecule {
  fill: none;
  stroke: currentColor;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.js .draw {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
}
.in .draw, .draw.in {
  animation: draw 2.6s var(--ease) forwards;
}
@keyframes draw {
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rev, .js .hl::before { transition: none; opacity: 1; transform: none; }
  .js .hl::before { transform: scaleX(1); }
  .ticker__track { animation: none; }
  .hero__product img { animation: none; }
  .js .draw { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
}

/* ---------- диалог «где купить» ---------- */
.shop-dialog {
  border: 1px solid var(--ink);
  border-radius: 20px;
  padding: clamp(22px, 3vw, 34px);
  width: min(440px, calc(100vw - 32px));
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
}
.shop-dialog::backdrop {
  background: rgba(0, 0, 0, .42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.shop-dialog[open] {
  animation: dialogIn .35s var(--ease);
}
@keyframes dialogIn {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.shop-dialog .x {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: none;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.shop-dialog .x:hover { background: var(--ink); color: var(--paper); }
.shop-dialog h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  margin: 0 0 6px;
}
.shop-dialog h3 .hl::before { transform: scaleX(1); }
.shop-dialog__sub {
  font-size: 13px;
  opacity: .6;
  margin: 0 0 20px;
}
.shop-dialog__list {
  display: grid;
  gap: 10px;
}
.mp-link {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 18px;
  text-decoration: none;
  transition: border-color .2s, background .2s, transform .2s var(--ease);
  position: relative;
  overflow: hidden;
}
.mp-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--mp-c, var(--bg));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .3s var(--ease);
  z-index: 0;
}
.mp-link:hover::before { transform: scaleX(1); }
.mp-link:hover { border-color: var(--ink); }
.mp-link > * { position: relative; z-index: 1; }
.mp-link__name {
  font-family: var(--logo);
  font-weight: 600;
  font-size: 17px;
}
.mp-link__note {
  grid-column: 1;
  font-size: 12.5px;
  opacity: .58;
}
.mp-link .arr {
  grid-row: 1 / 3;
  grid-column: 2;
  transition: transform .25s var(--ease);
}
.mp-link:hover .arr { transform: translateX(4px); }

/* ---------- панель статистики (?stats) ---------- */
.stats-panel {
  position: fixed;
  inset: auto 16px 16px auto;
  z-index: 90;
  width: min(360px, calc(100vw - 32px));
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, .18);
}
.stats-panel h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 19px;
  margin: 0 0 4px;
}
.stats-panel table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 14px 0;
}
.stats-panel td, .stats-panel th {
  text-align: left;
  padding: 7px 4px;
  border-bottom: 1px solid var(--line);
}
.stats-panel td:last-child, .stats-panel th:last-child { text-align: right; }
.stats-panel .row-actions { display: flex; gap: 10px; }
.stats-panel .btn { padding: 10px 16px; font-size: 12.5px; }
.stats-panel .x {
  position: absolute;
  top: 10px; right: 10px;
  width: 32px; height: 32px;
  border: 0;
  background: none;
  font-size: 16px;
  cursor: pointer;
}
