/* Afterglow: сайт. Страница сама — закат: чем ниже прокрутка, тем темнее небо. */
:root {
  --night: #1c1226;
  --plum: #2b1a3a;
  --mulberry: #5a2a38;
  --ember: #8a4224;
  --peach: #ffb066;
  --blush: #fff0e6;
  --blush2: #e0b4a4;
  --line: rgba(255, 240, 230, .16);
  --glass: rgba(255, 240, 230, .07);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .001ms !important; animation: none !important; } }
body {
  margin: 0; color: var(--blush); font: 400 1.0625rem/1.65 var(--sans);
  background-color: var(--night);
  background-image: linear-gradient(180deg, #7d3b22 0, #5a2a38 760px, #2b1a3a 1900px, #1c1226 3200px);
  background-repeat: no-repeat;
}
img { max-width: 100%; display: block; }
a { color: var(--peach); text-underline-offset: .18em; }
a:hover { color: #ffd2a3; }
:focus-visible { outline: 3px solid var(--peach); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--blush); color: var(--night); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }

/* Шапка */
.top { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); background: rgba(60, 28, 36, .55); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--blush); font: 600 1.25rem/1 var(--serif); letter-spacing: .01em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav a { color: var(--blush); text-decoration: none; font-size: .98rem; opacity: .86; }
.nav a:hover { opacity: 1; color: var(--blush); text-decoration: underline; text-underline-offset: .35em; text-decoration-color: var(--peach); }
.nav .btn { opacity: 1; }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } .nav { gap: 0; } }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none;
  padding: 13px 24px; border-radius: 999px; font: 600 1rem/1 var(--sans); color: #3a1c20; background: var(--peach);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 10px 26px rgba(255, 150, 70, .25);
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.btn:hover { transform: translateY(-2px); background: #ffbf85; color: #3a1c20; box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 14px 30px rgba(255,150,70,.32); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: var(--glass); color: var(--blush); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { background: rgba(255, 240, 230, .14); color: var(--blush); }
.btn.small { padding: 10px 18px; font-size: .94rem; }

/* Герой */
.hero { padding: 72px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
@media (max-width: 980px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; } .hero { padding-top: 44px; } }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; letter-spacing: -.018em; }
h1 { font-size: clamp(2.7rem, 5.6vw, 4.5rem); line-height: 1.02; }
.lead { margin: 22px 0 0; font-size: 1.2rem; line-height: 1.6; color: var(--blush2); max-width: 31em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.fine { margin: 18px 0 0; font-size: .94rem; color: var(--blush2); max-width: 34em; }

/* Демонстрация ленты */
.stage { --b: #3d2030; --r: #4c2a3b; --t: #fff0e6; --t2: #e0b4a4; --a: #ffb066; --at: #3a1c20; --g1: #8a4224; --g2: #5a2a38; --g3: #2b1a3a; --m: #5e2f30; }
.stage[data-clean="off"] { --b: #0f0f0f; --r: #272727; --t: #f1f1f1; --t2: #aaaaaa; --a: #3ea6ff; --at: #0f0f0f; --g1: #0f0f0f; --g2: #0f0f0f; --g3: #0f0f0f; --m: #0f0f0f; }
.win { border-radius: 22px; overflow: hidden; background: linear-gradient(170deg, var(--g1), var(--g2) 55%, var(--g3)); color: var(--t); box-shadow: 0 40px 90px rgba(10, 4, 20, .5), 0 0 0 1px rgba(255, 240, 230, .14); transition: background .35s ease, color .35s ease; }
.win-top { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--m); transition: background .35s ease; }
.win-top .dots { display: flex; gap: 6px; }
.win-top .dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.win-top .search { flex: 1; height: 30px; border-radius: 999px; background: rgba(255, 255, 255, .1); max-width: 360px; margin-inline: auto; display: flex; align-items: center; padding-left: 14px; font-size: .82rem; color: var(--t2); }
.win-top .me { width: 28px; height: 28px; border-radius: 50%; background: var(--a); opacity: .9; }
.win-body { display: grid; grid-template-columns: 64px 1fr; min-height: 420px; }
.rail { display: flex; flex-direction: column; gap: 14px; align-items: center; padding: 18px 0; background: rgba(0, 0, 0, .16); }
.rail i { width: 22px; height: 22px; border-radius: 7px; background: var(--t2); opacity: .5; }
.rail i:first-child { background: var(--a); opacity: .95; }
.feed { padding: 16px 18px 20px; }
.chips { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.chip { font-size: .8rem; padding: 6px 14px; border-radius: 10px; background: var(--r); color: var(--t); transition: background .35s ease; }
.chip.on { background: var(--t); color: var(--b); }
.stage[data-clean="off"] .chip { border-radius: 8px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 700px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .win-body { grid-template-columns: 1fr; } .rail { display: none; } }
.card { background: var(--r); border-radius: 14px; padding: 14px 14px 12px; min-width: 0; transition: transform .18s ease, box-shadow .18s ease, background .35s ease, opacity .3s ease, max-height .4s ease, padding .4s ease, margin .4s ease; position: relative; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0, 0, 0, .26); }
.card .thumb { display: none; aspect-ratio: 16 / 9; border-radius: 10px; margin: -2px -2px 10px; background: linear-gradient(135deg, var(--c1, #556), var(--c2, #334)); }
.stage[data-clean="off"] .card { background: transparent; padding: 0 0 8px; border-radius: 0; }
.stage[data-clean="off"] .card:hover { transform: none; box-shadow: none; }
.stage[data-clean="off"] .card .thumb { display: block; border-radius: 12px; margin: 0 0 8px; }
.card h4 { margin: 0; font: 600 .92rem/1.35 var(--sans); color: var(--t); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card p { margin: 5px 0 0; font-size: .78rem; color: var(--t2); line-height: 1.4; }
.card .acc { color: var(--a); }
.stage[data-clean="off"] .card .acc { color: inherit; }
.card .bar { height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .16); margin-top: 10px; overflow: hidden; }
.card .bar b { display: block; width: 62%; height: 100%; background: var(--a); }
.stage[data-clean="off"] .card .bar b { background: #f03; }
/* то, что Afterglow убирает */
.junk .tag { display: none; }
.stage[data-clean="off"] .junk .tag { display: inline-block; font-size: .68rem; padding: 1px 6px; border-radius: 4px; background: rgba(255, 255, 255, .15); color: #ddd; margin-bottom: 6px; }
.stage[data-clean="on"] .junk { display: none; }
.stage[data-clean="off"] .junk { max-height: 400px; }
.stage[data-clean="on"] .junk.shorts { grid-column: auto; }
.shorts { grid-column: 1 / -1; }
.shorts .reel { display: flex; gap: 8px; }
.shorts .reel i { flex: 1; aspect-ratio: 9 / 14; border-radius: 10px; background: linear-gradient(160deg, #e34, #418); }
.shorts .reel i:nth-child(2) { background: linear-gradient(160deg, #19c, #536); }
.shorts .reel i:nth-child(3) { background: linear-gradient(160deg, #fb2, #c36); }
.shorts .reel i:nth-child(4) { background: linear-gradient(160deg, #3c8, #146); }
.shorts .reel { max-height: 150px; overflow: hidden; }
.stage[data-clean="on"] .shorts { max-height: 0; }
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.switch { display: inline-flex; align-items: center; gap: 12px; padding: 6px 8px 6px 16px; border-radius: 999px; border: 0; cursor: pointer; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); color: var(--blush); font: 600 .95rem var(--sans); }
.switch .track { width: 46px; height: 26px; border-radius: 999px; background: rgba(255, 240, 230, .22); position: relative; transition: background .2s ease; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--blush); transition: transform .2s ease; }
.switch[aria-checked="true"] .track { background: var(--peach); }
.switch[aria-checked="true"] .track::after { transform: translateX(20px); background: #3a1c20; }
.removed { font-size: .92rem; color: var(--blush2); min-height: 1.6em; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; align-items: center; }
.sw { width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; position: relative; padding: 0; transition: transform .15s ease, box-shadow .15s ease; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.sw:hover { transform: translateY(-2px); }
.sw[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--night), 0 0 0 5px var(--peach); }
.sw.pro::after { content: ""; position: absolute; right: -1px; top: -1px; width: 9px; height: 9px; border-radius: 50%; background: var(--blush); box-shadow: 0 0 0 2px var(--night); }
.sw-name { margin-left: 8px; font-size: .94rem; color: var(--blush2); }
.sw-name strong { color: var(--blush); font-weight: 600; }

/* Секции */
section { padding: 84px 0; }
.sec-head { max-width: 40em; margin-bottom: 44px; }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); line-height: 1.08; }
.sec-head p { margin: 16px 0 0; color: var(--blush2); font-size: 1.1rem; }
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 40px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.row h3 { font-size: 1.45rem; line-height: 1.2; }
.row p { margin: 0; color: var(--blush2); max-width: 36em; }
@media (max-width: 760px) { .row { grid-template-columns: 1fr; gap: 8px; } }

/* Бесплатно и Pro */
.cmp { width: 100%; border-collapse: collapse; font-size: 1rem; }
.cmp th, .cmp td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th { font: 600 1rem var(--sans); color: var(--blush); border-bottom: 2px solid var(--line); }
.cmp thead th:last-child { color: var(--peach); }
.cmp td:nth-child(2), .cmp td:nth-child(3), .cmp th:nth-child(2), .cmp th:nth-child(3) { width: 14%; text-align: center; }
.cmp tbody th { font-weight: 500; }
.cmp small { display: block; color: var(--blush2); font-size: .88rem; margin-top: 2px; font-weight: 400; }
.yes { color: var(--peach); font-weight: 700; }
.no { color: rgba(255, 240, 230, .35); }
.cmp-wrap { border-radius: 20px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); padding: 8px 14px; overflow-x: auto; }

/* Тарифы */
.plans { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px; align-items: stretch; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }
.plan { border-radius: 24px; padding: 34px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; }
.plan.pro { background: linear-gradient(165deg, rgba(255, 176, 102, .2), rgba(255, 176, 102, .06)); box-shadow: inset 0 0 0 1px rgba(255, 176, 102, .5), 0 30px 70px rgba(10, 4, 20, .35); }
.plan h3 { font-size: 1.6rem; }
.price { margin: 18px 0 4px; font: 500 3.4rem/1 var(--serif); letter-spacing: -.03em; }
.price small { font: 400 1rem var(--sans); color: var(--blush2); letter-spacing: 0; margin-left: 6px; }
.plan .sub { color: var(--blush2); min-height: 3.2em; margin: 0; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 10px; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 6px; border-left: 2px solid var(--peach); border-bottom: 2px solid var(--peach); transform: rotate(-45deg); }
.plan .btn { margin-top: auto; align-self: flex-start; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(0, 0, 0, .22); margin-top: 18px; }
.seg button { border: 0; cursor: pointer; padding: 9px 18px; border-radius: 999px; font: 600 .94rem var(--sans); color: var(--blush); background: transparent; transition: background .2s ease, color .2s ease; }
.seg button[aria-pressed="true"] { background: var(--peach); color: #3a1c20; }
.save { font-size: .76rem; margin-left: 6px; font-weight: 700; }
.note { margin-top: 22px; color: var(--blush2); font-size: .94rem; max-width: 46em; }

/* Шаги */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding: 0; margin: 0; list-style: none; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: s; border-top: 1px solid var(--line); padding-top: 18px; }
.steps li::before { content: counter(s); display: block; font: 500 2.2rem/1 var(--serif); color: var(--peach); margin-bottom: 12px; }
.steps h3 { font-size: 1.25rem; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--blush2); }

/* Вопросы */
.faq { border-top: 1px solid var(--line); max-width: 52em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font: 500 1.2rem/1.35 var(--serif); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 300 1.8rem var(--sans); color: var(--peach); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--blush2); max-width: 44em; }

/* Завершение и подвал */
.end { text-align: left; }
.end .box { border-radius: 28px; padding: 56px; background: linear-gradient(160deg, rgba(255, 176, 102, .22), rgba(138, 66, 36, .22) 60%, rgba(43, 26, 58, .4)); box-shadow: inset 0 0 0 1px rgba(255, 176, 102, .35); }
@media (max-width: 700px) { .end .box { padding: 32px 24px; } }
.end h2 { max-width: 14em; }
.end p { margin: 16px 0 0; color: var(--blush2); max-width: 34em; }
footer { padding: 44px 0 60px; border-top: 1px solid var(--line); color: var(--blush2); font-size: .94rem; }
footer .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; }
@media (max-width: 760px) { footer .wrap { grid-template-columns: 1fr; } }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--blush); }
footer p { margin: 8px 0 0; max-width: 46em; }

/* Страницы с текстом (условия, приватность и т. д.) */
.doc { padding: 56px 0 80px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: 8px; }
.doc .when { color: var(--blush2); margin: 0 0 30px; }
.doc h2 { font-size: 1.5rem; margin: 34px 0 8px; }
.doc p, .doc li { color: #f3dccf; max-width: 42em; }
.doc a { color: var(--peach); }
.doc .todo { padding: 14px 18px; border-radius: 14px; background: rgba(255, 176, 102, .12); box-shadow: inset 0 0 0 1px rgba(255, 176, 102, .4); }
.err { padding: 120px 0; }
.err h1 { font-size: clamp(3rem, 8vw, 6rem); }

/* Подъём тарифных карточек и строк таблицы при наведении */
@media (prefers-reduced-motion: no-preference) {
  .plan { transition: transform .2s ease, box-shadow .2s ease; }
  .plan:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
  .cmp tbody tr { transition: background-color .15s ease; }
}
.cmp tbody tr:hover { background: rgba(255, 220, 190, .06); }

/* Полоса прокрутки в цвет сайта */
html { scrollbar-color: #8a5048 #1d1322; }
::-webkit-scrollbar { width: 14px; height: 14px; }
::-webkit-scrollbar-track { background: #1d1322; }
::-webkit-scrollbar-thumb { background: #8a5048; border-radius: 999px; border: 3px solid #1d1322; }
::-webkit-scrollbar-thumb:hover { background: #ffb066; }

/* Скриншоты */
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.shots figure { margin: 0; }
.shots img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.shots figcaption { margin-top: 12px; color: var(--blush2); font-size: .98rem; }
.shots figcaption strong { color: var(--blush); }
.shots .wide { grid-column: 1 / -1; }
@media (max-width: 760px) { .shots { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: no-preference) { .shots img { transition: transform .2s ease; } .shots img:hover { transform: translateY(-4px); } }
.devnote { margin: 28px 0 0; max-width: 40em; color: var(--blush2); font-size: 1.02rem; }
#vs .cmp thead th:not(:first-child) { width: 36%; text-align: left; }
#vs .cmp td { text-align: left; }
#vs .cmp tbody th { width: 28%; }
.plans.one { grid-template-columns: minmax(0, 560px); }
