/* Voxly — styles.css
   Единое светлое оформление для всего сайта: главная, чат и настройки.
   Основа — тёплый бежевый #ead7bd, карточки белые, цветные акценты яркие.
   Цвета и размеры заданы переменными в :root — меняйте их там. */

:root {
  /* Сайт только светлый: просим браузер не перекрашивать его в тёмный
     (Chrome «Auto Dark Mode», Opera/Яндекс «тёмные сайты», Dark Reader) */
  color-scheme: only light;

  /* основа */
  --bg: #ead7bd;
  --bg-alt: #e2cba9;
  --surface: #fffcf7;
  --surface-2: #f8efe3;
  --ink: #2a1f14;
  --ink-2: #4d3f30;
  --muted: #6e5d4a;
  --line: #e3d0b6;
  --line-2: #cdb391;

  /* акценты — из палитры главной картинки */
  --coral: #d2694f;
  --coral-soft: #fbe6de;
  --orange: #d98a3a;
  --orange-soft: #fbeedb;
  --olive: #7d9146;
  --olive-soft: #edf1dc;
  --danger: #c0392b;
  --danger-soft: #fbe3df;

  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-soft: 0 18px 44px rgba(84, 56, 32, 0.14);
  --shadow-card: 0 8px 24px rgba(84, 56, 32, 0.1);
  --focus: 0 0 0 3px rgba(217, 138, 58, 0.45);

  --caption-size: 26px;

  /* Шрифт текста. Onest — запасной для казахских букв, которых нет в Manrope */
  --font-body: 'Manrope', 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Казахский сайт — целиком Onest: в нём есть все буквы алфавита */
html[lang="kk"] {
  --font-body: 'Onest', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
  flex: 0 0 auto;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.015em;
  word-spacing: 0.06em;
}

h3 {
  letter-spacing: -0.005em;
}

p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

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

.page-enter {
  animation: page-in 0.4s ease both;
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.script {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  letter-spacing: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  content: '';
}

/* ---------- Кнопки: одна высота, иконка всегда по центру ---------- */
.dark-button,
.ghost-button,
.light-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.dark-button svg,
.ghost-button svg,
.light-button svg {
  width: 18px;
  height: 18px;
}

.dark-button {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 8px 20px rgba(31, 28, 25, 0.16);
}

.dark-button:hover {
  background: #37322d;
  transform: translateY(-1px);
}

.ghost-button {
  color: var(--ink);
  border-color: var(--line-2);
  background: var(--surface);
}

.ghost-button:hover {
  border-color: var(--ink-2);
  transform: translateY(-1px);
}

.light-button {
  color: var(--ink);
  background: #fff;
}

.light-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(31, 28, 25, 0.14);
}

.dark-button:disabled,
.ghost-button:disabled {
  opacity: 0.5;
  transform: none;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  background: var(--surface);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  transition: 0.15s ease;
}

.icon-button:hover {
  border-color: var(--line-2);
  color: var(--ink);
  background: #fff;
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

/* маленькая кнопка в строке: «Подписать», «Удалить» */
.subscribe-button,
.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: 0.15s ease;
}

.subscribe-button:hover,
.pill-button:hover {
  border-color: var(--ink-2);
}

.pill-button svg {
  width: 15px;
  height: 15px;
}

.pill-button.danger {
  color: var(--danger);
  border-color: #efc3bc;
}

.pill-button.danger:hover,
.pill-button.danger.armed {
  color: #fff;
  border-color: var(--danger);
  background: var(--danger);
}

/* квадратная кнопка-иконка в строке (галочка, корзина) */
.row-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  transition: 0.15s ease;
}

.row-icon svg {
  width: 17px;
  height: 17px;
}

.row-icon:hover {
  color: var(--ink);
  background: var(--bg-alt);
}

.row-icon.danger:hover {
  color: var(--danger);
  background: var(--danger-soft);
}

.participant-check {
  color: var(--olive);
  background: var(--olive-soft);
}

.participant-check:hover {
  color: var(--olive);
  background: #e2e9c8;
}

/* ---------- Логотип ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
}

.brand-name {
  font-family: 'Caveat', cursive;
  font-size: 1.4em;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 0.8;
  translate: 0 -0.04em;
}

/* =====================================================================
   Главная
   ===================================================================== */
.landing {
  min-height: 100vh;
  overflow: hidden;
  background: var(--bg);
}

.site-nav {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(100% - 48px, 1380px);
  height: 88px;
  margin: 0 auto;
}

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

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-actions {
  gap: 8px;
}

.nav-link,
.nav-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: 0.15s ease;
}

.nav-link svg,
.nav-action svg {
  width: 16px;
  height: 16px;
}

.nav-link:hover {
  color: var(--ink);
  background: var(--surface);
}

.nav-action {
  border-color: var(--line-2);
  color: var(--ink);
  background: var(--surface);
}

.nav-action:hover {
  border-color: var(--ink-2);
}

.nav-action.primary {
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}

.nav-action.primary:hover {
  background: #37322d;
}

.mobile-menu-button {
  display: none;
}

/* ---------- Hero: живая сцена с маскотом ---------- */
.hero-wrap {
  width: min(100% - 48px, 1380px);
  margin: 0 auto;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  min-height: clamp(560px, 56vw, 760px);
  padding: clamp(40px, 5vw, 72px);
  overflow: hidden;
  border: 6px solid rgba(255, 252, 247, 0.85);
  border-radius: var(--radius-xl);
  color: #fff;
  background:
    radial-gradient(120% 90% at 0% 0%, #c9786b 0%, transparent 55%),
    radial-gradient(90% 80% at 100% 100%, #b7ad72 0%, transparent 55%),
    linear-gradient(115deg, #c9786b 0%, #d18a5f 38%, #d9a05c 66%, #c6ab6c 100%);
  background-size: 140% 140%, 140% 140%, 100% 100%;
  box-shadow: var(--shadow-soft);
}

@keyframes hero-sky {
  from { background-position: 0% 0%, 100% 100%, 0 0; }
  to { background-position: 30% 20%, 70% 80%, 0 0; }
}

/* пунктирные «звуковые» линии плывут */
.hero-waves {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-waves path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.45);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 1 12;
}

@keyframes hero-dash {
  to { stroke-dashoffset: -520; }
}

/* мягкие «цветки» по углам */
.hero-blob {
  position: absolute;
  z-index: -1;
  width: 110px;
  aspect-ratio: 1;
  background: rgba(244, 196, 178, 0.75);
  border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%;
}

.hero-blob-a { top: -28px; left: -26px; }
.hero-blob-b { right: -30px; bottom: -34px; width: 90px; background: rgba(214, 214, 170, 0.8); animation-delay: -5s; }

@keyframes hero-blob {
  0%, 100% { border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%; transform: rotate(0deg) scale(1); }
  50% { border-radius: 58% 42% 45% 55% / 42% 58% 42% 58%; transform: rotate(40deg) scale(1.08); }
}

/* текст слева */
.hero-copy {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 18px;
  max-width: 560px;
}

.hero-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 16px rgba(84, 56, 32, 0.14);
}

.hero-pill.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.hero-pill-float {
  position: absolute;
  bottom: -64px;
  left: 12px;
}

.hero-kicker {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(40px, 4.6vw, 68px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 18px rgba(120, 60, 30, 0.12);
}

.hero-copy h1 .script {
  display: inline-block;
  color: var(--ink);
  font-size: 1.08em;
  transform: rotate(-3deg);
}

.hero-copy p {
  max-width: 460px;
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.hero-outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-outline-button:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

/* сцена справа */
.hero-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 500px;
}

.hero-sun {
  position: absolute;
  width: min(78%, 400px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(255, 236, 200, 0.75), rgba(247, 206, 150, 0.35) 60%, rgba(247, 206, 150, 0) 72%);
}

@keyframes hero-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.mascot {
  position: relative;
  z-index: 1;
  width: min(74%, 350px);
  translate: 12% -18%;
}

.mascot-svg {
  display: block;
  width: 100%;
  overflow: visible;
}

.m-body {
  animation: m-float 7s ease-in-out infinite;
}

.m-bubble {
  filter: drop-shadow(0 18px 26px rgba(110, 60, 25, 0.25));
}

.m-shadow {
  fill: rgba(90, 50, 20, 0.18);
  transform-box: fill-box;
  transform-origin: center;
  animation: m-shadow 7s ease-in-out infinite;
}

@keyframes m-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes m-shadow {
  0%, 100% { transform: scaleX(1); opacity: 1; }
  50% { transform: scaleX(0.92); opacity: 0.85; }
}

.m-eye ellipse { fill: var(--ink); }
.m-glint { fill: #fff; }

.m-eyes {
  transition: transform 0.45s cubic-bezier(0.3, 1.4, 0.5, 1);
}

.m-eye {
  transform-box: fill-box;
  transform-origin: center;
  animation: m-blink 5.5s infinite;
}

.m-eye + .m-eye { animation-delay: 0.04s; }

@keyframes m-blink {
  0%, 92%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.1); }
}

.mascot.look-right .m-eyes { transform: translate(5px, 1px); }
.mascot:not(.look-right) .m-eyes { transform: translate(-5px, 1px); }

.m-cheek { fill: #f7b8a2; opacity: 0.7; }
.m-shine { fill: #fff; opacity: 0.8; }

.m-band {
  fill: none;
  stroke: url(#mBand);
  stroke-width: 15;
  stroke-linecap: round;
  filter: drop-shadow(0 6px 8px rgba(110, 50, 25, 0.22));
}

.m-band-hi {
  fill: none;
  stroke: rgba(255, 255, 255, 0.4);
  stroke-width: 3.5;
  stroke-linecap: round;
}

.m-slider { fill: #b9563f; }
.m-cup { filter: drop-shadow(0 12px 16px rgba(110, 50, 25, 0.28)); }
.m-plate { stroke: rgba(160, 80, 50, 0.12); stroke-width: 2; }

.m-cable {
  fill: none;
  stroke: #4a3322;
  stroke-width: 4;
  stroke-linecap: round;
}

.m-plug { fill: #4a3322; }
.m-plug-tip { fill: #c9a37a; }
.m-mouth { fill: #fffaf2; filter: drop-shadow(0 4px 6px rgba(110, 50, 25, 0.18)); }

@keyframes m-cable {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(3deg); }
}

.m-led { fill: #f5c57e; opacity: 0.5; transition: opacity 0.6s ease; }
.mascot.is-talking .m-led { opacity: 1; }

/* рот — звуковая волна */
.m-bar {
  transform-box: fill-box;
  transform-origin: center;
  transform: scaleY(0.55);
  transition: transform 0.3s ease;
}

.mascot.is-talking .m-bar { animation: m-bar 0.8s ease-in-out infinite alternate; }
.mascot.is-talking .b1 { animation-delay: -0.15s; }
.mascot.is-talking .b2 { animation-delay: -0.32s; }
.mascot.is-talking .b3 { animation-delay: -0.08s; }
.mascot.is-talking .b4 { animation-delay: -0.4s; }

@keyframes m-bar {
  from { transform: scaleY(0.5); }
  to { transform: scaleY(1.05); }
}

/* «Голос распознан» */
.hero-chip {
  position: absolute;
  top: 6%;
  right: 0;
  z-index: 2;
  display: grid;
  gap: 2px;
  padding: 10px 16px;
  border-radius: 14px;
  color: #fff;
  background: rgba(42, 31, 20, 0.88);
  box-shadow: 0 12px 28px rgba(42, 31, 20, 0.3);
  backdrop-filter: blur(6px);
}

.hero-chip small {
  color: #f5c57e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-chip strong {
  font-size: 14px;
  font-weight: 800;
}

.hero-chip.pop { animation: chip-pop 0.6s ease; }

@keyframes chip-pop {
  from { opacity: 0.55; }
  to { opacity: 1; }
}

.hero-pill-meet {
  position: absolute;
  top: calc(6% - 44px);
  right: 18px;
  z-index: 2;
}

@keyframes hero-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* карточка с живыми субтитрами */
.hero-card {
  position: absolute;
  bottom: 0;
  left: -2%;
  z-index: 2;
  width: min(330px, 92%);
  padding: 16px 18px 12px;
  border-radius: 20px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 22px 44px rgba(84, 56, 32, 0.24);
}

.hero-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted);
  font-family: 'Space Grotesk', 'Onest', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-card-head i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  animation: blink 2.4s ease-in-out infinite;
}

.hero-lines {
  display: grid;
  gap: 10px;
  height: 124px;          /* окошко не растёт: новые реплики снизу, старые уходят вверх */
  overflow: hidden;
  align-content: end;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 26px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 26px);
}

.hero-line {
  display: grid;
  justify-items: start;
  gap: 4px;
  animation: line-in 0.35s ease both;
}

.hero-line.leaving { animation: line-out 0.4s ease both; }

@keyframes line-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes line-out {
  to { opacity: 0; transform: translateY(-8px); }
}

.hero-tag {
  padding: 2px 8px;
  border-radius: 6px;
  color: #fff;
  background: #c26e5e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-line.s1 .hero-tag {
  color: #4a3313;
  background: #e0ad62;
}

.hero-line p {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

/* пока фраза не закончена — слова бледные, как в настоящем чате */
.hero-line p .w {
  opacity: 0.5;
  transition: opacity 0.5s ease;
  animation: word-in 0.3s ease both;
}

.hero-line p.done .w { opacity: 1; }

@keyframes word-in {
  from { opacity: 0; }
}

/* ---------- Прокрутка ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 3px;
  background: linear-gradient(90deg, var(--coral), var(--orange), var(--olive));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.shown {
  opacity: 1;
  transform: none;
}

/* Полоса прокрутки страницы — в цветах Voxly */
@supports (-moz-appearance: none) {
  html { scrollbar-color: var(--coral) var(--bg-alt); }
}

::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}

::-webkit-scrollbar-track {
  background: var(--bg-alt);
}

::-webkit-scrollbar-thumb {
  border: 4px solid var(--bg-alt);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--coral), var(--orange));
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  border-width: 3px;
  background: linear-gradient(180deg, #c05a42, #c97a2c);
  background-clip: padding-box;
}

::-webkit-scrollbar-corner {
  background: var(--bg-alt);
}

/* Общие секции */
.home-section {
  width: min(100% - 48px, 1160px);
  margin: 0 auto;
  padding: 96px 0;
}

.band {
  background: var(--bg-alt);
}

.section-heading {
  display: grid;
  gap: 14px;
  max-width: 720px;
  margin-bottom: 44px;
}

.section-heading.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
  justify-items: center;
}

.section-heading h2 {
  color: var(--ink);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 800;
  line-height: 1.12;
}

.section-heading p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

/* Вступление и возможности */
.intro {
  padding-top: 96px;
  padding-bottom: 88px;
  text-align: center;
}

.intro h2 {
  max-width: 860px;
  margin: 0 auto;
  color: var(--ink);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.3;
}

/* Выделенные слова — как наклеенные стикеры: чуть под углом, насыщенные */
.highlight {
  display: inline-block;
  margin: 4px 2px;
  padding: 0 14px 4px;
  border-radius: 12px;
  color: #fff;
  background: #d9573a;
  box-shadow: 0 3px 0 rgba(120, 40, 20, 0.22), 0 10px 20px rgba(150, 60, 30, 0.2);
  line-height: 1.25;
  white-space: nowrap;
  transform: rotate(-2deg);
}

.highlight.gold {
  color: var(--ink);
  background: #f2a83b;
  box-shadow: 0 3px 0 rgba(130, 80, 10, 0.22), 0 10px 20px rgba(170, 110, 20, 0.2);
  transform: rotate(1.5deg);
}

.intro > p {
  max-width: 560px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 20px;
  margin-top: 52px;
  text-align: left;
}

.feature-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover,
.feature-card:focus-visible,
.feature-card.open {
  border-color: var(--line-2);
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}

/* Подробности раскрываются плавно: при наведении мышью или по кнопке */
.feature-more {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.4s ease, opacity 0.3s ease;
}

.feature-more ul {
  display: grid;
  gap: 10px;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
}

.feature-more li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.5;
}

.feature-more li:first-child {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-2);
}

.feature-more li svg {
  width: 20px;
  height: 20px;
  padding: 3px;
  border-radius: 50%;
  color: var(--olive);
  background: var(--olive-soft);
  stroke-width: 2.4;
}

.feature-card.open .feature-more {
  grid-template-rows: 1fr;
  opacity: 1;
}

.feature-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  height: 36px;
  margin-top: 4px;
  padding: 0 14px 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.feature-toggle:hover {
  border-color: var(--ink-2);
}

.feature-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.feature-card.open .feature-toggle svg {
  transform: rotate(180deg);
}

/* С мышью подробности выезжают при наведении (и при фокусе с клавиатуры),
   кнопка «Подробнее» нужна только на телефоне и планшете */
@media (hover: hover) and (pointer: fine) {
  .feature-toggle {
    display: none;
  }

  .feature-card:hover .feature-more,
  .feature-card:focus-within .feature-more,
  .feature-card:focus .feature-more {
    grid-template-rows: 1fr;
    opacity: 1;
  }

  .feature-card:focus-visible {
    transform: translateY(-4px);
  }
}

.feature-icon,
.contact-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 6px;
  border-radius: 14px;
  color: var(--coral);
  background: var(--coral-soft);
}

.feature-icon svg,
.contact-icon svg {
  width: 22px;
  height: 22px;
}

.tone-orange { color: var(--orange); background: var(--orange-soft); }
.tone-olive { color: var(--olive); background: var(--olive-soft); }

.feature-card h3 {
  font-size: 19px;
  font-weight: 800;
}

.feature-card p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
}

/* Как это работает */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.steps::before {
  position: absolute;
  top: 24px;
  right: 16%;
  left: 48px;
  border-top: 2px dashed var(--line-2);
  content: '';
}

.step {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
}

.step-number {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  border: 6px solid var(--bg-alt);
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 0 0 1px var(--line-2);
  font-family: 'Space Grotesk', 'Onest', sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.step h3 {
  font-size: 21px;
  font-weight: 800;
}

.step p {
  max-width: 300px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
}

/* Отзывы */
.review-grid,
.pricing-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.quote-mark {
  height: 28px;
  color: var(--coral);
  font-family: Georgia, serif;
  font-size: 56px;
  line-height: 1;
}

.review-card p {
  flex: 1;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.6;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.author-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  background: var(--coral);
  font-size: 14px;
  font-weight: 800;
}

.author-avatar.gold { background: var(--orange); }
.author-avatar.olive { background: var(--olive); }

.author-name {
  font-size: 15px;
  font-weight: 800;
}

.author-role {
  color: var(--muted);
  font-size: 13px;
}

/* Тарифы */
.price-card {
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.price-card.featured {
  border: 2px solid var(--orange);
  background: linear-gradient(180deg, #fff8ee, var(--surface) 55%);
  box-shadow: 0 18px 40px rgba(217, 138, 58, 0.16);
}

.price-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 30px;
}

.price-card h3 {
  font-size: 22px;
  font-weight: 800;
}

.price-tag {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  color: #8a4f13;
  background: var(--orange-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.price-tag.green {
  color: #4f6128;
  background: var(--olive-soft);
}

.price-subtitle {
  min-height: 48px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.price-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 18px 0 22px;
  font-family: 'Space Grotesk', var(--font-body);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.price-value small {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}

.price-list {
  display: grid;
  gap: 12px;
  margin: 0 0 28px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.price-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.45;
}

.price-list svg {
  width: 20px;
  height: 20px;
  padding: 3px;
  border-radius: 50%;
  color: var(--olive);
  background: var(--olive-soft);
  stroke-width: 2.4;
}

.price-card .dark-button,
.price-card .ghost-button {
  width: 100%;
  margin-top: auto;
}

/* Связаться */
.contact-card > * {
  display: grid;
  align-content: start;
  gap: 6px;
  height: 100%;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: 0.15s ease;
}

.contact-card a:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
}

.contact-card h3 {
  font-size: 19px;
  font-weight: 800;
}

.contact-card p {
  color: var(--muted);
  font-size: 15px;
}

.contact-card .contact-value {
  margin-top: 8px;
  overflow-wrap: anywhere;
  color: var(--coral);
  font-size: 15px;
  font-weight: 800;
}

/* Призыв внизу */
.cta-section {
  position: relative;
  width: min(100% - 48px, 1380px);
  margin: 0 auto 32px;
  padding: 72px 24px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  color: #fff;
  background: linear-gradient(118deg, #c65f4a 0%, #c9733f 50%, #b9812f 100%);
  text-align: center;
}

.cta-section::after {
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  content: '';
}

.cta-section h2 {
  position: relative;
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 800;
  line-height: 1.1;
}

.cta-section h2 .script {
  color: #ffe7c2;
  font-size: 1.15em;
}

.cta-section p {
  position: relative;
  max-width: 520px;
  margin: 16px auto 28px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
}

.cta-section .light-button {
  position: relative;
}

.site-footer {
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(100% - 48px, 1380px);
  margin: 0 auto;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
}

.footer-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.footer-links a {
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--coral);
}

.footer-copy {
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
}

.footer-copy a {
  color: inherit;
  overflow-wrap: anywhere;
}

.footer-copy a:hover {
  color: var(--coral);
}

/* =====================================================================
   Чат и настройки — верхняя панель
   ===================================================================== */
.app-page,
.settings-page {
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
}

.app-topbar,
.settings-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 14px max(24px, calc((100% - 1440px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(234, 215, 189, 0.94);
  backdrop-filter: blur(10px);
}

.app-topbar .brand,
.settings-topbar .brand {
  margin-right: 8px;
}

.app-back,
.settings-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: 0.15s ease;
}

.app-back svg,
.settings-button svg {
  width: 17px;
  height: 17px;
}

.app-back:hover,
.settings-button:hover {
  border-color: var(--ink-2);
}

.app-topbar-spacer {
  flex: 1;
}

.save-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  color: #4f6128;
  background: var(--olive-soft);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.save-status svg {
  width: 17px;
  height: 17px;
}

/* =====================================================================
   Чат
   ===================================================================== */
.app-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 24px;
  width: min(100% - 48px, 1440px);
  margin: 0 auto;
  padding: 24px 0 32px;
}

.app-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.listen-card,
.transcript-panel,
.tip-card,
.settings-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.listen-card {
  padding: 22px;
}

.listen-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.listen-orb {
  --lvl: 0;
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  padding: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #e0705a, #e0a04f);
  box-shadow: 0 8px 20px rgba(210, 105, 79, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
}

/* кольцо вокруг кнопки растёт вместе с громкостью голоса */
.listen-orb::before {
  position: absolute;
  inset: -6px;
  border: 3px solid rgba(217, 120, 70, 0.35);
  border-radius: 50%;
  content: '';
  transform: scale(calc(1 + var(--lvl) * 0.45));
  opacity: calc(0.35 + var(--lvl));
  transition: transform 0.08s linear, opacity 0.08s linear;
}

.listen-orb:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 26px rgba(210, 105, 79, 0.38);
}

.listen-orb:active {
  transform: scale(0.94);
}

.orb-icon {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: #fff;
  transition: all 0.25s ease;
}

.listen-orb.idle {
  background: var(--ink);
  box-shadow: 0 8px 20px rgba(31, 28, 25, 0.25);
}

.listen-orb.idle::before {
  border-color: rgba(31, 28, 25, 0.12);
  transform: scale(1);
  opacity: 1;
  animation: orb-idle 2.4s ease-in-out infinite;
}

@keyframes orb-idle {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.08); opacity: 0.35; }
}

.listen-orb.idle:hover {
  box-shadow: 0 12px 26px rgba(31, 28, 25, 0.32);
}

.listen-orb.idle .orb-icon {
  width: 0;
  height: 0;
  margin-left: 6px;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 18px solid #fff;
  border-radius: 0;
  background: transparent;
}

/* Волна громкости */
.wave-box {
  position: relative;
  height: 72px;
  margin: 16px 0 14px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background:
    linear-gradient(90deg, rgba(210, 105, 79, 0.06), rgba(217, 138, 58, 0.08), rgba(125, 145, 70, 0.06)),
    var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
}

.wave-box canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.listen-copy {
  display: grid;
  flex: 1;
  gap: 2px;
  min-width: 0;
}

.listen-copy strong {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.listen-copy small {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.3;
}

.timer {
  margin-left: auto;
  font-family: 'Space Grotesk', 'Onest', sans-serif;
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.listen-card > p {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.55;
}

.listen-card > p.error {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: #8e2a1f;
  background: var(--danger-soft);
}

.listen-card > p.quiet-note {
  margin-top: 8px;
  color: #8a4f13;
  font-weight: 700;
}

.lang-field {
  display: grid;
  gap: 6px;
  margin-top: 16px;
}

.lang-field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.lang-field select,
.select-control select {
  width: 100%;
  height: 46px;
  padding: 0 40px 0 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%234a443e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 15px center;
  font-size: 15px;
  cursor: pointer;
  appearance: none;
}

.lang-field select:disabled,
.select-control select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Участники */
.participants-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 8px 4px 0;
}

.participants-title h2 {
  font-size: 18px;
  font-weight: 800;
}

.participants-title span {
  color: var(--muted);
  font-size: 13px;
}

.participant-list {
  display: grid;
  gap: 8px;
}

.participant {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 68px;
  padding: 10px 10px 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: border-color 0.15s ease;
}

.participant.active {
  border-color: var(--c, var(--line-2));
  box-shadow: 0 0 0 1px var(--c, transparent);
}

.participant-avatar,
.message-avatar,
.choice-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: var(--c, #a39a90);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.participant-info {
  display: grid;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.participant-info strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.participant-info small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.participant-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.participants-empty {
  padding: 16px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-md);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.tip-card {
  padding: 20px 22px;
  border-color: #f2d6c8;
  background: linear-gradient(145deg, #fdf0e8, #fbf4e6);
  box-shadow: none;
}

.tip-card h3 {
  margin-bottom: 6px;
  color: var(--coral);
  font-family: 'Caveat', cursive;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.tip-card p {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.6;
}

/* Лента */
.transcript-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.transcript-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}

.transcript-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
}

.transcript-title .script {
  color: var(--coral);
  font-size: 1.2em;
}

.transcript-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #4f6128;
  background: var(--olive-soft);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.privacy-badge svg {
  width: 15px;
  height: 15px;
}

.transcript-scroll {
  flex: 1;
  min-height: 520px;
  max-height: calc(100vh - 250px);
  overflow-y: auto;
  padding: 24px;
  background-color: var(--surface-2);
  background-image: radial-gradient(circle, rgba(119, 110, 101, 0.13) 1px, transparent 1px);
  background-size: 24px 24px;
  scrollbar-color: var(--line-2) transparent;
  scrollbar-width: thin;
}

.date-pill {
  width: max-content;
  margin: 0 auto 20px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  font-size: 13px;
  font-weight: 700;
}

.empty-state {
  max-width: 520px;
  margin: 56px auto;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  text-align: center;
}

.message-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 12px;
}

.message-avatar {
  width: 38px;
  height: 38px;
  font-size: 14px;
}

.message-row.neutral .message-avatar {
  color: var(--ink-2);
  background: var(--bg-alt);
}

.message-bubble {
  min-width: 0;
  max-width: min(900px, 86%);
  padding: 12px 16px 13px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--c, var(--line-2));
  border-radius: 18px 18px 18px 6px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(84, 56, 32, 0.05);
}

.message-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.message-meta .who,
.message-meta .speaker {
  color: var(--c, var(--ink-2));
  font-size: 14px;
  font-weight: 800;
}

.message-meta .who {
  margin: -3px -6px;
  padding: 3px 6px;
  border-radius: 8px;
  text-decoration: underline dotted;
  text-decoration-color: color-mix(in srgb, var(--c, #999) 50%, transparent);
  text-underline-offset: 3px;
}

.message-meta .who:hover {
  background: var(--bg-alt);
}

.message-meta .confirmed {
  color: var(--c, var(--olive));
  font-weight: 800;
}

.message-text {
  color: var(--ink);
  font-size: var(--caption-size);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.message-time {
  margin-left: auto;
  padding-left: 8px;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.unsure {
  opacity: 0.7;
}

.tone {
  display: inline-block;
  margin-right: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  color: #fff;
  background: var(--c, var(--orange));
  font-size: 0.5em;
  font-weight: 800;
  vertical-align: middle;
}

.who-input {
  width: 100%;
  max-width: 260px;
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  border: 2px solid var(--c, var(--orange));
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  font-size: 15px;
  font-weight: 800;
}

.who-input:focus {
  outline: none;
  box-shadow: var(--focus);
}

/* то, что говорится прямо сейчас */
.current-message .message-bubble {
  border-style: dashed;
  border-left-style: solid;
  background: #fffaf2;
}

.current-message .message-text {
  color: var(--muted);
}

.current-message .message-text::after {
  color: var(--c, var(--orange));
  content: ' ▍';
  animation: blink 1s steps(2) infinite;
}

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

.live-label {
  align-self: center;
  color: var(--c, var(--orange));
  font-size: 13px;
  font-weight: 800;
}

.transcript-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 12px 24px;
  border-top: 1px solid var(--line);
}

.transcript-footer > span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
}

.footer-tools {
  display: flex;
  gap: 8px;
}

.live-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.14);
}

.live-dot.off {
  background: var(--line-2);
  box-shadow: none;
}

/* Цвета собеседников: насыщенные, читаются на светлом фоне */
.c0 { --c: #3d63c7; }
.c1 { --c: #c4513a; }
.c2 { --c: #3f7d3a; }
.c3 { --c: #7a4bc2; }
.c4 { --c: #a8620f; }
.c5 { --c: #1c7d85; }

/* =====================================================================
   Настройки
   ===================================================================== */
.settings-heading {
  width: min(100% - 48px, 1440px);
  margin: 0 auto;
  padding: 36px 0 24px;
}

.settings-heading h1 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  line-height: 1;
}

.settings-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  width: min(100% - 48px, 1440px);
  margin: 0 auto;
  padding-bottom: 48px;
}

.settings-nav {
  position: sticky;
  top: 100px;
  align-self: start;
  display: grid;
  gap: 6px;
}

.settings-nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 56px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  transition: 0.15s ease;
}

.settings-nav button:hover {
  color: var(--ink);
  background: var(--surface);
}

.settings-nav button.active {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.settings-nav-icon,
.card-heading-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: var(--coral);
  background: var(--coral-soft);
}

.settings-nav-icon svg {
  width: 18px;
  height: 18px;
}

.settings-nav button:nth-child(2) .settings-nav-icon,
.card-heading-icon.mic { color: var(--olive); background: var(--olive-soft); }
.settings-nav button:nth-child(3) .settings-nav-icon,
.card-heading-icon.language { color: #3d63c7; background: #e4eafb; }
.settings-nav button:nth-child(4) .settings-nav-icon,
.card-heading-icon.voice { color: #7a4bc2; background: #eee5fa; }
.settings-nav button:nth-child(5) .settings-nav-icon,
.card-heading-icon.data { color: var(--orange); background: var(--orange-soft); }
.settings-nav button:nth-child(6) .settings-nav-icon,
.card-heading-icon.events { color: var(--olive); background: var(--olive-soft); }

.settings-content {
  min-width: 0;
}

.settings-card {
  padding: 28px;
}

.card-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.card-heading-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.card-heading-icon svg {
  width: 22px;
  height: 22px;
}

.card-heading h2 {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.card-heading p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.setting-label {
  display: grid;
  gap: 3px;
}

.setting-label strong {
  font-size: 15px;
  font-weight: 800;
}

.setting-label small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.text-setting-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 32px;
}

.font-control {
  padding-bottom: 18px;
}

.font-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 800;
}

.font-label output {
  color: var(--coral);
  font-family: 'Space Grotesk', 'Onest', sans-serif;
  font-size: 20px;
}

.range-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.range-button {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.range-button:hover {
  border-color: var(--ink-2);
}

input[type='range'] {
  flex: 1;
  width: 100%;
  height: 8px;
  margin: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--orange) var(--range-progress, 50%), var(--bg-alt) var(--range-progress, 50%));
  cursor: pointer;
  appearance: none;
}

input[type='range']::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 2px 8px rgba(84, 56, 32, 0.3);
  appearance: none;
}

input[type='range']::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 2px 8px rgba(84, 56, 32, 0.3);
}

.preview-wrap {
  display: grid;
  align-content: start;
  gap: 10px;
}

.preview-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.subtitle-preview {
  --c: #3d63c7;
  position: relative;
  padding: 16px 18px 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--c);
  border-radius: 18px 18px 18px 6px;
  background: #fff;
}

.subtitle-preview .preview-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c);
  font-size: 14px;
  font-weight: 800;
}

.subtitle-preview .preview-name svg {
  width: 14px;
  height: 14px;
}

.subtitle-preview p {
  margin-top: 4px;
  font-size: var(--preview-size, 26px);
  line-height: 1.4;
  transition: font-size 0.15s ease;
}

.subtitle-preview .preview-time {
  position: absolute;
  top: 16px;
  right: 18px;
  color: var(--muted);
  font-size: 13px;
}

.toggle {
  position: relative;
  flex: 0 0 auto;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: var(--line-2);
  transition: background 0.15s ease;
}

.toggle::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  content: '';
  transition: transform 0.15s ease;
}

.toggle.on {
  background: var(--orange);
}

.toggle.on::after {
  transform: translateX(22px);
}

.microphone-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.8fr);
  gap: 16px;
}

.select-control,
.signal-meter {
  display: grid;
  gap: 8px;
  align-content: start;
}

.select-control label,
.signal-meter label {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 800;
}

.signal-bars {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: #fff;
}

.signal-bars i {
  display: block;
  width: 5px;
  border-radius: 99px;
  background: var(--bg-alt);
  transition: background 0.1s linear;
}

.signal-bars i:nth-child(3n + 1) { height: 12px; }
.signal-bars i:nth-child(3n + 2) { height: 20px; }
.signal-bars i:nth-child(3n) { height: 16px; }
.signal-bars i.on { background: var(--olive); }
.signal-bars i.on:nth-child(n + 8) { background: var(--orange); }
.signal-bars i.on:nth-child(n + 11) { background: var(--coral); }

.mic-test-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.mic-test-row small {
  color: var(--muted);
  font-size: 14px;
}

.settings-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  color: var(--ink-2);
  background: var(--orange-soft);
  font-size: 14px;
  line-height: 1.6;
}

.settings-note svg {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--orange);
}

.settings-subtitle {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 26px 0 12px;
  font-size: 16px;
  font-weight: 800;
}

.card-heading + .settings-subtitle {
  margin-top: 0;
}

.settings-subtitle small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.settings-inline-hint {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.voice-grid,
.data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.data-grid {
  margin-bottom: 8px;
}

.choice-card,
.data-action {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 72px;
  padding: 12px 12px 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.data-action {
  justify-content: space-between;
  padding-right: 18px;
  transition: 0.15s ease;
}

.data-action:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow-card);
}

.data-action svg {
  width: 20px;
  height: 20px;
  color: var(--muted);
}

.data-action.danger.armed {
  border-color: var(--danger);
  background: var(--danger-soft);
}

.data-action.danger.armed strong,
.data-action.danger.armed svg {
  color: var(--danger);
}

.data-action-copy,
.voice-card-copy {
  display: grid;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.data-action-copy strong,
.voice-card-copy strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-action-copy small,
.voice-card-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-card .choice-avatar {
  width: 40px;
  height: 40px;
}

.voice-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

/* Всплывающее сообщение */
.toast {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 14px 12px 18px;
  border-radius: var(--radius-md);
  color: #fff;
  background: var(--ink);
  box-shadow: 0 14px 32px rgba(31, 28, 25, 0.25);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.visible {
  opacity: 1;
  transform: none;
}

.toast button {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--ink);
  background: #ffe7c2;
  font-size: 14px;
  font-weight: 800;
}

/* =====================================================================
   Лёгкие анимации при наведении и нажатии — для всего, что их ещё не имело
   ===================================================================== */
a,
button,
select,
input {
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.18s ease;
}

/* нажатие: кнопка чуть «проседает» */
.dark-button:active,
.ghost-button:active,
.light-button:active,
.icon-button:active,
.subscribe-button:active,
.pill-button:active,
.row-icon:active,
.nav-link:active,
.nav-action:active,
.app-back:active,
.settings-button:active,
.range-button:active,
.feature-toggle:active,
.settings-nav button:active,
.data-action:active,
.mobile-menu-button:active,
.hero-outline-button:active,
.toast button:active {
  transform: scale(0.96);
}

/* пункты меню: снизу вырастает линия */
.nav-link {
  position: relative;
}

.nav-link::after {
  position: absolute;
  right: 14px;
  bottom: 6px;
  left: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--coral);
  content: '';
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link svg,
.nav-action svg,
.app-back svg,
.settings-button svg,
.dark-button svg,
.ghost-button svg {
  transition: transform 0.25s ease;
}

.nav-link:hover svg,
.nav-action:hover svg {
  transform: translateY(-1px) scale(1.12);
}

.settings-button:hover svg {
  transform: rotate(60deg);
}

.app-back:hover svg {
  transform: translateX(-3px);
}

.nav-action:hover,
.icon-button:hover,
.subscribe-button:hover,
.pill-button:hover,
.range-button:hover,
.app-back:hover,
.settings-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(84, 56, 32, 0.12);
}

.row-icon:hover {
  transform: scale(1.1);
}

/* карточки приподнимаются */
.review-card,
.price-card,
.step,
.participant,
.choice-card,
.message-bubble,
.tip-card,
.settings-note {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.review-card:hover,
.price-card:hover,
.choice-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.price-card.featured:hover {
  box-shadow: 0 22px 46px rgba(217, 138, 58, 0.24);
}

.participant:hover {
  transform: translateX(3px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-card);
}

.message-bubble:hover {
  box-shadow: 0 8px 20px rgba(84, 56, 32, 0.1);
}

.tip-card:hover {
  transform: rotate(-0.6deg) translateY(-2px);
}

/* мелкие детали внутри карточек */
.quote-mark,
.author-avatar,
.feature-icon,
.contact-icon,
.step-number,
.price-list svg,
.participant-avatar,
.message-avatar,
.choice-avatar,
.settings-nav-icon,
.card-heading-icon {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, color 0.2s ease;
}

.review-card:hover .quote-mark {
  transform: translateY(-3px) rotate(-8deg);
}

.review-card:hover .author-avatar,
.participant:hover .participant-avatar,
.choice-card:hover .choice-avatar,
.message-row:hover .message-avatar {
  transform: scale(1.08);
}

.feature-card:hover .feature-icon,
.contact-card > *:hover .contact-icon {
  transform: rotate(-8deg) scale(1.1);
}

.step:hover .step-number {
  color: #fff;
  background: var(--coral);
  transform: scale(1.1);
}

.price-card:hover .price-list svg {
  transform: scale(1.12);
}

.settings-nav button:hover .settings-nav-icon {
  transform: scale(1.1) rotate(-6deg);
}

.settings-card:hover .card-heading-icon {
  transform: rotate(-6deg);
}

/* поля и переключатели */
.lang-field select:hover:not(:disabled),
.select-control select:hover:not(:disabled) {
  border-color: var(--ink-2);
}

.toggle:hover {
  box-shadow: 0 0 0 4px rgba(217, 138, 58, 0.15);
}

.toggle:active::after {
  width: 30px;
}

.toggle.on:active::after {
  transform: translateX(16px);
}

input[type='range']::-webkit-slider-thumb {
  transition: transform 0.2s ease;
}

input[type='range']:hover::-webkit-slider-thumb {
  transform: scale(1.15);
}

.date-pill,
.privacy-badge,
.price-tag,
.save-status {
  transition: transform 0.2s ease;
}

.date-pill:hover,
.privacy-badge:hover,
.price-tag:hover {
  transform: scale(1.04);
}

.highlight {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.highlight:hover {
  transform: rotate(0deg) scale(1.04);
}

.contact-card .contact-value {
  transition: letter-spacing 0.2s ease;
}

.contact-card a:hover .contact-value {
  letter-spacing: 0.02em;
}

/* =====================================================================
   Адаптивность
   ===================================================================== */
@media (max-width: 1180px) {
  .nav-link {
    padding: 0 10px;
    font-size: 13px;
  }

  .nav-link svg {
    display: none;
  }
}

@media (max-width: 980px) {
  .site-nav {
    height: 76px;
  }

  .nav-menu {
    display: none;
  }

  .mobile-menu-button {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    background: var(--surface);
  }

  .mobile-menu-button svg {
    width: 20px;
    height: 20px;
  }

  .site-nav.menu-open .nav-menu {
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    z-index: 30;
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
  }

  .site-nav.menu-open .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .site-nav.menu-open .nav-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

  .site-nav.menu-open .nav-link,
  .site-nav.menu-open .nav-action {
    justify-content: flex-start;
    height: 48px;
    font-size: 15px;
  }

  .site-nav.menu-open .nav-action {
    justify-content: center;
  }

  .site-nav.menu-open .nav-link svg {
    display: block;
  }

  .feature-grid,
  .review-grid,
  .pricing-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .steps::before {
    top: 24px;
    bottom: 24px;
    left: 23px;
    right: auto;
    border-top: 0;
    border-left: 2px dashed var(--line-2);
  }

  .step {
    grid-template-columns: 48px 1fr;
    column-gap: 18px;
  }

  .step-number {
    grid-row: span 2;
    margin: 0;
  }

  .app-layout,
  .settings-layout {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .listen-card,
  .participants-title,
  .participant-list,
  .tip-card {
    grid-column: 1 / -1;
  }

  .participant-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settings-nav {
    position: static;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .settings-nav button {
    flex: 0 0 auto;
    width: auto;
    height: 48px;
    padding: 0 14px 0 8px;
    border-color: var(--line);
    background: var(--surface);
  }

  .settings-nav-icon {
    width: 32px;
    height: 32px;
  }

  .text-setting-layout,
  .microphone-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .site-nav,
  .hero-wrap,
  .home-section,
  .cta-section,
  .site-footer {
    width: min(100% - 28px, 1160px);
  }

  .brand {
    font-size: 26px;
  }


  .privacy-badge {
    display: none;
  }

  .home-section {
    padding: 64px 0;
  }

  .intro {
    padding-top: 56px;
  }

  .intro > p {
    font-size: 16px;
  }

  .feature-card,
  .review-card,
  .price-card,
  .contact-card > * {
    padding: 22px;
  }

  .cta-section {
    padding: 52px 20px;
  }

  .site-footer {
    flex-wrap: wrap;
    gap: 14px 24px;
  }

  .footer-links {
    order: 3;
    width: 100%;
    margin: 0;
  }

  /* чат на телефоне: субтитры сразу под кнопкой */
  .app-topbar,
  .settings-topbar {
    min-height: 64px;
    padding: 10px 14px;
    gap: 8px;
  }

  .app-back,
  .settings-button,
  .save-status {
    height: 40px;
    padding: 0 12px;
  }

  .app-back span,
  .save-status span,
  .settings-button span {
    display: none;
  }

  .save-status,
  .settings-button {
    width: 40px;
    padding: 0;
    justify-content: center;
  }

  .app-layout,
  .settings-heading,
  .settings-layout {
    width: min(100% - 24px, 1440px);
  }

  .app-layout {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 14px;
  }

  .app-sidebar {
    display: contents;
  }

  .listen-card { order: 1; padding: 16px; }
  .transcript-panel { order: 2; }
  .participants-title { order: 3; margin-top: 4px; }
  .participant-list { order: 4; grid-template-columns: 1fr; }
  .tip-card { order: 5; }

  .listen-card.is-busy .lang-field,
  .listen-card.is-busy > #statusText:not(.error) {
    display: none;
  }


  .transcript-header {
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 16px;
  }

  .transcript-title {
    font-size: 22px;
  }

  .transcript-meta {
    justify-content: space-between;
    width: 100%;
  }

  .transcript-scroll {
    min-height: 55vh;
    max-height: 72vh;
    padding: 16px 12px;
  }

  .message-row {
    gap: 8px;
  }

  .message-avatar {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .message-bubble {
    max-width: calc(100% - 40px);
    padding: 10px 12px 11px;
  }

  .live-label {
    display: none;
  }

  .transcript-footer {
    padding: 10px 12px 10px 16px;
  }

  .settings-card {
    padding: 20px 16px;
  }

  .voice-grid,
  .data-grid {
    grid-template-columns: 1fr;
  }

  .setting-row {
    gap: 14px;
  }

  .toast {
    right: 12px;
    bottom: 12px;
    left: 12px;
    max-width: none;
  }
}

/* Hero на планшете и телефоне: текст сверху, сцена снизу */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 40px 28px 28px;
  }

  .hero-copy { max-width: none; }
  .hero-pill-float { display: none; }
  .hero-stage { min-height: 420px; }
  .mascot { width: min(62%, 300px); translate: 16% -22%; }
}

@media (max-width: 650px) {
  .hero {
    padding: 30px 20px 20px;
    border-width: 4px;
    border-radius: var(--radius-lg);
  }

  .hero-tags { margin-bottom: 4px; }
  .hero-actions { display: grid; width: 100%; }
  .hero-stage { min-height: 400px; }
  .mascot { width: 74%; translate: 10% -30%; }
  .hero-chip { top: 2%; padding: 8px 12px; }
  .hero-pill-meet { display: none; }
  .hero-card { width: 100%; }
}

/* ---------- Выбор языка сайта: всплывающее меню ---------- */
.lang-menu {
  position: relative;
}

.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px 0 11px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(84, 56, 32, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lang-trigger svg { width: 18px; height: 18px; color: var(--coral); }
.lang-trigger .lang-caret { width: 14px; height: 14px; color: var(--muted); transition: transform 0.25s ease; }
.lang-trigger:hover { border-color: var(--coral); }
.lang-trigger:focus-visible { outline: none; box-shadow: var(--focus); }
.lang-menu.open .lang-caret { transform: rotate(180deg); }

.lang-pop {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  display: grid;
  gap: 2px;
  min-width: 190px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 18px 40px rgba(84, 56, 32, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.97);
  transform-origin: top right;
  transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0.22s;
}

/* маленький «хвостик» к кнопке */
.lang-pop::before {
  position: absolute;
  top: -6px;
  right: 22px;
  width: 12px;
  height: 12px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--surface);
  transform: rotate(45deg);
  content: '';
}

.lang-menu.open .lang-pop {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s;
}

.lang-pop button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 0 12px 0 14px;
  border-radius: 12px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 700;
  text-align: left;
}

.lang-pop button:hover,
.lang-pop button:focus-visible {
  outline: none;
  background: var(--surface-2);
}

.lang-pop button.active {
  color: var(--coral);
  background: var(--coral-soft);
}

.lang-check { width: 18px; height: 18px; opacity: 0; }
.lang-pop button.active .lang-check { opacity: 1; }

/* в мобильном меню — раскрывается вниз по ширине */
@media (max-width: 980px) {
  .nav-menu .lang-pop { left: 0; right: auto; transform-origin: top left; }
  .nav-menu .lang-pop::before { left: 22px; right: auto; }
}

@media (max-width: 650px) {
  .settings-topbar .save-status { display: none; }
}


/* =====================================================================
   Окно «Тарифы в разработке»
   ===================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(40, 28, 18, 0.42);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.modal-backdrop.visible {
  opacity: 1;
}

.modal {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(420px, 100%);
  padding: 34px 28px 28px;
  border-radius: var(--radius-lg);
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 28px 60px rgba(60, 38, 20, 0.28);
  text-align: center;
  transform: translateY(12px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-backdrop.visible .modal {
  transform: none;
}

.modal h2 {
  margin: 4px 0 0;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}

.modal p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.modal-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  color: var(--orange);
  background: var(--orange-soft);
}

.modal-icon svg {
  width: 26px;
  height: 26px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
}

.modal-close:hover {
  color: var(--ink);
  background: var(--coral-soft);
}

.modal-close svg {
  width: 18px;
  height: 18px;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

@media (max-width: 650px) {
  .modal { padding: 30px 20px 22px; }
  .modal h2 { font-size: 21px; }
  .modal-actions { flex-direction: column; width: 100%; }
  .modal-actions > * { width: 100%; }
  .hero-lines { height: 116px; }
}

@media (prefers-reduced-motion: reduce) {
  .modal-backdrop, .modal { transition: none; }
}


/* «Voxly» в текстах главной — рукописным шрифтом логотипа, по размеру вровень с соседними словами */
.vx {
  font-family: 'Caveat', cursive;
  font-size: 1.32em;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 0;
  white-space: nowrap;
}

.vx {
  padding: 0 0.04em;
  -webkit-text-stroke: 0.012em currentColor;
}

/* в жирных заголовках — чуть плотнее, чтобы не выглядело тоньше соседних слов */
h1 .vx,
h2 .vx,
h3 .vx {
  font-weight: 700;
  font-size: 1.28em;
  -webkit-text-stroke: 0.03em currentColor;
}

/* =====================================================================
   Настройки → Мероприятия: ссылка и QR-код
   ===================================================================== */
.select-control input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.select-control input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: var(--focus);
}

.invite-box {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.invite-qr {
  display: grid;
  place-items: center;
  width: 180px;
  aspect-ratio: 1;
  border-radius: 12px;
  background: #fff;
  color: var(--muted);
}

.invite-qr svg {
  width: 100%;
  height: 100%;
}

.invite-qr:empty {
  background: repeating-linear-gradient(45deg, #fff 0 10px, #faf3ea 10px 20px);
}

.invite-side {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.invite-link {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink-2);
  background: #fff;
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.invite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.invite-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 650px) {
  .invite-box { grid-template-columns: 1fr; justify-items: center; }
  .invite-qr { width: min(220px, 100%); }
  .invite-side { width: 100%; }
  .invite-actions > * { flex: 1 1 100%; }
}
