/* 1Call24: стили. Выбор Романа 21.10: Manrope + Inter, персонаж по центру, тёмная палитра. */
:root {
  --bg: #0B0D0C;
  --surface: #141816;
  --line: #2A302C;
  --accent: #B6FF2E;
  --accent-ink: #0B0D0C;
  --text: #F2F5F0;
  --muted: #9AA39C;
  --glow: rgba(182, 255, 46, .22);
  --font-head: "Manrope", "Noto Sans Armenian", system-ui, sans-serif;
  --font-body: "Inter", "Noto Sans Armenian", system-ui, sans-serif;
  --cut: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 18px; line-height: 1.55; overflow-x: hidden;
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 800; line-height: 1.12; margin: 0; letter-spacing: -.015em; }
h3 { font-size: 21px; font-weight: 700; }
p { margin: 0; }
em { font-style: normal; color: var(--accent); }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); font-size: 16px; }

/* ── кнопки и «технические» рамки ── */
.btn {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none; cursor: pointer;
  font: 600 17px/1.2 var(--font-body); padding: 16px 24px; border: 0;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}
.btn--main { background: var(--accent); color: var(--accent-ink); }
.btn--main:hover { filter: brightness(1.08); }
.btn--ghost { background: transparent; color: var(--text); position: relative; }
.btn--ghost::before, .btn--ghost::after { content: ""; position: absolute; width: 12px; height: 12px; border: 2px solid var(--accent); }
.btn--ghost::before { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.btn--ghost::after { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.btn__num { font-family: var(--font-head); font-weight: 800; font-size: 20px; white-space: nowrap; }
.label { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.label::before { content: "+"; color: var(--accent); font-weight: 700; }
.frame { position: relative; background: var(--surface); border: 1px solid var(--line);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }

/* ── шапка ── */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { font-family: var(--font-head); font-weight: 800; font-size: 23px; text-decoration: none; }
.logo b { color: var(--accent); font-weight: inherit; }
.top nav { display: flex; gap: 28px; align-items: center; }
.top nav a { text-decoration: none; color: var(--muted); font-size: 16px; }
.top nav a:hover { color: var(--text); }
.top .btn { padding: 11px 18px; font-size: 15px; color: var(--accent-ink); }
.langs { display: flex; gap: 6px; font-size: 14px; }
.langs button { background: none; border: 1px solid var(--line); color: var(--muted); padding: 4px 8px; cursor: pointer; font: inherit; }
.langs button[aria-pressed="true"] { color: var(--text); border-color: var(--accent); }
.langs button:disabled { opacity: .45; cursor: default; }

/* ── 1. первый экран ── */
.hero { position: relative; min-height: calc(100vh - 68px); display: grid; overflow: hidden; }
@media (min-width: 861px) { .hero { grid-template-rows: 1fr auto; } .hero__in { align-self: center; } }
.hero::after { content: ""; position: absolute; left: -20%; top: 30%; width: 60%; height: 70%; background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none; }
.hero__in { position: relative; z-index: 2; padding-block: 56px 32px; }
.hero__in::before { content: ""; position: absolute; inset: 0 auto 0 -16px; width: min(780px, 100%); z-index: -1;
  background: linear-gradient(90deg, transparent 0%, color-mix(in srgb, var(--bg) 88%, transparent) 30%, color-mix(in srgb, var(--bg) 88%, transparent) 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }
.hero__text { max-width: 860px; display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: clamp(30px, 3.1vw, 46px); }
.hero h1 em { white-space: nowrap; }
.hero__sub { color: var(--muted); font-size: 20px; max-width: 520px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 8px; }
.hero__actions { flex-direction: column; align-items: flex-start; gap: 10px; }
.hero__note { color: var(--muted); font-size: 15px; margin-bottom: 6px; }
.hero__meta { position: relative; z-index: 2; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; letter-spacing: .08em; padding: 12px 0 18px; text-transform: uppercase; }
.stage { position: absolute; inset: 0 0 56px 30%; z-index: 1; display: grid; place-items: center; }
.mascot { position: absolute; inset: 0; display: block;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%), linear-gradient(180deg, #000 78%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0%, #000 38%), linear-gradient(180deg, #000 78%, transparent 100%); mask-composite: intersect; }
.mascot img { width: 100%; height: 100%; object-fit: cover; object-position: 78% 30%; }
.mascot__turn { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% 30%; opacity: 0; transition: opacity .4s, filter .4s; }
.mascot.is-live .mascot__turn { opacity: 1; animation: breathe 4.5s ease-in-out infinite; }
.mascot.is-live.is-near .mascot__turn { filter: brightness(1.08) saturate(1.06); }
@keyframes breathe { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-3px) scale(1.006); } }
.wave { position: absolute; left: 0; right: 0; top: 50%; height: 160px; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; gap: 4px; pointer-events: none; opacity: .9; }
.wave i { width: 4px; border-radius: 2px; background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 30%, transparent)); animation: wave 1.6s ease-in-out infinite; }
@keyframes wave { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }

/* ── общие секции ── */
section.block { padding-block: 96px; border-top: 1px solid var(--line); scroll-margin-top: 68px; }
.block__head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; max-width: 780px; }
.block h2 { font-size: clamp(28px, 3.4vw, 44px); }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card__num { font-family: var(--font-head); font-weight: 800; color: var(--accent); font-size: 15px; letter-spacing: .06em; }
.card p { color: var(--muted); font-size: 17px; }

/* 2. калькулятор */
.calc { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; }
.calc__fields { padding: 32px; display: grid; gap: 28px; }
.field { display: grid; gap: 10px; }
.field__top { display: flex; justify-content: space-between; gap: 12px; font-size: 17px; }
.field__top output { font-family: var(--font-head); font-weight: 800; color: var(--accent); }
input[type="range"] { width: 100%; accent-color: var(--accent); height: 28px; }
.calc__result { padding: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.calc__sum { white-space: nowrap; font-family: var(--font-head); font-weight: 800; font-size: clamp(32px, 4vw, 58px); line-height: 1; color: var(--accent); }
.calc__caption { font-size: 20px; }
.calc__formula { color: var(--muted); font-size: 16px; }

/* 3. как это звучит */
.sound { display: grid; grid-template-columns: 1.3fr .7fr; gap: 20px; }
.player { padding: 28px; display: flex; align-items: center; gap: 20px; min-height: 160px; }
.player__btn { width: 64px; height: 64px; flex: none; border: 0; background: var(--accent); color: var(--accent-ink); font-size: 22px; cursor: not-allowed;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); }
.player__ph { color: var(--muted); font-size: 16px; flex: 0 0 auto; max-width: 260px; }
.player .wave { position: static; transform: none; height: 60px; justify-content: flex-start; flex: 1 1 0; min-width: 0; overflow: hidden; }
.sound__side { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.sound__num { font-family: var(--font-head); font-weight: 800; font-size: 24px; text-decoration: none; }

/* 5. шаги */
.steps .card { min-height: 220px; }
.steps__note { margin-top: 24px; font-size: 20px; }

/* 6. для кого */
.who { grid-template-columns: repeat(4, 1fr); }
.who__tile { text-align: left; font: 600 18px/1.3 var(--font-body); color: var(--text); padding: 22px; cursor: pointer; min-height: 132px;
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; gap: 14px; align-items: start; }
.who__tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.who__icon { width: 32px; height: 32px; fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s; }
.who__tile:hover .who__icon, .who__tile[aria-expanded="true"] .who__icon { stroke: var(--accent); }
.who__name { grid-column: 1 / -1; align-self: end; }
.who__tile::after { content: "+"; grid-column: 2; grid-row: 1; color: var(--accent); font-size: 22px; line-height: 1; transition: transform .2s; }
.who__tile[aria-expanded="true"] { box-shadow: inset 0 0 0 1px var(--accent); }
.who__tile[aria-expanded="true"]::after { transform: rotate(45deg); }
.who__dialog { grid-column: 1 / -1; padding: 24px 28px; }
.who__dialog[hidden] { display: none; }
.chat { display: flex; flex-direction: column; gap: 10px; max-width: 760px; margin-inline: auto; }
.chat__msg { max-width: 78%; padding: 12px 16px; font-size: 17px; line-height: 1.45; border: 1px solid var(--line); background: var(--bg); }
.chat__msg--c { align-self: flex-start; }
.chat__msg--a { align-self: flex-end; border-left: 3px solid var(--accent); }
.chat__who { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 4px; }
.chat__msg--a .chat__who { color: var(--accent); }
.chat__msg--a .chat__who::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: 1px; }
.who__note { margin-top: 20px; }

/* 7. интеграции: бегущие ленты */
.marquee { display: grid; gap: 14px; }
.marquee__row { overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%); }
.marquee__track { display: flex; width: max-content; }
.marquee__set { display: flex; gap: 12px; padding-right: 12px; }
.marquee__track--left { animation: mq-left 40s linear infinite; }
.marquee__track--right { animation: mq-right 55s linear infinite; }
.marquee__row:hover .marquee__track { animation-play-state: paused; }
@keyframes mq-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes mq-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; font-weight: 600; font-size: 17px; white-space: nowrap; color: var(--text); }
.chip img { display: block; }

/* 8. кабинет */
.cab { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }
.cab__text { display: flex; flex-direction: column; gap: 16px; }
.cab__text p { color: var(--muted); }
.cab__ui { padding: 0; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; font-size: 15px; }
.cab__col { padding: 22px; display: grid; gap: 10px; align-content: start; }
.cab__col + .cab__col { border-left: 1px solid var(--line); }
.cab__h { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .07em; }
.cab__row { display: grid; grid-template-columns: 52px 46px 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s; }
.cab__row.in { opacity: 1; transform: none; }
.cab__row span:last-child { color: var(--accent); }
.cab__line { font-size: 14px; color: var(--muted); }
.cab__line b { color: var(--text); font-weight: 600; }
.cab__stats { grid-column: 1 / -1; border-top: 1px solid var(--line); padding: 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cab__stat { display: grid; gap: 4px; }
.cab__stat strong { font-family: var(--font-head); font-weight: 800; font-size: 28px; }
.cab__stat span { color: var(--muted); font-size: 13px; }
.cab__stat--ok strong { color: var(--accent); }

/* 9. тарифы */
.plan { padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.plan--hit { box-shadow: inset 0 0 0 1px var(--accent); }
.plan__hit { align-self: flex-start; background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 700; padding: 4px 10px; text-transform: uppercase; letter-spacing: .05em; }
.plan h3 { font-size: 26px; }
.plan__what { color: var(--muted); font-size: 17px; flex: 1; }
.plan__price { display: grid; gap: 4px; border-top: 1px solid var(--line); padding-top: 16px; }
.plan__price span { color: var(--muted); font-size: 14px; }
.plan__price strong { font-family: var(--font-head); font-weight: 800; font-size: 24px; }
.price__foot { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }

/* 10. два варианта голоса */
.law__sub { color: var(--muted); font-size: 19px; max-width: 680px; }
.cmp__card h3 { font-size: 26px; }
.cmp__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cmp__list li { position: relative; padding-left: 28px; font-size: 17px; color: var(--muted); }
.cmp__list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.law__help { margin-top: 28px; font-size: 20px; max-width: 820px; }
.law__note { margin-top: 12px; font-size: 15px; max-width: 820px; }
.law__cta { margin-top: 24px; }

/* 11. кто делает */
.me { display: grid; grid-template-columns: .7fr 1.3fr; gap: 40px; align-items: center; }
.me__photo { display: block; aspect-ratio: 4 / 5; padding: 0; }
.me__photo img, .form-photo__pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.me__photo img { object-position: 50% 20%; }
.form-photo { margin: 8px 0 0; display: grid; gap: 10px; max-width: 320px; }
.form-photo__pic { display: block; aspect-ratio: 1 / 1; }
.form-photo__pic img { object-position: 55% 22%; }
#form h2 em { white-space: nowrap; }
.form-photo figcaption { font-size: 14px; color: var(--muted); }
.me__text { display: flex; flex-direction: column; gap: 18px; }
.me__text h2 { font-size: clamp(32px, 4vw, 52px); }
.me__text p { font-size: 20px; color: var(--muted); max-width: 620px; }
.me__links { display: flex; gap: 12px; flex-wrap: wrap; }

/* 12. вопросы */
.faq { display: grid; gap: 12px; max-width: 900px; }
.faq details { padding: 22px 26px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 24px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin-top: 12px; font-size: 17px; }

/* 13. заявка */
.form-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.form-side { display: flex; flex-direction: column; gap: 18px; }
.form-side p { color: var(--muted); font-size: 19px; }
form.lead { padding: 32px; display: grid; gap: 18px; }
.inp { display: grid; gap: 8px; font-size: 15px; color: var(--muted); }
.inp input, .inp select { font: 17px var(--font-body); color: var(--text); background: var(--bg); border: 1px solid var(--line); padding: 14px 16px; border-radius: 0; width: 100%; }
.inp input:focus, .inp select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.consent input { width: 20px; height: 20px; accent-color: var(--accent); margin-top: 2px; flex: none; }
.consent a { color: var(--text); }
form.lead .btn { justify-content: center; }
form.lead .btn:disabled { opacity: .45; cursor: not-allowed; }
.form__status { font-size: 15px; color: var(--accent); min-height: 1.4em; margin: 0; }
.form__status.is-bad { color: #FF8A7A; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* подвал */
footer { border-top: 1px solid var(--line); padding-block: 40px; color: var(--muted); font-size: 15px; }
.foot { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.foot a { color: var(--muted); }

/* ── анимация появления ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .35s ease-out, transform .35s ease-out; }
.reveal.in { opacity: 1; transform: none; }

/* ── телефон и планшет ── */
@media (max-width: 1000px) {
  .g4, .who { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: 1fr; }
  .cab, .me, .form-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  body { font-size: 17px; }
  .top nav a:not(.btn) { display: none; }
  .hero { min-height: auto; }
  .stage { position: relative; inset: auto; order: 2; padding-block: 8px 24px; }
  .hero__in { padding-block: 36px 8px; }
  .hero__in::before { display: none; }
  .mascot { position: relative; inset: auto; width: min(420px, 100%); margin-inline: auto; -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 42%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 72% 70% at 50% 42%, #000 55%, transparent 100%); }
  .mascot img { height: auto; aspect-ratio: 800 / 1039; }
  .wave { left: 0; height: 110px; }
  .calc, .sound, .g2 { grid-template-columns: minmax(0, 1fr); }
  .calc > *, .sound > * { min-width: 0; }
  .player { flex-wrap: wrap; }
  .player__ph { flex-basis: 100%; max-width: none; }
  section.block { padding-block: 64px; }
  .btn { width: 100%; justify-content: center; }
  .top .btn { width: auto; }
  .cab__ui { grid-template-columns: 1fr; }
  .cab__col + .cab__col { border-left: 0; border-top: 1px solid var(--line); }
  .cab__stats { grid-template-columns: repeat(2, 1fr); }
  .me__photo { max-width: 360px; }
  .form-photo { max-width: none; }
  .form-photo__pic { aspect-ratio: auto; height: min(320px, 85vw); }
}
@media (max-width: 560px) {
  .top nav { gap: 10px; }
  .logo { font-size: 20px; }
  .langs { gap: 4px; font-size: 13px; }
  .langs button { padding: 3px 6px; }
  .top .btn { padding: 10px 12px; font-size: 14px; }
  .g4 { grid-template-columns: 1fr; }
  .who { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .who__tile { padding: 16px; min-height: 120px; font-size: 16px; }
  .who__icon { width: 28px; height: 28px; }
  .who__dialog { padding: 18px 14px; }
  .chat__msg { max-width: 92%; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wave i { animation: none; }
  .reveal, .cab__row { opacity: 1; transform: none; transition: none; }
  .marquee__row { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none !important; width: auto; }
  .marquee__set { flex-wrap: wrap; }
  .marquee__set[aria-hidden] { display: none; }
  .marquee__row + .marquee__row { display: none; }
}

/* форма на компьютере: колонки по центру, низы примерно на одном уровне */
@media (min-width: 1001px) { .form-wrap { align-items: center; } }

/* страницы документов /privacy и /consent */
.doc { padding-block: 56px 96px; max-width: 760px; }
.doc h1 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 12px; }
.doc h2 { font-size: 22px; margin: 40px 0 12px; }
.doc p + p, .doc ul + p, .doc ol + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 22px; margin: 8px 0 0; display: grid; gap: 6px; }
.doc a { color: var(--accent); overflow-wrap: anywhere; }

/* контакты рядом с формой */
.form-write { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.form-write > span { flex-basis: 100%; }
.form-write .btn { padding: 12px 20px; width: auto; }

/* баннер cookie */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 30; max-width: 760px; margin-inline: auto;
  display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 16px 20px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 40px rgba(0,0,0,.5); font-size: 15px; color: var(--muted); }
.cookie[hidden] { display: none; }
.cookie a { color: var(--text); }
.cookie .btn { flex: none; width: auto; padding: 12px 22px; }
@media (max-width: 560px) { .cookie { flex-direction: column; align-items: stretch; } .cookie .btn { width: 100%; justify-content: center; } }
