/* ==========================================================================
   Страницы Pizza Blues Service – только своё у Pizza Blues. Значения сняты с нод Figma 101:2 (1920) 09.11.2026.
   Система (шапка, подвал, листы, сетка, форма, вопросы) – system.css; токены и шкала – figma-tokens.css. Подключать после них.
   ========================================================================== */

/* ---------- Логотип ---------- */
.db__logo .logo-pb { width: 82px; height: 42px; }
.ft__brand .logo-pb { width: 117px; height: 60px; }

/* ---------- Ссылка со стрелкой, кнопки ---------- */
.arrlnk { display: inline-flex; align-items: center; gap: 8px; color: var(--text-accent); font: var(--type-body-medium); }
.card__arr { display: block; flex: none; width: 16px; height: 16px; transition: transform .25s var(--ease); }
.arrlnk:hover .card__arr { transform: translateX(4px); }
.btn--amber { background: var(--surface-highlight); color: var(--text-primary); }
.btn--amber:hover { background: color-mix(in srgb, var(--surface-highlight) 88%, #000); }
.btn--on-accent { background: var(--surface-on-accent); color: var(--text-accent); }
.btn--on-accent:hover { background: var(--white-76); }

/* ---------- Hero ---------- */
.hero { padding-top: 64px; }
.stats { grid-column: 7 / span 6; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.stat { display: flex; flex-direction: column; gap: 6px; padding-top: 15px; border-top: var(--line-thin) solid var(--border-subtle); }
.stat__pre { font: var(--type-small); color: var(--text-secondary); }
.stat__v { font: var(--type-heading-3); letter-spacing: var(--tracking-heading); white-space: nowrap; }
.stat__l { font: var(--type-small); }
.stat__lnk { align-self: flex-start; font: var(--type-small-medium); }
.frame__btn img { display: block; width: 30px; height: 30px; margin-left: 2px; }
.hero__stage { align-items: stretch; row-gap: var(--gap); }
.hero__video { grid-column: 1 / span 8; aspect-ratio: 16 / 10; }
.rhythm { grid-column: 9 / span 4; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding: 40px; border-radius: var(--r); background: var(--surface-secondary); color: var(--text-primary); }
.rhythm__lead { font: var(--type-heading-3); letter-spacing: var(--tracking-heading); }
.rhythm__list { position: relative; display: flex; flex-direction: column; }
.rhythm__list li { position: relative; display: grid; grid-template-columns: 14px minmax(0, 1fr); column-gap: 20px; row-gap: 4px; align-content: start; }
.rhythm__list li:not(:last-child) { min-height: 92px; }
.rhythm__list li::before { content: ""; position: relative; z-index: 1; grid-row: 1; align-self: center; width: 14px; height: 14px; border: var(--line-strong) solid var(--border-accent); border-radius: 50%; background: var(--surface-secondary); transition: background-color .3s var(--ease); }
.rhythm__list li:last-child::before { background: var(--accent-solid); }
.rhythm__list li:not(:last-child)::after { content: ""; position: absolute; left: 6.25px; top: 15px; bottom: -15px; width: var(--line-strong); border-radius: 1px; background: linear-gradient(var(--border-accent), var(--border-accent)) 0 0 / 100% calc(var(--f, 1) * 100%) no-repeat, var(--border-subtle); }
.rhythm__list b { grid-column: 2; font: var(--type-heading-5); transition: opacity .35s var(--ease); }
.rhythm__list span { grid-column: 2; color: var(--text-secondary); font: var(--type-small); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.rhythm__list--run li:not(.is-on) b { opacity: .4; }
.rhythm__list--run li:not(.is-on) span { opacity: 0; transform: translateY(6px); }
.rhythm__list--run li:last-child:not(.is-on)::before { background: var(--surface-secondary); }
.rhythm__list--run li.is-now::before { background: var(--accent-solid); }

/* ---------- От поставки до питания ---------- */
#supply { padding-top: 0; padding-bottom: 72px; overflow-x: clip; --axis-fade: calc((100vw - min(100vw - 2 * var(--side), var(--wrap))) / 2); }
.sup { display: flex; flex-direction: column; gap: 56px; }
.sup__head { align-items: end; row-gap: 24px; }
.sup__head h2 { grid-column: 1 / span 8; }
.sup__intro { grid-column: 9 / span 4; }
.lane { position: relative; height: 108px; margin-bottom: -56px; }
/* линия: стиль Gradient / Line Fade, ось на y = 59 блока */
.lane::before { content: ""; position: absolute; left: 50%; top: 58px; width: 100vw; height: 2px; margin-left: -50vw; background: linear-gradient(90deg, transparent, var(--border-strong) var(--axis-fade), var(--border-strong) calc(100% - var(--axis-fade)), transparent) center / 100% var(--line-strong) no-repeat; transform-origin: left; transition: transform 1s var(--ease) .2s; }
.has-motion .lane:not(.in)::before { transform: scaleX(0); }
.lane__trays { position: absolute; z-index: 1; left: 0; right: 0; top: -40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); }
.tray { display: block; justify-self: center; width: min(288px, 100%); height: auto; overflow: visible; fill: var(--illustration-surface); stroke: var(--illustration-ink); stroke-width: var(--line-strong); stroke-linecap: round; stroke-linejoin: round; }
.tray__base { fill: none; }
.tray__steam { fill: none; stroke: var(--border-subtle); }
.tray__juice { fill: var(--logo-pizza-yellow); stroke: none; }
.tray__seal { fill: var(--accent-solid); stroke: none; }
.tray__tick { fill: none; stroke: var(--illustration-surface); stroke-width: var(--line-strong); }
.lane:not(.lane--run) .tray:not(:last-child) { visibility: hidden; }
.lane--run .tray { visibility: hidden; will-change: transform; }
.lane--run .tray.is-on { visibility: visible; }
.lane--run .tray.is-empty .tray__new { visibility: hidden; }
.lane--run .tray.is-new .tray__new { animation: pb-drop .5s cubic-bezier(.34, 1.56, .64, 1) both; }
.lane--run .tray.is-on .tray__steam { animation: pb-steam 2.4s ease-in-out infinite; }
@keyframes pb-drop { from { opacity: 0; transform: translateY(-20px); } }
@keyframes pb-steam { 0%, 100% { opacity: .45; transform: translateY(2px); } 50% { opacity: 1; transform: translateY(-3px); } }
.scols { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.scol { position: relative; display: flex; flex-direction: column; min-height: 216px; gap: 28px; padding: 23px 23px 27px; border: var(--line-thin) solid var(--border-subtle); border-radius: var(--r); background: var(--surface-card); }
.scol__ico { display: block; flex: none; width: 28px; height: 28px; }
.scol div { display: flex; flex-direction: column; gap: 8px; }
.scol h3 { font: var(--type-heading-5); }
.scol p { font: var(--type-small); }
.scol::before { content: ""; position: absolute; left: 50%; top: -50px; width: var(--line-strong); height: 49px; margin-left: -.75px; border-radius: 1px; background: var(--illustration-ink); transform-origin: top; transition: transform .4s var(--ease); }
.scol::after { content: ""; position: absolute; left: 50%; top: -55px; width: 10px; height: 10px; margin-left: -5px; border: var(--line-strong) solid var(--illustration-accent); border-radius: 50%; background: var(--illustration-surface); }
.lane--run ~ .scols .scol:not(.is-fed)::before { transform: scaleY(0); }
.has-motion .scol[data-reveal] { transition: opacity .6s var(--ease) calc(var(--i, 0) * 70ms), transform .6s var(--ease) calc(var(--i, 0) * 70ms), border-color .3s var(--ease); }
.scol.is-at, .lane:not(.lane--run) ~ .scols .scol:last-child { border-color: var(--border-strong); }

/* ---------- Для частных клиентов ---------- */
#delivery { padding: 0 0 112px; }
.dlv__card { --stub: 264px; --stub-r: 400px; --notch: 14px; position: relative; display: grid; grid-template-columns: var(--stub) minmax(0, 1fr) var(--stub-r); align-items: stretch; border-radius: var(--r); background: var(--surface-secondary);
  --hl: radial-gradient(circle at var(--stub) 0, transparent var(--notch), #000 calc(var(--notch) + .5px));
  --hr: radial-gradient(circle at calc(100% - var(--stub-r)) 0, transparent var(--notch), #000 calc(var(--notch) + .5px));
  --bl: radial-gradient(circle at var(--stub) 100%, transparent var(--notch), #000 calc(var(--notch) + .5px));
  --br: radial-gradient(circle at calc(100% - var(--stub-r)) 100%, transparent var(--notch), #000 calc(var(--notch) + .5px));
  -webkit-mask: var(--hl) left top / 50.5% 50.5% no-repeat, var(--hr) right top / 50.5% 50.5% no-repeat, var(--bl) left bottom / 50.5% 50.5% no-repeat, var(--br) right bottom / 50.5% 50.5% no-repeat;
  mask: var(--hl) left top / 50.5% 50.5% no-repeat, var(--hr) right top / 50.5% 50.5% no-repeat, var(--bl) left bottom / 50.5% 50.5% no-repeat, var(--br) right bottom / 50.5% 50.5% no-repeat; }
.dlv__brand { position: relative; display: flex; align-items: center; justify-content: center; padding: 40px 32px; transition: opacity .2s var(--ease); }
.dlv__brand::after, .dlv__act::before { content: ""; position: absolute; top: 24px; bottom: 24px; width: var(--line-strong); background: linear-gradient(var(--border-subtle) 5.5px, transparent 0) 0 0 / 100% 10px repeat-y; transform-origin: top; transition: transform .8s var(--ease) .3s; }
.dlv__brand::after { right: -.75px; }
.dlv__act::before { left: -.75px; transition-delay: .45s; }
.dlv__brand:hover { opacity: .72; }
.dlv__brand .logo-pb { width: 168px; height: 86px; }
.dlv__text { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 40px 40px 40px 48px; }
.dlv__text .t-15 { color: var(--text-secondary); }
.dlv__text .t-17 { margin-top: 4px; }
.dlv__act { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 20px; padding: 40px 32px; }
.dlv__apps { display: flex; justify-content: space-between; gap: 16px; }
.dlv__apps a { display: inline-flex; align-items: center; gap: 8px; font: var(--type-small-medium); transition: opacity .2s var(--ease); }
.dlv__apps a:hover { opacity: .72; }
.dlv__apps img { display: block; flex: none; width: 16px; height: 16px; }
.has-motion .dlv__card:not(.in) .dlv__brand::after, .has-motion .dlv__card:not(.in) .dlv__act::before { transform: scaleY(0); }

/* ---------- Форматы ---------- */
.dirs__head p { max-width: none; }
.card--svc { position: relative; gap: 0; min-height: 465px; padding: 8px; border-radius: var(--r); background: var(--surface-card); }
.card__body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 32px; }
.card--svc h3 { font: var(--type-heading-5); }
.card--svc p { font: var(--type-body); color: var(--text-secondary); }
.card__body > p { margin-bottom: 20px; }
.card__link { display: flex; align-items: center; gap: 8px; padding-top: 19px; border-top: var(--line-thin) solid var(--border-subtle); color: var(--text-accent); font: var(--type-body-medium); }
.card__link::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.card--svc:hover .card__arr { transform: translateX(4px); }
.card--svc:has(.card__link:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.card__link:focus-visible { outline: none; }
.sx { display: flex; align-items: center; justify-content: center; height: 208px; padding: 16px 28px; border-radius: var(--r-s); background: var(--surface-secondary); overflow: hidden; }
.sx__art { display: block; flex: none; width: 542px; max-width: 100%; height: auto; }

/* ---------- График питания ---------- */
#schedule { margin-top: var(--inset); }
.sch { position: relative; overflow: hidden; padding: 112px 0 108px; --accent: var(--white); --accent-text: var(--white); background: radial-gradient(900px 480px at 18% 0%, rgba(255, 255, 255, .12), transparent 70%), var(--surface-accent); color: var(--text-on-accent); }
.sch > .wrap { position: relative; z-index: 1; }
.sch__mark { position: absolute; right: -4%; bottom: -30%; z-index: 0; width: min(58%, 880px); height: auto; color: var(--logo-white); fill: var(--logo-white); opacity: .08; pointer-events: none; }
.sch .wrap { align-items: start; row-gap: 28px; }
.sch .sch__head { grid-column: 1 / span 4; }
.sch__body { grid-column: 6 / span 7; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }

/* ---------- Социальные проекты ---------- */
.soc { align-items: stretch; row-gap: 48px; }
.soc__text { grid-column: 1 / span 5; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.regions { align-self: stretch; display: flex; flex-direction: column; margin-top: 12px; border-bottom: var(--line-thin) solid var(--border-subtle); }
.regions li { display: flex; align-items: center; gap: 18px; padding: 16px 0; border-top: var(--line-thin) solid var(--border-subtle); font: var(--type-lead); }
.regions li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-solid); box-shadow: 0 0 0 5px var(--accent-halo); transition: transform .45s cubic-bezier(.34, 1.56, .64, 1) calc(.3s + var(--k, 0) * .15s); }
.has-motion .regions:not(.in) li::before { transform: scale(0); }
.regions li:last-child { padding-bottom: 15px; }
.soc__text .arrlnk { margin-top: auto; }
.moments { grid-column: 7 / span 6; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: var(--gap); min-height: 640px; }
.moment--tall { grid-row: span 2; }

/* ---------- Этапы ---------- */
.steps__in { display: flex; flex-direction: column; gap: 56px; }
.steps h2 { grid-column: 1 / -1; }
.prog { display: grid; grid-template-columns: minmax(0, 438fr) minmax(0, 438fr) minmax(0, 436fr); column-gap: var(--gap); view-timeline: --prog block; }
.pstep { display: flex; flex-direction: column; gap: 12px; }
.pstep > :not(.pstep__num) { padding-right: 24px; }
.pstep__num { display: flex; align-items: center; gap: 16px; padding-bottom: 16px; font: var(--type-heading-4); }
.pstep__num::before { content: ""; flex: none; width: 14px; height: 14px; border: var(--line-strong) solid var(--border-accent); border-radius: 50%; background: var(--accent-solid); }
.pstep__num::after { content: ""; flex: 1; height: var(--line-strong); margin-right: calc(-1 * var(--gap)); border-radius: 1px; background: linear-gradient(var(--border-accent), var(--border-accent)) 0 0 / 100% 100% no-repeat, var(--gray-900-10); }
.pstep:last-child .pstep__num::after { margin-right: 0; border-radius: 0; }   /* Step Item, Position=Last: линия до правого края контента, концы без скругления */
.pstep h3 { font: var(--type-heading-5); }
.pstep p { font: var(--type-small); }
@supports (animation-timeline: view()) {
  .has-motion .pstep__num::after { animation: pb-line linear both; animation-timeline: --prog; animation-range: cover calc(24% + var(--k, 0) * 11%) cover calc(35% + var(--k, 0) * 11%); }
  .has-motion .pstep__num::before { animation: pb-node linear both; animation-timeline: --prog; animation-range: cover calc(22% + var(--k, 0) * 11%) cover calc(24% + var(--k, 0) * 11%); }
}
@keyframes pb-line { from { background-size: 0% 100%, auto; } }
@keyframes pb-node { from { border-color: var(--gray-900-22); background-color: var(--surface-card); } }

/* ---------- Вопросы ---------- */
#faq { padding-bottom: 0; }
main .q__btn { font: var(--type-heading-5); }
main .q__ico { display: block; }
main .q__btn { padding: 25px 0 26px; }
main .q:last-child .q__btn { padding-bottom: 25px; }

/* ---------- Документы ---------- */
#docs { padding-bottom: 112px; }
.docs { align-items: center; row-gap: 48px; }
.docs__text { grid-column: 1 / span 4; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.papers { grid-column: 6 / span 7; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; padding: 48px 40px 60px; border-radius: var(--r); background: var(--surface-secondary); }
.paper { position: relative; display: flex; flex-direction: column; min-height: 391px; gap: 16px; padding: 24px 21px 19px; overflow: hidden; border: var(--line-thin) solid var(--border-subtle); border-top: 0; border-radius: var(--r-s); background: var(--surface-card); transform: rotate(-2deg); transition: transform .7s var(--ease); }
.paper::before { content: ""; position: absolute; left: -1px; right: -1px; top: 0; height: 4px; background: var(--surface-highlight); }
.paper--r { transform: rotate(2.5deg) translateY(14px); }
.paper--r::before { background: var(--illustration-accent); }
.papers:hover .paper { transform: none; }
.paper__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.paper__top .logo-pb { width: 47px; height: 24px; }
.paper__tag { display: inline-flex; align-items: center; height: 24px; padding: 0 7px; border: var(--line-thin) solid var(--border-subtle); border-radius: var(--r-xs); font: var(--type-caption-medium); }
.paper__title { padding-bottom: 13px; border-bottom: var(--line-thin) solid var(--border-subtle); font: var(--type-body-medium); }
.paper__rows { display: flex; flex-direction: column; }
.paper__row { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 12px; align-items: baseline; padding: 10px 0; background: linear-gradient(90deg, var(--border-subtle) 2px, transparent 0) 0 0 / 3px 1px repeat-x; font: var(--type-caption); }
.paper__row:first-child { padding-top: 0; background: none; }
.paper__row i { font-style: normal; color: var(--text-secondary); }
.paper__row b { font: var(--type-caption-medium); }
.paper__hide { display: inline-flex; align-items: center; gap: 8px; }
.paper__hide s { flex: none; width: 56px; height: 9px; border-radius: 2px; background: var(--surface-dark); }
.paper__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 11px; border-top: var(--line-thin) solid var(--border-subtle); }
.paper__sign { flex: none; width: 80px; height: 27px; fill: none; stroke: var(--icon-primary); stroke-width: var(--line-strong); stroke-linecap: round; stroke-linejoin: round; }
.paper__sign path { vector-effect: non-scaling-stroke; }
.paper__seal { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 2px 10px 2px 2px; border: var(--line-thin) solid var(--border-accent); border-radius: 999px; color: var(--text-accent); font: var(--type-caption-medium); transform: rotate(-6deg); transition: transform .35s cubic-bezier(.34, 1.56, .64, 1) 1s, opacity .25s var(--ease) 1s; }
.paper--r .paper__seal { transition-delay: 1.2s; }
.paper__seal img { display: block; flex: none; width: 22px; height: 22px; }   /* Stamp Badge, нода 239:526 */
.has-motion .papers:not(.in) .paper { transform: none; }
.has-motion .papers:not(.in) .paper__seal { opacity: 0; transform: scale(1.6) rotate(-6deg); }

/* ---------- Плашка заявки ---------- */
.plate h2 { grid-column: 1 / span 8; }
.plate__body { grid-column: 9 / span 4; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }

/* ---------- Подвал Pizza Blues: семь разделов сеткой в 3 колонки ---------- */
.ft__brand .ft__nav--grid { display: grid; grid-template-columns: repeat(3, max-content); }

@media (max-width: 1240px) {
  .stats { grid-column: 1 / -1; }
  .hero__video { grid-column: 1 / span 7; }
  .rhythm { grid-column: 8 / span 5; }
}
@media (max-width: 500px) {
  .btn { height: auto; min-height: 52px; padding: 12px 24px; white-space: normal; text-align: center; }
}
@media (max-width: 768px) {
  .hero__copy, .stats, .hero__video, .rhythm, .sup__head > *, .sch__head, .sch__body, .soc__text, .moments, .steps h2, .docs__text, .papers, .faq__list, .rail { grid-column: 1 / -1; }
  .hero__head { row-gap: 32px; }
  .stats { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .card--svc { min-height: 0; }
  .scols, .prog { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .lane { margin-bottom: -24px; }
  .scol::before, .scol::after { display: none; }
  .lane__trays { grid-template-columns: minmax(0, 1fr); }
  .tray:not(:last-child) { display: none; }
  .pstep > :not(.pstep__num) { padding-right: 0; }
  .pstep__num::after, .pstep:last-child .pstep__num::after { margin-right: 0; }
  .dlv__card { grid-template-columns: minmax(0, 1fr); padding: 0 24px 28px; -webkit-mask: none; mask: none; }
  .dlv__brand { justify-content: flex-start; padding: 28px 0 24px; border-bottom: var(--line-strong) dashed var(--border-subtle); }
  .dlv__brand::after, .dlv__act::before { display: none; }
  .dlv__text { padding: 24px 0; }
  .dlv__act { padding: 24px 0 0; border-top: var(--line-strong) dashed var(--border-subtle); }
  .moments { min-height: 0; grid-template-rows: none; }
  .moment { aspect-ratio: 4 / 3; }
  .moment--tall { grid-row: auto; }
  .paper { min-height: 0; }
  .papers { grid-template-columns: minmax(0, 1fr); padding: 32px 24px; gap: 24px; }
  .plate h2, .plate__body { grid-column: 1; }
  .ft__brand .ft__nav--grid { grid-template-columns: repeat(2, max-content); }
}

/* ---------- Полоса направления (17.11.2026, слово Артёма: на 1280 уходила за правый край на ~30 px) ----------
   Восемь разделов Pizza с зазором 32 – 1108 px, в ряду на 1280 – 1044: ниже 1400 зазор 16 (меню – 996: помещается и при обычной полосе прокрутки окна, ряд до 1211); ниже 1280 меню листается внутри полосы, как у TES. */
@media (max-width: 1399px) { .db__nav { gap: 16px; } }
@media (max-width: 1279px) { .db__nav { overflow-x: auto; scrollbar-width: none; } }
