/* =========================================================
   bundeva.ru — стили лендинга
   Палитра — variables.css (подключается раньше этого файла)
   ========================================================= */

/* ---------- Шрифты ---------- */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(fonts/golos-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(fonts/golos-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+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Акценты в тексте — рукописный Caveat */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/caveat-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/caveat-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+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Глобальные стили ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  interpolate-size: allow-keywords;
  scrollbar-color: var(--neutral-400) var(--bg-page);
  overflow-x: clip;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg-page);
  color: var(--text-body);
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}

h1, h2, h3, p, ul, ol, dl, dd, figure {
  margin: 0;
}

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

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

a {
  color: inherit;
}

button, input, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

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

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

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--radius-full);
  background: var(--neutral-900);
  color: var(--text-inverse);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .3s var(--ease-out);
}

.skip-link:focus {
  transform: none;
}

.container {
  width: 100%;
  max-width: calc(var(--container-width) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Переменные страницы ---------- */
:root {
  --font: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-hand: 'Caveat', 'Segoe Print', cursive;

  --text-base: 17px;
  --text-lead: clamp(1.125rem, 1.02rem + .45vw, 1.375rem);
  --text-h1: clamp(2.5rem, 1.45rem + 4.1vw, 5rem);
  --text-h2: clamp(2.125rem, 1.4rem + 2.8vw, 3.75rem);
  --text-h3: clamp(1.25rem, 1.12rem + .5vw, 1.5rem);

  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(72px, 9vw, 136px);
  --header-h: 72px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --focus: var(--brand-dark);
  --accent-color: var(--brand-default);
}

@media (min-width: 768px) {
  :root {
    --text-base: 18px;
  }
}

/* ---------- Базовые элементы интерфейса ---------- */

/* Акцентные фразы: рукописный шрифт, крупнее и с наклоном, цвет бренда */
.accent {
  color: var(--accent-color);
  font-family: var(--font-hand);
  font-size: 1.4em;
  font-weight: 700;
  font-style: oblique 8deg;
  letter-spacing: normal;
  line-height: 0;
}

.link {
  color: var(--text-heading);
  font-weight: 600;
  text-decoration-thickness: 2px;
  text-underline-offset: .2em;
  text-decoration-color: var(--brand-default);
  transition: text-decoration-color .2s;
}

.link:hover {
  text-decoration-color: currentColor;
}

/* Кнопки */
.button {
  --b-bg: var(--button-primary);
  --b-fg: var(--button-primary-text);
  --b-bg-hover: var(--brand-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  background: var(--b-bg);
  color: var(--b-fg);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color .25s var(--ease-out),
    color .25s var(--ease-out),
    transform .45s var(--ease-spring);
}

.button:hover {
  background: var(--b-bg-hover);
}

@media (hover: hover) {
  .button:hover {
    transform: translateY(-2px);
  }
}

.button:active {
  transform: translateY(0) scale(.97);
  transition-duration: .1s;
}

.button--small {
  min-height: 44px;
  padding: 0 20px;
  font-size: 1rem;
}

.button--large {
  min-height: 60px;
  padding: 0 32px;
  font-size: 1.125rem;
}

.button--dark {
  --b-bg: var(--neutral-900);
  --b-fg: var(--text-inverse);
  --b-bg-hover: var(--neutral-700);
}

.button--outline {
  --b-bg: transparent;
  --b-fg: var(--text-heading);
  --b-bg-hover: var(--neutral-900);
  border-color: currentColor;
}

.button--outline:hover {
  color: var(--text-inverse);
  border-color: var(--neutral-900);
}

/* Логотип */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-heading);
  text-decoration: none;
}

.logo__mark {
  width: 40px;
  height: 34px;
  color: var(--brand-default);
  transition: transform .6s var(--ease-spring);
}

.logo:hover .logo__mark {
  transform: rotate(-8deg) scale(1.06);
}

.logo__word {
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1;
}

.logo__dev {
  color: var(--brand-default);
}

.logo--light {
  color: var(--neutral-50);
}

/* Логотип с подписью, как в og.jpg */
.logo--lockup {
  gap: 14px;
}

.logo--lockup .logo__mark {
  width: 95px;
  height: 80px;
}

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

.logo--lockup .logo__word {
  font-size: 2.75rem;
}

.logo__slogan {
  color: #cdbea9;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

/* Заголовки секций */
.section {
  padding-block: var(--section);
}

.section__title {
  max-width: 18ch;
  color: var(--text-heading);
  font-size: var(--text-h2);
  font-weight: 850;
  line-height: 1.04;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.section__lead {
  max-width: 58ch;
  margin-top: 20px;
  color: var(--text-muted);
  font-size: var(--text-lead);
  line-height: 1.5;
  text-wrap: pretty;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: color-mix(in srgb, var(--bg-page) 86%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}

.header.is-scrolled {
  border-bottom-color: var(--border-subtle);
  box-shadow: 0 6px 24px -12px rgb(36 35 34 / .18);
}

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

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

.nav__list {
  display: flex;
  gap: clamp(16px, 2.2vw, 32px);
}

.nav__link {
  position: relative;
  padding-block: 8px;
  color: var(--text-body);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s;
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-default);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease-out);
}

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

.nav__link:hover::after {
  transform: scaleX(1);
}

.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--neutral-900);
}

.burger__line {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--neutral-50);
  transition: transform .4s var(--ease-spring);
}

.burger__line:nth-of-type(2) { top: 18px; }
.burger__line:nth-of-type(3) { top: 24px; }

.burger[aria-expanded="true"] .burger__line:nth-of-type(2) { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__line:nth-of-type(3) { transform: translateY(-3px) rotate(-45deg); }

@media (max-width: 1023px) {
  .burger {
    display: block;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    padding: 8px var(--gutter) 28px;
    background: var(--bg-page);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 24px 40px -24px rgb(36 35 34 / .3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .3s var(--ease-out), transform .45s var(--ease-out), visibility 0s .3s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
  }

  .nav__link {
    display: block;
    padding-block: 14px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 1.375rem;
    font-weight: 700;
  }

  .nav__link::after {
    display: none;
  }
}

@media (max-width: 380px) {
  .logo__word { font-size: 1.375rem; }
  .logo__mark { width: 34px; height: 29px; }
  .header .button--small { padding: 0 14px; }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: calc(var(--header-h) + clamp(32px, 5vw, 72px));
  padding-bottom: clamp(56px, 7vw, 104px);
}

.hero__inner {
  display: grid;
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}

.hero__title {
  max-width: 13ch;
  color: var(--text-heading);
  font-size: var(--text-h1);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.hero__offer {
  max-width: 46ch;
  margin-top: clamp(20px, 2.4vw, 32px);
  font-size: var(--text-lead);
  line-height: 1.5;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: clamp(28px, 3vw, 40px);
}

/* Переключатель тона */
.tone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--text-heading);
  font-size: 1.0625rem;
  font-weight: 600;
}

.tone__icon {
  flex: none;
  width: 40px;
  height: 40px;
  padding: 9px;
  border: 2px solid var(--neutral-800);
  border-radius: 50%;
  transition: transform .6s var(--ease-spring), background-color .25s, color .25s;
}

.tone__label {
  text-decoration: underline dashed 1.5px;
  text-underline-offset: .3em;
  text-decoration-color: var(--neutral-400);
}

.tone:hover .tone__icon {
  background: var(--neutral-900);
  color: var(--brand-default);
}

.tone[aria-pressed="true"] .tone__icon {
  transform: rotate(180deg);
}

/* Схема каналов */
.channels {
  position: relative;
}

.channels__stage {
  position: relative;
  aspect-ratio: 640 / 620;
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
}

.channels__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.channels__path {
  fill: none;
  stroke: var(--neutral-100);
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke .35s var(--ease-out), opacity .35s var(--ease-out);
}

.channels[data-active] .channels__path {
  opacity: .45;
}

.channels[data-active="search"] .channels__path[data-channel="search"],
.channels[data-active="ai"] .channels__path[data-channel="ai"],
.channels[data-active="maps"] .channels__path[data-channel="maps"],
.channels[data-active="ads"] .channels__path[data-channel="ads"],
.channels[data-active="bots"] .channels__path[data-channel="bots"],
.channels[data-active="mail"] .channels__path[data-channel="mail"] {
  stroke: var(--brand-default);
  opacity: 1;
}

.channels__dot {
  fill: var(--neutral-800);
}

.channels__dot.is-lit {
  fill: var(--brand-dark);
}

.channels__glow {
  transform-box: fill-box;
  transform-origin: center;
  animation: glow 5s ease-in-out infinite alternate;
}

@keyframes glow {
  to { transform: scale(1.08); opacity: .8; }
}

.channels__hub {
  color: var(--brand-default);
  transform-box: fill-box;
  transform-origin: 50% 50%;
}

.channels__hub.is-bump {
  animation: bump .7s var(--ease-spring);
}

@keyframes bump {
  35% { transform: scale(1.06); }
}

.channels__hub-label {
  fill: var(--neutral-500);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.channel {
  position: absolute;
  left: var(--x);
  top: var(--y);
  min-height: 40px;
  padding: 0 16px;
  border: 2px solid var(--neutral-800);
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  color: var(--text-heading);
  font-size: .9375rem;
  font-weight: 700;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  transition: background-color .25s var(--ease-out), transform .5s var(--ease-spring);
}

@media (hover: hover) {
  .channel:hover {
    background: var(--brand-default);
    transform: translate(-50%, -50%) scale(1.08);
  }
}

.channel.is-active {
  background: var(--brand-default);
  transform: translate(-50%, -50%) scale(1.08);
}

.channels__info {
  min-height: 3em;
  max-width: 44ch;
  margin: 18px auto 0;
  color: var(--text-muted);
  font-size: .9375rem;
  line-height: 1.45;
  text-align: center;
  text-wrap: balance;
}

.channels__info b {
  color: var(--text-heading);
}

@media (max-width: 520px) {
  .channels__stage {
    width: calc(100% - 48px);
  }

  .channel {
    min-height: 34px;
    padding: 0 11px;
    font-size: .8125rem;
  }
}

@media (min-width: 1000px) {
  .hero {
    min-height: min(100svh, 940px);
    display: flex;
    align-items: center;
  }

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

/* ---------- Pain ---------- */
.pain__inner {
  display: grid;
  gap: clamp(40px, 5vw, 64px);
}

.pain__feed {
  display: grid;
  gap: 14px;
  counter-reset: none;
}

.notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 22px 24px;
  border-radius: var(--radius-2xl);
  background: var(--bg-surface);
  box-shadow: 0 1px 2px rgb(36 35 34 / .06), 0 14px 32px -18px rgb(36 35 34 / .28);
}

.notice:nth-child(even) {
  margin-left: clamp(0px, 4vw, 48px);
}

.notice__icon {
  width: 52px;
  height: 52px;
  padding: 11px;
  border-radius: 16px;
  background: var(--brand-subtle);
  color: var(--brand-default);
}

.notice__title {
  color: var(--text-heading);
  font-size: var(--text-h3);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.015em;
}

.notice__text {
  max-width: 52ch;
  margin-top: 6px;
  color: var(--text-muted);
  text-wrap: pretty;
}

/* Уведомления приходят по одному, когда секция в кадре */
.js .notice {
  opacity: 0;
  transform: translateX(48px) scale(.96);
  transition:
    opacity .5s var(--ease-out) calc(var(--i) * .22s),
    transform .9s var(--ease-spring) calc(var(--i) * .22s);
}

.js .pain__feed.is-in .notice {
  opacity: 1;
  transform: none;
}

@media (min-width: 1000px) {
  .pain__inner {
    grid-template-columns: 5fr 7fr;
    align-items: start;
  }

  .pain__intro {
    position: sticky;
    top: calc(var(--header-h) + 40px);
  }
}

/* ---------- Benefits ---------- */
.benefits {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--brand-default);
  color: var(--brand-foreground);
  --accent-color: var(--brand-foreground);
  --focus: var(--neutral-900);
}

.benefits ::selection {
  background: var(--neutral-900);
  color: var(--brand-default);
}

.benefits__curve {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.benefits__curve path {
  fill: none;
  stroke: var(--brand-light);
  stroke-width: 90;
  stroke-linecap: round;
  opacity: .55;
}

.benefits__title {
  color: var(--brand-foreground);
}

.benefits__value {
  max-width: 34ch;
  margin-top: clamp(24px, 3vw, 40px);
  font-size: clamp(1.375rem, 1.05rem + 1.25vw, 2.125rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.015em;
  text-wrap: pretty;
}

.benefits__value strong {
  font-weight: 850;
}

.benefits__list {
  display: grid;
  gap: clamp(14px, 2vw, 24px);
  margin-top: clamp(48px, 6vw, 88px);
}

/* Карточки — тёмное стекло поверх оранжевого фона */
.benefit {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid rgb(255 255 255 / .1);
  border-radius: var(--radius-2xl);
  background: rgb(14 13 12 / .8);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .08), 0 24px 48px -28px rgb(14 13 12 / .6);
  color: var(--neutral-50);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.benefit ::selection {
  background: var(--brand-default);
  color: var(--brand-foreground);
}

.benefit__title {
  color: var(--text-inverse);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -.025em;
}

/* «Лид» в «Лидовски» — лёгкая отсылка к лидам */
.benefit__lid {
  color: var(--brand-light);
}

.benefit__text {
  max-width: 44ch;
  margin-top: 12px;
  color: var(--neutral-100);
}

@media (min-width: 768px) {
  .benefits__list {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- About ---------- */
.about {
  background: var(--neutral-900);
  color: var(--neutral-100);
  --accent-color: var(--brand-default);
  --focus: var(--brand-default);
}

.about .section__title {
  color: var(--neutral-50);
}

.about__inner {
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.about__photo {
  position: relative;
}

.about__photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-2xl);
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / .8);
}

.about__lead {
  max-width: 48ch;
  margin-top: 24px;
  font-size: var(--text-lead);
  line-height: 1.55;
  text-wrap: pretty;
}

@media (min-width: 1000px) {
  .about__inner {
    grid-template-columns: 7fr 5fr;
  }
}

/* ---------- Price ---------- */
.price__head {
  display: grid;
  gap: 0 48px;
  align-items: end;
}

.price__rail {
  display: none;
  width: 100%;
  height: 60px;
  margin-top: clamp(40px, 5vw, 64px);
}

.price__rail path {
  fill: none;
  stroke: var(--neutral-700);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.price__tags {
  display: grid;
  gap: 64px;
  margin-top: 72px;
}

/* Бирка висит на нитке и раскачивается от курсора */
.tag {
  --swing: 0deg;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 52px clamp(24px, 2.6vw, 34px) 30px;
  border-radius: 22px;
  background: var(--bg-surface);
  color: var(--text-body);
  box-shadow: 0 2px 4px rgb(36 35 34 / .06), 0 26px 50px -28px rgb(36 35 34 / .4);
  transform: rotate(calc(var(--tilt) + var(--swing)));
  transform-origin: 50% -44px;
}

.tag::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: calc(100% - 26px);
  width: 2px;
  height: 70px;
  margin-left: -1px;
  background: var(--neutral-700);
}

.tag__hole {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border-radius: 50%;
  background: var(--bg-page);
  box-shadow: inset 0 2px 3px rgb(0 0 0 / .25);
}

.tag__name {
  color: var(--text-heading);
  font-size: clamp(1.625rem, 1.3rem + 1vw, 2.125rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.03em;
}

/* В жирном начертании с плотным трекингом дефис прилипает к буквам */
.tag__hyphen {
  margin-inline: .06em;
}

.tag__text {
  margin-top: 14px;
  color: var(--text-muted);
  flex-grow: 1;
}

.tag__price {
  margin-top: 28px;
  color: var(--text-heading);
  font-size: clamp(2.25rem, 1.8rem + 1.6vw, 3.25rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.035em;
}

.tag__from {
  font-size: .4em;
  font-weight: 600;
  letter-spacing: 0;
}

.tag__button {
  align-self: flex-start;
  margin-top: 24px;
}

.tag--brand {
  background: var(--brand-default);
  color: var(--brand-foreground);
  --focus: var(--neutral-900);
}

.tag--brand .tag__name,
.tag--brand .tag__price {
  color: var(--brand-foreground);
}

.tag--brand .tag__text {
  color: color-mix(in srgb, var(--brand-foreground) 84%, var(--brand-default));
}

.tag--dark {
  background: var(--neutral-900);
  color: var(--neutral-100);
}

.tag--dark .tag__name {
  color: var(--neutral-50);
}

.tag--dark .tag__text {
  color: var(--neutral-200);
}

.tag--dark .tag__price {
  color: var(--brand-default);
}

@media (min-width: 900px) {
  .price__head {
    grid-template-columns: 1fr 1fr;
  }

  .price__rail {
    display: block;
  }

  .price__tags {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 3vw, 40px);
    margin-top: 6px;
  }

  .tag:nth-child(2) {
    margin-top: 22px;
  }
}

/* ---------- Additional services ---------- */
.services {
  background: var(--bg-surface);
}

.menu {
  display: grid;
  gap: 0 clamp(40px, 6vw, 96px);
  margin-top: clamp(40px, 5vw, 64px);
}

.menu__item {
  padding-block: 18px;
  break-inside: avoid;
}

/* Точки — линия по нижней строке, название и цена перекрывают её своим фоном:
   при переносе названия точки тянутся от конца последней строки до цены */
.menu__row {
  display: flow-root;
  position: relative;
  color: var(--text-heading);
  font-size: clamp(1.125rem, 1.05rem + .3vw, 1.3125rem);
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -.01em;
}

.menu__name {
  position: relative;
  z-index: 1;
  padding-right: 10px;
  background: var(--bg-surface);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.menu__dots {
  position: absolute;
  inset-inline: 0;
  bottom: .55em;
  border-bottom: 3px dotted var(--neutral-200);
}

.menu__price {
  position: relative;
  z-index: 1;
  float: right;
  margin-left: 24px;
  padding-left: 10px;
  background: var(--bg-surface);
  color: var(--brand-default);
  white-space: nowrap;
}

.menu__text {
  max-width: 50ch;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: .9444em;
}

.menu__item:hover .menu__dots {
  border-bottom-color: var(--brand-default);
}

@media (min-width: 900px) {
  .menu {
    display: block;
    columns: 2;
    column-gap: clamp(40px, 6vw, 96px);
  }
}

/* ---------- Workflow ---------- */
.workflow__track {
  margin-top: clamp(40px, 5vw, 72px);
}

.workflow__line {
  display: none;
  width: 100%;
  height: auto;
  overflow: visible;
}

.workflow__path {
  fill: none;
  stroke: var(--brand-default);
  stroke-width: 8;
  stroke-linecap: round;
}

.js .workflow__path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.2s var(--ease-out);
}

.js .workflow__track.is-in .workflow__path {
  stroke-dashoffset: 0;
}

.workflow__stops circle {
  fill: var(--neutral-900);
}

.workflow__stops text {
  fill: var(--brand-default);
  font-size: 24px;
  font-weight: 900;
  text-anchor: middle;
  dominant-baseline: central;
}

.steps {
  display: grid;
  gap: 28px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 64px;
  counter-increment: step;
}

.step::before {
  content: counter(step);
  position: absolute;
  top: -4px;
  left: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--neutral-900);
  color: var(--brand-default);
  font-weight: 900;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 48px;
  bottom: -24px;
  left: 20px;
  width: 4px;
  border-radius: 4px;
  background: var(--brand-default);
}

.step__title {
  color: var(--text-heading);
  font-size: var(--text-h3);
  font-weight: 850;
  letter-spacing: -.02em;
}

.step__text {
  max-width: 30ch;
  margin-top: 8px;
  color: var(--text-muted);
}

@media (min-width: 900px) {
  .workflow__line {
    display: block;
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 28px;
  }

  .step {
    padding-left: 0;
    text-align: center;
  }

  .step::before,
  .step::after {
    display: none;
  }

  .step__text {
    margin-inline: auto;
  }
}

/* ---------- FAQ ---------- */
.faq {
  background: var(--bg-surface);
  padding-top: 0;
}

.faq__inner {
  display: grid;
  gap: 40px;
  padding-top: var(--section);
  border-top: 1px solid var(--border-subtle);
}

.qa {
  border-bottom: 1px solid var(--border-subtle);
}

.qa:first-child {
  border-top: 1px solid var(--border-subtle);
}

.qa__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 22px;
  color: var(--text-heading);
  font-size: clamp(1.125rem, 1.05rem + .35vw, 1.375rem);
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -.01em;
  list-style: none;
  cursor: pointer;
  transition: color .2s;
}

.qa__q::-webkit-details-marker {
  display: none;
}

.qa__q:hover {
  color: var(--brand-default);
}

.qa__icon {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--neutral-50);
  transition: transform .5s var(--ease-spring), background-color .25s;
}

.qa__icon::before,
.qa__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2.5px;
  margin: -1.25px 0 0 -7px;
  border-radius: 2px;
  background: var(--neutral-900);
}

.qa__icon::after {
  transform: rotate(90deg);
}

.qa[open] .qa__icon {
  background: var(--brand-default);
  transform: rotate(135deg);
}

.qa::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size .5s var(--ease-out), content-visibility .5s allow-discrete;
}

.qa[open]::details-content {
  block-size: auto;
}

.qa__a {
  max-width: 64ch;
  padding: 0 56px 26px 0;
  color: var(--text-body);
}

.qa__a strong {
  color: var(--text-heading);
  font-weight: 700;
}

@media (min-width: 1000px) {
  .faq__inner {
    grid-template-columns: 4fr 8fr;
    gap: 64px;
    align-items: start;
  }

  .faq__head {
    position: sticky;
    top: calc(var(--header-h) + 40px);
  }
}

/* ---------- CTA / Contact ---------- */
.contact {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--neutral-900);
  color: var(--neutral-100);
  --accent-color: var(--brand-default);
  --focus: var(--brand-default);
}

.contact__curve {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.contact__curve path {
  fill: none;
  stroke: var(--brand-default);
  stroke-width: 80;
  stroke-linecap: round;
  opacity: .12;
}

.contact .section__title {
  color: var(--neutral-50);
}

.contact__inner {
  display: grid;
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}

.contact__lead {
  max-width: 44ch;
  margin-top: 24px;
  font-size: var(--text-lead);
  line-height: 1.5;
  text-wrap: pretty;
}

/* Гротескная плашка «скидки» — тыква с рёбрами, хвостиком и лентой SALE */
.sticker {
  --tilt: -10deg;
  --swing: 0deg;
  position: relative;
  isolation: isolate;
  display: grid;
  place-content: center;
  justify-items: center;
  width: 210px;
  height: 200px;
  margin: 44px 0 8px 28px;
  padding-top: 26px;
  color: var(--brand-foreground);
  text-align: center;
  transform: rotate(calc(var(--tilt) + var(--swing)));
}

.sticker__shape {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 16px 14px rgb(0 0 0 / .55));
}

.sticker__body ellipse {
  fill: var(--brand-default);
  stroke: var(--brand-dark);
  stroke-width: 3;
}

.sticker__stem {
  fill: #4a5d23;
}

.sticker__leaf {
  fill: #6f8b2f;
}

.sticker__label {
  position: absolute;
  top: 34px;
  left: -22px;
  padding: 4px 14px 5px;
  border: 2px solid var(--brand-default);
  border-radius: 6px;
  background: var(--neutral-900);
  color: var(--brand-light);
  font-size: 1.375rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .04em;
  transform: rotate(-14deg);
  box-shadow: 0 8px 14px -6px rgb(0 0 0 / .7);
}

.sticker__big {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.05em;
}

.sticker__small {
  margin-top: 8px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.sticker__timer {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: .01em;
}

.contact__alt {
  display: grid;
  gap: 8px;
  margin-top: 28px;
}

.contact__link {
  color: var(--neutral-50);
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(var(--brand-default), var(--brand-default)) no-repeat 0 100% / 0 2px;
  transition: background-size .45s var(--ease-out), color .2s;
}

.contact__link:hover {
  color: var(--brand-default);
  background-size: 100% 2px;
}

/* QR-коды мессенджеров: только на десктопе с мышью — с телефона ссылка откроется сама */
.has-qr {
  position: relative;
}

.qr {
  display: none;
}

@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
  .qr {
    position: absolute;
    top: 50%;
    left: calc(100% + 20px);
    z-index: 5;
    display: grid;
    justify-items: center;
    gap: 8px;
    width: 172px;
    padding: 12px 12px 10px;
    border-radius: var(--radius-xl);
    background: var(--bg-surface);
    box-shadow: 0 0 0 3px var(--brand-default), 0 24px 40px -16px rgb(0 0 0 / .7);
    color: var(--text-muted);
    font-size: .8125rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-50%) translateX(-8px) scale(.94);
    transform-origin: 0 50%;
    transition: opacity .16s ease-out, transform .16s ease-out;
  }

  /* Хвостик к ссылке */
  .qr::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -9px;
    width: 14px;
    height: 14px;
    border-radius: 2px;
    background: var(--bg-surface);
    box-shadow: -3px 3px 0 0 var(--brand-default);
    transform: translateY(-50%) rotate(45deg);
  }

  .qr--up {
    top: auto;
    right: 0;
    bottom: calc(100% + 20px);
    left: auto;
    transform: translateY(8px) scale(.94);
    transform-origin: 100% 100%;
  }

  .qr--up::before {
    top: auto;
    right: 24px;
    bottom: -9px;
    left: auto;
    box-shadow: 3px 3px 0 0 var(--brand-default);
    transform: rotate(45deg);
  }

  .qr__img {
    display: block;
    width: 148px;
    height: 148px;
    border-radius: var(--radius-md);
  }

  .has-qr:hover .qr,
  .has-qr:focus-visible .qr {
    opacity: 1;
    transform: translateY(-50%);
  }

  .has-qr:hover .qr--up,
  .has-qr:focus-visible .qr--up {
    transform: none;
  }
}

/* Форма */
.form {
  display: grid;
  gap: 20px;
  padding: clamp(24px, 3.4vw, 44px);
  border-radius: var(--radius-3xl);
  background: var(--bg-surface);
  color: var(--text-body);
  --focus: var(--brand-dark);
}

.field {
  display: grid;
  gap: 8px;
}

.field__label {
  color: var(--text-heading);
  font-size: .9375rem;
  font-weight: 700;
}

.field__input {
  width: 100%;
  min-height: 56px;
  padding: 14px 18px;
  border: 2px solid var(--neutral-100);
  border-radius: 14px;
  background: var(--bg-page);
  color: var(--text-heading);
  font-size: 1.0625rem;
  caret-color: var(--brand-dark);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}

@media (max-width: 520px) {
  .field__input { font-size: 1rem; padding-inline: 16px; }
}

.field__input--area {
  min-height: 132px;
  resize: vertical;
  line-height: 1.45;
}

.field__input::placeholder {
  color: var(--neutral-500);
  opacity: 1;
}

.field__input:hover {
  border-color: var(--neutral-300);
}

.field__input:focus {
  outline: none;
  border-color: var(--brand-default);
  background: var(--bg-surface);
  box-shadow: 0 0 0 4px var(--ring);
}

.field__input[aria-invalid="true"] {
  border-color: var(--error-500);
}

.field__error {
  color: var(--error-600);
  font-size: .875rem;
  font-weight: 600;
}

.field__error:empty {
  display: none;
}

.form__fax {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  align-items: start;
}

.check__input {
  appearance: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin: 0;
  border: 2px solid var(--neutral-600);
  border-radius: 8px;
  background: var(--bg-surface);
  cursor: pointer;
  transition: background-color .2s, border-color .2s, transform .4s var(--ease-spring);
}

.check__input::after {
  content: '';
  width: 12px;
  height: 7px;
  margin-top: -3px;
  border: solid var(--brand-foreground);
  border-width: 0 0 3px 3px;
  transform: rotate(-45deg) scale(0);
  transition: transform .4s var(--ease-spring);
}

.check__input:checked {
  border-color: var(--brand-default);
  background: var(--brand-default);
}

.check__input:checked::after {
  transform: rotate(-45deg) scale(1);
}

.check__input:active {
  transform: scale(.9);
}

.check__input[aria-invalid="true"] {
  border-color: var(--error-500);
}

.check__label {
  font-size: .9375rem;
  line-height: 1.45;
  color: var(--text-muted);
  cursor: pointer;
}

.check__error {
  grid-column: 2;
}

.form__submit {
  width: 100%;
  margin-top: 4px;
}

.form__submit[disabled] {
  cursor: progress;
  opacity: .7;
  transform: none;
}

.form__status {
  font-weight: 600;
  text-align: center;
}

.form__status:empty {
  display: none;
}

.form__status.is-error {
  color: var(--error-600);
}

.form__done {
  display: grid;
  gap: 12px;
  align-content: center;
  min-height: 360px;
  text-align: center;
}

.form__done-title {
  color: var(--text-heading);
  font-size: var(--text-h3);
  font-weight: 850;
}

.form__done .logo__mark {
  width: 72px;
  height: 61px;
  margin: 0 auto 8px;
}

@media (min-width: 1000px) {
  .contact__inner {
    grid-template-columns: 5fr 6fr;
  }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--neutral-900);
  color: var(--neutral-200);
  --focus: var(--brand-default);
}

.footer__inner {
  display: grid;
  gap: 40px;
  padding-block: 56px 40px;
  border-top: 1px solid var(--neutral-700);
}

.footer__list {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 10px 40px;
}

.footer__link {
  color: var(--neutral-100);
  text-decoration: none;
  transition: color .2s;
}

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

.footer__link--big {
  color: var(--neutral-50);
  font-size: 1.375rem;
  font-weight: 800;
}

.footer__contacts {
  display: grid;
  gap: 8px;
  justify-items: start;
  font-style: normal;
}

.footer__socials {
  display: flex;
  gap: 20px;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 20px 28px;
  color: var(--neutral-400);
  font-size: .875rem;
}

@media (min-width: 768px) {
  /* Планшет: логотип над навигацией и контактами */
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer__inner > :first-child {
    grid-column: 1 / -1;
  }

  .footer__contacts {
    justify-items: end;
    text-align: right;
  }

  .footer__bottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }
}

/* Боковые колонки равные — навигация ровно по центру страницы */
@media (min-width: 1024px) {
  .footer__inner {
    grid-template-columns: 1fr auto 1fr;
  }

  .footer__inner > :first-child {
    grid-column: auto;
  }

  .footer__nav {
    justify-self: center;
  }
}

/* ---------- Кнопка «наверх» ---------- */
.to-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: var(--brand-default);
  color: var(--brand-foreground);
  box-shadow: 0 12px 28px -10px rgb(36 35 34 / .45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px) scale(.8);
  transition: opacity .3s var(--ease-out), transform .6s var(--ease-spring), visibility 0s .3s, background-color .2s;
  --focus: var(--neutral-900);
}

.to-top svg {
  width: 24px;
  height: 24px;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.to-top:hover {
  background: var(--brand-light);
}

/* ---------- Юридические страницы ---------- */
.legal {
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: var(--section);
}

.legal__body {
  max-width: 72ch;
}

.legal__body h1 {
  color: var(--text-heading);
  font-size: var(--text-h2);
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -.03em;
}

.legal__body h2 {
  margin-top: 40px;
  color: var(--text-heading);
  font-size: var(--text-h3);
  font-weight: 800;
}

.legal__body p,
.legal__body li {
  margin-top: 12px;
}

.legal__body ul {
  padding-left: 1.2em;
  list-style: disc;
}

.legal__body li::marker {
  color: var(--brand-dark);
}

.legal__meta {
  margin-top: 16px;
  color: var(--text-muted);
}

/* ---------- Смена тона ---------- */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: .35s;
  animation-timing-function: cubic-bezier(.2, 0, 0, 1);
}

/* ---------- Без анимаций ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }

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

  .js .workflow__path {
    stroke-dashoffset: 0;
  }
}
