/* style.css — VetSpectr, ветклиника. Вид по 03-design.md: «Цветовые главы», семь плоских полос спектра, прямые углы, одна гарнитура Rubik.
   Подключается после tokens.css и base.css. Без теней, градиентов и тонких линий; границы полей — жёсткий край. */

body { letter-spacing: -0.01em; font-weight: var(--w-text); }
h1, h2, h3, h4 { font-weight: var(--w-display); }
.display, .head, .mega { font-weight: var(--w-display); }
.display { letter-spacing: var(--track-display); line-height: var(--lead-display); text-wrap: balance; }
.head { letter-spacing: -0.03em; line-height: 0.98; }
.mega { font-size: var(--step-mega); font-weight: var(--w-display); letter-spacing: -0.05em; line-height: 0.8; }
.lead { font-weight: var(--w-text); letter-spacing: -0.01em; }
.btn { font-weight: var(--w-strong); letter-spacing: -0.005em; }
.nums { font-variant-numeric: tabular-nums; }
a { text-underline-offset: 0.18em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.btn:focus-visible, .cell:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ---------- шапка ---------- */
.top { gap: 1.75rem; }
.top__mark { gap: 10px; font-weight: var(--w-display); letter-spacing: -0.03em; }
.top__mark img { width: 34px; height: 34px; }
.top__nav { font-weight: var(--w-strong); gap: 1.6rem; }
.top__nav a { padding-block: 0.8rem; }
.top__act { min-height: 3rem; }
@media (max-width: 47.99em) {
  :root { --header-h: 3.5rem; }
  .top { padding-block: 0.4rem; min-height: var(--header-h); }
  .top__mark { font-size: var(--step-body); }
  .top__act { min-height: 2.75rem; padding: 0 0.9rem; }
}

/* ---------- 1. первый экран ---------- */
.hero { height: calc(100svh - var(--header-h)); min-height: 640px; position: relative; display: flex; flex-direction: column; overflow: hidden; }
.hero__text { padding: clamp(1rem, 5vh, 3.5rem) var(--margin) 0; position: relative; z-index: 2; }
.hero .display { max-width: 12ch; }
.hero__row { display: flex; gap: clamp(2rem, 5vw, 4.5rem); align-items: flex-end; justify-content: flex-start; margin-top: 1.75rem; }
.hero__info .lead { max-width: 36ch; }
.hero__hours { margin-top: 0.6rem; font-weight: var(--w-strong); font-size: var(--step-body); }
.acts { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; min-width: 15rem; }
.acts .small { margin-top: 0.1rem; }
.branch { display: inline-flex; margin-top: 0.9rem; }
.branch__b { min-height: 2.75rem; padding: 0 1.1rem; background: var(--surface); color: var(--ink); font-weight: var(--w-strong); font-size: var(--step-body); transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.branch__b.is-on { background: var(--ink); color: #fff; }
.branch__b:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .branch__b:not(.is-on):hover { background: var(--c7); } .branch__b.is-on:hover { background: var(--muted); } .top__mark:hover { text-decoration: underline; text-underline-offset: 0.2em; } .to-top:hover { background: var(--ink); color: #fff; } .tm:hover b { text-decoration: underline; } }
.branch__b:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.spectrum { margin-top: auto; height: var(--bar-band); display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); align-items: end; position: relative; z-index: 1; }
.bar { position: relative; display: flex; flex-direction: column; justify-content: flex-start; padding: 14px 14px; text-decoration: none; font-weight: var(--w-strong); font-size: var(--step-body); line-height: 1.1; color: var(--ink); min-width: 0; }
.bar .pet { position: absolute; bottom: 100%; left: 50%; width: min(8vw, 118px); height: auto; transform: translateX(-50%); margin-bottom: -3px; background: none; }
.b1 { background: var(--c1); height: 40%; } .b2 { background: var(--c2); height: 55%; } .b3 { background: var(--c3); height: 70%; } .b4 { background: var(--c4); height: 50%; }
.b5 { background: var(--c5); height: 86%; } .b6 { background: var(--c6); height: 100%; } .b7 { background: var(--c7); height: 64%; }
.bar:focus-visible { outline: 3px solid var(--ink); outline-offset: -6px; }
.pets-phone { display: none; }
@media (max-width: 62em) {
  .hero { height: auto; min-height: 0; overflow: visible; }
  .hero__text { padding-top: 1rem; }
  .hero__row { flex-direction: column; align-items: stretch; gap: 1.1rem; margin-top: 1rem; }
  .acts { min-width: 0; align-items: flex-start; }
  .hero .display { max-width: none; }
  .spectrum { height: auto; grid-template-columns: minmax(0, 1fr); margin-top: 4.75rem; }
  .bar { height: 52px !important; padding: 0 16px; justify-content: center; font-size: var(--step-body); }
  .bar .pet { display: none; }
  .pets-phone { display: flex; position: absolute; left: var(--margin); right: var(--margin); top: -64px; justify-content: space-between; align-items: flex-end; }
  .pets-phone img { height: 60px; width: 60px; background: none; }
}
@media (max-width: 47.99em) {
  .acts .btn { width: 100%; }
  .acts .small { margin-top: 0; }
}

/* ---------- 2. подберите уровень заботы (живая вещь) ---------- */
.care { --chapter: var(--c5); background: var(--chapter); transition: background-color 400ms var(--ease-soft); padding: var(--section) var(--margin); position: relative; }
.care__head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); align-items: end; margin-bottom: clamp(1.5rem, 4vw, 3.5rem); }
.care__head .lead { max-width: 34ch; }
.care__nojs { display: none; max-width: 52ch; }
.care__nojs a { font-weight: var(--w-strong); }
html:not(.js):not(.shot) .care__nojs { display: block; }
html:not(.js):not(.shot) .care__ui { display: none; }
.care__ui { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.care__left { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.care legend { padding: 0; margin-bottom: 0.5rem; font-weight: var(--w-strong); font-size: var(--step-small); }
.pets { display: grid; grid-template-columns: repeat(auto-fit, minmax(6.25rem, 1fr)); gap: 0.5rem; }
.pets legend { grid-column: 1 / -1; }
.pet-b { position: relative; display: flex; min-width: 0; }
.pet-b input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.pet-b span { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 0.25rem; padding: 0.6rem 0.4rem 0.7rem; background: var(--surface); color: var(--ink); font-weight: var(--w-strong); font-size: var(--step-small); line-height: 1.15; text-align: center; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.pet-b img { width: 64px; height: 64px; background: none; }
.pet-b input:checked + span { background: var(--bg); }
.pet-b input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.pet-b input:active + span { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .pet-b:hover input:not(:checked) + span { background: #fff; } }
.plate { position: relative; aspect-ratio: 1; max-height: 34rem; width: 100%; background: var(--bg); overflow: hidden; }
.plate__floor { position: absolute; left: 0; right: 0; bottom: 0; height: 24%; background: var(--chapter); transition: background-color 400ms var(--ease-soft); }
.plate__pet { position: absolute; left: 50%; bottom: 24%; width: 62%; height: auto; transform: translateX(-50%); background: none; transition: opacity 200ms ease; }
.scale { padding-top: 4.5rem; }
.scale legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.scale__bar { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); height: 3.5rem; }
.band { position: relative; display: flex; cursor: pointer; }
.band input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.band span.band__t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.band--1 { background: var(--c1); } .band--2 { background: var(--c2); } .band--3 { background: var(--c3); } .band--4 { background: var(--c4); }
.band--5 { background: var(--c5); } .band--6 { background: var(--c6); } .band--7 { background: var(--c7); }
.band:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; z-index: 2; }
.scale__thumb { position: absolute; top: -4.5rem; left: 0; width: calc(100% / 7); height: 4.5rem; display: flex; justify-content: center; pointer-events: none; transform: translateX(calc(var(--i, 4) * 100%)); transition: transform 360ms var(--ease-out); }
.scale__thumb i { position: relative; display: block; width: 8px; height: 100%; background: var(--ink); }
.scale__thumb i::after { content: attr(data-lbl); position: absolute; top: 0; left: 14px; white-space: nowrap; font-style: normal; font-weight: var(--w-strong); font-size: var(--step-small); line-height: 1.2; padding: 3px 8px; background: var(--ink); color: #fff; }
.scale__thumb.is-right i::after { left: auto; right: 14px; }
.care__hint { max-width: 40ch; }

.care__right { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.care__ctl { display: flex; flex-direction: column; gap: 0.9rem; min-height: 3rem; }
.seg { display: flex; flex-wrap: wrap; gap: 0 1.5rem; border: 0; padding: 0; margin: 0; }
.seg legend { width: 100%; padding: 0; margin: 0 0 0.35rem; font-size: var(--step-small); font-weight: var(--w-strong); }
.seg label { position: relative; display: block; flex: 0 1 auto; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.seg span { display: block; padding: 0.55rem 0 0.4rem; min-height: 2.75rem; font-size: var(--step-lead); font-weight: var(--w-strong); line-height: 1.1; color: var(--muted); border-bottom: 4px solid transparent; transition: color var(--t-hover) ease, border-color var(--t-hover) ease; }
.seg input:checked + span { color: var(--ink); border-bottom-color: var(--ink); }
.seg input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.seg--wide { width: 100%; }
.seg--wide label { flex: 1 1 0; }
.seg--wide span { text-align: center; }
.tog { display: flex; align-items: center; gap: 0.7rem; min-height: 2.75rem; font-weight: var(--w-strong); cursor: pointer; }
.tog input { width: 1.5rem; height: 1.5rem; margin: 0; accent-color: var(--ink); flex: none; }
.care .field { border-bottom-color: var(--ink); background: var(--bg); }
.care select.field { max-width: 100%; }
.care__what .head { max-width: 14ch; }
.care__desc { max-width: 34ch; margin-top: 0.6rem; min-height: 1.5em; }
.receipt { background: var(--bg); padding: 1.5rem 1.75rem 2.4rem; clip-path: polygon(0 0, 100% 0, 100% 100%, 93.75% calc(100% - 12px), 87.5% 100%, 81.25% calc(100% - 12px), 75% 100%, 68.75% calc(100% - 12px), 62.5% 100%, 56.25% calc(100% - 12px), 50% 100%, 43.75% calc(100% - 12px), 37.5% 100%, 31.25% calc(100% - 12px), 25% 100%, 18.75% calc(100% - 12px), 12.5% 100%, 6.25% calc(100% - 12px), 0 100%); }
.receipt__title { font-weight: var(--w-strong); font-size: var(--step-lead); line-height: 1.15; margin-bottom: 0.5rem; }
.receipt__rows { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.15rem; }
.receipt__rows { margin-top: 0.2rem; }
.receipt__rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.3rem 0; }
.receipt__rows li span { min-width: 0; }
.receipt__rows b { font-weight: var(--w-strong); white-space: nowrap; font-variant-numeric: tabular-nums; }
.receipt__total { margin: 0.1rem 0 0.9rem; font-size: var(--step-display); font-weight: var(--w-display); letter-spacing: var(--track-display); line-height: 0.95; font-variant-numeric: tabular-nums; white-space: nowrap; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 0.3em; }
.receipt__total small { font-size: var(--step-lead); font-weight: var(--w-strong); letter-spacing: -0.01em; }
.receipt__was { margin-top: 0.4rem; font-size: var(--step-lead); font-weight: var(--w-strong); line-height: 1.2; }
.receipt__was:empty, .receipt__note:empty, .receipt__total:empty { display: none; }
.receipt__note { margin-top: 0.6rem; max-width: 46ch; }
.receipt.is-none .receipt__total { font-size: var(--step-lead); letter-spacing: -0.01em; line-height: 1.25; white-space: normal; }
.cells { display: grid; grid-template-columns: 1fr 1fr; }
.cells--3 { grid-template-columns: repeat(3, 1fr); }
.cell { display: flex; align-items: center; justify-content: center; min-height: 4.5rem; padding: 0.6rem 0.9rem; text-align: center; text-decoration: none; font-weight: var(--w-strong); font-size: var(--step-lead); line-height: 1.15; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.cell:active { transform: scale(0.98); }
.cell--ink { background: var(--ink); color: #fff; }
.cell--tone { background: var(--surface); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .cell--ink:hover { background: var(--muted); } .cell--tone:hover { background: #fff; } }
.care__act { display: flex; flex-direction: column; gap: 0.9rem; }
.care__act .branch { margin-top: 0; }
.care__fine { max-width: 44ch; }
.care__bar { display: none; transition: transform 240ms var(--ease-out), opacity 200ms ease; }
@media (max-width: 1279.98px) {
  .scale { padding-top: 0; }
  .scale__bar { grid-template-columns: 1fr; height: auto; gap: 0; }
  .band { height: 3.5rem; }
  .band span.band__t { position: static; width: auto; height: auto; overflow: visible; clip-path: none; align-self: center; padding: 0 1rem 0 1.5rem; font-weight: var(--w-strong); font-size: var(--step-body); }
  .scale__thumb { display: none; }
  .band:has(input:checked)::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--ink); }
  .band:has(input:checked)::after { content: "выбрано"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); font-weight: var(--w-strong); font-size: var(--step-small); }
}
@media (max-width: 62em) {
  .care__head, .care__ui { grid-template-columns: 1fr; }
  .plate { max-height: 22rem; }
}
@media (max-width: 47.99em) {
  .care { padding-bottom: 0; }
  .care__ui { padding-bottom: 0; }
  .plate { max-height: none; aspect-ratio: 4 / 3; }
  .seg--wide { width: 100%; }
  .receipt { padding: 1.25rem 1.1rem 2.2rem; }
  .cells { grid-template-columns: 1fr; }
  .cells--3 { grid-template-columns: 1fr; }
  .cell { min-height: 3.75rem; }
  .care__bar { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; position: sticky; bottom: 0; z-index: 8; margin: 1.5rem calc(var(--margin) * -1) 0; padding: 0.6rem var(--margin); background: var(--ink); color: #fff; min-height: 4rem; }
  .care.is-receipt .care__bar { transform: translateY(120%); opacity: 0; pointer-events: none; }
  .care__bar p { font-weight: var(--w-display); font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
  .care__bar p { flex: none; }
  .care__bar .btn { background: #fff; color: var(--ink); min-height: 3rem; padding: 0 0.8rem; flex: 1 1 auto; min-width: 0; font-size: var(--step-body); white-space: normal; line-height: 1.1; text-align: center; }
}

/* ---------- 3. прививки и приём ---------- */
.prev { background: var(--c1); padding: var(--section) var(--margin); }
.prev__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--gutter); flex-wrap: wrap; }
.prev__head .head { display: block; max-width: 16ch; text-wrap: balance; }
.prev__h1 { color: var(--muted); }
.prev__h2 { color: var(--ink); }
.prev__lead { margin-top: 1.5rem; max-width: 48ch; }
.tabs { display: grid; grid-template-columns: 11.25rem 1fr; gap: 1.5rem; margin-top: 2.5rem; align-items: start; }
.tabs__list { display: none; flex-direction: column; gap: 6px; }
.js .tabs__list, .shot .tabs__list { display: flex; }
.tabs__b { min-height: 4rem; padding: 0 1rem; text-align: left; background: #93D47C; color: var(--ink); font-weight: var(--w-strong); font-size: var(--step-lead); transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.tabs__b[aria-selected="true"] { background: var(--ink); color: #fff; }
.tabs__b:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .tabs__b[aria-selected="false"]:hover { background: #B8EDA5; } }
.tabs__b:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
html:not(.js):not(.shot) .tabs { grid-template-columns: 1fr; }
.tabs__panels { display: grid; gap: 2.5rem; min-width: 0; }
.js .tabs__p[hidden], .shot .tabs__p[hidden] { display: none; }
.tabs__h { font-size: var(--step-lead); font-weight: var(--w-strong); letter-spacing: -0.01em; margin-bottom: 0.75rem; }
.ribbons { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.ribbons li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.75rem; padding: 0.6rem 1.25rem; }
.ribbons li:nth-child(odd) { background: #B8EDA5; }
.ribbons li:nth-child(even) { background: var(--c1); }
.prev .ribbons li:nth-child(even) { background: #9ADC82; }
.rb__n { display: flex; flex-direction: column; min-width: 0; font-size: var(--step-lead); line-height: 1.15; }
.rb__n b { font-weight: var(--w-strong); }
.rb__p { font-size: var(--step-lead); font-weight: var(--w-strong); white-space: nowrap; }
.prev__rules { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem var(--gutter); max-width: 62rem; margin-left: calc(11.25rem + 1.5rem); }
.prev__rules p { margin: 0; max-width: 46ch; }
.prev__plus { font-weight: var(--w-strong); font-size: var(--step-lead); }
.prev__visit { margin-top: 3rem; margin-left: calc(11.25rem + 1.5rem); }
.ribbons--row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html:not(.js):not(.shot) .prev__rules, html:not(.js):not(.shot) .prev__visit { margin-left: 0; }
/* пакеты: без JS показаны все три ступени подряд, с JS одна */
.pack .tier { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.2rem 1rem; }
.pack--kitten { display: grid; gap: 4px; margin-bottom: 1rem; }
.pack--kitten .tier { padding: 1rem 1.25rem; align-items: center; justify-content: space-between; }
.pack--kitten .tier:nth-child(1) { background: #B8EDA5; }
.pack--kitten .tier:nth-child(2) { background: #9ADC82; }
.pack--kitten .tier:nth-child(3) { background: #7FCB68; }
.pack--kitten .tier__k { font-size: var(--step-lead); flex: 1; }
.pack--kitten .tier__p { font-size: var(--step-lead); }
.pack--kitten .tier__w { font-size: var(--step-body); color: var(--ink); }
.js .pack--kitten .tier { cursor: pointer; }
.js .pack--kitten .tier[aria-pressed="true"] { background: var(--ink); color: #fff; }
.js .pack--kitten .tier[aria-pressed="true"] .tier__w { color: #fff; }
@media (max-width: 62em) {
  .tabs { grid-template-columns: minmax(0, 1fr); }
  .js .tabs__list { flex-direction: row; flex-wrap: wrap; position: sticky; top: var(--header-h); z-index: 6; gap: 4px; background: var(--c1); padding: 6px 0; }
  .tabs__b { flex: 1 1 calc(50% - 4px); min-width: 0; min-height: 3.25rem; text-align: center; padding: 0 0.4rem; font-size: var(--step-body); }
  .prev__rules, .prev__visit { margin-left: 0; }
  .prev__rules { grid-template-columns: 1fr; }
}
@media (max-width: 47.99em) {
  .prev__head .btn { width: 100%; }
  .ribbons--row { grid-template-columns: 1fr; }
  .ribbons li { min-height: 4.25rem; padding-inline: 1rem; }
}

/* ---------- 4. анализы и УЗИ: мозаика ---------- */
.analyses { background: var(--c3); padding: var(--section) var(--margin); }
.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(6rem, auto); gap: 8px; }
.t { padding: 1.5rem; min-width: 0; display: flex; flex-direction: column; gap: 0.8rem; justify-content: flex-start; align-items: flex-start; }
.t--photo { grid-column: 1 / 7; grid-row: 1 / 6; padding: 0; position: relative; background: none; overflow: hidden; }
.t--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.t--photo figcaption { position: absolute; left: 0; bottom: 0; padding: 0.5rem 0.9rem; background: var(--bg); font-size: var(--step-body); line-height: 1.25; }
.t--title { grid-column: 7 / 13; grid-row: 1 / 4; padding: 0 0 0 0.5rem; }
.t--title .head { font-size: var(--step-head); }
.t--price { grid-column: 7 / 10; grid-row: 4 / 9; background: var(--bg); }
.t--idexx { grid-column: 10 / 13; grid-row: 4 / 6; background: var(--c2); }
.t--list { grid-column: 10 / 13; grid-row: 6 / 9; background: #B5D3FF; }
.t--bundle { grid-column: 1 / 7; grid-row: 6 / 9; background: var(--bg); }
.t--control { grid-column: 1 / 7; grid-row: 9 / 11; background: var(--c2); }
.t--more { grid-column: 7 / 13; grid-row: 9 / 11; background: #B5D3FF; }
.t--price .display { font-size: var(--step-head); }
.t .lead { font-size: var(--step-body); line-height: 1.3; font-weight: var(--w-strong); }
.t--control .lead, .t--idexx .lead { font-size: var(--step-body); }
.plist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.35rem; width: 100%; }
.plist li > span { min-width: 0; }
.plist li { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.plist li b { font-weight: var(--w-strong); white-space: nowrap; }
.plist--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.35rem 2rem; }
@media (max-width: 62em) {
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; grid-auto-rows: auto; }
  .t { grid-column: auto !important; grid-row: auto !important; padding: 1.1rem; }
  .t--photo { order: 1; grid-column: 1 / -1 !important; padding: 0; aspect-ratio: 4 / 3; }
  .t--title { order: 2; grid-column: 1 / -1 !important; padding: 1.25rem 0 0.75rem; }
  .t--price { order: 3; } .t--list { order: 4; }
  .t--idexx { order: 5; grid-column: 1 / -1 !important; }
  .t--bundle { order: 6; grid-column: 1 / -1 !important; }
  .t--control { order: 7; } .t--more { order: 8; }
  .plist--2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 47.99em) {
  .t--price, .t--list, .t--control, .t--more { grid-column: 1 / -1 !important; }
  .t--price .btn { width: 100%; }
}

/* ---------- 5. кастрация, стерилизация, хирургия ---------- */
.surg { background: var(--bg); }
.surg__top { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); align-items: end; padding: var(--section) var(--margin) 1.5rem; }
.surg__facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; font-size: var(--step-lead); font-weight: var(--w-strong); line-height: 1.2; }
.surg__lead { padding: 0 var(--margin) 2.5rem; max-width: 62ch; }
.packs { display: grid; grid-template-columns: 5fr 7fr; }
.pack--c5, .pack--c6 { display: flex; flex-direction: column; gap: 1rem; padding: calc(var(--section) / 2) var(--margin); min-height: 80svh; }
.pack--c5 { background: var(--c5); } .pack--c6 { background: var(--c6); }
.pack--c5 .display, .pack--c6 .display { font-size: var(--step-head); }
.pack .lead { max-width: 26ch; }
.pack__only { font-weight: var(--w-strong); font-size: var(--step-body); }
.pack__incl { max-width: 44ch; }
.pack--c5 .tier, .pack--c6 .tier { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 0.2rem 1rem; }
.pack .tier__k { font-size: var(--step-lead); font-weight: var(--w-strong); }
.pack--c5 .tier__p.display, .pack--c6 .tier__p.display { font-size: var(--step-display); }
.pack .tier__w { grid-column: 2; font-size: var(--step-body); margin-top: 0.5rem; }
.pack .tier__t { grid-column: 1 / -1; max-width: 44ch; }
.pack .btn { align-self: flex-start; margin-top: auto; }
.pack .tier__p, .pack .tier__w { margin: 0; }
.pack__tabs { display: flex; gap: 1.5rem; margin: 0.4rem 0 0.4rem; }
.pack__tabs button { min-height: 2.75rem; min-width: 2.75rem; padding: 0.4rem 0.2rem 0.3rem; font-size: var(--step-lead); font-weight: var(--w-strong); color: var(--muted); border-bottom: 4px solid transparent; }
.pack__tabs button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.pack__tabs button:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.js .pack--c5 .tier[hidden], .js .pack--c6 .tier[hidden], .js .pack--kitten .tier[hidden] { display: none; }
.pack--c6 .tier__p.display { margin-top: 0.3rem; }
.tier[hidden] { display: none !important; }
.ops { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.ops__f { position: relative; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.ops__f img { width: 100%; height: 100%; object-fit: cover; }
.ops__f figcaption { position: absolute; left: 0; bottom: 0; background: var(--bg); padding: 0.5rem 0.9rem; font-size: var(--step-body); line-height: 1.25; }
.dogw { padding: var(--section) var(--margin) calc(var(--section) / 2); }
.dogw__ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gutter); margin-top: 1.75rem; align-items: end; }
.dogw__fig { height: 19rem; display: flex; align-items: flex-end; background: var(--c5); padding: 0 2rem; overflow: hidden; }
.dogw__fig img { height: 100%; width: auto; transform-origin: bottom left; transform: scale(var(--s, 0.7)); transition: transform 300ms var(--ease-out); background: none; max-width: none; }
.dogw__ctl { display: grid; gap: 0.9rem; }
.dogw .range { color: var(--ink); --track: var(--ink); }
.dogw .range::-webkit-slider-runnable-track { height: 8px; border-radius: 0; background: var(--ink); }
.dogw .range::-moz-range-track { height: 8px; border-radius: 0; background: var(--ink); }
.dogw .range::-webkit-slider-thumb { width: 28px; height: 28px; margin-top: -10px; border-radius: 0; background: var(--ink); }
.dogw .range::-moz-range-thumb { width: 28px; height: 28px; border-radius: 0; background: var(--ink); }
.dogw .chip span { background: var(--surface); }
.dogw .chip input:checked + span { background: var(--ink); color: #fff; }
.dogw__out { font-size: var(--step-lead); font-weight: var(--w-strong); line-height: 1.25; max-width: 40ch; }
.surg__list { padding: calc(var(--section) / 2) var(--margin) var(--section); }
.surg__list .plist { margin-top: 1.25rem; max-width: 78rem; }
.surg__list .small { margin-top: 1.25rem; max-width: 60ch; }
@media (max-width: 62em) {
  .surg__top { grid-template-columns: 1fr; }
  .packs { grid-template-columns: 1fr; }
  .pack--c6 { order: -1; }
  .pack--c5, .pack--c6 { min-height: 70svh; }
  .dogw__ui { grid-template-columns: 1fr; }
  .dogw__fig { height: 12rem; }
}
@media (max-width: 47.99em) {
  .ops { grid-template-columns: 1fr; }
  .pack .btn { width: 100%; }
  .pack__tabs { gap: 1rem; flex-wrap: wrap; }
}

/* ---------- 6. врач на дом и экзоты ---------- */
.home { background: var(--c7); padding: var(--section) var(--margin); min-height: 90svh; display: flex; flex-direction: column; justify-content: space-between; gap: clamp(3rem, 12vh, 9rem); }
.home .head { max-width: 14ch; }
.home__body { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter) 3rem; align-items: end; }
.home__big { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.home__num { font-size: var(--step-display); }
.home__txt { max-width: 32ch; }
.home__exo { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 1.5rem; align-items: end; justify-self: end; max-width: 100%; width: 100%; }
.home__exo > * { min-width: 0; }
.home__ph { margin: 0; overflow: hidden; }
.home__ph img { width: 100%; height: auto; max-width: 453px; }
.home__ph figcaption { margin-top: 0.4rem; font-size: var(--step-body); line-height: 1.25; }
.home__exotxt { display: grid; gap: 0.7rem; }
.home__exotxt .lead { font-weight: var(--w-strong); }
.home__pets { display: flex; gap: 0.5rem; align-items: flex-end; }
.home__pets img { width: min(7.5rem, 28%); height: auto; background: none; flex: none; }
@media (max-width: 62em) {
  .home__body { grid-template-columns: 1fr; }
  .home__exo { justify-self: start; }
}
@media (max-width: 47.99em) {
  .home { min-height: 0; gap: 2rem; }
  .home__exo { grid-template-columns: 1fr; }
  .home__ph img { max-width: 100%; }
  .home .btn { width: 100%; }
  .home__pets img { width: 5rem; }
}

/* ---------- 7. клиника в цифрах ---------- */
.nums-ch { background: var(--c2); padding: var(--section) var(--margin); min-height: 90svh; display: flex; flex-direction: column; justify-content: space-between; gap: clamp(3rem, 12vh, 9rem); }
.nums-ch .head { max-width: 16ch; }
.nums-ch__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.25rem; align-items: end; }
.nums-ch__main .mega { white-space: nowrap; font-size: min(var(--step-mega), 24vw); }
.nums-ch__main .mega sup { font-size: 0.33em; vertical-align: top; position: relative; top: 0.12em; letter-spacing: 0; margin-left: 0.04em; }
.nums-ch__cap { position: relative; z-index: 2; margin-top: 1.25rem; max-width: 28ch; font-size: var(--step-lead); font-weight: var(--w-strong); line-height: 1.2; }
.nums-ch__list { position: relative; z-index: 2; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem var(--gutter); }
.nums-ch__list li { display: flex; flex-direction: column; gap: 0.1rem; }
.nums-ch__list b { font-weight: var(--w-display); }
@media (max-width: 62em) { .nums-ch__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 47.99em) { .nums-ch { min-height: 0; gap: 2.5rem; } }

/* ---------- 8. команда ---------- */
.team { background: var(--bg); padding: var(--section) var(--margin); }
.team__head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); align-items: end; margin-bottom: 2.5rem; }
.team__head .head { max-width: 14ch; }
.team__grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; }
.tm { display: flex; flex-direction: column; gap: 0.35rem; }
.tm figure { margin: 0; background: var(--c4); overflow: hidden; }
.tm--2 figure { background: var(--c3); } .tm--3 figure { background: var(--c7); } .tm--4 figure { background: var(--c1); } .tm--5 figure { background: var(--c4); } .tm--6 figure { background: var(--c3); }
.tm img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1) contrast(1.15); mix-blend-mode: multiply; background: none; }
.tm b { font-weight: var(--w-strong); margin-top: 0.4rem; }
@media (min-width: 62.01em) { .tm:nth-child(even) { margin-top: 3.5rem; } .tm:nth-child(even) img { aspect-ratio: 1; } }
.tm span { color: var(--muted); max-width: 32ch; font-size: var(--step-body); line-height: 1.35; hyphens: auto; overflow-wrap: anywhere; }
@media (max-width: 62em) { .team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .team__head { grid-template-columns: 1fr; } }

/* ---------- 9. весь прайс ---------- */
.price { background: var(--bg); padding: var(--section) var(--margin); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gutter) clamp(1.5rem, 4vw, 4rem); align-items: start; }
.price__side { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1.1rem; }
.price__side .head { max-width: 10ch; }
.price__search { gap: 0.4rem; }
.price .field { background: var(--surface); border-bottom: 0; min-height: 3.5rem; }
.price .field:focus-visible { outline: 3px solid var(--ink); outline-offset: 0; }
.price__count { min-height: 1.4em; }
.price__list { display: grid; gap: 8px; min-width: 0; }
.pg { background: var(--surface); }
.pg > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; padding: 0.7rem 1.25rem; cursor: pointer; list-style: none; font-size: var(--step-lead); font-weight: var(--w-strong); transition: background-color var(--t-hover) ease; }
.pg > summary::-webkit-details-marker { display: none; }
.pg > summary .pg__n { margin-left: auto; margin-right: 0.5rem; }
.pg > summary::after { content: ""; flex: none; width: 1.1rem; height: 1.1rem; background: var(--ink); clip-path: polygon(40% 0, 60% 0, 60% 40%, 100% 40%, 100% 60%, 60% 60%, 60% 100%, 40% 100%, 40% 60%, 0 60%, 0 40%, 40% 40%); transition: transform var(--t-ui) var(--ease-out); }
.pg[open] > summary::after { transform: rotate(45deg); }
@media (hover: hover) and (pointer: fine) { .pg:not([open]) > summary:hover { background: #fff; } }
.pg > summary:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
.pg[open].pg--c1 { background: var(--c1); } .pg[open].pg--c2 { background: var(--c2); } .pg[open].pg--c3 { background: var(--c3); } .pg[open].pg--c4 { background: var(--c4); }
.pg[open].pg--c5 { background: var(--c5); } .pg[open].pg--c6 { background: var(--c6); } .pg[open].pg--c7 { background: var(--c7); } .pg[open].pg--surface { background: #E4E4E4; }
.pg__body { padding: 0 1.25rem 1.25rem; display: grid; gap: 0.5rem; }
.pg:not([open]) > .pg__body { display: none; }
.pg__note { max-width: 62ch; }
.pg__sub { font-size: var(--step-body); font-weight: var(--w-strong); margin-top: 0.8rem; }
.pg__rows { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.1rem; }
.pg__rows li { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: 0.45rem 0; }
.pg__rows li[hidden] { display: none; }
.pg__nm { display: flex; flex-direction: column; min-width: 0; }
.pg__pr { font-weight: var(--w-strong); white-space: nowrap; }
.pg__nt { color: var(--muted); }
.price__empty { padding: 1.25rem; background: var(--surface); }
@media (max-width: 62em) {
  .price { grid-template-columns: 1fr; }
  .price__side { position: static; }
  .price__side .head { max-width: none; }
}

/* ---------- 10. филиалы и контакты ---------- */
.contacts { background: var(--bg); padding: 0 0 var(--section); }
.strip { overflow: hidden; margin-bottom: var(--section); display: flex; gap: 8px; white-space: nowrap; }
.strip .m-marquee__track { gap: 8px; }
.strip img { height: clamp(9.5rem, 15vw, 15rem); width: auto; max-width: none; flex: none; background: none; }
.contacts__head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); align-items: end; padding: 0 var(--margin) 2rem; }
.contacts__head .head { max-width: 12ch; }
.plaques { display: grid; grid-template-columns: 1fr 1fr; }
.plaque { display: flex; flex-direction: column; gap: 0.7rem; padding: 2rem var(--margin) 2rem; align-items: flex-start; }
.plaque--r { background: var(--c2); } .plaque--l { background: var(--c3); }
.plaque .cells { width: 100%; margin-top: 1rem; }
.plaque .lead a { text-decoration: none; display: inline-flex; align-items: center; min-height: 2.75rem; }
.contacts__fine { padding: 1.5rem var(--margin) 0; max-width: 70ch; }
@media (max-width: 62em) {
  .contacts__head, .plaques { grid-template-columns: 1fr; }
  .strip img { height: 7rem; }
}

/* ---------- подвал: знак из цветных блоков ---------- */
.foot { background: var(--bg); padding: 0 var(--margin) 1.5rem; }
.foot__mark { height: 34svh; display: flex; gap: 4px; align-items: flex-end; margin-bottom: 2rem; }
.foot__mark span { flex: 1; height: var(--h); background: var(--c); display: flex; align-items: center; justify-content: center; font-size: var(--step-display); font-weight: var(--w-display); letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.foot__links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem var(--gutter); align-items: start; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 0.2rem 1.4rem; font-weight: var(--w-strong); }
.foot__nav a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.foot a { text-decoration: none; }
.foot__links p a { text-decoration: underline; }
.foot__credit { margin-top: 1.5rem; color: var(--muted); max-width: none; }
.to-top { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.9rem; margin-left: 0.5rem; background: var(--surface); color: var(--ink); font-weight: var(--w-strong); text-decoration: none; }
@media (max-width: 47.99em) {
  .foot__mark { height: 22svh; gap: 3px; }
  .foot__mark span { font-size: var(--step-head); }
  .foot__links { grid-template-columns: 1fr; }
}
