/* ==========================================================================
   Kontent-opt — styles
   Порядок секций: шрифты → токены → база → шапка → первый экран → график →
   секции → тарифы → услуги → контактный блок → о нас → подвал →
   адаптивность → предпочтения по движению.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Шрифты
   Manrope 200–800 (variable), WOFF2, полное покрытие латиницы и кириллицы.
   Лицензия: fonts/OFL-Manrope.txt. Исходный TTF — fonts/manrope.ttf.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Manrope";
  src: url("./fonts/manrope.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Токены
   -------------------------------------------------------------------------- */
:root {
  color-scheme: dark;

  /* Поверхности и текст */
  --page: #080809;
  --panel: #121215;
  --ink: #f5f4f7;
  --muted: #b5b3be;
  --accent: #c4b6ff;
  --line: #ffffff22;
  --line-soft: #ffffff1d;
  --line-strong: #ffffff36;

  /* Геометрия */
  --radius-panel: 15px;
  --radius-card: 18px;
  --grid-gap: 11px;
  --focus-ring: #ede6ff;

  font: 100%/1.5 "Manrope", system-ui, sans-serif;
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
}

/* --------------------------------------------------------------------------
   3. База
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  background: radial-gradient(ellipse 640px 330px at 78% 150px, #191225, transparent), var(--page);
}

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

a:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 4px; }

/* Атрибут hidden должен побеждать display из классов: так скрывается
   кнопка MAX, пока для неё не настроен адрес (см. main.js). */
[hidden] { display: none !important; }

/* Цель перехода с клавиатуры или ссылки «Перейти к содержанию» */
#main:focus { outline: 0; }

html { scroll-behavior: smooth; }

section, #contact { scroll-margin-top: 22px; }

.shell { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }

/* Ссылка «Перейти к содержанию»: видна только при фокусе */
.skip-link {
  position: fixed;
  top: -100px;
  left: 12px;
  z-index: 10;
  padding: 10px 15px;
  border-radius: 10px;
  background: #fff;
  color: #16131c;
  font-size: .875rem;
  font-weight: 700;
  transition: top .18s;
}
.skip-link:focus { top: 12px; }

/* --------------------------------------------------------------------------
   4. Шапка
   -------------------------------------------------------------------------- */
.site-header {
  height: 75px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
}

.wordmark {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding-block: 6px;
  font-size: 1.55rem;
  font-weight: 760;
  line-height: 1.12;
  letter-spacing: -.068em;
  white-space: nowrap;
}

.wordmark-name {
  color: var(--ink);
  background: linear-gradient(160deg, #fff 25%, #ccc2e8 100%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-mark {
  display: block;
  flex: none;
  filter: drop-shadow(0 0 7px #ad8dff4d);
}

.site-nav {
  display: flex;
  gap: 29px;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 600;
}
.site-nav a {
  padding-block: 6px;
  transition: color .2s;
}

.header-contact {
  justify-self: end;
  padding: 7px 14px;
  border: 1px solid #ffffff31;
  border-radius: 9px;
  font-weight: 650;
  font-size: .875rem;
  transition: background .2s, border-color .2s;
}

@media (hover: hover) {
  .site-nav a:hover { color: var(--accent); }
  .header-contact:hover { background: #ffffff13; border-color: #ffffff63; }
}

/* --------------------------------------------------------------------------
   5. Первый экран
   -------------------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 32px;
  align-items: center;
  padding-block: 47px 45px;
}

h1 {
  font-size: clamp(3.1rem, 6.25vw, 5.7rem);
  line-height: 1.02;
  letter-spacing: -.075em;
  font-weight: 620;
}

h1 em {
  display: block;
  padding-bottom: .07em;
  color: #c9c2e4;
  background: linear-gradient(106deg, #fbf9ff 4%, #b9a7f5 60%, #8574b5 100%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: normal;
}

.hero-copy {
  max-width: 470px;
  margin-top: 15px;
  color: var(--muted);
  font-size: 1.035rem;
}

.consultation {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  margin-block: 16px 19px;
  padding: 5px 10px;
  border: 1px solid #a991ff36;
  border-radius: 7px;
  background: #a991ff13;
  color: #e3d9ff;
  font-size: .875rem;
  font-weight: 640;
}

.consultation-icon { display: flex; color: var(--accent); }
.consultation-icon svg { width: 11px; height: 11px; fill: currentColor; }

.contact-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 45px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  white-space: nowrap;
  font-size: .875rem;
  font-weight: 680;
  transition: transform .22s, background .22s, box-shadow .22s;
}

.primary {
  background: linear-gradient(155deg, #fff 5%, #e6e2ef 100%);
  color: #16131c;
  box-shadow: inset 0 1px #ffffffab, 0 5px 18px #a18be430;
}

.secondary {
  border-color: var(--line-strong);
  background: #ffffff0a;
  color: var(--ink);
}

.contact-icon { flex: 0 0 16px; height: 16px; }

.telegram-icon {
  background: currentColor;
  clip-path: polygon(2% 45%, 97% 7%, 78% 94%, 51% 72%, 36% 85%, 37% 61%, 76% 28%, 28% 56%);
}

.max-icon {
  position: relative;
  border: 1.7px solid #bbaaff;
  border-radius: 50% 50% 50% 23%;
}
.max-icon::after {
  position: absolute;
  content: "";
  inset: 3px;
  border-radius: 50%;
  background: #bbaaff;
}

.phone-icon { display: flex; align-items: center; }
.phone-icon svg { width: 16px; height: 16px; fill: currentColor; }

@media (hover: hover) {
  .button:hover { transform: translateY(-2px); }
  .primary:hover { box-shadow: inset 0 1px #ffffff5e, 0 8px 26px #a18be45c; }
  .secondary:hover { background: #ffffff17; }
}

/* --------------------------------------------------------------------------
   6. График роста (декоративная SVG-иллюстрация)
   -------------------------------------------------------------------------- */
.growth {
  min-width: 0;
  padding: 21px 21px 17px;
  border: 1px solid #a892e439;
  border-radius: 21px;
  background: radial-gradient(ellipse at 82% 21%, #37265d, transparent 64%), #121019;
  box-shadow: 0 18px 46px #0008, 0 0 60px #6649ff1b, inset 0 1px #ffffff16;
}

.growth-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 12px;
}

.growth-heading p {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.15;
  letter-spacing: -.045em;
  font-weight: 720;
}

.growth-caption { color: #c6bcd6; font-size: .8125rem; }

.growth-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 11px;
  font-size: .875rem;
  font-weight: 650;
}
.growth-legend span { display: inline-flex; align-items: center; gap: 6px; }
.growth-legend span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.legend-views { color: #dcc8ff; }
.legend-followers { color: #a1f2db; }

.growth-plot {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 8px;
  overflow: visible;
}

.growth-grid { fill: none; stroke: #cbb4fc28; stroke-width: 1; }
.growth-start { fill: none; stroke: #dfd1f283; stroke-width: 1; stroke-dasharray: 4 5; }

.growth-line {
  fill: none;
  stroke-width: 3.5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 5px #aa85ff77);
}
.followers-line { filter: drop-shadow(0 0 4px #72dbc55c); }

.growth-periods {
  display: grid;
  /* 25.4% — позиция пунктирной линии старта в viewBox (132 из 520) */
  grid-template-columns: 25.4% 1fr;
  gap: 5px;
  align-items: start;
  padding-inline: 1.9%;
  font-size: .8125rem;
  line-height: 1.25;
  color: #c6bcd6;
}
.growth-periods span:last-child { color: #ede2ff; font-weight: 650; }

.growth-note {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #cbb4fc26;
  color: #b7adc9;
  font-size: .75rem;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   7. Заголовки секций
   -------------------------------------------------------------------------- */
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 20px;
  margin-bottom: 13px;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.08;
  font-weight: 640;
  letter-spacing: -.062em;
}

.section-heading p, .plan-note { color: var(--muted); }
.section-heading p { font-size: .9rem; }

/* --------------------------------------------------------------------------
   8. Тарифы
   Карточка — контейнер запросов: .plan-inner держит квадратную форму
   (min-height: 100cqw) и свободно растёт, если текст занимает больше места.
   Поэтому длинные названия и цены не обрезаются ни на одной ширине.
   -------------------------------------------------------------------------- */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: var(--grid-gap);
}

.plan {
  container-type: inline-size;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: clamp(13px, 1.75vw, 21px);
  border: 1px solid var(--edge, #fff9);
  border-radius: var(--radius-card);
  color: var(--card-ink, #191828);
  background:
    radial-gradient(ellipse at 100% 5%, var(--light), transparent 67%),
    linear-gradient(148deg, var(--light) 0%, var(--base) 33%, var(--light) 46%, var(--base) 60%, var(--shade) 100%);
  box-shadow: inset 0 1px #ffffff42, inset 0 -1px #03020863, 0 5px 18px var(--shadow);
  transition: transform .25s, box-shadow .25s;
}

/* Металлический блик и декоративное кольцо */
.plan::before,
.plan::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.plan::before {
  inset: 0;
  background:
    linear-gradient(119deg, transparent 37%, #fff6 48%, transparent 55%),
    repeating-linear-gradient(0deg, #0000 0 2px, #fff2 2px 3px);
  opacity: .43;
  transform: scale(1.08);
  transition: transform .5s, opacity .3s;
}

.plan::after {
  width: 95%;
  aspect-ratio: 1;
  right: -32%;
  bottom: -33%;
  border: 1px solid #ffffff5c;
  border-radius: 39%;
  transform: rotate(-26deg);
  box-shadow: inset 0 0 24px #ffffff35, 0 0 0 8px #ffffff1a, 0 0 0 19px #ffffff18, 0 0 0 34px #ffffff13;
}

.plan-inner {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: space-between;
  gap: 11px;
  /* 170px — резерв для браузеров без container queries */
  min-height: 170px;
  min-height: max(170px, 100cqw);
}

/* Подъём карточки: при фокусе с клавиатуры — всегда,
   при наведении — только на устройствах с настоящим курсором. */
.plan:focus-within {
  transform: translateY(-3px);
  box-shadow: inset 0 1px #ffffffa1, 0 10px 23px var(--shadow);
}

@media (hover: hover) {
  .plan:hover {
    transform: translateY(-3px);
    box-shadow: inset 0 1px #ffffffa1, 0 10px 23px var(--shadow);
  }
  .plan:hover::before { transform: scale(1.08) translateX(9%); opacity: .75; }
}

/* Палитры карточек */
.silver { --light: #f0f3f8; --base: #c7ccd8; --shade: #a8aebd; --shadow: #4e536333; }
.blue { --light: #d8f3ff; --base: #9fd3fa; --shade: #6ea6e2; --shadow: #226daf39; --card-ink: #0f2a48; }
.violet { --light: #e8dcff; --base: #c5aaf8; --shade: #a78bdf; --shadow: #6840af3c; --card-ink: #281742; }
.pink { --light: #ffe1ee; --base: #efb3d3; --shade: #dd91b8; --shadow: #a0417138; --card-ink: #3d1731; }
.red { --light: #ffdbd9; --base: #f5a4a5; --shade: #e47c83; --shadow: #a02e423b; --card-ink: #461824; }
.gold {
  --light: #fff3bf;
  --base: #f0cb6d;
  --shade: #c7913f;
  --shadow: #956b254b;
  --edge: #f8e8a8;
  --card-ink: #3c2b12;
  box-shadow: inset 0 1px #fff7c7bc, 0 8px 28px #ddaa4b3a;
}
.gold::after {
  border-color: #fff6cb;
  box-shadow: inset 0 0 23px #fffae18c, 0 0 0 7px #fff5cb4d, 0 0 0 17px #fff3c42e, 0 0 0 31px #fff9e029;
}
.green { --light: #d4f5e5; --base: #a7dbc0; --shade: #79ba9e; --shadow: #29634e39; --card-ink: #102f26; }
.black {
  --light: #414045;
  --base: #202025;
  --shade: #0f0f11;
  --edge: #54535a;
  --card-ink: #fcfbff;
  --shadow: #12121d50;
  box-shadow: inset 0 1px #ffffff45, 0 6px 18px var(--shadow);
}
.black::before { opacity: .22; }
.black::after { opacity: .65; }

.plan h3 {
  font-size: clamp(1.16rem, 2.22vw, 2rem);
  line-height: 1.1;
  letter-spacing: -.052em;
  font-weight: 720;
}

.plan h3,
.plan-volume,
.plan-copy { overflow-wrap: break-word; }

.plan-volume {
  margin-top: 6px;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.25;
}

.price {
  font-size: clamp(1.65rem, 3.45vw, 3.13rem);
  line-height: 1;
  letter-spacing: -.065em;
  font-weight: 730;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.price small { font-size: .875rem; letter-spacing: -.025em; font-weight: 600; }

.price.agreed {
  font-size: clamp(1rem, 1.85vw, 1.5rem);
  line-height: 1.1;
  letter-spacing: -.035em;
  white-space: normal;
}

.plan-copy { font-size: .875rem; line-height: 1.25; margin-block: 7px 10px; }

.choose {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 41px;
  padding-inline: 14px;
  border: 1px solid #fff9;
  border-radius: 8px;
  background: #ffffff54;
  font-size: .875rem;
  font-weight: 700;
  transition: color .2s, background .2s, border-color .2s;
}
.choose:focus-visible { outline-color: #211630; }

.black .choose:focus-visible { outline-color: var(--focus-ring); }
.black .choose { background: #ffffff21; border-color: #ffffff54; }

.plan-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
  font-size: .875rem;
}

.clock {
  flex: 0 0 14px;
  height: 14px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.clock::after {
  content: "";
  height: 4px;
  width: 4px;
  border-left: 1px solid;
  border-bottom: 1px solid;
  transform: translate(1px, -1px);
}

@media (hover: hover) {
  .choose:hover { background: #16131c; border-color: transparent; color: #fff; }
  .black .choose:hover { background: #fff; color: #14141a; }
}

/* --------------------------------------------------------------------------
   9. Дополнительные услуги
   -------------------------------------------------------------------------- */
.services { padding-block: 34px 24px; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--line);
}

.service-grid div { padding: 15px 17px; background: var(--panel); }

.service-grid dt {
  font-weight: 720;
  line-height: 1.24;
  letter-spacing: -.025em;
}

.service-grid .service-hit { position: relative; background: linear-gradient(125deg, #17141d, var(--panel) 66%); }

.service-hit dt { padding-inline-end: 57px; }

.hit-badge {
  position: absolute;
  inset: 12px 12px auto auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border: 1px solid #eebd634d;
  border-radius: 999px;
  color: #ffe2a5;
  background: #302316;
  font-size: .8125rem;
  letter-spacing: 0;
  font-weight: 720;
  white-space: nowrap;
}

.hit-star { width: 9px; height: 9px; fill: #ffcb70; }

.service-grid dd {
  margin-top: 5px;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   10. Контактный блок
   -------------------------------------------------------------------------- */
.contact-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 12px;
  padding: 12px 15px;
  border: 1px solid #c1a7ff35;
  border-radius: 14px;
  background: linear-gradient(115deg, #21192f, #121216);
}

.contact-bar p { font-size: 1.1rem; font-weight: 730; letter-spacing: -.03em; }

/* Сообщение при отключённом JavaScript и при незаполненной конфигурации контактов */
.noscript-note,
.contact-status {
  flex-basis: 100%;
  color: #d8cfe9;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
}
.noscript-note a {
  color: #f0e9ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   11. О нас
   -------------------------------------------------------------------------- */
.about { padding-bottom: 32px; }

.about-panel {
  padding: clamp(17px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: radial-gradient(ellipse at top left, #1f192a, transparent 66%), var(--panel);
}

.about-lead {
  max-width: 820px;
  font-size: clamp(1.06rem, 2vw, 1.35rem);
  font-weight: 550;
  line-height: 1.5;
  letter-spacing: -.025em;
}
.about-lead strong { color: var(--accent); }

.about-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 32px;
  margin-top: 17px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.about-details p + p { margin-top: 11px; }
.about-details strong { color: var(--ink); font-weight: 730; }

/* --------------------------------------------------------------------------
   12. Подвал
   -------------------------------------------------------------------------- */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding-block: 18px 26px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: .875rem;
}

.footer-brand { font-weight: 650; color: #cfccd8; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-nav a,
.footer-consent {
  padding-block: 5px;
  transition: color .2s;
}

/* Кнопка «Аналитика» в подвале выглядит как ссылка навигации */
.footer-consent {
  padding-inline: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

@media (hover: hover) {
  .footer-nav a:hover,
  .footer-consent:hover { color: var(--accent); }
}

/* --------------------------------------------------------------------------
   12.1 Уведомление о согласии на аналитику (Яндекс Метрика)
   Появляется только когда согласие требуется и ещё не получено.
   -------------------------------------------------------------------------- */
.consent {
  position: fixed;
  z-index: 20;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid #c1a7ff35;
  border-radius: 14px;
  background: linear-gradient(115deg, #21192f, #121216);
  box-shadow: 0 14px 34px #000000a6;
}

.consent-text {
  margin: 0;
  color: #d8cfe9;
  font-size: .8125rem;
  line-height: 1.45;
}

.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.consent-actions button {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #ffffff0a;
  color: var(--ink);
  font: inherit;
  font-size: .8125rem;
  font-weight: 680;
  cursor: pointer;
  transition: background .2s, border-color .2s, box-shadow .2s;
}

.consent-accept {
  border-color: transparent;
  background: linear-gradient(155deg, #fff 5%, #e6e2ef 100%);
  color: #16131c;
  box-shadow: inset 0 1px #ffffffab;
}

.consent-actions button:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

@media (hover: hover) {
  .consent-accept:hover { box-shadow: inset 0 1px #ffffff5e, 0 6px 18px #a18be44d; }
  .consent-decline:hover { background: #ffffff17; border-color: #ffffff63; }
}

@media (max-width: 520px) {
  .consent { left: 10px; right: 10px; bottom: 10px; padding: 12px 13px; }
  .consent-actions button { flex: 1 1 auto; }
}

/* --------------------------------------------------------------------------
   13. Текстовая страница (политика конфиденциальности, оферта)
   Стили готовы для docs/privacy-policy.template.html после его публикации.
   -------------------------------------------------------------------------- */
.legal {
  max-width: 820px;
  padding-block: 48px 64px;
}
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; letter-spacing: -.05em; font-weight: 640; }
.legal h2 { margin-top: 28px; font-size: 1.25rem; letter-spacing: -.02em; font-weight: 700; }
.legal p { margin-top: 10px; color: var(--muted); line-height: 1.6; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   14. Страница 404 (использует только этот файл стилей, без inline-стилей)
   -------------------------------------------------------------------------- */
.not-found {
  display: grid;
  place-content: center;
  min-height: 100svh;
  padding-block: 48px;
  text-align: center;
}
.not-found .brand-mark { margin-inline: auto; margin-bottom: 18px; }
.not-found-code {
  font-size: clamp(3.4rem, 12vw, 7rem);
  line-height: 1;
  letter-spacing: -.07em;
  font-weight: 640;
  color: #c9c2e4;
  background: linear-gradient(106deg, #fbf9ff 4%, #b9a7f5 60%, #8574b5 100%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.not-found h1 { margin-top: 10px; font-size: clamp(1.4rem, 4vw, 2rem); letter-spacing: -.04em; font-weight: 620; }
.not-found p { max-width: 460px; margin: 12px auto 0; color: var(--muted); }
.not-found .contact-actions { justify-content: center; margin-top: 22px; }

/* --------------------------------------------------------------------------
   15. Адаптивность
   Контрольные ширины: 1120 (ширина контента), 960/701 (сетка тарифов
   и услуг), 700 (мобильная типографика), 520 (шапка в две строки),
   360 (самые узкие экраны).
   -------------------------------------------------------------------------- */
@media (max-width: 960px) and (min-width: 701px) {
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan { padding: 21px; }
  .plan h3 { font-size: 1.75rem; }
  .price { font-size: 2.8rem; }
}

@media (max-width: 700px) {
  .shell { width: min(calc(100% - 30px), 560px); }

  .site-header { height: 58px; }
  .wordmark { font-size: 1.3rem; gap: 6px; }
  .brand-mark { width: 23px; height: 23px; }
  .site-nav { gap: 11px; font-size: .875rem; }
  .header-contact { padding: 5px 8px; }

  .hero { grid-template-columns: 1fr; gap: 19px; padding-block: 26px 25px; }
  h1 { font-size: clamp(2.85rem, 10.6vw, 4.5rem); }
  .hero-copy { margin-top: 9px; font-size: 1rem; }
  .consultation { margin-block: 11px 13px; }

  .growth { padding: 13px 13px 12px; border-radius: var(--radius-panel); }
  .growth-legend { margin-top: 7px; }
  .growth-plot { margin-top: 6px; }

  .section-heading { flex-wrap: wrap; gap: 3px 9px; }

  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .plan { padding: 11px; border-radius: 12px; }
  .plan-inner { gap: 8px; }
  .plan h3 { font-size: clamp(1.1rem, 4.25vw, 1.55rem); }
  .plan-volume { margin-top: 4px; }
  .price { font-size: clamp(1.65rem, 6vw, 2.5rem); }
  .price small, .plan-copy { font-size: .875rem; }
  .choose { min-height: 40px; }
  .plan-note { align-items: baseline; }
  .clock { align-self: start; margin-top: 3px; }

  .services { padding-top: 25px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-grid div { padding: 10px 12px; }
  .hit-badge { top: 7px; right: 8px; }

  .about-details { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .site-header {
    height: auto;
    grid-template-columns: 1fr auto;
    row-gap: 11px;
    padding-block: 12px;
  }
  .site-header .site-nav { grid-column: 1 / -1; grid-row: 2; gap: 17px; }
  .header-contact { grid-column: 2; grid-row: 1; }
}

@media (max-width: 360px) {
  .price { font-size: 1.5rem; }
  .button { padding-inline: 8px; gap: 4px; }
  .plan-volume { font-size: .8125rem; }
}

/* --------------------------------------------------------------------------
   16. Предпочтения по движению
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .growth-line { stroke-dasharray: 1; animation: draw-growth 1.45s cubic-bezier(.2, .65, .3, 1) both; }
  .followers-line { animation-delay: .14s; }
  .growth-area, .growth-end { animation: show-growth .65s ease-out .55s both; }
}

@keyframes draw-growth {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

@keyframes show-growth {
  from { opacity: 0; }
  to { opacity: 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;
  }
}
