/* Сайт платформы: лендинг, активация, документы. */
.wrap { width: min(1160px, 100% - 40px); margin: 0 auto; }
.wrap.narrow { width: min(760px, 100% - 40px); }

.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px max(20px, calc((100% - 1160px) / 2)); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.scrolled { border-color: var(--line); }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 600 22px/1 var(--font-display); text-decoration: none; letter-spacing: -.01em; }
.logo-mark { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); position: relative; flex: none; }
.logo-mark::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 2px solid var(--on-accent); border-bottom-color: transparent; border-left-color: transparent; transform: rotate(-45deg); }
.top-nav { display: flex; gap: 26px; font-size: 15px; }
.top-nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.top-nav a:hover { color: var(--text); }
.top-actions { gap: 6px; }
@media (max-width: 900px) { .top-nav { display: none; } }
@media (max-width: 520px) { .hide-s { display: none; } }

/* первый экран */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 9vw, 120px) 0 clamp(56px, 8vw, 110px); }
.hero-light { position: absolute; inset: -30% -10% auto; height: 120%; pointer-events: none; background: radial-gradient(50% 50% at 72% 38%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%); animation: drift 16s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(-6%, 5%, 0) scale(1.12); } }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.display { font: 500 clamp(40px, 7.4vw, 86px)/1.02 var(--font-display); letter-spacing: -.025em; margin-bottom: 26px; }
.display em { font-style: italic; color: var(--accent); }
.display .line { display: block; overflow: hidden; padding-bottom: .08em; }
.display .line > span { display: inline-block; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 34em; margin-bottom: 30px; }
.lead-s { font-size: 18px; color: var(--muted); max-width: 40em; margin: 14px 0 0; }
.address { margin-top: 34px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); font-size: 15px; }
.address b { font-weight: 600; min-width: 1ch; }
.address-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }

/* кинематографичное появление */
.rise { opacity: 0; transform: translateY(28px); animation: rise 1.1s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 130ms + 120ms); }
.display .rise { transform: translateY(105%); opacity: 1; animation-name: rise-line; animation-duration: 1.2s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes rise-line { to { transform: none; } }
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
[data-reveal].in { opacity: 1; transform: none; }

/* сцена «путь заказа» */
.scene { display: grid; gap: 18px; }
.ticket { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); transform: rotate(-1.4deg); }
.ticket ul { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 9px; font-size: 15px; }
.ticket li { display: flex; justify-content: space-between; gap: 12px; }
.ticket li span:last-child { color: var(--muted); }
.ticket-sum { border-top: 1px dashed var(--line); padding-top: 14px; }
.scene-status i::after { content: "Новый"; font-style: normal; animation: status 12s steps(1) infinite; }
@keyframes status { 0% { content: "Новый"; } 25% { content: "Готовится"; } 50% { content: "Готов"; } 75% { content: "В доставке"; } }
.rail { list-style: none; margin: 0; padding: 6px 0 0 4px; display: grid; gap: 0; position: relative; }
.rail li { display: grid; grid-template-columns: 26px 1fr; column-gap: 14px; padding-bottom: 16px; position: relative; opacity: .38; animation: rail 12s infinite; }
.rail li:nth-child(2) { animation-delay: 3s; } .rail li:nth-child(3) { animation-delay: 6s; } .rail li:nth-child(4) { animation-delay: 9s; }
.rail li::before { content: ""; position: absolute; left: 12px; top: 26px; bottom: 0; width: 2px; background: var(--line); }
.rail li:last-child::before { display: none; }
.rail-dot { grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); background: var(--bg); animation: rail-dot 12s infinite; animation-delay: inherit; }
.rail b { font-size: 16px; } .rail small { color: var(--muted); font-size: 14px; }
@keyframes rail { 0%, 24% { opacity: 1; } 28%, 100% { opacity: .38; } }
@keyframes rail-dot { 0%, 24% { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); } 28%, 100% { background: var(--bg); border-color: var(--line); box-shadow: none; } }

/* разделы */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section.alt { background: var(--surface-2); }
.h2 { font: 500 clamp(30px, 4.6vw, 52px)/1.06 var(--font-display); letter-spacing: -.02em; max-width: 18em; }
.steps, .features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
@media (max-width: 900px) { .steps, .features { grid-template-columns: 1fr; } }
@media (min-width: 620px) and (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
.step, .feature { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.step h3, .feature h3 { font-size: 20px; margin-bottom: 10px; }
.step p, .feature p { color: var(--muted); }
.step-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font: 600 20px var(--font-display); margin-bottom: 20px; }
.feature { transition: transform .5s var(--ease), box-shadow .5s, opacity .9s var(--ease); }
.feature.in:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

/* тарифы */
#plan-switch { display: inline-block; margin: 32px 0 8px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 30px; position: relative; animation: rise .7s var(--ease) both; animation-delay: calc(var(--i) * 80ms); }
.plan.hl { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.plan .badge { position: absolute; top: -12px; left: 28px; background: var(--accent); color: var(--on-accent); }
.plan h3 { font: 500 26px var(--font-display); }
.plan .desc { color: var(--muted); font-size: 15px; margin: 8px 0 20px; min-height: 3em; }
.price { font: 500 46px/1 var(--font-display); letter-spacing: -.02em; }
.price small { font: 400 16px var(--font); color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 11px; font-size: 15px; flex: 1; align-content: start; }
.plan li { display: flex; gap: 10px; }
.plan li .ico { color: var(--ok); width: 18px; margin-top: 2px; }
.plan li.no { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 50%, transparent); }
.plan li.no .ico { color: var(--muted); }

/* заявка */
.apply { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .apply { grid-template-columns: 1fr; } }
.apply-form { padding: clamp(20px, 3vw, 32px); border-radius: 22px; box-shadow: var(--shadow); }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 12px; align-items: center; }
.contact-list .ico { color: var(--accent); }
.contact-list a { text-decoration: none; font-weight: 600; }
.done-box { text-align: center; padding: 24px 8px; display: grid; gap: 12px; justify-items: center; }
.done-mark { width: 64px; height: 64px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); display: grid; place-items: center; animation: pop .5s var(--ease); }
.done-mark .ico { width: 30px; height: 30px; }

.faq { margin-top: 32px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 36px 20px 0; font-size: 18px; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 26px; font-weight: 300; color: var(--muted); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 0 22px; color: var(--muted); max-width: 46em; }

.footer { border-top: 1px solid var(--line); padding: 44px 0 56px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-links { display: grid; gap: 9px; align-content: start; font-size: 15px; }
.footer-links a { text-decoration: none; color: var(--muted); }
.footer-links a:hover { color: var(--text); }
#legal-line { margin-top: 14px; max-width: 32em; }

/* страница активации */
.flow { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; }
.flow-main { display: grid; place-items: start center; padding: clamp(20px, 5vw, 56px) 20px 80px; }
.flow-card { width: min(100%, 580px); background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); animation: rise .8s var(--ease) both; }
.flow-card h1 { font: 500 clamp(28px, 5vw, 38px)/1.08 var(--font-display); margin-bottom: 10px; }
.progress { display: flex; gap: 6px; margin-bottom: 28px; }
.progress i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); transition: background-color .4s; }
.progress i.on { background: var(--accent); }
.key-input { font: 600 22px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .06em; text-transform: uppercase; text-align: center; min-height: 60px; }
.code-input { font: 600 32px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .4em; text-align: center; min-height: 68px; padding-left: .4em; }
.slug-row { display: flex; align-items: stretch; }
.slug-row .input { border-radius: var(--radius-s) 0 0 var(--radius-s); text-align: right; }
.slug-row span { display: flex; align-items: center; padding: 0 14px; border: 1px solid var(--line); border-left: 0; border-radius: 0 var(--radius-s) var(--radius-s) 0; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.logo-pick { display: flex; align-items: center; gap: 16px; }
.logo-prev { width: 76px; height: 76px; border-radius: 18px; border: 1px dashed var(--line); display: grid; place-items: center; color: var(--muted); overflow: hidden; background: var(--surface-2); flex: none; }
.logo-prev img { width: 100%; height: 100%; object-fit: contain; }
.plan-chip { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); margin-bottom: 22px; }
