/* ==========================================================================
   DMCA Control — общие стили
   Палитра «копирка»: индиговый фон, бумажный текст, синий оттиск
   для ссылок и меток, жёлтый маркер — только для того, что удаляется.
   ========================================================================== */

:root {
  --carbon: #13153a;
  --carbon-deep: #0d0f2c;
  --sheet: #1b1e4b;
  --sheet-2: #262a60;
  --line: #2f3373;
  --paper: #eceef7;
  --soft: #c9cbe6;
  --mute: #a0a3cb;
  --copy: #8b90ff;
  --marker: #f2e15b;
  --marker-ink: #191a0c;
  --error: #ff9f8c;

  --font-display: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;
  --font-text: "Sofia Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1360px;
  --header-h: 72px;
  --ease-out: cubic-bezier(.2, .7, .1, 1);
}

/* --- Основа -------------------------------------------------------------- */

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

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

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

body {
  margin: 0;
  background: var(--carbon);
  color: var(--paper);
  font-family: var(--font-text);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* Лёгкая фактура копировальной бумаги */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
}

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

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

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 300;
  padding: 10px 16px;
  background: var(--paper);
  color: var(--carbon);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus { top: 12px; }

/* --- Сетка --------------------------------------------------------------- */

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

.grid12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}

.section { padding-block: clamp(88px, 11vw, 168px); }
.section--deep { background: var(--carbon-deep); }

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

.h-section {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 7vw, 6.75rem);
  line-height: .9;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.section-head {
  row-gap: 24px;
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 96px);
}

.section-head > .h-section { grid-column: 1 / span 7; }

.section-head__aside {
  grid-column: 9 / -1;
  color: var(--mute);
  max-width: 40ch;
}

.text-link {
  font-weight: 600;
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: var(--copy);
  text-decoration-thickness: 2px;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  padding: 1em 1.6em;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 1.0625rem/1 var(--font-text);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease-out);
}

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

.btn--primary {
  background: var(--paper);
  color: var(--carbon);
}

.btn--primary:hover { background: #fff; }

.btn--ghost {
  border-color: var(--line);
  color: var(--paper);
  background: transparent;
}

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

.btn--small {
  padding: .78em 1.25em;
  font-size: 1rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(19, 21, 58, .84);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}

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

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: .005em;
  text-decoration: none;
}

.logo svg { width: 28px; height: 28px; flex: none; }
.logo__line { fill: var(--paper); }
.logo__bar { fill: var(--marker); }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav__link {
  color: var(--mute);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition: color .2s;
}

.nav__link:hover,
.nav__link[aria-current="page"] { color: var(--paper); }

.nav-toggle {
  display: none;
  margin-left: auto;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  color: var(--paper);
  font: 600 1rem/1 var(--font-text);
  cursor: pointer;
}

/* --- Первый экран -------------------------------------------------------- */

.hero { padding-block: clamp(40px, 6vw, 96px) clamp(80px, 9vw, 140px); }

.hero__grid {
  row-gap: 56px;
  align-items: start;
}

.hero__text { grid-column: 1 / span 7; }
.hero__demo { grid-column: 8 / -1; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.75rem, 10vw, 10.5rem);
  line-height: .86;
  letter-spacing: -.012em;
  margin-bottom: clamp(28px, 3vw, 44px);
}

.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: .07em;
  margin-bottom: -.07em;
}

.hero__title .line > span { display: inline-block; }

.js .hero__title .line > span {
  transform: translateY(104%);
  transition: transform 1s var(--ease-out);
}

.js .hero__title .line:nth-child(2) > span { transition-delay: .09s; }
.js .hero__title .line:nth-child(3) > span { transition-delay: .18s; }

.js .is-loaded .hero__title .line > span { transform: none; }

.hero__lead {
  max-width: 34em;
  color: var(--soft);
  font-size: clamp(1.1875rem, 1.5vw, 1.3125rem);
  line-height: 1.5;
}

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

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: clamp(48px, 5vw, 72px);
}

.hero__facts div {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.hero__facts dt {
  margin-bottom: 4px;
  color: var(--mute);
  font-size: .875rem;
}

.hero__facts dd {
  font-size: 1rem;
  line-height: 1.45;
}

/* --- Демо выдачи --------------------------------------------------------- */

.serp {
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: var(--sheet);
  border: 1px solid var(--sheet-2);
  border-radius: 16px;
  box-shadow: 0 48px 96px -48px rgba(4, 5, 24, .9);
}

.serp__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 12px 18px;
  background: var(--carbon-deep);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 1rem;
}

.serp__bar svg { width: 18px; height: 18px; flex: none; color: var(--mute); }

.serp__query { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.serp__caret {
  flex: none;
  width: 2px;
  height: 1.15em;
  margin-left: -10px;
  background: var(--paper);
  animation: blink 1s steps(1) infinite;
}

.serp.is-listed .serp__caret { visibility: hidden; }

@keyframes blink { 50% { opacity: 0; } }

.serp__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 6px 6px;
  color: var(--mute);
  font-size: .875rem;
}

.serp__count b {
  display: inline-block;
  min-width: 1ch;
  margin-left: 4px;
  color: var(--marker);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.serp__count b.is-bump { animation: bump .45s var(--ease-out); }

@keyframes bump {
  from { transform: scale(1.5); }
  to { transform: scale(1); }
}

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

/* Две строки: сам результат и след от удаления. При удалении они меняются местами по высоте. */
.serp__item {
  display: grid;
  grid-template-rows: 1fr 0fr;
  padding: 12px 6px;
  border-top: 1px solid var(--line);
  transition:
    opacity .35s ease calc(var(--i, 0) * 70ms),
    transform .45s var(--ease-out) calc(var(--i, 0) * 70ms),
    grid-template-rows .5s var(--ease-out),
    padding .5s var(--ease-out),
    border-color .3s;
}

.serp__item:first-child { border-top-color: transparent; }

.serp__inner {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

/* Маркер, которым «закрашивается» пиратская ссылка */
.serp__inner::after {
  content: "";
  position: absolute;
  inset: 3px 0;
  background: var(--marker);
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease-out);
}

.serp__item.is-marked .serp__inner::after { transform: scaleX(1); }

.serp__url,
.serp__title,
.serp__snippet {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.serp__url { color: var(--mute); font-size: .8125rem; line-height: 1.5; }

.serp__title {
  color: var(--copy);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
}

.serp__snippet { color: var(--mute); font-size: .875rem; line-height: 1.5; }

.serp__trace {
  min-height: 0;
  overflow: hidden;
  color: var(--mute);
  font-size: .8125rem;
  line-height: 1.5;
}

.serp__trace span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  opacity: 0;
  transition: opacity .35s ease .25s;
}

.serp__trace s {
  margin-right: 6px;
  color: var(--soft);
  text-decoration-color: var(--marker);
  text-decoration-thickness: 2px;
}

.serp__item.is-gone .serp__trace span { opacity: 1; }

.serp__badge {
  display: inline-block;
  margin-left: 6px;
  padding: 0 7px;
  border: 1px solid var(--soft);
  border-radius: 999px;
  color: var(--paper);
  font-size: .75rem;
  line-height: 1.5;
  vertical-align: 1px;
}

.serp__notice {
  margin: 6px 6px 2px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  color: var(--soft);
  font-size: .875rem;
  line-height: 1.5;
}

/* Состояния демо (только при включённом JS) */
.js .serp__item {
  opacity: 0;
  transform: translateY(10px);
}

.js .serp.is-listed .serp__item {
  opacity: 1;
  transform: none;
}

.js .serp .serp__item.is-gone {
  grid-template-rows: 0fr 1fr;
  padding-block: 7px;
  transition-delay: 0s;
}

.js .serp__notice {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .5s ease, transform .5s var(--ease-out);
}

.js .serp.is-done .serp__notice {
  opacity: 1;
  transform: none;
}

.serp-replay {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 6px 2px;
  border: 0;
  background: none;
  color: var(--mute);
  font: 500 .9375rem/1.2 var(--font-text);
  cursor: pointer;
  transition: color .2s, opacity .3s;
}

.serp-replay svg { width: 16px; height: 16px; }
.serp-replay:hover { color: var(--paper); }

.js .serp-replay { opacity: 0; pointer-events: none; }
.js .serp-replay.is-visible { opacity: 1; pointer-events: auto; }

/* --- Что удаляем --------------------------------------------------------- */

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

.kinds__row {
  align-items: baseline;
  row-gap: 8px;
  padding-block: clamp(22px, 2.6vw, 34px);
  border-bottom: 1px solid var(--line);
}

.kinds__name {
  grid-column: 1 / span 6;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: .95;
  letter-spacing: -.005em;
}

.kinds__desc {
  grid-column: 8 / -1;
  color: var(--mute);
  max-width: 44ch;
}

.limits {
  row-gap: 28px;
  margin-top: clamp(56px, 7vw, 104px);
  padding: clamp(28px, 4vw, 56px);
  background: var(--sheet);
  border-radius: 22px;
}

.limits__title {
  grid-column: 1 / span 4;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 3.4vw, 3rem);
  line-height: .95;
}

.limits__list {
  grid-column: 5 / -1;
  display: grid;
  gap: 18px;
  list-style: none;
  padding: 0;
}

.limits__list li { color: var(--soft); max-width: 62ch; }
.limits__list strong { color: var(--paper); font-weight: 700; }

/* --- Процесс ------------------------------------------------------------- */

.steps { position: relative; }

.steps__track,
.steps__fill {
  position: absolute;
  left: 7px;
  width: 2px;
  top: var(--track-top, 0);
  height: var(--track-h, 0);
}

.steps__track { background: var(--line); }

.steps__fill {
  background: var(--marker);
  transform-origin: top;
  transform: scaleY(var(--progress, 0));
}

.steps__list {
  list-style: none;
  padding: 0;
}

.step {
  display: grid;
  grid-template-columns: minmax(150px, 3fr) 9fr;
  column-gap: var(--gutter);
  row-gap: 10px;
  padding: clamp(28px, 3.4vw, 44px) 0 clamp(28px, 3.4vw, 44px) 56px;
  border-top: 1px solid var(--line);
}

.step:first-child { border-top: 0; }

.step__day {
  color: var(--copy);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1;
}

.step__dot {
  position: absolute;
  left: 0;
  width: 16px;
  height: 16px;
  margin-top: calc(.5em - 8px);
  background: var(--carbon-deep);
  border: 2px solid var(--line);
  border-radius: 50%;
  transition: background-color .3s, border-color .3s;
}

.step.is-reached .step__dot {
  background: var(--marker);
  border-color: var(--marker);
}

.step__title {
  margin-bottom: 10px;
  font-size: clamp(1.25rem, 1.7vw, 1.5rem);
  font-weight: 700;
  line-height: 1.25;
}

.step__text { color: var(--mute); max-width: 58ch; }

/* --- Цены ---------------------------------------------------------------- */

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gutter);
}

.plan {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3.6vw, 52px);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.plan--featured {
  background: var(--sheet);
  border-color: var(--sheet);
}

.plan__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 2.4vw, 2.25rem);
  line-height: 1;
}

.plan__price {
  margin: 28px 0 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.75rem, 6.4vw, 6rem);
  line-height: .9;
  white-space: nowrap;
}

.plan__from {
  margin-right: .12em;
  color: var(--mute);
  font-size: .36em;
  font-weight: 600;
}

.plan__unit { margin-bottom: 24px; color: var(--mute); }
.plan__desc { color: var(--soft); max-width: 44ch; }

.plan__list {
  display: grid;
  gap: 10px;
  margin: 28px 0 40px;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.plan--featured .plan__list { border-top-color: var(--sheet-2); }

.plan__list li { position: relative; padding-left: 26px; }

.plan__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .78em;
  width: 12px;
  height: 2px;
  background: var(--copy);
}

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

.plans__note { margin-top: 32px; color: var(--mute); }

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

.faq { row-gap: 40px; }

.faq__head {
  grid-column: 1 / span 4;
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 40px);
}

.faq__head .h-section { font-size: clamp(3rem, 6vw, 5.75rem); }
.faq__head p { margin-top: 24px; color: var(--mute); max-width: 30ch; }

.faq__list {
  grid-column: 6 / -1;
  border-top: 1px solid var(--line);
}

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

.faq__item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  font-size: clamp(1.1875rem, 1.6vw, 1.375rem);
  font-weight: 600;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

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

.faq__icon {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: .15em;
  color: var(--copy);
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 10px;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform .35s var(--ease-out);
}

.faq__icon::after { transform: rotate(90deg); }
.faq__item[open]:not(.is-closing) .faq__icon::after { transform: rotate(0); }

.faq__body {
  max-width: 62ch;
  padding-bottom: 30px;
  color: var(--soft);
}

.faq__body a { color: var(--copy); }

/* --- Новости ------------------------------------------------------------- */

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

.news-item {
  row-gap: 10px;
  padding-block: clamp(28px, 3.2vw, 44px);
  border-bottom: 1px solid var(--line);
}

.news-item__meta {
  grid-column: 1 / span 3;
  padding-top: .35em;
  color: var(--mute);
  font-size: 1rem;
  line-height: 1.5;
}

.news-item__meta span { display: block; color: var(--copy); }

.news-item__body { grid-column: 4 / span 8; }

.news-item__title {
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  line-height: .98;
  letter-spacing: -.005em;
  text-wrap: balance;
}

.news-item__title a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 94% / 0 2px no-repeat;
  transition: background-size .45s var(--ease-out);
}

.news-item__title a:hover,
.news-item__title a:focus-visible { background-size: 100% 2px; }

.news-item__lead { color: var(--mute); max-width: 60ch; }

/* --- Заявка -------------------------------------------------------------- */

.contact {
  row-gap: 56px;
  align-items: start;
}

.contact__intro { grid-column: 1 / span 5; }
.contact__intro > p { margin-top: 28px; color: var(--soft); max-width: 40ch; }

.contact__direct {
  display: grid;
  gap: 18px;
  margin-top: 44px;
}

.contact__direct dt { color: var(--mute); font-size: .875rem; }

.contact__direct dd {
  margin-top: 2px;
  font-size: 1.25rem;
  font-weight: 600;
}

.contact__direct a { text-decoration: none; }
.contact__direct a:hover { text-decoration: underline; }

.contact__panel {
  grid-column: 7 / -1;
  padding: clamp(24px, 3.6vw, 48px);
  background: var(--sheet);
  border-radius: 22px;
}

.field { display: grid; gap: 8px; margin-bottom: 26px; }

.field label { font-size: 1rem; font-weight: 600; }

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--carbon-deep);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--paper);
  font: 400 1.0625rem/1.5 var(--font-text);
  transition: border-color .2s;
}

.field textarea { min-height: 176px; resize: vertical; }

.field input::placeholder,
.field textarea::placeholder { color: #7f83b3; }

.field input:focus,
.field textarea:focus { border-color: var(--copy); }

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

.field__hint {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--mute);
  font-size: .875rem;
  line-height: 1.45;
}

.field__count { flex: none; }
.field__count b { color: var(--paper); font-variant-numeric: tabular-nums; }

.field__error {
  color: var(--error);
  font-size: .9375rem;
  line-height: 1.4;
}

.field__error:empty { display: none; }

.form__submit { width: 100%; }

.form__note {
  margin-top: 16px;
  color: var(--mute);
  font-size: .8125rem;
  line-height: 1.5;
}

.form-done:focus { outline: none; }

.form-done__title {
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: .95;
}

.form-done p { color: var(--soft); margin-bottom: 28px; }
.form-done b { color: var(--paper); }

/* --- Полоса призыва (внутренние страницы) ------------------------------- */

.cta-band {
  padding-block: clamp(72px, 9vw, 128px);
  border-top: 1px solid var(--line);
}

.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.cta-band .h-section { max-width: 12ch; }

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

.site-footer {
  padding-block: 72px 36px;
  background: var(--carbon-deep);
  border-top: 1px solid var(--line);
}

.site-footer__grid { row-gap: 40px; }

.site-footer__brand { grid-column: 1 / span 5; }

.site-footer__brand p {
  margin-top: 18px;
  color: var(--mute);
  max-width: 36ch;
}

.site-footer__nav { grid-column: 6 / span 3; }
.site-footer__contacts { grid-column: 9 / -1; }

.site-footer h2 {
  margin-bottom: 14px;
  color: var(--mute);
  font-size: .875rem;
  font-weight: 500;
}

.site-footer ul { display: grid; gap: 8px; padding: 0; list-style: none; }
.site-footer ul a { text-decoration: none; overflow-wrap: anywhere; }
.site-footer ul a:hover { text-decoration: underline; }

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: .875rem;
}

/* --- Страница новостей --------------------------------------------------- */

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

.page-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4.5rem, 14vw, 13rem);
  line-height: .82;
  letter-spacing: -.015em;
}

.page-hero p {
  margin-top: 32px;
  color: var(--soft);
  font-size: clamp(1.1875rem, 1.5vw, 1.3125rem);
  max-width: 40ch;
}

.news-page { padding-bottom: clamp(88px, 10vw, 152px); }

/* --- Статья -------------------------------------------------------------- */

.read-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: 3px;
  background: var(--marker);
  transform: scaleX(0);
  transform-origin: left;
}

.article { padding-block: clamp(40px, 6vw, 88px) clamp(80px, 9vw, 136px); }

.article__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mute);
  font-weight: 500;
  text-decoration: none;
}

.article__back svg { width: 18px; height: 18px; }
.article__back:hover { color: var(--paper); }

.article__head { margin-top: clamp(36px, 5vw, 64px); }

.article__title {
  max-width: 17ch;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.75rem, 6.6vw, 6.5rem);
  line-height: .9;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.article__lead {
  max-width: 44ch;
  margin-top: 32px;
  color: var(--soft);
  font-size: clamp(1.25rem, 1.9vw, 1.5rem);
  line-height: 1.5;
}

.article__layout {
  row-gap: 40px;
  margin-top: clamp(48px, 6vw, 88px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.article__aside { grid-column: 1 / span 3; }

.article__facts {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  display: grid;
  gap: 16px;
}

.article__facts dt { color: var(--mute); font-size: .875rem; }
.article__facts dd { margin-top: 2px; font-size: 1rem; }

.prose { grid-column: 4 / span 8; max-width: 68ch; }

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

.prose p,
.prose li {
  font-size: 1.1875rem;
  line-height: 1.68;
}

.prose h2 {
  margin-top: 2.2em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  line-height: 1;
}

.prose h2 + * { margin-top: .7em; }
.prose > :first-child { margin-top: 0; }

.prose ul,
.prose ol { padding-left: 1.3em; }

.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--copy); }

.prose a { color: var(--copy); }

.prose .callout {
  margin-top: 2em;
  padding: 24px 28px;
  background: var(--sheet);
  border-radius: 14px;
  color: var(--soft);
}

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

@media (max-width: 1100px) {
  .hero__text,
  .hero__demo { grid-column: 1 / -1; }

  .hero__demo { max-width: 640px; }

  .hero__title { font-size: clamp(2.75rem, 12.5vw, 9rem); }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--carbon-deep);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease-out), visibility 0s .25s;
  }

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

  .nav__link {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    color: var(--paper);
    font-size: 1.25rem;
  }

  .nav .btn { margin-top: 20px; }

  .section-head > .h-section,
  .section-head__aside,
  .kinds__name,
  .kinds__desc,
  .limits__title,
  .limits__list,
  .faq__head,
  .faq__list,
  .news-item__meta,
  .news-item__body,
  .contact__intro,
  .contact__panel,
  .article__aside,
  .prose { grid-column: 1 / -1; }

  .faq__head { position: static; }

  .step { grid-template-columns: 1fr; padding-left: 44px; }

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

  .news-item__meta { padding-top: 0; }
  .news-item__meta span { display: inline; margin-left: 8px; }

  .article__facts {
    position: static;
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    column-gap: 32px;
  }

  .site-footer__brand { grid-column: 1 / -1; }
  .site-footer__nav { grid-column: 1 / span 6; }
  .site-footer__contacts { grid-column: 7 / -1; }
}

@media (max-width: 560px) {
  body { font-size: 1.0625rem; }

  .hero__title { font-size: 17.5vw; }

  .hero__facts { grid-template-columns: 1fr; gap: 0; }
  .hero__facts div { padding-block: 12px; }

  .hero__actions .btn { flex: 1 1 100%; }

  .serp { padding: 12px; }

  .site-footer__nav,
  .site-footer__contacts { grid-column: 1 / -1; }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
}
