/* Сделать презентацию — светлый интерфейс, цветные градиенты, слайды в превью повторяют файл .pptx. */
:root {
  --bg: #f6f5ff;
  --ink: #15142b;
  --muted: #6b6a85;
  --line: rgba(21, 20, 43, .1);
  --card: rgba(255, 255, 255, .75);
  --a1: #5b5bf7;
  --a2: #ff5d8f;
  --a3: #ffb547;
  --grad: linear-gradient(120deg, var(--a1), var(--a2) 60%, var(--a3));
  --ease: cubic-bezier(.2, .8, .2, 1);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
.blobs { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.blobs i { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(80px); opacity: .35; animation: blob 26s ease-in-out infinite alternate; }
.blobs i:nth-child(1) { background: #a5a5ff; top: -18vmax; left: -12vmax; }
.blobs i:nth-child(2) { background: #ffb3cb; top: 20vh; right: -18vmax; animation-delay: -8s; }
.blobs i:nth-child(3) { background: #ffe1a8; bottom: -24vmax; left: 20vw; animation-delay: -16s; }
@keyframes blob { to { transform: translate3d(8vmax, 6vmax, 0) scale(1.15); } }

a { color: var(--a1); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0 0 16px; }
h1 { font-size: clamp(34px, 5.4vw, 60px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; }
h3 { font-size: 22px; }
p { margin: 0 0 14px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
main > section, main > article { margin-top: 80px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.lead { font-size: clamp(18px, 2vw, 21px); color: #3c3b57; max-width: 640px; }
.note { color: var(--muted); font-size: 15px; }

/* Шапка */
.top { position: sticky; top: 0; z-index: 50; transition: background .3s, box-shadow .3s; }
.top.scrolled { background: rgba(246, 245, 255, .8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.logo svg { width: 30px; height: 30px; color: var(--a1); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: 15px; opacity: .75; }
.nav a:not(.btn):hover { opacity: 1; }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* Кнопки */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border: 0; border-radius: 14px; background: var(--grad); background-size: 160% 100%; color: #fff; font: 700 16px var(--sans); text-decoration: none; cursor: pointer; box-shadow: 0 10px 30px -10px rgba(91, 91, 247, .7); transition: transform .2s var(--ease), box-shadow .2s, background-position .5s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(255, 93, 143, .7); background-position: 100% 0; color: #fff; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn-small { padding: 9px 16px; font-size: 14px; border-radius: 11px; }
.btn-big { padding: 17px 30px; font-size: 18px; border-radius: 16px; }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--a1), 0 10px 26px -14px rgba(91, 91, 247, .6); }

/* Появление */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-split] .w { display: inline-block; opacity: 0; transform: translateY(.5em); filter: blur(10px); transition: all .8s var(--ease); transition-delay: calc(var(--d) * 70ms + 100ms); }
[data-split].in .w { opacity: 1; transform: none; filter: none; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Первый экран */
.hero { padding: 30px 0 50px; }
.hero-in { display: grid; grid-template-columns: 1fr 470px; gap: 40px; align-items: start; }
.eyebrow { display: inline-block; padding: 6px 14px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 600; color: var(--a1); letter-spacing: .04em; }
.hero-title { font-size: clamp(40px, 6vw, 70px); margin-top: 18px; }
.stack { position: relative; height: 300px; margin-top: 26px; perspective: 1400px; }
.stack-in { position: relative; height: 100%; transition: opacity .45s, transform .45s var(--ease); }
.stack-in.swap { opacity: 0; transform: translateY(14px) scale(.98); }
.stack .card { position: absolute; width: 74%; border-radius: 14px; box-shadow: 0 30px 60px -24px rgba(21, 20, 43, .45); overflow: hidden; animation: floaty 7s ease-in-out infinite; }
.stack .c1 { right: 0; top: 0; transform: rotate(4deg) rotateY(-10deg); opacity: .9; animation-delay: -3s; }
.stack .c2 { left: 0; bottom: 0; transform: rotate(-3deg) rotateY(8deg); }
@keyframes floaty { 50% { translate: 0 -10px; } }
@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; }
  .stack { height: 220px; }
}

/* Форма */
.gen { padding: 24px; border-radius: 24px; background: var(--card); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 30px 80px -40px rgba(91, 91, 247, .55), inset 0 0 0 1px rgba(255, 255, 255, .8); display: grid; gap: 14px; scroll-margin-top: 80px; }
.gen label > span, .gen-themes > span { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.gen input[type=text], .gen select, .gen textarea, .buy input[type=email] { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: 16px var(--sans); transition: border-color .2s, box-shadow .2s; }
.gen-topic input { font-size: 18px; padding: 16px; }
.gen input:focus, .gen select:focus, .gen textarea:focus, .buy input:focus { outline: none; border-color: var(--a1); box-shadow: 0 0 0 4px rgba(91, 91, 247, .14); }
.gen-row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.gen-more summary { cursor: pointer; font-size: 14px; color: var(--a1); font-weight: 600; }
.gen-more textarea { margin-top: 8px; resize: vertical; }
.ex { display: flex; flex-wrap: wrap; gap: 6px; }
.ex-chip { padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: 13px var(--sans); color: var(--ink); cursor: pointer; transition: all .2s; }
.ex-chip:hover { border-color: var(--a1); color: var(--a1); }
.sws { display: flex; gap: 10px; flex-wrap: wrap; }
.sw { cursor: pointer; display: grid; justify-items: center; gap: 4px; }
.sw input { position: absolute; opacity: 0; pointer-events: none; }
.sw span { position: relative; display: block; width: 58px; height: 34px; border-radius: 8px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); transition: transform .2s, box-shadow .2s; overflow: hidden; }
.sw span b { position: absolute; left: 7px; top: 8px; width: 28px; height: 5px; border-radius: 3px; background: var(--ti); }
.sw span i { position: absolute; left: 7px; top: 17px; width: 16px; height: 3px; border-radius: 2px; background: var(--ac); }
.sw em { font-style: normal; font-size: 11px; color: var(--muted); }
.sw input:checked + span { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--a1); transform: translateY(-2px); }
.form-status { min-height: 1.3em; margin: 0; color: #d6336c; font-size: 15px; }
.recent { margin: 0; }
.form-wrap .gen { max-width: 640px; margin: 0 auto; }

/* Бегущая строка */
.marquee { overflow: hidden; padding: 14px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-in { display: flex; gap: 22px; width: max-content; animation: marquee 34s linear infinite; font-weight: 700; font-size: 20px; color: #3c3b57; white-space: nowrap; }
.marquee b { color: var(--a2); font-size: 10px; align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ───────── Слайд: размеры в % от ширины (cqw), как в .pptx 33,87 × 19,05 см ───────── */
.sl { position: relative; aspect-ratio: 16 / 9; background: var(--bg); color: var(--tx); container-type: inline-size; overflow: hidden; font-family: var(--bf), Arial, sans-serif; }
.sl-side { position: absolute; left: 0; top: 0; bottom: 0; width: 1.5cqw; background: var(--ac); }
.sl-ttl { position: absolute; left: 4.7cqw; width: 51.7cqw; bottom: 41%; color: var(--ti); font: 700 5.2cqw/1.1 var(--tf), Georgia, serif; }
.sl-title:not(.has-img) .sl-ttl { width: 90cqw; }
.sl-bar { position: absolute; left: 4.7cqw; top: 61%; width: 8.9cqw; height: .55cqw; background: var(--ac); }
.sl-sub { position: absolute; left: 4.7cqw; top: 64.5%; width: 51.7cqw; font-size: 2.1cqw; line-height: 1.35; }
.sl-title .sl-img { left: 59.6cqw; top: 12.6%; width: 36cqw; }
.sl-h { position: absolute; left: 4.7cqw; right: 4.7cqw; top: 6.8%; height: 13.6%; display: flex; align-items: flex-end; color: var(--ti); font: 700 3.6cqw/1.12 var(--tf), Georgia, serif; }
.sl-bar2 { position: absolute; left: 4.7cqw; top: 22.3%; width: 7cqw; height: .42cqw; background: var(--ac); }
.sl-ul { position: absolute; left: 4.7cqw; top: 26.8%; width: 90cqw; margin: 0; padding: 0; list-style: none; font-size: 2.7cqw; line-height: 1.25; }
.has-img .sl-ul { width: 54cqw; font-size: 2.3cqw; }
.sl-ul.many { font-size: 2.3cqw; }
.has-img .sl-ul.many { font-size: 2cqw; }
.sl-ul li { position: relative; padding-left: 3.3cqw; margin-bottom: 1.6cqw; }
.sl-ul li::before { content: ''; position: absolute; left: .4cqw; top: .55em; width: 1.05cqw; height: 1.05cqw; border-radius: 50%; background: var(--ac); }
.sl-ul .bar { display: inline-block; height: 1.6cqw; border-radius: 1cqw; background: var(--tx); opacity: .25; filter: blur(.25cqw); vertical-align: middle; }
.sl-content .sl-img { left: 62cqw; top: 26.2%; width: 33.1cqw; }
.sl-img { position: absolute; aspect-ratio: 1; border-radius: 1.4cqw; object-fit: cover; }
.sl-ph { display: grid; place-items: center; background: linear-gradient(135deg, color-mix(in srgb, var(--ac) 30%, transparent), color-mix(in srgb, var(--ti) 12%, transparent)); outline: .2cqw dashed color-mix(in srgb, var(--ac) 60%, transparent); outline-offset: -1cqw; }
.sl-ph span { font-size: 1.8cqw; color: var(--mu); }
.sl-n { position: absolute; right: 4.7cqw; bottom: 3.5%; font-size: 1.15cqw; color: var(--mu); }
.sl-topbar { position: absolute; left: 0; right: 0; top: 0; height: 1.5cqw; background: var(--ac); }
.sl-endt { position: absolute; left: 4.7cqw; right: 4.7cqw; top: 30%; text-align: center; color: var(--ti); font: 700 4.6cqw/1.15 var(--tf), Georgia, serif; }
.sl-ends { position: absolute; left: 4.7cqw; right: 4.7cqw; top: 56%; text-align: center; font-size: 2.1cqw; }
.sl-lock { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, transparent 30%, color-mix(in srgb, var(--bg) 70%, transparent)); }
.sl-lock span { margin-top: 18cqw; padding: 1cqw 2cqw; border-radius: 99px; background: rgba(21, 20, 43, .78); color: #fff; font: 600 1.7cqw var(--sans); }

/* Витрина тем */
.showcase { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.showcase figure { margin: 0; }
.showcase .sl { border-radius: 10px; box-shadow: 0 18px 40px -22px rgba(21, 20, 43, .45); }
.showcase figcaption { margin-top: 8px; text-align: center; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .showcase { grid-template-columns: repeat(2, 1fr); } }

/* Студия */
.studio { scroll-margin-top: 76px; }
.gen-progress { display: grid; justify-items: center; gap: 10px; padding: 60px 16px; text-align: center; border-radius: 24px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.gp-text { font-size: 22px; font-weight: 700; margin: 0; animation: pulseText 1.6s ease-in-out infinite; }
@keyframes pulseText { 50% { opacity: .55; } }
.orbit { position: relative; width: 70px; height: 70px; animation: spin 2.4s linear infinite; }
.orbit i { position: absolute; width: 18px; height: 18px; border-radius: 50%; background: var(--a1); left: 26px; top: 0; }
.orbit i:nth-child(2) { background: var(--a2); left: 0; top: 40px; }
.orbit i:nth-child(3) { background: var(--a3); left: 52px; top: 40px; }
@keyframes spin { to { transform: rotate(360deg); } }
.gen-fail { padding: 30px; border-radius: 20px; background: #fff; text-align: center; }
.st-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 14px; }
.st-head h2 { margin: 8px 0 4px; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 700; color: var(--a1); }
.badge.ok { background: #e7f8ef; color: #0f8a55; box-shadow: none; }
.st-themes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.th { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: 600 14px var(--sans); color: var(--ink); cursor: pointer; transition: all .2s; }
.th b { width: 18px; height: 18px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 4px var(--ac); }
.th.on { border-color: var(--a1); box-shadow: 0 0 0 3px rgba(91, 91, 247, .16); }
.st-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.st-slide { margin: 0; animation: slideIn .7s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
.st-slide .sl { border-radius: 12px; box-shadow: 0 20px 44px -24px rgba(21, 20, 43, .5); }
@keyframes slideIn { from { opacity: 0; transform: translateY(20px) scale(.97); } }
@media (max-width: 760px) { .st-grid { grid-template-columns: 1fr; } }
.buy { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; margin: 0 0 22px; padding: 22px; border-radius: 22px; background: #fff; box-shadow: 0 26px 60px -36px rgba(91, 91, 247, .7), inset 0 0 0 1px rgba(91, 91, 247, .25); }
.buy-bottom { margin: 24px 0 0; }
.buy h3 { margin-bottom: 6px; }
.buy-form { display: grid; gap: 10px; }
.buy-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { margin-top: 3px; accent-color: var(--a1); }
@media (max-width: 760px) { .buy { grid-template-columns: 1fr; } }
.notes { margin-top: 26px; padding: 18px 22px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.notes summary { cursor: pointer; font-weight: 700; font-size: 18px; }
.notes li { margin: 10px 0; }
.pack-card { max-width: 560px; margin: 0 auto; padding: 30px; border-radius: 24px; background: #fff; text-align: center; box-shadow: 0 26px 60px -36px rgba(91, 91, 247, .7); }
.pack-code { font-size: clamp(24px, 6vw, 36px); font-weight: 800; letter-spacing: .06em; margin: 4px 0 16px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; word-break: break-all; }

/* Шаги, плитки, цены, тексты */
.steps-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 0; list-style: none; }
.steps-list li { display: grid; gap: 8px; padding: 26px 22px; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.steps-list li:nth-child(2) { transition-delay: .1s; }
.steps-list li:nth-child(3) { transition-delay: .2s; }
.step-n { font-size: 44px; font-weight: 900; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps-list strong { font-size: 20px; }
@media (max-width: 760px) { .steps-list { grid-template-columns: 1fr; } }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.tile { display: grid; gap: 6px; padding: 20px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; transition: box-shadow .3s; }
.tile:hover { box-shadow: inset 0 0 0 1px var(--a1), 0 20px 40px -26px rgba(91, 91, 247, .7); color: var(--ink); }
.tile strong { font-size: 19px; }
.tile .muted { font-size: 14px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan { padding: 26px 22px; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.plan-hot { background: #fff; box-shadow: 0 30px 70px -36px rgba(91, 91, 247, .8), inset 0 0 0 2px rgba(91, 91, 247, .45); }
.plan-name { font-weight: 700; margin: 0; color: var(--a1); }
.plan-price { font-size: 46px; font-weight: 900; line-height: 1.1; margin: 6px 0 14px; }
.plan-price s { font-size: 20px; font-weight: 500; }
.plan ul { padding-left: 18px; margin: 0 0 18px; }
.plan li { margin: 6px 0; }
.plan .check { margin-bottom: 12px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.page-head { padding-top: 30px; }
.crumbs { margin-top: 18px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.content { max-width: 820px; }
.content h2 { font-size: clamp(24px, 3vw, 32px); margin-top: 32px; }
.content li { margin: 6px 0; }
.tags { margin-top: 24px; font-size: 14px; color: var(--muted); }
.tags span { display: inline-block; margin: 4px 6px 0 0; padding: 3px 10px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: '+'; color: var(--a1); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 10px 0 0; color: #3c3b57; }

/* Подвал и cookie */
.foot { margin-top: 100px; padding: 46px 0 36px; background: #fff; box-shadow: 0 -1px 0 var(--line); }
.foot .cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 22px; }
.foot .cols div { display: grid; gap: 6px; align-content: start; font-size: 14px; }
.foot .cols strong { margin-bottom: 4px; }
.foot .cols a { color: var(--muted); text-decoration: none; }
.foot .cols a:hover { color: var(--a1); }
@media (max-width: 760px) { .foot .cols { grid-template-columns: 1fr 1fr; } }
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; max-width: 560px; margin: 0 auto; padding: 16px 18px; border-radius: 18px; background: #fff; box-shadow: 0 20px 60px -20px rgba(21, 20, 43, .4); font-size: 14px; }
.cookie p { margin: 0 0 10px; }
.cookie-btns { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 520px) {
  body { font-size: 16px; }
  main > section, main > article { margin-top: 60px; }
  .gen { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal], [data-split] .w { opacity: 1; transform: none; filter: none; }
}
