/* =========================================================================
   Rudmal — сайт-визитка продуктов.
   Один файл: шрифты → токены → база → компоненты → секции → адаптив.
   Цвета, радиусы и тени берутся только из токенов ниже.
   ========================================================================= */

/* ----------------------------------------------------------------- шрифты */
/* Source Serif 4 — заголовки, Inter — текст. Оба лежат в assets/fonts
   (SIL OFL 1.1, см. fonts/README.md), кириллица и латиница раздельно. */

@font-face {
  font-family: "Source Serif Variable";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/source-serif-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Source Serif Variable";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/source-serif-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ------------------------------------------------------------------ токены */

:root {
  color-scheme: light;

  --bg: #faf9f5;
  --bg-2: #f2efe5;
  --bg-blur: rgba(250, 249, 245, 0.86);

  /* Блоки, из которых собирается ритм страницы. */
  --bone: #f2efe5;
  --clay-tint: #f4e7de;
  --ink-block: #1c1a15;
  --wash: rgba(204, 120, 92, 0.09);
  --wash-2: rgba(110, 66, 22, 0.05);
  --grain: 0.03;

  --surface: #ffffff;
  --surface-2: #fbfaf6;
  --surface-solid: #ffffff;
  --line: rgba(20, 20, 19, 0.13);
  --line-strong: rgba(20, 20, 19, 0.26);

  --text: #141413;
  --text-dim: #55534c;
  --text-mute: #7c7a72;

  --accent: #b3552f;
  --accent-fill: #cc785c;
  --accent-2: #6e4216;
  --accent-soft: rgba(204, 120, 92, 0.14);
  --accent-ink: #faf9f5;

  --ink: #141413;
  --ink-contrast: #faf9f5;

  --ok: #3f7a5e;
  --ok-soft: rgba(99, 155, 136, 0.18);
  --wip: #96591a;
  --wip-soft: rgba(212, 127, 42, 0.16);

  --shadow-sm: 0 1px 2px rgba(20, 20, 19, 0.05);
  --shadow-md: 0 12px 28px -20px rgba(20, 20, 19, 0.4);
  --shadow-lg: 0 24px 60px -34px rgba(20, 20, 19, 0.45);

  --pa: var(--accent-fill);
  --pa2: var(--accent-2);

  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 22px;
  --r-pill: 999px;

  --header-h: 68px;
  --container: 1180px;
  --section-pad: clamp(68px, 6.4vw, 118px);

  --font-sans: "Inter Variable", -apple-system, BlinkMacSystemFont,
    "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", sans-serif;
  --font-display: "Source Serif Variable", "Iowan Old Style", "Palatino Linotype",
    Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code",
    Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.24s;
}

[data-theme="dark"] {
  color-scheme: dark;

  --bg: #1b1a17;
  --bg-2: #232019;
  --bg-blur: rgba(27, 26, 23, 0.86);

  --bone: #232019;
  --clay-tint: #2b211a;
  --ink-block: #100f0c;
  --wash: rgba(204, 120, 92, 0.13);
  --wash-2: rgba(212, 162, 127, 0.06);
  --grain: 0.05;

  --surface: #232220;
  --surface-2: #292724;
  --surface-solid: #232220;
  --line: rgba(245, 242, 234, 0.14);
  --line-strong: rgba(245, 242, 234, 0.3);

  --text: #f5f2ea;
  --text-dim: #bdb8ac;
  --text-mute: #948f84;

  --accent: #e0a184;
  --accent-fill: #cc785c;
  --accent-2: #d4a27f;
  --accent-soft: rgba(204, 120, 92, 0.2);
  --accent-ink: #1b1a17;

  --ink: #f5f2ea;
  --ink-contrast: #1b1a17;

  --ok: #8ec0a8;
  --ok-soft: rgba(99, 155, 136, 0.22);
  --wip: #e0b070;
  --wip-soft: rgba(212, 127, 42, 0.2);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 14px 34px -22px rgba(0, 0, 0, 0.8);
  --shadow-lg: 0 30px 70px -38px rgba(0, 0, 0, 0.85);
}

/* -------------------------------------------------------------------- база */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  font-feature-settings: "kern" 1, "liga" 1;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Бумажная текстура на всю страницу: зерно едва различимо, но убирает
   ощущение плоской заливки. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  mix-blend-mode: multiply;
}

[data-theme="dark"] body::after {
  mix-blend-mode: screen;
}

body.is-locked {
  overflow: hidden;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.16;
  text-wrap: balance;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
  flex: none;
}

::selection {
  background: var(--accent-soft);
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 32px);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--surface-solid);
  border: 1px solid var(--line-strong);
  color: var(--text);
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.grad {
  color: var(--accent);
  font-style: italic;
}

/* --------------------------------------------------------------- появление */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

/* ------------------------------------------------------------------ шапка */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-top: 3px solid var(--accent-fill);
  background: var(--bg-blur);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition:
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 620;
  font-size: 1.02rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  flex: none;
}

.logo__mark {
  border-radius: 10px;
  transition: transform var(--dur) var(--ease);
}

.logo:hover .logo__mark {
  transform: translateY(-1px) scale(1.03);
}

.nav {
  margin-inline: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 13px;
  border-radius: var(--r-pill);
  color: var(--text-dim);
  font-size: 0.94rem;
  transition:
    color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.nav__link:hover {
  color: var(--text);
  background: var(--surface);
}

.nav__link.is-active {
  color: var(--text);
  background: var(--surface-2);
}

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

.nav + .site-header__actions {
  margin-left: 0;
}

/* --------------------------------------------------------------- контролы */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-line: var(--line-strong);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--r-sm);
  border: 1px solid var(--btn-line);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.97rem;
  font-weight: 560;
  letter-spacing: -0.006em;
  white-space: nowrap;
  transition:
    transform var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.btn__icon {
  transition: transform var(--dur) var(--ease);
  opacity: 0.85;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:hover .btn__icon {
  transform: translateX(2px);
}

.btn:active {
  transform: translateY(0) scale(0.985);
}

.btn--primary {
  --btn-bg: var(--ink);
  --btn-fg: var(--ink-contrast);
  --btn-line: var(--ink);
  font-weight: 580;
}

.btn--primary:hover {
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  --btn-bg: var(--surface);
  --btn-line: var(--line);
}

.btn--ghost:hover {
  border-color: var(--line-strong);
}

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

.btn--block {
  width: 100%;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  background: var(--surface);
  color: var(--text-dim);
  cursor: pointer;
  transition:
    color var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.icon-btn:hover {
  color: var(--text);
  background: var(--surface-2);
  transform: translateY(-1px);
}

.icon-btn--outline {
  border-color: var(--line);
  background: transparent;
}

.theme-toggle__moon {
  display: none;
}

[data-theme="light"] .theme-toggle__sun {
  display: none;
}

[data-theme="light"] .theme-toggle__moon {
  display: block;
}

.nav-toggle {
  display: none;
}

.nav-toggle__close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__close {
  display: block;
}

.flag {
  display: inline-flex;
  flex-direction: column;
  width: 17px;
  height: 12px;
  flex: none;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line-strong);
}

.flag__bar {
  flex: 1;
}

.flag__bar--white {
  background: #ffffff;
}

.flag__bar--blue {
  background: #0039a6;
}

.flag__bar--red {
  background: #d52b1e;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--ok-soft);
  color: var(--ok);
  font-size: 0.78rem;
  font-weight: 560;
  white-space: nowrap;
}

.status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent);
}

.status--wip {
  background: var(--wip-soft);
  color: var(--wip);
}

/* ------------------------------------------------------------------- герой */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(52px, 6vw, 96px);
  padding-bottom: clamp(56px, 6vw, 104px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 88% -20%, var(--wash), transparent 58%),
    radial-gradient(90% 70% at 6% 6%, var(--wash-2), transparent 62%),
    var(--bg);
}

/* Тонкая тёплая линия на стыке героя и первого блока — «край листа». */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 96px;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bone));
  opacity: 0.7;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  column-gap: clamp(32px, 3.4vw, 56px);
  align-items: start;
}

.hero__text {
  grid-column: 1;
  grid-row: 1;
}

.hero__side {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

.hero__actions {
  grid-column: 1;
  grid-row: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 34px;
  padding: 0 15px 0 12px;
  margin-bottom: 24px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 0.83rem;
  letter-spacing: 0.01em;
}

.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.hero__title {
  font-size: clamp(2.25rem, 1.4rem + 2.9vw, 3.55rem);
  line-height: 1.1;
  letter-spacing: -0.018em;
  font-weight: 550;
  text-wrap: pretty;
}

.hero__lead {
  max-width: 33em;
  margin-top: 22px;
  color: var(--text-dim);
  font-size: clamp(1.02rem, 0.96rem + 0.32vw, 1.16rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero__facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 24px;
  margin-top: clamp(34px, 3.6vw, 56px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.fact__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 1.1vw, 2.15rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.fact__label {
  display: block;
  margin-top: 4px;
  color: var(--text-mute);
  font-size: 0.83rem;
  line-height: 1.4;
}

/* ------------------------------------------------ плитки продуктов в герое */

.hero__side-label {
  margin-bottom: 12px;
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-products {
  display: grid;
  gap: 10px;
}

.hero-product {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.hero-product:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.hero-product .product__mark {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: var(--r-sm);
}

.hero-product__pulse {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--ok);
  border: 2px solid var(--surface);
}

.hero-product__pulse--wip {
  background: var(--wip);
}

.hero-product__body {
  display: grid;
  min-width: 0;
  margin-right: auto;
}

.hero-product__name {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero-product__meta {
  color: var(--text-mute);
  font-size: 0.85rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-product__open {
  color: var(--text-dim);
  font-size: 0.88rem;
  font-weight: 550;
  white-space: nowrap;
}

.hero-product__arrow {
  color: var(--text-mute);
  transition:
    transform var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.hero-product:hover .hero-product__arrow,
.hero-product:hover .hero-product__open {
  color: var(--text);
}

.hero-product:hover .hero-product__arrow {
  transform: translate(2px, -2px);
}

.hero-product--next {
  background: var(--surface);
  border-style: dashed;
  box-shadow: none;
}

.hero-product--next:hover .hero-product__arrow {
  transform: translateX(3px);
}

/* ----------------------------------------------------------------- секции */

.section {
  position: relative;
  overflow: hidden;
  padding-block: var(--section-pad);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.section > .container {
  position: relative;
}

/* Костяной блок: белые карточки на нём читаются как листы на бумаге. */
.section--bone {
  background: var(--bone);
  border-block: 1px solid var(--line);
}

/* Глиняный блок — тёплая пауза перед контактами. */
.section--clay {
  background: var(--clay-tint);
  border-block: 1px solid var(--line);
}

/* Тёмный блок: главный перепад глубины на странице. Токены переопределены
   локально, поэтому вложенные карточки и подписи подстраиваются сами. */
.section--ink {
  --text: #f7f4ec;
  --text-dim: #cbc5b6;
  --text-mute: #a49d8d;
  --line: rgba(247, 244, 236, 0.16);
  --line-strong: rgba(247, 244, 236, 0.32);
  --surface: rgba(247, 244, 236, 0.05);
  --surface-2: rgba(247, 244, 236, 0.09);
  --accent: #e2a184;
  --accent-soft: rgba(204, 120, 92, 0.22);
  --ink: #f7f4ec;
  --ink-contrast: #1c1a15;
  background: var(--ink-block);
  color: var(--text);
  border-block: 1px solid var(--ink-block);
}

.section--tight {
  padding-block: clamp(44px, 4vw, 72px);
}

.section__head {
  max-width: 46rem;
  margin-bottom: clamp(32px, 3.4vw, 54px);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__eyebrow {
  margin-bottom: 12px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section__title {
  font-size: clamp(1.78rem, 1.3rem + 1.9vw, 2.75rem);
  letter-spacing: -0.03em;
}

.section__title--small {
  margin-bottom: 26px;
  font-size: clamp(1.35rem, 1.12rem + 0.9vw, 1.85rem);
}

.section__lead {
  margin-top: 16px;
  color: var(--text-dim);
  font-size: clamp(1rem, 0.96rem + 0.24vw, 1.12rem);
  max-width: 42em;
}

/* ---------------------------------------------------------------- продукты */

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

[data-accent="clay"] {
  --pa: #cc785c;
  --pa2: #b3552f;
}

[data-accent="moss"] {
  --pa: #5f8b76;
  --pa2: #3f6b58;
}

.product {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(22px, 2.4vw, 34px);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.product::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--pa);
}

.product:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.product__head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}

.product__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: var(--r-md);
  background: var(--pa);
  color: #fff;
}

.product__mark--dashed {
  background: transparent;
  border: 1px dashed var(--line-strong);
  color: var(--text-dim);
}

.product__ident {
  min-width: 0;
  margin-right: auto;
}

.product__name {
  font-size: clamp(1.28rem, 1.1rem + 0.7vw, 1.6rem);
  letter-spacing: -0.026em;
}

.product__kind {
  margin-top: 2px;
  color: var(--text-mute);
  font-size: 0.87rem;
}

.product__dot {
  opacity: 0.6;
}

.product__tagline {
  position: relative;
  color: var(--text);
  font-size: clamp(1.04rem, 0.98rem + 0.3vw, 1.2rem);
  font-weight: 560;
  letter-spacing: -0.014em;
  line-height: 1.45;
}

.product__summary {
  position: relative;
  color: var(--text-dim);
}

.product__bullets {
  position: relative;
  display: grid;
  gap: 9px;
}

.product__bullet {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-dim);
  font-size: 0.94rem;
  line-height: 1.5;
}

.product__check {
  margin-top: 3px;
  color: var(--pa);
}

.product__actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 6px;
}

.product--next {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  column-gap: clamp(24px, 3vw, 56px);
  row-gap: 16px;
  align-items: start;
  background: transparent;
  border-style: dashed;
}

.product--next::after {
  display: none;
}

.product--next .product__head,
.product--next .product__summary,
.product--next .product__actions {
  grid-column: 1;
}

.product--next .product__bullets {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  padding-left: clamp(0px, 2vw, 28px);
  border-left: 1px solid var(--line);
}

.product--next:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--line-strong);
}

/* ------------------------------------------------------------ кому подходит */

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

.audience {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(22px, 2.2vw, 30px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.audience:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.audience__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--accent-soft);
  color: var(--accent);
}

.audience__title {
  font-size: 1.18rem;
  letter-spacing: -0.022em;
}

.audience__text {
  color: var(--text-dim);
  font-size: 0.96rem;
}

.audience__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  margin-top: auto;
  color: var(--accent);
  font-size: 0.94rem;
  font-weight: 560;
  border-bottom: 1px solid transparent;
}

.audience__link:hover {
  border-bottom-color: var(--accent);
}

.audience__arrow {
  transition: transform var(--dur) var(--ease);
}

.audience__link:hover .audience__arrow {
  transform: translate(2px, -2px);
}

/* ------------------------------------------------------------ почему Rudmal */

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

.capability {
  padding: clamp(20px, 2vw, 28px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s var(--ease),
    background-color 0.35s var(--ease);
}

.capability:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.capability__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--accent-soft);
  color: var(--accent);
}

.capability__title {
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.capability__text {
  margin-top: 10px;
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* -------------------------------------------------------------- контакты */

.section--contacts {
  padding-bottom: clamp(76px, 7vw, 128px);
}

.contacts-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  padding: clamp(28px, 3.4vw, 52px);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.contacts-card__text {
  position: relative;
}

.channels {
  position: relative;
  display: grid;
  gap: 10px;
}

.channel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  transition:
    transform var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.channel:hover {
  transform: translateX(3px);
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.channel--primary {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.channel__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--accent);
}

.channel__body {
  display: grid;
  min-width: 0;
  margin-right: auto;
}

.channel__label {
  font-size: 0.94rem;
  font-weight: 560;
}

.channel__value {
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel__arrow {
  color: var(--text-mute);
  transition: transform var(--dur) var(--ease);
}

.channel:hover .channel__arrow {
  transform: translate(2px, -2px);
  color: var(--text);
}

/* --------------------------------------------------------- страница продукта */

.product-hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(28px, 3vw, 44px);
  padding-bottom: clamp(44px, 4.4vw, 76px);
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  position: relative;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--text-mute);
  font-size: 0.85rem;
}

.breadcrumb__list li {
  display: inline-flex;
  align-items: center;
}

.breadcrumb__list li + li::before {
  content: "/";
  margin-right: 8px;
  opacity: 0.5;
}

.breadcrumb__list a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding-inline: 2px;
  transition: color var(--dur) var(--ease);
}

.breadcrumb__list a:hover {
  color: var(--text);
}

.product-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}

.product-hero__ident {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.product-hero__title {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem);
  letter-spacing: -0.034em;
}

.product-hero__lead {
  max-width: 36em;
  color: var(--text-dim);
  font-size: clamp(1.02rem, 0.96rem + 0.3vw, 1.14rem);
}

.product-hero__text .product__actions {
  margin-top: 28px;
}

.pfacts {
  display: grid;
  margin: 0;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}

.pfact {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 14px 18px;
}

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

.pfact__label {
  color: var(--text-mute);
  font-size: 0.86rem;
}

.pfact__value {
  margin: 0;
  text-align: right;
  font-size: 0.92rem;
  font-weight: 560;
}

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

.detail {
  padding: clamp(20px, 2vw, 26px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}

.detail__title {
  font-size: 1.06rem;
  letter-spacing: -0.02em;
}

.detail__text {
  margin-top: 9px;
  color: var(--text-dim);
  font-size: 0.95rem;
}

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

.platform {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
}

.platform__name {
  font-size: 0.98rem;
  font-weight: 540;
}

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

.mini-product {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  transition:
    transform var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.mini-product:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.mini-product .product__mark {
  width: 44px;
  height: 44px;
}

.mini-product__body {
  display: grid;
  min-width: 0;
  margin-right: auto;
}

.mini-product__name {
  font-weight: 580;
  letter-spacing: -0.014em;
}

.mini-product__text {
  color: var(--text-mute);
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-product__arrow {
  color: var(--text-mute);
  transition: transform var(--dur) var(--ease);
}

.mini-product:hover .mini-product__arrow {
  transform: translateX(3px);
  color: var(--text);
}

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

.site-footer {
  padding-top: clamp(44px, 4vw, 72px);
  padding-bottom: 32px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 2.4fr);
  gap: clamp(28px, 4vw, 72px);
  padding-bottom: clamp(32px, 3vw, 48px);
}

.footer__pitch {
  margin-top: 16px;
  max-width: 34em;
  color: var(--text-mute);
  font-size: 0.92rem;
}

.footer__social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer__columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.footer__title {
  margin-bottom: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.footer__list {
  display: grid;
  gap: 4px;
}

.footer__link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--text-dim);
  font-size: 0.93rem;
  transition: color var(--dur) var(--ease);
}

.footer__link:hover {
  color: var(--text);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--text-mute);
  font-size: 0.84rem;
}

.footer__note a {
  color: var(--text-dim);
  border-bottom: 1px solid var(--line-strong);
}

.footer__note a:hover {
  color: var(--text);
}

/* ------------------------------------------------------------ мобильное меню */

.mobile-nav {
  display: none;
  padding: 12px clamp(18px, 4vw, 32px) 22px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}

.mobile-nav:not([hidden]) {
  animation: nav-in 0.22s var(--ease) both;
}

@keyframes nav-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.mobile-nav__list {
  display: grid;
  gap: 2px;
  margin-bottom: 16px;
}

.mobile-nav .nav__link {
  height: 48px;
  width: 100%;
  padding-inline: 14px;
  border-radius: var(--r-md);
  font-size: 1rem;
  color: var(--text);
}

/* ------------------------------------------------------------------ адаптив */

@media (max-width: 1080px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 34px;
  }

  .hero__text,
  .hero__side,
  .hero__actions,
  .hero__facts {
    grid-column: 1;
    grid-row: auto;
  }

  .hero__actions {
    margin-top: 0;
  }

  .hero__lead {
    max-width: 100%;
  }

  .capabilities,
  .audiences {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audiences .audience:last-child {
    grid-column: 1 / -1;
  }

  .product-hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-header__cta {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .mobile-nav[hidden] {
    display: none;
  }

  .products,
  .details,
  .platforms,
  .mini-products {
    grid-template-columns: minmax(0, 1fr);
  }

  .product--next {
    grid-template-columns: minmax(0, 1fr);
  }

  .product--next .product__bullets {
    grid-column: 1;
    grid-row: auto;
    padding-left: 0;
    border-left: none;
  }

  .contacts-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer__top {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer__columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 60px;
  }

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

  .capabilities,
  .audiences {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__actions .btn {
    flex: 1 1 auto;
  }

  .product-hero__ident {
    gap: 12px;
  }

  .pfact {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .pfact__value {
    text-align: left;
  }
}

@media (max-width: 560px) {
  /* На узком экране подпись кнопки съедает место у названия продукта —
     оставляем стрелку, она и так читается как «открыть». */
  .hero-product__open {
    display: none;
  }

  .hero-product {
    padding: 13px 15px;
    gap: 12px;
  }

  .product__head {
    flex-wrap: wrap;
  }

  .product__ident {
    flex: 1 1 60%;
  }

  .product__head .status {
    order: 3;
  }

  .product__actions .btn,
  .product-hero__text .btn {
    flex: 1 1 100%;
  }
}

@media (max-width: 480px) {
  .logo__word {
    font-size: 0.98rem;
  }

  .footer__columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
}

@media (hover: none) {
  .product:hover,
  .capability:hover,
  .mini-product:hover,
  .channel:hover,
  .btn:hover,
  .icon-btn:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .mobile-nav,
  .hero__aurora,
  .hero__grid,
  .section__glow,
  .product__glow,
  .contacts-card__glow {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}
