/* NK-SKLAD v1.0 — «Обеды на склад». Adaptation of the NK-STROYKA DESIGN v2.1.2 design build (05_source/styles.css, SHA in HANDOFF).
   Tokens, typography, components and breakpoints are the donor's; warehouse changes are marked «NK-SKLAD» and collected at the end.
   Local design build; not a production stack. */

@font-face { font-family: "Museo Sans Cyrl"; src: url("assets/fonts/MuseoSansCyrl-500.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Museo Sans Cyrl"; src: url("assets/fonts/MuseoSansCyrl-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Museo Sans Cyrl"; src: url("assets/fonts/MuseoSansCyrl-900.woff") format("woff"); font-weight: 900; font-style: normal; font-display: swap; }

:root {
  --bg: #FBF3E8;          /* cream page (sampled from selected concept) */
  --bg-deep: #F4E6D4;     /* warmer cream for alternating surfaces */
  --paper: #FFFFFF;
  --ink: #1F1715;         /* near-black headings */
  --ink-2: #3F3431;       /* body */
  --muted: #6A5C56;       /* help text (AA on cream) */
  --line: #E4D3BF;
  --brand: #BE152C;       /* brand burgundy (CTA, 17:00) */
  --brand-hover: #A31024;
  --brand-press: #860B1C;
  --brand-ink: #FFFFFF;
  --band: #40171A;        /* deep burgundy-brown trust band (sampled) */
  --band-ink: #FBEFE6;
  --band-muted: #E3C9BF;
  --error: #B3121F;
  --error-bg: #FDECEC;
  --ok-bg: #EEF6EC;
  --ok-ink: #24502A;
  --warn-bg: #FFF4DE;
  --focus: #1F1715;
  --radius-media: 24px;
  --radius-card: 20px;
  --radius-btn: 12px;
  --wrap: 1248px;
  --pad: 24px;
  --header-h: 80px;
  --font: "Museo Sans Cyrl", "Museo Sans", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink-2); font-family: var(--font); font-weight: 500; font-size: 18px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); margin: 0; font-weight: 900; }
p { margin: 0; }
.nowrap { white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.ico { width: 28px; height: 28px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico--sm { width: 20px; height: 20px; }

/* focus — visible on every interactive element */
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.trust :focus-visible, .tasting__card :focus-visible { outline-color: #FFE2B8; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 10px; text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; border-radius: var(--radius-btn); border: 2px solid transparent; font: 700 17px/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .1s ease, box-shadow .15s ease; -webkit-tap-highlight-color: transparent; }
.btn--lg { min-height: 60px; padding: 16px 32px; font-size: 19px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 6px 18px -8px rgba(190, 21, 44, .65); }
.btn--primary:hover { background: var(--brand-hover); }
.btn--primary:active, .btn--primary.is-pressed { background: var(--brand-press); transform: translateY(1px); box-shadow: none; }
.btn--outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn--outline:hover { background: #FBE7EA; }
.btn--outline:active, .btn--outline.is-pressed { background: #F6D3D8; transform: translateY(1px); }
.btn--white { background: #fff; color: var(--brand); }
.btn--white:hover { background: #FFF0F2; }
.btn--white:active, .btn--white.is-pressed { background: #FBDDE2; transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { background: #D9CBC6; color: #5E504B; box-shadow: none; cursor: not-allowed; transform: none; }

.iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); cursor: pointer; flex: none; }
.iconbtn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.iconbtn--brand { background: var(--brand); color: #fff; }
.iconbtn--brand svg, .iconbtn--ghost svg { fill: currentColor; stroke: none; }
.iconbtn--ghost { border: 2px solid var(--brand); color: var(--brand); background: #fff; }
.linkbtn { background: none; border: 0; padding: 10px 0; min-height: 44px; font: 700 17px/1.3 var(--font); color: var(--brand); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.linkbtn:hover { color: var(--brand-hover); }

/* ---------- chips / eyebrows ---------- */
.eyebrow { font-size: 17px; font-weight: 700; color: var(--brand); letter-spacing: .01em; margin-bottom: 14px; }
.eyebrow--plain { color: var(--ink); font-size: 16px; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .08em; }
.chip { display: inline-block; font-size: 14px; line-height: 1.35; font-weight: 700; border-radius: 999px; padding: 8px 14px; }
.chip--photo { position: absolute; left: 20px; bottom: 20px; margin: 0; max-width: calc(100% - 40px); background: rgba(31, 23, 21, .72); color: #fff; backdrop-filter: blur(4px); }
.chip--tiny { position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,.9); color: var(--ink); padding: 6px 12px; }

/* ---------- header ---------- */
.demo-banner { background: #2B2B2B; color: #fff; text-align: center; font-size: 15px; font-weight: 700; padding: 10px 16px; }
.header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .2s ease; }
.header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(31, 23, 21, .35); }
.header__in { max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); height: var(--header-h); display: flex; align-items: center; gap: 32px; }
.header__logo { display: flex; align-items: center; min-height: 48px; flex: none; }
.header__logo img { width: 214px; height: auto; margin: -22px 0 -22px -2px; }
.header__nav { display: flex; gap: 28px; margin-left: auto; }
.header__nav a, .header__phone { text-decoration: none; font-weight: 700; font-size: 17px; color: var(--ink); padding: 10px 2px; }
.header__nav a:hover, .header__phone:hover { color: var(--brand); }
.header__phone { font-size: 18px; white-space: nowrap; }
.header__cta { min-height: 48px; padding: 10px 22px; }
.header__call, .header__menu { display: none; }
.header__menu.is-open svg path { d: path("M5 5L19 19M19 5L5 19"); }
.menu { border-top: 1px solid var(--line); background: #fff; padding: 8px var(--pad) 20px; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { text-decoration: none; font-weight: 700; font-size: 20px; color: var(--ink); padding: 14px 0; border-bottom: 1px solid var(--line); }
.menu__phone { display: block; font-weight: 900; font-size: 22px; color: var(--ink); text-decoration: none; padding: 18px 0 14px; }

/* ---------- N01 hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "text media"; min-height: 780px; }
.hero__text { grid-area: text; padding: 64px 56px 56px max(var(--pad), calc((100vw - var(--wrap)) / 2)); display: flex; flex-direction: column; justify-content: center; }
.hero__media { grid-area: media; position: relative; overflow: hidden; border-bottom-left-radius: 32px; background: #8d8a86; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 64% 50%; }
h1 { font-size: clamp(40px, 4.1vw, 58px); line-height: 1.04; letter-spacing: -.012em; }
.h1-line { white-space: nowrap; }
.lead { font-size: 21px; line-height: 1.45; color: var(--ink-2); margin-top: 18px; max-width: 34ch; }
.sched { margin-top: 36px; padding-top: 28px; border-top: 2px solid var(--line); }
.sched__title { font-weight: 900; font-size: 42px; line-height: 1.08; color: var(--ink); letter-spacing: -.01em; }
.sched__title em { font-style: normal; color: var(--brand); }
.sched__steps { list-style: none; margin: 22px 0 0; padding: 0; display: flex; align-items: flex-start; gap: 14px; }
.sched__steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 18px; line-height: 1.38; color: var(--ink); }
.sched__steps b { font-weight: 900; color: var(--ink); display: block; }
.sched__steps .ico { color: var(--brand); margin-top: 1px; }
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 32px; }
.callalt { font-size: 17px; line-height: 1.35; color: var(--ink-2); max-width: 12em; }
.callalt a { display: block; font-weight: 900; font-size: 19px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.callalt a:hover { color: var(--brand); }

/* ---------- N02 formats ---------- */
.formats { padding: 96px 0 104px; }
.formats__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title title" "sub pick"; align-items: end; gap: 18px 48px; margin-bottom: 32px; }
.formats__title { grid-area: title; }
.formats__head .sublead { grid-area: sub; margin-top: 0; }
.formats__pick { grid-area: pick; }
h2 { font-size: 44px; line-height: 1.08; letter-spacing: -.01em; }
.sublead { font-size: 19px; margin-top: 14px; max-width: 46ch; }
.formats__pick { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.pill { min-height: 48px; padding: 10px 20px; border-radius: 999px; border: 2px solid var(--brand); background: #fff; color: var(--brand); font: 700 17px/1.2 var(--font); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background-color .15s ease, color .15s ease; }
.pill:hover { background: #FBE7EA; }
.pill:active { background: #F6D3D8; }
.pill[aria-pressed="true"] { background: var(--brand); color: #fff; }
.pill[aria-pressed="true"]::before { content: ""; width: 14px; height: 8px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(-45deg) translateY(-2px); }
.pill[disabled] { opacity: .55; cursor: not-allowed; }
.pick-hint, .pick-done { font-size: 15px; color: var(--muted); text-align: right; }
.pick-done { color: var(--ink); font-weight: 700; }
.pick-done a { color: var(--brand); }
.panorama { position: relative; margin: 0; border-radius: var(--radius-media); overflow: hidden; aspect-ratio: 3 / 1; background: #d9c3a5; }
.panorama img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }

/* ---------- N03 trust ---------- */
.trust { background: var(--band); color: var(--band-ink); padding: 72px 0 80px; }
.trust__eyebrow { color: var(--band-muted); font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.trust__h { color: #fff; font-size: 44px; line-height: 1.08; letter-spacing: -.01em; margin-bottom: 40px; max-width: 22ch; }
.trust__ico { display: block; width: 40px; height: 40px; margin-bottom: 14px; fill: none; stroke: #F4AAB4; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trust__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.trust__list li { border-top: 3px solid var(--brand); padding-top: 22px; }
.trust__list h3 { color: #fff; font-size: 36px; line-height: 1.1; font-weight: 900; }
.trust__list p { color: var(--band-muted); font-size: 18px; margin-top: 12px; }

/* ---------- N04 terms ---------- */
.terms { padding: 104px 0; }
.terms__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 56px; align-items: start; }
.rows { margin: 32px 0 0; }
.rows > div { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.terms__intro { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; font-size: 21px; line-height: 1.4; font-weight: 700; color: var(--ink); max-width: 32ch; }
.terms__intro .ico { color: var(--brand); width: 28px; height: 28px; margin-top: 1px; }
.rows > div:last-child { border-bottom: 1px solid var(--line); }
.rows dt { font-weight: 900; color: var(--ink); font-size: 19px; }
.rows dd { margin: 0; font-size: 18px; }
.equip { display: grid; grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); background: #fff; border: 2px solid var(--brand); border-radius: var(--radius-card); overflow: hidden; margin-top: 30px; }
.equip__media { position: relative; min-height: 100%; }
.equip__media img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 50%; }
.equip__body { padding: 30px 30px 32px; display: flex; flex-direction: column; gap: 12px; }
.equip__body h3 { font-size: 28px; line-height: 1.12; }
.equip__body p { font-size: 18px; }
.equip__terms { font-weight: 700; color: var(--ink); }
.equip__body .btn { align-self: flex-start; margin-top: 8px; white-space: nowrap; }

/* ---------- N05 tasting (split band) + N06 request ---------- */
.tasting { display: grid; grid-template-columns: minmax(0, 54fr) minmax(0, 46fr); min-height: 560px; background: var(--brand); }
.tasting__img { position: relative; display: block; margin: 0; min-height: 600px; overflow: hidden; background: #6b625b; }
.tasting__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 46% 52%; }
.tasting__card { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; background: var(--brand); color: #fff; padding: 56px max(var(--pad), calc((100vw - var(--wrap)) / 2)) 56px 56px; }
.tasting__eyebrow { font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #FFD3D9; margin-bottom: 12px; }
.tasting__card h2 { color: #fff; font-size: 42px; line-height: 1.1; }
.tasting__text { margin-top: 18px; font-size: 21px; line-height: 1.4; font-weight: 700; color: #fff; max-width: 26ch; }
.tasting__note { margin: 10px 0 28px; font-size: 17px; color: #FFE7EA; max-width: 32ch; }
.request { padding: 96px 0 104px; background: var(--bg-deep); }
.request__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 600px); gap: 64px; align-items: start; }
.request__head { position: sticky; top: calc(var(--header-h) + 40px); }
.request h2 { font-size: 44px; }
.request__intro { font-size: 19px; margin-top: 16px; max-width: 30ch; }
.request__note { font-size: 16px; color: var(--muted); margin-top: 22px; }
.steps { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 20px; }
.steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; }
.steps__n { width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 900; font-size: 20px; display: grid; place-items: center; }
.steps h3 { font-size: 21px; line-height: 1.2; font-weight: 900; padding-top: 2px; }
.steps p { font-size: 17px; margin-top: 4px; color: var(--ink-2); }
.callbox { margin-top: 32px; padding-top: 24px; border-top: 2px solid var(--line); font-size: 18px; color: var(--ink-2); }
.callbox a { display: block; font-weight: 900; font-size: 28px; color: var(--ink); text-decoration: none; margin-top: 4px; white-space: nowrap; }
.callbox a:hover { color: var(--brand); }

/* ---------- F01 form ---------- */
.form { margin-top: 0; background: #fff; border-radius: var(--radius-card); padding: 26px 28px 28px; box-shadow: 0 24px 60px -32px rgba(64, 23, 26, .45); display: flex; flex-direction: column; gap: 18px; }
.form__ctx { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.form__intro { font-size: 17px; line-height: 1.45; color: var(--ink); font-weight: 700; }
.ctx-chip, .topic { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--ink); background: var(--bg); border-radius: 999px; padding: 8px 14px; }
.ctx-chip::before, .topic::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.form__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > label:first-child { font-weight: 700; font-size: 16px; color: var(--ink); }
.req { font-size: 14px; font-weight: 700; color: var(--brand); margin-left: 6px; }
input[type="tel"], input[type="text"], textarea, select { width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid #CDBBA8; border-radius: 12px; background: #fff; color: var(--ink); font: 500 17px/1.35 var(--font); transition: border-color .15s ease, box-shadow .15s ease; }
textarea { min-height: 96px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #8E7F78; opacity: 1; }
input:hover, textarea:hover, select:hover { border-color: #A8927E; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(31, 23, 21, .18); }
input[readonly], textarea[readonly], select:disabled, input:disabled { background: #F6F1EC; color: #5E504B; }
.select { position: relative; }
.select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 10px; height: 10px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.help { font-size: 14px; color: var(--muted); line-height: 1.4; }
.err { font-size: 15px; font-weight: 700; color: var(--error); display: flex; gap: 6px; align-items: flex-start; }
.err::before { content: "!"; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--error); color: #fff; font-size: 13px; line-height: 18px; text-align: center; margin-top: 1px; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--error); background: #FFF9F9; box-shadow: 0 0 0 3px rgba(179, 18, 31, .12); }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 16px; color: var(--ink); min-height: 44px; padding: 10px 0; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 24px; height: 24px; margin: 0; border: 2px solid #A8927E; border-radius: 6px; background: #fff; display: grid; place-content: center; cursor: pointer; }
.check input::before { content: ""; width: 12px; height: 7px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked { background: var(--brand); border-color: var(--brand); }
.check input:checked::before { opacity: 1; }
.check input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.check--inline { padding: 4px 0; min-height: 44px; align-items: center; }
.field--consent.is-invalid .check input { border-color: var(--error); box-shadow: 0 0 0 3px rgba(179, 18, 31, .15); }
.details-toggle { align-self: flex-start; padding: 6px 0; }
.details-toggle::after { content: " +"; text-decoration: none; }
.details-toggle[aria-expanded="true"]::after { content: " −"; }
.details { display: flex; flex-direction: column; gap: 18px; }
.req-note { font-size: 15px; color: var(--ink-2); background: var(--bg); padding: 10px 14px; border-radius: 10px; }
.legal { font-size: 14px; color: var(--muted); line-height: 1.45; }
.legal a { color: var(--ink-2); }
.form__submit { margin-top: 4px; }
.form__submit.is-busy::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.status { border-radius: 14px; padding: 18px 18px 18px 20px; border-left: 5px solid var(--ink); background: var(--bg); display: flex; flex-direction: column; gap: 6px; }
.status__title { font-weight: 900; font-size: 19px; color: var(--ink); }
.status__body { font-size: 16px; color: var(--ink-2); }
.status__phone a { font-weight: 900; font-size: 20px; color: var(--ink); text-decoration: none; }
.status__retry { align-self: flex-start; margin-top: 8px; }
.status[data-kind="error"] { background: var(--error-bg); border-left-color: var(--error); }
.status[data-kind="warn"] { background: var(--warn-bg); border-left-color: #B7791F; }
.status[data-kind="ok"] { background: var(--ok-bg); border-left-color: #2F7D3A; }
.status[data-kind="ok"] .status__title { color: var(--ok-ink); }
.status[data-kind="busy"] { background: var(--bg); }
.form[data-state="received"] > :not(.status):not(.form__ctx), .form[data-state="received_tasting"] > :not(.status):not(.form__ctx) { display: none; }
.form[data-state="received_tasting"] #topic-reset { display: none; }
.is-demo .status::before { content: "Демонстрация состояния · без отправки"; align-self: flex-start; font-size: 14px; font-weight: 700; color: #fff; background: #2B2B2B; border-radius: 6px; padding: 3px 8px; margin-bottom: 4px; }

/* ---------- footer ---------- */
.footer { background: #fff; border-top: 1px solid var(--line); padding: 40px 0 44px; }
.footer__in { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "logo nav contact" "logo copy contact"; gap: 8px 48px; align-items: center; }
.footer__logo { grid-area: logo; display: flex; align-items: center; min-height: 48px; }
.footer__logo img { width: 224px; height: auto; margin: -23px 0; }
.footer__nav { grid-area: nav; display: flex; flex-wrap: wrap; gap: 4px 28px; }
.footer__nav a { text-decoration: none; font-weight: 700; font-size: 17px; color: var(--ink); padding: 10px 0; }
.footer__nav a:hover { color: var(--brand); }
.footer__contact { grid-area: contact; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.footer__contact a { font-size: 15px; color: var(--ink-2); padding: 6px 0; }
.footer__mail { font-size: 17px !important; font-weight: 700; color: var(--ink) !important; text-decoration: none; }
.footer__phone { font-weight: 900; font-size: 22px !important; color: var(--ink) !important; text-decoration: none; }
.footer__copy { grid-area: copy; font-size: 14px; color: var(--muted); }

/* ---------- mobile sticky CTA ---------- */
.sticky { display: none; }

/* ---------- demo panel (only with ?demo=1; never public) ---------- */
.demo { position: fixed; right: 12px; bottom: 12px; z-index: 60; background: #2B2B2B; color: #fff; border-radius: 12px; padding: 10px; display: flex; flex-wrap: wrap; gap: 6px; max-width: 420px; font-size: 13px; }
.demo button { font: 700 13px/1 var(--font); border: 0; border-radius: 8px; padding: 8px 10px; background: #444; color: #fff; cursor: pointer; }
.demo[hidden] { display: none; }

/* =====================  responsive  ===================== */
@media (max-width: 1279px) {
  .request__in { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 48px; }
  .request h2 { font-size: 36px; }
  .rows > div { grid-template-columns: 160px minmax(0, 1fr); }
  .tasting__card h2 { font-size: 42px; }
  .sched__title { font-size: 38px; }
  .hero__text { padding-right: 44px; }
}
@media (max-width: 1179px) {
  .header__phone { display: none; }
  .header__in { gap: 24px; }
}
@media (max-width: 1023px) {
  :root { --header-h: 68px; }
  .header__nav { display: none; }
  .header__cta { margin-left: auto; min-height: 44px; padding: 8px 18px; font-size: 16px; }
  .header__call { margin-left: 0 !important; }
  .header__call, .header__menu { display: inline-flex; }
  .header__call { margin-left: auto; }
  .header__logo img { width: 176px; margin: -18px 0; }
  .hero { grid-template-columns: 1fr; grid-template-areas: "media" "text"; min-height: 0; }
  .hero__media { aspect-ratio: 16 / 9; border-radius: 0; width: 100%; }
  .hero__media img { object-position: 50% 50%; }
  .hero__text { padding: 28px var(--pad) 44px; max-width: 720px; }
  .sched { margin-top: 24px; padding-top: 20px; }
  .hero__actions { margin-top: 22px; }
  h1 { font-size: clamp(34px, 6vw, 52px); }
  .formats { padding: 80px 0; }
  .formats__head { grid-template-columns: 1fr; grid-template-areas: "title" "sub" "pick"; align-items: start; }
  .formats__pick { align-items: flex-start; }
  .pills { justify-content: flex-start; }
  .pick-hint, .pick-done { text-align: left; }
  .panorama { aspect-ratio: 21 / 10; }
  .terms { padding: 80px 0; }
  .terms__grid { grid-template-columns: 1fr; gap: 24px; }
  .equip { margin-top: 0; }
  .tasting { display: block; min-height: 0; background: var(--bg-deep); }
  .tasting__img { min-height: 0; aspect-ratio: 3 / 2; }
  .tasting__card { position: relative; margin: -72px var(--pad) 0; max-width: 640px; border-radius: var(--radius-card); padding: 32px 28px; box-shadow: 0 24px 48px -24px rgba(31, 23, 21, .6); }
  .tasting__card h2 { font-size: 38px; }
  .trust__h { font-size: 36px; margin-bottom: 32px; }
  .request { padding: 64px 0 72px; }
  .request__in { grid-template-columns: 1fr; gap: 28px; max-width: 688px; }
  .request__head { position: static; }
  .callbox { margin-top: 20px; padding-top: 16px; }
}
@media (max-width: 1023px) {
  .footer__in { grid-template-columns: 1fr auto; grid-template-areas: "logo contact" "nav nav" "copy copy"; gap: 12px 32px; }
}
@media (max-width: 767px) {
  .trust__list { grid-template-columns: 1fr; gap: 28px; }
  .trust__list h3 { font-size: 30px; }
  .footer__in { grid-template-columns: 1fr; grid-template-areas: "logo" "nav" "contact" "copy"; justify-items: start; gap: 12px; }
  .footer__contact { align-items: flex-start; }
  .footer__nav { display: grid; grid-template-columns: auto auto; gap: 0 40px; }
}
@media (max-width: 639px) {
  :root { --pad: 20px; --header-h: 64px; }
  body { font-size: 17px; }
  .header__logo img { width: 158px; margin: -16px 0; }
  .header__cta { display: none; }
  .header__call { margin-left: auto !important; }
  .hero__media { aspect-ratio: 39 / 25; }
  .hero__text { padding: 16px var(--pad) 36px; }
  .hero__media .chip--photo { left: auto; right: 10px; top: 10px; bottom: auto; max-width: 70%; text-align: right; }
  .chip--photo { left: 10px; bottom: 10px; font-size: 14px; padding: 6px 12px; max-width: calc(100% - 20px); }
  .hero__text { padding: 22px var(--pad) 36px; }
  .eyebrow { font-size: 15px; margin-bottom: 8px; }
  h1 { font-size: clamp(28px, 8.4vw, 34px); line-height: 1.06; }
  .lead { font-size: 18px; margin-top: 8px; }
  .sched { margin-top: 12px; padding-top: 12px; }
  .sched__title { font-size: clamp(25px, 7vw, 29px); }
  .sched__steps { margin-top: 10px; gap: 6px; flex-direction: column; }
  .sched__steps li { font-size: 16px; gap: 10px; align-items: center; }
  .sched__steps b { display: inline; }
  .sched__steps .ico { width: 24px; height: 24px; margin-top: 0; }
  .hero__actions { margin-top: 16px; gap: 10px; }
  .hero__actions .btn--lg { min-height: 56px; }
  .hero__actions .btn { width: 100%; }
  .callalt { max-width: none; }
  .callalt a { display: inline; margin-left: 4px; }
  h2 { font-size: 30px; }
  .sublead { font-size: 17px; }
  .formats { padding: 64px 0; }
  .formats__head { margin-bottom: 24px; }
  .pill { font-size: 16px; padding: 10px 16px; }
  .panorama { aspect-ratio: 1170 / 1060; border-radius: 20px; }
  .panorama img { object-position: 50% 50%; }
  .trust { padding: 56px 0; }
  .terms { padding: 64px 0; }
  .rows { margin-top: 20px; }
  .rows > div { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
  .rows dd { font-size: 17px; }
  .equip { grid-template-columns: 1fr; }
  .equip__media { aspect-ratio: 4 / 3; }
  .equip__body { padding: 22px 20px 24px; }
  .equip__body h3 { font-size: 24px; }
  .equip__body p { font-size: 17px; }
  .equip__body .btn { align-self: stretch; }
  .tasting__img { aspect-ratio: 4 / 3; }
  .tasting__img img { object-position: 50% 50%; }
  .tasting__img .chip--photo { top: 10px; bottom: auto; left: 10px; }
  .tasting__card { margin: -96px 12px 0; padding: 24px 20px 24px; }
  .tasting__card h2 { font-size: clamp(25px, 7.4vw, 30px); }
  .tasting__text { font-size: 18px; }
  .tasting__note { font-size: 16px; margin-bottom: 20px; }
  .tasting__card .btn { width: 100%; }
  .request { padding: 56px 0 64px; }
  .request h2 { font-size: 30px; }
  .request__intro { font-size: 17px; }
  .form { padding: 20px 16px 22px; margin-top: 20px; gap: 16px; }
  .form__row { grid-template-columns: 1fr; gap: 16px; }
  .callbox a { font-size: 24px; }
  .footer { padding: 32px 0 calc(40px + 76px); }
  /* sticky bottom CTA: shown by JS between hero CTA and form; hidden while a field is focused (keyboard) */
  .sticky { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -10px 24px -18px rgba(31, 23, 21, .5); transform: translateY(110%); transition: transform .2s ease; }
  .sticky.is-visible { transform: none; }
  .sticky__cta { flex: 1; min-height: 52px; }
}

@media (max-width: 359px) { .h1-line { white-space: normal; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ===================== v2.1 refinements ===================== */
.since { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; margin-top: 20px; padding: 8px 18px 8px 10px; border-radius: 999px; background: #fff; border: 1.5px solid #ECC6CC; color: var(--brand); font-weight: 900; font-size: 18px; line-height: 1.2; box-shadow: 0 8px 18px -14px rgba(190, 21, 44, .6); }
.since__ico { width: 30px; height: 30px; flex: none; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero .sched { margin-top: 28px; padding-top: 24px; }
.trust__list h3 { font-size: 30px; }
/* schedule steps: stacked list on every width (donor v2.1 rule, kept for NK-SKLAD) */
.hero .sched__steps { flex-direction: column; gap: 10px; margin-top: 18px; }
.hero .sched__steps li { align-items: center; flex: none !important; }
.hero .sched__steps b { display: inline; }
@media (max-width: 1023px) {
  .tasting__card { margin-top: -40px; }
  .tasting__img .chip--photo { top: 12px; bottom: auto; left: 12px; }
}
@media (max-width: 1279px) {
  .trust__h { font-size: 40px; }
  .rows > div { grid-template-columns: 180px minmax(0, 1fr); }
  .tasting__card h2 { font-size: 36px; }
}
@media (max-width: 639px) {
  .hero__media { aspect-ratio: 37 / 20; }
  .hero__text { padding-top: 14px; }
  .hero .eyebrow { margin-bottom: 6px; }
  .hero .lead { margin-top: 6px; line-height: 1.42; }
  .since { margin-top: 10px; font-size: 16px; padding: 5px 14px 5px 8px; gap: 8px; }
  .since__ico { width: 26px; height: 26px; }
  .hero .sched { margin-top: 12px; padding-top: 10px; }
  .hero .sched__steps { margin-top: 8px; gap: 4px; }
  .hero .hero__actions { margin-top: 14px; }
  .trust__h { font-size: 30px; margin-bottom: 28px; }
  .trust__ico { width: 34px; height: 34px; margin-bottom: 10px; }
  .trust__list h3 { font-size: 26px; }
  .terms__intro { font-size: 18px; }
  .terms__intro .ico { width: 24px; height: 24px; }
  .steps { margin-top: 22px; gap: 16px; }
  .steps h3 { font-size: 19px; }
  .steps p { font-size: 17px; }
  .form__intro { font-size: 17px; }
  .tasting__card h2 .nowrap { white-space: normal; }
  .rows > div { grid-template-columns: 1fr; gap: 4px; }
  .tasting__card { margin-top: -28px; }
}

/* ===================== v2.1.2 visual context patch (hero + formats photos only) ===================== */
/* Hero: tall master (3:4) in the desktop panel (measured 0.575–0.874); wide master (16:9) on ≤1023px. */
.hero__media img { position: absolute; inset: 0; object-position: 83% 100%; } /* image never sets the panel height; food (x 0.22–0.93, y 0.63–0.95 of the master) always inside */
/* Formats: the wide master is shown in its own ratio on ≥640px, so the hard hat and the lunch are never cropped. */
.panorama { aspect-ratio: 6336 / 2688; }
.panorama img { object-position: 50% 50%; }
@media (max-width: 1023px) {
  .hero__media { aspect-ratio: 16 / 9; }
  .hero__media img { object-position: 50% 50%; }
  .panorama { aspect-ratio: 6336 / 2688; }
}
@media (max-width: 639px) {
  .hero__media { aspect-ratio: 16 / 9; }
  .hero__media .chip--photo { left: 10px; right: auto; top: auto; bottom: 10px; max-width: calc(100% - 20px); text-align: left; }
  /* on phones the captions keep only «Иллюстрация» and sit on calm corners so no food is covered */
  .hero__media .chip__more, .panorama .chip__more { display: none; }
  .panorama .chip--photo { top: 10px; bottom: auto; }
  .panorama { aspect-ratio: 1 / 1; }
  .panorama img { object-position: 50% 50%; }
}

/* ===================== NK-SKLAD v1.0 — warehouse adaptation ===================== */
/* N01: the donor's order block («до 17:00», night/morning, chilled delivery) is replaced by the schedule block «Питание под график вашего склада» with two steps.
   Same position, type scale and rhythm; the freed line of the chilled-delivery note is not kept as empty space. */
.sched__steps li > span { min-width: 0; }
/* hero photo position is set per warehouse master (W01 v2): bottom-anchored so the lunch (master x 0.05–0.83, y 0.56–0.95) stays whole
   at 0.655 (1024) … 0.923 (1440); x 38% keeps the cutlery bag inside the 1024 crop. See ASSET_MAP.json */
.hero__media img { object-position: 38% 100%; }

/* N04: the equipment photo sits in a <picture>; it fills the card cell and never sets its height (tall crop ≥640 where the cell is 0.47–0.79, 4:3 crop on phones) */
.equip__media { overflow: hidden; background: #E9E1D6; }
.equip__media picture { display: contents; }
.equip__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
/* N04 at 1024–1279: the equipment card gets more width so «Обсудить оборудование» stays inside the card (donor button overflowed at 1024) */
@media (min-width: 1024px) and (max-width: 1279px) {
  .terms__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px; }
  .rows > div { grid-template-columns: 150px minmax(0, 1fr); }
  .equip__body { padding: 26px 22px 28px; }
  .equip__body .btn { padding-inline: 18px; }
}
/* phone links: ≥44 px tap area without changing the look (donor links were 23–42 px high) */
.callalt a { padding-block: 11px; margin-block: -11px; }
.callbox a { padding-block: 4px; margin-top: 0; }
@media (max-width: 1023px) {
  .hero__media img { object-position: 50% 50%; }
  .equip__media { min-height: 0; }
}
@media (max-width: 639px) {
  /* mobile body copy stays at 17 px (donor used 16 px for these two lines) */
  .sched__steps li { font-size: 17px; line-height: 1.35; align-items: flex-start; }
  .sched__steps .ico { margin-top: 0; }
  .equip__media { aspect-ratio: 4 / 3; }
}

/* ===================== NK-SKLAD v1.1 — owner change request ===================== */
/* Hero badge: the real brand mark (paths from logo-original.svg) instead of the donor's hand-drawn pot icon. */
.since__logo { height: 28px; width: auto; flex: none; }
@media (max-width: 639px) { .since__logo { height: 24px; } }
/* Visible «Иллюстрация…» captions were removed from all photos (owner request); the .chip rules above are no longer used by the page. */
/* N02 wink: eye patch cut from the aligned AI wink frame (qa/WINK_PATCHES.json); the container has the photo's own ratio,
   so percentages map 1:1 to image pixels. Visible ~0.3 s once every 5 s. */
.panorama .wink { position: absolute; display: block; left: 57.3438%; top: 15.1934%; width: 8.3203%; height: 16.2983%; opacity: 0; pointer-events: none; animation: nk-wink 5s linear infinite; }
.panorama .wink img { width: 100%; height: 100%; object-fit: fill; }
@media (max-width: 639px) { .panorama .wink { left: 57.75%; top: 18.25%; width: 17.75%; height: 14.75%; } }
@keyframes nk-wink { 0%, 88% { opacity: 0; } 89.5%, 95% { opacity: 1; } 96.5%, 100% { opacity: 0; } }

/* The same branded delivery bag as on the construction demo, standing on the free right side of the table. */
.panorama .panorama__bag { position: absolute; inset: auto; right: -2%; bottom: 0; width: 30%; height: auto; object-fit: contain; z-index: 2; pointer-events: none; }
/* The phone uses a separate square photo with no free right side; preserve its face and meal. */
@media (max-width: 639px) { .panorama .panorama__bag { display: none; } }

/* ===================== NK-SKLAD v1.2 — consent link + production video in N03 ===================== */
/* N03: one heading, then video (16:9) left and the three arguments right (≥1024); video above the arguments below 1024. */
.trust__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.trust__h { margin-bottom: 36px; }
.video__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-card); overflow: hidden; background: #2A0E11; box-shadow: 0 24px 48px -28px rgba(0, 0, 0, .7); }
.video__frame picture, .video__cover { position: absolute; inset: 0; width: 100%; height: 100%; }
.video__cover { object-fit: cover; object-position: 50% 50%; }
.video__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 6, 8, .35) 0%, rgba(20, 6, 8, 0) 28%, rgba(20, 6, 8, 0) 58%, rgba(20, 6, 8, .55) 100%); pointer-events: none; }
.video__title { position: absolute; z-index: 2; left: 20px; top: 18px; margin: 0; padding: 7px 14px; border-radius: 999px; background: rgba(31, 23, 21, .72); color: #fff; font-size: 15px; font-weight: 700; line-height: 1.3; backdrop-filter: blur(4px); pointer-events: none; }
.video__dur { font-weight: 500; color: #F3DDD7; }
.video__play { position: absolute; z-index: 3; left: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 24px 10px 10px; border: 0; border-radius: 999px; background: #fff; color: var(--brand); font: 700 18px/1.2 var(--font); cursor: pointer; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .6); transition: background-color .15s ease, transform .1s ease; }
/* the whole preview is clickable; the focus ring stays on the visible button */
.video__play::before { content: ""; position: absolute; inset: -2000px; }
.video__play:hover { background: #FFF0F2; }
.video__play:active { transform: translateY(1px); }
.video__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--brand); flex: none; }
.video__icon svg { width: 20px; height: 20px; fill: #fff; margin-left: 2px; }
.video__frame.is-playing > :not(iframe), .video__frame.is-playing::after { display: none; }
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__alt { margin-top: 12px; font-size: 16px; }
.video__alt a { display: inline-block; padding: 12px 0; color: var(--band-ink); font-weight: 700; text-underline-offset: 4px; }
.video__alt a::after { content: " ↗"; text-decoration: none; }
.video__alt a:hover { color: #fff; }
/* arguments next to the video: icon left, text right; same type sizes as before (H3 28/26, text 18/17) */
@media (min-width: 1024px) {
  .trust__grid .trust__list { grid-template-columns: 1fr; gap: 22px; }
  .trust__grid .trust__list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 18px; padding-top: 18px; }
  .trust__grid .trust__ico { grid-row: 1 / span 2; margin: 2px 0 0; }
  .trust__grid .trust__list h3 { font-size: 28px; }
  .trust__grid .trust__list p { margin-top: 6px; }
}
@media (max-width: 1023px) {
  .trust__grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 639px) {
  .trust__h { margin-bottom: 24px; }
  .trust__grid { gap: 28px; }
  .video__frame { border-radius: 16px; }
  .video__title { left: 12px; top: 12px; font-size: 14px; padding: 6px 12px; }
  .video__play { left: 12px; bottom: 12px; min-height: 48px; font-size: 17px; padding: 6px 18px 6px 6px; gap: 10px; }
  .video__icon { width: 34px; height: 34px; }
}
