/* ==========================================================================
   РелизВеб — основной стиль
   Токены: примитивы → семантические роли. Компоненты используют только роли.
   ========================================================================== */

:root {
  /* Примитивы */
  --blue-50: oklch(0.97 0.018 258);
  --blue-100: oklch(0.935 0.035 258);
  --blue-500: oklch(0.53 0.19 258);
  --blue-600: oklch(0.47 0.19 258);
  --gray-0: oklch(1 0 0);
  --gray-25: oklch(0.982 0.003 258);
  --gray-50: oklch(0.965 0.005 258);
  --gray-150: oklch(0.915 0.007 258);
  --gray-300: oklch(0.82 0.008 258);
  --gray-500: oklch(0.52 0.014 258);
  --gray-700: oklch(0.38 0.016 258);
  --gray-900: oklch(0.2 0.018 258);
  --green-500: oklch(0.56 0.13 152);
  --green-50: oklch(0.965 0.03 152);
  --red-500: oklch(0.55 0.19 27);

  /* Роли */
  --color-bg: var(--gray-0);
  --color-bg-subtle: var(--gray-25);
  --color-bg-muted: var(--gray-50);
  --color-border: var(--gray-150);
  --color-border-strong: var(--gray-300);
  --color-text: var(--gray-900);
  --color-text-secondary: var(--gray-700);
  --color-text-muted: var(--gray-500);
  --color-accent-solid: var(--blue-500);
  --color-accent-solid-hover: var(--blue-600);
  --color-accent-text: var(--blue-600);
  --color-accent-subtle: var(--blue-50);
  --color-accent-border: var(--blue-100);
  --color-on-accent: var(--gray-0);
  --color-success: var(--green-500);
  --color-success-subtle: var(--green-50);
  --color-danger: var(--red-500);
  --color-ink-surface: var(--gray-900);
  --color-on-ink: var(--gray-0);
  --color-on-ink-muted: oklch(0.78 0.01 258);

  /* Типографика */
  --font-sans: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text-caption: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-body: 1.0625rem;
  --text-lead: 1.25rem;
  --text-h4: 1.25rem;
  --text-h3: 1.625rem;
  --text-h2: clamp(2rem, 1.35rem + 2.6vw, 3.25rem);
  --text-h1: clamp(2.5rem, 1.5rem + 4.2vw, 4.75rem);

  /* Пространство */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --section-pad: clamp(72px, 5vw + 48px, 128px);
  --gutter: clamp(16px, 4vw, 40px);
  --container: 1200px;

  /* Поверхности */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px oklch(0.2 0.02 258 / 0.06), 0 2px 6px oklch(0.2 0.02 258 / 0.04);
  --shadow-md: 0 2px 4px oklch(0.2 0.02 258 / 0.04), 0 12px 32px oklch(0.2 0.02 258 / 0.08);
  --shadow-lg: 0 4px 8px oklch(0.2 0.02 258 / 0.04), 0 24px 64px oklch(0.2 0.02 258 / 0.12);

  --ease-out: cubic-bezier(0.2, 0, 0, 1);
  --header-h: 68px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-block-start: calc(var(--header-h) + 16px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.55;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: clip;
}

img, svg, iframe { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
::selection { background: var(--color-accent-border); color: var(--color-text); }
:focus-visible { outline: 2px solid var(--color-accent-solid); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 { font-weight: 650; text-wrap: balance; }
p { text-wrap: pretty; }

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

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  inset-block-start: -100px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--color-text);
  color: var(--color-bg);
  border-radius: var(--radius-sm);
}
.skip-link:focus { inset-block-start: 12px; }

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

.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color 150ms var(--ease-out), border-color 150ms var(--ease-out), color 150ms var(--ease-out), scale 150ms ease-out;
  -webkit-tap-highlight-color: transparent;
}
.btn:not(:disabled):active { scale: 0.96; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--color-accent-solid); color: var(--color-on-accent); }
.btn--secondary { background: var(--color-bg); color: var(--color-text); border-color: var(--color-border-strong); }
.btn--ghost { color: var(--color-text); padding-inline: 16px; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: var(--text-sm); }
.btn--block { width: 100%; }
@media (hover: hover) {
  .btn--primary:hover { background: var(--color-accent-solid-hover); }
  .btn--secondary:hover { border-color: var(--color-text); }
  .btn--ghost:hover { color: var(--color-accent-text); }
}

.link {
  color: var(--color-accent-text);
  text-decoration: underline;
  text-decoration-color: color-mix(in oklab, var(--color-accent-text) 35%, transparent);
  text-underline-offset: 3px;
  text-decoration-thickness: from-font;
  transition: text-decoration-color 150ms var(--ease-out);
}
@media (hover: hover) { .link:hover { text-decoration-color: currentColor; } }

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease-out);
}
.header.is-scrolled { border-bottom-color: var(--color-border); }
.header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  height: var(--header-h);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  min-height: 44px;
}
.logo__mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--color-accent-solid);
  color: var(--color-on-accent);
}
.logo__mark svg { width: 18px; height: 18px; }
.logo b { font-weight: 700; color: var(--color-accent-text); }

.nav { margin-inline-start: auto; }
.nav__list { display: flex; gap: 4px; }
.nav__list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color 150ms var(--ease-out), background-color 150ms var(--ease-out);
}
@media (hover: hover) { .nav__list a:hover { color: var(--color-text); background: var(--color-bg-muted); } }

.header__cta { flex: none; }
.burger {
  display: none;
  width: 44px;
  height: 44px;
  margin-inline-start: auto;
  border-radius: 12px;
  place-items: center;
}
.burger span, .burger span::before, .burger span::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-text);
  position: relative;
  transition: transform 200ms var(--ease-out), opacity 150ms var(--ease-out);
}
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .burger { display: grid; }
  .header__cta { display: none; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--color-bg);
    padding: var(--space-5) var(--gutter) var(--space-7);
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    opacity: 0;
    transition: opacity 200ms var(--ease-out), visibility 0s linear 200ms;
  }
  .nav.is-open { visibility: visible; opacity: 1; transition: opacity 200ms var(--ease-out); }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a {
    display: flex;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    min-height: 60px;
    padding: 0;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
  }
  body.menu-open { overflow: hidden; }
}
.nav__mobile-cta { display: none; }
@media (max-width: 960px) { .nav__mobile-cta { display: flex; } }

/* ---------- Секции ---------- */
.section { padding-block: var(--section-pad); }
.section--subtle { background: var(--color-bg-subtle); border-block: 1px solid var(--color-border); }
.section__head { max-width: 760px; margin-bottom: var(--space-8); }
.section__head--center { margin-inline: auto; text-align: center; }
.h2 {
  font-size: var(--text-h2);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 650;
}
.section__lead {
  margin-top: var(--space-5);
  font-size: var(--text-lead);
  line-height: 1.5;
  color: var(--color-text-secondary);
  max-width: 62ch;
}
.section__head--center .section__lead { margin-inline: auto; }

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  padding-block: clamp(40px, 6vh, 80px) clamp(56px, 8vh, 96px);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
.hero__title {
  font-size: var(--text-h1);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
}
.hero__title em {
  font-style: normal;
  color: var(--color-accent-text);
}
.hero__text {
  margin-top: var(--space-5);
  font-size: var(--text-lead);
  line-height: 1.5;
  color: var(--color-text-secondary);
  max-width: 34em;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts svg { width: 16px; height: 16px; color: var(--color-success); flex: none; }
.hero__facts strong { color: var(--color-text); font-weight: 600; }

/* Однократное появление hero */
@media (prefers-reduced-motion: no-preference) {
  [data-enter] { animation: enter 600ms var(--ease-out) both; }
  [data-enter="2"] { animation-delay: 100ms; }
  [data-enter="3"] { animation-delay: 200ms; }
  [data-enter="4"] { animation-delay: 300ms; }
  [data-enter="5"] { animation-delay: 380ms; }
}
@keyframes enter {
  from { opacity: 0; transform: translateY(12px); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* ---------- Мок поисковой выдачи ---------- */
.serp {
  position: relative;
  border-radius: var(--radius-xl);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.serp__top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--color-border);
}
.serp__query {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--color-bg-muted);
  font-size: var(--text-sm);
  font-weight: 500;
}
.serp__query svg { width: 18px; height: 18px; color: var(--color-text-muted); flex: none; }
.serp__query-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.serp__caret {
  display: inline-block;
  width: 1.5px;
  height: 1.1em;
  margin-inline-start: 1px;
  background: var(--color-accent-solid);
  vertical-align: -0.15em;
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .serp__caret { animation: none; } }

.serp__tabs {
  display: flex;
  gap: 20px;
  padding: 12px 20px 0;
  font-size: var(--text-caption);
  color: var(--color-text-muted);
}
.serp__tabs span { padding-bottom: 10px; }
.serp__tabs span[aria-current] { color: var(--color-text); font-weight: 600; box-shadow: inset 0 -2px 0 var(--color-text); }

.serp__list {
  position: relative;
  height: calc(4 * 88px + 16px);
  padding: 8px 12px;
}
.serp__row {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 8px;
  height: 80px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transform: translateY(calc(var(--pos, 0) * 88px));
  transition: transform 900ms var(--ease-out), background-color 300ms var(--ease-out), border-color 300ms var(--ease-out);
}
.serp__fav {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: var(--text-caption);
  font-weight: 700;
  background: var(--color-bg-muted);
  color: var(--color-text-muted);
}
.serp__body { min-width: 0; }
.serp__title, .serp__url { display: block; }
.serp__title { font-size: 0.9375rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.serp__url { margin-top: 2px; font-size: var(--text-caption); color: var(--color-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.serp__pos {
  font-size: var(--text-caption);
  font-weight: 600;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
  min-width: 2ch;
  text-align: end;
}
.serp__row--you { background: var(--color-accent-subtle); border-color: var(--color-accent-border); z-index: 2; }
.serp__row--you .serp__fav { background: var(--color-accent-solid); color: var(--color-on-accent); }
.serp__row--you .serp__title { color: var(--color-accent-text); }
.serp__badge {
  display: inline-flex;
  align-items: center;
  margin-inline-start: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--color-accent-solid);
  color: var(--color-on-accent);
  font-size: 0.6875rem;
  font-weight: 600;
  vertical-align: 2px;
}
.serp__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-subtle);
  font-size: var(--text-caption);
  color: var(--color-text-muted);
}
.serp__dots { display: flex; gap: 6px; }
.serp__dots button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.serp__dots button::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border-strong);
  transition: background-color 200ms var(--ease-out), width 200ms var(--ease-out);
}
.serp__dots button[aria-pressed="true"]::before { background: var(--color-accent-solid); }

/* ---------- Сравнение «без сайта / с сайтом» ---------- */
.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-bg);
}
.compare__col { padding: clamp(24px, 3vw, 44px); }
.compare__col + .compare__col { border-inline-start: 1px solid var(--color-border); background: var(--color-accent-subtle); }
.compare__title { font-size: var(--text-h4); line-height: 1.3; letter-spacing: -0.01em; }
.compare__list { margin-top: var(--space-5); display: grid; gap: var(--space-4); }
.compare__list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  color: var(--color-text-secondary);
}
.compare__list svg { width: 22px; height: 22px; margin-top: 1px; }
.compare__col:first-child svg { color: var(--color-text-muted); }
.compare__col + .compare__col svg { color: var(--color-accent-text); }
.compare__list b { color: var(--color-text); font-weight: 600; }

/* ---------- Разбор конкурентов ---------- */
.audit {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
.audit__list { margin-top: var(--space-6); display: grid; gap: var(--space-5); }
.audit__list li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
}
.audit__ico {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  background: var(--color-accent-subtle);
  color: var(--color-accent-text);
}
.audit__ico svg { width: 20px; height: 20px; }
.audit__list h3 { font-size: 1.0625rem; font-weight: 600; line-height: 1.4; }
.audit__list p { margin-top: 2px; color: var(--color-text-secondary); font-size: var(--text-sm); }
.audit__actions { margin-top: var(--space-7); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.audit__note { font-size: var(--text-sm); color: var(--color-text-muted); }

.report {
  border-radius: var(--radius-xl);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.report__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--color-border);
}
.report__title { font-size: 1.125rem; font-weight: 650; letter-spacing: -0.01em; }
.report__meta { margin-top: 4px; font-size: var(--text-caption); color: var(--color-text-muted); }
.report__flag {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--color-bg-muted);
  color: var(--color-text-secondary);
  font-size: var(--text-caption);
  font-weight: 500;
  white-space: nowrap;
}
.report__summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--color-border);
}
.report__stat { padding: 18px 28px; }
.report__stat + .report__stat { border-inline-start: 1px solid var(--color-border); }
.report__stat dt { font-size: var(--text-caption); color: var(--color-text-muted); }
.report__stat dd { margin-top: 4px; font-size: 1.5rem; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.report__stat dd.is-bad { color: var(--color-danger); }
.report__table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.report__table th {
  text-align: start;
  font-size: var(--text-caption);
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 12px 20px 10px;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}
.report__table th:first-child, .report__table td:first-child { padding-inline-start: 28px; }
.report__table th:last-child, .report__table td:last-child { padding-inline-end: 28px; }
.report__table td { padding: 13px 20px; border-bottom: 1px solid var(--color-border); vertical-align: middle; }
.report__table tr:last-child td { border-bottom: 0; }
.report__table td:nth-child(2), .report__table th:nth-child(2) { text-align: end; font-variant-numeric: tabular-nums; }
.report__table td:first-child { font-weight: 500; }
.bars { display: inline-flex; gap: 3px; vertical-align: middle; }
.bars i { width: 14px; height: 6px; border-radius: 3px; background: var(--color-border); }
.bars i.on { background: var(--color-text-secondary); }
.pill-bad, .pill-ok {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: var(--text-caption);
  font-weight: 600;
  white-space: nowrap;
}
.pill-bad { background: oklch(0.96 0.025 27); color: var(--color-danger); }
.pill-ok { background: var(--color-success-subtle); color: oklch(0.45 0.12 152); }
.report__foot {
  padding: 18px 28px;
  background: var(--color-bg-subtle);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}
.report__foot b { color: var(--color-text); }

/* ---------- Работы ---------- */
.works {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}
.work { display: flex; flex-direction: column; }
.work__frame {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  cursor: pointer;
  transition: translate 250ms var(--ease-out), box-shadow 250ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
  .work__frame:hover { translate: 0 -2px; box-shadow: var(--shadow-md); }
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-subtle);
}
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--color-border-strong); }
.browser-bar span {
  margin-inline: auto;
  padding: 3px 12px;
  border-radius: 6px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70%;
}
.work__viewport {
  position: relative;
  height: 420px;
  overflow: hidden;
  background: var(--color-bg-muted);
}
.work__viewport iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1280px;
  max-width: none;
  border: 0;
  pointer-events: none;
  transform-origin: 0 0;
  transform: scale(var(--s, 0.3)) translateY(var(--y, 0px));
  transition: transform var(--dur, 6s) cubic-bezier(0.45, 0, 0.25, 1);
}
.work__hint {
  position: absolute;
  inset-inline-end: 12px;
  inset-block-end: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--color-ink-surface);
  color: var(--color-on-ink);
  font-size: var(--text-caption);
  font-weight: 500;
  opacity: 0;
  translate: 0 4px;
  transition: opacity 200ms var(--ease-out), translate 200ms var(--ease-out);
}
.work__hint svg { width: 14px; height: 14px; }
.work__frame:hover .work__hint,
.work__frame:focus-visible .work__hint { opacity: 1; translate: 0 0; }
@media (hover: none) { .work__hint { opacity: 1; translate: 0 0; } }

.work__meta { padding: var(--space-5) 4px 0; }
.work__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: var(--text-caption);
  font-weight: 500;
  background: var(--color-bg-muted);
  color: var(--color-text-secondary);
}
.tag--accent { background: var(--color-accent-subtle); color: var(--color-accent-text); }
.work__title { margin-top: var(--space-3); font-size: var(--text-h4); line-height: 1.3; letter-spacing: -0.01em; }
.work__text { margin-top: var(--space-2); color: var(--color-text-secondary); font-size: var(--text-sm); }
.works__note { margin-top: var(--space-6); font-size: var(--text-sm); color: var(--color-text-muted); text-align: center; }

/* Модальное окно демо */
.demo-modal {
  width: min(1320px, calc(100vw - 32px));
  height: min(900px, calc(100dvh - 32px));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  overscroll-behavior: contain;
}
.demo-modal::backdrop { background: oklch(0.2 0.02 258 / 0.55); }
.demo-modal[open] { display: flex; flex-direction: column; }
@media (prefers-reduced-motion: no-preference) {
  .demo-modal[open] { animation: modal-in 300ms var(--ease-out); }
}
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(0.99); } }
.demo-modal__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 8px 0 20px;
  border-bottom: 1px solid var(--color-border);
}
.demo-modal__title { font-size: var(--text-sm); font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-modal__close {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--color-text-secondary);
  transition: background-color 150ms var(--ease-out);
}
@media (hover: hover) { .demo-modal__close:hover { background: var(--color-bg-muted); color: var(--color-text); } }
.demo-modal__close svg { width: 20px; height: 20px; }
.demo-modal iframe { flex: 1; width: 100%; border: 0; }
@media (max-width: 640px) {
  .demo-modal { width: 100vw; height: 100dvh; border-radius: 0; }
}

/* ---------- Цены ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  align-items: stretch;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.4vw, 36px);
  border-radius: var(--radius-xl);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
}
.plan--featured {
  background: var(--color-ink-surface);
  color: var(--color-on-ink);
  border-color: var(--color-ink-surface);
}
.plan__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; }
.plan__name { font-size: var(--text-h4); font-weight: 650; letter-spacing: -0.01em; }
.plan__badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--color-accent-solid);
  color: var(--color-on-accent);
  font-size: var(--text-caption);
  font-weight: 600;
}
.plan__price { margin-top: var(--space-5); font-size: 2.5rem; line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan__price small { font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--color-text-muted); }
.plan--featured .plan__price small { color: var(--color-on-ink-muted); }
.plan__desc { margin-top: var(--space-3); color: var(--color-text-secondary); font-size: var(--text-sm); min-height: 3em; }
.plan--featured .plan__desc { color: var(--color-on-ink-muted); }
.plan__list {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  display: grid;
  gap: 12px;
  font-size: var(--text-sm);
  flex: 1;
  align-content: start;
}
.plan--featured .plan__list { border-top-color: oklch(1 0 0 / 0.12); }
.plan__list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; }
.plan__list svg { width: 18px; height: 18px; margin-top: 2px; color: var(--color-accent-text); }
.plan--featured .plan__list svg { color: oklch(0.78 0.12 258); }
.plan__list .is-base { color: var(--color-text-muted); }
.plan--featured .plan__list .is-base { color: var(--color-on-ink-muted); }
.plan .btn { margin-top: var(--space-6); }
.plan--featured .btn--secondary { background: transparent; color: var(--color-on-ink); border-color: oklch(1 0 0 / 0.3); }
@media (hover: hover) { .plan--featured .btn--secondary:hover { border-color: var(--color-on-ink); } }

.extras {
  margin-top: var(--space-5);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-bg);
  overflow: hidden;
}
.extra {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 24px;
  align-items: baseline;
  padding: clamp(20px, 2.4vw, 32px);
}
.extra + .extra { border-inline-start: 1px solid var(--color-border); }
.extra__name { font-size: 1.125rem; font-weight: 650; letter-spacing: -0.01em; }
.extra__price { font-size: 1.125rem; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.extra__desc { grid-column: 1 / -1; color: var(--color-text-secondary); font-size: var(--text-sm); }

/* Функционал по нишам */
.features {
  margin-top: var(--space-9);
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.features__title { font-size: var(--text-h3); line-height: 1.2; letter-spacing: -0.02em; }
.features__text { margin-top: var(--space-4); color: var(--color-text-secondary); }
.features__list { border-top: 1px solid var(--color-border); }
.features__list li {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: 8px 32px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}
.features__niche { font-weight: 600; }
.features__what { color: var(--color-text-secondary); }
.features__what b { color: var(--color-text); font-weight: 600; }

/* ---------- Процесс ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-5);
  counter-reset: step;
  position: relative;
}
.step { position: relative; padding-top: 56px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-bg);
  border: 1px solid var(--color-border-strong);
  font-size: var(--text-sm);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  z-index: 1;
}
.step:first-child::before { background: var(--color-accent-solid); border-color: var(--color-accent-solid); color: var(--color-on-accent); }
.step::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 44px;
  right: calc(var(--space-5) * -1 + 8px);
  height: 1px;
  background: var(--color-border-strong);
}
.step:last-child::after { display: none; }
.step h3 { font-size: 1.0625rem; font-weight: 650; line-height: 1.35; }
.step p { margin-top: var(--space-2); font-size: var(--text-sm); color: var(--color-text-secondary); }
.steps__you {
  margin-top: var(--space-7);
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  background: var(--color-accent-subtle);
  color: var(--color-text-secondary);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.steps__you svg { width: 22px; height: 22px; color: var(--color-accent-text); flex: none; margin-top: 1px; }
.steps__you b { color: var(--color-text); }

/* ---------- Что входит ---------- */
.included {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.included__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
}
.included__list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--color-border);
}
.included__list svg { width: 22px; height: 22px; color: var(--color-accent-text); }
.included__list b { display: block; font-weight: 600; }
.included__list span { display: block; margin-top: 2px; font-size: var(--text-sm); color: var(--color-text-secondary); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; border-top: 1px solid var(--color-border); }
.faq details { border-bottom: 1px solid var(--color-border); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 16px 0;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 22px; height: 22px; flex: none; color: var(--color-text-muted); transition: rotate 200ms var(--ease-out); }
.faq details[open] summary svg { rotate: 45deg; }
.faq__answer { padding: 0 48px 24px 0; color: var(--color-text-secondary); max-width: 68ch; }
.faq__answer p + p { margin-top: var(--space-3); }

/* ---------- Заявка ---------- */
.cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(28px, 5vw, 72px);
  border-radius: 32px;
  background: var(--color-ink-surface);
  color: var(--color-on-ink);
}
.cta .h2 { color: var(--color-on-ink); }
.cta__text { margin-top: var(--space-5); color: var(--color-on-ink-muted); font-size: var(--text-lead); max-width: 30em; }
.cta__contacts { margin-top: var(--space-7); display: grid; gap: var(--space-3); }
.cta__contacts a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-weight: 600;
  width: fit-content;
}
.cta__contacts svg { width: 20px; height: 20px; color: oklch(0.78 0.12 258); }
@media (hover: hover) { .cta__contacts a:hover { text-decoration: underline; text-underline-offset: 4px; } }

.form {
  display: grid;
  gap: var(--space-4);
  padding: clamp(20px, 3vw, 36px);
  border-radius: var(--radius-xl);
  background: var(--color-bg);
  color: var(--color-text);
  align-self: start;
}
.form__title { font-size: 1.25rem; font-weight: 650; letter-spacing: -0.01em; }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--text-sm); font-weight: 500; }
.field label span { color: var(--color-text-muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  font-size: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-strong);
  background: var(--color-bg);
  transition: border-color 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--color-text-muted); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-accent-solid);
  box-shadow: 0 0 0 3px var(--color-accent-border);
}
.field.has-error input { border-color: var(--color-danger); }
.field__error { font-size: var(--text-caption); color: var(--color-danger); min-height: 0; }
.field__error:empty { display: none; }
.check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  font-size: var(--text-caption);
  color: var(--color-text-secondary);
  line-height: 1.5;
  cursor: pointer;
}
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--color-accent-solid); }
.form__status {
  font-size: var(--text-sm);
  padding: 12px 14px;
  border-radius: var(--radius-md);
}
.form__status:empty { display: none; }
.form__status.is-ok { background: var(--color-success-subtle); color: oklch(0.4 0.11 152); }
.form__status.is-error { background: oklch(0.965 0.02 27); color: var(--color-danger); }
.btn.is-loading { opacity: 0.7; pointer-events: none; }

/* ---------- Подвал ---------- */
.footer {
  padding-block: var(--space-8) var(--space-7);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}
.footer__about { margin-top: var(--space-4); max-width: 36ch; }
.footer h3 { font-size: var(--text-sm); font-weight: 600; color: var(--color-text); margin-bottom: var(--space-3); }
.footer ul { display: grid; gap: 4px; }
.footer ul a { display: inline-flex; min-height: 32px; align-items: center; }
@media (hover: hover) { .footer ul a:hover { color: var(--color-text); } }
.footer__legal {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--text-caption);
  color: var(--color-text-muted);
}

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--space-7); }
  .step:nth-child(3)::after { display: none; }
}
@media (max-width: 960px) {
  .hero { min-height: 0; }
  .hero__grid, .audit, .cta, .features, .included { grid-template-columns: minmax(0, 1fr); }
  .works { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
  .extras { max-width: 560px; margin-inline: auto; grid-template-columns: minmax(0, 1fr); }
  .extra + .extra { border-inline-start: 0; border-top: 1px solid var(--color-border); }
  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .compare { grid-template-columns: minmax(0, 1fr); }
  .compare__col + .compare__col { border-inline-start: 0; border-top: 1px solid var(--color-border); }
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-5); }
  .step { padding-top: 0; padding-inline-start: 56px; min-height: 36px; }
  .step::after { top: 44px; bottom: calc(var(--space-5) * -1 + 8px); left: 18px; right: auto; width: 1px; height: auto; display: block; }
  .step:nth-child(3)::after { display: block; }
  .step:last-child::after { display: none; }
  .included__list { grid-template-columns: minmax(0, 1fr); }
  .features__list li { grid-template-columns: minmax(0, 1fr); }
  .report__head, .report__stat, .report__table th, .report__table td, .report__foot { padding-inline: 18px; }
  .report__table th:nth-child(3), .report__table td:nth-child(3) { display: none; }
  .report__table th, .report__table td { padding-inline: 10px; white-space: normal; }
  .report__table th:first-child, .report__table td:first-child { padding-inline-start: 18px; }
  .report__table th:last-child, .report__table td:last-child { padding-inline-end: 18px; }
  .report__stat { padding-block: 14px; }
  .report__stat dd { font-size: 1.25rem; }
  .serp__list { height: calc(4 * 80px + 16px); }
  .serp__row { height: 72px; transform: translateY(calc(var(--pos, 0) * 80px)); grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; }
  .serp__fav { width: 32px; height: 32px; }
  .faq__answer { padding-inline-end: 0; }
}
@media (max-width: 520px) {
  .hero__actions .btn, .audit__actions .btn { width: 100%; }
  .report__summary { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .report__stat:nth-child(3) { display: none; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .serp__badge { display: none; }
}
