/* шрифты: Unbounded для заголовков, Manrope для текста */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/manrope-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/manrope-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(fonts/unbounded-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(fonts/unbounded-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Идея: яркие цвета текстовыделителей, крупный игровой шрифт и тонкие 3D-объекты из мира учёбы,
   которые медленно крутятся и наклоняются за курсором. */
:root {
  --bg: #FFFFFF; --surface: #F3F3F5; --ink: #121212; --muted: #575A63; --rule: #E3E3E8; --rule-strong: #C5C6CE;
  --lemon: #FFE94A; --pink: #FF9ACB; --lilac: #C9B8FF; --blue: #3B5BFF;
  --on-bright: #121212; --on-blue: #FFFFFF;
  --btn-bg: #121212; --btn-fg: #FFFFFF;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --sans: Manrope, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 28px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #121318; --surface: #1C1E25; --ink: #F3F3F6; --muted: #A5A8B3; --rule: #2A2D36; --rule-strong: #3D414D;
          --btn-bg: #F3F3F6; --btn-fg: #121212; }
}

/* основа */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background-color: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
h3, h4 { font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
p, li { text-wrap: pretty; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
section[id] { scroll-margin-top: 88px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nw { white-space: nowrap; }

/* цветные блоки */
.block { position: relative; border-radius: var(--radius); }
.block-lemon { background-color: var(--lemon); color: var(--on-bright); }
.block-pink { background-color: var(--pink); color: var(--on-bright); }
.block-lilac { background-color: var(--lilac); color: var(--on-bright); }
.block-blue { background-color: var(--blue); color: var(--on-blue); }
.tone-lemon { background-color: var(--lemon); color: var(--on-bright); }
.tone-pink { background-color: var(--pink); color: var(--on-bright); }
.tone-lilac { background-color: var(--lilac); color: var(--on-bright); }
.tone-blue { background-color: var(--blue); color: var(--on-blue); }
.hairline { display: block; width: 100%; color: currentColor; }

/* кнопки: пружинят при наведении */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 20px;
       border: 1.5px solid transparent; border-radius: 999px; background-color: var(--btn-bg); color: var(--btn-fg);
       font: 600 16px/24px var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer;
       transition: transform 450ms var(--spring), background-color 200ms var(--ease); }
.btn:hover { transform: translateY(-3px) rotate(-1.5deg); }
.btn:active { transform: scale(0.96); transition-duration: 120ms; }
.btn-sm { padding: 8px 16px; font-size: 14px; line-height: 20px; }
.btn-lg { padding: 16px 26px; font-size: 17px; }
.btn-icon { flex: none; margin-left: -4px; }
.block .btn { background-color: #121212; color: #FFFFFF; }
.block .btn.btn-lemon, .btn-lemon { background-color: var(--lemon); color: #121212; }
.btn-outline { background-color: transparent; border-color: var(--rule-strong); color: var(--ink); }
.block .btn.btn-outline { background-color: transparent; border-color: #121212; color: #121212; }
.block .btn.btn-on-blue { background-color: transparent; border-color: rgba(255, 255, 255, 0.6); color: #FFFFFF; }

.skip-link { position: fixed; z-index: 60; top: 16px; left: 16px; padding: 8px 14px; border-radius: 999px;
             background-color: var(--btn-bg); color: var(--btn-fg); font-weight: 600; text-decoration: none; transition: transform 400ms var(--ease); }
.skip-link:not(:focus) { transform: translateY(-96px); }

/* плавающее меню */
.nav-bar { position: fixed; z-index: 50; top: 14px; left: 0; right: 0; margin-inline: auto; width: max-content; max-width: calc(100% - 24px);
           display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 18px;
           border: 1px solid var(--rule); border-radius: 999px;
           background-color: color-mix(in srgb, var(--bg) 82%, transparent);
           -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); }
.logo { display: grid; margin-right: 10px; text-decoration: none; }
.logo-name { font: 700 17px/22px var(--display); letter-spacing: -0.02em; }
.logo-tag { color: var(--muted); font-size: 12px; font-weight: 600; line-height: 14px; }
.logo .accent { padding: 0 4px; margin-left: 1px; border-radius: 6px; background-color: var(--lemon); color: #121212; }
.nav-links { display: none; }
.nav-links a { padding: 8px 12px; border-radius: 999px; color: var(--muted); font-size: 14px; line-height: 20px; font-weight: 600; text-decoration: none;
               transition: color 200ms var(--ease), background-color 200ms var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--ink); background-color: var(--surface); }
.nav-cta { transition: transform 450ms var(--spring), opacity 300ms var(--ease), visibility 300ms var(--ease); }

.menu-toggle { display: grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 999px;
               background-color: transparent; cursor: pointer; transition: background-color 200ms var(--ease); }
.menu-toggle:hover { background-color: var(--surface); }
.menu-toggle svg { display: block; overflow: visible; }
.menu-line { transform-box: fill-box; transform-origin: center; transition: transform 500ms var(--spring); }
.menu-line:first-child { transform: translateY(-4px); }
.menu-line:last-child { transform: translateY(4px); }
.menu-toggle[aria-expanded="true"] .menu-line:first-child { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-line:last-child { transform: rotate(-45deg); }
html:not(.js) .menu-toggle { display: none; }

.menu-panel { position: fixed; z-index: 40; inset: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
              padding: 96px 24px 40px; overflow-y: auto; background-color: var(--lemon); color: #121212;
              opacity: 0; transition: opacity 300ms var(--ease); }
.menu-panel.is-open { opacity: 1; }
.menu-list { display: grid; gap: 4px; }
.menu-list a { display: block; padding: 8px 0; font: 700 30px/38px var(--display); letter-spacing: -0.02em; text-decoration: none; }
.menu-item { opacity: 0; transform: translateY(20px); transition: opacity 300ms var(--ease), transform 600ms var(--spring); }
.menu-panel.is-open .menu-item { opacity: 1; transform: none; transition-delay: var(--delay, 0ms); }
.menu-cta .btn { width: 100%; background-color: #121212; color: #FFFFFF; }
@media (max-width: 767px) { .nav-bar:has([aria-expanded="true"]) .nav-cta, body:has(.mobile-cta.is-shown) .nav-cta { opacity: 0; visibility: hidden; } }
@media (max-width: 419px) { .nav-cta { display: none; } }
@media (min-width: 768px) {
  .nav-links { display: flex; gap: 2px; padding-right: 10px; }
  .menu-toggle, .menu-panel { display: none; }
}

/* общая сетка */
/* minmax(0, 1fr): canvas hairline.js берёт ширину из своей же отрисовки и иначе распирает колонку на узких экранах */
main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 76px 10px 0; }
.section { max-width: 1200px; width: 100%; margin-inline: auto; padding: 56px 10px; }
h2 { font-size: 28px; line-height: 1.15; }
.section-head { display: grid; gap: 16px; max-width: 640px; margin-bottom: 36px; }
.lead { color: var(--muted); font-size: 17px; line-height: 1.6; }
@media (min-width: 768px) {
  main { padding-inline: 16px; gap: 16px; }
  .section { padding: 80px 24px; }
  h2 { font-size: 38px; }
  .section-head { margin-bottom: 48px; }
}
@media (min-width: 1024px) {
  h2 { font-size: 46px; }
  :root { --radius: 40px; }
}

/* ===== первый экран ===== */
.hero { display: grid; gap: 8px; max-width: 1400px; width: 100%; margin-inline: auto; padding: 40px 22px 28px; overflow: hidden; }
.hero h1 { font-size: 33px; line-height: 1.08; }
/* слова поднимаются по очереди при загрузке */
.w { display: inline-block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; vertical-align: top; }
.w > span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .js .w > span { transform: translateY(110%) rotate(6deg); animation: rise 900ms var(--spring) forwards; animation-delay: calc(120ms + var(--i, 0) * 70ms); }
}
@keyframes rise { to { transform: none; } }
.hero-lead { max-width: 34em; margin-top: 22px; font-size: 17px; line-height: 1.6; color: rgba(18, 18, 18, 0.78); }
.hero-lead strong { display: block; margin-bottom: 6px; color: #121212; font-size: 1.1em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: 28px; }
.hero-accent { color: var(--blue); }
.proof { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.proof li { display: grid; gap: 2px; padding: 10px 16px; border: 1.5px solid #121212; border-radius: 16px; font-size: 13px; line-height: 18px; color: rgba(18, 18, 18, 0.78); }
.proof strong { color: #121212; font: 700 15px/20px var(--display); letter-spacing: -0.01em; }
.hero-art { position: relative; justify-self: center; width: 100%; max-width: 560px; }
.hero-art .hairline { aspect-ratio: 1 / 1; }
.badge { position: absolute; right: 2%; bottom: 6%; width: 104px; height: 104px; }
.badge circle { fill: #121212; }
.badge text { fill: var(--lemon); font: 700 10.5px var(--sans); letter-spacing: 0.06em; }
.badge-check { fill: none; stroke: var(--lemon); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) {
  .badge text { transform-origin: 60px 60px; animation: spin 16s linear infinite; }
}
@keyframes spin { to { transform: rotate(360deg); } }
/* длинная надпись главной кнопки на телефоне: без иконки и с меньшими полями, а если и так не влезает, переносится */
@media (max-width: 419px) {
  .hero-actions .btn-icon { display: none; }
  .hero-actions .btn-lg { padding-inline: 20px; white-space: normal; text-align: center; }
}
@media (min-width: 640px) {
  .hero { padding: 56px 40px 40px; }
  .hero h1 { font-size: 44px; }
  .badge { width: 128px; height: 128px; }
}
@media (min-width: 1024px) {
  .hero { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: 24px; min-height: min(780px, calc(100svh - 92px)); padding: 56px 40px 56px 64px; }
  .hero h1 { font-size: 54px; line-height: 1.06; }
  .hero-lead { font-size: 18px; }
}
@media (min-width: 1280px) { .hero h1 { font-size: 62px; } }

/* на синем белый текст без прозрачности, иначе контраст ниже 4.5:1 */
.block-blue .contact-intro p { opacity: 1; }

/* ===== как это работает ===== */
.steps { --mark: 60px; position: relative; display: grid; gap: 28px; }
.steps::before { content: ''; position: absolute; top: 8px; bottom: 8px; left: calc(var(--mark) / 2 - 1px); border-left: 2px dashed var(--rule-strong); }
.step { position: relative; display: grid; grid-template-columns: var(--mark) 1fr; column-gap: 18px; row-gap: 4px; }
.step-mark { grid-row: span 2; display: grid; place-items: center; width: var(--mark); height: var(--mark); border-radius: 50%;
             font: 800 24px/1 var(--display); }
.step h3 { align-self: end; font-size: 18px; line-height: 1.35; }
.step p { color: var(--muted); font-size: 15px; }
@media (prefers-reduced-motion: no-preference) {
  .js .steps:not(.is-in) .step-mark { transform: scale(0); }
  .step-mark { transition: transform 700ms var(--spring); transition-delay: calc(var(--n, 0) * 140ms); }
  .step:hover .step-mark { transform: rotate(-12deg) scale(1.08); transition-delay: 0ms; }
}
.step:nth-child(2) { --n: 1; } .step:nth-child(3) { --n: 2; } .step:nth-child(4) { --n: 3; }
@media (min-width: 1024px) {
  .steps { --mark: 76px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .steps::before { top: calc(var(--mark) / 2 - 1px); bottom: auto; left: calc(var(--mark) / 2); right: calc((100% - 96px) / 4 - var(--mark) / 2);
                   border-left: 0; border-top: 2px dashed var(--rule-strong); }
  .step { grid-template-columns: 1fr; row-gap: 8px; align-content: start; }
  .step-mark { grid-row: auto; margin-bottom: 18px; font-size: 30px; }
}

/* ===== цены ===== */
.prices-head { display: grid; gap: 8px; }
.coins-art { height: 200px; color: var(--ink); }
@media (min-width: 1024px) {
  .prices-head { grid-template-columns: minmax(0, 1fr) 320px; align-items: center; margin-bottom: 8px; }
  .prices-head .section-head { margin-bottom: 40px; }
  .coins-art { height: 280px; }
}
.price-layout { display: grid; gap: 32px; }
.price-toc { display: grid; gap: 32px; }
.toc-group-title, .eyebrow { display: inline-block; margin-bottom: 6px; padding: 4px 12px; border-radius: 999px; background-color: var(--surface);
                   color: var(--muted); font-size: 13px; font-weight: 700; }
.toc-list { display: grid; }
.toc-row { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.toc-row:last-child { border-bottom: 0; }
.toc-line { display: flex; align-items: baseline; align-items: last baseline; gap: 10px; }
.toc-title { min-width: 0; font: 600 18px/1.35 var(--display); letter-spacing: -0.01em; hyphens: auto; }
.toc-leader { flex: 1 1 24px; min-width: 24px; border-bottom: 2px dotted var(--rule-strong); transform: translateY(-5px); }
.price { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.toc-line .price { font: 700 20px/1.2 var(--display); letter-spacing: -0.02em; }
.toc-text { max-width: 44ch; margin-top: 6px; color: var(--muted); font-size: 15px; }
.toc-row { position: relative; }
.toc-pick { display: inline-block; margin-top: 10px; padding: 5px 14px; border: 1.5px solid var(--ink); border-radius: 999px;
            font-size: 13px; font-weight: 700; line-height: 18px; text-decoration: none;
            transition: transform 400ms var(--spring), background-color 200ms var(--ease), color 200ms var(--ease); }
.toc-pick:hover { background-color: var(--ink); color: var(--bg); transform: translateY(-2px) rotate(-2deg); }
/* на телефонах и планшетах кнопка под палец: не ниже 44px */
@media (max-width: 767px), (pointer: coarse) { .toc-pick { min-height: 44px; padding: 12px 20px; font-size: 14px; } }
.toc-row.is-whole .toc-title-text { background-image: linear-gradient(transparent 52%, var(--lemon) 52%, var(--lemon) 94%, transparent 94%);
                                    -webkit-box-decoration-break: clone; box-decoration-break: clone; padding-inline: 3px; margin-inline: -3px; }
@media (prefers-color-scheme: dark) { .toc-row.is-whole .toc-title-text { background-image: linear-gradient(transparent 52%, rgba(255, 233, 74, 0.35) 52%, rgba(255, 233, 74, 0.35) 94%, transparent 94%); } }

.price-side { display: grid; gap: 14px; align-content: start; }
.services-box { padding: 24px; border-radius: 24px; background-color: var(--surface); }
.services-box h3 { margin-bottom: 4px; font: 700 17px/1.3 var(--display); }
.services-box .toc-title { font: 600 15px/1.4 var(--sans); }
.services-box .toc-line .price { font-size: 16px; }
.services-box .toc-text { margin-top: 2px; font-size: 14px; }
.services-box .toc-row { padding: 12px 0; }
.gift { display: grid; gap: 8px; padding: 0 24px 26px; overflow: hidden; border-radius: 24px; }
.gift-art { height: 200px; margin-inline: -24px; }
.gift h3 { font: 700 22px/1.2 var(--display); letter-spacing: -0.02em; }
.gift p { font-size: 15px; opacity: 0.85; }
@media (min-width: 1024px) {
  .price-layout { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; }
  .toc-title { font-size: 21px; }
  .toc-line .price { font-size: 25px; }
}

/* ===== отзывы (скрыты, пока их нет в config.js) ===== */
.review-grid { display: grid; gap: 14px; }
.review { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; margin: 0; padding: 24px; border-radius: 24px; background-color: var(--surface); }
.review blockquote { margin: 0; font-size: 17px; }
.review figcaption { display: grid; gap: 2px; font-size: 14px; }
.review-name { font-weight: 700; }
.review-uni { color: var(--muted); }
@media (min-width: 768px) { .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .review-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ===== вопросы ===== */
.faq-layout { display: grid; gap: 28px; }
.faq-head .eyebrow { margin-bottom: 14px; }
.faq-list { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0;
               font-weight: 600; font-size: 16px; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; background-color: var(--surface);
            transition: background-color 250ms var(--ease), transform 600ms var(--spring); }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px;
                                       background-color: currentColor; border-radius: 1px; }
.faq-icon::after { transform: rotate(90deg); }
.faq summary:hover .faq-icon { transform: rotate(90deg); }
.faq details[open] .faq-icon { transform: rotate(135deg); background-color: var(--lemon); color: #121212; }
.faq-a { padding: 0 48px 22px 0; color: var(--muted); }
.faq-a p { max-width: 60ch; }
@media (prefers-reduced-motion: no-preference) { .faq details[open] .faq-a { animation: faq-in 500ms var(--spring); } }
@keyframes faq-in { from { opacity: 0; transform: translateY(-8px); } }
@media (min-width: 1024px) {
  .faq-layout { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; align-items: start; }
  .faq-head { position: sticky; top: 104px; }
  .faq summary { font-size: 18px; padding: 22px 0; }
}

/* ===== заявка ===== */
.contact { display: grid; gap: 8px; max-width: 1400px; width: 100%; margin-inline: auto; padding: 8px 18px 22px; overflow: hidden; }
.contact-intro { display: grid; gap: 14px; align-content: start; padding-inline: 6px; }
.contact-art { height: 220px; margin-inline: -18px; }
.contact h2 { max-width: 14ch; }
.contact-intro p { max-width: 30em; font-size: 17px; opacity: 0.85; }
.order { display: grid; gap: 22px; margin-top: 16px; padding: 24px 20px; border-radius: 24px; background-color: var(--bg); color: var(--ink); }
.order.is-flash { animation: flash 900ms var(--spring); }
@keyframes flash { 30% { transform: scale(1.015) rotate(-0.4deg); } }
.order-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.order-group legend { margin-bottom: 10px; padding: 0; font: 700 14px/1.3 var(--display); }
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.picks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
.pick { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick-body { display: grid; gap: 2px; height: 100%; padding: 10px 16px; border: 1.5px solid var(--rule-strong); border-radius: 16px;
             transition: transform 400ms var(--spring), border-color 200ms var(--ease), background-color 200ms var(--ease); }
.picks:not(.picks-grid) .pick-body { border-radius: 999px; }
.pick-title { font-weight: 700; font-size: 15px; line-height: 1.3; text-wrap: balance; }
.pick:hover .pick-body { transform: translateY(-2px); border-color: var(--ink); }
.pick input:checked + .pick-body { border-color: #121212; background-color: var(--lemon); color: #121212; transform: rotate(-1deg); }
.pick input:focus-visible + .pick-body { outline: 2px solid var(--blue); outline-offset: 3px; }
.order-fields { display: grid; gap: 12px; }
.field-input { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.field-input input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--rule-strong); border-radius: 14px;
                     background-color: var(--bg); color: var(--ink); font: 500 16px/1.4 var(--sans); color-scheme: inherit;
                     transition: border-color 200ms var(--ease); }
.field-input input::placeholder { color: var(--muted); opacity: 0.8; }
.field-input input:hover { border-color: var(--ink); }
.field-input input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-color: var(--ink); }
.order-total { display: grid; gap: 16px; padding-top: 20px; border-top: 1px dashed var(--rule-strong); }
.order-days:empty { display: none; }
.order-days { min-height: 1.4em; font-size: 14px; font-weight: 600; color: var(--muted); }
.order-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.order .btn-lemon { border-color: #121212; }
.order .btn-on-blue { background-color: transparent; border-color: var(--rule-strong); color: var(--ink); }
.contact-fallback { display: none; padding: 8px 6px 4px; }
html:not(.js) .order { display: none; }
html:not(.js) .contact-fallback { display: flex; }
@media (min-width: 640px) {
  .order { padding: 32px; }
  .order-fields { grid-template-columns: 1fr 1fr; }
  .order-total { grid-template-columns: 1fr auto; align-items: end; }
}
@media (min-width: 1024px) {
  .contact { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: start; gap: 32px; padding: 40px 40px 40px 48px; }
  .contact-intro { position: sticky; top: 96px; padding-top: 8px; }
  .contact-art { height: 340px; margin-inline: -24px; }
  .order { margin-top: 0; padding: 40px; }
  .order-fields { grid-template-columns: 1.2fr 1fr 0.8fr; }
  .order-fields .field-input:last-child { grid-column: 1 / -1; }
}

/* мобильная кнопка внизу экрана */
.mobile-cta { position: fixed; z-index: 45; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px));
              display: flex; align-items: center; gap: 8px; padding: 6px; border: 1px solid var(--rule); border-radius: 999px;
              background-color: color-mix(in srgb, var(--bg) 88%, transparent);
              -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
              transform: translateY(140%); visibility: hidden; transition: transform 600ms var(--spring), visibility 0s linear 600ms; }
.mobile-cta.is-shown { transform: none; visibility: visible; transition: transform 600ms var(--spring), visibility 0s; }
.mobile-cta .btn { flex: 1; min-width: 0; }
@media (max-width: 399px) { .mobile-cta .btn-icon { display: none; } }
/* на самых узких экранах длинные кнопки переносят текст, а не раздвигают страницу */
@media (max-width: 359px) { .btn { white-space: normal; text-align: center; } }
@media (min-width: 768px) { .mobile-cta { display: none; } }
@media (prefers-reduced-motion: reduce) { .mobile-cta, .mobile-cta.is-shown { transition: none; } .order.is-flash { animation: none; } }

/* подвал */
footer { padding: 40px 0 96px; }
@media (min-width: 768px) { footer { padding-bottom: 56px; } }
.footer-row { display: flex; flex-direction: column; gap: 20px; max-width: 1200px; margin-inline: auto; padding-inline: 20px;
              color: var(--muted); font-size: 14px; line-height: 20px; }
.footer-about { display: grid; gap: 4px; }
.footer-brand { color: var(--ink); font-weight: 700; }
.footer-link { align-self: flex-start; text-underline-offset: 4px; }
.footer-link:hover { color: var(--ink); }
@media (min-width: 768px) {
  .footer-row { flex-direction: row; justify-content: space-between; align-items: flex-end; padding-inline: 34px; }
  .footer-link { align-self: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .menu-item, .btn:hover, .btn:active { transform: none; }
  .menu-line, .skip-link, .faq-icon { transition: none; }
}

/* служебные страницы: политика и 404 */
.doc { display: block; padding: 96px 12px 64px; }
.doc-body { display: grid; justify-items: start; gap: 16px; max-width: 760px; margin-inline: auto; padding: 36px 24px 44px;
            border-radius: 28px; background-color: var(--surface); }
.doc h1 { font-size: 28px; line-height: 1.15; hyphens: auto; overflow-wrap: anywhere; }
.doc h2 { margin-top: 16px; font-size: 20px; line-height: 1.3; }
.doc p { color: var(--muted); }
.doc-lead { font-size: 18px; line-height: 1.55; }
.doc-link { text-underline-offset: 4px; font-weight: 600; }
.doc-back { margin-top: 16px; }
.doc-center { display: grid; align-items: center; min-height: 100vh; }
.doc main, main.doc { gap: 0; }
@media (min-width: 768px) {
  .doc-body { padding: 56px 56px 60px; }
  .doc h1 { font-size: 40px; }
}
