/* TION × DM — общий каркас (видеофон, вуаль, экраны, карточка). Скины A/B переопределяют токены. */
.tion-page { --veil: 0; /* осветление фона убрано 06.10.2026 по решению Антона */ --tion-blue: #00B1EB; --tion-deep: #0D3F4F; --tion-teal: #00707A; --tion-green: #99CC33;
  --ink: #1f1f1f; --ink-2: #7b7b81; --ink-3: #9d9da4;
  --ease-in: cubic-bezier(.22,1,.36,1); --ease-out: cubic-bezier(.4,0,1,1);
  --card-w: 728px; --card-pad: 40px; --card-radius: 24px;
  --font-display: 'Graphik', 'Inter Tight', 'Inter', system-ui, sans-serif;
  --font-ui: 'Manrope', system-ui, sans-serif;
  --font-text: 'Lora', Georgia, serif;
  margin: 0; min-height: 100svh; color: var(--ink); font-family: var(--font-ui); background: #fff; }
.tion-page *, .tion-page *::before, .tion-page *::after { box-sizing: border-box; }

/* шапка DM: прозрачная, в «тёмном» исполнении (белый логотип и меню, как на body-dark) — решение Антона 10.10.2026 */
.tion-page .header-news, .tion-page .header-news-top, .tion-page .header-news-bottom { background: transparent !important; }
.tion-page .header-news-bottom { border-bottom: 1px solid rgba(255,255,255,.22); }
.tion-page .header-news-list li a, .tion-page .header-list li a { color: #fff; }
.tion-page .header-news-list li a:hover { color: #dadada; }
.tion-page .header-news-list li.header-news-list-end-item { background: rgba(255,255,255,.18); }
.tion-page .header-search svg path { fill: #fff; }
.tion-page .header-bar.header-news-bar span { -webkit-filter: invert(1); filter: invert(1); }
.tion-page .header-news-list li.header-add a.header-add__btn { background: #fff; color: #1f1f1f; }
.tion-page .header-news-list li.header-add a.header-add__btn svg { color: #1f1f1f; }
.tion-page .header-news-list li.header-add a.header-add__btn:hover { background: #f2f2f2; color: #1f1f1f; }

/* ---------- видеофон ---------- */
.tion-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #cfe6f3 center/cover no-repeat; }
.tion-bg video, .tion-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.tion-bg .tion-release { opacity: 0; transition: opacity .8s var(--ease-in); }
.tion-bg.is-release .tion-release { opacity: 1; }
.tion-veil { position: absolute; inset: 0; background: #e6edf1; opacity: var(--veil); transition: opacity .9s ease-out; pointer-events: none; }
.tion-scrim-top { position: absolute; left: 0; right: 0; top: 0; height: 160px; background: linear-gradient(180deg, rgba(13,63,79,.42), rgba(13,63,79,0)); pointer-events: none; }
.tion-scrim-bottom { position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(0deg, rgba(13,63,79,.22), rgba(13,63,79,0)); pointer-events: none; }
.tion-glow { position: absolute; left: -10%; top: -20%; width: 60vw; height: 60vw; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, rgba(255,250,230,.85) 0%, rgba(255,250,230,0) 60%); transition: opacity 1.2s ease-out; }
.tion-bg.is-release .tion-glow { opacity: 1; }
.tion-video-toggle { position: fixed; right: 16px; bottom: 16px; z-index: 5; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.7); color: var(--tion-deep); display: grid; place-items: center; backdrop-filter: blur(8px); }
.tion-video-toggle svg { width: 16px; height: 16px; }
.tion-video-toggle .ico-play { display: none; } .tion-video-toggle.is-paused .ico-play { display: block; } .tion-video-toggle.is-paused .ico-pause { display: none; }

/* ---------- сцена ---------- */
.tion-stage { position: relative; z-index: 1; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 140px 16px 40px; }
.tion-stage__inner { width: 100%; max-width: var(--card-w); display: flex; flex-direction: column; align-items: center; }
#tion-app { width: 100%; }
.tion-adlabel { margin: 22px 0 0; font: 500 12px/1.4 var(--font-ui); color: rgba(255,255,255,.9); text-shadow: 0 1px 8px rgba(13,63,79,.45); text-align: center; letter-spacing: .01em; }
.tion-screen { width: 100%; max-width: var(--card-w); }
.tion-screen.is-leaving { pointer-events: none; }
.tion-card { position: relative; padding: var(--card-pad); border-radius: var(--card-radius); }
.tion-hero { text-align: center; color: #fff; margin: 0 auto 28px; max-width: 820px; }
.tion-hero h1 { font-family: var(--font-display); font-weight: 700; font-size: 56px; line-height: 1; letter-spacing: -.5px; margin: 10px 0 0; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.tion-eyebrow { font: 600 12px/1.4 var(--font-ui); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.tion-hero .tion-eyebrow { color: rgba(255,255,255,.85); }

/* прогресс */
.tion-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.tion-progress__bar { flex: 1; display: flex; gap: 6px; }
.tion-progress__seg { flex: 1; height: 4px; border-radius: 2px; background: rgba(13,63,79,.12); overflow: hidden; position: relative; }
.tion-progress__seg::after { content: ''; position: absolute; inset: 0; background: var(--tion-blue); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-in); }
.tion-progress__seg.is-done::after { transform: scaleX(1); }
.tion-progress__label { font: 600 12px/1 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.tion-air { font: 500 13px/1.3 var(--font-ui); color: var(--tion-teal); margin: -12px 0 18px; min-height: 17px; }

/* вопрос */
.tion-q { font-family: var(--font-display); font-weight: 700; font-size: 36px; line-height: 1.1; letter-spacing: -.5px; margin: 0 0 24px; }
.tion-opts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tion-opt { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 14px 48px 14px 18px; border-radius: 16px; border: 1px solid rgba(13,63,79,.14);
  background: rgba(255,255,255,.55); color: var(--ink); font: 600 18px/1.3 var(--font-ui); text-align: left; cursor: pointer; touch-action: manipulation;
  transition: background .15s, border-color .15s, transform .1s; }
.tion-opt:hover { background: rgba(255,255,255,.85); border-color: var(--tion-deep); }
.tion-opt:active { transform: scale(.98); }
.tion-opt:focus-visible { outline: 2px solid var(--tion-blue); outline-offset: 2px; }
.tion-opt[aria-checked="true"] { border: 2px solid var(--tion-blue); background: rgba(0,177,235,.10); padding: 13px 47px 13px 17px; }
.tion-opt__ico { flex: 0 0 24px; width: 24px; height: 24px; color: var(--tion-deep); }
.tion-opt__ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tion-opt__check { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%; flex: 0 0 22px; opacity: 0; transition: opacity .12s; display: grid; place-items: center; background: var(--tion-blue); color: #fff; }
.tion-opt[aria-checked="true"] .tion-opt__check { opacity: 1; }
.tion-opt__check svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2.4; fill: none; }
.tion-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.tion-link { background: none; border: 0; padding: 8px 0; cursor: pointer; font: 600 14px/1 var(--font-ui); color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.tion-link:hover { color: var(--tion-deep); }
.tion-link:focus-visible { outline: 2px solid var(--tion-blue); outline-offset: 4px; border-radius: 4px; }
.tion-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px; border-radius: 999px; border: 0; cursor: pointer;
  font: 700 16px/1 var(--font-ui); background: var(--tion-blue); color: var(--tion-deep); transition: background .15s, transform .1s, color .15s; touch-action: manipulation; }
.tion-btn:hover { background: #2cc0f0; } .tion-btn:active { transform: scale(.98); }
.tion-btn:focus-visible { outline: 2px solid var(--tion-deep); outline-offset: 3px; }
.tion-btn:disabled { background: rgba(13,63,79,.08); color: var(--ink-3); cursor: default; transform: none; }
.tion-btn--ghost { background: transparent; color: var(--tion-deep); border: 1.5px solid var(--tion-deep); }
.tion-btn--ghost:hover { background: rgba(13,63,79,.06); }

/* результат — карточка совета «как картинка» */
.tion-result { padding: 0; overflow: hidden; }
.tion-result__visual { position: relative; aspect-ratio: 16 / 7; background: #dfe9ee; }
.tion-result__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tion-result__visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(13,63,79,.35) 100%); }
.tion-result__tags { position: absolute; left: 20px; bottom: 18px; display: flex; gap: 8px; z-index: 1; flex-wrap: wrap; }
.tion-tag { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--tion-deep); font: 600 13px/1 var(--font-ui); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.tion-tag--num { background: var(--tion-blue); color: var(--tion-deep); }
.tion-result__body { padding: 28px var(--card-pad) var(--card-pad); }
.tion-result h2 { font-family: var(--font-display); font-weight: 700; font-size: 38px; line-height: 1.05; letter-spacing: -.5px; margin: 0 0 16px; }
.tion-why { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tion-why li { font: 500 13px/1 var(--font-ui); color: var(--tion-deep); background: rgba(0,177,235,.12); padding: 7px 10px; border-radius: 999px; }
.tion-why li:first-child { background: none; padding-left: 0; color: var(--ink-2); font-weight: 500; }
.tion-text { font: 400 17px/1.65 var(--font-text); margin: 0 0 20px; }
.tion-steps-box { background: rgba(13,63,79,.045); border-radius: 16px; padding: 18px 20px 14px; margin: 0 0 18px; }
.tion-h3 { font-family: var(--font-display); font-weight: 500; font-size: 15px; margin: 0 0 12px; }
.tion-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tion-steps li { counter-increment: s; display: flex; flex-direction: column; gap: 8px; font: 500 15px/1.4 var(--font-ui); }
.tion-steps li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #fff; font: 500 13px/1 var(--font-display); color: var(--tion-deep); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.tion-more { margin: 12px 0 0; }
.tion-more summary { cursor: pointer; list-style: none; font: 600 13px/1 var(--font-ui); color: var(--tion-teal); display: inline-flex; gap: 6px; align-items: center; padding: 4px 0; }
.tion-more summary::-webkit-details-marker { display: none; }
.tion-more summary::after { content: '↓'; transition: transform .25s; } .tion-more[open] summary::after { transform: rotate(180deg); }
.tion-more .tion-text { margin: 10px 0 0; font-size: 16px; }
.tion-more .tion-why { margin: 14px 0 4px; }
.tion-product { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center; padding: 22px 24px 22px 16px; border-radius: 16px; background: rgba(0,177,235,.08); margin: 0 0 18px; overflow: hidden; }
.tion-product__visual { position: relative; width: 200px; height: 200px; display: grid; place-items: end center; text-decoration: none; cursor: pointer; }
.tion-product__visual:hover .tion-product__circle { transform: translate(-50%, -46%) scale(1.04); }
.tion-product__visual:hover .tion-product__img { transform: translateY(-4px); }
.tion-product__visual:focus-visible { outline: 2px solid var(--tion-blue); outline-offset: 4px; border-radius: 50%; }
.tion-product__circle { position: absolute; left: 50%; top: 50%; width: 160px; height: 160px; border-radius: 50%; transform: translate(-50%, -46%); background: var(--tion-green, #99CC33); box-shadow: inset 0 -12px 30px rgba(0,0,0,.08); transition: transform .3s var(--ease-in); }
.tion-product__img { position: relative; width: 190px; height: 190px; object-fit: contain; filter: drop-shadow(0 14px 22px rgba(13,63,79,.22)); background: transparent; border-radius: 0; transition: transform .3s var(--ease-in); }
.tion-product__eyebrow { font: 700 12px/1.4 var(--font-ui); text-transform: uppercase; letter-spacing: .08em; color: var(--tion-teal); margin-bottom: 4px; }
.tion-product__name { font-family: var(--font-display); font-weight: 500; font-size: 19px; margin: 0 0 8px; }
.tion-product p { font: 400 15px/1.5 var(--font-ui); margin: 0 0 12px; }
.tion-expert { padding: 14px 16px; border-radius: 12px; background: rgba(13,63,79,.05); margin: 0 0 18px; font: italic 400 16px/1.5 var(--font-text); }
.tion-expert small { display: block; font: 600 12px/1.4 var(--font-ui); color: var(--ink-2); margin-top: 6px; text-transform: uppercase; letter-spacing: .06em; font-style: normal; }
.tion-share { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 0; border-top: 1px solid rgba(13,63,79,.1); border-bottom: 1px solid rgba(13,63,79,.1); margin: 0 0 18px; }
.tion-share__label { font: 600 14px/1 var(--font-ui); color: var(--ink); }
.tion-share__row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tion-share__btn { width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(13,63,79,.06); color: var(--tion-deep); display: grid; place-items: center; cursor: pointer; transition: background .15s, transform .1s, color .15s; }
.tion-share__btn svg { width: 24px; height: 24px; fill: currentColor; display: block; }
.tion-share__btn svg[fill="none"] { fill: none; }   /* контурная «ссылка» не должна заливаться */
.tion-share__btn:hover { background: var(--tion-deep); color: #fff; } .tion-share__btn:active { transform: scale(.95); }
.tion-share__btn:focus-visible { outline: 2px solid var(--tion-blue); outline-offset: 2px; }
.tion-share__done { font: 500 13px/1 var(--font-ui); color: var(--tion-teal); min-width: 0; }
.tion-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* заголовок на фото (основной вид с 06.10.2026) */
.tion-result--photo-title .tion-result__visual { aspect-ratio: 16 / 9; }
.tion-result--photo-title .tion-result__visual::after { background: linear-gradient(180deg, rgba(13,63,79,0) 22%, rgba(13,63,79,.45) 55%, rgba(13,63,79,.82) 100%); }
.tion-result__caption { position: absolute; left: var(--card-pad); right: var(--card-pad); bottom: 26px; z-index: 1; }
.tion-result__caption .tion-result__tags { position: static; margin-bottom: 14px; }
.tion-result--photo-title .tion-result__caption h2 { color: #fff; font-size: 38px; margin: 0; text-shadow: 0 2px 18px rgba(0,0,0,.25); text-wrap: balance; }
.tion-result--photo-title .tion-result__body { padding-top: 24px; }
@media (max-width: 768px) {
  .tion-result--photo-title .tion-result__visual { aspect-ratio: 4 / 3; }
  .tion-result--photo-title .tion-result__visual::after { background: linear-gradient(180deg, rgba(13,63,79,0) 10%, rgba(13,63,79,.5) 45%, rgba(13,63,79,.85) 100%); }
  .tion-result__caption .tion-result__tags { margin-bottom: 10px; }
  .tion-result__caption { left: 16px; right: 16px; bottom: 16px; }
  .tion-result--photo-title .tion-result__caption h2 { font-size: 24px; }
  .tion-result__caption .tion-tag { height: 26px; font-size: 12px; padding: 0 10px; }
}

/* ---------- анимация экранов ---------- */
.tion-screen { animation: tionIn .4s var(--ease-in) both; }
.tion-screen.dir-back { animation-name: tionInBack; }
.tion-screen.is-leaving { animation: tionOut .2s var(--ease-out) both; }
.tion-screen.is-leaving.dir-back { animation-name: tionOutBack; }
@keyframes tionIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes tionInBack { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
@keyframes tionOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-16px); } }
@keyframes tionOutBack { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(16px); } }
.tion-stagger > * { animation: tionIn .4s var(--ease-in) both; }
.tion-stagger > *:nth-child(2) { animation-delay: .04s } .tion-stagger > *:nth-child(3) { animation-delay: .08s } .tion-stagger > *:nth-child(4) { animation-delay: .12s } .tion-stagger > *:nth-child(5) { animation-delay: .16s } .tion-stagger > *:nth-child(6) { animation-delay: .2s }
.tion-word { display: inline-block; animation: tionIn .4s var(--ease-in) both; }
.tion-product__img.is-reveal { animation: tionIn .5s var(--ease-in) .3s both; }

@media (prefers-reduced-motion: reduce) {
  .tion-page * { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .tion-veil { transition: none; }
}
/* ---------- адаптив ---------- */
@media (max-width: 1100px) { .tion-stage { padding-top: 120px; } }
@media (max-width: 768px) {
  .tion-page { --card-pad: 22px; --card-radius: 20px; }
  .tion-stage { padding: 110px 12px 32px; align-items: stretch; justify-content: flex-start; }
  .tion-hero h1 { font-size: 34px; line-height: 1.05; }
  .tion-q { font-size: 26px; margin-bottom: 18px; }
  .tion-opt { font-size: 16px; min-height: 52px; padding: 12px 40px 12px 14px; gap: 12px; }
  .tion-opt[aria-checked="true"] { padding: 11px 39px 11px 13px; }
  .tion-opt__check { right: 10px; }
  .tion-page { --card-pad: 18px; }
  .tion-result h2 { font-size: 27px; }
  .tion-result__body { padding: 20px var(--card-pad) var(--card-pad); }
  .tion-result__visual { aspect-ratio: 16 / 9; }
  .tion-result__tags { left: 14px; bottom: 12px; }
  .tion-text { font-size: 16px; line-height: 1.6; }
  .tion-steps { grid-template-columns: 1fr; gap: 10px; }
  .tion-steps li { flex-direction: row; align-items: flex-start; }
  .tion-steps li::before { flex: 0 0 26px; }
  .tion-product { grid-template-columns: 1fr; gap: 8px; padding: 16px; }
  .tion-product__visual { width: 160px; height: 160px; margin: 0 auto; }
  .tion-product__circle { width: 128px; height: 128px; }
  .tion-product__img { width: 150px; height: 150px; }
  .tion-share { flex-direction: column; align-items: flex-start; }
  .tion-scrim-top { height: 140px; }
}
