/* Основной сайт · «Хвост 2.0» — та же система, что в web/ (см. web/app/src/styles.css): плоский фон, один синий из лого, пунктир.
   Сплошной синий — первый экран и финальный призыв; на нём текст и кнопки кремовые (--cream, как в лого).
   Mobile first: база — телефон, @media (min-width) — расширения.
   Первая версия сайта — в ai-generated-artifacts/16-landing-v1/. */
:root {
  --bg:#f5f7fb; --surface:#fff; --solid:#fff; --cream:#fbf3e8; --sunk:rgba(26,34,51,.045);
  --ink:#1a2233; --ink-2:#47516a; --muted:#646e86; --hair:rgba(26,34,51,.08); --hair-2:rgba(26,34,51,.15);
  --accent:#3d63e8; --accent-d:#2b47b0; --ring:rgba(61,99,232,.28); --dash:1.5px dashed var(--hair-2);
  --lift:0 1px 2px rgba(30,40,80,.05), 0 14px 36px -18px rgba(30,40,90,.26);
  --float:0 1px 0 rgba(255,255,255,.9) inset, 0 24px 60px -24px rgba(30,40,100,.36);
  --ease:cubic-bezier(.2,.8,.2,1); --spring:cubic-bezier(.34,1.4,.5,1);
  --r-xl:30px; --r-lg:22px; --r-md:16px;
  /* Приглушённые пастели (как в кабинете, web/app/src/styles.css): подложки значков и номеров — интерфейс живее, но спокойный */
  --c:#e4e9f4; --tc:var(--ink-2);
  --sky:#dfe8fb; --sky-d:#1f5591; --butter:#f8eecb; --butter-d:#745800; --mint:#dcefe4; --mint-d:#2b6a4a;
  --peach:#f8e3d6; --peach-d:#8a4b2c; --lilac:#e9e3f7; --lilac-d:#5b4199; --rose:#f6e0e5; --rose-d:#8f3349;
  --font:Onest, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body { min-width:320px; margin:0; color:var(--ink); background:var(--bg); font:16px/1.55 var(--font); -webkit-font-smoothing:antialiased; }
a { color:inherit; text-decoration:none; }
button { color:inherit; font:inherit; -webkit-tap-highlight-color:transparent; }
button:focus-visible, a:focus-visible, [contenteditable]:focus-visible { outline:2px solid var(--accent); outline-offset:3px; border-radius:10px; }
h1, h2, h3 { margin:0; font-weight:600; letter-spacing:-.025em; line-height:1.1; }
em { font-style:normal; }

.skip-link { position:fixed; z-index:60; top:12px; left:12px; padding:10px 16px; background:var(--ink); color:#fff; border-radius:12px; transform:translateY(-200%); }
.skip-link:focus { transform:none; }
/* Синяя полоса на всю ширину окна у блока внутри .page-shell */
.bleed { background:var(--accent); color:var(--cream); box-shadow:0 0 0 100vmax var(--accent); clip-path:inset(0 -100vmax); }

.page-shell { width:100%; max-width:1180px; margin:0 auto; padding:0 16px; }
.section { padding:64px 0; scroll-margin-top:16px; }

/* ── Шапка: на синем, лого крупно и отдельно ── */
.site-header { position:relative; z-index:1; display:flex; align-items:center; gap:12px; padding:16px 0 2px; margin-bottom:-2px; } /* −2px: без волосяного шва между двумя синими блоками */
.brand { display:flex; align-items:center; gap:10px; min-width:0; color:inherit; }
.brand-mark { flex:none; width:auto; height:44px; }
/* Надпись логотипа — свои кривые (svg), не шрифт: цвет от текста, размер от font-size. */
.brand-name { display:block; width:auto; height:1.12em; margin-bottom:.16em; font-size:30px; fill:none; stroke:currentColor; stroke-width:5.2; stroke-linecap:round; stroke-linejoin:round; }
.brand-tag { display:none; font-size:12px; font-weight:500; letter-spacing:.22em; line-height:1; }
.site-nav { display:none; }
/* «Войти» и «Начать бесплатно»: сайт — часть приложения (с 2026-11-14), обе кнопки всегда видны */
.header-login { display:inline-flex; align-items:center; min-height:42px; margin-left:auto; padding:8px 16px; border:1.5px dashed rgba(251,243,232,.7); border-radius:999px; font-size:14px; font-weight:600; color:inherit; text-decoration:none; transition:background .2s; }
.header-login:hover { background:rgba(251,243,232,.14); }

/* Сорока в лого «чирикает» при наведении: поворот головой и «чик-чирик» облачком (без подъёма — правило 4 AGENTS.md) */
.brand-bird { position:relative; display:inline-flex; flex:none; }
.brand-mark { transform-origin:60% 80%; }
.brand:hover .brand-mark, .brand.chirping .brand-mark { animation:chirp .9s var(--ease); }
/* облачко — справа от клюва и выше головы: голову и клюв не закрывает */
.chirp { position:absolute; left:calc(100% - 2px); top:-16px; padding:3px 9px; border-radius:12px 12px 12px 3px; background:var(--cream); color:var(--accent-d); font-size:12px; font-weight:600; white-space:nowrap; opacity:0; transform:scale(.6); transform-origin:left bottom; pointer-events:none; }
.site-footer .chirp { background:var(--accent); color:#fff; }
.brand:hover .chirp, .brand.chirping .chirp { animation:chirp-say 1.4s var(--ease); }
@keyframes chirp { 0%, 100% { transform:none; } 15% { transform:rotate(-9deg); } 30% { transform:rotate(5deg); } 45% { transform:rotate(-6deg); } 60% { transform:rotate(3deg); } }
@keyframes chirp-say { 0% { opacity:0; transform:scale(.6); } 15%, 70% { opacity:1; transform:none; } 100% { opacity:0; transform:scale(.9); } }

/* ── Кнопки ── */
.button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:48px; padding:12px 22px; border-radius:999px; border:1px solid var(--hair-2); background:var(--solid); font-weight:600; font-size:16px; cursor:pointer; white-space:nowrap; transition:transform .15s var(--spring), background .2s, box-shadow .25s; }
.button:active { transform:scale(.97); }
.button-primary { background:var(--accent); color:#fff; border-color:transparent; }
.button-primary:hover { background:var(--accent-d); }
.button-quiet { background:var(--solid); }
.button-quiet:hover { background:var(--sunk); }
/* На синем: главная кнопка кремовая, тихая — пунктирный контур */
.bleed .button-primary { background:var(--cream); color:var(--accent-d); }
.bleed .button-primary:hover { background:#fff; }
.bleed .button-quiet { background:transparent; color:var(--cream); border:1.5px dashed rgba(251,243,232,.7); }
.bleed .button-quiet:hover { background:rgba(251,243,232,.12); }
.bleed .assign .button-primary { background:var(--accent); color:#fff; }
.bleed .assign .button-primary:hover { background:var(--accent-d); }
.button-large { min-height:56px; padding:16px 28px; font-size:17px; }
.header-cta { min-height:42px; padding:9px 16px; font-size:14px; }

/* ── Hero ── */
.hero { display:grid; gap:40px; padding-top:36px; }
.hero h1 { font-size:40px; letter-spacing:-.035em; line-height:1.02; }
.h1-lead, .h1-main { display:block; }
.h1-main { color:#fff; opacity:.78; }
.hero-description { margin:22px 0 0; font-size:18px; max-width:32em; opacity:.95; }
.hero-facts { display:grid; gap:8px; margin:24px 0 0; padding:0; list-style:none; font-size:15px; }
.hero-facts li { display:flex; align-items:baseline; gap:8px; }
.hero-facts li::before { content:""; width:7px; height:7px; flex:none; border-radius:50%; background:var(--cream); transform:translateY(-2px); }
.hero-facts b { font-weight:600; }
.hero-actions { display:grid; gap:10px; margin-top:28px; }

/* ── «Поручите Сороке»: выбор → текст задания → как часто / куда → превью находки ── */
.assign { position:relative; display:grid; grid-template-columns:minmax(0,1fr); gap:14px; padding:20px 16px 18px; border-radius:var(--r-xl); background:var(--solid); color:var(--ink); }
.assign-head { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:4px 10px; }
/* .hero — чтобы общий .section h2 (28–40px) не раздувал заголовок карточки */
.hero .assign-head h2 { font-size:21px; letter-spacing:-.02em; }
.live-label { display:inline-flex; white-space:nowrap; align-items:center; gap:7px; font-size:13px; font-weight:500; color:var(--muted); }
.live-label i { width:8px; height:8px; border-radius:50%; background:var(--accent); animation:breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity:.4; transform:scale(.7); } }
.assign-row { display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:6px; }
.pick { display:grid; justify-items:center; gap:2px; padding:10px 4px 9px; border:1px solid var(--hair-2); border-radius:var(--r-md); background:var(--solid); font-size:13px; font-weight:600; cursor:pointer; transition:border-color .2s, background .2s, color .2s, transform .15s var(--spring); }
.pick span { font-size:22px; line-height:1.2; }
.pick:active { transform:scale(.96); }
.pick:hover { border-color:rgba(61,99,232,.45); }
.pick[aria-checked="true"] { border-color:var(--accent); background:rgba(61,99,232,.07); color:var(--accent-d); box-shadow:0 0 0 1px var(--accent) inset; }
.assign-label { display:block; margin-bottom:-6px; font-size:13px; font-weight:500; color:var(--muted); }
.assign-opt .assign-label { margin-bottom:6px; }
.assign-text { width:100%; resize:none; padding:12px 14px; border:1.5px dashed rgba(61,99,232,.45); border-radius:var(--r-md); background:rgba(61,99,232,.04); font:500 16px/1.45 var(--font); color:var(--ink); transition:border-color .2s, background .2s, box-shadow .2s; }
.assign-text:hover { border-color:var(--accent); }
.assign-text:focus { outline:none; border-style:solid; border-color:var(--accent); background:#fff; box-shadow:0 0 0 4px var(--ring); }
.assign-opts { display:grid; gap:12px; }
.seg { display:inline-flex; flex-wrap:wrap; gap:2px; padding:3px; border-radius:14px; background:var(--sunk); }
.seg button { min-height:34px; padding:5px 12px; border:0; border-radius:11px; background:transparent; font-size:14px; color:var(--ink-2); cursor:pointer; transition:background .2s, color .2s; }
.seg button:hover { color:var(--ink); background:rgba(255,255,255,.7); }
.seg button[aria-checked="true"] { background:var(--solid); color:var(--ink); font-weight:600; box-shadow:0 1px 3px rgba(30,40,80,.12); }
.assign-preview { position:relative; padding:14px; border-radius:var(--r-lg); background:#e9eefb; }
.preview-tag { display:block; margin-bottom:8px; font-size:12px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; color:var(--accent-d); }
/* Находка-сообщение (превью конструктора и демо шага 3) */
.note { display:grid; gap:3px; max-width:100%; padding:10px 14px 12px; border-radius:18px 18px 18px 6px; background:var(--solid); box-shadow:0 1px 2px rgba(30,40,80,.08); font-size:14px; line-height:1.45; color:var(--ink-2); }
.note strong { color:var(--ink); font-weight:600; font-size:15px; }
.note-from { display:flex; align-items:center; gap:8px; margin-bottom:4px; font-size:12px; color:var(--muted); }
.note-from img { width:22px; height:22px; border-radius:50%; } .note-from b { color:var(--ink); font-size:13px; }
.note-from span { margin-left:auto; }
.note--mail { border-radius:12px; border-left:3px solid var(--accent); }
.note.arrive { animation:arrive .5s var(--spring); }
@keyframes arrive { from { opacity:0; transform:translateY(10px) scale(.97); } }
.assign-cta { width:100%; }

/* ── Обещание: четыре шага на пунктирном «маршруте», по нему летит сорока ── */
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.promise { position:relative; padding:40px 0 8px; }
.promise-track { display:none; }
.promise-list { display:grid; gap:12px; margin:0; padding:0; list-style:none; counter-reset:p; }
.promise-list li { display:grid; grid-template-columns:auto minmax(0,1fr); grid-template-areas:"i b" "i s"; gap:2px 14px; padding:16px; border-radius:var(--r-lg); background:var(--surface); border:1px solid var(--hair); transition:border-color .2s, background .2s; }
.promise-list li:hover { border-color:rgba(61,99,232,.45); background:color-mix(in srgb, var(--accent) 3%, var(--surface)); }
.promise-list li:nth-child(1) { --c:var(--butter); } .promise-list li:nth-child(2) { --c:var(--sky); } .promise-list li:nth-child(3) { --c:var(--lilac); } .promise-list li:nth-child(4) { --c:var(--mint); }
.promise-ico { grid-area:i; display:grid; place-items:center; width:46px; height:46px; border-radius:14px; background:color-mix(in srgb, var(--c) 85%, #fff); filter:saturate(.85); font-size:22px; transition:transform .3s var(--spring); }
.promise-list li:hover .promise-ico { transform:scale(1.08) rotate(-6deg); }
.promise-list b { grid-area:b; font-size:17px; font-weight:600; letter-spacing:-.01em; }
.promise-list li > span:last-child { grid-area:s; font-size:15px; color:var(--ink-2); }

/* ── Заголовки секций ── */
.section-heading { margin-bottom:32px; }
.eyebrow { margin:0 0 12px; font-size:15px; font-weight:500; color:var(--muted); letter-spacing:0; text-transform:none; }
.section h2 { font-size:28px; letter-spacing:-.02em; line-height:1.12; max-width:18em; }

/* ── Как это работает: шаги слева (автопоказ, полоска прогресса), справа — демо шага ── */
.section-sub { margin:12px 0 0; font-size:17px; color:var(--ink-2); }
.how { display:grid; gap:16px; }
.how-steps { display:grid; gap:8px; margin:0; padding:0; list-style:none; }
/* шаги — тоны как у шагов мастера в кабинете: что — голубой, как часто/куда — сиреневый, итог — мятный */
.how-steps li:nth-child(1) { --c:var(--sky); --tc:var(--sky-d); } .how-steps li:nth-child(2) { --c:var(--lilac); --tc:var(--lilac-d); } .how-steps li:nth-child(3) { --c:var(--mint); --tc:var(--mint-d); }
.how-step { position:relative; overflow:hidden; display:flex; gap:14px; align-items:flex-start; width:100%; padding:14px 16px; border:1px solid var(--hair); border-radius:var(--r-lg); background:var(--surface); text-align:left; cursor:pointer; transition:border-color .2s, background .2s; }
.how-step:hover { border-color:rgba(61,99,232,.45); }
.how-step[aria-selected="true"] { border-color:var(--accent); background:color-mix(in srgb, var(--accent) 5%, #fff); }
.how-step b { display:block; font-size:17px; font-weight:600; letter-spacing:-.01em; }
.how-step small { display:block; margin-top:2px; font-size:14px; color:var(--ink-2); }
.step-number { flex:none; width:38px; height:38px; display:grid; place-items:center; border-radius:50%; font-weight:600; color:var(--tc, var(--accent-d)); background:color-mix(in srgb, var(--c) 85%, #fff); transition:background .2s, color .2s; }
.how-step[aria-selected="true"] .step-number { background:var(--tc); color:#fff; }
.how-progress { position:absolute; left:0; bottom:0; height:3px; width:0; background:var(--accent); }
.how-step.running .how-progress { animation:progress 5s linear forwards; }
@keyframes progress { to { width:100%; } }
.how-demo { min-height:260px; padding:20px; border-radius:var(--r-xl); background:#e9eefb; display:grid; align-items:center; }
.demo { display:grid; gap:12px; animation:arrive .45s var(--ease); }
.demo[hidden] { display:none; }
.demo-label { font-size:13px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; color:var(--accent-d); }
.demo-input { min-height:96px; margin:0; padding:14px 16px; border-radius:var(--r-md); background:#fff; border:1.5px solid var(--accent); box-shadow:0 0 0 4px var(--ring); font-size:17px; line-height:1.45; }
.caret { display:inline-block; width:2px; height:1.1em; margin-left:1px; vertical-align:-3px; background:var(--accent); animation:blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity:0; } }
.demo-chips { display:flex; flex-wrap:wrap; gap:6px; } .demo-chips span { padding:5px 12px; border-radius:999px; background:#fff; font-size:13px; color:var(--ink-2); }
.demo-row { display:grid; grid-template-columns:auto minmax(0,1fr); grid-template-areas:"i b" "i s"; gap:0 12px; align-items:center; padding:12px 14px; border-radius:var(--r-md); background:#fff; animation:arrive .45s var(--ease) both; }
.demo-row:nth-child(3) { animation-delay:.15s; } .demo-row:nth-child(4) { animation-delay:.3s; }
.demo-row > :first-child { grid-area:i; } .demo-row b { grid-area:b; font-weight:600; } .demo-row small { grid-area:s; font-size:13px; color:var(--muted); }
.freq { display:flex; align-items:flex-end; gap:2.5px; width:34px; height:34px; padding:0 7px 8px; border-radius:11px; background:rgba(61,99,232,.1); }
.freq i { flex:1; border-radius:2px; background:var(--accent); } .freq i:nth-child(1) { height:5px; } .freq i:nth-child(2) { height:9px; } .freq i:nth-child(3) { height:13px; } .freq i:nth-child(4) { height:17px; background:rgba(61,99,232,.25); } .freq i:nth-child(5) { height:21px; background:rgba(61,99,232,.25); }
.tg-dot, .mail-dot { width:34px; height:34px; border-radius:11px; background:#26a5e4; }
.mail-dot { background:var(--ink-2); }
.note--demo { max-width:400px; }
.note-figs { display:flex; gap:6px; margin-top:4px; } .note-figs em { padding:2px 9px; border-radius:99px; background:#e7f6ed; color:#2a7a4e; font-size:13px; font-weight:600; } .note-figs em.down { background:#fff2c6; color:#745800; }
.note-link { margin-top:4px; font-size:13px; font-weight:600; color:var(--accent-d); }
.demo-quiet { margin:0; font-size:14px; color:var(--muted); }

/* ── Что поручить: фильтр по теме + карточки-идеи ── */
.filter { display:flex; flex-wrap:wrap; gap:6px; margin-top:18px; }
.filter button { min-height:38px; padding:6px 14px; border:1px solid var(--hair-2); border-radius:999px; background:var(--solid); font-size:14px; font-weight:500; cursor:pointer; transition:background .2s, color .2s, border-color .2s; }
.filter button:hover { border-color:rgba(26,34,51,.32); }
.filter button[aria-pressed="true"] { background:var(--ink); border-color:var(--ink); color:#fff; }
.ideas { display:grid; gap:10px; }
.idea { display:grid; grid-template-columns:auto minmax(0,1fr); grid-template-areas:"e t" "e x" "e g"; gap:2px 14px; align-content:start; width:100%; padding:16px; border:1px solid var(--hair); border-radius:var(--r-lg); background:var(--surface); text-align:left; cursor:pointer; transition:border-color .2s, background .2s; animation:arrive .4s var(--ease) calc(var(--k, 0) * 40ms) both; }
.idea:hover { border-color:rgba(61,99,232,.45); background:color-mix(in srgb, var(--accent) 3%, var(--surface)); }
.idea[data-topic=sales] { --c:var(--sky); --tc:var(--sky-d); } .idea[data-topic=buy] { --c:var(--peach); --tc:var(--peach-d); }
.idea[data-topic=money] { --c:var(--lilac); --tc:var(--lilac-d); } .idea[data-topic=rep] { --c:var(--butter); --tc:var(--butter-d); }
.idea-emo { grid-area:e; display:grid; place-items:center; width:46px; height:46px; border-radius:14px; background:color-mix(in srgb, var(--c) 85%, #fff); filter:saturate(.85); font-size:22px; transition:transform .3s var(--spring); }
.idea:hover .idea-emo { transform:scale(1.08) rotate(-6deg); }
.idea-tag { grid-area:t; font-size:13px; font-weight:600; color:var(--tc, var(--accent-d)); }
.idea-text { grid-area:x; font-size:16px; line-height:1.4; color:var(--ink); }
.idea-go { grid-area:g; margin-top:8px; font-size:14px; font-weight:600; color:var(--muted); transition:color .2s; }
.idea:hover .idea-go { color:var(--accent-d); }

/* ── Принцип: Telegram-мокап ── */
.principle-section { display:grid; gap:36px; }
.tg-mockup { display:flex; justify-content:center; }
.tg-window { width:min(100%, 360px); overflow:hidden; border-radius:32px; background:var(--solid); border:1px solid var(--hair); box-shadow:var(--lift); }
.tg-header { display:flex; align-items:center; gap:12px; padding:14px 16px; border-bottom:1px solid var(--hair); }
.tg-avatar img { width:38px; height:38px; border-radius:50%; display:block; }
.tg-header-info { display:grid; }
.tg-name { font-weight:600; font-size:15px; }
.tg-status { font-size:13px; color:var(--muted); }
.tg-body { display:grid; gap:10px; padding:16px; min-height:300px; align-content:end; background:#e9eefb; }
.tg-bubble { position:relative; max-width:88%; padding:10px 14px 22px; border-radius:18px 18px 18px 6px; background:var(--solid); box-shadow:0 1px 2px rgba(30,40,80,.08); font-size:14px; line-height:1.45; color:var(--ink-2); opacity:0; animation:tg-message 9s var(--ease) infinite; }
.tg-bubble strong { display:block; color:var(--ink); font-weight:600; margin-bottom:2px; }
.tg-bubble--2 { animation-delay:1.2s; } .tg-bubble--3 { animation-delay:2.4s; }
.tg-time { position:absolute; right:12px; bottom:5px; font-size:11px; color:var(--muted); }
@keyframes tg-message { 0% { opacity:0; transform:translateY(10px) scale(.98); } 6%, 72% { opacity:1; transform:none; } 86%, 100% { opacity:0; } }
.principle-copy p:not(.eyebrow) { margin:18px 0 0; font-size:18px; color:var(--ink-2); max-width:30em; }

/* ── Тарифы (черновик) ── */
.draft-tag { display:inline-block; margin-left:6px; padding:2px 10px; border-radius:99px; border:1.5px dashed var(--accent); font-size:13px; font-weight:600; color:var(--accent-d); vertical-align:2px; }
.plans { display:grid; gap:12px; }
.plan { position:relative; display:grid; gap:4px; justify-items:start; padding:22px 20px; border-radius:var(--r-xl); background:var(--surface); border:1px solid var(--hair); transition:border-color .2s; }
.plan:hover { border-color:rgba(61,99,232,.45); }
.plan--main { border:1.5px solid var(--accent); }
.plan-badge { position:absolute; top:18px; right:18px; padding:3px 10px; border-radius:99px; background:var(--accent); color:#fff; font-size:12px; font-weight:600; }
.plan:nth-child(1) { --c:var(--mint); } .plan:nth-child(2) { --c:var(--sky); } .plan:nth-child(3) { --c:var(--peach); }
.plan-bird { display:grid; place-items:center; width:58px; height:58px; margin-bottom:8px; border-radius:18px; background:color-mix(in srgb, var(--c) 85%, #fff); font-size:32px; transition:transform .3s var(--spring); }
.plan:hover .plan-bird { transform:rotate(-8deg); }
.plan h3 { font-size:22px; }
.plan-price { margin:2px 0 0; font-size:15px; color:var(--muted); }
.plan-runs { margin:10px 0 0; font-size:16px; } .plan-runs b { font-size:22px; font-weight:600; }
.plan-for { margin:0; font-size:14px; color:var(--ink-2); }

/* ── Финальный призыв: регистрация ── */
.final-section { display:grid; gap:24px; margin:24px 0 0; padding:48px 0; }
.final-section p { margin:14px 0 0; font-size:17px; opacity:.92; max-width:30em; }
.final-actions { display:grid; gap:10px; }

/* ── Подвал ── */
.site-footer { display:grid; gap:8px; padding:28px 0 calc(36px + env(safe-area-inset-bottom, 0px)); font-size:14px; color:var(--muted); }
.site-footer .brand { color:var(--accent); }
.site-footer .brand-mark { height:32px; } .site-footer .brand-name { font-size:24px; }
.site-footer p { margin:0; }

@keyframes fade { from { opacity:0; } }

/* Телефон: в шапке помещается одна кнопка («Войти»); «Поручить» — сразу под заголовком. Стоит после .button — иначе та перебивает display */
@media (max-width: 599px) { .site-header .header-cta { display:none; } .assign-text { min-height:118px; } .assign-head { flex-wrap:wrap; } }

/* ── Планшет ── */
@media (min-width: 640px) {
  .page-shell { padding:0 28px; }
  .hero h1 { font-size:52px; }
  .brand-mark { height:56px; } .brand-name { font-size:38px; } .brand-tag { display:block; }
  .hero-actions { display:flex; flex-wrap:wrap; }
  .assign { padding:24px 22px 20px; }
  /* Два переключателя в ряд, пока помещаются; не помещаются — «Куда писать» уходит на следующую строку */
  .assign-opts { display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px 16px; }
  .seg { flex-wrap:nowrap; } .seg button { white-space:nowrap; padding:5px 10px; }
  .promise-list { grid-template-columns:repeat(2, minmax(0,1fr)); }
  .ideas { grid-template-columns:repeat(2, minmax(0,1fr)); }
  .plans { grid-template-columns:repeat(3, minmax(0,1fr)); }
  .final-actions { display:flex; flex-wrap:wrap; }
  .section h2 { font-size:34px; }
  .final-section { padding:56px 0; }
}

/* ── Десктоп ── */
@media (min-width: 960px) {
  .section { padding:84px 0; }
  .site-header { padding-top:26px; }
  .brand { gap:14px; }
  .site-header .brand-mark { height:78px; } .site-header .brand-name { font-size:52px; }
  .site-nav { display:flex; gap:4px; margin-left:auto; }
  .site-nav a { padding:9px 14px; border-radius:999px; font-size:16px; font-weight:500; white-space:nowrap; transition:background .2s; }
  .site-nav a:hover { background:rgba(251,243,232,.14); }
  .header-login { margin-left:8px; font-size:16px; padding:9px 22px; }
  .header-cta { margin-left:8px; min-height:44px; padding:10px 20px; font-size:16px; }
  .hero { grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:center; gap:56px; padding-top:56px; }
  .hero h1 { font-size:64px; }
  .assign { padding:26px 26px 22px; }
  .hero .assign-head h2 { font-size:26px; }
  .section h2 { font-size:40px; }
  /* Обещание: четыре шага в ряд на пунктирном маршруте; по нему раз в несколько секунд пролетает сорока */
  .promise { padding-top:56px; }
  .promise-track { display:block; position:absolute; left:46px; right:46px; top:56px; height:46px; border-top:2px dashed var(--hair-2); transform:translateY(23px); pointer-events:none; }
  .promise-bird { position:absolute; top:-17px; left:0; width:40px; animation:fly 9s var(--ease) infinite; }
  .promise-bird img { display:block; width:40px; height:auto; }
  @keyframes fly { 0% { left:0; opacity:0; } 8% { opacity:1; } 55% { left:calc(100% - 40px); opacity:1; } 62%, 100% { left:calc(100% - 40px); opacity:0; } }
  .promise-list { grid-template-columns:repeat(4, minmax(0,1fr)); gap:16px; }
  .promise-list li { grid-template-columns:minmax(0,1fr); grid-template-areas:"i" "b" "s"; gap:6px; padding:0 4px; border:0; background:none; }
  .promise-list li:hover { background:none; }
  .promise-ico { position:relative; z-index:1; margin-bottom:8px; background:var(--surface); box-shadow:0 0 0 6px var(--bg), 0 0 0 7px var(--hair); }
  .how { grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); align-items:stretch; gap:24px; }
  .how-demo { padding:32px; }
  .ideas { grid-template-columns:repeat(3, minmax(0,1fr)); gap:14px; }
  .principle-section { grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); align-items:center; gap:72px; }
  .principle-section .tg-mockup { order:0; }
  .final-section { grid-template-columns:minmax(0,1.2fr) auto; align-items:center; padding:68px 0; }
  .site-footer { grid-template-columns:auto 1fr auto; align-items:center; gap:24px; }
}

/* Узкий десктоп (960–1099): меню в строку не влезает — ужимаем шапку, а не переносим пункты */
@media (min-width: 960px) and (max-width: 1099px) {
  .site-header .brand-mark { height:62px; } .site-header .brand-name { font-size:42px; }
  .site-nav a { padding:9px 10px; font-size:15px; }
  .header-login { padding:9px 16px; font-size:15px; }
  .header-cta { padding:10px 16px; font-size:15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
  .tg-bubble { opacity:1; }
  .promise-bird { display:none; }
}
