/* Лендинг «Оцени.ру». Сдержанная технологичность: белый, светло-серый, графит и один синий акцент.
   Сначала телефон, расширения для планшета и ноутбука — в конце файла. */
@import url("/static/fonts.css");

:root {
  --white: #ffffff;
  --surface: #f5f6f8;
  --graphite: #22252a;
  --blue: #4c6fff;
  /* производные от четырёх основных */
  --blue-hover: #3d5ce6;
  --blue-tint: #eef1ff;
  --muted: #6e7480;
  --line: #e3e5ea;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--graphite);
  font-family: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.wrap-narrow {
  max-width: 780px;
}

mark {
  padding: 1px 5px;
  border-radius: 4px;
  background: #fff1b8;
  color: var(--graphite);
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

.btn-primary,
.btn-small {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover,
.btn-small:hover {
  background: var(--blue-hover);
}

.btn-ghost {
  border-color: var(--line);
  background: var(--white);
  color: var(--graphite);
}

.btn-ghost:hover {
  border-color: var(--graphite);
}

.btn-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 15px;
}

.btn-wide {
  width: 100%;
}

/* Шапка */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

/* Логотип: три волны НФС и название строчными, «.ру» — синим */
.logo-waves {
  fill: none;
  stroke: var(--blue);
  stroke-width: 3.8;
  stroke-linecap: round;
}

.brand-name {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-zone {
  color: var(--blue);
}

.nav-links {
  display: none;
}

/* Первый экран */
.hero {
  padding: 40px 0 56px;
}

h1 {
  font-size: clamp(32px, 8.4vw, 56px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-sub {
  max-width: 34em;
  margin-top: 20px;
  color: var(--muted);
  font-size: 18px;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
}

.hero-note {
  max-width: 34em;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

/* Картинка первого экрана: телефон гостя со страницей оценки и две всплывающие карточки —
   куда уходит низкая оценка и куда высокая. Нарисовано вёрсткой, без изображений. */
.scene {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-top: 40px;
  padding: 28px 16px 20px;
  border-radius: 28px;
  background: linear-gradient(160deg, var(--blue-tint), var(--surface) 70%);
}

/* Телефон в полный рост: пропорции настоящего, экран заполнен «страницей оценки» */
.phone {
  display: flex;
  flex-direction: column;
  width: 196px;
  height: 404px;
  padding: 10px 14px 8px;
  border: 7px solid var(--graphite);
  border-radius: 36px;
  background: var(--white);
  box-shadow: 0 24px 48px rgba(34, 37, 42, 0.16);
}

.phone-island {
  flex: none;
  width: 58px;
  height: 17px;
  margin: 0 auto 30px;
  border-radius: 999px;
  background: var(--graphite);
}

.phone-venue {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: var(--blue-tint);
}

.phone-venue svg {
  width: 17px;
  height: 25px;
  /* волны сдвинуты в рисунке влево — выравниваем значок по центру квадрата на глаз */
  margin-left: 3px;
}

.phone-question {
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

.phone-stars {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin: 14px 0 26px;
}

.phone-star {
  width: 26px;
  height: 26px;
  fill: #f5b301;
}

/* заготовки вместо текста: поле комментария, строки и кнопка */
.phone-field {
  height: 64px;
  border-radius: 12px;
  background: var(--surface);
}

.phone-line {
  width: 72%;
  height: 8px;
  margin: 12px auto 0;
  border-radius: 4px;
  background: var(--surface);
}

.phone-line + .phone-line {
  width: 48%;
  margin-top: 8px;
}

.phone-button {
  height: 36px;
  margin-top: 22px;
  border-radius: 999px;
  background: var(--blue);
}

.phone-home {
  width: 64px;
  height: 4px;
  margin: auto auto 0;
  border-radius: 2px;
  background: var(--graphite);
}

.bubble {
  width: 100%;
  max-width: 300px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(34, 37, 42, 0.1);
}

.bubble-range {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
}

.bubble-top .bubble-range {
  background: var(--blue);
  color: var(--white);
}

.bubble-title {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.bubble-message {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.bubble-message-title {
  color: var(--graphite);
  font-weight: 600;
}

/* Разделы */
.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--surface);
}

h2 {
  margin-bottom: 28px;
  font-size: clamp(26px, 6vw, 38px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* Как это работает: три шага подряд, номер — часть содержания */
.steps {
  display: grid;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Картинка шага: мягкая плитка, внутри — маленькая сцена из тех же деталей, что на первом экране */
.step-art {
  position: relative;
  display: grid;
  place-items: center;
  height: 190px;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(160deg, var(--blue-tint), var(--surface) 72%);
}

.art-card {
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 1px 0 var(--white), 0 12px 30px rgba(34, 37, 42, 0.1);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* 1. Телефон подносят к табличке */
.art-tap {
  position: relative;
  width: 150px;
  height: 130px;
}

.art-plate {
  position: absolute;
  left: 8px;
  bottom: 6px;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: inset 0 1px 0 var(--white), 0 12px 30px rgba(34, 37, 42, 0.12);
}

.art-plate svg {
  width: 24px;
  height: 35px;
  margin-left: 4px;
}

.art-phone {
  position: absolute;
  top: 0;
  right: 14px;
  width: 54px;
  height: 104px;
  border: 5px solid var(--graphite);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 14px 28px rgba(34, 37, 42, 0.18);
  transform: rotate(14deg);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.art-phone::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 16px;
  height: 5px;
  margin-left: -8px;
  border-radius: 3px;
  background: var(--graphite);
}

.art-ring {
  position: absolute;
  left: 50px;
  bottom: 48px;
  width: 0;
  height: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--blue);
  opacity: 0;
  animation: art-ring 2.8s ease-out infinite;
}

.art-ring + .art-ring {
  animation-delay: 1.4s;
}

@keyframes art-ring {
  0% {
    opacity: 0.55;
    transform: scale(1);
    padding: 20px;
    margin: -20px;
  }

  100% {
    opacity: 0;
    padding: 78px;
    margin: -78px;
  }
}

/* 2. Карточка с вопросом и звёздами, пятая «нажата» */
.art-rate {
  position: relative;
  padding: 16px 18px 18px;
  text-align: center;
}

.art-rate p {
  color: var(--graphite);
  font-size: 15px;
  font-weight: 600;
}

.art-stars {
  display: flex;
  gap: 3px;
  margin-top: 10px;
}

.art-star {
  width: 26px;
  height: 26px;
  fill: #f5b301;
}

.art-touch {
  position: absolute;
  right: 9px;
  bottom: 9px;
  width: 44px;
  height: 44px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  background: rgba(76, 111, 255, 0.14);
  animation: art-touch 2.4s ease-in-out infinite;
}

@keyframes art-touch {
  0%,
  100% {
    transform: scale(0.82);
    opacity: 0.5;
  }

  50% {
    transform: scale(1);
    opacity: 1;
  }
}

/* 3. Два пути: высокая оценка — на карты, остальное — владельцу */
.art-split {
  display: grid;
  gap: 12px;
  width: 190px;
}

.art-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  padding: 10px 16px 10px 12px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
}

.art-chip svg {
  flex: none;
  width: 24px;
  height: 24px;
}

.art-chip-top {
  justify-self: end;
  background: var(--blue);
  border-color: transparent;
  color: var(--white);
  box-shadow: 0 12px 28px rgba(76, 111, 255, 0.32);
}

.art-chip-top .art-fill {
  fill: var(--white);
}

.art-chip-top .art-hole {
  fill: var(--blue);
}

.art-chip-low {
  justify-self: start;
  color: var(--graphite);
}

.art-stroke {
  fill: none;
  stroke: var(--graphite);
  stroke-width: 2;
  stroke-linejoin: round;
}

/* микродвижения под курсором */
@media (hover: hover) {
  .step:hover {
    transform: translateY(-4px);
  }

  .step:hover .art-phone {
    transform: rotate(6deg) translate(-8px, 6px);
  }

  .step:hover .art-rate {
    transform: scale(1.05);
  }

  .step:hover .art-chip-top {
    transform: translateX(8px);
  }

  .step:hover .art-chip-low {
    transform: translateX(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .art-ring,
  .art-touch {
    animation: none;
  }

  .step,
  .art-card,
  .art-phone {
    transition: none;
  }
}

.step h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.step-num {
  flex: none;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

.step p,
.benefit p {
  color: var(--muted);
}

/* Что получает владелец: список с линейками, без карточек */
.benefits {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefit {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.benefit h3 {
  margin-bottom: 6px;
}

/* Демо: единственный тёмный блок на странице */
.demo-band {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 28px 22px;
  border-radius: 20px;
  background: var(--graphite);
  color: var(--white);
}

.demo-band h2 {
  margin-bottom: 8px;
}

.demo-band p {
  max-width: 34em;
  color: rgba(255, 255, 255, 0.72);
}

/* Цены */
.plans {
  display: grid;
  gap: 16px;
}

.plan {
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.plan-kind {
  color: var(--muted);
  font-size: 14px;
}

.plan h3 {
  margin-top: 2px;
  font-size: 24px;
}

.plan-price {
  margin: 14px 0 18px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.plan-price span {
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
}

.plan ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan li {
  position: relative;
  padding: 9px 0 9px 22px;
  border-top: 1px solid var(--line);
  font-size: 16px;
}

.plan li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 17px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

/* Выделенный тариф: синяя рамка и метка */
.plan-best {
  position: relative;
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
}

.plan-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
}

/* Тариф «в разработке»: серая карточка, функции закрашены */
.plan-soon {
  border-style: dashed;
  background: transparent;
  color: var(--muted);
}

.plan-soon-label {
  display: inline-block;
  margin: 14px 0 18px;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--line);
  color: var(--graphite);
  font-size: 15px;
  font-weight: 500;
  line-height: 30px;
}

.plan-soon li::before {
  background: var(--line);
}

.redact {
  display: block;
  width: 78%;
  height: 12px;
  margin: 6px 0;
  border-radius: 4px;
  background: var(--line);
}

.plan-soon li:nth-child(2n) .redact {
  width: 56%;
}

.plan-soon li:nth-child(3n) .redact {
  width: 88%;
}

.plans-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
}

/* Вопросы */
.faq {
  border-bottom: 1px solid var(--line);
}

.faq:first-of-type {
  border-top: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding: 18px 40px 18px 0;
  font-size: 18px;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 24px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.15s;
}

.faq[open] summary::after {
  transform: translateY(4px) rotate(-135deg);
}

.faq p {
  max-width: 38em;
  padding: 0 0 20px;
  color: var(--muted);
}

/* Заявка */
.section-dark {
  background: var(--surface);
}

.lead-grid {
  display: grid;
  gap: 28px;
}

.lead-text > p {
  max-width: 30em;
  color: var(--muted);
}

.contacts {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.contacts p {
  margin-top: 4px;
}

.contacts a {
  color: var(--blue);
  text-decoration: none;
}

.contacts-title,
.contacts .muted {
  color: var(--muted);
  font-size: 14px;
}

.lead-form {
  padding: 24px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.lead-form label {
  display: block;
  margin: 14px 0 6px;
  font-size: 14px;
  font-weight: 500;
}

.lead-form label:first-of-type {
  margin-top: 0;
}

.lead-form input[type="text"],
.lead-form select,
.lead-form textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--graphite);
  /* не меньше 16 px, иначе iPhone приближает страницу при вводе */
  font: inherit;
}

.lead-form textarea {
  resize: vertical;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: var(--blue);
  outline: 3px solid var(--blue-tint);
  outline-offset: 0;
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

/* Поле-ловушка для спам-программ: убрано с экрана, но остаётся в форме */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lead-form .consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.consent input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--blue);
}

.consent a {
  color: var(--blue);
}

.alert {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fdecec;
  color: #a12020;
  font-size: 15px;
}

.lead-done {
  /* После отправки подтверждение стоит первым: на телефоне его видно сразу, без прокрутки */
  order: -1;
}

.lead-done h3 {
  margin-bottom: 6px;
  font-size: 22px;
}

.lead-done p {
  color: var(--muted);
}

/* …и страница открывается на нём мгновенно, а не плавно едет через весь лендинг */
html:has(.lead-done) {
  scroll-behavior: auto;
}

.done-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 26px;
  line-height: 48px;
  text-align: center;
}

/* Подвал */
.footer {
  padding: 24px 0 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer strong {
  color: var(--graphite);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .faq summary::after {
    transition: none;
  }
}

/* Планшет и ноутбук */
@media (min-width: 760px) {
  .wrap {
    padding: 0 32px;
  }

  .nav-links {
    display: flex;
    gap: 28px;
    font-size: 15px;
  }

  .nav-links a {
    color: var(--muted);
    text-decoration: none;
  }

  .nav-links a:hover {
    color: var(--graphite);
  }

  .hero {
    padding: 72px 0 88px;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 56px;
  }

  .hero-sub {
    font-size: 20px;
  }

  .actions {
    flex-direction: row;
  }

  .scene {
    margin-top: 0;
  }

  .section {
    padding: 88px 0;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  .benefits {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 48px;
  }

  .plans {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }

  /* Вопросы: заголовок слева, список справа — та же левая ось, что у всей страницы */
  #faq .wrap {
    display: grid;
    grid-template-columns: 1fr 2fr;
    column-gap: 56px;
    max-width: 1120px;
  }

  #faq h2 {
    grid-row: 1 / span 20;
  }

  #faq .faq {
    grid-column: 2;
  }

  .demo-band {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 44px 48px;
  }

  .lead-grid {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
  }

  .lead-form {
    padding: 32px;
  }

  .footer-row {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Кликабельные элементы: мягкие округлые формы, плавный отклик на наведение и нажатие */
.btn {
  border-radius: 999px;
  padding: 0 28px;
  letter-spacing: -0.01em;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.2s cubic-bezier(0.25, 0.1, 0.25, 1),
    box-shadow 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-small {
  padding: 0 18px;
}

.btn-primary:hover,
.btn-small:hover {
  box-shadow: 0 6px 20px rgba(76, 111, 255, 0.28);
}

.btn:active {
  transform: scale(0.97);
  box-shadow: none;
}

.btn-ghost:hover {
  border-color: var(--line);
  background: var(--surface);
}

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(76, 111, 255, 0.3);
  border-radius: 8px;
}

.btn:focus-visible {
  border-radius: 999px;
}

/* Ссылки меню и подвала: спокойная смена цвета */
.nav-links a,
.footer-links a,
.brand {
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--graphite);
}

.brand:hover {
  opacity: 0.75;
}

.contacts a:hover,
.consent a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Вопросы: строка откликается целиком */
.faq summary {
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.faq summary:hover {
  color: var(--blue);
}

.faq summary:hover::after {
  border-color: var(--blue);
}

.faq summary::after {
  transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), border-color 0.2s ease;
}

/* Поля формы: крупнее радиус, мягкое синее свечение при вводе */
.lead-form input[type="text"],
.lead-form select,
.lead-form textarea {
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lead-form input[type="text"]:hover,
.lead-form select:hover,
.lead-form textarea:hover {
  border-color: #c9cdd6;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 4px rgba(76, 111, 255, 0.18);
}

.consent input {
  cursor: pointer;
}

.lead-form .consent {
  cursor: pointer;
}

/* Карточки тарифов слегка приподнимаются под курсором */
.plan {
  transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.3s ease;
}

@media (hover: hover) {
  .plan:not(.plan-soon):hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(34, 37, 42, 0.08);
  }

  .plan.plan-best:hover {
    box-shadow: inset 0 0 0 1px var(--blue), 0 12px 32px rgba(76, 111, 255, 0.16);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .plan,
  .faq summary::after {
    transition: none;
  }

  .btn:active,
  .plan:hover {
    transform: none;
  }
}

/* Логотип в шапке: крупнее на ноутбуке, на телефоне — насколько позволяет место рядом с кнопкой */
.brand {
  gap: 9px;
  font-size: 25px;
}

.brand svg {
  width: 21px;
  height: 30px;
}

@media (min-width: 760px) {
  .brand {
    gap: 11px;
    font-size: 30px;
  }

  .brand svg {
    width: 25px;
    height: 36px;
  }
}

/* Широкий экран: карточки висят по бокам телефона — правая выше, левая ниже. Каждая заходит на
   корпус на одинаковые 20 px (рамка и поле экрана), поэтому содержимое экрана не закрывает. */
@media (min-width: 1100px) {
  .scene {
    display: block;
    margin-top: 0;
    padding: 34px 0;
  }

  .phone {
    margin: 0 auto;
  }

  .bubble {
    position: absolute;
    width: 184px;
  }

  .bubble-top {
    top: 96px;
    left: calc(50% + 78px);
  }

  .bubble-low {
    bottom: 76px;
    right: calc(50% + 78px);
  }
}

/* Шапка-«остров»: округлая плашка, которая висит над страницей с отступом от краёв */
.nav {
  top: 10px;
  width: min(100% - 20px, 1176px);
  margin: 10px auto 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  /* «жидкое стекло»: почти прозрачная плашка, фон под ней размыт и чуть ярче; светлый блик сверху,
     тонкая тень по нижней кромке — так стекло читается и на белом, и на тёмном блоке */
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.28));
  backdrop-filter: blur(22px) saturate(1.9) brightness(1.06);
  -webkit-backdrop-filter: blur(22px) saturate(1.9) brightness(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(34, 37, 42, 0.06),
    0 0 0 1px rgba(34, 37, 42, 0.06),
    0 10px 32px rgba(34, 37, 42, 0.12);
}

/* браузер не умеет размывать фон — оставляем плашку плотной, иначе текст под ней будет мешать */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav {
    background: rgba(255, 255, 255, 0.94);
  }
}

.nav .nav-row {
  height: 56px;
  padding: 0 8px 0 18px;
}

html {
  scroll-padding-top: 84px;
}

@media (min-width: 760px) {
  .nav {
    top: 14px;
    margin-top: 14px;
  }

  .nav .nav-row {
    height: 62px;
    padding: 0 11px 0 26px;
  }
}

/* «Жидкое стекло» там, где под элементом есть что размывать. Под карточками тарифов и формой
   заявки для этого лежат мягкие синие пятна; сами карточки — полупрозрачные, с бликом по
   верхней кромке. Цвет пятен — производная от акцентного синего, новых цветов нет. */
#pricing,
#lead {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

#pricing::before,
#lead::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(38% 46% at 16% 30%, rgba(76, 111, 255, 0.2), transparent 70%),
    radial-gradient(34% 44% at 86% 72%, rgba(76, 111, 255, 0.16), transparent 70%),
    radial-gradient(26% 36% at 58% 12%, rgba(76, 111, 255, 0.1), transparent 70%);
}

#lead::before {
  transform: scaleX(-1);
}

.plan:not(.plan-soon),
.lead-form,
.bubble {
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.46));
  backdrop-filter: blur(20px) saturate(1.7);
  -webkit-backdrop-filter: blur(20px) saturate(1.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 0 0 1px rgba(34, 37, 42, 0.05),
    0 14px 36px rgba(34, 37, 42, 0.08);
}

/* выделенный тариф сохраняет синюю рамку поверх стекла */
.plan.plan-best {
  border-color: var(--blue);
  box-shadow:
    inset 0 0 0 1px var(--blue),
    inset 0 2px 0 rgba(255, 255, 255, 0.9),
    0 14px 36px rgba(76, 111, 255, 0.14);
}

@media (hover: hover) {
  .plan:not(.plan-soon):hover {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.95),
      0 0 0 1px rgba(34, 37, 42, 0.05),
      0 22px 48px rgba(34, 37, 42, 0.12);
  }

  .plan.plan-best:hover {
    box-shadow:
      inset 0 0 0 1px var(--blue),
      inset 0 2px 0 rgba(255, 255, 255, 0.9),
      0 22px 48px rgba(76, 111, 255, 0.2);
  }
}

/* поля формы на стекле — чуть прозрачные, чтобы не выглядеть заплатками */
.lead-form input[type="text"],
.lead-form select,
.lead-form textarea {
  background: rgba(255, 255, 255, 0.78);
}

/* тёмный блок демо: кнопка-стекло была бы нечитаемой, поэтому стеклянной делаем только кромку */
.demo-band {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 18px 44px rgba(34, 37, 42, 0.18);
}

/* нет размытия фона — возвращаем плотные карточки */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .plan:not(.plan-soon),
  .lead-form,
  .bubble {
    background: var(--white);
  }
}

/* Плашки у телефона живые: сами едва заметно «плавают», а под курсором приподнимаются и чуть
   поворачиваются. Плавание идёт через translate, отклик — через transform, поэтому не спорят. */
.bubble {
  animation: bubble-float 7s ease-in-out infinite alternate;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.45s ease;
  will-change: transform;
}

.bubble-low {
  animation-duration: 8.5s;
  animation-delay: -3s;
}

@keyframes bubble-float {
  from {
    translate: 0 -4px;
  }

  to {
    translate: 0 5px;
  }
}

@media (hover: hover) {
  .bubble:hover {
    transform: translateY(-6px) rotate(1.4deg) scale(1.035);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.95),
      0 0 0 1px rgba(34, 37, 42, 0.05),
      0 24px 48px rgba(34, 37, 42, 0.16);
  }

  .bubble-low:hover {
    transform: translateY(-6px) rotate(-1.4deg) scale(1.035);
  }

  /* тёмный блок демо тоже откликается: слегка приподнимается */
  .demo-band {
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.45s ease;
  }

  .demo-band:hover {
    transform: translateY(-3px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 26px 56px rgba(34, 37, 42, 0.26);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bubble {
    animation: none;
    transition: none;
  }

  .bubble:hover,
  .demo-band:hover {
    transform: none;
  }
}

/* Подвал — графитовый, как блок демо: страница заканчивается плотной тёмной полосой */
.footer {
  border-top: 0;
  background: var(--graphite);
  color: rgba(255, 255, 255, 0.62);
}

.footer strong {
  color: var(--white);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
}

.footer-links a:hover {
  color: var(--white);
}

/* Телефон на первом экране под курсором коротко и слабо «вибрирует», будто пришло уведомление.
   Один раз за наведение; на телефонах без курсора не срабатывает. */
@media (hover: hover) {
  .phone:hover {
    animation: phone-buzz 0.55s ease-in-out 1;
    transform-origin: 50% 60%;
  }
}

@keyframes phone-buzz {
  0%,
  100% {
    transform: none;
  }

  12% {
    transform: translateX(-0.8px) rotate(-0.45deg);
  }

  25% {
    transform: translateX(0.8px) rotate(0.45deg);
  }

  38% {
    transform: translateX(-0.7px) rotate(-0.4deg);
  }

  51% {
    transform: translateX(0.6px) rotate(0.3deg);
  }

  64% {
    transform: translateX(-0.5px) rotate(-0.2deg);
  }

  77% {
    transform: translateX(0.3px) rotate(0.12deg);
  }

  90% {
    transform: translateX(-0.2px) rotate(-0.05deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .phone:hover {
    animation: none;
  }
}

/* Вопросы — округлые плашки; ответ плавно выдвигается после нажатия (без JavaScript).
   Высота анимируется там, где браузер это умеет (::details-content + interpolate-size);
   в остальных ответ мягко проявляется и съезжает на место. */
.faq,
.faq:first-of-type {
  margin-bottom: 10px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 24px;
  background: var(--surface);
  transition: background-color 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.faq[open] {
  border-color: var(--line);
  background: var(--white);
  box-shadow: 0 14px 36px rgba(34, 37, 42, 0.08);
}

.faq summary {
  padding: 19px 44px 19px 0;
}

.faq summary::after {
  right: 6px;
  top: 25px;
}

.faq summary:focus-visible {
  border-radius: 16px;
}

.faq p {
  padding: 0 0 22px;
}

.faq[open] p {
  animation: faq-reveal 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes faq-reveal {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@supports selector(::details-content) {
  .faq {
    interpolate-size: allow-keywords;
  }

  .faq::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), content-visibility 0.45s allow-discrete;
  }

  .faq[open]::details-content {
    block-size: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq,
  .faq::details-content {
    transition: none;
  }

  .faq[open] p {
    animation: none;
  }
}

/* Список «Тип бизнеса»: своё оформление вместо системного. Сам список выпадает округлой плашкой
   с плавным появлением там, где браузер разрешает его оформлять (appearance: base-select);
   в остальных и на телефонах открывается привычный системный список. Без JavaScript. */
.lead-form input[type="text"],
.lead-form select,
.lead-form textarea {
  border-radius: 16px;
  padding-left: 16px;
}

.lead-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 46px;
  cursor: pointer;
  /* стрелка из двух градиентов: картинок и встроенных стилей нет */
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: right 23px center, right 17px center;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

@supports (appearance: base-select) {
  .lead-form select,
  .lead-form select::picker(select) {
    appearance: base-select;
  }

  .lead-form select {
    align-items: center;
  }

  .lead-form select::picker-icon {
    display: none;
  }

  .lead-form select::picker(select) {
    /* всегда вниз от поля: без запасного варианта «открыться вверх, если снизу мало места» */
    position-area: block-end span-inline-end;
    position-try-fallbacks: none;
    position-try-order: normal;
    /* не сжимать список до остатка экрана: пусть показывает все пункты, страницу можно докрутить */
    max-block-size: none;
    margin-top: 8px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px) saturate(1.7);
    box-shadow: 0 18px 44px rgba(34, 37, 42, 0.16);
    /* если список не помещается по высоте — тонкая полоса прокрутки, чтобы не ломала скругление */
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top center;
    transition:
      opacity 0.3s ease,
      transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
      overlay 0.35s allow-discrete,
      display 0.35s allow-discrete;
  }

  .lead-form select::picker(select):popover-open {
    opacity: 1;
    transform: none;
  }

  @starting-style {
    .lead-form select::picker(select):popover-open {
      opacity: 0;
      transform: translateY(-8px) scale(0.98);
    }
  }

  .lead-form option {
    padding: 9px 14px;
    border-radius: 14px;
    color: var(--graphite);
    transition: background-color 0.2s ease;
  }

  .lead-form option::checkmark {
    display: none;
  }

  .lead-form option:hover,
  .lead-form option:focus-visible {
    background: var(--blue-tint);
    outline: none;
    box-shadow: none;
  }

  .lead-form option:checked {
    font-weight: 600;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lead-form select::picker(select) {
    transition: none;
  }
}

/* Тариф «НФС Стикер» обведён, как «Аналитика», но тихо: графитовая рамка вполсилы вместо синей */
.plan:not(.plan-soon):not(.plan-best) {
  border-color: rgba(34, 37, 42, 0.2);
  box-shadow:
    inset 0 0 0 1px rgba(34, 37, 42, 0.07),
    inset 0 2px 0 rgba(255, 255, 255, 0.9),
    0 14px 36px rgba(34, 37, 42, 0.07);
}

@media (hover: hover) {
  .plan:not(.plan-soon):not(.plan-best):hover {
    border-color: rgba(34, 37, 42, 0.3);
    box-shadow:
      inset 0 0 0 1px rgba(34, 37, 42, 0.09),
      inset 0 2px 0 rgba(255, 255, 255, 0.9),
      0 22px 48px rgba(34, 37, 42, 0.12);
  }
}

/* Шаги, доработка. Активное состояние: на компьютере — наведение, на телефоне — класс .in-view,
   который ставит static/landing.js, когда шаг на экране. */

/* 1. Волны от таблички: двигаем только transform и opacity — на телефоне это плавно,
   а прежняя анимация размера пересчитывала страницу на каждом кадре и дёргалась */
.art-ring {
  width: 156px;
  height: 156px;
  margin: 0 0 -78px -78px;
  box-shadow: none;
  border: 2px solid var(--blue);
  transform: scale(0.27);
  animation: art-wave 2.8s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
  will-change: transform, opacity;
}

@keyframes art-wave {
  0% {
    opacity: 0.6;
    transform: scale(0.27);
  }

  100% {
    opacity: 0;
    transform: scale(1);
  }
}

/* 2. Звёзды: пустые, по очереди заливаются; пятая — с особым «щелчком» и тёплым свечением */
.art-star {
  fill: var(--line);
  transition: fill 0.25s ease, transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.step:is(:hover, .in-view) .art-star {
  fill: #f5b301;
  transform: scale(1.08);
}

.step:is(:hover, .in-view) .art-star:nth-child(2) {
  transition-delay: 0.08s;
}

.step:is(:hover, .in-view) .art-star:nth-child(3) {
  transition-delay: 0.16s;
}

.step:is(:hover, .in-view) .art-star:nth-child(4) {
  transition-delay: 0.24s;
}

.step:is(:hover, .in-view) .art-star:nth-child(5) {
  transition-delay: 0.36s;
  animation: art-star-pop 0.7s cubic-bezier(0.3, 1.5, 0.5, 1) 0.36s both;
}

@keyframes art-star-pop {
  0% {
    transform: scale(1);
    filter: none;
  }

  45% {
    transform: scale(1.45) rotate(-12deg);
    filter: drop-shadow(0 0 7px rgba(245, 179, 1, 0.75));
  }

  100% {
    transform: scale(1.2) rotate(0);
    filter: drop-shadow(0 0 5px rgba(245, 179, 1, 0.55));
  }
}

/* 3. На телефоне — те же движения, что под курсором на компьютере */
.step.in-view {
  transform: translateY(-4px);
}

.step.in-view .art-phone {
  transform: rotate(6deg) translate(-8px, 6px);
}

.step.in-view .art-rate {
  transform: scale(1.05);
}

.step.in-view .art-chip-top {
  transform: translateX(8px);
}

.step.in-view .art-chip-low {
  transform: translateX(-8px);
}

@media (prefers-reduced-motion: reduce) {
  .art-ring {
    animation: none;
    opacity: 0;
  }

  .art-star,
  .step:is(:hover, .in-view) .art-star:nth-child(5) {
    transition: none;
    animation: none;
  }
}

/* Звёзды шага 2, поправка: в покое все пять уже жёлтые. Под курсором (на телефоне — при прокрутке)
   они заново заливаются по очереди, пятая — со «щелчком» и свечением. */
.art-star,
.step:is(:hover, .in-view) .art-star {
  fill: #f5b301;
  transform: none;
  transition: none;
}

.step:is(:hover, .in-view) .art-star {
  animation: art-star-fill 0.4s cubic-bezier(0.3, 1.6, 0.5, 1) both;
}

.step:is(:hover, .in-view) .art-star:nth-child(2) {
  animation-delay: 0.08s;
}

.step:is(:hover, .in-view) .art-star:nth-child(3) {
  animation-delay: 0.16s;
}

.step:is(:hover, .in-view) .art-star:nth-child(4) {
  animation-delay: 0.24s;
}

.step:is(:hover, .in-view) .art-star:nth-child(5) {
  animation: art-star-five 0.75s cubic-bezier(0.3, 1.5, 0.5, 1) 0.36s both;
}

@keyframes art-star-fill {
  0% {
    fill: var(--line);
    transform: scale(0.85);
  }

  100% {
    fill: #f5b301;
    transform: scale(1);
  }
}

@keyframes art-star-five {
  0% {
    fill: var(--line);
    transform: scale(0.85);
    filter: none;
  }

  45% {
    fill: #f5b301;
    transform: scale(1.45) rotate(-12deg);
    filter: drop-shadow(0 0 7px rgba(245, 179, 1, 0.75));
  }

  100% {
    fill: #f5b301;
    transform: scale(1.18);
    filter: drop-shadow(0 0 5px rgba(245, 179, 1, 0.55));
  }
}

@media (prefers-reduced-motion: reduce) {
  .step:is(:hover, .in-view) .art-star,
  .step:is(:hover, .in-view) .art-star:nth-child(5) {
    animation: none;
  }
}

/* Телефоны и планшеты без курсора: убираем то, что телефону тяжело перерисовывать на ходу.
   - размытие фона под карточками (особенно под плавающими плашками — оно пересчитывалось
     на каждом кадре их движения) заменяем почти непрозрачным белым, вид почти тот же;
   - у шапки размытие оставляем, но слабее;
   - свечение пятой звезды не анимируем (анимация filter дорогая), остаётся только «прыжок»;
   - шаг целиком не сдвигаем (двигался бы и текст), двигаются только детали картинки;
   - каждую картинку шага рисуем отдельным слоем, чтобы её анимации не трогали остальную страницу. */
@media (hover: none) {
  .plan:not(.plan-soon),
  .lead-form,
  .bubble {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .lead-form select::picker(select) {
    backdrop-filter: none;
  }

  .nav {
    backdrop-filter: blur(12px) saturate(1.5);
    -webkit-backdrop-filter: blur(12px) saturate(1.5);
  }

  .step.in-view {
    transform: none;
  }

  .step,
  .art-card,
  .art-phone {
    transition-duration: 0.6s;
  }

  .step-art {
    contain: paint;
    transform: translateZ(0);
  }

  .art-ring,
  .art-phone,
  .art-card,
  .art-star,
  .bubble {
    backface-visibility: hidden;
  }

  @keyframes art-star-five {
    0% {
      fill: var(--line);
      transform: scale(0.85);
    }

    45% {
      fill: #f5b301;
      transform: scale(1.4) rotate(-12deg);
    }

    100% {
      fill: #f5b301;
      transform: scale(1.18);
    }
  }
}

/* Шаг 2 на компьютере: карточка с вопросом и звёздами крупнее */
@media (min-width: 760px) {
  .art-rate {
    padding: 20px 24px 22px;
    border-radius: 22px;
  }

  .art-rate p {
    font-size: 19px;
  }

  .art-stars {
    gap: 5px;
    margin-top: 12px;
  }

  .art-star {
    width: 36px;
    height: 36px;
  }
}

/* Шапка: «Войти» рядом с кнопкой заявки */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-login {
  color: var(--graphite);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-login:hover {
  color: var(--blue);
}

/* На узком телефоне в шапке не хватает места: кнопка заявки уходит, остаётся «Войти»
   (заявку можно оставить кнопкой на первом экране) */
@media (max-width: 400px) {
  .nav .btn-small {
    display: none;
  }

  .nav-login {
    padding: 9px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
  }
}
