/* Шрифт из бренд-кита (29.09.2026): свой файл вместо Google Fonts — без внешних запросов и блокировок. */
@font-face {
  font-family: "Manrope";
  src: url("/assets/Manrope-variable.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --navy: #0f172a;
  --night: #070a16;
  --night-2: #0a0f20;
  --panel: #10172a;
  --panel-2: #151d34;
  --violet: #6c5ce7;
  --violet-light: #9a85ff;
  --blue: #4f7cff;
  --orange: #ff8a00;
  --green: #55de78;
  --white: #f2f4f8;
  --muted: #9ca6bc;
  --muted-2: #6f7991;
  --line: rgba(177, 188, 220, 0.16);
  --line-strong: rgba(139, 124, 255, 0.34);
  --violet-soft: rgba(108, 92, 231, 0.13);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.4);
  --container: 1440px;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --header-height: 88px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 5%, rgba(88, 68, 205, 0.09), transparent 30%),
    radial-gradient(circle at 8% 24%, rgba(79, 124, 255, 0.05), transparent 26%),
    var(--night);
  color: var(--white);
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-180%);
  border-radius: 10px;
  background: var(--white);
  color: var(--night);
  text-decoration: none;
}

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

.container {
  width: min(var(--container), calc(100% - 80px));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 124px 0;
}

.site-header {
  position: relative;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
}

.header-inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.brand {
  flex: 0 0 auto;
}

.brand img {
  width: 190px;
  height: auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.8vw, 46px);
}

.desktop-nav a,
.login-link {
  color: #c5cbda;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.login-link:hover,
.login-link:focus-visible {
  color: var(--white);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.button {
  display: inline-flex;
  cursor: pointer;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

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

.button:focus-visible,
.position-button:focus-visible,
.menu-button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(154, 133, 255, 0.55);
  outline-offset: 3px;
}

.button-primary {
  background: linear-gradient(135deg, #7c67ff 0%, #5135d6 100%);
  box-shadow: 0 14px 36px rgba(88, 62, 211, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: #fff;
}

.button-primary:hover {
  box-shadow: 0 18px 44px rgba(88, 62, 211, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.button-small {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 13px;
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(13, 18, 37, 0.72);
  color: var(--white);
}

.button-secondary:hover {
  border-color: rgba(154, 133, 255, 0.68);
  background: rgba(108, 92, 231, 0.09);
}

.button svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.button-light {
  background: #fff;
  color: #4d36c7;
  box-shadow: 0 16px 42px rgba(23, 9, 90, 0.28);
}

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: #fff;
}

.menu-button span {
  width: 19px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: absolute;
  top: var(--header-height);
  left: 20px;
  right: 20px;
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(13, 18, 37, 0.98);
  box-shadow: var(--shadow);
}

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

.mobile-nav > a:not(.button) {
  padding: 13px 14px;
  border-radius: 10px;
  color: #d8ddea;
  text-decoration: none;
}

/* Первый экран подтянут к шапке (29.09.2026): без min-height и центровки, чтобы кнопка «Попробовать бесплатно»
   помещалась в окно ноутбука (~660 px высоты вместе с шапкой 88 px). */
.hero {
  display: flex;
  align-items: flex-start;
  padding-top: 24px;
  padding-bottom: 64px;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 3%;
  bottom: 4%;
  width: 62%;
  height: 66%;
  background: radial-gradient(ellipse, rgba(83, 57, 203, 0.11), transparent 66%);
  filter: blur(12px);
}

.hero-glow {
  position: absolute;
  z-index: -1;
  top: 80px;
  right: -240px;
  width: 740px;
  height: 740px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.12), rgba(79, 124, 255, 0.025) 38%, transparent 68%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(430px, 0.83fr) minmax(620px, 1.17fr);
  align-items: start;
  gap: clamp(40px, 5vw, 90px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--violet-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow > span,
.eyebrow > i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 18px var(--violet);
}

.hero h1 {
  margin: 18px 0 20px;
  font-size: clamp(42px, 4.6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.052em;
  line-height: 1.06;
}

.hero h1 span {
  color: var(--violet-light);
}

.hero h1 i {
  color: var(--orange);
  font-style: normal;
}

.hero-lead {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
  margin: 20px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  list-style: none;
}

.hero-notes li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-notes li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 10px var(--violet);
}

.hero-product {
  position: relative;
}

.dashboard-window {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 78px 1fr;
  min-height: 570px;
  overflow: hidden;
  border: 1px solid rgba(143, 122, 255, 0.42);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(18, 24, 46, 0.98), rgba(8, 12, 26, 0.98));
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.52), 0 0 80px rgba(79, 61, 187, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  padding: 18px 12px;
  border-right: 1px solid var(--line);
  background: rgba(7, 11, 24, 0.72);
}

.dashboard-sidebar img {
  margin-bottom: 15px;
}

.side-item {
  display: grid;
  width: 41px;
  height: 41px;
  place-items: center;
  border-radius: 11px;
  color: #7e89a2;
  font-size: 19px;
}

.side-item.active {
  background: linear-gradient(145deg, #795eff, #4424c6);
  color: #fff;
  box-shadow: 0 10px 25px rgba(88, 61, 209, 0.36);
}

.side-item.bottom {
  margin-top: auto;
}

.dashboard-main {
  min-width: 0;
  padding: 22px;
}

.dashboard-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.dashboard-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted-2);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dashboard-topbar strong {
  font-size: 18px;
}

.dashboard-filters {
  display: flex;
  gap: 8px;
}

.dashboard-filters span {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #ccd2e1;
  background: rgba(19, 26, 48, 0.62);
  font-size: 11px;
}

.dashboard-filters b {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff5252;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
  margin-top: 22px;
}

.dashboard-stats article {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(155deg, rgba(26, 34, 60, 0.82), rgba(13, 18, 35, 0.88));
}

.dashboard-stats small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-stats strong {
  display: block;
  margin-top: 6px;
  font-size: 21px;
  line-height: 1.2;
}

.dashboard-stats em,
.keyword-row em {
  color: var(--green);
  font-size: 10px;
  font-style: normal;
}

.keyword-table {
  position: relative;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.keyword-head,
.keyword-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 64px 70px 72px;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
}

.keyword-head {
  color: var(--muted-2);
  background: rgba(21, 28, 50, 0.74);
  font-size: 10px;
}

.keyword-row {
  color: #cdd3e1;
  font-size: 11px;
}

.keyword-row + .keyword-row {
  border-top: 1px solid rgba(177, 188, 220, 0.1);
}

.keyword-row strong {
  display: grid;
  width: 30px;
  height: 25px;
  place-items: center;
  border-radius: 7px;
  background: rgba(85, 222, 120, 0.09);
  color: #baf6c9;
}

.zero-card {
  display: flex;
  min-height: 93px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 12px;
  overflow: hidden;
  padding: 16px 20px;
  border: 1px solid rgba(121, 94, 255, 0.42);
  border-radius: 14px;
  background: linear-gradient(110deg, rgba(20, 25, 47, 0.92), rgba(32, 20, 73, 0.42));
}

.zero-card small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.zero-card strong {
  display: block;
  margin-top: 4px;
  color: var(--green);
  font-size: 30px;
  line-height: 1;
}

.zero-share {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  text-align: right;
}

.zero-share > small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.mini-ring {
  position: relative;
  width: 68px;
  height: 68px;
  flex: 0 0 auto;
  border-radius: 50%;
  box-shadow: 0 0 35px rgba(108, 92, 231, 0.22);
}

.mini-ring svg {
  display: block;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-track,
.ring-value {
  fill: none;
  stroke-width: 9;
}

.ring-track {
  stroke: rgba(108, 92, 231, 0.22);
}

/* Длина окружности при r=28 — 175.9; смещение задаёт долю: 73% → 47.5. */
.ring-value {
  stroke: #9b8cff;
  stroke-linecap: round;
  stroke-dasharray: 175.9;
  stroke-dashoffset: 47.5;
  transition: stroke-dashoffset 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mini-ring span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.orbit {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: -180px;
  border: 1px solid rgba(108, 92, 231, 0.25);
  border-radius: 50%;
  transform: translateY(-50%);
}

.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(108, 92, 231, 0.14);
  border-radius: inherit;
}

.orbit-one { width: 620px; height: 620px; }
.orbit-one::before { inset: 66px; }
.orbit-one::after { inset: 132px; }
.orbit-two { width: 780px; height: 780px; left: -260px; opacity: 0.38; }
.orbit-two::before { inset: 90px; }
.orbit-two::after { inset: 180px; }

.proof-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(12, 17, 34, 0.75);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.proof-grid article {
  display: flex;
  min-height: 124px;
  align-items: center;
  gap: 15px;
  padding: 24px;
}

.proof-grid article + article {
  border-left: 1px solid var(--line);
}

.proof-icon {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(126, 105, 247, 0.36);
  border-radius: 50%;
  background: var(--violet-soft);
  color: var(--violet-light);
  font-size: 22px;
}

.proof-grid strong,
.proof-grid small {
  display: block;
}

.proof-grid strong {
  font-size: 14px;
}

.proof-grid small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 54px;
}

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

.section-heading.split {
  display: flex;
  max-width: none;
  align-items: flex-end;
  justify-content: space-between;
  gap: 70px;
}

.section-heading h2,
.pricing-copy h2,
.case-info h2,
.final-cta h2 {
  margin: 18px 0 0;
  font-size: clamp(38px, 4vw, 64px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.13;
}

.section-heading h2 span,
.features-section .section-heading h2 span,
.faq-section .section-heading h2 span {
  color: var(--violet-light);
}

.section-heading > p,
.section-heading.split > p,
.pricing-copy > p,
.case-info > p {
  max-width: 570px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.section-heading.split > p {
  margin-bottom: 8px;
}

.compare-section {
  background: linear-gradient(180deg, rgba(10, 15, 32, 0), rgba(13, 18, 37, 0.72) 50%, rgba(10, 15, 32, 0));
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.compare-card {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(19, 26, 48, 0.92), rgba(10, 14, 29, 0.92));
}

.compare-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.compare-card-head span {
  font-size: 23px;
  font-weight: 700;
}

.compare-card-head b {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compare-card h3 {
  max-width: 500px;
  margin: 28px 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
}

.compare-card ul,
.check-list {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  color: #c2c9d9;
  list-style: none;
}

.compare-card li,
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 14px;
}

.compare-card li i,
.check-list li span {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(177, 188, 220, 0.25);
  border-radius: 50%;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.new-way {
  border-color: rgba(126, 100, 255, 0.55);
  background:
    radial-gradient(circle at 86% 85%, rgba(108, 92, 231, 0.35), transparent 31%),
    linear-gradient(135deg, rgba(47, 32, 112, 0.96), rgba(17, 19, 47, 0.98));
}

.new-way li i {
  border-color: var(--violet-light);
  color: #c8bfff;
}

.new-way .compare-card-head b {
  border-color: rgba(166, 147, 255, 0.45);
  color: #d4ceff;
}

.muted-ring {
  position: absolute;
  right: -80px;
  bottom: -96px;
  width: 240px;
  height: 240px;
  border: 42px solid rgba(177, 188, 220, 0.08);
  border-top-color: rgba(177, 188, 220, 0.18);
  border-radius: 50%;
}

.target {
  position: absolute;
  right: 16px;
  bottom: -70px;
  width: 235px;
  height: 235px;
  border: 31px solid #6953da;
  border-radius: 50%;
  box-shadow: inset 0 0 0 30px rgba(15, 23, 42, 0.85), inset 0 0 0 59px #8874f3, 0 0 60px rgba(108, 92, 231, 0.26);
  opacity: 0.82;
}

.target span {
  position: absolute;
  inset: 75px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 20px rgba(255, 138, 0, 0.5);
}

.target b {
  position: absolute;
  /* Остриё стрелы должно попадать в центр мишени: правый край и верх ставим в центр
     внутренней области, компенсируем половину ширины и поднимаем на всю длину древка. */
  top: 50%;
  right: 50%;
  width: 7px;
  height: 128px;
  margin-right: -3.5px;
  border-radius: 99px;
  background: linear-gradient(#9a85ff, #34216f);
  transform: translateY(-100%) rotate(42deg);
  transform-origin: bottom;
}

.steps-section {
  padding-top: 84px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.step-card {
  position: relative;
  display: flex;
  min-height: 300px;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, rgba(19, 26, 47, 0.9), rgba(9, 13, 28, 0.95));
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.step-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
}

.step-card:not(:last-child)::after {
  content: "→";
  position: absolute;
  z-index: 3;
  top: 48px;
  right: -21px;
  width: 26px;
  color: var(--muted-2);
  text-align: center;
}

.step-number {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border: 7px solid rgba(108, 92, 231, 0.27);
  border-top-color: var(--violet);
  border-right-color: var(--violet-light);
  border-radius: 50%;
  font-size: 23px;
  font-weight: 700;
}

.step-card h3,
.feature-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.35;
}

.step-card p,
.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.pricing-section {
  overflow: hidden;
}

.pricing-section::before {
  content: "";
  position: absolute;
  top: 15%;
  left: -10%;
  width: 40%;
  height: 70%;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.1), transparent 66%);
}

.pricing-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 52px;
  padding: clamp(34px, 5vw, 74px);
  border: 1px solid rgba(126, 103, 255, 0.34);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(18, 23, 47, 0.98), rgba(9, 12, 28, 0.98)),
    var(--panel);
  box-shadow: var(--shadow);
}

.pricing-copy h2 {
  font-size: clamp(38px, 3.8vw, 58px);
}

.pricing-copy .check-list {
  margin-top: 32px;
}

.check-list li span {
  border-color: var(--violet);
  color: #c7bdff;
}

.calculator {
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid rgba(183, 194, 226, 0.18);
  border-radius: 24px;
  background: linear-gradient(155deg, rgba(24, 32, 57, 0.96), rgba(11, 16, 33, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.calculator-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.calculator-top small,
.rate-field > span,
.calculator fieldset legend,
.calculator-result small {
  color: var(--muted);
  font-size: 12px;
}

.calculator-top h3 {
  margin: 5px 0 0;
  font-size: 22px;
}

.calc-status {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(85, 222, 120, 0.2);
  border-radius: 99px;
  color: #b9efc6;
  font-size: 10px;
}

.calc-status span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(85, 222, 120, 0.8);
}

.rate-field {
  display: grid;
  gap: 9px;
}

.input-wrap {
  display: flex;
  min-height: 52px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(6, 10, 22, 0.55);
}

.input-wrap input {
  min-width: 0;
  flex: 1;
  padding: 14px 16px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-weight: 700;
}

.input-wrap b {
  padding: 0 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.calculator fieldset {
  margin: 28px 0 0;
  padding: 0;
  border: 0;
}

.calculator fieldset legend {
  margin-bottom: 10px;
}

.position-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}

.position-button {
  display: flex;
  min-height: 112px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(8, 12, 26, 0.72);
  color: var(--white);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.position-button:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.position-button.active {
  border-color: var(--violet);
  background: linear-gradient(145deg, rgba(108, 92, 231, 0.24), rgba(16, 20, 42, 0.92));
  box-shadow: inset 0 0 25px rgba(108, 92, 231, 0.08);
}

.position-button small {
  color: var(--muted);
  font-size: 10px;
}

.position-button strong {
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
}

.calculator-result {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 24px;
  padding-top: 23px;
  border-top: 1px solid var(--line);
}

.calculator-result small,
.calculator-result strong {
  display: block;
}

.calculator-result strong {
  margin-top: 6px;
  font-size: 25px;
}

.calculator-result .result-value {
  color: var(--green);
  font-size: 35px;
}

.features-section {
  background: linear-gradient(180deg, rgba(8, 12, 25, 0), rgba(13, 18, 37, 0.56), rgba(8, 12, 25, 0));
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.feature-card {
  min-height: 230px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, rgba(20, 27, 50, 0.9), rgba(10, 14, 29, 0.92));
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
}

.feature-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  margin-bottom: 40px;
  border: 1px solid rgba(126, 101, 255, 0.45);
  border-radius: 15px;
  background: rgba(108, 92, 231, 0.12);
  color: var(--violet-light);
  font-size: 26px;
  box-shadow: inset 0 0 20px rgba(108, 92, 231, 0.08);
}

.case-card {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(34px, 5vw, 72px);
  padding: clamp(34px, 5vw, 68px);
  border: 1px solid var(--line-strong);
  border-radius: 32px;
  background:
    radial-gradient(circle at 92% 8%, rgba(108, 92, 231, 0.16), transparent 27%),
    linear-gradient(145deg, rgba(17, 24, 45, 0.98), rgba(8, 12, 26, 0.98));
}

.demo-badge {
  display: inline-flex;
  padding: 7px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  color: #bdb4ff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.case-info h2 {
  font-size: clamp(32px, 3vw, 46px);
}

.case-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 42px;
}

.case-metrics > div {
  padding-top: 13px;
  border-top: 2px solid var(--violet);
}

.case-metrics strong,
.case-metrics small {
  display: block;
}

.case-metrics strong {
  font-size: 22px;
}

.case-metrics small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.case-chart {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(7, 11, 24, 0.56);
}

.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 2px 4px 12px;
  font-size: 13px;
}

.chart-head b {
  color: var(--green);
  font-size: 11px;
}

.chart-grid path {
  fill: none;
  stroke: rgba(177, 188, 220, 0.12);
  stroke-width: 1;
}

.chart-area { fill: url(#area-gradient); }
.chart-line { fill: none; stroke: url(#line-gradient); stroke-width: 4; stroke-linecap: round; }
.chart-points circle { fill: #8d74ff; stroke: #d8d1ff; stroke-width: 1.5; }
.chart-labels text { fill: #737e97; font-family: Manrope, Arial, sans-serif; font-size: 11px; }
.case-chart > small { display: block; margin-top: 4px; color: var(--muted-2); font-size: 10px; }

.faq-grid {
  display: grid;
  grid-template-columns: 0.68fr 1.32fr;
  gap: clamp(50px, 8vw, 130px);
}

.faq-list details {
  border-top: 1px solid var(--line);
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #e8ebf3;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  list-style: none;
}

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

.faq-list summary span {
  color: var(--violet-light);
  font-size: 24px;
  font-weight: 400;
  transition: transform 0.2s ease;
}

.faq-list details[open] summary span { transform: rotate(45deg); }

.faq-list details p {
  max-width: 770px;
  margin: -4px 0 24px;
  color: var(--muted);
  font-size: 14px;
}

.final-section {
  padding-top: 54px;
}

.final-cta {
  position: relative;
  display: flex;
  min-height: 340px;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  overflow: hidden;
  padding: clamp(38px, 6vw, 86px);
  border-radius: 32px;
  background:
    radial-gradient(circle at 68% 120%, rgba(177, 158, 255, 0.5), transparent 37%),
    linear-gradient(120deg, #3420a8 0%, #6042da 55%, #4028b5 100%);
  box-shadow: 0 34px 90px rgba(44, 25, 133, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.19);
}

.final-cta > div:not(.final-ring) {
  position: relative;
  z-index: 2;
}

.final-cta .eyebrow {
  color: #d9d2ff;
}

.final-cta h2 {
  margin-top: 12px;
  font-size: clamp(36px, 4vw, 59px);
}

.final-cta p {
  margin: 17px 0 0;
  color: #d2cdef;
}

.final-cta .button {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
}

.final-ring {
  position: absolute;
  right: 20%;
  bottom: -165px;
  width: 430px;
  height: 430px;
  border: 74px solid rgba(246, 244, 255, 0.11);
  border-top-color: rgba(247, 245, 255, 0.42);
  border-right-color: rgba(167, 145, 255, 0.36);
  border-radius: 50%;
}

.final-ring::after {
  content: "";
  position: absolute;
  inset: 48px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.site-footer {
  padding: 78px 0 32px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 0.7fr);
  gap: 48px;
}

.footer-brand img {
  width: 164px;
}

.footer-brand p {
  max-width: 340px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 11px;
}

.footer-column strong {
  margin-bottom: 8px;
  font-size: 13px;
}

.footer-column a {
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}

.footer-column a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 11px;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1240px) {
  :root { --container: 1120px; }
  .hero-grid { grid-template-columns: minmax(360px, 0.75fr) minmax(550px, 1.25fr); gap: 38px; }
  .dashboard-window { min-height: 535px; grid-template-columns: 68px 1fr; }
  .dashboard-main { padding: 18px; }
  .dashboard-stats article { padding: 12px; }
  .dashboard-stats strong { font-size: 18px; }
  .position-options { grid-template-columns: 1fr 1fr; }
  .position-button { min-height: 92px; }
}

@media (max-width: 1020px) {
  .container { width: min(100% - 48px, var(--container)); }
  .desktop-nav { display: none; }
  .menu-button { display: flex; }
  .header-actions .button-small { display: none; }
  .hero { padding-top: 36px; }
  .hero-grid { grid-template-columns: 1fr; gap: 76px; }
  .hero-copy { max-width: 760px; }
  .hero-product { width: min(100%, 800px); margin-inline: auto; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .proof-grid article:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .proof-grid article:nth-child(4) { border-top: 1px solid var(--line); }
  .compare-card { min-height: 470px; padding: 30px; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .step-card { min-height: 250px; }
  .step-card:nth-child(2)::after { display: none; }
  .pricing-wrap { grid-template-columns: 1fr; }
  .pricing-copy { max-width: 720px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .case-card { grid-template-columns: 1fr; }
  .case-info { max-width: 720px; }
  .faq-grid { grid-template-columns: 1fr; gap: 10px; }
  .faq-grid .section-heading { margin-bottom: 20px; }
  .final-cta { align-items: flex-start; flex-direction: column; }
  .final-ring { right: -30px; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-column:last-child { grid-column: 2 / 4; }
}

@media (max-width: 720px) {
  :root { --header-height: 74px; }
  body { font-size: 15px; }
  .container { width: min(100% - 30px, var(--container)); }
  .section { padding: 86px 0; }
  .site-header { background: rgba(7, 10, 22, 0.84); backdrop-filter: blur(18px); }
  .brand img { width: 142px; }
  .header-actions { gap: 14px; }
  .login-link { display: none; }
  .hero { padding-top: 20px; padding-bottom: 56px; }
  .hero h1 { font-size: clamp(43px, 13vw, 68px); }
  .hero-lead { font-size: 16px; }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .hero-notes { gap: 10px 15px; }
  .hero-product { margin-top: 4px; }
  .dashboard-window { grid-template-columns: 1fr; min-height: auto; }
  .dashboard-sidebar { display: none; }
  .dashboard-main { padding: 16px; }
  .dashboard-topbar { align-items: center; }
  .dashboard-filters span:first-child { display: none; }
  .dashboard-stats { grid-template-columns: 1fr 1fr; }
  .dashboard-stats article:nth-child(4) { display: none; }
  .dashboard-stats article:first-child { display: none; }
  .keyword-head,
  .keyword-row { grid-template-columns: minmax(110px, 1fr) 46px 62px; gap: 8px; padding: 9px 12px; }
  .keyword-head > :nth-child(3),
  .keyword-row > em { display: none; }
  .orbit { left: -280px; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-grid article { min-height: 102px; }
  .proof-grid article + article { border-left: 0; border-top: 1px solid var(--line); }
  .section-heading.split { display: block; }
  .section-heading h2,
  .pricing-copy h2,
  .final-cta h2 { font-size: clamp(35px, 10vw, 50px); }
  .section-heading > p,
  .section-heading.split > p,
  .pricing-copy > p,
  .case-info > p { font-size: 15px; }
  .compare-grid { grid-template-columns: 1fr; }
  .compare-card { min-height: 430px; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card { min-height: 220px; }
  .step-card::after { display: none; }
  .pricing-wrap { gap: 38px; padding: 25px; border-radius: 24px; }
  .calculator { padding: 20px; }
  .calculator-top { display: block; }
  .calc-status { width: max-content; margin-top: 12px; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 205px; }
  .case-card { padding: 24px; border-radius: 23px; }
  .case-metrics { grid-template-columns: 1fr; }
  .case-chart { padding: 12px; }
  .chart-head { display: block; }
  .chart-head b { display: block; margin-top: 4px; }
  .faq-list summary { font-size: 15px; }
  .final-cta { min-height: 430px; padding: 34px 26px; border-radius: 24px; }
  .final-cta .button { width: 100%; }
  .final-ring { right: -180px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-column:last-child { grid-column: auto; }
}

@media (max-width: 460px) {
  .hero h1 { font-size: 42px; }
  .hero-notes { display: grid; }
  .dashboard-topbar strong { font-size: 14px; }
  .dashboard-filters { display: none; }
  .zero-share > small { display: none; }
  .keyword-row { font-size: 10px; }
  .position-options { grid-template-columns: 1fr 1fr; }
  .position-button { min-height: 84px; padding: 12px; }
  .position-button strong { font-size: 23px; }
  .calculator-result { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-column:last-child { grid-column: auto; }
  .footer-bottom { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Шапка при прокрутке и витрина кейсов (29.09.2026)
   ========================================================================== */

/* Шапка при прокрутке (29.09.2026, как на deltalab.ru): обычная шапка стоит в потоке и уходит вместе с первым
   экраном. Плавающая — отдельная копия, созданная main.js: всегда position:fixed и спрятана за верхним краем,
   поэтому её появление идёт с переходом (смена position у самой шапки переход в Chrome срывает). */
.site-header.header-float {
  position: fixed;
  z-index: 101;
  inset: 0 0 auto;
  opacity: 0;
  border-bottom-color: var(--line);
  background: rgba(7, 10, 22, 0.82);
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.36);
  pointer-events: none;
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease-out;
}

.site-header.header-float.is-shown {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .site-header.header-float { transition: none; }
}

/* Витрина кейсов: карточка со скриншотом сайта, нишей и парой фактов. */
/* Витрина кейсов (29.09.2026): семь отчётов по позициям одинаковыми плитками — четыре в ряд и три по центру,
   по клику отчёт открывается крупнее (лайтбокс ниже). */
.cases-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  margin-top: 54px;
}

.case-tile {
  display: flex;
  overflow: hidden;
  flex: 0 0 calc((100% - 66px) / 4);
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(155deg, rgba(21, 29, 52, 0.92), rgba(10, 15, 32, 0.96));
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.case-tile:hover {
  border-color: var(--line-strong);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.36);
  transform: translateY(-4px);
}

.case-shot {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  padding: 0;
  aspect-ratio: 16 / 10;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #f4f6fb;
  color: inherit;
  font: inherit;
  cursor: zoom-in;
}

.case-shot:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: -3px;
}

.case-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  transition: transform 0.4s ease;
}

.case-tile:hover .case-shot img {
  transform: scale(1.03);
}

.case-niche {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 99px;
  background: rgba(7, 10, 22, 0.78);
  backdrop-filter: blur(8px);
  color: #cfc6ff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.case-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 20px 20px;
}

.case-body h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.case-result {
  margin: 6px 0 0;
  color: var(--violet-light);
  font-size: 14px;
  font-weight: 700;
}

.case-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: auto 0 0;
  padding-top: 16px;
}

.case-facts > div {
  padding-top: 10px;
  border-top: 2px solid var(--violet);
}

.case-facts dt {
  color: var(--muted-2);
  font-size: 12px;
}

.case-facts dd {
  margin: 3px 0 0;
  font-size: 16px;
  font-weight: 700;
}

.cases-note {
  margin: 22px 0 0;
  color: var(--muted-2);
  font-size: 13px;
  text-align: center;
}

.cases-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 40px 0 64px;
  flex-wrap: wrap;
}

.cases-cta span {
  color: var(--muted);
  font-size: 14px;
}

/* Лайтбокс отчёта: нативный <dialog>, фон затемняется ::backdrop, прокрутка страницы под ним замирает. */
.lightbox {
  max-width: min(1200px, 94vw);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: #0d1327;
  color: var(--white);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}

.lightbox::backdrop {
  background: rgba(3, 5, 12, 0.82);
  backdrop-filter: blur(6px);
}

.lightbox figure {
  margin: 0;
}

.lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 82vh;
  margin: 0 auto;
  background: #fff;
}

.lightbox figcaption {
  padding: 14px 18px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(7, 10, 22, 0.75);
  color: #fff;
  cursor: pointer;
  font-size: 15px;
}

body:has(.lightbox[open]) {
  overflow: hidden;
}

/* Тарифы (29.09.2026, блок по образцу seokey.ru): три карточки, средняя выделена обводкой. */
.tariffs-section {
  padding-top: 0;
}

.tariffs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tariff {
  display: flex;
  flex-direction: column;
  padding: 34px 30px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(155deg, rgba(21, 29, 52, 0.92), rgba(10, 15, 32, 0.96));
  text-align: center;
}

.tariff.is-featured {
  border-color: rgba(126, 103, 255, 0.7);
  box-shadow: 0 0 0 1px rgba(126, 103, 255, 0.35), 0 30px 80px rgba(0, 0, 0, 0.35), 0 0 60px rgba(108, 92, 231, 0.14);
}

.tariff h3 {
  min-height: 2.5em;
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.tariff > p {
  min-height: 3.1em;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.tariff-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin: 26px 0 22px;
}

.tariff-price small,
.tariff-price span {
  color: var(--muted);
  font-size: 18px;
}

.tariff-price strong {
  font-size: clamp(38px, 3.2vw, 48px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
}

.tariff .button {
  width: 100%;
}

.tariff-note {
  display: block;
  margin-top: 12px;
  color: var(--muted-2);
  font-size: 13px;
}

.tariff .check-list {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: left;
}

.tariffs-footnote {
  max-width: 720px;
  margin: 26px auto 0;
  color: var(--muted-2);
  font-size: 14px;
  text-align: center;
}

/* Разбор результата под витриной — тот же заголовочный размер, что был у h2. */
.case-info h3 {
  margin: 18px 0 0;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.13;
}

.calculator-cta {
  width: 100%;
  margin-top: 22px;
}

@media (max-width: 1200px) {
  .case-tile { flex-basis: calc((100% - 22px) / 2); }
  .tariffs-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .tariff h3,
  .tariff > p { min-height: 0; }
}

@media (max-width: 720px) {
  .cases-grid { gap: 20px; }
  .case-tile { flex-basis: 100%; }
  .tariff { padding: 28px 22px 26px; }
  .case-body { padding: 20px; }
  .cases-cta { flex-direction: column; gap: 14px; margin-bottom: 44px; }
  .cases-cta .button { width: 100%; }
}

/* Правило сайта (29.09.2026, перенесено с deltalab.ru): текст первого экрана каждой страницы появляется строками
   друг за другом — класс rise на контейнере с заголовочным текстом (первые шесть прямых потомков по очереди),
   rise-block — соседний блок целиком. Ниже первого экрана работает reveal по прокрутке, их не смешивать. */
@media (prefers-reduced-motion: no-preference) {
  .rise > :nth-child(-n + 6) {
    animation: hero-rise 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .rise > :nth-child(2) { animation-delay: 0.1s; }
  .rise > :nth-child(3) { animation-delay: 0.2s; }
  .rise > :nth-child(4) { animation-delay: 0.3s; }
  .rise > :nth-child(5) { animation-delay: 0.4s; }
  .rise > :nth-child(6) { animation-delay: 0.5s; }

  .rise-block {
    animation: hero-rise 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) both 0.35s;
  }

  @keyframes hero-rise {
    from {
      opacity: 0;
      transform: translateY(18px);
    }
  }
}

/* ==========================================================================
   Переключатель темы (29.09.2026): тёмная — по умолчанию, светлая — data-theme="light"
   на <html>. Тема ставится инлайн-скриптом до отрисовки, дальше ею управляет main.js.
   ========================================================================== */

.theme-toggle {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(13, 18, 37, 0.72);
  color: var(--white);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.theme-toggle svg {
  width: 19px;
  height: 19px;
}

.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* --------------------------------------------------------- Светлая тема */

:root[data-theme="light"] {
  --night: #f4f6fc;
  --night-2: #eaeef8;
  --panel: #ffffff;
  --panel-2: #f2f5fc;
  --white: #0f172a;
  --muted: #55607a;
  --muted-2: #79839b;
  --line: rgba(15, 23, 42, 0.12);
  --line-strong: rgba(108, 92, 231, 0.32);
  --violet-soft: rgba(108, 92, 231, 0.09);
  --shadow: 0 26px 60px rgba(15, 23, 42, 0.12);
}

:root[data-theme="light"] body {
  background:
    radial-gradient(circle at 84% 4%, rgba(108, 92, 231, 0.10), transparent 32%),
    radial-gradient(circle at 6% 26%, rgba(79, 124, 255, 0.07), transparent 28%),
    var(--night);
}

:root[data-theme="light"] .site-header.header-float {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
}

:root[data-theme="light"] .mobile-nav,
:root[data-theme="light"] .theme-toggle,
:root[data-theme="light"] .button-secondary {
  background: #ffffff;
}

:root[data-theme="light"] .button-secondary:hover {
  background: rgba(108, 92, 231, 0.07);
}

/* Светлая кнопка на светлом фоне нечитаема — делаем её тёмной. */
:root[data-theme="light"] .button-light {
  background: linear-gradient(135deg, #5135d6, #7c67ff);
  color: #ffffff;
}

/* Карточки и панели: вместо тёмных градиентов — белый лист с мягкой тенью. */
:root[data-theme="light"] .compare-card,
:root[data-theme="light"] .step-card,
:root[data-theme="light"] .calculator,
:root[data-theme="light"] .pricing-wrap,
:root[data-theme="light"] .feature-card,
:root[data-theme="light"] .case-card,
:root[data-theme="light"] .case-tile,
:root[data-theme="light"] .faq-list details,
:root[data-theme="light"] .proof-grid article,
:root[data-theme="light"] .position-button,
:root[data-theme="light"] .rate-field .input-wrap,
:root[data-theme="light"] .calc-status {
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
}

:root[data-theme="light"] .position-button.active {
  background: linear-gradient(145deg, rgba(108, 92, 231, 0.16), rgba(255, 255, 255, 0.96));
}

:root[data-theme="light"] .case-shot {
  background: var(--panel-2);
}

:root[data-theme="light"] .tariff {
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
}

:root[data-theme="light"] .tariff.is-featured {
  box-shadow: 0 0 0 1px rgba(108, 92, 231, 0.35), 0 24px 60px rgba(15, 23, 42, 0.12);
}

:root[data-theme="light"] .lightbox {
  background: #ffffff;
  color: #0f172a;
}

:root[data-theme="light"] .lightbox-close {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.15);
  color: #0f172a;
}

:root[data-theme="light"] .case-niche {
  background: rgba(255, 255, 255, 0.92);
  color: #4d36c7;
}

/* Подложки секций: на светлом фоне тёмные градиенты не нужны. */
:root[data-theme="light"] .compare-section,
:root[data-theme="light"] .features-section,
:root[data-theme="light"] .proof-strip {
  background: none;
}

:root[data-theme="light"] .proof-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

:root[data-theme="light"] .hero-glow,
:root[data-theme="light"] .final-ring,
:root[data-theme="light"] .muted-ring {
  opacity: 0.55;
}

:root[data-theme="light"] .demo-badge,
:root[data-theme="light"] .check-list li span,
:root[data-theme="light"] .feature-icon {
  background: rgba(108, 92, 231, 0.1);
  color: #4d36c7;
}

:root[data-theme="light"] .site-footer {
  border-top: 1px solid var(--line);
}

/* Тексты, у которых цвет задан светлым напрямую (не переменной). */
:root[data-theme="light"] .check-list {
  color: var(--muted);
}

:root[data-theme="light"] .faq-list summary {
  color: var(--white);
}

/* Финальный блок остаётся фиолетовым, поэтому текст на нём — светлый. */
:root[data-theme="light"] .final-cta {
  color: #ffffff;
}

:root[data-theme="light"] .final-cta p {
  color: rgba(255, 255, 255, 0.82);
}

/* Макет кабинета в первом экране остаётся тёмным намеренно: это снимок продукта. */

/* Логотип: в тёмной теме выворотка, в светлой — основной вариант. */
.logo-primary { display: none; }
:root[data-theme="light"] .logo-reverse { display: none; }
:root[data-theme="light"] .logo-primary { display: block; }

:root[data-theme="light"] .desktop-nav a,
:root[data-theme="light"] .login-link,
:root[data-theme="light"] .mobile-nav a {
  color: var(--muted);
}

:root[data-theme="light"] .desktop-nav a:hover,
:root[data-theme="light"] .login-link:hover {
  color: var(--white);
}

/* Макет кабинета остаётся тёмным и в светлой теме — это снимок продукта,
   поэтому внутри него возвращаем тёмные значения переменных. */
:root[data-theme="light"] .dashboard-window {
  color: #f2f4f8;
  --white: #f2f4f8;
  --muted: #9ca6bc;
  --muted-2: #6f7991;
  --line: rgba(177, 188, 220, 0.16);
  --line-strong: rgba(139, 124, 255, 0.34);
  --panel: #10172a;
  --panel-2: #151d34;
  --night: #070a16;
}

/* ==========================================================================
   Демонстрация кабинета в первом экране (29.09.2026): main.js проигрывает по кругу сценарий
   «сняли позиции → запросы вошли в ТОП-10 → начислено за день, ниже ТОП-10 — 0 ₽».
   В разметке лежит итоговое состояние: без JS и при prefers-reduced-motion макет статичен.
   ========================================================================== */
.dashboard-status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 10.5px;
  white-space: nowrap;
}

.dashboard-status i {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #7e89a2;
  transition: background-color 0.3s ease;
}

.dashboard-status.is-done i {
  background: var(--green);
  box-shadow: 0 0 10px rgba(85, 222, 120, 0.6);
}

.dashboard-status.is-scanning {
  color: #c5cbda;
}

.dashboard-status.is-scanning i {
  background: var(--violet-light);
  animation: status-pulse 0.9s ease-in-out infinite;
}

.keyword-row {
  transition: opacity 0.3s ease;
}

.keyword-row b {
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.keyword-row b.is-zero,
.keyword-row b.is-idle,
.keyword-row em.is-idle {
  color: var(--muted-2);
  font-weight: 500;
}

.keyword-row strong {
  transition: background-color 0.35s ease, color 0.35s ease;
}

.keyword-row strong.is-out {
  background: rgba(177, 188, 220, 0.09);
  color: #9ca6bc;
}

.keyword-row strong.is-pop {
  animation: badge-pop 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.keyword-scan {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 42%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--violet-light), transparent);
  opacity: 0;
  pointer-events: none;
}

.keyword-table.is-scanning .keyword-scan {
  opacity: 1;
  animation: scan-sweep 1.1s ease-in-out infinite;
}

.keyword-table.is-scanning .keyword-row {
  opacity: 0.68;
}

.zero-card {
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.zero-card.is-pulse {
  border-color: rgba(154, 133, 255, 0.85);
  box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.14), 0 0 40px rgba(108, 92, 231, 0.18);
}

[data-demo-top10],
[data-demo-top3],
[data-demo-total],
[data-demo-share],
.dashboard-stats em,
.keyword-row strong,
.keyword-row em,
.keyword-row b {
  transition: opacity 0.35s ease, background-color 0.35s ease, color 0.35s ease;
}

.is-resetting :is([data-demo-top10], [data-demo-top3], [data-demo-total], [data-demo-share], .dashboard-stats em, .keyword-row strong, .keyword-row em, .keyword-row b) {
  opacity: 0.12;
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

@keyframes scan-sweep {
  from { transform: translateX(-100%); }
  to { transform: translateX(240%); }
}

@keyframes badge-pop {
  0% { transform: scale(0.7); box-shadow: 0 0 0 0 rgba(85, 222, 120, 0.45); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); box-shadow: 0 0 0 8px rgba(85, 222, 120, 0); }
}

/* Короткие окна ноутбуков: кнопка «Попробовать бесплатно» остаётся в первом экране. */
@media (min-width: 1021px) and (max-height: 700px) {
  .hero { padding-top: 12px; }
  .hero h1 { margin: 12px 0 14px; font-size: clamp(40px, 4.1vw, 62px); }
  .hero-lead { font-size: 16px; line-height: 1.55; }
  .hero-actions { margin-top: 20px; }
}
