/* X33 Voice, сайт. Светлая тема «Молочный» как основа, тёмные кадры как акцент.
   Без карточек-плашек, без цветных полос слева, без длинных тире. */

:root {
  --bg: #f7f9fa;
  --bg2: #eef2f4;
  --ink: #1b2a33;
  --ink2: #3b4a55;
  --ink3: #6b7a85;
  --line: #d6dce0;
  --accent: #1391a6;
  --accent-deep: #0f7686;
  --acc2: #1f7a8c;
  --dark: #141d24;
  --dark-ink: #e8eef3;
  --max: 1120px;
  --gutter: 16px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--acc2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 5.2vw, 58px); }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }
.muted { color: var(--ink3); }
.small { font-size: 15px; }
kbd {
  font: 600 .92em/1 var(--font);
  background: #fff;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 3px 7px;
  color: var(--ink);
  white-space: nowrap;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* шапка */
.top {
  display: flex; align-items: center; gap: 28px;
  padding: 18px 0;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 19px; }
.brand:hover { text-decoration: none; }
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 16px; }
.nav a { color: var(--ink2); }
.nav a:hover { color: var(--accent); text-decoration: none; }

/* кнопки */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #fff;
  padding: 14px 24px; border-radius: 10px;
  font-weight: 600; font-size: 17px; line-height: 1.2;
  border: 0; cursor: pointer;
}
.btn:hover { background: var(--accent-deep); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--acc2); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--acc2); background: #fff; }
.btn small { font-weight: 400; opacity: .85; font-size: 14px; }

/* герой */
.hero { padding: 56px 0 24px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; }
.hero h1 { margin-bottom: 18px; }
.hero h1 .acc { color: var(--acc2); }
.hero .lead { font-size: 21px; color: var(--ink2); max-width: 32em; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; margin: 28px 0 14px; }
.hero .fine { color: var(--ink3); font-size: 15px; }

/* демо «нажал, сказал, текст появился»: CSS-анимация, без JS */
.demo { position: relative; padding-top: 10px; }
.demo .win {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 40px rgba(20, 40, 50, .10);
  padding: 18px 22px 22px; min-height: 230px;
}
.demo .win .ttl { font-size: 13px; color: var(--ink3); margin-bottom: 14px; display: flex; gap: 8px; align-items: center; }
.demo .win .ttl i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: inline-block; }
.demo .typed {
  font-size: 18px; line-height: 1.5; color: var(--ink);
  white-space: pre-wrap; min-height: 4.5em;
}
.demo .typed::after {
  content: ""; display: inline-block; width: 2px; height: 1.1em;
  background: var(--acc2); vertical-align: -3px; margin-left: 1px;
  animation: blink 1s steps(1) infinite;
}
.demo .typed span { opacity: 0; animation: appear 9s infinite; }
.demo .typed span:nth-child(1) { animation-delay: 3.2s; }
.demo .typed span:nth-child(2) { animation-delay: 3.5s; }
.demo .typed span:nth-child(3) { animation-delay: 3.8s; }
.demo .typed span:nth-child(4) { animation-delay: 4.1s; }
.demo .typed span:nth-child(5) { animation-delay: 4.4s; }
.demo .typed span:nth-child(6) { animation-delay: 4.7s; }
.demo .typed span:nth-child(7) { animation-delay: 5.0s; }
.demo .typed span:nth-child(8) { animation-delay: 5.3s; }
.demo .typed span:nth-child(9) { animation-delay: 5.6s; }
.demo .typed span:nth-child(10) { animation-delay: 5.9s; }
.demo .typed span:nth-child(11) { animation-delay: 6.2s; }
@keyframes appear { 0%, 2% { opacity: 0; } 4%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes blink { 50% { opacity: 0; } }
.demo .steps { display: flex; gap: 10px 22px; flex-wrap: wrap; margin-top: 16px; font-size: 15px; color: var(--ink3); }
.demo .steps b { color: var(--ink2); font-weight: 600; }
.demo .steps .st { display: flex; align-items: center; gap: 8px; }
.demo .steps .st i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); display: inline-block; }
.demo .steps .s1 i { animation: dot 9s infinite 0s; }
.demo .steps .s2 i { animation: dot 9s infinite .6s; }
.demo .steps .s3 i { animation: dot 9s infinite 3.2s; }
@keyframes dot { 0% { background: var(--line); } 3%, 30% { background: var(--acc2); } 36%, 100% { background: var(--line); } }
/* линия голоса: мотив, дышит, пока «говорим» */
.voice { display: flex; align-items: center; gap: 4px; height: 28px; margin: 12px 0 0; }
.voice i { width: 3px; border-radius: 2px; background: var(--acc2); height: 6px; display: inline-block; animation: voice 9s infinite; }
.voice i:nth-child(odd) { animation-duration: 9s; }
.voice i:nth-child(2) { animation-delay: .1s; } .voice i:nth-child(3) { animation-delay: .2s; }
.voice i:nth-child(4) { animation-delay: .05s; } .voice i:nth-child(5) { animation-delay: .25s; }
.voice i:nth-child(6) { animation-delay: .15s; } .voice i:nth-child(7) { animation-delay: .3s; }
.voice i:nth-child(8) { animation-delay: .1s; } .voice i:nth-child(9) { animation-delay: .2s; }
.voice i:nth-child(10) { animation-delay: .05s; } .voice i:nth-child(11) { animation-delay: .22s; }
.voice i:nth-child(12) { animation-delay: .12s; } .voice i:nth-child(13) { animation-delay: .28s; }
.voice i:nth-child(14) { animation-delay: .08s; }
@keyframes voice {
  0%, 6% { height: 6px; opacity: .45; }
  10% { height: 22px; opacity: 1; } 14% { height: 10px; } 18% { height: 26px; } 22% { height: 8px; }
  26% { height: 20px; } 30% { height: 12px; } 33% { height: 6px; opacity: .45; }
  100% { height: 6px; opacity: .45; }
}

/* разделы */
section { padding: 64px 0; }
section + section { border-top: 1px solid var(--line); }
.sec-head { max-width: 38em; margin-bottom: 36px; }
.sec-head p { color: var(--ink2); font-size: 19px; }
.off { margin-left: clamp(0px, 8vw, 110px); } /* асимметрия: витрина не по центру */

/* кадры в единой оболочке */
figure { margin: 0; }
figure img { width: 100%; }
figcaption { color: var(--ink3); font-size: 15px; margin-top: 2px; padding: 0 40px; }

/* три шага */
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; counter-reset: step; }
.steps3 > div { position: relative; padding-top: 44px; }
.steps3 > div::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  font-size: 30px; font-weight: 600; color: var(--acc2); line-height: 1;
}
.steps3 h3 { margin-bottom: 8px; }
.steps3 p { color: var(--ink2); margin: 0; }

/* почему офлайн: две колонки текста */
.cols2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 56px; }
.cols2 h3 { margin-bottom: 6px; }
.cols2 p { color: var(--ink2); }

/* цифры */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 32px; margin: 10px 0 20px; }
.facts b { display: block; font-size: 40px; font-weight: 600; line-height: 1; color: var(--ink); letter-spacing: -.02em; }
.facts b em { font-style: normal; color: var(--acc2); }
.facts span { display: block; color: var(--ink2); margin-top: 8px; font-size: 16px; }
.facts .how { color: var(--ink3); font-size: 14px; margin-top: 4px; }

/* таблица Free и Pro */
.tiers { width: 100%; border-collapse: collapse; margin: 8px 0 28px; font-size: 16.5px; }
.tiers th, .tiers td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tiers th { font-weight: 600; color: var(--ink3); font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.tiers th.pro { color: var(--acc2); }
.tiers td.pro { color: var(--ink); }
.tiers td .ok { color: var(--acc2); font-weight: 600; }
.tiers td .no { color: var(--ink3); }
.tiers tr:last-child td { border-bottom: 0; }
.pro-word { color: var(--acc2); font-weight: 600; }
.buy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 56px; align-items: start; margin-top: 24px; }
.buy ol { padding-left: 1.2em; color: var(--ink2); }
.buy li { margin-bottom: 8px; }
.price { font-size: 34px; font-weight: 600; letter-spacing: -.02em; }
.price small { font-size: 16px; font-weight: 400; color: var(--ink3); margin-left: 8px; }

/* заглушки «решение владельца»: видны только при ?owner в адресе; на сайте нейтральны */
.owner { outline: 1px dashed #c77f00; outline-offset: 3px; position: relative; }
.owner::after {
  content: "решение владельца"; position: absolute; top: -10px; right: -4px;
  font-size: 11px; background: #fff6e5; color: #8a5a00; padding: 1px 6px; border-radius: 4px;
  letter-spacing: .02em; white-space: nowrap;
}
body:not(.show-owner) .owner { outline: 0; }
body:not(.show-owner) .owner::after { display: none; }

/* словарь */
.rule { font: 16px/1.5 Consolas, "Cascadia Mono", Menlo, monospace; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; color: var(--ink2); margin: 16px 0; }
.rule b { color: var(--acc2); font-weight: 600; }

/* галерея тем, без JS: radio + label */
.gallery input { position: absolute; opacity: 0; pointer-events: none; }
.gallery .tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.gallery .tabs label { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); cursor: pointer; color: var(--ink2); font-size: 15px; }
.gallery .tabs label:hover { border-color: var(--acc2); }
.gallery .pane { display: none; }
#t-light:checked ~ .tabs label[for="t-light"],
#t-graphite:checked ~ .tabs label[for="t-graphite"],
#t-dark:checked ~ .tabs label[for="t-dark"] { background: var(--ink); color: #fff; border-color: var(--ink); }
#t-light:checked ~ .panes .p-light,
#t-graphite:checked ~ .panes .p-graphite,
#t-dark:checked ~ .panes .p-dark { display: block; }

/* тёмный акцентный блок */
.dark { background: var(--dark); color: var(--dark-ink); }
.dark h2, .dark h3 { color: #fff; }
.dark p { color: #cdd6dd; }
.dark a { color: #35c0d8; }
.dark figcaption { color: #8d9aa5; }
.dark .btn.ghost { color: #35c0d8; border-color: #33414d; }
.dark .btn.ghost:hover { background: #1b2730; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--acc2); font-weight: 400; font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; color: var(--ink2); max-width: 44em; }

/* подвал */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--ink3); font-size: 15px; }
footer .row { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
footer .row .brand { font-size: 16px; }
footer .row .brand svg { width: 20px; height: 20px; }

/* история и условия: длинный текст */
.prose { max-width: 44em; }
.prose h2 { margin-top: 1.6em; }
.prose figure { margin: 28px 0; }
.prose figure img { width: calc(100% + 80px); max-width: none; margin-left: -40px; }
.prose .then-now { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; margin: 28px 0; }
.prose .then-now figure img { width: 100%; margin-left: 0; }
.prose .then-now figcaption { padding: 0 12px; }
.draft-note { color: #8a5a00; background: #fff6e5; border-radius: 10px; padding: 12px 16px; font-size: 15px; margin-bottom: 28px; }
.legal h2 { font-size: 24px; margin-top: 1.4em; }
.legal ul { color: var(--ink2); }

@media (max-width: 900px) {
  .hero-grid, .cols2, .buy, .prose .then-now { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps3 { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .off { margin-left: 0; }
  .nav { gap: 14px; font-size: 15px; }
  .nav .hide-m { display: none; }
  section { padding: 48px 0; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero { padding-top: 28px; }
  .hero .lead { font-size: 18px; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .facts b { font-size: 34px; }
  .tiers { font-size: 15px; }
  .tiers th, .tiers td { padding: 10px 8px 10px 0; }
  figcaption { padding: 0 8px; }
  .prose figure img { width: 100%; margin-left: 0; }
  .btn { width: 100%; justify-content: center; }
  .top { gap: 10px 14px; flex-wrap: wrap; padding: 14px 0; }
  .brand { white-space: nowrap; }
  .nav { gap: 6px 14px; font-size: 14px; flex-wrap: wrap; margin-left: 0; width: 100%; }
}

/* ===== ротатор кадров: лёгкий наклон в перспективе, автолистание, точки ===== */
.rotor { position: relative; }
.rotor .rotor-stage { position: relative; display: grid; perspective: 1600px; }
.rotor .slide { grid-area: 1 / 1; margin: 0; opacity: 0; transition: opacity .7s ease, transform .9s cubic-bezier(.2,.7,.2,1); pointer-events: none; }
.rotor .slide.is-active { opacity: 1; pointer-events: auto; }
.rotor:not(.is-ready) .slide:first-child { opacity: 1; }
/* наклон: чётные разделы влево, нечётные вправо; при наведении кадр выпрямляется */
.rotor.tilt-l .slide img { transform: rotateY(9deg) rotateX(2deg) translateX(-1%); }
.rotor.tilt-r .slide img { transform: rotateY(-9deg) rotateX(2deg) translateX(1%); }
.rotor .slide img { transition: transform .9s cubic-bezier(.2,.7,.2,1); transform-origin: 50% 50%; will-change: transform; }
.rotor:hover .slide img { transform: none; }
.rotor .slide.is-active img { animation: settle .9s cubic-bezier(.2,.7,.2,1); }
@keyframes settle { from { transform: translateY(14px) scale(.985); opacity: .4; } }
.rotor .slide figcaption { opacity: 0; transition: opacity .5s .2s; }
.rotor .slide.is-active figcaption { opacity: 1; }

.rotor-dots { display: flex; gap: 8px; justify-content: flex-start; padding: 6px 40px 0; flex-wrap: wrap; }
.rotor-dot { width: 26px; height: 6px; border-radius: 3px; border: 0; padding: 0; background: var(--line); cursor: pointer; transition: background .3s, width .3s; }
.rotor-dot.is-active { background: var(--acc2); width: 44px; }
.rotor-dot.has-label { width: auto; height: auto; padding: 7px 13px; border-radius: 8px; font: 15px var(--font); color: var(--ink2); background: transparent; border: 1px solid var(--line); }
.rotor-dot.has-label.is-active { background: var(--ink); color: #fff; border-color: var(--ink); width: auto; }
.dark .rotor-dot { background: #33414d; }
.dark .rotor-dot.is-active { background: #35c0d8; }
.dark .rotor-dot.has-label { background: transparent; color: #cdd6dd; border-color: #33414d; }
.dark .rotor-dot.has-label.is-active { background: #e8eef3; color: #141d24; border-color: #e8eef3; }

.rotor-arrow { position: absolute; top: 42%; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.92); color: var(--ink2); display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .3s, transform .3s; z-index: 2; }
.rotor-arrow.prev { left: 6px; } .rotor-arrow.next { right: 6px; }
.rotor:hover .rotor-arrow { opacity: 1; }
.rotor-arrow:hover { color: var(--accent); transform: scale(1.06); }
.dark .rotor-arrow { background: rgba(20,29,36,.9); border-color: #33414d; color: #cdd6dd; }
.rotor.no-motion .slide, .rotor.no-motion .slide img { transition: none; animation: none; transform: none; }

@media (max-width: 900px) {
  .rotor.tilt-l .slide img, .rotor.tilt-r .slide img { transform: none; }
  .rotor-arrow { opacity: 1; width: 38px; height: 38px; }
  .rotor-dots { padding: 6px 12px 0; }
}
@media (hover: none) { .rotor-arrow { opacity: 1; } }

/* ===== тарифы и форма заказа ===== */
.order { margin-top: 10px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin: 10px 0 30px; }
.plan { display: block; position: relative; padding: 18px 0 14px; border-top: 2px solid var(--line); cursor: pointer; transition: border-color .25s; }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan:hover { border-top-color: var(--ink3); }
.plan:has(input:checked) { border-top-color: var(--acc2); }
.plan-name { display: block; font-weight: 600; font-size: 18px; }
.plan-name em { font-style: normal; color: var(--acc2); font-weight: 500; font-size: 14px; margin-left: 8px; }
.plan-price { display: block; font-size: 36px; font-weight: 600; letter-spacing: -.02em; margin: 6px 0 8px; }
.plan-note { display: block; color: var(--ink2); font-size: 15px; line-height: 1.45; }
.plan::before { content: ""; position: absolute; left: 0; top: 24px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); background: #fff; display: none; }
.fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 40px; max-width: 900px; }
.fields > label { display: block; font-size: 15px; color: var(--ink2); }
.fields input[type="email"], .fields input[type="text"], .fields textarea { display: block; width: 100%; margin-top: 6px; font: 17px var(--font); padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.fields textarea { resize: vertical; line-height: 1.4; }
.fields input:focus, .fields textarea:focus { outline: 2px solid var(--acc2); outline-offset: 1px; border-color: var(--acc2); }
.fields .hint { display: block; margin-top: 6px; font-size: 14px; color: var(--ink3); }
.fields .agree { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.fields .agree input { margin-top: 4px; accent-color: var(--accent); }
.fields .btn { grid-column: 1 / -1; justify-self: start; }
.fields .small { grid-column: 1 / -1; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 900px) {
  .plans { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .plan { border-top: 1px solid var(--line); }
  .fields { grid-template-columns: minmax(0, 1fr); }
}
