/* style.css — гостиница «Актобе»: страница из предметов гостиничного мира (направление page-is-the-object, 03-design.md).
   Главный предмет — перекидное табло вывески (.board/.cell), второй — брелок ключа. Углы прямые, скругление только у брелока.
   Телефон — отдельная композиция в конце файла. */
body { font-family: var(--font-text); font-weight: var(--w-text); }
h1, h2, h3, h4 { font-family: var(--font-text); }
b, strong { font-weight: var(--w-strong); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.field-1 :focus-visible, .field-2 :focus-visible { outline-color: #fff; }
.section { padding-block: calc(var(--section) * 0.6); }
.h2 { font-family: var(--font-text); font-weight: var(--w-head); font-size: var(--step-head); line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; position: relative; z-index: 1; }
.btn { border-radius: 0; min-height: 52px; padding: 0 1.5rem; font-weight: var(--w-strong); }
.btn--white { background: #fff; color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .btn--white:hover { background: var(--star); color: var(--ink); } }
.link-plain { text-underline-offset: 0.2em; font-weight: var(--w-strong); }
.nums { font-variant-numeric: tabular-nums; }
.wm { font-family: var(--font-display); font-weight: var(--w-flap); font-size: var(--step-lead); letter-spacing: 0.02em; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- табло: ячейки с перегибом (щель цвета подложки, не линия) ---------- */
.board { display: grid; gap: var(--cell-gap); }
.cell { position: relative; aspect-ratio: 3 / 4; display: flex; align-items: center; justify-content: center; background: var(--flap); color: var(--flap-ink); font-family: var(--font-display); font-weight: var(--w-flap); font-size: var(--step-head); line-height: 1; overflow: hidden; }
.cell::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; background: var(--gap, var(--flap-gap)); }
.board--hero { grid-template-columns: repeat(9, minmax(0, 1fr)); margin-top: clamp(1.5rem, 6vh, 4rem); }
.board--price { grid-template-columns: repeat(6, minmax(0, 1fr)); max-width: 24rem; margin-top: 1.25rem; }
.board--year { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.board--mini { grid-template-columns: repeat(6, 22px); gap: 3px; }
.board--mini .cell { font-size: var(--step-small); }
.board--mini .cell::after { height: 2px; margin-top: -1px; }

/* ---------- 1. первый экран: белая карточка с табло + фасад ---------- */
.mtop { display: none; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; min-height: 100svh; padding: 12px; }
.hcard { --gap: #fff; display: flex; flex-direction: column; padding: 28px clamp(20px, 3vw, 44px); background: #fff; }
.hcard__top { display: flex; align-items: center; gap: 1.25rem; }
.hcard__nav { display: flex; gap: clamp(0.9rem, 1.6vw, 1.5rem); margin-left: auto; font-weight: var(--w-strong); }
.hcard__nav a { text-decoration: none; padding-block: 0.6rem; }
.under { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-family: var(--font-display); font-weight: var(--w-flap); font-size: var(--step-lead); letter-spacing: 0.04em; }
.stars { display: inline-flex; gap: 0.3rem; }
.stars svg, .stamp__stars svg { display: block; width: 0.9em; height: 0.9em; }
.hero__title { margin-top: auto; padding-top: 2.5rem; font-weight: var(--w-head); font-size: var(--step-head); line-height: 1.02; letter-spacing: -0.02em; }
.hero__lead { margin: 14px 0 24px; font-size: var(--step-lead); line-height: 1.35; max-width: 34ch; }
.hero__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.hero__ph { margin: 0; overflow: hidden; background: var(--surface); min-height: 30rem; }
.hero__ph img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 50%; }

/* ---------- 2. подберите номер: пластина с брелоком слева, шаги справа ---------- */
.pick { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; padding: calc(var(--section) * 0.6) var(--margin); }
.pick__plate { --muted: #4A5670; grid-column: 1 / 7; grid-row: 1; padding: clamp(1.25rem, 3vw, 2.5rem); background: var(--surface); color: var(--ink); }
.fob { --gap: #fff; position: relative; padding: 3.25rem clamp(1.25rem, 2.5vw, 2rem) 2rem; background: #fff; color: var(--ink); border-radius: 24px; }
.fob__hole { position: absolute; top: 1.1rem; left: 50%; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: var(--surface); }
.fob__name { font-weight: var(--w-head); font-size: var(--step-head); line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; }
.fob__area { margin-top: 0.4rem; font-size: var(--step-lead); }
.fob__per { margin-top: 0.5rem; font-family: var(--font-display); font-weight: 500; font-size: var(--step-lead); letter-spacing: 0.02em; }
.fob__calc { margin-top: 0.6rem; font-size: var(--step-lead); font-variant-numeric: tabular-nums; }
.fob__inc { margin-top: 0.9rem; }
.fob__who { margin-top: 0.5rem; font-weight: var(--w-strong); }
.fob__hint { margin-top: 0.5rem; padding: 0.6rem 0.8rem; background: var(--surface); }
.fob__hint:empty { display: none; }
.fob__note { margin-top: 0.9rem; font-size: var(--step-small); color: var(--muted); }
.alts { display: grid; gap: 0.5rem; margin-top: 1rem; }
.alt { display: flex; justify-content: space-between; align-items: center; gap: 1rem; width: 100%; min-height: 48px; padding: 0.6rem 1rem; background: #fff; color: var(--ink); text-align: left; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.alt:active { transform: scale(0.98); }
.alt b { font-family: var(--font-display); font-weight: 500; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .alt:hover { background: var(--bg); } }
.pick__steps { grid-column: 8 / 13; grid-row: 1; }
.pick__lead { margin-top: 1rem; font-size: var(--step-lead); line-height: 1.35; max-width: 36ch; }
.steps { display: grid; gap: 1.75rem; margin-top: 2rem; }
.step { min-width: 0; margin: 0; padding: 0; border: 0; }
.step__q { margin: 0 0 0.6rem; padding: 0; font-weight: var(--w-strong); font-size: var(--step-lead); line-height: 1.25; }
.step--row { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; }
.cnt__cap { margin-top: 0.35rem; font-size: var(--step-small); color: var(--field-1-muted); }
.field-1 .chip span { background: #2A4FA3; color: #fff; font-weight: var(--w-strong); }
.field-1 .chip input:checked + span { background: #fff; color: var(--accent); }
.field-1 .chip input:checked + span::before { content: ""; width: 0.5em; height: 0.5em; margin-right: 0.45em; border-radius: 50%; background: var(--star); }
@media (hover: hover) and (pointer: fine) { .field-1 .chip:hover input:not(:checked) + span { background: #3559B0; } }
.stepper { display: inline-flex; align-items: center; gap: 0.5rem; }
.stepper__b { width: 56px; height: 56px; display: grid; place-items: center; background: #2A4FA3; color: #fff; font-size: var(--step-lead); transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.stepper__b:active { transform: scale(0.95); }
.stepper__b:disabled { opacity: 0.4; cursor: default; }
.stepper__n { min-width: 3ch; text-align: center; font-family: var(--font-display); font-weight: var(--w-flap); font-size: var(--step-lead); }
.datebox { display: block; margin-top: 0.75rem; }
.datebox[hidden] { display: none; }
.datebox__in { max-width: 16rem; background: #fff; color: var(--ink); border-bottom-color: var(--ink); }
.step__hint { margin-top: 0.6rem; font-size: var(--step-small); color: var(--field-1-muted); }
.pick__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.pdock { display: none; }
.pick__nojs { margin-top: 1.5rem; }

/* ---------- 3. номера: фото с бирками ---------- */
.rooms { padding-inline: var(--margin); }
.rooms__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; margin-bottom: 2.5rem; }
.rooms__head .h2 { grid-column: 1 / 8; }
.rooms__lead { grid-column: 9 / 13; padding-bottom: 0.3rem; }
.rgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.room { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; min-width: 0; }
.rtag__l span:first-child { min-width: 0; }
.room__ph { align-self: start; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
.room__ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .room:hover .room__ph img { transform: scale(1.04); } }
.rtag { display: grid; gap: 0.45rem; align-content: space-between; min-height: 92px; padding: 0.75rem 1rem; background: #fff; color: var(--ink); }
.room:nth-child(odd) .rtag { background: var(--accent); color: #fff; }
.room:nth-child(odd) .rtag :focus-visible { outline-color: #fff; }
.rtag__l { display: flex; justify-content: space-between; gap: 0.75rem; font-family: var(--font-display); font-weight: 500; font-size: var(--step-small); letter-spacing: 0.02em; }
.rtag__l span:last-child { white-space: nowrap; }
.rtag__n { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.rtag__n a { display: inline-flex; align-items: center; min-height: 44px; font-weight: var(--w-strong); text-underline-offset: 0.2em; }
.rooms__note { margin-top: 1.25rem; font-size: var(--step-small); color: var(--muted); }

/* ---------- 4. сутки в гостинице: листок меню на кирпиче ---------- */
.day { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; padding: calc(var(--section) * 0.6) var(--margin); }
.day__side { display: grid; gap: var(--gutter); }
.day__side--l { grid-column: 1 / 4; } .day__side--r { grid-column: 10 / 13; }
.day__side img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: rgba(255, 255, 255, 0.08); }
.day__side .day__tall { aspect-ratio: 3 / 4; }
.sheet { grid-column: 4 / 10; position: relative; margin-block: 3rem; padding: 4rem clamp(1.5rem, 4vw, 3.5rem); background: #fff; color: var(--ink); text-align: center; }
.scal { position: absolute; left: 0; display: block; width: 100%; height: auto; aspect-ratio: 24 / 1; overflow: visible; }
.scal--top { bottom: calc(100% - 1px); }
.scal--bot { top: calc(100% - 1px); transform: scaleY(-1); }
.sheet__lead { margin: 1rem auto 0; max-width: 38ch; }
.sheet__groups { display: grid; gap: 2.5rem; margin-top: 2.75rem; }
.sg__t { margin-bottom: 0.6rem; font-weight: var(--w-strong); font-size: var(--step-lead); }
.sg__r { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.25rem; text-align: left; max-width: none; }
.sg__r b { font-family: var(--font-display); font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- 5. залы: фото и настоящая таблица ---------- */
.halls { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; padding-inline: var(--margin); }
.halls__ph { grid-column: 1 / 7; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.halls__ph img { width: 100%; height: 100%; object-fit: cover; }
.halls__text { grid-column: 8 / 13; display: grid; gap: 1.25rem; justify-items: start; }
.halls__lead { font-size: var(--step-lead); line-height: 1.35; }
.htable { width: 100%; border-collapse: collapse; }
.htable th, .htable td { padding: 0.7rem 0.5rem 0.7rem 0; text-align: left; vertical-align: bottom; border-bottom: 1px solid #C5CCD9; }
.htable thead th { font-weight: var(--w-strong); }
.htable thead th span { display: block; font-weight: var(--w-text); font-size: var(--step-small); color: var(--muted); }
.htable tbody th { font-weight: var(--w-text); }
.htable td { font-family: var(--font-display); font-weight: 500; }
.halls__rules { font-weight: var(--w-strong); }
.halls__tel { font-size: var(--step-small); color: var(--muted); }
.halls__tel a { display: inline-block; min-height: 2.75rem; line-height: 2.75rem; color: var(--ink); white-space: nowrap; text-underline-offset: 0.2em; }

/* ---------- 6. история: письмо и табло годов ---------- */
.hist { --gap: var(--field-3); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; padding-inline: var(--margin); }
.hist__board { grid-column: 1 / 4; position: sticky; top: 1.5rem; }
.hist__cap { margin-top: 0.75rem; font-size: var(--step-small); color: var(--muted); }
.letter { grid-column: 5 / 11; display: grid; gap: 1rem; }
.letter__lead { font-size: var(--step-lead); line-height: 1.35; max-width: 40ch; }
.letter__first { margin-top: 1rem; font-size: var(--step-lead); font-weight: var(--w-strong); line-height: 1.3; max-width: 36ch; }
.letter p { max-width: 60ch; }
.letter__sign { font-size: var(--step-small); color: var(--muted); }

/* ---------- 7. расположение: ведомость чисел ---------- */
.loc { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; padding-inline: var(--margin); }
.loc__text { grid-column: 1 / 6; display: grid; gap: 1.1rem; justify-items: start; }
.loc__text p { font-size: var(--step-lead); line-height: 1.35; max-width: 34ch; }
.loc__text .loc__addr { font-size: var(--step-body); font-weight: var(--w-strong); }
.ledger { grid-column: 7 / 13; display: grid; gap: 0.7rem; margin: 0; }
.ledger div { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: baseline; gap: 1.5rem; }
.ledger dt { font-family: var(--font-display); font-weight: var(--w-flap); font-size: var(--step-head); line-height: 1.1; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger dd { margin: 0; font-size: var(--step-lead); line-height: 1.3; }
.loc__ph { grid-column: 1 / -1; margin: 3.5rem calc(var(--margin) * -1) 0; aspect-ratio: 16 / 9; max-height: 82svh; overflow: hidden; background: var(--surface); }
.loc__ph img { width: 100%; height: 112%; margin-top: -6%; object-fit: cover; }

/* ---------- 8. для всех гостей: картотека с табами ---------- */
.access { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding-inline: var(--margin); }
.access__title, .access__lead, .cards { grid-column: 3 / 11; }
.access__lead { margin: 1rem 0 2.5rem; font-size: var(--step-lead); line-height: 1.35; max-width: 44ch; }
.cards { display: grid; }
.card { --tx: calc(1.5rem + var(--i, 0) * (100% - 200px - 3rem) / 3); position: relative; margin-top: -40px; padding: calc(40px + 1.4rem) 1.75rem 3rem; background: #fff; clip-path: polygon(0 40px, var(--tx) 40px, var(--tx) 0, calc(var(--tx) + 200px) 0, calc(var(--tx) + 200px) 40px, 100% 40px, 100% 100%, 0 100%); }
.card:first-child { margin-top: 0; }
.card--1 { --i: 0; } .card--2 { --i: 1; background: var(--surface); } .card--3 { --i: 2; } .card--4 { --i: 3; background: var(--surface); }
.card summary { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; min-height: 2.75rem; list-style: none; cursor: pointer; }
.card summary::-webkit-details-marker { display: none; }
.card summary::after { content: "+"; flex: none; font-size: var(--step-lead); font-weight: var(--w-strong); transition: transform var(--t-ui) var(--ease-out); }
.card[open] summary::after { transform: rotate(45deg); }
.card__tab { position: absolute; top: 0; left: var(--tx); width: 200px; height: 40px; display: flex; align-items: center; padding-left: 1rem; font-family: var(--font-display); font-weight: 500; letter-spacing: 0.02em; }
.card__q { font-size: var(--step-lead); font-weight: var(--w-strong); line-height: 1.25; }
.card__in { margin-top: 0.75rem; }
.card__in p { max-width: 52ch; }
.card__ph { width: min(100%, 26rem); margin-top: 1rem; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- 9. контакты: купон ---------- */
.contacts { overflow-x: clip; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding-inline: var(--margin); }
.coupon { grid-column: 2 / 12; position: relative; display: grid; grid-template-columns: 46% 6px minmax(0, 1fr); background: #fff; color: var(--ink); }
.coupon__left { display: grid; gap: 1.25rem; align-content: center; padding: clamp(2rem, 4vw, 3.5rem); }
.coupon__left p { font-size: var(--step-lead); line-height: 1.35; max-width: 30ch; }
.coupon__mid { position: relative; }
.coupon__notch { position: absolute; left: 50%; width: 56px; height: 56px; margin-left: -28px; border-radius: 50%; background: var(--bg); }
.coupon__notch--a { top: -28px; } .coupon__notch--b { bottom: -28px; }
.coupon__perf { position: absolute; top: 44px; bottom: 44px; left: 0; width: 6px; height: calc(100% - 88px); }
.perf-h { display: none; }
.coupon__right { display: grid; gap: 1rem; align-content: center; padding: clamp(2rem, 4vw, 3.5rem); }
.coupon__big { font-size: var(--step-lead); font-weight: var(--w-strong); line-height: 1.3; }
.coupon__big a { text-decoration: none; white-space: nowrap; }
.coupon__links { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }

/* ---------- 10. подвал: оборот открытки ---------- */
.foot-h { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding: calc(var(--section) * 0.75) var(--margin) 2rem; }
.postcard { --gap: #fff; grid-column: 2 / 12; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 3rem; min-height: 420px; padding: clamp(2rem, 4vw, 3.5rem); background: #fff; color: var(--ink); }
.postcard__msg { display: grid; gap: 1.25rem; align-content: start; }
.postcard__msg p:not(.postcard__end) { max-width: 34ch; font-size: var(--step-lead); line-height: 1.35; }
.postcard__end { font-weight: var(--w-head); font-size: var(--step-head); line-height: 1.02; letter-spacing: -0.02em; }
.postcard__addr { position: relative; display: grid; gap: 1rem; align-content: start; padding-top: 5.5rem; }
.postcard__addr a { text-decoration: none; }
.stamp { position: absolute; top: 0; right: 0; display: grid; gap: 0.4rem; justify-items: end; padding: 0.6rem; background: var(--surface); --gap: var(--surface); }
.stamp__stars { display: inline-flex; gap: 0.25rem; font-size: var(--step-small); }
.foot-h__credit { grid-column: 1 / -1; margin-top: 2rem; text-align: center; font-size: var(--step-small); color: var(--muted); max-width: none; }

/* ---------- планшет: первый экран в столбик ---------- */
@media (max-width: 68.75em) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero__ph { order: -1; height: 44svh; min-height: 18rem; }
  .pick__plate, .pick__steps { grid-column: 1 / -1; }
  .pick__steps { grid-row: 1; }
  .pick__plate { grid-row: 2; margin-top: 2rem; }
  .rgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .day__side--l { grid-column: 1 / 7; grid-row: 2; } .day__side--r { grid-column: 7 / 13; grid-row: 2; }
  .day__side { grid-template-columns: 1fr 1fr; }
  .day__side .day__tall { aspect-ratio: 4 / 3; }
  .sheet { grid-column: 2 / 12; grid-row: 1; }
  .halls__ph, .halls__text { grid-column: 1 / -1; }
  .halls__text { margin-top: 2rem; }
  .hist__board { grid-column: 1 / 5; } .letter { grid-column: 6 / 13; }
  .loc__text, .ledger { grid-column: 1 / -1; } .ledger { margin-top: 5rem; }
  .access__title, .access__lead, .cards { grid-column: 1 / -1; }
  .coupon, .postcard { grid-column: 1 / -1; }
}
@media (max-width: 60em) {
  .coupon { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 6px auto; }
  .coupon__notch { top: 50%; left: auto; margin: -28px 0 0; }
  .coupon__notch--a { left: -28px; } .coupon__notch--b { right: -28px; bottom: auto; }
  .coupon__perf { top: 0; bottom: auto; left: 40px; right: 40px; width: calc(100% - 80px); height: 6px; }
  .perf-v { display: none; } .perf-h { display: inline; }
}

/* ---------- телефон: отдельная композиция ---------- */
@media (max-width: 47.99em) {
  .section { padding-block: calc(var(--section) * 0.8); }
  .mtop { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; height: 52px; padding-inline: 10px; background: var(--bg); }
  .mtop__btn { min-height: 44px; padding: 0 1rem; }
  .hero { padding: 0 10px 10px; gap: 0; min-height: 0; }
  .hcard__top { display: none; }
  .hero__ph { height: 36svh; min-height: 13rem; }
  .hcard { position: relative; margin-top: -24px; margin-inline: 10px; padding: 18px 16px 20px; }
  .board--hero { margin-top: 0; gap: 4px; }
  .hero__title { padding-top: 1.25rem; }
  .hero__lead { margin: 10px 0 16px; }
  .hero__acts .btn { width: 100%; min-height: 56px; }
  /* подбор: шаги, затем брелок; сводка липнет внизу шагов */
  .pick__plate { margin-inline: calc(var(--margin) * -1); padding: 1rem var(--margin) 1.5rem; }
  .fob { padding-inline: 1.1rem; }
  .board--price { gap: 4px; }
  .pick__acts .btn { width: 100%; min-height: 56px; }
  .pdock { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.5rem 0.5rem 0.5rem 1rem; background: #fff; color: var(--ink); font-weight: var(--w-strong); font-variant-numeric: tabular-nums; }
  .pdock__go { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; background: var(--accent); color: #fff; text-decoration: none; }
  /* номера: две колонки, бирка в две строки */
  .rooms__head .h2, .rooms__lead { grid-column: 1 / -1; }
  .rooms__lead { margin-top: 1rem; }
  .rgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .rtag { padding: 0.6rem 0.7rem; }
  .rtag__l, .rtag__n { flex-direction: column; align-items: flex-start; gap: 0.15rem; }
  .rtag__n a { min-height: 2.75rem; }
  /* листок меню во всю ширину, фото парами под ним */
  .sheet { grid-column: 1 / -1; margin-inline: calc(var(--margin) * -1 + 10px); padding: 3rem 1.25rem; }
  .day__side--l, .day__side--r { grid-column: 1 / -1; }
  .day__side--r { grid-row: 3; margin-top: var(--gutter); }
  /* история: табло годов сверху */
  .hist__board { grid-column: 1 / -1; position: relative; top: auto; max-width: 18rem; margin-bottom: 2rem; }
  .letter { grid-column: 1 / -1; }
  /* ведомость: числа слева, подписи справа */
  .ledger div { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 1rem; }
  .loc__ph { aspect-ratio: 4 / 3; }
  /* картотека: табы 120 px */
  .card { --tx: calc(1rem + var(--i, 0) * (100% - 120px - 2rem) / 3); padding: calc(40px + 1rem) 1.1rem 2.75rem; clip-path: polygon(0 40px, var(--tx) 40px, var(--tx) 0, calc(var(--tx) + 120px) 0, calc(var(--tx) + 120px) 40px, 100% 40px, 100% 100%, 0 100%); }
  .card__tab { width: 120px; padding-left: 0.6rem; font-size: var(--step-small); }
  /* купон и открытка */
  .coupon__left, .coupon__right { padding: 2rem 1.25rem; }
  .coupon__acts .btn { width: 100%; }
  .postcard { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 2.25rem 1.25rem; }
  .postcard__addr { padding-top: 0; }
  .stamp { position: static; justify-self: start; justify-items: start; }
}

/* правки по QA1: первый экран ровно в окно (кнопка всегда на первом экране), цели нажатия, запас у открытой карточки, наведение */
@media (min-width: 68.76em) {
  .hero { height: 100svh; min-height: 36rem; grid-template-rows: minmax(0, 1fr); }
  .hero__ph { position: relative; min-height: 0; }
  .hero__ph img { position: absolute; inset: 0; }
}
@media (min-width: 48em) and (max-width: 68.75em) {
  .hero__ph { height: 26svh; min-height: 12rem; }
  .board--hero { max-width: 34rem; margin-top: 1.25rem; }
  .hero__title { padding-top: 1.5rem; }
}
.coupon__big a, .postcard__addr a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.card[open] { padding-bottom: calc(40px + 2rem); }
.rtag__n a { min-height: 2.75rem; }
@media (hover: hover) and (pointer: fine) {
  .hcard__nav a, .wm { transition: opacity var(--t-hover) ease; }
  .hcard__nav a:hover, .wm:hover { opacity: 0.6; }
  .link-plain:hover { text-decoration-thickness: 0.14em; }
  .rtag__n a:hover { text-decoration-thickness: 0.14em; }
}
@media (max-width: 21.25em) { :root { --step-head: 1.75rem; } }

/* QA2-HA-01: меню на телефоне; QA2-HA-02: компактный первый экран в ландшафте телефона */
.mtop { position: relative; z-index: 40; min-height: 0; }
@media (max-width: 47.99em) {
  :root { --header-h: 52px; }
  .mtop { gap: 0.5rem; padding: 0 10px; }
  .mtop .wm { margin-right: auto; }
}
@media (max-width: 23.4em) {
  .mtop .wm { font-size: var(--step-body); letter-spacing: 0; }
  .mtop__btn { padding: 0 0.6rem; font-size: var(--step-small); }
}
@media (max-height: 500px) and (min-width: 48em) and (max-width: 68.75em) {
  .hero__ph { display: none; }
  .hcard { padding-block: 16px; }
  .board--hero { max-width: 20rem; margin-top: 0.75rem; }
  .hero__title { padding-top: 1rem; }
  .hero__lead { margin: 8px 0 14px; }
}

/* QA2-HA-06: кратковременный перелив при появлении снимков и купона на 320 px */
html { overflow-x: clip; }
