/* 3D-главная (ADR-185): поверх общего styles.css. Сцена — фиксированный слой позади текста;
   нижние блоки (ещё, скачать, вопросы, подвал) непрозрачные и наезжают на неё. */

.next {
  --stage-glow-a: rgba(200, 240, 46, 0.1);
  --stage-glow-b: rgba(62, 142, 247, 0.07);
  --card-bg: rgba(18, 21, 23, 0.82);
}
:root[data-theme='light'] .next {
  --stage-glow-a: rgba(160, 200, 20, 0.16);
  --stage-glow-b: rgba(62, 142, 247, 0.08);
  --card-bg: rgba(255, 255, 255, 0.86);
}

/* Шапка без размытия фона: размытие поверх живой сцены дорого для слабых видеокарт. */
.next .top {
  backdrop-filter: none;
  background: color-mix(in srgb, var(--canvas) 93%, transparent);
}

main {
  position: relative;
  z-index: 1;
}

/* ───────── Сцена ───────── */
.stage {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  /* Большая высота окна: на телефоне сцена не дёргается, когда прячется адресная строка. */
  height: 100vh;
  height: 100lvh;
  z-index: 0;
  pointer-events: none;
  contain: strict;
}
.stage-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 72% 46%, var(--stage-glow-a), transparent 70%),
    radial-gradient(40% 45% at 18% 80%, var(--stage-glow-b), transparent 70%);
}
.stage-gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.stage.gl .stage-gl {
  opacity: 1;
}
.stage-2d {
  position: absolute;
  inset: 0;
  perspective-origin: 50% 50%;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.stage.ready .stage-2d {
  opacity: 1;
}
.stage.gl .stage-2d {
  opacity: 0;
}
.dev {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: var(--r);
  padding: var(--b);
  background: linear-gradient(145deg, #2a2f33, #15181a 55%, #1d2124);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    0 0 0 1px rgba(200, 240, 46, 0.12),
    0 40px 90px -20px rgba(0, 0, 0, 0.6),
    0 0 80px -10px rgba(200, 240, 46, 0.18);
  will-change: transform;
  backface-visibility: hidden;
}
:root[data-theme='light'] .dev {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 40px 80px -24px rgba(26, 26, 23, 0.35),
    0 0 70px -10px rgba(160, 200, 20, 0.25);
}
.dev canvas {
  position: absolute;
  inset: var(--b);
  width: calc(100% - 2 * var(--b));
  height: calc(100% - 2 * var(--b));
  border-radius: var(--sr);
  background: var(--canvas);
  opacity: 0;
  transition: opacity 0.45s ease;
}
.dev canvas.on {
  opacity: 1;
}

/* Точки шагов слева — только на широком экране. */
.rail {
  position: fixed;
  left: 22px;
  top: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.rail i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-strong);
  transition:
    background 0.3s ease,
    transform 0.3s ease;
}
.rail i.on {
  background: var(--accent);
  transform: scale(1.6);
}
.rail:has(i.on) {
  opacity: 1;
}
@media (max-width: 1100px) {
  .rail {
    display: none;
  }
}

/* ───────── Первый экран ───────── */
.hero3d {
  position: relative;
  padding: 0;
}
.hero3d-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1fr);
  align-items: center;
  min-height: calc(100svh - 64px);
  padding-top: 40px;
  padding-bottom: 80px;
}
.hero-copy {
  max-width: 560px;
}
.hero-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(36px, 4.3vw, 60px);
  font-weight: 700;
  text-wrap: balance;
}
.hero-copy h1 mark {
  background: none;
  color: var(--accent-text);
  text-shadow: 0 0 40px rgba(200, 240, 46, 0.35);
}
:root[data-theme='light'] .hero-copy h1 mark {
  text-shadow: none;
}
.hero-spot {
  align-self: stretch;
  min-height: 300px;
}
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  color: var(--subtle);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.scroll-hint i {
  width: 22px;
  height: 34px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  position: relative;
}
.scroll-hint i::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 7px;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--accent);
  animation: hint 1.8s ease-in-out infinite;
}
@keyframes hint {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  70% {
    transform: translateY(10px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 0;
  }
}

/* ───────── Шаги рассказа ───────── */
.story {
  position: relative;
  scroll-margin-top: 64px;
}
.step {
  min-height: 100vh;
  min-height: 100svh;
  padding: 0;
  display: flex;
  align-items: center;
}
.step-card {
  max-width: 440px;
  padding: 28px 30px 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card-bg);
  box-shadow: var(--shadow);
}
.step-n {
  display: block;
  margin-bottom: 14px;
  color: var(--subtle);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.step-n b {
  color: var(--accent-text);
  font-weight: 700;
}
.step-card h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 700;
  text-wrap: balance;
}
.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  text-wrap: pretty;
}
.step-points {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 15px;
}
.step-points li {
  position: relative;
  padding-left: 26px;
}
.step-points li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 13px;
  height: 7px;
  border-left: 2px solid var(--accent-text);
  border-bottom: 2px solid var(--accent-text);
  transform: rotate(-45deg);
}
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ───────── Нижние блоки поверх сцены ───────── */
.after {
  position: relative;
  z-index: 2;
  background: var(--canvas);
}
.more {
  padding-top: 110px;
  /* Сцена уходит под нижние блоки мягко: верх блока полупрозрачный, без резкой границы. */
  background: linear-gradient(to bottom, transparent, var(--canvas) 110px);
}
footer.after {
  z-index: 2;
}

/* ───────── Узкий экран и телефон ───────── */
@media (max-aspect-ratio: 9/10) {
  .hero3d-grid {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: 0;
    padding-top: 28px;
    padding-bottom: 0;
  }
  .hero-spot {
    min-height: 0;
    height: 48svh;
  }
  .scroll-hint {
    display: none;
  }
  /* Карточка внизу экрана, устройства — над ней. */
  .step {
    align-items: flex-end;
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }
  .step-card {
    max-width: 560px;
    margin: 0 auto;
    padding: 20px 20px 18px;
    border-radius: 20px;
  }
  .step-n {
    margin-bottom: 8px;
  }
  .step-card h2 {
    margin-bottom: 8px;
    font-size: 25px;
  }
  .step-card p {
    font-size: 15px;
  }
  .step-points {
    display: none;
  }
}
@media (max-width: 520px) {
  .hero-copy h1 {
    font-size: 34px;
    margin: 16px 0 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-hint i::after {
    animation: none;
  }
  .stage-gl,
  .stage-2d,
  .dev canvas {
    transition: none;
  }
}

/* Телефон: на первом экране короткий текст и шапка в одну строку — больше места устройствам. */
@media (max-aspect-ratio: 9/10) and (max-width: 720px) {
  .lead-more {
    display: none;
  }
}
@media (max-width: 520px) {
  .next .top .wrap {
    flex-wrap: nowrap;
    gap: 6px;
  }
  .next .brand {
    gap: 0;
    font-size: 0;
  }
  .next .top .btn.small {
    flex: 0 0 auto;
    padding: 0 10px;
  }
}
@media (max-width: 350px) {
  .next .top .icon-btn:not(.theme-toggle) {
    display: none;
  }
}

/* Текст первого экрана: про синхронизацию — своей строкой (ADR-187). */
.lead-sync {
  display: block;
  margin-top: 4px;
}
/* Кнопки под устройство: лишние скрыты (атрибут hidden сильнее display кнопки). */
.cta [hidden] {
  display: none !important;
}

/* Цена (ADR-187). */
.price-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 36px 40px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(80% 120% at 0% 0%, var(--accent-subtle), transparent 60%),
    var(--surface);
  box-shadow: var(--shadow);
}
.price-kicker {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-subtle);
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 600;
}
.price-big {
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 700;
  color: var(--accent-text);
}
.price-then {
  margin-top: 6px;
  font-size: 20px;
  color: var(--fg);
}
.price-then b {
  font-weight: 700;
}
.price-lock {
  margin: 16px 0 0;
  max-width: 460px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  text-wrap: pretty;
}
.price-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.price-side .step-points {
  /* На телефоне список у карточек шагов скрыт, у цены — нет. */
  display: grid;
  margin: 0 0 6px;
  font-size: 16px;
}
.price-side .btn {
  width: 100%;
}
.price-alt {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}
.price-alt:hover {
  color: var(--fg);
}
@media (max-width: 760px) {
  .price-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 26px 22px;
    border-radius: 22px;
  }
}
@media (max-aspect-ratio: 9/10) and (max-width: 720px) {
  .lead-sync {
    display: none;
  }
}

/* Живая строка быстрого добавления (ADR-188). */
.demo-section {
  padding-top: 110px;
  background: linear-gradient(to bottom, transparent, var(--canvas) 110px);
}
.demo-section + .more {
  padding-top: 40px;
  background: var(--canvas);
}
.demo-section + .more::before {
  content: none;
}
.demo {
  max-width: 820px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.demo-field {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--canvas);
}
.demo-field:focus-within {
  border-color: var(--accent-text);
}
.demo-mirror,
.demo-input {
  display: block;
  width: 100%;
  margin: 0;
  padding: 16px 18px;
  border: 0;
  font: 500 20px/1.4 'Inter', system-ui, sans-serif;
  letter-spacing: normal;
  white-space: pre;
  overflow: hidden;
}
.demo-mirror {
  position: absolute;
  inset: 0;
  color: var(--fg);
  pointer-events: none;
}
.demo-input {
  position: relative;
  background: transparent;
  color: transparent;
  caret-color: var(--accent);
  outline: none;
  overflow-x: auto;
}
.demo-input::selection {
  background: rgba(200, 240, 46, 0.25);
  color: transparent;
}
.demo-mark {
  border-radius: 6px;
  padding: 1px 0;
  box-shadow: 0 0 0 2px var(--demo-bg);
  background: var(--demo-bg);
  color: var(--demo-fg);
}
.demo-mark.date,
.demo-chip.date {
  --demo-bg: rgba(200, 240, 46, 0.16);
  --demo-fg: var(--accent-text);
}
.demo-mark.tag,
.demo-chip.tag {
  --demo-bg: rgba(155, 124, 246, 0.18);
  --demo-fg: #a58bff;
}
.demo-mark.prio,
.demo-chip.prio {
  --demo-bg: rgba(229, 72, 77, 0.16);
  --demo-fg: #ff7a7e;
}
:root[data-theme='light'] .demo-mark.tag,
:root[data-theme='light'] .demo-chip.tag {
  --demo-fg: #6b4fd8;
}
:root[data-theme='light'] .demo-mark.prio,
:root[data-theme='light'] .demo-chip.prio {
  --demo-fg: #c4262c;
}
.demo-result {
  min-height: 92px;
  padding: 18px 4px 4px;
}
.demo-empty {
  margin: 6px 0 0;
  color: var(--subtle);
}
.demo-task {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
}
.demo-box {
  flex: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--line-strong);
  border-radius: 6px;
}
.demo-box.p1 {
  border-color: var(--p1);
}
.demo-box.p2 {
  border-color: var(--p2);
}
.demo-box.p3 {
  border-color: var(--p3);
}
.demo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-left: 32px;
}
.demo-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--demo-bg);
  color: var(--demo-fg);
  font-size: 14px;
  font-weight: 600;
}
.demo-chip small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.demo-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.demo-example {
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 500 13px/1.3 'Inter', system-ui, sans-serif;
  cursor: pointer;
}
.demo-example:hover {
  color: var(--fg);
  background: var(--sunken);
}
@media (max-width: 560px) {
  .demo {
    padding: 14px;
    border-radius: 20px;
  }
  .demo-mirror,
  .demo-input {
    padding: 14px;
    font-size: 17px;
  }
  .demo-chips {
    padding-left: 0;
  }
}

/* Telegram-канал (ADR-206): кнопка в шапке, карточка перед вопросами, плашка внизу. */
.tg-btn svg {
  width: 17px;
  height: 17px;
}
.tg-section {
  padding-top: 8px;
}
.tg-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(90% 140% at 0% 0%, rgba(42, 171, 238, 0.14), transparent 60%),
    var(--surface);
  box-shadow: var(--shadow);
  color: var(--fg);
  text-decoration: none;
  transition: transform 0.15s ease;
}
.tg-card:hover {
  transform: translateY(-2px);
}
.tg-icon {
  display: grid;
  flex: none;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  background: #2aabee;
  color: #fff;
}
.tg-icon svg {
  width: 26px;
  height: 26px;
}
.tg-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.tg-text b {
  font-size: 18px;
}
.tg-text span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
}
.tg-go {
  flex: none;
}
.tg-float {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px 4px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  animation: tg-in 0.3s ease;
}
.tg-float[hidden] {
  display: none;
}
.tg-float a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 6px;
  color: var(--fg);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.tg-float a svg {
  width: 28px;
  height: 28px;
  padding: 6px;
  border-radius: 999px;
  background: #2aabee;
  color: #fff;
}
.tg-float-close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.tg-float-close:hover {
  background: var(--sunken);
}
@keyframes tg-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
@media (max-width: 640px) {
  .tg-card {
    flex-wrap: wrap;
    padding: 18px;
  }
  .tg-go {
    width: 100%;
    text-align: center;
  }
  .tg-float {
    left: 12px;
    bottom: 12px;
  }
}

/* Шире влево (ADR-208): на широких экранах левый край на 60px левее, правый — на месте. */
@media (min-width: 1440px) {
  .wrap {
    max-width: 1380px;
    margin-left: calc((100% - 1440px) / 2);
    margin-right: auto;
  }
}
/* Всё после «И ещё» — ровно по центру экрана (ADR-208). */
@media (min-width: 1440px) {
  #features .wrap,
  #features ~ section .wrap,
  footer .wrap {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
  }
  #faq .wrap {
    max-width: 820px;
  }
}
/* «Попробуйте сами» — узкий блок посередине, как «Вопросы» (ADR-208). */
#try .wrap {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

/* Слабые ПК (ADR-260): разделы ниже первого экрана не рисуются, пока до них не долистали. */
.after {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

/* ───────── Аккаунт в шапке (ADR-303) ───────── */
/* Слот не меняет раскладку шапки: кнопки входа ведут себя как раньше. */
.auth-slot {
  display: contents;
}
.account {
  position: relative;
  flex: 0 1 auto;
  min-width: 0;
}
.account-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 220px;
  height: 38px;
  padding: 0 12px 0 4px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--surface);
  color: var(--fg);
  font: 600 14px/1 'Inter', system-ui, sans-serif;
  cursor: pointer;
}
.account-btn:hover {
  background: var(--sunken);
}
.account-avatar,
.review-avatar {
  display: grid;
  flex: none;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: var(--accent-subtle);
  color: var(--accent-text);
  font-weight: 700;
}
.account-avatar {
  width: 28px;
  height: 28px;
  font-size: 13px;
}
.account-avatar img,
.review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.account-name {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  min-width: 220px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.account-menu[hidden] {
  display: none;
}
.account-email {
  overflow: hidden;
  padding: 6px 10px 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-menu a,
.account-menu button {
  padding: 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--fg);
  font: 500 14px/1.2 'Inter', system-ui, sans-serif;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.account-menu a:hover,
.account-menu button:hover {
  background: var(--sunken);
}
@media (max-width: 520px) {
  .account-btn {
    max-width: 150px;
  }
}

/* ───────── Отзывы (ADR-303) ───────── */
.reviews-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 1000px) {
  .reviews-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .reviews-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
.review-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.review-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-avatar {
  width: 40px;
  height: 40px;
  font-size: 16px;
}
.review-who {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.review-who b {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.review-who span {
  color: var(--muted);
  font-size: 13px;
}
.review-stars,
.review-rating {
  display: inline-flex;
  flex: none;
  gap: 2px;
  color: var(--line-strong);
}
.review-stars .on,
.review-rating .on {
  color: #f5b42a;
}
.review-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.reviews-empty,
.review-note {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.review-note a {
  color: var(--accent-text);
}
.reviews-more {
  margin-top: 16px;
}
/* «Показать ещё» и квадратик с карандашом справа: он открывает окно отзыва. */
.reviews-more-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.reviews-more-row .reviews-more {
  margin-top: 0;
}
.reviews-more[hidden] {
  display: none;
}
.review-form.closed {
  padding: 0;
  border: 0;
  background: none;
}
.review-form.closed .review-message:empty {
  display: none;
}
.review-box {
  max-width: 640px;
  margin-top: 28px;
}
.review-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.review-form h3 {
  margin: 0;
  font-size: 18px;
}
.review-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.review-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.review-body[hidden] {
  display: none;
}
.review-pencil {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.review-pencil.active,
.review-pencil:hover {
  color: var(--accent-text);
  border-color: var(--line-strong);
}
.review-rating button {
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.review-rating button.on {
  color: #f5b42a;
}
.review-form textarea {
  width: 100%;
  min-height: 110px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--canvas);
  color: var(--fg);
  font: 400 15px/1.5 'Inter', system-ui, sans-serif;
  resize: vertical;
}
.review-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.review-counter {
  color: var(--muted);
  font-size: 13px;
}
.review-message {
  min-height: 1.4em;
  margin: 0;
  color: var(--accent-text);
  font-size: 14px;
}
.review-message.error {
  color: #ef5b5b;
}
