/* Лендинг v2. Своя система, не наследует ui.css: здесь витрина, а не интерфейс. */

:root {
  --ink: #0F110D;
  --ink-2: #181B15;
  --paper: #F7F5F0;
  --paper-2: #EFEBE3;
  --line: rgba(11, 11, 18, .09);
  --muted: #5D5B66;
  --on-dark: #F6F3EC;
  --on-dark-2: rgba(246, 243, 236, .68);
  --fire: #FF4D17;
  --rose: #F26A1B;
  --violet: #1F7A5C;
  --grad: linear-gradient(115deg, var(--fire) 0%, #F7841F 50%, #E0A423 100%);
  --deep: #0F4A3A;
  --display: "Unbounded", "Golos Text", system-ui, sans-serif;
  --body: "Golos Text", system-ui, sans-serif;
  --accent: "Playfair Display", Georgia, serif;
  --r: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; margin: 0; }
h2 { font-size: clamp(30px, 4.2vw, 56px); line-height: 1.05; }
h3 { font-size: 20px; line-height: 1.2; letter-spacing: -.01em; }
em { font-family: var(--accent); font-style: italic; font-weight: 600; letter-spacing: 0;
     background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }

.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--rose); margin: 0 0 16px; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
       font: 600 15px/1 var(--body); padding: 15px 24px; border-radius: 999px; text-decoration: none;
       transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s; }
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.btn--sm { padding: 11px 18px; font-size: 14px; }
.btn--lg { padding: 20px 34px; font-size: 17px; }
.btn--block { width: 100%; }
.btn--glow { color: #fff; background: var(--grad); background-size: 160% 100%; box-shadow: 0 10px 30px -8px rgba(255, 77, 23, .5); }
.btn--glow:hover { background-position: 100% 0; box-shadow: 0 16px 40px -8px rgba(255, 110, 30, .45); }
.btn--dark { color: #fff; background: var(--ink); }
.btn--ghost { color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--light { color: var(--ink); background: #fff; box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .5); }

/* ---------- шапка ---------- */
.nav { position: fixed; inset: 14px 14px auto; z-index: 50; display: flex; align-items: center; gap: 24px;
       max-width: 1240px; margin: 0 auto; padding: 10px 10px 10px 20px; border-radius: 999px;
       color: var(--on-dark); background: rgba(16, 19, 14, .35); backdrop-filter: blur(18px) saturate(1.4);
       -webkit-backdrop-filter: blur(18px) saturate(1.4); border: 1px solid rgba(255, 255, 255, .12);
       transition: background .3s, color .3s, border-color .3s; }
.nav.is-light { color: var(--ink); background: rgba(247, 245, 240, .78); border-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 20px/1 var(--display); text-decoration: none; letter-spacing: -.03em; }
.brand__mark { width: 30px; height: 30px; }
.nav__links { display: flex; gap: 26px; margin-left: auto; font-size: 14px; font-weight: 500; }
.nav__links a { text-decoration: none; opacity: .8; transition: opacity .2s; }
.nav__links a:hover { opacity: 1; }

/* ---------- северное сияние ---------- */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .75; mix-blend-mode: screen;
            animation: drift 18s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 55vw; height: 55vw; left: -12vw; top: -18vw; background: var(--deep); }
.aurora i:nth-child(2) { width: 45vw; height: 45vw; right: -10vw; top: -8vw; background: var(--rose); animation-delay: -6s; }
.aurora i:nth-child(3) { width: 40vw; height: 40vw; left: 25vw; bottom: -22vw; background: var(--fire); animation-delay: -12s; }
.aurora i:nth-child(4) { width: 30vw; height: 30vw; right: 15vw; bottom: -10vw; background: #1E8C6E; opacity: .4; animation-delay: -3s; }
.aurora--soft i { opacity: .38; }
@keyframes drift { to { transform: translate3d(6vw, 4vw, 0) scale(1.15); } }
.grain { position: absolute; inset: 0; pointer-events: none; opacity: .16; mix-blend-mode: overlay;
         background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; min-height: 100vh; padding: 150px 24px 60px; color: var(--on-dark);
        background: radial-gradient(120% 90% at 50% 0%, #1C2A1F 0%, #10150F 55%, var(--ink) 100%); isolation: isolate; }
.hero__inner { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 28px; padding: 8px 16px; border-radius: 999px;
        font-size: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(10px); }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: #3DFFA8; box-shadow: 0 0 0 0 rgba(61, 255, 168, .7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(61, 255, 168, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 255, 168, 0); } }
.hero__title { font-size: clamp(40px, 6vw, 90px); line-height: 1; letter-spacing: -.045em; }
.hero__title em { font-size: 1.04em; }
.hero__lead { max-width: 640px; margin: 28px auto 36px; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.55; color: var(--on-dark-2); }
.examples { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 22px 0 0; font-size: 14px; color: var(--on-dark-2); }
.examples button { cursor: pointer; padding: 7px 14px; border-radius: 999px; font: 500 13px var(--body); color: var(--on-dark);
                   background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); transition: background .2s, border-color .2s; }
.examples button:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .35); }
.examples button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hero__alt { margin: 14px 0 0; font-size: 15px; color: var(--on-dark-2); }
.hero__alt a { color: #fff; text-underline-offset: 4px; }

.prompt { position: relative; max-width: 720px; margin: 0 auto; padding: 8px; border-radius: 26px; text-align: left;
          background: rgba(255, 255, 255, .96); box-shadow: 0 30px 80px -20px rgba(255, 110, 30, .4), 0 0 0 6px rgba(255, 255, 255, .08); }
.prompt::before { content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: 28px; background: var(--grad); filter: blur(18px); opacity: .55; animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .9; filter: blur(26px); } }
.prompt textarea { width: 100%; resize: none; border: 0; outline: 0; padding: 16px 18px 6px; font: 400 18px/1.45 var(--body); color: var(--ink); background: none; }
.prompt__bar { display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-block; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--muted); background: var(--paper-2); cursor: pointer; transition: all .2s; }
.chip input:checked + span { color: #fff; background: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 2px; }

.hero__deck { position: absolute; inset: 0; z-index: 1; pointer-events: none; perspective: 1400px; }
.float { position: absolute; width: clamp(180px, 20vw, 300px); border-radius: 12px; opacity: .5;
         box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); border: 1px solid rgba(255, 255, 255, .1);
         animation: bob 9s ease-in-out infinite alternate; will-change: transform; }
.f1 { left: 3%; top: 16%; transform: rotate(-9deg); }
.f2 { right: 4%; top: 14%; transform: rotate(8deg); animation-delay: -2s; }
.f3 { left: 2%; bottom: 3%; transform: rotate(6deg); animation-delay: -4s; }
.f4 { right: 3%; bottom: 5%; transform: rotate(-6deg); animation-delay: -6s; }
.f5 { left: -4%; top: 48%; transform: rotate(-3deg); opacity: .3; animation-delay: -1s; }
.f6 { right: -3%; top: 50%; transform: rotate(4deg); opacity: .3; animation-delay: -3s; }
@keyframes bob { to { translate: 0 -22px; } }

.hero__stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; max-width: 1000px;
               margin: 90px auto 0; border-radius: 20px; overflow: hidden; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .1); }
.hero__stats div { padding: 22px 18px; text-align: center; background: rgba(15, 18, 13, .55); backdrop-filter: blur(10px); }
.hero__stats b { display: block; font: 700 34px/1 var(--display); letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__stats span { display: block; margin-top: 8px; font-size: 13px; color: var(--on-dark-2); }

/* ---------- бегущая строка ---------- */
.marquee { overflow: hidden; padding: 26px 0; background: var(--ink); color: #fff; border-top: 1px solid rgba(255, 255, 255, .06); }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: slide 62s linear infinite; }
.marquee span { font: 700 clamp(28px, 4vw, 52px)/1 var(--display); letter-spacing: -.03em; white-space: nowrap; }
.marquee .o { color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .55); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- секции ---------- */
.section { max-width: 1240px; margin: 0 auto; padding: 130px 24px; }
.section--tint { max-width: none; background: var(--paper-2); }
.section--tint > * { max-width: 1192px; margin-left: auto; margin-right: auto; }
.section--narrow { max-width: 860px; }
.head { max-width: 820px; margin: 0 auto 64px; text-align: center; }
.head--light { color: var(--on-dark); }
.lead { margin: 22px auto 0; max-width: 580px; font-size: 18px; line-height: 1.55; color: var(--on-dark-2); }

.split { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 70px; }
.split h2 { font-size: clamp(30px, 3.6vw, 48px); }
.ticks { list-style: none; padding: 0; margin: 30px 0 34px; display: grid; gap: 16px; }
.ticks li { position: relative; padding-left: 38px; font-size: 16px; line-height: 1.5; color: var(--muted); }
.ticks li b { color: var(--ink); font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 8px; background: var(--grad); opacity: .9;
                    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect width='24' height='24' rx='8'/%3E%3C/svg%3E"); }
.ticks li::after { content: ""; position: absolute; left: 8px; top: 8px; width: 8px; height: 5px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg); }

/* ---------- окно редактора ---------- */
.window { border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 50px 100px -30px rgba(25, 35, 20, .35), 0 0 0 1px var(--line); }
.tilt { transform: perspective(1600px) rotateY(-9deg) rotateX(3deg); transition: transform .8s var(--ease); }
.tilt:hover { transform: none; }
.window__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); background: #FBFAF7; }
.window__bar i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
.window__bar i:nth-child(2) { background: #FEBC2E; }
.window__bar i:nth-child(3) { background: #28C840; }
.window__bar span { margin-left: 12px; font-family: ui-monospace, monospace; }
.window__bar em { margin-left: auto; font: 600 12px var(--body); color: #fff; background: var(--ink); padding: 6px 12px; border-radius: 999px; -webkit-text-fill-color: #fff; }
/* Меню правки выходит за край окна, поэтому окно редактора не обрезает содержимое. */
.window--open { overflow: visible; }
.window--open .window__bar { border-radius: 18px 18px 0 0; }
.window--open .editor { border-radius: 0 0 18px 18px; }
.editor { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px; background: #EEECE7; }
.editor__thumbs { display: grid; gap: 10px; align-content: start; }
.editor__thumbs img { border-radius: 6px; opacity: .7; box-shadow: 0 0 0 1px var(--line); }
.editor__thumbs .is-on { opacity: 1; box-shadow: 0 0 0 2px var(--violet); }
.editor__stage { position: relative; }
.editor__stage > img { border-radius: 8px; box-shadow: 0 16px 40px -18px rgba(0, 0, 0, .35); opacity: 0; transition: opacity .6s var(--ease); }
.editor__stage > img + img { position: absolute; inset: 0; }
.editor__stage > img.is-shown { opacity: 1; }
.editor__thumbs img { transition: opacity .3s; }
.ai-pop { position: absolute; right: -44px; bottom: -132px; z-index: 2; width: 250px; padding: 10px; border-radius: 16px; background: #fff;
          box-shadow: 0 24px 50px -16px rgba(25, 35, 20, .4), 0 0 0 1px var(--line); opacity: 0; transform: translateY(14px) scale(.96); transition: all .6s var(--ease) .5s; }
.is-in .ai-pop { opacity: 1; transform: none; }
.ai-pop p { margin: 4px 8px 8px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ai-pop button { cursor: pointer; transition: background .2s; display: flex; gap: 10px; width: 100%; padding: 10px; border: 0; border-radius: 10px; font: 500 14px var(--body); text-align: left; background: none; color: var(--ink); }
.ai-pop button span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ai-pop .is-hot { background: #FFF0E6; }
.cursor { position: absolute; z-index: 3; right: 150px; bottom: 60px; width: 22px; height: 22px; opacity: 0; transition: all 1s var(--ease) .2s;
          background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l16 9-7 2-3 7z' fill='%230B0B12' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat; }
.is-in .cursor { opacity: 1; right: 120px; bottom: 34px; }
.cursor.is-off { opacity: 0; }

/* ---------- примеры ---------- */
.head .sub { margin: 18px 0 0; font-size: 17px; color: var(--muted); }
.exgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1180px; margin: 0 auto; }
.ex { display: flex; flex-direction: column; gap: 14px; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.ex__shot { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px;
            box-shadow: 0 0 0 1px var(--line), 0 18px 40px -22px rgba(25, 35, 20, .45); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.ex__shot img { width: 100%; height: 100%; object-fit: cover; }
.ex:hover .ex__shot, .ex:focus-visible .ex__shot { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), 0 28px 50px -22px rgba(25, 35, 20, .55); }
.ex:focus-visible { outline: none; }
.ex:focus-visible .ex__shot { outline: 3px solid var(--fire); outline-offset: 3px; }
.ex__shot::after { content: "Смотреть"; position: absolute; right: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px;
                   font-size: 12px; font-weight: 600; color: #fff; background: rgba(15, 17, 13, .72); opacity: 0; transition: opacity .3s; }
.ex:hover .ex__shot::after { opacity: 1; }
.ex__meta { display: grid; gap: 4px; }
.ex__tag { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--rose); }
.ex__meta b { font-size: 16px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ex__meta small { font-size: 13px; color: var(--muted); }

.viewer { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(10, 12, 9, .82); backdrop-filter: blur(6px); }
.viewer[hidden] { display: none; }
.viewer__box { width: min(1180px, 100%); display: grid; gap: 14px; color: var(--on-dark); }
.viewer__head { display: flex; align-items: center; gap: 14px; }
.viewer__head b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer__head span { font-size: 14px; color: var(--on-dark-2); white-space: nowrap; }
.viewer__close { margin-left: auto; width: 40px; height: 40px; border: 0; border-radius: 50%; font-size: 26px; line-height: 1; color: #fff; background: rgba(255, 255, 255, .12); cursor: pointer; }
.viewer__stage { position: relative; }
.viewer__stage img { width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; background: #222; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); }
.viewer__nav { position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; border: 0; border-radius: 50%; font-size: 30px; line-height: 1;
               color: var(--ink); background: rgba(255, 255, 255, .9); cursor: pointer; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); }
.viewer__nav--prev { left: -24px; }
.viewer__nav--next { right: -24px; }
.viewer__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 13px; color: var(--on-dark-2); }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { position: relative; overflow: hidden; padding: 30px; border-radius: var(--r); background: #fff; box-shadow: 0 0 0 1px var(--line);
        min-height: 300px; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(25, 35, 20, .35), 0 0 0 1px var(--line); }
.card p { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: var(--muted); max-width: 440px; }
.card--wide { grid-column: span 2; flex-direction: row; gap: 30px; align-items: center; }
.card--wide .card__copy { flex: 1; }
.card--dark { color: var(--on-dark); background: radial-gradient(120% 120% at 0% 0%, #173A2E, var(--ink) 70%); box-shadow: none; }
.card--dark p { color: var(--on-dark-2); }
.card--grad { color: #fff; background: var(--grad); box-shadow: none; }
.card--grad p { color: rgba(255, 255, 255, .85); }

.verbatim { flex: 1.1; display: flex; align-items: center; gap: 16px; }
.verbatim__doc, .verbatim__slide { flex: 1; display: grid; gap: 9px; padding: 20px; border-radius: 14px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.verbatim__slide { aspect-ratio: 16/10; align-content: start; background: #fff; box-shadow: 0 20px 40px -20px rgba(25, 35, 20, .35), 0 0 0 1px var(--line); }
.verbatim i { display: block; height: 8px; width: var(--w, 90%); border-radius: 4px; background: #DAD6CE; }
.verbatim .hl { background: #DAD6CE; position: relative; overflow: hidden; }
.verbatim .hl::after { content: ""; position: absolute; inset: 0; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); }
.is-in .verbatim .hl::after { transform: scaleX(1); }
.verbatim__doc .hl:nth-child(4)::after { transition-delay: .3s; }
.verbatim__doc .hl:nth-child(6)::after { transition-delay: .6s; }
.verbatim__slide b { display: block; height: 14px; width: 60%; border-radius: 4px; background: var(--ink); margin-bottom: 6px; }
.verbatim__slide .hl { width: 85%; }
.verbatim__slide .hl:nth-child(2)::after { transition-delay: .9s; }
.verbatim__slide .hl:nth-child(3)::after { transition-delay: 1.2s; }
.verbatim__slide .hl:nth-child(4)::after { transition-delay: 1.5s; }
.verbatim__arrow { width: 44px; color: var(--rose); flex: none; }

.ring { position: relative; margin: auto auto 0; width: 150px; height: 150px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 8; }
.ring .ring__run { stroke: var(--rose); stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 314; transition: stroke-dashoffset 2.4s var(--ease) .3s; }
.is-in .ring .ring__run { stroke-dashoffset: 90; }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; font: 700 30px var(--display); }

.file { margin-top: auto; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; background: var(--paper); }
.file__icon { flex: none; width: 44px; height: 54px; border-radius: 8px; display: grid; place-items: center; font: 800 20px var(--display); color: #fff; background: #D24726; }
.file__line { font-size: 15px; font-weight: 500; }
.caret { padding: 1px 3px; border-radius: 3px; background: #FFE2D2; border-right: 2px solid var(--violet); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { border-color: transparent; } }

.morph { position: relative; margin-top: auto; height: 110px; border-radius: 14px; background: var(--paper); overflow: hidden; }
.morph i { position: absolute; border-radius: 6px; background: var(--grad); animation: morph 5s var(--ease) infinite; }
.morph i:nth-child(1) { left: 16px; top: 16px; width: 44%; height: 14px; }
.morph i:nth-child(2) { left: 16px; top: 42px; width: 30%; height: 8px; opacity: .5; animation-delay: .15s; }
.morph i:nth-child(3) { right: 16px; bottom: 16px; width: 26%; height: 56px; opacity: .35; animation-delay: .3s; }
@keyframes morph { 0%, 35% { transform: none; } 50%, 85% { transform: translate(40%, 30px) scale(.8); } 100% { transform: none; } }

.swatches { display: flex; gap: 10px; margin-top: auto; }
.swatches i { width: 46px; height: 46px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .8); animation: pop 3s ease-in-out infinite; }
.swatches i:nth-child(1) { background: #0B0B12; }
.swatches i:nth-child(2) { background: #fff; animation-delay: .2s; }
.swatches i:nth-child(3) { background: #1E3A8A; animation-delay: .4s; }
.swatches i:nth-child(4) { background: #0F9D58; animation-delay: .6s; }
.swatches i:nth-child(5) { background: #FFC83D; animation-delay: .8s; }
@keyframes pop { 50% { transform: translateY(-8px); } }

.card--band { grid-column: span 2; min-height: 0; flex-direction: row; align-items: center; gap: 40px; }
.card--band .card__copy { flex: 1; }
.canon { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: 8px; counter-reset: c; }
.card--band .canon { flex: 1.2; margin: 0; grid-template-columns: 1fr 1fr; }
.canon li { counter-increment: c; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; font-size: 14px; font-weight: 500; background: var(--paper); }
.source { margin-top: auto; padding: 14px 16px; border-radius: 14px; background: var(--paper); }
.source__fact { margin: 0 0 8px; font-size: 15px; }
.source__fact b { font-family: var(--display); }
.source__ref { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--muted); }
.source__ok { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: 11px; color: #fff; background: #1E8C6E; }
.canon li::before { content: counter(c, decimal-leading-zero); font: 700 12px var(--display); color: var(--rose); }

/* ---------- режим докладчика ---------- */
.stage-sec { position: relative; overflow: hidden; padding: 130px 24px; background: var(--ink); isolation: isolate; }
.presenter { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; border-radius: 20px; overflow: hidden;
             background: #141712; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 60px 120px -30px rgba(255, 110, 30, .35); color: #E8E8EE; }
.presenter__bar { display: flex; align-items: baseline; gap: 22px; padding: 16px 24px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.clock { font: 700 30px var(--display); font-variant-numeric: tabular-nums; }
.pace { font-size: 14px; color: #6FE3A5; }
.count { margin-left: auto; font-size: 14px; color: #9AA0A6; }
.presenter__main { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; padding: 24px; }
.presenter__now img { border-radius: 10px; }
.presenter__side small { display: block; margin: 0 0 10px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #9AA0A6; }
.presenter__side img { width: 48%; border-radius: 6px; margin-bottom: 22px; opacity: .75; }
.presenter__side p { margin: 0; font-size: 22px; line-height: 1.45; color: #F6F3EC; }

/* ---------- шаги ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { padding: 34px 30px; border-radius: var(--r); background: #fff; box-shadow: 0 0 0 1px var(--line); }
.steps b { display: block; margin-bottom: 26px; font: 800 64px/1 var(--display); letter-spacing: -.05em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps p { margin: 12px 0 0; font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ---------- аудитория ---------- */
.aud { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.aud article { padding: 32px; border-radius: var(--r); background: #fff; }
.tag { display: inline-block; margin-bottom: 18px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.tag--a { color: #B4380E; background: #FFE9DF; }
.tag--b { color: #A35A00; background: #FFF0D6; }
.tag--c { color: #0F6B50; background: #DDF1E8; }
.aud ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.aud li { position: relative; padding-left: 24px; font-size: 15px; color: var(--muted); }
.aud li::before { content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--grad); }

/* ---------- тарифы ---------- */
.prices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.price { position: relative; display: flex; flex-direction: column; padding: 32px 26px; border-radius: var(--r); background: #fff; box-shadow: 0 0 0 1px var(--line); }
.price__sum { margin: 18px 0 4px; font: 800 44px/1 var(--display); white-space: nowrap; letter-spacing: -.04em; }
.price__note { margin: 0; font-size: 14px; color: var(--muted); }
.price__save { margin: 10px 0 0; align-self: flex-start; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--rose); background: rgba(242, 106, 27, .1); }
.price--hot .price__save { color: #FFB36B; background: rgba(255, 179, 107, .14); }
.price ul { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 12px; flex: 1; align-content: start; }
.price li { position: relative; padding-left: 26px; font-size: 15px; }
.price li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; color: var(--rose); }
.price--hot { color: var(--on-dark); background: radial-gradient(120% 100% at 100% 0%, #1B4A3A, var(--ink) 65%); box-shadow: 0 40px 80px -30px rgba(255, 110, 30, .45); transform: translateY(-12px); }
.price--hot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: var(--grad);
                      -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.price--hot .price__note { color: var(--on-dark-2); }
.price--hot li::before { color: #FFB36B; }
.price__flag { position: absolute; top: -14px; left: 30px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff; background: var(--grad); }
.anchor { max-width: 640px; margin: -30px auto 44px; text-align: center; font-size: 17px; line-height: 1.55; color: var(--muted); }
.safe { margin: 34px auto 0; max-width: 620px; text-align: center; font-size: 16px; font-weight: 600; }
.pay { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.pay span { padding: 6px 12px; border-radius: 8px; font-weight: 600; color: var(--ink); background: #fff; box-shadow: 0 0 0 1px var(--line); }
.pay img { height: 22px; width: auto; }

/* ---------- вопросы ---------- */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .2s; }
.faq details[open] { box-shadow: 0 20px 40px -24px rgba(25, 35, 20, .3), 0 0 0 1px var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 22px 26px; font: 600 17px var(--body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 500 24px/1 var(--display); color: var(--rose); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--violet); outline-offset: -2px; border-radius: 16px; }
.faq p { margin: 0; padding: 0 26px 24px; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* ---------- финал ---------- */
.final { position: relative; overflow: hidden; padding: 150px 24px; text-align: center; color: #fff; background: var(--ink); isolation: isolate; }
.final h2 { position: relative; font-size: clamp(40px, 6.5vw, 92px); letter-spacing: -.04em; margin-bottom: 40px; }
.final em { background: none; color: #fff; -webkit-text-fill-color: #fff; }
.final p { position: relative; margin: 20px 0 0; color: var(--on-dark-2); }
.final .btn { position: relative; }

.foot { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 30px; max-width: 1192px; margin: 0 auto; padding: 60px 24px 70px; font-size: 14px; }
.foot p { color: var(--muted); }
.foot h4 { margin: 0 0 14px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.foot a { display: block; margin-bottom: 10px; text-decoration: none; }
.foot a:hover { color: var(--rose); }

/* ---------- появление ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.tilt.reveal.is-in { transform: perspective(1600px) rotateY(-9deg) rotateX(3deg); }
.tilt.reveal.is-in:hover { transform: none; }

/* ---------- адаптив ---------- */
@media (max-width: 1000px) {
  .nav__links { display: none; }
  .split { grid-template-columns: 1fr; gap: 50px; }
  .bento, .steps, .aud { grid-template-columns: 1fr; }
  .exgrid { grid-template-columns: 1fr 1fr; }
  .viewer__nav--prev { left: 8px; }
  .viewer__nav--next { right: 8px; }
  .prices { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
  .card--wide, .card--band { grid-column: auto; flex-direction: column; align-items: stretch; }
  .card--band .canon { grid-template-columns: 1fr 1fr; }
  .price--hot { transform: none; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .presenter__main { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
  .float { opacity: .22; }
  .tilt, .tilt.reveal.is-in { transform: none; }
}
@media (max-width: 560px) {
  .hero { padding-top: 120px; }
  .prompt__bar { flex-direction: column; align-items: stretch; }
  .section { padding: 90px 20px; }
  .f5, .f6, .f3, .f4 { display: none; }
  .prices { grid-template-columns: 1fr; }
  .exgrid { grid-template-columns: 1fr; }
  .viewer__foot span { display: none; }
  .editor { grid-template-columns: 1fr; }
  .editor__thumbs { display: none; }
  .ai-pop { position: relative; right: auto; bottom: auto; width: auto; margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- документы: оферта, политика, реквизиты ---------- */
.docpage .nav { position: sticky; top: 14px; margin: 14px auto 0; }
.doc { max-width: 760px; margin: 0 auto; padding: 80px 24px 40px; font-size: 16px; line-height: 1.65; }
.doc h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.1; }
.doc__date { margin: 14px 0 40px; color: var(--muted); font-size: 14px; }
.doc h2 { margin: 40px 0 12px; font-size: 20px; }
.doc p, .doc li { color: #2A2D26; }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: 8px; }
.doc a { color: var(--fire); text-underline-offset: 3px; }
.doc table { width: 100%; margin: 16px 0; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font-weight: 600; }
.doc__card th { width: 38%; color: var(--muted); font-weight: 500; }

/* ---------- страницы тем и образцов ---------- */
.page { max-width: 980px; margin: 0 auto; padding: 70px 24px 40px; }
.page h1 { font-size: clamp(30px, 4vw, 48px); line-height: 1.1; }
.page h2 { margin: 56px 0 16px; font-size: 24px; }
.page .lead { max-width: 720px; margin: 16px 0 0; font-size: 18px; line-height: 1.55; color: var(--muted); }
.crumbs { margin-bottom: 18px; font-size: 14px; color: var(--muted); }
.crumbs a { color: inherit; }
.page__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.viewer2 { position: relative; margin: 36px 0 0; outline: none; }
.viewer2__sheet { position: relative; width: 100%; overflow: hidden; border-radius: 12px; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px rgba(25, 35, 20, .45); }
.viewer2__sheet .block { position: absolute; overflow: hidden; }
.viewer2__sheet .block__text { width: 100%; height: 100%; white-space: pre-wrap; }
.viewer2__sheet .block img { width: 100%; height: 100%; object-fit: cover; display: block; }
.viewer2__bar { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.viewer2__bar button { width: 40px; height: 40px; border: 0; border-radius: 50%; font-size: 24px; line-height: 1; color: var(--ink); background: #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.viewer2__bar button:disabled { opacity: .35; cursor: default; }
.page ol, .page ul { padding-left: 22px; line-height: 1.6; }
.conspect { display: grid; gap: 18px; }
.conspect section { padding: 18px 20px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.conspect h3 { margin: 0 0 8px; font-size: 16px; font-family: var(--body); font-weight: 600; letter-spacing: 0; }
.conspect p, .conspect li { margin: 0; color: #2A2D26; font-size: 15px; line-height: 1.55; }
.page blockquote { margin: 0; padding: 16px 20px; border-left: 3px solid var(--fire); background: #fff; border-radius: 0 12px 12px 0; }
.page .faq details { background: #fff; }
.honest { margin-top: 40px; font-size: 14px; color: var(--muted); }
.siblings { columns: 2; padding: 0; list-style: none; }
.siblings a { color: var(--ink); }
@media (max-width: 640px) { .siblings { columns: 1; } }
