/* Главная страница (templates/landing.html): секции. Основа, шапка и подвал — site.css (подключается раньше).
   Дизайн собирался на стенде /demo, варианты секций — /demo/<имя>. Размеры в rem и точки переключения в em — см. site.css. */
/* Ссылка из меню ставит заголовок секции чуть ниже шапки. У секции свой верхний отступ, поэтому
   scroll-margin = (где встать заголовку) − (отступ секции). Телефон: шапка 4rem, заголовок на 5,5rem, отступ секций 3rem. */
section[id] { scroll-margin-top: 2.5rem; }
.how[id] { scroll-margin-top: 2rem; }

/* ---------- 1. Первый экран: «Оранжевый блок» (выбран 20.11.2026) ----------
   Блок фирменного цвета, крупный лёгкий заголовок и три фото, подписи к которым читаются одной фразой.
   Блок темнее апельсина (#D95F14): белый текст на нём — только крупный (контраст 3,8:1, норма для крупного текста),
   мелкий — на плашке с затемнением. Картинки — в стиле «Руки за делом», сгенерированы (Nano Banana Pro), в телефоны вписаны наши экраны:
   квиз и список покупок. Исходники — design-refs/nano-hero/; прежние фото CC0 — static/img/hero/CREDITS.md. */
.hero { padding: 0.875rem 0 1.75rem; }
.hero-panel { display: grid; gap: 1.375rem; padding: 1.625rem 1.25rem 1.375rem; border-radius: 1.875rem; background: #D95F14; color: #FFF; }
.hero-panel :focus-visible { outline-color: #FFF; }
.hero-title { margin: 0; font-size: clamp(1.75rem, 9.6vw, 2.25rem); font-weight: 300; line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; }
.hero-title b { font-weight: 800; }
.hero-cta { display: grid; gap: 0.75rem; }
.hero-btn { display: flex; align-items: center; justify-content: space-between; gap: 1.125rem; height: 3.75rem; padding: 0 0.5rem 0 1.625rem; border-radius: 62.4375rem; background: #FFF; color: var(--ink); text-decoration: none; font-size: 1.0625rem; font-weight: 700; white-space: nowrap; box-shadow: 0 0.875rem 1.75rem -1rem rgba(80, 30, 0, .6); transition: transform .2s; }
.hero-btn:hover { transform: translateY(-1px); }
.hero-btn .ic { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--forest); color: #FFF; transition: transform .25s; }
.hero-btn .ic .i { width: 1.1875rem; height: 1.1875rem; stroke-width: 2.3; }
.hero-btn:hover .ic { transform: rotate(-45deg); }
.hero-note { justify-self: center; margin: 0; padding: 0.3125rem 0.75rem; border-radius: 62.4375rem; background: rgba(0, 0, 0, .16); font-size: 0.875rem; font-weight: 700; }
.hero-steps { display: flex; gap: 0.75rem; margin: 0 -1.25rem; padding: 0 1.25rem 0.25rem; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 1.25rem; scrollbar-width: none; }
.hero-steps::-webkit-scrollbar { display: none; }
.hero-steps li { flex: 0 0 74%; scroll-snap-align: start; display: grid; gap: 0.75rem; align-content: start; }
.hero-steps p { margin: 0; font-size: 1.5rem; font-weight: 300; line-height: 1.15; letter-spacing: -.015em; }
.hero-steps b { font-weight: 700; }
.hero-steps .pic { position: relative; display: block; aspect-ratio: 4 / 4.2; border-radius: 1.375rem; overflow: hidden; background: var(--orange); }
.hero-steps .pic::after { content: ""; position: absolute; inset: 0; background: var(--orange); mix-blend-mode: multiply; opacity: .16; }
.hero-steps img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-steps .p-tile2 { object-position: 44% 50%; }
.hero-steps .p-tile3 { object-position: 55% 50%; }
.hero-steps .p-tile1 { object-position: 70% 50%; }
@media (min-width: 48em) {
  .hero-panel { grid-template-columns: minmax(0, 1fr) auto; gap: 1.875rem 2.5rem; padding: 2.125rem 2rem; border-radius: 2.25rem; }
  .hero-title { font-size: 3rem; }
  .hero-cta { align-self: end; justify-items: end; }
  .hero-steps { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 0; padding: 0; overflow: visible; }
  .hero-steps .pic { aspect-ratio: 16 / 11; border-radius: 1.5rem; }
  /* общая сетка строк: подписи разной длины, а фото стоят на одной линии */
  .hero-steps { grid-template-rows: auto auto; }
  .hero-steps li { grid-row: span 2; grid-template-rows: subgrid; }
}

/* ---------- 2. Как это работает: «Фото меняется при прокрутке» (выбран 20.11.2026) ----------
   Слева большое фото стоит на месте (sticky), справа шаги с огромными тонкими цифрами; шаг ближе к середине экрана —
   активный, фото сменяется под него. На телефоне фото стоит над каждым шагом, без эффекта.
   Картинки сгенерированы (Nano Banana Pro), экран квиза и лист меню вписаны свои; static/img/how/CREDITS.md. Блюда и вопросы — настоящие (app/services/quiz.py, scripts.preview_menu). */
.how { padding: 3.5rem 0 1rem; }
.how-head h2 { margin: 0; font-size: 2.25rem; font-weight: 800; line-height: 1.04; letter-spacing: -.035em; }
.how-head p { margin: 0.75rem 0 0; max-width: 30em; font-size: 1.0312rem; line-height: 1.55; color: #4A4A45; }
.how-stick { display: none; }
.how-steps { margin: 1.75rem 0 0; padding: 0; list-style: none; }
.how-step { padding: 0 0 2.75rem; }
.how-mph { display: block; width: 100%; height: 15rem; object-fit: cover; border-radius: 1.375rem; margin-bottom: 1.125rem; }
.how-n { display: block; font-size: 4.5rem; font-weight: 200; line-height: .9; letter-spacing: -.05em; color: var(--peel); }
.how-step h3 { margin: 0.625rem 0 0.5rem; font-size: 1.625rem; font-weight: 800; line-height: 1.15; letter-spacing: -.025em; }
.how-step p { margin: 0; max-width: 30em; font-size: 1rem; line-height: 1.55; color: #4A4A45; }
.how-det { max-width: 30em; margin: 1.125rem 0 0; padding: 0; list-style: none; border-top: 1px solid #ECE6DB; }
.how-det li { display: flex; justify-content: space-between; gap: 0.875rem; padding: 0.6875rem 0; border-bottom: 1px solid #ECE6DB; font-size: 0.9375rem; font-weight: 600; }
.how-det b { flex: none; font-weight: 800; color: var(--leaf); }
.p-step1 { object-position: 52% 45%; }
.p-step2 { object-position: 50% 58%; }
.p-step3 { object-position: 50% 52%; }
@media (min-width: 64em) {
  .how { padding: 7rem 0 2.5rem; }
  .how-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5rem; align-items: end; }
  .how-head h2 { font-size: 4rem; }
  .how-head p { font-size: 1.125rem; }
  .how-grid { display: grid; grid-template-columns: minmax(0, 31.25rem) minmax(0, 1fr); gap: 5.5rem; margin-top: 4rem; }
  .how-stick { display: block; }
  .how-frame { position: sticky; top: max(7rem, calc(50vh - 18.125rem)); height: min(37.5rem, calc(100vh - 8.5rem)); border-radius: 2rem; overflow: hidden; background: #EFE9DE; }
  .how-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .7s, transform 1.2s; }
  .how-ph.on { opacity: 1; transform: none; }
  .how-dots { position: absolute; left: 1.5rem; bottom: 1.5rem; display: flex; gap: 0.375rem; }
  .how-dots i { width: 1.75rem; height: 0.25rem; border-radius: 2px; background: rgba(255, 255, 255, .5); transition: background .3s, width .3s; }
  .how-dots i.on { width: 3rem; background: #FFF; }
  .how-steps { margin: 0; }
  .how-step { min-height: min(37.5rem, calc(100vh - 8.5rem)); padding: 2.5rem 0; opacity: .28; transition: opacity .5s; }
  .how-step.on { opacity: 1; }
  .how-mph { display: none; }
  .how-n { font-size: 7.5rem; }
  .how-step h3 { font-size: 2.5rem; }
  .how-step p { font-size: 1.125rem; }
}

/* ---------- 3. Пример меню: «Лента блюд» (выбрана 21.11.2026) ----------
   Как у Factor и Elementaree: высокие фото блюд, название белым поверх, лента уходит за правый край экрана.
   Последняя карточка — итог дня. Фото — static/img/menu/ (CREDITS.md). */
body { overflow-x: clip; }
.ex { padding: 3rem 0 3.5rem; }
.ex-head { display: grid; gap: 1.125rem; }
.ex-head h2 { margin: 0; font-size: 2.125rem; font-weight: 800; line-height: 1.05; letter-spacing: -.033em; }
.ex-head p { margin: 0.75rem 0 0; max-width: 32em; font-size: 1.0312rem; line-height: 1.55; color: #4A4A45; }
.ex-nav { display: none; gap: 0.625rem; }
.ex-b { display: grid; place-items: center; width: 3.375rem; height: 3.375rem; border-radius: 50%; border: 1.5px solid rgba(29, 29, 27, .16); background: #FFF; color: var(--ink); cursor: pointer; transition: background .2s, border-color .2s, color .2s, opacity .2s; }
.ex-b:hover:not(:disabled) { background: var(--forest); border-color: var(--forest); color: #FFF; }
.ex-b:disabled { opacity: .35; cursor: default; }
.ex-feed { display: flex; gap: 0.875rem; margin: 1.75rem -1rem 0; padding: 0 1rem 0.375rem; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 1rem; scrollbar-width: none; }
.ex-feed::-webkit-scrollbar { display: none; }
.ex-card { flex: 0 0 76%; scroll-snap-align: start; }
.ex-ph { position: relative; aspect-ratio: 3 / 4; border-radius: 1.375rem; overflow: hidden; background: #EFE7DA; }
.ex-ph img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.ex-card:hover .ex-ph img { transform: scale(1.04); }
.ex-ph::before { content: ""; position: absolute; inset: 0 0 45% 0; z-index: 1; background: linear-gradient(180deg, rgba(20, 16, 10, .6), rgba(20, 16, 10, 0)); }
.ex-t { position: absolute; z-index: 2; left: 1.125rem; right: 1.125rem; top: 1rem; color: #FFF; font-size: 1.25rem; font-weight: 800; line-height: 1.18; letter-spacing: -.015em; }
.ex-k { position: absolute; z-index: 2; left: 0.875rem; bottom: 0.875rem; padding: 0.375rem 0.75rem; border-radius: 62.4375rem; background: #FFF; font-size: 0.8438rem; font-weight: 800; }
.ex-m { margin: 0.75rem 0 0; font-size: 0.9375rem; font-weight: 700; }
.ex-g { margin: 0.1875rem 0 0; font-size: 0.8438rem; line-height: 1.45; color: #77776F; }
.ex-sum-in { display: flex; flex-direction: column; aspect-ratio: 3 / 4; padding: 1.375rem; border-radius: 1.375rem; background: var(--forest); color: #FFF; }
.ex-sum-l { font-size: 0.9375rem; font-weight: 700; color: rgba(255, 255, 255, .75); }
.ex-sum-k { display: flex; align-items: baseline; gap: 0.5rem; margin-top: 0.5rem; font-size: 3.25rem; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.ex-sum-k small { font-size: 1.125rem; letter-spacing: 0; }
.ex-sum-g { margin-top: 0.5rem; font-size: 0.875rem; font-weight: 600; color: #FFB45C; }
.ex-sum-in dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .16); }
.ex-sum-in dt { font-size: 0.7812rem; color: rgba(255, 255, 255, .65); }
.ex-sum-in dd { margin: 2px 0 0; font-size: 1.125rem; font-weight: 800; }
.ex-sum-c { margin-top: 1rem; font-size: 0.9062rem; font-weight: 700; }
.ex-sum-btn { display: grid; place-items: center; min-height: 3.25rem; margin-top: auto; padding: 0.5rem 1rem; text-align: center; line-height: 1.2; border-radius: 62.4375rem; background: var(--orange); color: #1A2E22; text-decoration: none; font-size: 0.9375rem; font-weight: 800; transition: background .2s; }
.ex-sum-btn:hover { background: #FF9C3F; }
@media (min-width: 48em) {
  .ex-card { flex-basis: 18.75rem; }
}
@media (min-width: 64em) {
  .ex { padding: 7rem 0 6.5rem; }
  .ex-head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .ex-head h2 { font-size: 3.25rem; }
  .ex-head p { font-size: 1.125rem; }
  .ex-nav { display: flex; }
  /* лента от левого края текста до правого края экрана */
  .ex-feed { gap: 1.125rem; margin: 2.75rem calc(50% - 50vw) 0 0; padding: 0 2.5rem 0.375rem 0; scroll-padding: 0; }
  .ex-card { flex-basis: 17rem; }
  .ex-t { font-size: 1.3125rem; }
}

/* ---------- 4. Список покупок и бюджет: «Куда уходят деньги» (выбран 27.11.2026) ----------
   Как аналитика расходов в банковском приложении: сумма чека, тонкая полоса по отделам (2px зазоры, подсказка при наведении),
   список отделов с долями — он же легенда; нажатие раскрывает самые дорогие продукты отдела. */
.bd { padding: 3rem 0 3.5rem; }
.bd-head h2 { margin: 0; font-size: 2.125rem; font-weight: 800; line-height: 1.05; letter-spacing: -.033em; }
.bd-head p { margin: 0.75rem 0 0; max-width: 32em; font-size: 1.0312rem; line-height: 1.55; color: #4A4A45; }
.bd-grid { display: grid; gap: 1.5rem; margin-top: 1.75rem; }
.bd-sum { padding: 1.5rem; border-radius: 1.625rem; background: #F7F3EB; }
.bd-l { font-size: 0.9375rem; font-weight: 700; color: #6B6B66; }
.bd-big { display: block; margin-top: 0.375rem; font-size: clamp(1.75rem, 10.2vw, 2.875rem); font-weight: 800; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bd-sum dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin: 1.375rem 0 0; padding-top: 1.125rem; border-top: 1px solid #E6DECF; }
.bd-sum dt { font-size: 0.8125rem; font-weight: 600; color: #77776F; }
.bd-sum dd { margin: 0.1875rem 0 0; font-size: 1.375rem; font-weight: 800; letter-spacing: -.02em; }
.bd-sum p { margin: 1rem 0 0; font-size: 0.875rem; line-height: 1.5; color: #6B6B66; }
.bd-main { position: relative; }
.bd-bar { display: flex; gap: 2px; height: 0.5rem; }
.bd-bar i { border-radius: 62.4375rem; transition: transform .15s; }
.bd-bar i:hover { transform: scaleY(1.6); }
.bd-tip { position: absolute; z-index: 2; top: 1.125rem; padding: 0.375rem 0.625rem; border-radius: 0.5rem; background: var(--ink); color: #FFF; font-size: 0.8125rem; font-weight: 700; white-space: nowrap; pointer-events: none; transform: translateX(-50%); }
.bd-cats { margin: 1.375rem 0 0; padding: 0; list-style: none; }
.bd-cat { border-bottom: 1px solid #EFEAE0; }
.bd-cat-h { display: grid; grid-template-columns: 0.875rem 1fr auto auto; gap: 0.875rem; align-items: center; width: 100%; padding: 0.875rem 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.bd-sw { width: 0.875rem; height: 0.875rem; border-radius: 0.25rem; }
.bd-cn { font-size: 1rem; font-weight: 800; }
.bd-cn small { display: block; font-size: 0.7812rem; font-weight: 600; color: #8A8A84; }
.bd-cp { font-size: 0.875rem; font-weight: 700; color: #8A8A84; }
.bd-cat-h b { min-width: 4.75rem; text-align: right; font-size: 1rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.bd-cat-l { display: none; margin: 0 0 0.875rem 1.75rem; padding: 0; list-style: none; }
.bd-cat.open .bd-cat-l { display: grid; gap: 2px 1.5rem; }
.bd-cat-l li { display: flex; justify-content: space-between; gap: 0.625rem; padding: 0.25rem 0; font-size: 0.875rem; color: #55554F; }
.bd-cat-l b { font-weight: 700; color: var(--ink); white-space: nowrap; }
@media (min-width: 64em) {
  .bd { padding: 6.5rem 0 6.5rem; }
  .bd-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: end; }
  .bd-head h2 { font-size: 3.25rem; }
  .bd-head p { font-size: 1.125rem; }
  .bd-grid { grid-template-columns: 23.75rem minmax(0, 1fr); gap: 3.5rem; margin-top: 3rem; align-items: start; }
  .bd-sum { padding: 2rem; }
  .bd-big { font-size: 3.75rem; }
  .bd-cat.open .bd-cat-l { grid-template-columns: 1fr 1fr; }
}

/* ---------- 5. Почему удобно: «Как обычно и с меню» (выбран 27.11.2026) ----------
   Таблица сравнения, как у HelloFresh: колонка сервиса — тёмная, «приподнятая», заканчивается кнопкой.
   На телефоне каждая строка — карточка: забота, серым «как обычно», зелёная плашка «с меню». */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cmp-s { padding: 3rem 0 3.5rem; }
.cmp-s h2 { margin: 0; text-align: center; font-size: 2.125rem; font-weight: 800; line-height: 1.06; letter-spacing: -.033em; text-wrap: balance; }
.cmp { margin-top: 1.75rem; }
.cmp-r { display: grid; gap: 0.5rem; padding: 1rem 0; border-top: 1px solid #EFEAE0; }
.cmp-hd, .cmp-ft { display: none; }
.cmp-l { font-size: 1.125rem; font-weight: 800; letter-spacing: -.01em; }
.cmp-o, .cmp-b { display: flex; align-items: flex-start; gap: 0.625rem; font-size: 0.9688rem; line-height: 1.45; }
.cmp-o { color: #8A8A84; }
.cmp-b { padding: 0.75rem 0.875rem; border-radius: 0.875rem; background: var(--forest); color: #FFF; font-weight: 600; }
.cmp .i { flex: none; width: 1.25rem; height: 1.25rem; margin-top: 1px; }
.cmp .i.ok { color: var(--orange); }
.cmp .i.no { color: #B9B3A8; }
.cmp-btn { display: flex; align-items: center; justify-content: space-between; height: 3.625rem; padding: 0 0.4375rem 0 1.5rem; border-radius: 62.4375rem; background: var(--orange); color: #1A2E22; text-decoration: none; font-size: 1.0312rem; font-weight: 800; transition: background .2s; }
.cmp-btn:hover { background: #FF9C3F; }
.cmp-btn .ic { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--forest); color: #FFF; transition: transform .25s; }
.cmp-btn:hover .ic { transform: rotate(-45deg); }
.cmp-btn-m { margin-top: 1.25rem; }
@media (min-width: 64em) {
  .cmp-s { padding: 6.5rem 0; }
  .cmp-s h2 { font-size: 3.25rem; }
  .cmp { display: grid; grid-template-columns: 1fr 1.05fr 1.15fr; max-width: 65rem; margin: 3.5rem auto 0; }
  .cmp-r { display: contents; }
  .cmp-r > div { padding: 1.375rem 1.625rem; border-top: 1px solid #EFEAE0; }
  .cmp-l { display: flex; align-items: center; padding-left: 0 !important; font-size: 1.1875rem; }
  .cmp-o { align-items: center; font-size: 1.0312rem; }
  .cmp-b { align-items: center; border-radius: 0; border-top-color: rgba(255, 255, 255, .12) !important; font-size: 1.0312rem; }
  .cmp-hd, .cmp-ft { display: contents; }
  .cmp-hd > div, .cmp-ft > div { border-top: 0 !important; }
  .cmp-hd .cmp-o { align-items: flex-end; font-size: 0.875rem; font-weight: 700; color: #A3A39B; }
  .cmp-hd .cmp-b { flex-direction: column; align-items: flex-start; gap: 0.625rem; padding-top: 1.875rem !important; border-radius: 1.625rem 1.625rem 0 0; font-size: 1.1875rem; font-weight: 800; }
  .cmp-hd .cmp-b img { width: 2.5rem; height: 2.5rem; }
  .cmp-ft .cmp-b { padding: 0.5rem 1.625rem 1.75rem !important; border-radius: 0 0 1.625rem 1.625rem; }
  .cmp-ft .cmp-btn { width: 100%; }
  .cmp-btn-m { display: none; }
}

/* ---------- 6. Цены: «Три карточки» (выбран 27.11.2026) ----------
   Как тарифы Linear / Notion: бесплатный день, неделя (главная — тёмная, выше, с планом заготовок) и подписка.
   На телефоне неделя идёт первой. */
.pr { padding: 3rem 0 3.5rem; }
.pr-head h2 { margin: 0; font-size: 2.125rem; font-weight: 800; line-height: 1.05; letter-spacing: -.033em; }
.pr-head p { margin: 0.75rem 0 0; max-width: 32em; font-size: 1.0312rem; line-height: 1.55; color: #4A4A45; }
.pr-cards { display: grid; gap: 0.875rem; margin-top: 1.75rem; }
.pr-card { display: flex; flex-direction: column; padding: 1.5rem; border-radius: 1.625rem; background: #F7F3EB; }
.pr-n { margin: 0; font-size: 1rem; font-weight: 800; }
.pr-p { display: flex; align-items: baseline; margin: 0.625rem 0 0; font-size: 3rem; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.pr-p small { font-size: 1.125rem; font-weight: 700; letter-spacing: 0; }
.pr-s { margin: 0.375rem 0 1.125rem; font-size: 0.875rem; font-weight: 600; color: #77776F; }
.pr-ck { display: grid; gap: 0.625rem; margin: 0 0 1.375rem; padding: 0; list-style: none; }
.pr-ck li { display: flex; gap: 0.625rem; font-size: 0.9375rem; line-height: 1.45; }
.pr-ck .i { flex: none; width: 1.25rem; height: 1.25rem; margin-top: 1px; color: var(--orange); }
.pr-b { display: flex; align-items: center; justify-content: space-between; gap: 0.875rem; min-height: 3.5rem; line-height: 1.2; margin-top: auto; padding: 0.375rem 0.4375rem 0.375rem 1.375rem; border-radius: 62.4375rem; background: var(--orange); color: #1A2E22; text-decoration: none; font-size: 1rem; font-weight: 800; transition: background .2s; }
.pr-b:hover { background: #FF9C3F; }
.pr-b .ic { display: grid; place-items: center; width: 2.625rem; height: 2.625rem; border-radius: 50%; background: var(--forest); color: #FFF; transition: transform .25s; }
.pr-b:hover .ic { transform: rotate(-45deg); }
.pr-b.ghost { justify-content: center; padding: 0 1.375rem; background: none; box-shadow: inset 0 0 0 1.5px rgba(29, 29, 27, .2); color: var(--ink); }
.pr-b.ghost:hover { background: #FFF; }
.pr-card.main { order: -1; background: var(--forest); color: #FFF; }
.pr-card.main .pr-s { color: #FFB45C; }
.pr-card.main .pr-ck li { color: rgba(255, 255, 255, .9); }
.pr-card.main :focus-visible { outline-color: #FFF; }
.pr-tag { align-self: flex-start; margin-bottom: 0.75rem; padding: 0.25rem 0.75rem; border-radius: 62.4375rem; background: rgba(255, 255, 255, .12); font-size: 0.7812rem; font-weight: 800; color: #FFB45C; }
.pr-add { display: flex; justify-content: space-between; gap: 0.875rem; margin: 0 0 1.125rem; padding: 0.875rem 1rem; border-radius: 1rem; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); font-size: 0.8125rem; line-height: 1.45; color: rgba(255, 255, 255, .72); }
.pr-add b { color: #FFF; font-size: 0.9375rem; white-space: nowrap; }
.pr-add span b { display: block; margin-bottom: 2px; white-space: normal; }  /* название переносится, цена справа — нет */
.pr-gar { display: flex; align-items: center; justify-content: center; gap: 0.625rem; margin: 1.375rem 0 0; font-size: 0.9375rem; color: #55554F; }
.pr-gar .i { flex: none; width: 1.5rem; height: 1.5rem; color: var(--leaf); }
@media (min-width: 64em) {
  .pr { padding: 6.5rem 0; }
  .pr-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: end; }
  .pr-head h2 { font-size: 3.25rem; }
  .pr-head p { font-size: 1.125rem; }
  .pr-cards { grid-template-columns: 1fr 1.25fr 1fr; gap: 1.125rem; margin-top: 3.25rem; align-items: center; }
  .pr-card { min-height: 29.375rem; padding: 1.875rem; }
  .pr-b { white-space: nowrap; }
  .pr-card.main { order: 0; min-height: 37.5rem; padding: 2.125rem; }
  .pr-card.main .pr-p { font-size: 4rem; }
}
/* узкие компьютеры 1024–1199 px (64–75em): цены чуть плотнее, чтобы кнопки и цены не переносились */
@media (min-width: 64em) and (max-width: 74.99em) {
  .pr-cards { grid-template-columns: 1fr 1.3fr 1fr; gap: 0.875rem; }
  .pr-card { padding: 1.5rem; }
  .pr-card.main { padding: 1.625rem; }
  .pr-b { padding-left: 1.125rem; font-size: 0.9375rem; }
}

/* ---------- 7. Частые вопросы: «Две колонки» (выбран 27.11.2026) ----------
   Как у Linear и Stripe: слева заголовок и поддержка (на компьютере остаются на месте), справа — <details> на тонких линиях.
   Плавное раскрытие — ::details-content + interpolate-size (где не поддерживается, просто открывается без анимации). */
.fqs { display: grid; gap: 1.75rem; padding: 3rem 0 3.5rem; interpolate-size: allow-keywords; }
.fq-l h2 { margin: 0; font-size: 2.125rem; font-weight: 800; line-height: 1.05; letter-spacing: -.033em; }
.fq-l p { margin: 0.75rem 0 0; max-width: 30em; font-size: 1.0312rem; line-height: 1.55; color: #4A4A45; }
.fq-l .fq-help { display: none; }
.fq { border-top: 1px solid #E8E2D7; }
.fq:last-of-type { border-bottom: 1px solid #E8E2D7; }
.fq summary { display: flex; justify-content: space-between; align-items: center; gap: 1.125rem; padding: 1.25rem 0; list-style: none; cursor: pointer; font-size: 1.125rem; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; transition: color .2s; }
.fq summary::-webkit-details-marker { display: none; }
.fq summary:hover { color: var(--forest); }
.fq-pm { position: relative; flex: none; width: 1.375rem; height: 1.375rem; color: var(--peel); }
.fq-pm::before, .fq-pm::after { content: ""; position: absolute; left: 0.1875rem; right: 0.1875rem; top: 0.625rem; height: 2px; border-radius: 1px; background: currentColor; transition: transform .3s; }
.fq-pm::after { transform: rotate(90deg); }
.fq[open] .fq-pm::after { transform: rotate(0); }
.fq::details-content { height: 0; overflow: clip; transition: height .35s cubic-bezier(.3, .7, .2, 1), content-visibility .35s allow-discrete; }
.fq[open]::details-content { height: auto; }
.fq-a p { margin: 0; padding: 0 2.5rem 1.375rem 0; font-size: 1rem; line-height: 1.6; color: #4A4A45; }
.fq-help { display: flex; flex-wrap: wrap; align-items: center; gap: 0.625rem; margin-top: 1.625rem; font-size: 0.9375rem; font-weight: 700; }
.fq-help span { width: 100%; font-weight: 600; color: #6B6B66; }
.fq-help a { display: inline-flex; align-items: center; gap: 0.5rem; height: 2.875rem; padding: 0 1.125rem; border-radius: 62.4375rem; box-shadow: inset 0 0 0 1.5px rgba(29, 29, 27, .16); color: var(--ink); text-decoration: none; }
.fq-help a.tg { background: var(--forest); box-shadow: none; color: #FFF; }
@media (min-width: 64em) {
  .fqs { grid-template-columns: 25rem minmax(0, 1fr); gap: 6rem; align-items: start; padding: 6.5rem 0; }
  .fq-l { position: sticky; top: 7.5rem; }
  .fq-l h2 { font-size: 3.25rem; }
  .fq-l p { font-size: 1.125rem; }
  .fq-l .fq-help { display: flex; }
  .fq-help-m { display: none; }
  .fq summary { padding: 1.5rem 0; font-size: 1.25rem; }
  .fq-a p { font-size: 1.0625rem; }
}
@media (prefers-reduced-motion: reduce) { .fq::details-content { transition: none; } }

/* ---------- 8. Последний призыв: «Эхо первого экрана» (выбран 27.11.2026) ----------
   Тот же цвет блока, что у первого экрана (#D95F14): белый текст только крупный, мелкий — полупрозрачный белый.
   Срез цитруса в углу — одноцветный знак, наполовину за краем. */
.fin { padding: 0.5rem 0 3.5rem; }
.fin-box { position: relative; overflow: hidden; padding: 2.125rem 1.375rem 1.875rem; border-radius: 1.875rem; background: #D95F14; color: #FFF; }
.fin-box :focus-visible { outline-color: #FFF; }
.fin-mark { position: absolute; right: -5.625rem; bottom: -6.875rem; width: 18.75rem; height: 18.75rem; opacity: .16; transform: rotate(-18deg); pointer-events: none; }
.fin-h { position: relative; margin: 0; font-size: 2.25rem; font-weight: 300; line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; }
.fin-h b { font-weight: 800; }
.fin-p { position: relative; margin: 1rem 0 0; max-width: 30em; font-size: 1.0625rem; line-height: 1.5; color: rgba(255, 255, 255, .92); }
.fin-row { position: relative; display: grid; gap: 0.875rem; margin-top: 1.625rem; }
.fin-btn { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 3.75rem; padding: 0 0.5rem 0 1.625rem; border-radius: 62.4375rem; background: #FFF; color: var(--ink); text-decoration: none; font-size: 1.0625rem; font-weight: 800; white-space: nowrap; box-shadow: 0 0.875rem 1.75rem -1rem rgba(80, 30, 0, .6); transition: transform .2s; }
.fin-btn:hover { transform: translateY(-1px); }
.fin-btn .ic { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--forest); color: #FFF; transition: transform .25s; }
.fin-btn:hover .ic { transform: rotate(-45deg); }
.fin-alt { margin: 0; text-align: center; font-size: 0.9375rem; font-weight: 600; color: rgba(255, 255, 255, .88); }
.fin-alt a { color: #FFF; font-weight: 800; text-decoration-thickness: 1.5px; text-underline-offset: 0.1875rem; }
.fin-facts { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.125rem; margin: 1.375rem 0 0; padding: 0; list-style: none; font-size: 0.875rem; font-weight: 600; color: rgba(255, 255, 255, .92); }
.fin-facts li { display: inline-flex; align-items: center; gap: 0.4375rem; }
.fin-facts li::before { content: ""; width: 0.375rem; height: 0.375rem; border-radius: 50%; background: currentColor; opacity: .6; }
@media (min-width: 64em) {
  .fin { padding: 1.5rem 0 6.5rem; }
  .fin-box { padding: 4.5rem 4rem 3.75rem; border-radius: 2.5rem; }
  .fin-mark { right: -7.5rem; bottom: -10rem; width: 35rem; height: 35rem; }
  .fin-h { font-size: 4.5rem; max-width: 12em; }
  .fin-p { font-size: 1.1875rem; }
  .fin-row { display: flex; align-items: center; gap: 1.625rem; margin-top: 2.25rem; }
  .fin-btn { height: 4rem; padding: 0 0.5rem 0 1.875rem; font-size: 1.0938rem; }
  .fin-alt { text-align: left; }
  .fin-facts { justify-content: flex-start; margin-top: 1.875rem; }
}

@media (min-width: 64em) {
  .hero { padding: 1.625rem 0 2.5rem; }
  .hero-panel { gap: 2.125rem 3rem; padding: 2.5rem 2.75rem 2.75rem; border-radius: 2.5rem; }
  .hero-title { font-size: 3.625rem; }
  .hero-btn { height: 4rem; padding: 0 0.5rem 0 1.875rem; font-size: 1.0938rem; }
  .hero-steps { gap: 1.25rem; }
  .hero-steps .pic { border-radius: 1.625rem; }
  /* шапка 5,25rem, заголовок на 7rem; отступ секций 6,5rem, у «Как это работает» и примера — 7rem */
  section[id] { scroll-margin-top: 0.5rem; }
  .how[id], .ex[id] { scroll-margin-top: 0; }
}

/* ---------- Невысокие окна компьютера ----------
   Цены и бюджет смотрят целиком: три карточки сравнивают между собой, у каждой кнопка внизу; сумма, полоса и отделы — одна картинка.
   Окно браузера ниже экрана на 140–170 px (вкладки, адресная строка, панель задач): у ноутбука 1366×768 оно около 625 px,
   у 1536×864 — 730, у монитора 1920×1080 — 940. На таких окнах ужимаем отступы внутри блоков. Высоту секциям не задаём:
   это сломало бы увеличение страницы и крупный шрифт. Что должно помещаться, проверяет scripts/check_layout.py (FITS):
   окно от 760 px — по ссылке из меню видны заголовок и все карточки цен / весь график бюджета; ниже — сами карточки и график. */
@media (min-width: 64em) and (max-height: 61em) {
  .pr-cards { margin-top: 2rem; }
  .pr-card { min-height: 26rem; padding: 1.5rem; }
  .pr-card.main { min-height: 0; padding: 1.625rem; }
  .pr-card.main .pr-p { font-size: 3.5rem; }
  .pr-s { margin-bottom: 0.875rem; }
  .pr-ck { gap: 0.5rem; margin-bottom: 1.125rem; }
  .pr-add { margin-bottom: 1rem; padding: 0.75rem 0.875rem; }
  .pr-gar { margin-top: 1rem; }
  .bd-grid { margin-top: 2rem; }
  .bd-sum { padding: 1.75rem; }
  .bd-cat-h { padding: 0.6875rem 0; }
  .cmp { margin-top: 2.5rem; }
  .cmp-r > div { padding-top: 1.125rem; padding-bottom: 1.125rem; }
}
/* ноутбуки 1366×768 и 1536×864: метка «Начните с этого» встаёт справа от названия, списки плотнее */
@media (min-width: 64em) and (max-height: 48em) {
  .pr-cards { margin-top: 1.5rem; }
  .pr-card { min-height: 24rem; padding: 1.375rem; }
  .pr-card.main { position: relative; padding: 1.5rem; }
  .pr-card.main .pr-tag { position: absolute; top: 1.375rem; right: 1.5rem; margin: 0; }
  .pr-p { font-size: 2.75rem; }
  .pr-card.main .pr-p { font-size: 3.25rem; }
  .pr-ck { gap: 0.375rem; }
  .pr-ck li { line-height: 1.4; }
  .pr-add { margin-bottom: 0.875rem; }
  .pr-b { height: 3.25rem; min-height: 3.25rem; }
  .pr-b .ic { width: 2.375rem; height: 2.375rem; }
  section[id] { scroll-margin-top: 0; }  /* заголовок по ссылке из меню — на 1,25rem ниже шапки, а не на 1,75rem */
  .how[id], .ex[id] { scroll-margin-top: -0.5rem; }
  .bd-grid { margin-top: 1rem; }
  .bd-cats { margin-top: 0.75rem; }
  .bd-cat-h { padding: 0.5rem 0; }
  .bd-cat-l { margin-bottom: 0.625rem; }
  .bd-cat-l li { padding: 0.125rem 0; }
  .cmp { margin-top: 2rem; }
  .cmp-r > div { padding-top: 0.875rem; padding-bottom: 0.875rem; }
  .cmp-hd .cmp-b { padding-top: 1.375rem !important; }
  .cmp-ft .cmp-b { padding-bottom: 1.375rem !important; }
}

/* ---------- Узкие телефоны ----------
   До 384px: у карточек цен поля поменьше — кнопка «Начать с бесплатного дня» остаётся в одну строку на 360px (самый частый Android).
   До 340px (iPhone SE первого поколения, сложенный Galaxy Fold): у кнопок «Начать бесплатно» нет круга со стрелкой — текст по центру. */
@media (max-width: 23.99em) {
  .pr-card, .bd-sum { padding: 1.25rem; }
  /* отдел в бюджете: процент — мелко под суммой, иначе «Рыба и морепродукты» не помещается в строку */
  .bd-cat-h { grid-template-columns: 0.875rem minmax(0, 1fr) auto; column-gap: 0.75rem; row-gap: 0; }
  .bd-cat-h .bd-sw, .bd-cat-h .bd-cn { grid-row: span 2; }
  .bd-cat-h b { grid-column: 3; grid-row: 1; }
  .bd-cat-h .bd-cp { grid-column: 3; grid-row: 2; justify-self: end; font-size: 0.75rem; }
}
@media (max-width: 21.24em) {
  .hero-btn, .fin-btn { justify-content: center; padding: 0 1rem; }
  .hero-btn .ic, .fin-btn .ic { display: none; }
}
