/* Лендинг AI-секретаря. Стилистика по просьбе заказчика (01.11.2026):
   как у Apple. Белые и светло-серые главы, одна чёрная для контраста,
   крупные заголовки по центру, скруглённые карточки, синие кнопки-пилюли.
   Шрифт системный: на Mac и iPhone это SF Pro, на остальных Inter
   (у обоих есть кириллица). */

:root {
  --bg: #ffffff;
  --alt: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --link: #0066cc;
  --dark: #000000;
  --dark-card: #1d1d1f;
  --dark-ink: #f5f5f7;
  --dark-muted: #a1a1a6;
  --dark-link: #2997ff;

  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --t-hero: clamp(3rem, 1.6rem + 6vw, 6rem);
  --t-headline: clamp(2rem, 1.2rem + 3.2vw, 3.5rem);
  --t-tagline: clamp(1.75rem, 1.1rem + 2.6vw, 3rem);
  --t-lead: clamp(1.1875rem, 1rem + 0.7vw, 1.5rem);
  --t-body: 1.0625rem;
  --t-small: 0.875rem;
  --t-tiny: 0.75rem;

  --wrap: 1024px;
  --wrap-wide: 1200px;
  --pad: max(22px, calc((100vw - var(--wrap)) / 2));
  --radius: 28px;
  --section: clamp(5rem, 9vw, 8.5rem);

  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

:root { color-scheme: light; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--t-body); line-height: 1.47; letter-spacing: -0.022em; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; letter-spacing: inherit; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:target { scroll-margin-top: 64px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 44px); margin: 0 auto; padding: 0 22px; }
.wrap--narrow { max-width: calc(780px + 44px); }
.center { text-align: center; }
section { padding: var(--section) 0; }
.alt { background: var(--alt); }
.dark { background: var(--dark); color: var(--dark-ink); }
.dark a { color: var(--dark-link); }

.headline { font-size: var(--t-headline); font-weight: 600; line-height: 1.07; letter-spacing: -0.028em; text-wrap: balance; }
.lead { margin-top: 1rem; font-size: var(--t-lead); line-height: 1.38; color: var(--muted); text-wrap: pretty; }
.center.lead, .center .lead { max-width: 40em; margin-left: auto; margin-right: auto; }
.note { margin-top: 2rem; font-size: var(--t-small); color: var(--muted); max-width: 46em; margin-left: auto; margin-right: auto; }

/* ---------- кнопки ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px;
  border-radius: 980px; background: var(--blue); color: #fff; font-size: var(--t-body); font-weight: 400;
  transition: background-color 200ms var(--ease), transform 150ms var(--ease);
}
.pill:hover { background: var(--blue-hover); text-decoration: none; }
.pill:active { transform: scale(0.97); }
.pill--small { min-height: 28px; padding: 0 12px; font-size: var(--t-tiny); }
.pill--big { min-height: 52px; padding: 0 30px; font-size: 1.1875rem; }
.pill--ghost { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.pill--ghost:hover { background: var(--blue); color: #fff; }
.more { font-size: var(--t-body); color: var(--link); }
.more::after { content: ' ›'; }

/* Пометка для заказчика: чего не хватает до публикации. */
.todo { display: block; margin-top: 0.75rem; padding: 0.6rem 0.9rem; border-radius: 12px; background: #fff3b0; color: #1d1d1f; font-size: var(--t-small); text-align: left; letter-spacing: 0; }
.todo::before { content: 'Макет · '; font-weight: 600; }
.todo--inline { display: inline; margin: 0 0 0 0.3rem; padding: 0.1rem 0.45rem; border-radius: 6px; }
.todo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 2rem; }
@media (max-width: 640px) { .todo-row { grid-template-columns: 1fr; } }

/* ---------- шапка: тонкая полупрозрачная полоса ---------- */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.8); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.nav__in { display: flex; align-items: center; gap: 2rem; height: 48px; max-width: calc(var(--wrap) + 44px); margin: 0 auto; padding: 0 22px; }
.nav__mark { margin-right: auto; color: var(--ink); font-size: var(--t-body); font-weight: 600; }
.nav__mark:hover { text-decoration: none; }
.nav__links { display: flex; gap: 1.75rem; }
.nav__links a { color: var(--ink); opacity: 0.8; font-size: var(--t-tiny); }
.nav__links a:hover { opacity: 1; text-decoration: none; }
.nav__lang { color: var(--ink); opacity: 0.8; font-size: var(--t-tiny); }
.nav__lang:hover { opacity: 1; text-decoration: none; }
@media (max-width: 760px) { .nav__links { display: none; } }

/* ---------- первый экран ---------- */
.hero { padding-top: clamp(3.5rem, 7vw, 6rem); padding-bottom: 0; overflow: clip; text-align: center; }
.hero__name { font-size: var(--t-hero); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
.hero__tagline { max-width: 18em; margin: 0.5rem auto 0; font-size: var(--t-tagline); font-weight: 600; line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
.hero__sub { margin: 1.25rem auto 0; max-width: 34em; font-size: var(--t-lead); line-height: 1.38; color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.25rem 2rem; margin-top: 2rem; }
.hero__price { margin-top: 1.25rem; font-size: var(--t-small); color: var(--muted); }

.hero__device { margin-top: clamp(3rem, 6vw, 4.5rem); padding: 0 22px var(--section); display: grid; justify-items: center; gap: 2rem; }
.phone { width: min(360px, 100%); height: 720px; padding: 12px; border-radius: 60px; background: #1d1d1f; box-shadow: 0 0 0 2px #3a3a3c, 0 40px 80px -30px rgba(0, 0, 0, 0.35); }
.phone__screen { position: relative; height: 100%; display: flex; flex-direction: column; border-radius: 48px; overflow: hidden; background: #dfe7ee; color: var(--ink); text-align: left; font-size: 14px; line-height: 1.38; letter-spacing: -0.01em; }
.phone__screen::before { content: ''; position: absolute; left: 50%; top: 11px; width: 96px; height: 28px; margin-left: -48px; border-radius: 20px; background: #000; z-index: 2; }
.chat__head { display: flex; align-items: center; gap: 0.65rem; padding: 52px 16px 10px; background: rgba(247, 247, 247, 0.92); }
.chat__avatar { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #5ac8fa, #0071e3); color: #fff; font-weight: 600; }
.chat__who { display: flex; flex-direction: column; }
.chat__who span { color: var(--muted); font-size: 12px; }
.chat__log { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 12px 10px 16px; overscroll-behavior: contain; scrollbar-width: none; }
.chat__log::-webkit-scrollbar { display: none; }
.chat__log > :first-child { margin-top: auto; }
.msg { max-width: 82%; padding: 7px 11px; border-radius: 18px; background: #fff; }
.msg--in { align-self: flex-start; border-bottom-left-radius: 6px; }
.msg--out { align-self: flex-end; background: #e1f7d5; border-bottom-right-radius: 6px; }
.msg__note { display: block; margin-bottom: 4px; color: #4b6b3a; font-size: 12px; }
.msg--owner { align-self: stretch; max-width: none; margin-top: 4px; padding: 10px 12px; border-radius: 16px; background: #1d1d1f; color: #f5f5f7; font-size: 13px; }
.msg__label { display: block; margin-bottom: 4px; font-size: 11px; color: #a1a1a6; }
.msg__title { display: block; margin-bottom: 2px; font-weight: 600; }
.msg__buttons { display: flex; gap: 6px; margin-top: 8px; }
.msg__buttons span { flex: 1; padding: 6px; text-align: center; border-radius: 10px; background: rgba(255, 255, 255, 0.14); }
.msg--voice { display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 4px 8px; }
.msg--voice svg { width: 28px; height: 28px; }
.msg__transcript { grid-column: 1 / -1; color: var(--muted); font-size: 12px; font-style: italic; }
.msg__buttons--client span { background: #fff; color: var(--link); font-weight: 500; }
.msg--typing { color: var(--muted); font-size: 12px; }

.ask { max-width: 640px; }
.ask__label { font-size: var(--t-small); color: var(--muted); }
.ask__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 0.75rem; }
.chip { min-height: 36px; padding: 0 16px; border-radius: 980px; background: var(--alt); color: var(--ink); font-size: var(--t-small); transition: background-color 200ms var(--ease), color 200ms var(--ease), transform 150ms var(--ease); }
.chip:hover { background: #e8e8ed; }
.chip:active { transform: scale(0.96); }
.chip[aria-pressed='true'] { background: var(--ink); color: #fff; }
html:not(.js) .ask { display: none; }
@media (max-width: 420px) { .phone { height: 640px; border-radius: 52px; } .phone__screen { border-radius: 42px; } }

/* ---------- статистика ---------- */
.stats__figure { margin-top: 1.5rem; font-size: clamp(7rem, 4rem + 16vw, 15rem); font-weight: 700; line-height: 1; letter-spacing: -0.05em; background: linear-gradient(180deg, #ffffff 30%, #6e6e73); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: lining-nums; }
.stats__caption { margin: 1rem auto 0; max-width: 26em; font-size: var(--t-lead); line-height: 1.38; font-weight: 600; }
.stats__source { margin: 1.5rem auto 0; max-width: 40em; font-size: var(--t-small); color: var(--dark-muted); }

/* ---------- боли: под цифрой в чёрном блоке ---------- */
.pains { margin-top: 5rem; }
.pains__title { text-align: center; font-size: var(--t-tagline); font-weight: 600; letter-spacing: -0.025em; }
.pains__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 2rem; }
.pains__grid li { padding: 28px; border-radius: var(--radius); background: var(--dark-card); color: var(--dark-muted); }
.pains__grid b { display: block; margin-bottom: 0.4rem; color: var(--dark-ink); font-size: 1.3125rem; font-weight: 600; letter-spacing: -0.02em; }
@media (max-width: 860px) { .pains__grid { grid-template-columns: 1fr; } }

/* ---------- решения: шапка блока «Один день» ---------- */
.sol__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 3rem; text-align: left; }
.sol { padding: 28px; border-radius: var(--radius); background: #fff; }
.sol h3 { font-size: 1.3125rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
.sol p { margin-top: 0.5rem; color: var(--muted); }
.sol--wide { grid-column: 1 / -1; padding: 36px; background: var(--dark-card); color: var(--dark-ink); text-align: center; }
.sol--wide h3 { font-size: var(--t-tagline); }
.sol--wide p { max-width: 34em; margin: 0.75rem auto 0; color: var(--dark-muted); font-size: var(--t-lead); line-height: 1.38; }
.day__sub { margin-top: 5rem; text-align: center; font-size: var(--t-tagline); font-weight: 600; letter-spacing: -0.025em; }
.day__note { margin-top: 0.5rem; text-align: center; color: var(--muted); }
@media (max-width: 960px) { .sol__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .sol__grid { grid-template-columns: 1fr; } .sol--wide { padding: 28px; text-align: left; } .sol--wide p { margin-left: 0; } }

/* ---------- день: галерея ---------- */
.day .headline, .day .lead { text-align: center; }
.day .lead { max-width: 34em; margin-left: auto; margin-right: auto; }
.gallery { margin-top: 3rem; }
.gallery__track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--pad) 8px; scroll-padding-inline: var(--pad); scrollbar-width: none; }
.gallery__track::-webkit-scrollbar { display: none; }
.tile { flex: 0 0 min(80vw, 380px); scroll-snap-align: start; display: flex; flex-direction: column; min-height: 440px; padding: 32px 28px 28px; border-radius: var(--radius); background: #fff; }
.tile__time { font-size: 3rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.tile__text { margin-top: 0.75rem; font-size: var(--t-body); font-weight: 600; line-height: 1.3; }
.tile__ui { margin-top: auto; padding-top: 1.75rem; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.38; letter-spacing: -0.01em; }
.tile--dark { background: var(--dark-card); color: var(--dark-ink); }
.tile--dark .ui-bot { background: #2c2c2e; color: var(--dark-ink); }
.gallery__nav { display: flex; justify-content: flex-end; gap: 12px; max-width: calc(var(--wrap) + 44px); margin: 1.5rem auto 0; padding: 0 22px; }
.round { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #e8e8ed; transition: background-color 200ms var(--ease), opacity 200ms var(--ease); }
.round:hover { background: #dcdce1; }
.round:disabled { opacity: 0.4; cursor: default; }
.round svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
html:not(.js) .gallery__nav { display: none; }

/* ---------- куски интерфейса бота ---------- */
.ui-msg { max-width: 88%; padding: 8px 12px; border-radius: 18px; background: var(--alt); color: var(--ink); }
.ui-msg--in { align-self: flex-start; border-bottom-left-radius: 6px; }
.ui-msg--out { align-self: flex-end; background: #e1f7d5; border-bottom-right-radius: 6px; }
.ui-bot { align-self: flex-start; max-width: 100%; padding: 10px 12px; border-radius: 16px; border-bottom-left-radius: 6px; background: var(--alt); color: var(--ink); }
.ui-bot b { display: block; margin-bottom: 2px; font-weight: 600; }
.ui-buttons { display: flex; gap: 6px; }
.ui-buttons span { flex: 1; min-width: 0; padding: 7px 6px; text-align: center; border-radius: 12px; background: #e8f0fe; color: var(--link); font-weight: 500; }
.ui-buttons--stack { flex-direction: column; }
.ui-voice { display: grid; gap: 4px; }
.ui-voice__bar { display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.ui-voice__bar::before { content: ''; width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M9 7l6 4-6 4z' fill='%23fff'/%3E%3C/svg%3E") center / 22px no-repeat; }
.ui-voice__text { color: var(--muted); font-size: 12px; font-style: italic; }
.ui-file { display: flex; align-items: center; gap: 8px; }
.ui-file::before { content: ''; width: 34px; height: 34px; flex: none; border-radius: 8px; background: #c7d7c0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34'%3E%3Cpath d='M8 24l6-7 4 5 3-3 5 5z' fill='%23fff'/%3E%3Ccircle cx='22' cy='12' r='3' fill='%23fff'/%3E%3C/svg%3E") center / 34px no-repeat; }
.ui-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 10px 12px; background: #fff; color: var(--ink); }
.ui-row:first-child { border-radius: 12px 12px 0 0; }
.ui-row:last-child { border-radius: 0 0 12px 12px; }
.ui-row + .ui-row { box-shadow: inset 0 1px 0 #e5e5ea; }
.ui-row span:last-child { color: var(--muted); }
.ui-toggle { width: 42px; height: 26px; flex: none; position: relative; border-radius: 13px; background: #34c759; }
.ui-toggle::after { content: ''; position: absolute; right: 2px; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); }

/* ---------- подключение ---------- */
.steps__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 3.5rem; }
.card { display: flex; flex-direction: column; padding: 28px 24px 24px; border-radius: var(--radius); background: var(--alt); }
.card__n { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-size: var(--t-small); font-weight: 600; }
.card__title { margin-top: 1.25rem; font-size: 1.3125rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
.card__text { margin-top: 0.5rem; font-size: var(--t-small); color: var(--muted); }
.card__ui { margin-top: auto; padding-top: 1.5rem; display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.38; letter-spacing: -0.01em; }
.card__ui .ui-bot, .card__ui .ui-msg--in { background: #fff; }
.card__ui--list { gap: 0; }
.steps__cta { margin-top: 3rem; }
@media (max-width: 960px) { .steps__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps__grid { grid-template-columns: 1fr; } }

/* ---------- контроль: сетка плиток ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-top: 3.5rem; }
.bento__tile { grid-column: span 2; display: flex; flex-direction: column; padding: 32px 28px; border-radius: var(--radius); background: #fff; }
.bento__tile--wide { grid-column: span 4; grid-row: span 2; }
.bento__tile--half { grid-column: span 3; }
.bento__tile--alt { background: var(--alt); }
.bento__tile--dark { background: var(--dark-card); color: var(--dark-ink); }
.bento__tile--dark p { color: var(--dark-muted); }
.bento__tile h3 { font-size: 1.3125rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
.bento__tile p { margin-top: 0.5rem; color: var(--muted); }
.bento__tile .bento__big { order: -1; margin: 0 0 1.25rem; color: var(--ink); font-size: clamp(2.5rem, 1.8rem + 2.4vw, 3.75rem); font-weight: 700; line-height: 1; letter-spacing: -0.04em; }
.bento__tile--dark .bento__big { color: #fff; }
/* Длинные строки в узкой плитке: «Ru · Oʻz · Ўз», «Click · Payme» */
.bento__tile:not(.bento__tile--wide):not(.bento__tile--half) .bento__big { font-size: clamp(2rem, 1.5rem + 1.2vw, 2.5rem); }
.bento__big--blue { background: linear-gradient(90deg, #0071e3, #5ac8fa); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.bento__tile .bento__quote { order: -1; margin: 0 0 1.25rem; color: var(--ink); font-size: 1.5rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
.bento__tile--wide h3 { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.1; }
.bento__tile--wide > p { font-size: var(--t-lead); max-width: 26em; }
.bento__ui { margin-top: auto; padding-top: 2rem; display: flex; flex-direction: column; gap: 10px; max-width: 420px; font-size: 1.0625rem; }
.bento__ui .ui-msg { padding: 10px 16px; }
@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__tile, .bento__tile--half { grid-column: span 1; }
  .bento__tile--wide { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .bento__tile, .bento__tile--half, .bento__tile--wide { grid-column: auto; }
}

/* ---------- приложение: главная Mini App ---------- */
.app-sec__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; }
.app-sec__list { margin-top: 2rem; display: grid; gap: 1.1rem; color: var(--muted); }
.app-sec__list b { color: var(--ink); font-weight: 600; }
.app-sec__device { display: grid; justify-items: center; }
.phone--app { height: 680px; }
.app { padding: 50px 12px 12px; gap: 10px; background: #f2f2f7; font-size: 13px; overflow: hidden; }
.app__menu { display: flex; flex-wrap: wrap; gap: 6px; }
.app__menu span { padding: 4px 10px; border-radius: 980px; background: #fff; color: var(--ink); }
.app__menu .is-on { background: var(--ink); color: #fff; }
.app__card { display: grid; gap: 7px; padding: 14px; border-radius: 16px; background: #fff; }
.app__h { display: flex; justify-content: space-between; font-size: 15px; font-weight: 600; }
.app__h span { color: var(--link); font-weight: 400; font-size: 13px; }
.app__row { display: grid; grid-template-columns: 44px 1fr auto; gap: 6px; align-items: baseline; }
.app__row b { font-weight: 600; font-variant-numeric: tabular-nums; }
.app__row em { font-style: normal; padding: 1px 7px; border-radius: 980px; background: #e8f0fe; color: var(--link); font-size: 12px; }
.app__sub { color: var(--muted); }
.app__btn { margin-top: 2px; padding: 8px; border-radius: 10px; background: var(--blue); color: #fff; text-align: center; font-weight: 500; }
.app__svc { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.app__svc span { display: grid; color: var(--muted); font-size: 12px; }
.app__svc b { color: var(--ink); font-size: 13px; font-weight: 500; }
.app__svc em { flex: none; font-style: normal; font-size: 12px; padding: 2px 8px; border-radius: 980px; background: #fff3d6; color: #8a5a00; }
.app__svc em.ok { background: #e3f6e8; color: #1d7a3a; }
@media (max-width: 900px) {
  .app-sec__grid { grid-template-columns: 1fr; gap: 3rem; }
  .app-sec__text .headline, .app-sec__text .lead { text-align: center; }
  .app-sec__text .lead { margin-left: auto; margin-right: auto; }
}

/* ---------- Google Календарь: день слева, чат справа ---------- */
/* Вид дня нарисован в духе Google Календаря, без логотипа и скриншотов
   Google. Время события: --s и --e в часах (15.75 = 15:45), сетка 10–19. */
.gcal__lead { color: var(--dark-muted); }
.gcal__stage { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: center; margin-top: 3.5rem; }
.gcal__cal { --hh: 46px; position: relative; padding: 18px 18px 22px; border-radius: var(--radius); background: #fff; color: #3c4043; font-size: 13px; line-height: 1.3; letter-spacing: 0; }
.gcal__top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 0 4px 12px; }
.gcal__app { color: #5f6368; font-size: 15px; }
.gcal__top b { color: #1f1f1f; font-size: 20px; font-weight: 500; }
.gcal__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0 4px 14px; color: #5f6368; }
.lg::before { content: ''; display: inline-block; width: 12px; height: 12px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; }
.lg--me::before { background: #33b679; }
.lg--tg::before { background: #039be5; }
.gcal__grid { position: relative; height: calc(var(--hh) * 9.4); margin-left: 52px; }
.gcal__hour { position: absolute; left: -52px; right: 0; top: calc((var(--h) - 10) * var(--hh)); height: 0; color: #70757a; font-size: 11px; }
.gcal__hour::after { content: ''; position: absolute; left: 48px; right: 0; top: 0; height: 1px; background: #e0e0e0; }
.gcal__hour { transform: translateY(-6px); }
.gcal__hour::after { top: 6px; }
.ev { position: absolute; left: 4px; right: 4px; top: calc((var(--s) - 10) * var(--hh) + 1px); height: calc((var(--e) - var(--s)) * var(--hh) - 3px); overflow: hidden; padding: 3px 8px; border-radius: 6px; color: #fff; font-size: 12px; line-height: 1.25; transition: opacity 300ms var(--ease), filter 300ms var(--ease), left 400ms var(--ease-out); }
/* Как у Google для коротких событий: название и время в одну строку */
.ev { display: flex; align-items: baseline; gap: 6px; }
.ev b { min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev span { flex: none; opacity: 0.9; white-space: nowrap; }
.ev--me { background: #33b679; }
.ev--tg { background: #039be5; }
.ev--new { z-index: 2; box-shadow: 0 0 0 2px #fff; }
.ev--new.is-overlap { left: 50%; }
.is-personal-off .ev--me { opacity: 0.35; filter: grayscale(1); }
.free { position: absolute; left: 4px; right: 4px; top: calc((var(--s) - 10) * var(--hh) + 1px); height: calc((var(--e) - var(--s)) * var(--hh) - 3px); display: flex; align-items: center; padding: 0 8px; border-radius: 6px; border: 2px dashed #1e8e3e; background: rgba(30, 142, 62, 0.08); color: #137333; font-size: 12px; font-weight: 500; opacity: 0; transform: scale(0.98); transition: opacity 300ms var(--ease), transform 300ms var(--ease); pointer-events: none; }
.free.is-on { opacity: 1; transform: none; }
.gcal__toast { position: absolute; left: 50%; bottom: 14px; translate: -50% 0; padding: 8px 14px; border-radius: 8px; background: #303134; color: #fff; font-size: 13px; white-space: nowrap; opacity: 0; transform: translateY(8px); transition: opacity 300ms var(--ease), transform 300ms var(--ease); pointer-events: none; }
.gcal__toast.is-on { opacity: 1; transform: none; }
.gcal__chat { display: grid; justify-items: center; }
.phone--mini { width: min(340px, 100%); height: 600px; }
.gcal__controls { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem 2.5rem; margin-top: 2.5rem; }
.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-size: var(--t-body); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { position: relative; width: 51px; height: 31px; flex: none; border-radius: 16px; background: #3a3a3c; transition: background-color 200ms var(--ease); }
.switch__track::after { content: ''; position: absolute; left: 2px; top: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; transition: transform 200ms var(--ease); }
.switch input:checked + .switch__track { background: #34c759; }
.switch input:checked + .switch__track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--dark-link); outline-offset: 3px; }
.more-btn { color: var(--dark-link); font-size: var(--t-body); }
.more-btn::after { content: ' ↻'; }
.more-btn:hover { text-decoration: underline; }
html:not(.js) .gcal__controls { display: none; }
.gcal__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 3rem; }
.gcal__facts li { padding: 26px; border-radius: var(--radius); background: var(--dark-card); color: var(--dark-muted); }
.gcal__facts b { display: block; margin-bottom: 0.35rem; color: var(--dark-ink); font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.02em; }
@media (max-width: 960px) {
  .gcal__stage { grid-template-columns: 1fr; }
  .gcal__facts { grid-template-columns: 1fr; }
}
/* Телефон: календарь и чат должны почти целиком помещаться в экран,
   иначе событие встаёт в календарь, пока смотришь на чат */
@media (max-width: 600px) {
  .gcal__stage { gap: 16px; margin-top: 2.5rem; }
  .gcal__cal { --hh: 31px; padding: 12px 12px 14px; font-size: 12px; }
  .gcal__top { padding-bottom: 6px; }
  .gcal__top b { font-size: 16px; }
  .gcal__legend { padding-bottom: 8px; }
  .gcal__grid { margin-left: 44px; }
  .gcal__hour { left: -44px; }
  .gcal__hour::after { left: 40px; }
  .ev, .free { font-size: 11px; padding-top: 1px; padding-bottom: 1px; }
  .phone--mini { height: 430px; padding: 8px; border-radius: 40px; }
  .phone--mini .phone__screen { border-radius: 32px; }
  .phone--mini .chat__head { padding-top: 40px; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .ev--new { opacity: 0; transform: scale(0.92); transition: opacity 400ms var(--ease-out), transform 500ms var(--ease-out), left 400ms var(--ease-out); }
  .js .ev--new.is-in { opacity: 1; transform: none; }
}
/* С reduce событие видно сразу, без появления */
.js .ev--new:not(.is-in) { visibility: hidden; }
@media (prefers-reduced-motion: no-preference) { .js .ev--new:not(.is-in) { visibility: visible; } }

/* ---------- студии и каналы ---------- */
.studio__lead { color: var(--dark-muted); }
.studio__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 3rem; }
.studio__grid li { padding: 28px; border-radius: var(--radius); background: var(--dark-card); color: var(--dark-muted); }
.studio__grid b { display: block; margin-bottom: 0.35rem; color: var(--dark-ink); font-size: 1.3125rem; font-weight: 600; letter-spacing: -0.02em; }
.studio__channels { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 2.5rem; margin-top: 3rem; font-size: var(--t-tagline); font-weight: 600; letter-spacing: -0.03em; }
.studio__channels span:nth-child(1) { color: #2aabee; }
.studio__channels span:nth-child(2) { color: #25d366; }
.studio__channels span:nth-child(3) { color: #e1306c; }
.studio__channels span:nth-child(4) { color: #a78bfa; }
@media (max-width: 900px) { .studio__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .studio__grid { grid-template-columns: 1fr; } }

/* ---------- настройка услуг: сообщением или в приложении ---------- */
/* Экраны в телефоне — макеты варианта А (главная с меню сверху): услуга
   с вариантами, групповая услуга и пауза. Вкладки над телефоном. */
.setup__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px; margin-top: 3.5rem; align-items: start; }
.setup__card { display: flex; flex-direction: column; padding: 32px 28px; border-radius: var(--radius); background: #fff; }
.setup__card h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 600; letter-spacing: -0.025em; }
.setup__card > p { margin-top: 0.5rem; color: var(--muted); }
.setup__chat { margin-top: 2rem; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.38; letter-spacing: -0.01em; }
.setup__app { margin-top: 2rem; display: grid; justify-items: center; gap: 16px; }
.setup__list { margin-top: 2rem; display: grid; gap: 0.6rem; color: var(--muted); }
.setup__list b { color: var(--ink); font-weight: 600; }
.sv-tabs { display: inline-flex; padding: 3px; border-radius: 980px; background: var(--alt); }
.sv-tab { min-height: 36px; padding: 0 18px; border-radius: 980px; color: var(--ink); font-size: var(--t-small); transition: background-color 200ms var(--ease), color 200ms var(--ease); }
.sv-tab[aria-selected='true'] { background: var(--ink); color: #fff; }
html:not(.js) .sv-tabs { display: none; }
/* display:flex у экрана перебивает атрибут hidden, без этой строки
   все три экрана видны разом. Без скрипта виден первый. */
.sv-screen[hidden] { display: none; }
.phone--svc { width: min(340px, 100%); height: 640px; }
.sv { background: #f2f2f7; font-size: 13px; overflow: hidden; }
.sv-screen { height: 100%; padding: 46px 12px 12px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.sv-head { display: flex; align-items: center; gap: 8px; margin: 0 -12px; padding: 4px 16px 10px; font-size: 16px; font-weight: 600; background: #fff; }
.sv-head span { color: var(--link); font-size: 22px; line-height: 1; }
.sv-card { display: grid; gap: 7px; padding: 12px 14px; border-radius: 14px; background: #fff; }
.sv-h { font-size: 14px; font-weight: 600; }
.sv-big { font-size: 16px; }
.sv-flex { display: flex; justify-content: space-between; align-items: center; }
.sv-label { color: var(--muted); font-size: 12px; }
.sv-input { padding: 8px 10px; border-radius: 9px; box-shadow: inset 0 0 0 1px #d5d5dc; }
.sv-input--on { box-shadow: inset 0 0 0 1.5px var(--link); }
.sv-seg { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 9px; background: #eef1f5; text-align: center; }
.sv-seg span { padding: 6px 0; border-radius: 7px; color: #333; }
.sv-seg .on { background: #fff; color: var(--ink); font-weight: 600; }
.sv-muted { color: var(--muted); }
.sv-small { font-size: 12px; line-height: 1.35; }
.sv-row { display: grid; grid-template-columns: minmax(0, 1fr) 52px 60px; gap: 6px; padding-top: 7px; box-shadow: inset 0 1px 0 #ececf0; }
.sv-num { text-align: right; font-variant-numeric: tabular-nums; }
.sv-link { color: var(--link); font-weight: 600; }
.sv-link.red { color: #b3261e; font-weight: 400; }
.sv-opt { display: flex; gap: 9px; align-items: flex-start; }
.sv-opt > span:last-child { display: grid; }
.sv-hint { color: var(--muted); font-size: 12px; }
.sv-radio, .sv-check { flex: none; width: 16px; height: 16px; margin-top: 1px; box-shadow: inset 0 0 0 1.5px #9a9aa2; background: #fff; }
.sv-radio { border-radius: 50%; }
.sv-check { border-radius: 4px; }
.sv-radio.on { box-shadow: inset 0 0 0 5px var(--link); }
.sv-check.on { background: var(--link) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center / 16px no-repeat; box-shadow: none; }
.sv-badge { padding: 2px 8px; border-radius: 980px; background: #e3f6e8; color: #1d7a3a; font-size: 12px; font-weight: 400; }
.sv-btn-o { padding: 9px; border-radius: 10px; box-shadow: inset 0 0 0 1px #c9d9ea; color: var(--link); font-weight: 600; text-align: center; }
.sv-btn { padding: 11px; border-radius: 12px; background: var(--link); color: #fff; font-weight: 600; text-align: center; }
.sv-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sv-three span { display: grid; gap: 3px; padding: 7px 9px; border-radius: 9px; box-shadow: inset 0 0 0 1px #d5d5dc; }
.sv-three i { color: var(--muted); font-size: 11px; font-style: normal; }
.sv-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.sv-chip { padding: 3px 9px; border-radius: 10px; background: #eaf2fb; color: #16588f; font-size: 12px; }
.sv-sess { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; padding-top: 7px; box-shadow: inset 0 1px 0 #ececf0; }
.sv-sess.off { color: var(--muted); }
.sv-screen--sheet { padding: 0; justify-content: flex-end; background: #8a8a90; }
.sv-sheet { display: grid; gap: 9px; padding: 16px 14px 22px; border-radius: 18px 18px 0 0; background: #fff; }
.sv-until { display: flex; align-items: center; gap: 8px; padding-left: 25px; }
.sv-warn { display: grid; gap: 7px; padding: 10px 12px; border-radius: 12px; background: #fdf6ea; }
@media (max-width: 900px) { .setup__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) {
  .setup__card { padding: 26px 18px; }
  .sv-tab { padding: 0 12px; }
}
@media (max-width: 420px) { .phone--svc { height: 600px; } }

/* ---------- кому подходит ---------- */
.trades__list { margin-top: 1.5rem; font-size: var(--t-tagline); font-weight: 600; line-height: 1.15; letter-spacing: -0.025em; }
.trades__list span { color: var(--muted); }
.trades .lead { margin-top: 2rem; }

/* ---------- сравнение ---------- */
.compare__box { margin-top: 3rem; padding: 8px 24px; border-radius: var(--radius); background: #fff; overflow-x: auto; }
.compare__table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: var(--t-small); line-height: 1.4; }
.compare__table th, .compare__table td { text-align: left; vertical-align: top; padding: 18px 14px; }
.compare__table tbody tr + tr > * { box-shadow: inset 0 1px 0 #e5e5ea; }
.compare__table thead th { padding-top: 22px; font-size: var(--t-body); font-weight: 600; }
.compare__table tbody th { width: 15%; font-weight: 600; }
.compare__table .is-us { color: var(--blue); font-weight: 600; }
@media (max-width: 860px) {
  .compare__box { padding: 0; background: transparent; overflow: visible; }
  .compare__table { min-width: 0; }
  .compare__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .compare__table, .compare__table tbody, .compare__table tr, .compare__table th, .compare__table td { display: block; }
  .compare__table tr { margin-bottom: 16px; padding: 20px; border-radius: 20px; background: #fff; }
  .compare__table tbody tr + tr > * { box-shadow: none; }
  .compare__table tbody th { width: auto; padding: 0 0 8px; font-size: var(--t-body); }
  .compare__table td { display: grid; grid-template-columns: 8.5rem 1fr; gap: 12px; padding: 8px 0; }
  .compare__table td + td { box-shadow: inset 0 1px 0 #e5e5ea; }
  .compare__table td::before { content: attr(data-label); color: var(--muted); font-weight: 400; }
}

/* ---------- цена ---------- */
.plans { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 20px; max-width: var(--wrap); margin: 3rem auto 0; align-items: stretch; }
.plan { display: flex; flex-direction: column; align-items: flex-start; padding: 40px 36px; border-radius: var(--radius); background: var(--alt); }
.plan--main { background: var(--dark-card); color: var(--dark-ink); }
.plan__name { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }
.plan__price { margin-top: 0.75rem; font-size: clamp(2.25rem, 1.6rem + 2vw, 3.25rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.04em; }
.plan__price span { display: block; margin-top: 0.5rem; font-size: var(--t-small); font-weight: 400; letter-spacing: -0.01em; color: var(--muted); }
.plan--main .plan__price span { color: var(--dark-muted); }
.plan__price--text { font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); }
.plan__list { margin: 1.75rem 0 2rem; display: grid; gap: 0.6rem; }
.plan__list li { position: relative; padding-left: 1.6rem; }
.plan__list li::before { content: ''; position: absolute; left: 0; top: 0.32em; width: 14px; height: 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); color: #34c759; }
.plan .pill { margin-top: auto; }
.plan__beta { margin-top: 1rem; font-size: var(--t-small); color: var(--dark-muted); }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 520px; } .plan { padding: 32px 26px; } }
.todo-row--price { max-width: var(--wrap); margin-left: auto; margin-right: auto; }

/* ---------- данные ---------- */
.data__icon { width: 56px; height: 56px; margin: 0 auto 1.5rem; fill: none; stroke: var(--dark-ink); stroke-width: 2.4; stroke-linecap: round; }
.data__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 3rem; text-align: left; }
.data__grid li { padding: 28px; border-radius: var(--radius); background: var(--dark-card); color: var(--dark-muted); }
.data__grid b { display: block; margin-bottom: 0.35rem; color: var(--dark-ink); font-size: 1.3125rem; font-weight: 600; letter-spacing: -0.02em; }
.data__terms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 3rem; }
.data__terms dt { color: var(--dark-muted); font-size: var(--t-small); }
.data__terms dd { overflow-wrap: break-word; margin-top: 0.25rem; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }
@media (max-width: 760px) { .data__grid { grid-template-columns: 1fr; } .data__terms { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.5rem; } }

/* ---------- вопросы ---------- */
.faq__list { margin-top: 3rem; }
.faq details { box-shadow: inset 0 -1px 0 var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 22px 0; font-size: 1.3125rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; font-size: 1.75rem; font-weight: 300; color: var(--muted); transition: transform 250ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 2.5rem 22px 0; color: var(--muted); font-size: var(--t-body); }
.faq details .todo { margin: -8px 0 22px; padding: 0.6rem 0.9rem; }

/* ---------- финал ---------- */
.close__title { font-size: var(--t-hero); font-weight: 600; line-height: 1.05; letter-spacing: -0.035em; }
.close .lead { max-width: 30em; margin: 1.25rem auto 2rem; }

/* ---------- политика конфиденциальности ---------- */
.doc { padding: clamp(3rem, 6vw, 5rem) 0 var(--section); }
/* «конфиденциальности» одним словом не влезало в 320 px и раздвигало страницу */
.doc h1 { font-size: clamp(1.75rem, 1rem + 3.4vw, 3.5rem); font-weight: 600; line-height: 1.07; letter-spacing: -0.028em; overflow-wrap: break-word; hyphens: auto; }
.doc__date { margin-top: 0.75rem; color: var(--muted); font-size: var(--t-small); }
.doc h2 { margin-top: 2.75rem; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.doc h3 { margin-top: 1.5rem; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.015em; }
.doc p, .doc ul { margin-top: 0.75rem; }
.doc > .wrap > p:first-of-type + p { margin-top: 2rem; }
.doc ul { padding-left: 1.25rem; list-style: disc; }
.doc li + li { margin-top: 0.35rem; }
.doc__table { width: 100%; margin-top: 1rem; border-collapse: collapse; font-size: var(--t-small); }
.doc__table th, .doc__table td { padding: 10px 12px 10px 0; text-align: left; vertical-align: top; box-shadow: inset 0 -1px 0 var(--line); }
.doc__table thead th { font-weight: 600; }
.doc__table tbody th { font-weight: 500; width: 38%; }
@media (max-width: 600px) {
  .doc__table thead { display: none; }
  .doc__table tr { display: block; padding: 10px 0; box-shadow: inset 0 -1px 0 var(--line); }
  .doc__table th, .doc__table td { display: block; padding: 2px 0; box-shadow: none; width: auto; }
  .doc__table td:first-child { font-weight: 600; }
}

/* ---------- подвал ---------- */
.foot { padding: 1.25rem 0 2rem; background: var(--alt); color: var(--muted); font-size: var(--t-tiny); line-height: 1.33; letter-spacing: -0.01em; }
.foot__seo { padding-bottom: 0.75rem; }
.foot__note { padding-bottom: 1rem; box-shadow: inset 0 -1px 0 var(--line); }
.foot__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; padding: 1rem 0; box-shadow: inset 0 -1px 0 var(--line); }
.foot__links a { color: #424245; }
.foot__last { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; padding-top: 1rem; }
.foot .todo--inline { font-size: var(--t-tiny); }

/* ---------- движение ---------- */
/* Без скрипта и при reduce всё видно сразу: прячет только .js. */
@keyframes msg-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 900ms var(--ease-out), transform 1100ms var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
  .js [data-reveal='zoom'] { transform: translateY(60px) scale(0.94); transition-duration: 1200ms, 1400ms; }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .msg.is-new { animation: msg-in 360ms var(--ease-out) both; }
}
