/* ==========================================================================
   Юбилейный магазин НИУ «БелГУ»
   Оформление раздела поверх базовой темы сайта (styles.css). Цвета берём из
   переменных бренда, чтобы смена палитры в «Настройках сайта» действовала и
   в магазине.
   ========================================================================== */

.shop-shell { --shop-radius: 16px; --shop-line: var(--line); --shop-card: #fff; gap: 30px; }

.shop-icon { width: 20px; height: 20px; flex: none; }

/* --- шапка каталога --- */
.shop-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr); gap: 34px; align-items: center; padding: 34px 36px; border: 1px solid var(--shop-line); border-radius: var(--shop-radius); background: linear-gradient(135deg, rgba(0, 88, 62, 0.06), rgba(32, 125, 135, 0.05) 55%, rgba(192, 154, 66, 0.08)); }
.shop-hero h1 { margin: 6px 0 14px; color: var(--green); font-family: var(--serif); font-size: clamp(32px, 4vw, 50px); font-weight: 500; line-height: 1.02; }
.shop-lead { max-width: 60ch; margin: 0; color: rgb(41, 58, 52); font-size: 16px; line-height: 1.6; }
.shop-status { display: inline-flex; align-items: center; gap: 9px; margin: 16px 0 0; color: var(--green); font-size: 14px; font-weight: 700; }
.shop-status .status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.shop-stage-notice { margin: 14px 0 0; padding: 9px 14px; border-left: 3px solid var(--gold); background: rgba(192, 154, 66, 0.12); border-radius: 0 8px 8px 0; color: #6b5420; font-size: 13px; font-weight: 700; }

.shop-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: shop-step; }
.shop-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 4px 14px; align-items: start; padding: 14px 16px; border: 1px solid rgba(0, 88, 62, 0.12); border-radius: 12px; background: rgba(255, 255, 255, 0.72); }
.shop-step-num { grid-row: 1 / 3; display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--green); color: #fff; font-size: 15px; font-weight: 800; }
.shop-steps strong { color: var(--green); font-size: 15px; }
.shop-steps span:not(.shop-step-num) { color: var(--muted); font-size: 13px; line-height: 1.45; }

/* --- фильтр категорий --- */
.shop-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.shop-chip { --chip: var(--green); display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border: 1px solid var(--shop-line); border-radius: 999px; background: #fff; color: var(--text); font-size: 14px; font-weight: 700; transition: border-color 150ms, color 150ms, background 150ms; }
.shop-chip:hover { border-color: var(--chip); color: var(--chip); }
.shop-chip.is-active { border-color: transparent; background: var(--chip); color: #fff; }

/* --- сетка товаров --- */
/* Ровно три карточки в ряд: сетка по ширине давала то три, то четыре
   в зависимости от окна, и раздел выглядел по-разному каждый раз. */
.shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 900px) { .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 560px) { .shop-grid { grid-template-columns: minmax(0, 1fr); } }
.shop-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--shop-line); border-radius: var(--shop-radius); background: var(--shop-card); box-shadow: var(--soft-shadow); transition: transform 180ms, box-shadow 180ms; }
.shop-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
/* товарная съёмка вертикальная, поэтому карточки портретные */
.shop-card-media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--wash); }
.shop-card-media img { width: 100%; height: 100%; object-fit: cover; }
.shop-badge { position: absolute; top: 12px; left: 12px; padding: 5px 11px; border-radius: 999px; background: var(--gold); color: #17352c; font-size: 12px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; }
.shop-badge.is-inline { position: static; display: inline-block; margin-bottom: 10px; }
.shop-card-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 18px; }
.shop-card-body h3 { margin: 0; font-family: var(--serif); font-size: 20px; font-weight: 500; line-height: 1.2; }
.shop-card-body h3 a { color: var(--green); }
.shop-card-body h3 a:hover { color: var(--gold); }
.shop-card-summary { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.shop-card-price { display: flex; align-items: baseline; gap: 10px; margin-top: auto; }
.shop-card-price strong, .shop-product-price strong { color: var(--green); font-family: var(--serif); font-size: 25px; font-weight: 700; }
.shop-card-price s, .shop-product-price s { color: var(--muted); font-size: 15px; }

.shop-placeholder { display: grid; width: 100%; height: 100%; min-height: 150px; place-items: center; background: linear-gradient(150deg, var(--tile, var(--green)), rgba(255, 255, 255, 0.15)); color: rgba(255, 255, 255, 0.92); font-family: var(--serif); font-size: 56px; font-weight: 500; }

.shop-stock { display: inline-flex; align-items: center; gap: 7px; margin: 0; color: var(--green-2); font-size: 13px; font-weight: 700; }
.shop-stock.is-out { color: #a04336; }
.shop-empty { grid-column: 1 / -1; padding: 40px; border: 1px dashed var(--shop-line); border-radius: var(--shop-radius); color: var(--muted); text-align: center; }

/* --- кнопки --- */
.shop-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 22px; border: 1px solid transparent; border-radius: 999px; font-size: 14.5px; font-weight: 800; text-align: center; transition: background 160ms, color 160ms, border-color 160ms; }
.shop-btn-primary { background: var(--green); color: #fff; }
.shop-btn-primary:hover { background: var(--green-2); }
.shop-btn-secondary { border-color: var(--green); background: #fff; color: var(--green); }
.shop-btn-secondary:hover { background: rgba(0, 88, 62, 0.07); }
.shop-btn-lg { width: 100%; min-height: 54px; font-size: 16px; }
.shop-btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.shop-add-form { display: grid; gap: 10px; }
/* на карточке товара счётчик стоит рядом с кнопкой, а не растягивается */
.shop-add-form:has(.shop-qty) { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
.shop-add-form:has(.shop-qty) .shop-btn-lg { width: 100%; }

/* --- счётчик количества --- */
.shop-qty { display: inline-grid; grid-template-columns: 40px 56px 40px; align-items: center; border: 1px solid var(--shop-line); border-radius: 999px; overflow: hidden; background: #fff; }
.shop-qty-btn { height: 42px; border: 0; background: transparent; color: var(--green); font-size: 19px; font-weight: 700; }
.shop-qty-btn:hover { background: var(--wash); }
.shop-qty-input { height: 42px; border: 0; text-align: center; font-size: 15px; font-weight: 700; -moz-appearance: textfield; }
.shop-qty-input::-webkit-outer-spin-button, .shop-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* --- карточка товара --- */
.shop-product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr); gap: 36px; padding: 30px; border: 1px solid var(--shop-line); border-radius: var(--shop-radius); background: var(--shop-card); box-shadow: var(--soft-shadow); }
.shop-product-main { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 12px; background: var(--wash); }
.shop-product-main img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.shop-product-main-empty { display: grid; place-items: center; }
.shop-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.shop-thumb { width: 66px; height: 82px; padding: 0; overflow: hidden; border: 1px solid var(--shop-line); border-radius: 9px; background: #fff; }
.shop-thumb.is-active { border-color: var(--gold); }
.shop-thumb img { width: 100%; height: 100%; object-fit: cover; }
.shop-product-info h1 { margin: 0 0 10px; color: var(--green); font-family: var(--serif); font-size: clamp(28px, 3vw, 40px); font-weight: 500; line-height: 1.05; }
.shop-sku { margin: 0 0 14px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 0.03em; }
.shop-product-price { display: flex; align-items: baseline; gap: 12px; margin: 18px 0 10px; }
.shop-variants { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; padding: 0; border: 0; }
.shop-variants legend { width: 100%; margin-bottom: 8px; padding: 0; color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.shop-variant { position: relative; }
.shop-variant input { position: absolute; opacity: 0; inset: 0; }
.shop-variant span { display: inline-grid; min-width: 52px; height: 44px; place-items: center; padding: 0 14px; border: 1px solid var(--shop-line); border-radius: 10px; background: #fff; font-size: 14px; font-weight: 700; cursor: pointer; transition: border-color 150ms, background 150ms; }
.shop-variant input:checked + span { border-color: var(--green); background: rgba(0, 88, 62, 0.08); color: var(--green); }
.shop-variant input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.shop-variant.is-disabled span { opacity: 0.4; text-decoration: line-through; cursor: not-allowed; }
.shop-product-desc { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--shop-line); color: var(--text); font-size: 15px; line-height: 1.65; }
.shop-product-desc h2 { margin: 0 0 10px; color: var(--green); font-family: var(--serif); font-size: 21px; font-weight: 500; }
.shop-product-desc p { margin: 0 0 12px; }

/* --- корзина и оформление --- */
.shop-page-title { margin: 0; color: var(--green); font-family: var(--serif); font-size: clamp(28px, 3.2vw, 42px); font-weight: 500; }
.shop-checkout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: 24px; align-items: start; }
.shop-lines, .shop-block { grid-column: 1; display: grid; gap: 14px; padding: 22px 24px; border: 1px solid var(--shop-line); border-radius: var(--shop-radius); background: var(--shop-card); box-shadow: var(--soft-shadow); }
.shop-block h2 { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--green); font-family: var(--serif); font-size: 22px; font-weight: 500; }
.shop-line { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto auto auto 40px; gap: 16px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--shop-line); }
.shop-line:last-of-type { padding-bottom: 0; border-bottom: 0; }
.shop-line-media { display: block; width: 84px; height: 72px; overflow: hidden; border-radius: 10px; background: var(--wash); }
.shop-line-media img { width: 100%; height: 100%; object-fit: cover; }
.shop-line-media .shop-placeholder { min-height: 0; font-size: 28px; }
.shop-line-info { display: grid; gap: 4px; }
.shop-line-title { color: var(--green); font-size: 15.5px; font-weight: 800; }
.shop-line-title:hover { color: var(--gold); }
.shop-line-option, .shop-line-sku { color: var(--muted); font-size: 12.5px; }
.shop-line-price { color: var(--muted); font-size: 14px; white-space: nowrap; }
.shop-line-total { min-width: 92px; color: var(--green); font-size: 16px; font-weight: 800; text-align: right; white-space: nowrap; }
.shop-line-remove { display: grid; width: 40px; height: 40px; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--muted); }
.shop-line-remove:hover { background: rgba(160, 67, 54, 0.1); color: #a04336; }

.shop-options { display: grid; gap: 10px; }
.shop-option { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--shop-line); border-radius: 12px; cursor: pointer; transition: border-color 150ms, background 150ms; }
.shop-option:hover { border-color: var(--green); }
.shop-option:has(input:checked) { border-color: var(--green); background: rgba(0, 88, 62, 0.05); }
.shop-option input { width: 20px; height: 20px; accent-color: var(--green); }
.shop-option-body { display: grid; gap: 3px; }
.shop-option-body strong { color: var(--text); font-size: 15px; }
.shop-option-body span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.shop-option-price.is-quiet { color: var(--muted); font-weight: 600; font-size: 12.5px; text-align: right; }
.shop-option-price { color: var(--green); font-size: 15px; font-weight: 800; white-space: nowrap; }
.shop-note { margin: 4px 0 0; padding-left: 13px; border-left: 2px solid var(--gold); color: var(--muted); font-size: 13px; line-height: 1.5; }

.shop-customer-type { display: flex; flex-wrap: wrap; gap: 10px; }
.shop-toggle input { position: absolute; opacity: 0; }
.shop-toggle span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border: 1px solid var(--shop-line); border-radius: 999px; font-size: 14px; font-weight: 700; cursor: pointer; }
.shop-toggle input:checked + span { border-color: var(--green); background: rgba(0, 88, 62, 0.08); color: var(--green); }
.shop-toggle input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.shop-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.shop-field { display: grid; gap: 6px; }
/* элементу с собственным display атрибут hidden сам по себе не помогает */
.shop-field[hidden], .shop-block[hidden], .shop-line[hidden], .shop-add-form[hidden] { display: none; }
.shop-field.is-wide { grid-column: 1 / -1; }
.shop-field label { color: var(--muted); font-size: 13px; font-weight: 700; }
.shop-required { margin-left: 4px; color: #a04336; }
.shop-field input, .shop-field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--shop-line); border-radius: 10px; background: #fff; color: var(--text); font-family: inherit; font-size: 15px; }
.shop-field input:focus, .shop-field textarea:focus { outline: 2px solid rgba(0, 88, 62, 0.35); outline-offset: 1px; border-color: var(--green); }
.shop-field textarea { resize: vertical; }
.shop-consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; color: var(--muted); font-size: 13.5px; line-height: 1.5; cursor: pointer; }
.shop-consent input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--green); }

.shop-summary { position: sticky; top: 18px; grid-column: 2; grid-row: 1 / span 4; display: grid; gap: 14px; padding: 24px; border: 1px solid var(--shop-line); border-radius: var(--shop-radius); background: var(--shop-card); box-shadow: var(--shadow); }
.shop-summary h2 { margin: 0; color: var(--green); font-family: var(--serif); font-size: 22px; font-weight: 500; }
.shop-summary dl { display: grid; gap: 9px; margin: 0; }
.shop-summary dl div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.shop-summary dt { color: var(--muted); font-size: 14px; }
.shop-summary dd { margin: 0; font-size: 15px; font-weight: 700; }
.shop-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0; padding-top: 14px; border-top: 1px solid var(--shop-line); }
.shop-total span { color: var(--text); font-size: 15px; font-weight: 700; }
.shop-total strong { color: var(--green); font-family: var(--serif); font-size: 27px; font-weight: 700; }
.shop-back-link { color: var(--green); font-size: 13.5px; font-weight: 700; text-align: center; }
.shop-back-link:hover { color: var(--gold); }
.shop-form-error { margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(160, 67, 54, 0.1); color: #a04336; font-size: 13.5px; font-weight: 700; }

/* --- пустая корзина и страница заказа --- */
.shop-empty-state, .shop-order-done { display: grid; justify-items: center; gap: 14px; padding: 46px 30px; border: 1px solid var(--shop-line); border-radius: var(--shop-radius); background: var(--shop-card); box-shadow: var(--soft-shadow); text-align: center; }
.shop-empty-state h1, .shop-empty-state h2, .shop-order-done h1 { margin: 0; color: var(--green); font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); font-weight: 500; }
.shop-empty-state p, .shop-order-done p { max-width: 52ch; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.shop-order-mark { display: grid; width: 66px; height: 66px; place-items: center; border-radius: 50%; background: rgba(0, 88, 62, 0.1); color: var(--green); }
.shop-order-mark .shop-icon { width: 32px; height: 32px; }
.shop-order-number { font-size: 17px !important; color: var(--text) !important; }
.shop-order-number strong { color: var(--green); font-family: var(--serif); font-size: 24px; letter-spacing: 0.02em; }
.shop-order-summary { width: min(100%, 520px); display: grid; gap: 12px; margin-top: 8px; padding: 20px 22px; border: 1px solid var(--shop-line); border-radius: 12px; background: var(--wash); text-align: left; }
.shop-order-summary h2 { margin: 0; color: var(--green); font-family: var(--serif); font-size: 19px; font-weight: 500; }
.shop-order-summary ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.shop-order-summary li { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; font-size: 14px; }
.shop-order-summary li em { color: var(--muted); font-style: normal; }
.shop-order-summary dl { display: grid; gap: 6px; margin: 0; padding-top: 10px; border-top: 1px solid var(--shop-line); }
.shop-order-summary dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.shop-order-summary dt { color: var(--muted); }
.shop-order-summary dd { margin: 0; font-weight: 700; }
.shop-order-next { width: min(100%, 520px); text-align: left; }
.shop-order-next h2 { margin: 0 0 6px; color: var(--green); font-family: var(--serif); font-size: 19px; font-weight: 500; }

/* --- информационный блок --- */
.shop-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; padding: 26px 28px; border: 1px solid var(--shop-line); border-radius: var(--shop-radius); background: var(--shop-card); }
.shop-info-col h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; color: var(--green); font-family: var(--serif); font-size: 19px; font-weight: 500; }
.shop-info-col ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.shop-info-col li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--text); font-size: 14px; }
.shop-info-col li span { color: var(--muted); }
.shop-info-col li.is-stack { display: grid; gap: 4px; }
.shop-info-col li.is-stack span { position: relative; padding-left: 14px; color: var(--text); }
.shop-info-col li.is-stack span::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.shop-info-col strong { font-weight: 700; }
.shop-info-col a { color: var(--green); font-weight: 700; }
.shop-info-col a:hover { color: var(--gold); }

/* --- всплывающее уведомление «добавлено» --- */
.shop-toast { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: flex; align-items: center; gap: 12px; max-width: min(92vw, 380px); padding: 14px 18px; border-radius: 12px; background: var(--green); color: #fff; font-size: 14.5px; font-weight: 700; box-shadow: 0 18px 40px rgba(10, 54, 48, 0.28); opacity: 0; transform: translateY(12px); transition: opacity 200ms, transform 200ms; }
.shop-toast.is-visible { opacity: 1; transform: translateY(0); }
.shop-toast.is-error { background: #a04336; }
.shop-toast a { color: var(--gold); text-decoration: underline; }

/* --- адаптив --- */
@media (max-width: 1080px) {
  .shop-checkout { grid-template-columns: minmax(0, 1fr); }
  .shop-summary { position: static; grid-column: 1; grid-row: auto; }
  .shop-product { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .shop-hero { grid-template-columns: minmax(0, 1fr); padding: 26px 22px; }
  .shop-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .shop-card-body { padding: 14px; gap: 8px; }
  /* в узкой карточке иконка отнимает место у подписи, и та ломается на строки */
  .shop-card .shop-btn { padding: 0 14px; font-size: 13.5px; white-space: nowrap; }
  .shop-card .shop-btn .shop-icon { display: none; }
  .shop-card-body h3 { font-size: 17px; }
  .shop-card-price strong { font-size: 21px; }
  /* третья колонка по содержимому: иначе сумма строки уезжает за край */
  .shop-line { grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "media info remove" "qty qty total"; gap: 10px 12px; }
  .shop-line-media { grid-area: media; width: 64px; height: 60px; }
  .shop-line-info { grid-area: info; }
  .shop-line-remove { grid-area: remove; }
  .shop-line .shop-qty { grid-area: qty; }
  .shop-line-total { grid-area: total; }
  .shop-line-price { display: none; }
  .shop-lines, .shop-block, .shop-summary, .shop-info, .shop-product { padding: 18px 16px; }
  .shop-bar { padding: 10px 14px; }
  .shop-toast { right: 12px; left: 12px; bottom: 12px; max-width: none; }
}

/* ==========================================================================
   Первый экран магазина: четыре вертикальные полосы во весь экран.

   Ни шапки, ни подвала: экран целиком отдан выбору раздела. Полосы
   растягиваются на всю ширину и высоту окна, у каждой свой цвет и своя
   фотография под ним. Правила действуют только там, где есть .shop-cover,
   то есть на самом первом экране — внутри раздела страница обычная.
   ========================================================================== */

body:has(.shop-cover) { overflow: hidden; }
body:has(.shop-cover) .site-header,
body:has(.shop-cover) .contact-line,
body:has(.shop-cover) .shop-shell > .back-inline { display: none; }
body:has(.shop-cover) .template-card,
body:has(.shop-cover) .page-shell,
body:has(.shop-cover) .shop-shell {
  width: 100%; max-width: none; min-height: 0; margin: 0; padding: 0; gap: 0;
  border: 0; border-radius: 0; box-shadow: none; background: none;
}

.shop-cover { position: fixed; inset: 0; z-index: 1; }

.shop-sections {
  width: 100vw; height: 100vh; height: 100dvh; margin: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr); gap: 0;
}

.shop-section {
  --tone: #00583e;
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px;
  padding: 44px 34px 40px; overflow: hidden;
  background: var(--tone); color: #fff; text-decoration: none;
}
/* Фотография раздела — под цветом. */
.shop-section.has-photo::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--photo); background-size: cover; background-position: center;
  transform: scale(1.03); transition: transform 700ms ease;
}
.shop-section:hover.has-photo::before { transform: scale(1.09); }
/* Цвет поверх фотографии: книзу плотнее, там текст. */
.shop-section::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tone) 28%, transparent) 0%, color-mix(in srgb, var(--tone) 62%, transparent) 45%, color-mix(in srgb, var(--tone) 94%, transparent) 78%, var(--tone) 100%);
  transition: opacity 300ms ease;
}
.shop-section:not(.has-photo)::after { background: none; }
.shop-section:hover::after { opacity: .86; }
/* Тонкая линия между полосами вместо зазора. */
.shop-section + .shop-section { box-shadow: inset 1px 0 0 rgba(255, 255, 255, .16); }

.shop-section-index { position: absolute; z-index: 1; top: 26px; right: 30px; font-family: var(--serif); font-size: clamp(64px, 9vh, 120px); line-height: 1; color: rgba(255, 255, 255, .16); pointer-events: none; }

.shop-section-body { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 10px; }
.shop-section-name { font-family: var(--serif); font-size: clamp(22px, 2.1vw, 34px); font-weight: 500; line-height: 1.08; text-shadow: 0 2px 16px rgba(0, 0, 0, .28); }
.shop-section-text { color: rgba(255, 255, 255, .88); font-size: clamp(13px, 1.6vh, 15px); line-height: 1.5; }

.shop-section-meta { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .28); color: #fff; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.shop-section-go { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px; transition: gap 180ms, background 180ms; }
.shop-section-go .shop-icon { width: 17px; height: 17px; }
.shop-section:hover .shop-section-go { gap: 14px; background: rgba(255, 255, 255, .18); }
.shop-section.is-empty { --tone: #5d6b66; }

/* ---- заголовок выбранного раздела ---- */
.shop-back { display: inline-flex; align-items: center; gap: 9px; color: var(--green); font-size: 14px; font-weight: 700; }
.shop-back:hover { color: var(--gold); }
.shop-section-head { --tone: #00583e; position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; overflow: hidden; min-height: 190px;
  border: 1px solid color-mix(in srgb, var(--tone) 16%, var(--shop-line)); border-radius: 22px;
  background: linear-gradient(115deg, color-mix(in srgb, var(--tone) 10%, #fff) 0%, #fff 62%); box-shadow: var(--soft-shadow); }
.shop-section-head.has-photo .shop-section-head-copy { padding-right: calc(clamp(200px, 24%, 300px) + 24px); }
.shop-section-head-copy { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 30px 34px; }
.shop-section-head-photo { position: absolute; top: 0; right: 0; bottom: 0; width: clamp(200px, 24%, 300px); height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }
.shop-section-head h1 { margin: 0; color: color-mix(in srgb, var(--tone) 88%, #000); font-family: var(--serif); font-size: clamp(30px, 3.4vw, 46px); font-weight: 500; line-height: 1.05; }
.shop-section-head p { max-width: 62ch; margin: 0; color: rgb(41, 58, 52); font-size: 16px; line-height: 1.55; }
.shop-section-head .shop-section-count { align-self: flex-start; margin-top: 4px; padding: 5px 12px; border-radius: 999px; background: color-mix(in srgb, var(--tone) 10%, #fff);
  color: color-mix(in srgb, var(--tone) 85%, #000); font-size: 12px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.shop-steps-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* На телефоне четыре узкие колонки нечитаемы — раскладываем в строки. */
@media (max-width: 900px) {
  body:has(.shop-cover) { overflow: auto; }
  .shop-cover { position: static; }
  .shop-sections { grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(4, minmax(0, 1fr)); height: 100dvh; }
  .shop-section { padding: 22px 20px; justify-content: center; }
  .shop-section:first-child { padding-top: 64px; }
  .shop-section + .shop-section { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16); }
  .shop-section-index { font-size: 64px; top: 14px; right: 18px; }
  .shop-section-meta { flex-direction: row; align-items: center; gap: 16px; }
  .shop-steps-row { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   Прайс услуг: четыре направления вкладками, внутри — подкатегории, у каждой
   одна таблица цен с подзаголовками по видам услуг. Та же таблица у клиники.
   ========================================================================== */
.svc { --tone: #00583e; display: grid; gap: 22px; scroll-margin-top: 96px; }
.svc-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.svc-tab { --tone: #00583e; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; gap: 2px 14px; align-items: center;
  padding: 16px 18px; border: 1px solid var(--shop-line); border-radius: 18px; background: #fff; color: var(--ink); text-decoration: none;
  box-shadow: var(--soft-shadow); transition: border-color 160ms, box-shadow 160ms, background 160ms; }
.svc-tab:hover { border-color: color-mix(in srgb, var(--tone) 45%, var(--shop-line)); color: var(--ink); }
.svc-tab.is-active { border-color: var(--tone); background: var(--tone); color: #fff; box-shadow: 0 12px 28px color-mix(in srgb, var(--tone) 28%, transparent); }
.svc-tab-icon { grid-row: 1 / span 2; display: grid; width: 46px; height: 46px; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--tone) 11%, #fff); color: var(--tone); }
.svc-tab.is-active .svc-tab-icon { background: rgba(255, 255, 255, .16); color: #fff; }
.svc-tab-icon .shop-icon { width: 24px; height: 24px; }
.svc-tab-title { align-self: end; font-family: var(--serif); font-size: 19px; font-weight: 500; line-height: 1.2; }
.svc-tab-meta { align-self: start; color: var(--muted); font-size: 13px; font-weight: 600; }
.svc-tab.is-active .svc-tab-meta { color: rgba(255, 255, 255, .8); }

.svc-dir-body { display: grid; gap: 28px; }
.svc-subnav { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-subnav a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; border: 1px solid var(--shop-line); border-radius: 999px; background: #fff;
  color: var(--ink); font-size: 13.5px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: border-color 150ms, color 150ms; }
.svc-subnav a span { color: var(--muted); }
.svc-subnav a:hover { border-color: var(--tone); color: var(--tone); }

.svc-sub { display: grid; gap: 14px; scroll-margin-top: 100px; }
.svc-sub-head { display: flex; align-items: center; gap: 12px; }
.svc-sub-icon { display: grid; flex: none; width: 40px; height: 40px; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--tone) 11%, #fff); color: var(--tone); }
.svc-sub-icon .shop-icon { width: 22px; height: 22px; }
.svc-sub-head h2 { margin: 0; color: var(--ink); font-family: var(--serif); font-size: clamp(22px, 2.2vw, 28px); font-weight: 500; line-height: 1.15; }
.svc-sub-count { margin-left: auto; color: var(--muted); font-size: 13px; font-weight: 700; white-space: nowrap; }

/* таблица цен: название · единица · цена · кнопка */
.svc-sheet { padding: 4px 24px 10px; border: 1px solid var(--shop-line); border-radius: 20px; background: #fff; box-shadow: var(--soft-shadow); }
.svc-block + .svc-block { margin-top: 6px; border-top: 1px solid var(--shop-line); }
.svc-block h3 { margin: 0; padding: 18px 0 8px; color: var(--tone); font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.svc-note { margin: 0 0 8px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.svc-list { margin: 0 -12px; padding: 0; list-style: none; }
.svc-row { display: grid; grid-template-columns: minmax(0, 1fr) 140px 130px 118px; gap: 4px 18px; align-items: center; padding: 10px 12px; transition: background 140ms; }
.svc-row + .svc-row { border-top: 1px solid var(--shop-line); }
.svc-row:hover { background: color-mix(in srgb, var(--tone) 6%, #fff); }
.svc-name { color: var(--ink); font-size: 15px; line-height: 1.4; }
.svc-row.is-sub .svc-name { position: relative; padding-left: 20px; color: var(--muted); }
.svc-row.is-sub .svc-name::before { content: "↳"; position: absolute; left: 2px; }
.svc-unit { color: var(--muted); font-size: 13px; }
.svc-price { color: var(--ink); font-size: 16px; font-weight: 800; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.svc-order { justify-self: end; padding: 7px 15px; border: 1px solid color-mix(in srgb, var(--tone) 35%, var(--shop-line)); border-radius: 999px;
  color: var(--tone); font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap; transition: background 150ms, color 150ms, border-color 150ms; }
.svc-order:hover, .svc-row:hover .svc-order { border-color: var(--tone); background: var(--tone); color: #fff; }
.clinic .svc-row { grid-template-columns: minmax(0, 1fr) 150px 130px; }
.clinic .svc-unit { display: none; }

@media (max-width: 1000px) {
  .svc-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-row { grid-template-columns: minmax(0, 1fr) 100px 110px 110px; gap: 4px 12px; }
}
@media (max-width: 640px) {
  .svc { gap: 18px; }
  .svc-tabs { gap: 10px; }
  .svc-tab { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; gap: 6px; padding: 14px; border-radius: 16px; }
  .svc-tab-icon { grid-row: auto; width: 38px; height: 38px; border-radius: 11px; }
  .svc-tab-icon .shop-icon { width: 21px; height: 21px; }
  .svc-tab-title { font-size: 16px; }
  .svc-tab-meta { font-size: 12px; }
  .svc-dir-body { gap: 22px; }
  .svc-subnav { flex-wrap: nowrap; margin: 0 -16px; padding: 0 16px 4px; overflow-x: auto; scrollbar-width: none; }
  .svc-subnav::-webkit-scrollbar { display: none; }
  .svc-sub-head h2 { font-size: 21px; }
  .svc-sub-count { display: none; }
  .svc-sheet { padding: 0 14px 6px; border-radius: 16px; }
  .svc-block h3 { padding-top: 16px; }
  .svc-list { margin: 0 -8px; }
  .svc-row, .clinic .svc-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name price" "unit order"; gap: 6px 12px; padding: 12px 8px; }
  .svc-name { grid-area: name; font-size: 14.5px; }
  .svc-unit { grid-area: unit; align-self: center; }
  .svc-price { grid-area: price; font-size: 15px; }
  .svc-order { grid-area: order; padding: 6px 13px; font-size: 12.5px; }
}

/* Состояние оплаты на странице заказа (ЮKassa) */
.shop-order-payment { margin: 22px 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.shop-order-payment h2 { margin: 0 0 8px; font-size: 17px; }
.shop-order-payment p { margin: 0 0 8px; }
.shop-payment-state strong { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 14px; }
.shop-order-payment.is-paid .shop-payment-state strong { background: rgba(0, 88, 62, .1); color: var(--green); }
.shop-order-payment.is-pending .shop-payment-state strong { background: rgba(192, 154, 66, .16); color: #7a5c17; }
.shop-order-payment.is-canceled .shop-payment-state strong { background: rgba(190, 60, 40, .12); color: #a3331f; }
.shop-order-payment form { margin-top: 12px; }
.shop-payment-note { color: var(--muted); }

/* ==========================================================================
   Личный кабинет покупателя: вход, регистрация, заказы
   Формы опираются на готовые .shop-field / .shop-form / .shop-consent,
   здесь только то, чего в магазине ещё не было.
   ========================================================================== */

.shop-auth { display: grid; justify-items: center; padding: 10px 0 30px; }
.shop-auth-card { width: min(520px, 100%); padding: 32px 34px; border: 1px solid var(--shop-line); border-radius: var(--shop-radius); background: var(--shop-card); box-shadow: var(--soft-shadow); }
.shop-auth-card h1 { margin: 0 0 10px; color: var(--green); font-family: var(--serif); font-size: clamp(26px, 3vw, 34px); font-weight: 500; line-height: 1.1; }
.shop-auth-lead { margin: 0 0 22px; color: rgb(41, 58, 52); font-size: 15px; line-height: 1.55; }
.shop-auth-note { margin: 0 0 18px; padding: 11px 15px; border-left: 3px solid var(--gold); border-radius: 0 9px 9px 0; background: rgba(192, 154, 66, 0.12); color: #6b5420; font-size: 14px; line-height: 1.5; }
.shop-auth-note.is-bad { border-left-color: #b3261e; background: rgba(179, 38, 30, 0.08); color: #8c1d18; }
.shop-auth-note.is-ok { border-left-color: var(--green); background: rgba(0, 88, 62, 0.08); color: var(--green); }
.shop-auth-links { margin: 20px 0 0; color: rgb(72, 92, 85); font-size: 14px; text-align: center; }
.shop-auth-links a { color: var(--green); font-weight: 700; }
.shop-auth-done p { margin: 0 0 12px; font-size: 15px; line-height: 1.6; }
.shop-auth-small { color: rgb(105, 133, 124); font-size: 13.5px; }
.shop-auth-card .shop-btn { width: 100%; margin-top: 6px; }

/* --- сам кабинет --- */
.shop-cabinet { display: grid; gap: 14px; }
.shop-cabinet h2 { margin: 18px 0 2px; color: var(--green); font-family: var(--serif); font-size: 24px; font-weight: 500; }
.shop-cabinet-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 18px; align-items: center; padding: 24px 28px; border: 1px solid var(--shop-line); border-radius: var(--shop-radius); background: var(--shop-card); box-shadow: var(--soft-shadow); }
.shop-cabinet-head h1 { grid-column: 1; margin: 0; color: var(--green); font-family: var(--serif); font-size: clamp(26px, 3vw, 34px); font-weight: 500; }
.shop-cabinet-head p { grid-column: 1; margin: 0; color: rgb(72, 92, 85); font-size: 14.5px; }
.shop-logout { grid-column: 2; grid-row: 1 / 3; }
.shop-link { border: 0; background: none; color: var(--green); font-size: 14px; font-weight: 700; text-decoration: underline; cursor: pointer; }

/* --- список заказов --- */
.shop-order-list { display: grid; gap: 8px; }
.shop-order-row { display: grid; grid-template-columns: minmax(130px, 1fr) 100px minmax(120px, 1fr) minmax(120px, 1fr) 110px; gap: 10px 16px; align-items: center; padding: 15px 18px; border: 1px solid var(--shop-line); border-radius: 12px; background: var(--shop-card); color: #17352c; font-size: 14.5px; transition: border-color 160ms, box-shadow 160ms; }
.shop-order-row:hover { border-color: rgba(0, 88, 62, 0.4); box-shadow: var(--soft-shadow); }
.shop-order-row.is-head { background: var(--wash); color: rgb(105, 133, 124); font-size: 12.5px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; pointer-events: none; }
.shop-order-num { font-weight: 800; }
.shop-order-total { font-weight: 800; text-align: right; }
.shop-order-pay.is-paid { color: var(--green); font-weight: 700; }
.shop-profile { max-width: 560px; }

@media (max-width: 700px) {
  .shop-auth-card { padding: 24px 20px; }
  .shop-cabinet-head { grid-template-columns: 1fr; }
  .shop-logout { grid-column: 1; grid-row: auto; justify-self: start; }
  .shop-order-row { grid-template-columns: 1fr auto; }
  .shop-order-row.is-head { display: none; }
  .shop-order-total { text-align: left; }
}

/* ==========================================================================
   Публичная оферта, сведения о продавце, оговорка об НДС
   ========================================================================== */
.shop-vat { display: block; margin-top: 4px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.shop-summary .shop-vat { margin: -6px 0 12px; text-align: right; }

.shop-legal { display: grid; gap: 8px; margin-top: 10px; padding: 18px 20px; border: 1px solid var(--shop-line); border-radius: var(--shop-radius); background: #fff; color: var(--muted); font-size: 13px; line-height: 1.55; }
.shop-legal nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.shop-legal nav a { color: var(--green); font-weight: 700; text-decoration: none; }
.shop-legal nav a:hover { text-decoration: underline; }
.shop-legal p { margin: 0; }
.shop-legal b { color: var(--ink); }

.shop-oferta { max-width: 860px; padding: 30px 34px; border: 1px solid var(--shop-line); border-radius: var(--shop-radius); background: #fff; box-shadow: var(--soft-shadow); color: var(--ink); font-size: 15px; line-height: 1.6; }
.shop-oferta h1 { margin: 0; color: var(--green); font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); font-weight: 500; }
.shop-oferta-sub { margin: 4px 0 16px; color: var(--muted); font-weight: 600; }
.shop-oferta-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.shop-oferta-nav a { padding: 6px 12px; border: 1px solid var(--shop-line); border-radius: 999px; color: var(--green); font-size: 13px; font-weight: 700; text-decoration: none; }
.shop-oferta-nav a:hover { background: var(--green); color: #fff; }
.shop-oferta h2 { margin: 28px 0 10px; color: var(--green); font-family: var(--serif); font-size: 21px; font-weight: 500; scroll-margin-top: 20px; }
.shop-oferta p { margin: 0 0 9px; }
.shop-oferta .o-d2 { padding-left: 22px; }
.shop-oferta .o-text { padding-left: 22px; color: var(--ink); }
.shop-oferta a { color: var(--green); }

.shop-consent a { color: var(--green); font-weight: 700; }
.shop-order-messages { margin: 22px 0; padding: 18px 20px; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 14px; background: #fff; }
.shop-order-messages h2 { margin: 0 0 10px; font-size: 17px; }
.shop-order-message + .shop-order-message { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.shop-order-message time { color: var(--muted); font-size: 12.5px; font-weight: 700; }
.shop-order-message p { margin: 4px 0 0; }
.shop-order-deadline { margin: 14px 0; padding: 12px 16px; border-radius: 12px; background: rgba(0, 88, 62, .07); color: var(--ink); }
.shop-order-deadline.is-cancelled { background: rgba(178, 59, 46, .08); color: #b23b2e; font-weight: 700; }
.shop-order-cancel { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 14px 0; }
.shop-order-cancel span { color: var(--muted); font-size: 13px; }
@media (max-width: 640px) { .shop-oferta { padding: 20px 18px; font-size: 14.5px; } .shop-oferta .o-d2, .shop-oferta .o-text { padding-left: 12px; } }

/* ==========================================================================
   Шесть разделов на первом экране: два ряда по три.
   ========================================================================== */
.shop-sections.is-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }
.shop-sections.is-grid .shop-section { padding: 30px 30px 28px; }
.shop-sections.is-grid .shop-section-index { font-size: clamp(52px, 7vh, 92px); top: 18px; right: 24px; }
.shop-sections.is-grid .shop-section-name { font-size: clamp(22px, 1.9vw, 30px); }
.shop-sections.is-grid .shop-section-text { font-size: 13.5px; }
.shop-sections.is-grid .shop-section-meta { padding-top: 12px; gap: 10px; flex-direction: row; align-items: center; justify-content: space-between; }
.shop-sections.is-grid .shop-section + .shop-section { box-shadow: inset 1px 0 0 rgba(255, 255, 255, .16), inset 0 1px 0 rgba(255, 255, 255, .16); }
@media (max-width: 900px) {
  .shop-sections.is-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-rows: minmax(170px, auto); height: auto; min-height: 100dvh; }
  .shop-sections.is-grid .shop-section { padding: 22px 20px; }
  .shop-sections.is-grid .shop-section:first-child { padding-top: 64px; }
}

/* ==========================================================================
   Дополнительное образование: как на сайте ДПО — фильтр по виду программы и
   текстовые карточки «вид · срок / название / старт / цена», но в цветах и
   шрифтах юбилейного сайта.
   ========================================================================== */
.dpo { --tone: #163f8d; display: grid; gap: 18px; }
.dpo-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dpo-filters.is-quiet { gap: 6px; }
.dpo-filters-label { color: var(--muted); font-size: 12.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.dpo-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; border: 1px solid var(--shop-line); border-radius: 999px; background: #fff;
  color: var(--ink); font-size: 13.5px; font-weight: 700; text-decoration: none; transition: border-color 150ms, background 150ms, color 150ms; }
.dpo-chip span { color: var(--muted); font-weight: 700; }
.dpo-chip:hover { border-color: var(--tone); color: var(--tone); }
.dpo-chip.is-active { background: var(--tone); border-color: var(--tone); color: #fff; }
.dpo-chip.is-active span { color: rgba(255, 255, 255, .75); }
.dpo-filters.is-quiet .dpo-chip { padding: 5px 12px; font-size: 12.5px; }
.dpo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.dpo-card { display: grid; grid-template-rows: auto 1fr auto auto; gap: 10px; min-height: 210px; padding: 20px 20px 18px; border: 1px solid var(--shop-line);
  border-radius: var(--shop-radius); background: #fff; color: var(--ink); text-decoration: none; box-shadow: inset 0 3px 0 var(--tone), var(--soft-shadow);
  transition: transform 180ms, box-shadow 180ms; }
.dpo-card:hover { transform: translateY(-2px); box-shadow: inset 0 3px 0 var(--tone), 0 14px 32px rgba(15, 40, 35, .12); }
.dpo-card-top { color: var(--tone); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.dpo-card-title { font-family: var(--serif); font-size: 20px; font-weight: 500; line-height: 1.22; }
.dpo-card-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 13px; font-weight: 600; }
.dpo-card-price { padding-top: 10px; border-top: 1px solid var(--shop-line); color: var(--green); font-family: var(--serif); font-size: 21px; font-weight: 700; }
.dpo-source { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.dpo-source a, .dpo-source-link, .dpo-phones a { color: var(--green); font-weight: 700; }
.dpo-phones { color: var(--muted); font-size: 14px; }

.dpo-page { --tone: #163f8d; display: grid; gap: 18px; }
.dpo-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 30px 32px; border: 1px solid var(--shop-line); border-radius: var(--shop-radius);
  background: linear-gradient(135deg, rgba(22, 63, 141, .07), rgba(0, 88, 62, .05) 60%, rgba(192, 154, 66, .07)); }
.dpo-hero.has-image { grid-template-columns: minmax(0, 1.25fr) minmax(260px, .85fr); align-items: center; }
.dpo-hero-kind { margin: 0 0 6px; color: var(--tone); font-size: 12.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.dpo-hero h1 { margin: 0 0 12px; color: var(--green); font-family: var(--serif); font-size: clamp(28px, 3.4vw, 44px); font-weight: 500; line-height: 1.06; }
.dpo-hero p { margin: 0 0 10px; color: var(--ink); font-size: 15.5px; line-height: 1.6; }
.dpo-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 16px; }
.dpo-hero-price { color: var(--green); font-family: var(--serif); font-size: 26px; font-weight: 700; }
.dpo-hero-image img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.dpo-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; margin: 0; border: 1px solid var(--shop-line); border-radius: var(--shop-radius); background: var(--shop-line); overflow: hidden; }
.dpo-facts div { padding: 16px 18px; background: #fff; }
.dpo-facts dt { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.dpo-facts dd { margin: 6px 0 0; color: var(--ink); font-size: 15.5px; font-weight: 700; }
.dpo-block { padding: 24px 28px; border: 1px solid var(--shop-line); border-radius: var(--shop-radius); background: #fff; }
.dpo-block h2 { margin: 0 0 14px; color: var(--green); font-family: var(--serif); font-size: 24px; font-weight: 500; }
.dpo-goals { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 22px; margin: 0; padding: 0; list-style: none; }
.dpo-goals li { position: relative; padding-left: 30px; color: var(--ink); font-size: 15px; line-height: 1.5; }
.dpo-goals li::before { content: "✓"; position: absolute; left: 0; top: 0; display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%;
  background: rgba(0, 88, 62, .1); color: var(--green); font-size: 12px; font-weight: 900; }
.dpo-modules details { border-top: 1px solid var(--shop-line); }
.dpo-modules details:first-child { border-top: 0; }
.dpo-modules summary { position: relative; padding: 14px 34px 14px 0; color: var(--ink); font-size: 15.5px; font-weight: 700; cursor: pointer; list-style: none; }
.dpo-modules summary::-webkit-details-marker { display: none; }
.dpo-modules summary::after { content: "+"; position: absolute; right: 4px; top: 10px; color: var(--tone); font-size: 22px; font-weight: 400; }
.dpo-modules details[open] summary::after { content: "–"; }
.dpo-modules p { margin: 0 0 14px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.dpo-terms p { margin: 14px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
@media (max-width: 760px) {
  .dpo-hero, .dpo-hero.has-image { grid-template-columns: minmax(0, 1fr); padding: 22px 20px; }
  .dpo-block { padding: 20px 18px; }
  .dpo-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dpo-facts div { padding: 14px; }
  .dpo-facts dd { font-size: 14.5px; overflow-wrap: anywhere; }
}

/* ==========================================================================
   Заявка на услугу, обучение или приём.
   ========================================================================== */
.req { display: grid; gap: 18px; max-width: 860px; }
.req-head { padding: 24px 28px; border: 1px solid var(--shop-line); border-radius: 22px; background: linear-gradient(115deg, rgba(0, 88, 62, .08), #fff 60%); box-shadow: var(--soft-shadow); }
.req-head h1 { margin: 0 0 6px; color: var(--green); font-family: var(--serif); font-size: clamp(24px, 2.8vw, 34px); font-weight: 500; line-height: 1.12; }
.req-group { margin: 0; color: var(--muted); font-size: 14px; }
.req-price { margin: 10px 0 0; color: var(--green); font-family: var(--serif); font-size: 22px; font-weight: 700; }
.req-form { padding: 24px 28px; border: 1px solid var(--shop-line); border-radius: var(--shop-radius); background: #fff; }
.shop-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ==========================================================================
   Клиника.
   ========================================================================== */
.clinic-warning { margin: 0; padding: 12px 16px; border: 1px solid rgba(178, 59, 46, .25); border-radius: 12px; background: rgba(178, 59, 46, .06);
  color: #8f2f24; font-size: 14px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; text-align: center; }
.clinic-about { padding: 20px 24px; border: 1px solid var(--shop-line); border-radius: var(--shop-radius); background: #fff; }
.clinic-about h2 { margin: 0 0 6px; color: var(--green); font-family: var(--serif); font-size: 24px; font-weight: 500; }
.clinic-about p { margin: 0; color: var(--muted); font-size: 14px; }
.clinic-about a { color: var(--green); font-weight: 700; }
/* Сетка 3×2: плитки широкие, а снимки — вертикальные. Фото занимает правые
   ~60% плитки во всю высоту (так вертикальный кадр виден почти целиком), слева
   его плавно перекрывает цвет раздела — на нём текст. */
.shop-section.has-photo::before { background-position: var(--focus, center); }
.shop-sections.is-grid .shop-section.has-photo::before { left: 40%; }
.shop-sections.is-grid .shop-section::after {
  background:
    linear-gradient(90deg, var(--tone) 0%, var(--tone) 44%, color-mix(in srgb, var(--tone) 80%, transparent) 54%, color-mix(in srgb, var(--tone) 22%, transparent) 74%, transparent 100%),
    linear-gradient(180deg, transparent 45%, color-mix(in srgb, var(--tone) 70%, transparent) 100%);
}
.shop-sections.is-grid .shop-section:not(.has-photo)::after { background: none; }
.shop-sections.is-grid .shop-section-body { max-width: 56%; }
.shop-sections.is-grid .shop-section-name { text-shadow: 0 2px 14px color-mix(in srgb, var(--tone) 70%, transparent); }
@media (max-width: 900px) {
  .shop-sections.is-grid .shop-section.has-photo::before { left: 45%; }
  .shop-sections.is-grid .shop-section-body { max-width: 75%; }
}

/* ==========================================================================
   Оформление 2026-10: шапка магазина с кабинетом и корзиной, строка навигации,
   первый экран на телефоне столбиком, выравнивание списков и карточек.
   ========================================================================== */
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.shop-icon { width: 20px; height: 20px; flex: none; }

/* --- шапка: плавающая, скруглённая, всегда под рукой --- */
.shop-body .site-header.anniversary-inner-header {
  position: sticky; top: 10px; z-index: 30;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center;
  width: var(--page-content); min-height: 0; margin: 12px auto 0; padding: 10px 12px 10px 22px;
  border: 1px solid rgba(0, 88, 62, .1); border-radius: 22px;
  background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 10px 30px rgba(15, 40, 35, .08);
}
.shop-body .anniversary-inner-header .brand { display: block; line-height: 0; }
.shop-body .anniversary-inner-header .brand img { width: 128px; }
.shop-head-title { justify-self: start; padding: 4px 0 4px 18px; border-left: 1px solid var(--line); color: var(--green); font-family: var(--serif); font-size: 20px; line-height: 1.1; text-decoration: none; white-space: nowrap; transition: color 160ms; }
.shop-head-title:hover { color: var(--gold); }
.shop-body .anniversary-inner-header .header-actions { display: flex; align-items: center; gap: 6px; }
.shop-body .anniversary-inner-header .lang-btn { min-width: 34px; height: 36px; font-size: 13px; }
.shop-actions { display: flex; align-items: center; gap: 8px; margin-right: 8px; }
.shop-act { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--green); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background 160ms, border-color 160ms, color 160ms; }
.shop-act:hover { border-color: var(--green); color: var(--green); }
.shop-act.is-active { border-color: var(--green); background: rgba(0, 88, 62, .07); }
.shop-act-cart { border-color: transparent; background: var(--green); color: #fff; }
.shop-act-cart:hover, .shop-act-cart.is-active { border-color: transparent; background: var(--green-2); color: #fff; }
.shop-act-account.is-signed::after { content: ""; position: absolute; top: 9px; left: 29px; width: 9px; height: 9px; border: 2px solid #fff; border-radius: 50%; background: var(--gold); }
.shop-cart-count { display: inline-grid; min-width: 24px; height: 24px; place-items: center; padding: 0 6px; border-radius: 999px; background: rgba(255, 255, 255, .22); font-size: 13px; font-weight: 800; }
.shop-cart-count.is-filled { background: var(--gold); color: #17352c; }

/* старая ссылка «На главную» под шапкой не нужна: её заменяет строка навигации */
.shop-shell > .back-inline { display: none; }
.shop-body .shop-shell { margin-top: 22px; }

/* --- строка навигации --- */
.shop-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 9px; margin-bottom: -8px; color: var(--muted); font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.shop-crumbs a { color: var(--green); text-decoration: none; transition: color 160ms; }
.shop-crumbs a:hover { color: var(--gold); }
.shop-crumbs-home { display: inline-grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: rgba(0, 88, 62, .08); }
.shop-crumbs-home .shop-icon { width: 16px; height: 16px; }
.shop-crumbs-sep { color: #b9c7c1; }
.shop-crumbs [aria-current] { max-width: 52ch; overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; }

/* --- карточки товаров: описание не растягивает карточку --- */
.shop-card { border-radius: 18px; }
.shop-card-summary { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.shop-card .shop-btn { width: 100%; }

/* --- товар: квадратный кадр без серых полей, галерея лентой --- */
.shop-product { border-radius: 22px; }
.shop-product-main { aspect-ratio: 1 / 1; border: 1px solid var(--shop-line); border-radius: 16px; background: #fff; }
.shop-product-main img { object-fit: contain; background: transparent; }
.shop-thumb { width: 68px; height: 68px; border-radius: 12px; }
.shop-thumb.is-active { border-width: 2px; }
@media (min-width: 1081px) { .shop-product-media { position: sticky; top: 100px; align-self: start; } }

/* --- программа ДПО: кнопка и ссылка в одну линию --- */
.dpo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 18px !important; }

/* --- первый экран: без шапки сайта; поверх плиток — «на главную», кабинет, корзина --- */
body.shop-body:has(.shop-cover) .site-header.anniversary-inner-header { display: none; }
.shop-cover-top { position: absolute; z-index: 6; top: 20px; left: 24px; right: 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; pointer-events: none; }
.shop-cover-top > * { pointer-events: auto; }
.shop-cover-back { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, .42); border-radius: 999px;
  background: rgba(0, 0, 0, .2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-size: 13.5px; font-weight: 700; text-decoration: none; transition: background 160ms; }
.shop-cover-back:hover { background: rgba(0, 0, 0, .36); color: #fff; }
.shop-cover-top .shop-actions { margin: 0; }
.shop-cover-top .shop-act { min-height: 40px; border-color: rgba(255, 255, 255, .42); background: rgba(0, 0, 0, .2); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.shop-cover-top .shop-act:hover { background: rgba(0, 0, 0, .36); color: #fff; }
.shop-cover-top .shop-act-cart { border-color: transparent; background: #fff; color: var(--green); }
.shop-cover-top .shop-act-cart:hover { background: #eef4f1; color: var(--green); }
.shop-cover-top .shop-act-cart .shop-cart-count:not(.is-filled) { background: rgba(0, 88, 62, .1); }
.shop-cover-head { display: none; }
/* номера разделов совпадали с кнопками в углу — в сетке 3×2 они не нужны */
.shop-sections.is-grid .shop-section-index { display: none; }
.shop-sections.is-grid .shop-section:nth-child(-n+3) { padding-top: 76px; }

/* --- планшет и телефон: первый экран — обычная страница, разделы столбиком --- */
@media (max-width: 900px) {
  .shop-cover-top { position: static; padding: 2px 0 0; }
  .shop-cover-back { border-color: var(--line); background: #fff; color: var(--green); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .shop-cover-back:hover { background: #fff; color: var(--gold); }
  .shop-cover-top .shop-act { border-color: var(--line); background: #fff; color: var(--green); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .shop-cover-top .shop-act:hover { background: #fff; color: var(--green); }
  .shop-cover-top .shop-act-cart { border-color: transparent; background: var(--green); color: #fff; }
  .shop-cover-top .shop-act-cart:hover { background: var(--green-2); color: #fff; }
  body:has(.shop-cover) .page-shell,
  body:has(.shop-cover) .shop-shell { width: min(100% - 32px, 760px); margin: 18px auto 34px; gap: 18px; }
  .shop-cover { position: static; display: grid; gap: 16px; }
  .shop-cover-head { display: block; padding: 4px 2px 2px; }
  .shop-cover-eyebrow { margin: 0 0 6px; color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
  .shop-cover-head h1 { margin: 0 0 8px; color: var(--green); font-family: var(--serif); font-size: clamp(30px, 8vw, 42px); font-weight: 500; line-height: 1.05; }
  .shop-cover-head h1 ~ p { margin: 0 0 8px; color: var(--muted); font-size: 15px; line-height: 1.55; }
  .shop-cover-head p:last-child { margin-bottom: 0; }
  .shop-sections, .shop-sections.is-grid { width: auto; height: auto; min-height: 0; grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-rows: auto; gap: 12px; }
  .shop-section, .shop-sections.is-grid .shop-section,
  .shop-sections.is-grid .shop-section:first-child,
  .shop-sections.is-grid .shop-section:nth-child(-n+3) { min-height: 196px; padding: 20px 20px 18px; justify-content: flex-end; border-radius: 20px; box-shadow: 0 10px 26px rgba(15, 40, 35, .14); }
  .shop-section + .shop-section, .shop-sections.is-grid .shop-section + .shop-section { box-shadow: 0 10px 26px rgba(15, 40, 35, .14); }
  .shop-section-index { display: none; }
  .shop-sections.is-grid .shop-section-body { max-width: 66%; gap: 8px; }
  .shop-sections.is-grid .shop-section-name { font-size: 24px; }
  .shop-section-text { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
  .shop-sections.is-grid .shop-section-meta { padding-top: 12px; }
  .shop-section-go { padding: 8px 14px; }
}
@media (min-width: 600px) and (max-width: 900px) {
  .shop-sections, .shop-sections.is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-sections.is-grid .shop-section-body { max-width: 78%; }
}

/* --- телефон --- */
@media (max-width: 760px) {
  .shop-body .site-header.anniversary-inner-header { top: 8px; width: calc(100% - 20px); margin-top: 8px; padding: 7px 7px 7px 14px; gap: 8px; border-radius: 18px; }
  .shop-body .anniversary-inner-header .brand img { width: 100px; }
  .shop-head-title { display: none; }
  .shop-body .anniversary-inner-header .header-actions { gap: 2px; }
  .shop-body .anniversary-inner-header .lang-btn { min-width: 30px; height: 36px; font-size: 12.5px; }
  .shop-actions { gap: 6px; margin-right: 4px; }
  .shop-act { width: 42px; min-height: 42px; padding: 0; justify-content: center; }
  .shop-act-label { display: none; }
  .shop-act-account.is-signed::after { top: 6px; left: 24px; }
  .shop-act .shop-cart-count { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border: 2px solid #fff; font-size: 11px; }
  .shop-act .shop-cart-count:not(.is-filled) { display: none; }
  .shop-body .shop-shell { margin-top: 16px; gap: 20px; }

  .shop-crumbs { gap: 4px 7px; font-size: 13px; }
  .shop-crumbs [aria-current] { max-width: 62vw; }

  .shop-section-head { min-height: 0; border-radius: 18px; }
  .shop-section-head-photo { display: none; }
  .shop-section-head-copy, .shop-section-head.has-photo .shop-section-head-copy { padding: 22px 20px; gap: 8px; }
  .shop-section-head p { font-size: 14.5px; }

  /* разделы и фильтры — лентой, а не пятью строками кнопок */
  .shop-filters, .dpo-filters { flex-wrap: nowrap; margin: 0 -16px; padding: 2px 16px 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .shop-filters::-webkit-scrollbar, .dpo-filters::-webkit-scrollbar { display: none; }
  .shop-chip, .dpo-chip, .dpo-filters-label { flex: 0 0 auto; white-space: nowrap; }
  .shop-chip { min-height: 38px; padding: 0 15px; font-size: 13.5px; }

  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .shop-card { border-radius: 16px; }
  .shop-card-body { padding: 12px 12px 14px; gap: 7px; }
  .shop-card-body h3 { font-size: 16px; }
  .shop-card-summary { font-size: 12.5px; -webkit-line-clamp: 2; }
  .shop-card-price strong { font-size: 19px; }
  .shop-card .shop-btn { min-height: 40px; padding: 0 8px; font-size: 13px; }

  .shop-product { padding: 14px; gap: 18px; border-radius: 18px; }
  .shop-thumbs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .shop-thumbs::-webkit-scrollbar { display: none; }
  .shop-thumb { flex: 0 0 auto; width: 58px; height: 58px; }
  .shop-product-info h1 { font-size: 27px; }
  .shop-qty { grid-template-columns: 36px 44px 36px; }

  .shop-steps li { padding: 12px 14px; }
  .shop-info { gap: 18px; padding: 20px 18px; }
  .dpo-card { min-height: 0; padding: 18px 16px 16px; }
  .dpo-card-title { font-size: 18px; }
  .req-head, .req-form { padding: 20px 18px; }
}
/* название магазина в шапке — только там, где ему хватает места */
@media (max-width: 1100px) { .shop-head-title { display: none; } }

/* --- поля форм: подписи у полей кабинета, выпадающие списки --- */
.shop-field { min-width: 0; }
.shop-field > span { color: var(--muted); font-size: 13px; font-weight: 700; }
.shop-field small { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.shop-field select { width: 100%; min-width: 0; min-height: 46px; padding: 0 40px 0 14px; border: 1px solid var(--shop-line); border-radius: 10px; color: var(--text); font: inherit; font-size: 15px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300583e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px;
  -webkit-appearance: none; appearance: none; cursor: pointer; }
.shop-field select:focus { outline: 2px solid rgba(0, 88, 62, 0.35); outline-offset: 1px; border-color: var(--green); }
.shop-field input { min-height: 46px; }
.shop-recipient { margin: 0 0 4px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.shop-recipient strong { color: var(--ink); }
.shop-recipient a { color: var(--green); font-weight: 700; }

/* --- кабинет: данные для доставки и пароль — карточками --- */
.shop-cabinet-head { border-radius: 22px; }
.shop-cabinet h2 { margin: 14px 0 0; }
.shop-profile { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; max-width: none; padding: 24px 26px; border: 1px solid var(--shop-line); border-radius: 18px; background: #fff; box-shadow: var(--soft-shadow); }
.shop-profile label[for="shop-name"], .shop-profile label[for="shop-address"] { grid-column: 1 / -1; }
.shop-profile .shop-btn { grid-column: 1 / -1; justify-self: start; }
.shop-cabinet-password { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 0; padding: 18px 22px; border: 1px solid var(--shop-line); border-radius: 18px; background: #fff; color: var(--muted); font-size: 14.5px; }
.shop-order-row { border-radius: 14px; }
.shop-auth-card { border-radius: 22px; }

/* --- заказ: блоки внутри по левому краю, одной ширины --- */
.shop-order-done { border-radius: 22px; }
.shop-order-done .shop-order-payment, .shop-order-done .shop-order-messages, .shop-order-done .shop-order-deadline,
.shop-order-done .shop-order-cancel { width: min(100%, 520px); margin: 0; text-align: left; }
.shop-order-payment h2 { font-family: var(--serif); font-weight: 500; color: var(--green); font-size: 19px; }

/* --- шаги: заголовок и текст рядом с номером, без провала посередине --- */
.shop-steps li { grid-template-rows: auto auto; align-content: start; }
.shop-steps strong { align-self: end; }

/* --- заявка: форма слева, шаги справа --- */
@media (min-width: 1000px) {
  .req { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; max-width: none; }
  .req > * { grid-column: 1; }
  .req > .shop-steps { grid-column: 2; grid-row: 1 / span 3; grid-template-columns: minmax(0, 1fr); position: sticky; top: 100px; }
}
.req-form { border-radius: 22px; box-shadow: var(--soft-shadow); }
.req .shop-auth { justify-items: stretch; padding: 0; }
.req .shop-auth-card { width: 100%; }
.req .shop-auth-card h2 { margin: 0 0 8px; color: var(--green); font-family: var(--serif); font-size: 24px; font-weight: 500; }
.req .shop-auth-card p:last-child { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 0; }
.req .shop-auth-card .shop-btn { width: auto; }

@media (max-width: 760px) {
  .shop-profile { grid-template-columns: minmax(0, 1fr); padding: 18px 16px; }
  .shop-cabinet-head { padding: 20px 18px; border-radius: 18px; }
  .shop-cabinet-password { padding: 16px; }
  .shop-cabinet-password .shop-btn { width: 100%; }
  .shop-order-done { padding: 30px 16px; border-radius: 18px; }
}

/* --- галерея товара: стрелки и счётчик поверх кадра --- */
.shop-product-main { position: relative; }
.shop-product-main img { position: absolute; inset: 0; transition: opacity 160ms; }
.shop-product-main img.is-loading { opacity: .55; }
.shop-gal-nav { position: absolute; top: 50%; z-index: 2; display: grid; width: 44px; height: 44px; place-items: center; margin-top: -22px; padding: 0;
  border: 1px solid rgba(0, 88, 62, .14); border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--green); cursor: pointer;
  box-shadow: 0 6px 18px rgba(15, 40, 35, .14); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background 150ms, color 150ms, transform 150ms, opacity 150ms; }
.shop-gal-nav svg { width: 20px; height: 20px; }
.shop-gal-nav:hover { background: var(--green); color: #fff; }
.shop-gal-nav:active { transform: scale(.94); }
.shop-gal-nav.is-prev { left: 14px; }
.shop-gal-nav.is-next { right: 14px; }
.shop-gal-count { position: absolute; right: 14px; bottom: 14px; z-index: 2; padding: 4px 10px; border-radius: 999px; background: rgba(13, 51, 45, .62); color: #fff;
  font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.shop-thumbs { scroll-behavior: smooth; }
@media (hover: hover) {
  .shop-gal-nav { opacity: 0; }
  .shop-product-main:hover .shop-gal-nav, .shop-gal-nav:focus-visible { opacity: 1; }
}
@media (max-width: 760px) {
  .shop-gal-nav { width: 38px; height: 38px; margin-top: -19px; }
  .shop-gal-nav.is-prev { left: 8px; }
  .shop-gal-nav.is-next { right: 8px; }
  .shop-gal-count { right: 10px; bottom: 10px; }
}
/* в одну колонку квадратный кадр не шире 560px — иначе на планшете фото в экран высотой */
@media (max-width: 1080px) { .shop-product-media { width: 100%; max-width: 560px; margin: 0 auto; } }

/* ==========================================================================
   2026-10-21: полиграфия мини-карточками, остатки, плитки без счётчиков
   ========================================================================== */
/* первый экран: без «4 товара» кнопка «Открыть» — справа */
.shop-section-meta { justify-content: flex-end; }
.shop-sections.is-grid .shop-section-meta { justify-content: flex-end; }

/* полиграфия: карточки как у ДПО, внизу — цена «от» и призыв */
.print { --tone: #00583e; }
.print-lead { max-width: 76ch; margin: 0; color: rgb(41, 58, 52); font-size: 15px; line-height: 1.6; }
.print .dpo-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.print-card { min-height: 0; grid-template-rows: auto auto 1fr auto; }
.print-card .dpo-card-meta { font-weight: 500; line-height: 1.5; }
.print-card .dpo-card-price { display: grid; gap: 8px; }
.print-go { color: var(--tone); font-family: var(--sans); font-size: 13.5px; font-weight: 800; white-space: nowrap; }
.print-card:hover .print-go { text-decoration: underline; }

/* форма заявки: поле файла */
.req-files input[type=file] { padding: 14px; border: 1.5px dashed color-mix(in srgb, var(--green) 35%, var(--shop-line)); border-radius: 12px; background: rgba(0, 88, 62, .03); font: inherit; font-size: 14px; cursor: pointer; }
.req-files input[type=file]::file-selector-button { margin-right: 12px; padding: 8px 14px; border: 0; border-radius: 999px; background: var(--green); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.shop-required { margin-left: 3px; }
.shop-file-size { color: var(--muted); font-size: 12.5px; }

/* остаток товара */
.shop-stock { display: inline-flex; align-items: center; gap: 7px; }
.shop-stock.is-low { color: #a5631b; }
.shop-card .shop-stock { margin: -2px 0 0; font-size: 12.5px; }
.shop-card .shop-stock .shop-icon { width: 15px; height: 15px; }

/* ==========================================================================
   Клиника мини-карточками (как ДПО и полиграфия)
   ========================================================================== */
.dpo.clinic { --tone: #2b6c8f; }
.clinic-about { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; align-items: center; border-radius: 18px; }
.clinic-about p { line-height: 1.55; }
.clinic-contacts { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; color: var(--ink); font-size: 14px; font-weight: 600; }
.clinic-contacts a { color: var(--tone); font-weight: 800; text-decoration: none; }
.clinic-contacts a:hover { text-decoration: underline; }
.req-text { margin: 8px 0 0; color: var(--ink); font-size: 15px; line-height: 1.55; max-width: 62ch; }
.req-more { margin: 8px 0 0; font-size: 14px; }
.req-more a { color: var(--green); font-weight: 700; }
.req > .clinic-warning { font-size: 13px; }
@media (max-width: 760px) {
  .clinic-about { grid-template-columns: minmax(0, 1fr); }
}

/* две клиники: адреса рядом, услуги — блоками по клиникам */
.clinic-places { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.clinic-places .clinic-about { display: block; }
.clinic-places .clinic-about h2 { font-size: 21px; margin-bottom: 10px; }
.clinic-block { display: grid; gap: 14px; scroll-margin-top: 100px; }
.clinic-block + .clinic-block { margin-top: 14px; }
.clinic-block .svc-sub-head h2 { color: var(--ink); }

/* ==========================================================================
   Услуги: группы карточек с фото, страница услуги
   ========================================================================== */
.svcx { --tone: var(--green); display: grid; gap: 30px; }
.svcx-group { display: grid; gap: 16px; scroll-margin-top: 100px; }
.svcx-head h2 { margin: 0 0 6px; color: var(--green); font-family: var(--serif); font-size: clamp(24px, 2.4vw, 32px); font-weight: 500; }
.svcx-head p { max-width: 76ch; margin: 0; color: rgb(41, 58, 52); font-size: 15px; line-height: 1.6; }
.svcx-card .shop-card-media { aspect-ratio: 3 / 2; }
.svcx-card .shop-badge { background: #fff; color: var(--green); }
/* заглушка без фото: фирменный фон и название */
.svc-ph { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 22px;
  background: radial-gradient(120% 90% at 85% 10%, rgba(192, 154, 66, .35), transparent 55%), linear-gradient(140deg, #0b6b4c, #00583e 55%, #0d332d); color: #fff; overflow: hidden; }
.svc-ph::after { content: "150"; position: absolute; right: -6px; top: -18px; font-family: var(--serif); font-size: 140px; line-height: 1; color: rgba(243, 226, 176, .16); }
.svc-ph-group { color: rgba(243, 226, 176, .9); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.svc-ph-title { position: relative; z-index: 1; font-family: var(--serif); font-size: 26px; line-height: 1.12; }
.shop-product-main-empty { position: relative; aspect-ratio: 1 / 1; }
.shop-product-main-empty .svc-ph { border-radius: 16px; }
.shop-product-main-empty .svc-ph-title { font-size: 34px; }
.svcx-page .shop-btn-lg { margin: 4px 0 4px; }
.svcx-options { display: grid; gap: 0; margin: 12px 0; border: 1px solid var(--shop-line); border-radius: 14px; overflow: hidden; }
.svcx-options div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 16px; }
.svcx-options div + div { border-top: 1px solid var(--shop-line); }
.svcx-options dt { color: var(--ink); font-weight: 600; }
.svcx-options dd { margin: 0; color: var(--green); font-weight: 800; white-space: nowrap; }
.svcx-note { padding-left: 13px; border-left: 2px solid var(--gold); color: var(--muted); }
.svcx-contacts { margin-top: 22px; padding: 18px 20px; border-radius: 16px; background: var(--wash); }
.svcx-contacts h2 { margin: 0 0 10px; color: var(--green); font-family: var(--serif); font-size: 20px; font-weight: 500; }
.svcx-contacts ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14.5px; }
.svcx-contacts li span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.svcx-contacts a { color: var(--green); font-weight: 800; }
@media (max-width: 760px) { .svc-ph-title { font-size: 19px; } .svc-ph { padding: 14px; } .svc-ph::after { font-size: 90px; } }

.svcx-hint { margin: 0 0 4px; color: var(--muted); font-size: 14px; line-height: 1.5; }

.shop-field small.is-moved { color: #a5631b; font-weight: 700; }

/* ==========================================================================
   Редизайн 2026-10-28: «Университет, который остаётся с вами».
   Один спокойный тон вместо радуги разделов: университетский зелёный,
   слоновая кость, золото — только как акцент. Магазин отвечает на вопросы
   покупателя (где забрать, как оплатить, обмен) там, где они возникают.
   ========================================================================== */
body.shop-page { --ivory: #f6f3ec; --paper: #fffdf8; --ink-soft: #2f433c; --hair: rgba(13, 51, 45, .1); background: var(--ivory); }
body.shop-page .shop-shell { gap: 34px; padding-bottom: 20px; }

/* подвал юбилейного сайта: поздравление и «обсудить партнёрство» покупателю не нужны */
body.shop-page .footer-countdown, body.shop-page .footer-contact { display: none !important; }
body.shop-page > .contact-line { display: none; }

.shop-eyebrow { margin: 0 0 10px; color: #8a6d2c; font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.shop-eyebrow a { color: inherit; text-decoration: none; }
.shop-eyebrow a:hover { color: var(--green); }

.shop-btn-ghost { border-color: rgba(0, 88, 62, .28); background: transparent; color: var(--green); }
.shop-btn-ghost:hover { border-color: var(--green); background: rgba(0, 88, 62, .05); }
.shop-btn-light { background: #fff; color: var(--green); }
.shop-btn-light:hover { background: #f1ebdc; }

/* --- навигация по направлениям --- */
.shop-nav { display: flex; gap: 4px; margin: 4px 0 -14px; padding: 4px; overflow-x: auto; border: 1px solid var(--hair); border-radius: 999px; background: var(--paper); scrollbar-width: none; width: max-content; max-width: 100%; }
.shop-nav::-webkit-scrollbar { display: none; }
.shop-nav-link { flex: none; padding: 9px 18px; border-radius: 999px; color: var(--ink-soft); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background 160ms, color 160ms; }
.shop-nav-link:hover { background: rgba(0, 88, 62, .06); color: var(--green); }
.shop-nav-link.is-active { background: var(--green); color: #fff; }

/* --- шапка раздела: заголовок и пара фраз, без постановочных фото --- */
.shop-page-head { max-width: 760px; }
.shop-page-head h1 { margin: 0 0 12px; color: var(--green); font-family: var(--serif); font-size: clamp(32px, 4vw, 48px); font-weight: 500; line-height: 1.05; }
.shop-page-head p { margin: 0; color: var(--ink-soft); font-size: 17px; line-height: 1.6; }

/* --- главная: первый экран --- */
.shop-home-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; min-height: 520px; overflow: hidden;
  border: 1px solid var(--hair); border-radius: 28px; background: var(--paper); }
.shop-home-hero-copy { position: relative; z-index: 1; padding: 56px 20px 56px 56px; }
.shop-home-hero h1 { margin: 0 0 18px; color: var(--green); font-family: var(--serif); font-size: clamp(38px, 4.6vw, 64px); font-weight: 500; line-height: 1.02; letter-spacing: -.01em; }
.shop-home-lead { max-width: 34em; margin: 0 0 28px; color: var(--ink-soft); font-size: 18px; line-height: 1.6; }
.shop-home-memory { max-width: 34em; margin: 0 0 14px; padding-left: 16px; border-left: 3px solid var(--gold, #c09a42); color: var(--ink-soft); font-family: var(--serif); font-size: 17px; font-style: italic; line-height: 1.55; }
.shop-home-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.shop-home-cta .shop-btn-lg { width: auto; padding: 0 28px; }
.shop-home-hero-art { align-self: stretch; margin: 0; }
.shop-home-hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }

/* --- обещания покупателю --- */
.shop-promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border: 1px solid var(--hair); border-radius: 20px; background: var(--paper); }
.shop-promises li { display: flex; gap: 14px; padding: 20px 22px; }
.shop-promises li + li { border-left: 1px solid var(--hair); }
.shop-promises .shop-icon { width: 26px; height: 26px; margin-top: 2px; color: var(--green); }
.shop-promises strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: 15px; }
.shop-promises span { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.shop-home-hero + .shop-promises { margin-top: -18px; }

/* --- заголовки блоков --- */
.shop-block-head { margin-bottom: 18px; }
.shop-block-head h2, .shop-howto h2, .shop-corporate h2 { margin: 0 0 6px; color: var(--green); font-family: var(--serif); font-size: clamp(26px, 2.6vw, 34px); font-weight: 500; line-height: 1.12; }
.shop-block-head p { margin: 0; color: var(--muted); font-size: 15.5px; }
.shop-block-head.is-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.shop-link-more { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-weight: 800; font-size: 14.5px; text-decoration: none; white-space: nowrap; }
.shop-link-more:hover { color: #8a6d2c; }
.shop-link-more .shop-icon { width: 18px; height: 18px; }

/* --- направления --- */
.shop-dirs-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.shop-dir { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--hair); border-radius: 22px; background: var(--paper); color: inherit; text-decoration: none; transition: transform 200ms, box-shadow 200ms, border-color 200ms; }
.shop-dir:hover { transform: translateY(-3px); border-color: rgba(0, 88, 62, .25); box-shadow: 0 18px 40px rgba(13, 51, 45, .1); }
.shop-dir-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #ece6d8; }
.shop-dir-media > img { width: 100%; height: 100%; object-fit: cover; }
.shop-dir.is-clinic .shop-dir-media > img { object-position: 40% 30%; }
.shop-dir.is-dpo .shop-dir-media > img { object-position: 50% 35%; }
.shop-dir-collage { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 100%; height: 100%; background: var(--hair); }
.shop-dir-collage img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.shop-dir-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 20px 22px 22px; }
.shop-dir-title { color: var(--green); font-family: var(--serif); font-size: 23px; line-height: 1.15; }
.shop-dir-lead { color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; }
.shop-dir-go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; color: var(--green); font-size: 14.5px; font-weight: 800; }
.shop-dir-go .shop-icon { width: 18px; height: 18px; transition: transform 200ms; }
.shop-dir:hover .shop-dir-go .shop-icon { transform: translateX(4px); }

/* --- юбилейная коллекция --- */
.shop-spotlight { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 34px; align-items: center; padding: 44px; border-radius: 28px;
  background: radial-gradient(120% 140% at 0% 0%, #0d6b4d 0%, #00442f 55%, #06291f 100%); color: #f3efe3; }
.shop-spotlight .shop-eyebrow { color: #d9bd78; }
.shop-spotlight h2 { margin: 0 0 14px; color: #fff; font-family: var(--serif); font-size: clamp(30px, 3.4vw, 46px); font-weight: 500; line-height: 1.05; }
.shop-spotlight p { margin: 0 0 24px; color: rgba(243, 239, 227, .85); font-size: 16px; line-height: 1.65; }
.shop-spotlight-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.shop-spotlight-item { display: block; overflow: hidden; border-radius: 18px; background: #fff; color: var(--ink); text-decoration: none; transition: transform 200ms; }
.shop-spotlight-item:hover { transform: translateY(-3px); }
.shop-spotlight-item img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; }
.shop-spotlight-item span { display: flex; justify-content: space-between; gap: 10px; padding: 12px 16px 14px; font-weight: 700; font-size: 14.5px; }
.shop-spotlight-item b { color: var(--green); white-space: nowrap; }

/* --- карточки товаров --- */
.shop-grid.is-four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
body.shop-page .shop-card { border-color: var(--hair); border-radius: 20px; background: var(--paper); box-shadow: none; }
body.shop-page .shop-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(13, 51, 45, .09); }
body.shop-page .shop-card-media { aspect-ratio: 1; background: #fff; }
body.shop-page .shop-card-media img { object-fit: cover; }
body.shop-page .shop-card-body { gap: 8px; padding: 16px 18px 18px; }
.shop-card-eyebrow { margin: 0; color: #8a6d2c; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
body.shop-page .shop-card-body h3 { font-size: 19px; }
body.shop-page .shop-card-summary { -webkit-line-clamp: 2; font-size: 13.5px; }
body.shop-page .shop-card-price strong { font-size: 22px; color: var(--ink); }
body.shop-page .shop-stock { color: var(--muted); font-size: 12.5px; font-weight: 600; }
body.shop-page .shop-stock .shop-icon { width: 15px; height: 15px; color: var(--green); }
body.shop-page .shop-stock.is-low { color: var(--muted); }
body.shop-page .shop-stock.is-low .shop-icon { color: #8a6d2c; }
body.shop-page .shop-card .shop-btn { min-height: 42px; font-size: 14px; }
body.shop-page .shop-badge { background: #fff; color: var(--green); box-shadow: 0 2px 10px rgba(0, 0, 0, .08); letter-spacing: .06em; font-size: 11px; }

/* --- коллекции в разделе «Сувениры и одежда» --- */
.shop-tabs { display: flex; flex-wrap: wrap; gap: 6px 26px; margin-top: -8px; border-bottom: 1px solid var(--hair); }
.shop-tab { display: inline-flex; align-items: center; gap: 8px; padding: 12px 0; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--ink-soft); font-size: 15px; font-weight: 700; text-decoration: none; }
.shop-tab span { color: var(--muted); font-weight: 600; font-size: 13px; }
.shop-tab:hover { color: var(--green); }
.shop-tab.is-active { border-bottom-color: var(--green); color: var(--green); }
.shop-collection { display: grid; gap: 16px; }
.shop-collection-head h2 { margin: 0 0 4px; font-family: var(--serif); font-size: 26px; font-weight: 500; }
.shop-collection-head h2 a { color: var(--green); text-decoration: none; }
.shop-collection-head h2 a:hover { color: #8a6d2c; }
.shop-collection-head p { margin: 0; max-width: 70ch; color: var(--muted); font-size: 14.5px; line-height: 1.55; }

/* --- как получить заказ --- */
.shop-howto { padding: 34px 36px; border: 1px solid var(--hair); border-radius: 24px; background: var(--paper); }
.shop-howto ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 18px 0 0; padding: 0; list-style: none; }
.shop-howto li { position: relative; }
.shop-howto-n { display: grid; width: 38px; height: 38px; margin-bottom: 12px; place-items: center; border: 1px solid rgba(0, 88, 62, .3); border-radius: 50%; color: var(--green); font-family: var(--serif); font-size: 18px; }
.shop-howto strong { display: block; margin-bottom: 6px; color: var(--ink); font-size: 16px; }
.shop-howto p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }

/* --- подарки для мероприятий --- */
.shop-corporate { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 32px 36px; border: 1px solid rgba(138, 109, 44, .28); border-radius: 24px; background: linear-gradient(120deg, #fbf6ea, #f4ecda); }
.shop-corporate p { max-width: 62ch; margin: 0; color: var(--ink-soft); font-size: 15.5px; line-height: 1.6; }
.shop-corporate-actions { display: flex; flex-wrap: wrap; gap: 10px; flex: none; }

/* --- товар: что будет после «В корзину» --- */
body.shop-page .shop-product { border-color: var(--hair); background: var(--paper); box-shadow: none; }
body.shop-page .shop-product-info h1 { color: var(--ink); }
body.shop-page .shop-product-price strong { color: var(--ink); }
body.shop-page .shop-vat { color: var(--muted); font-size: 13px; }
.shop-assure { display: grid; gap: 12px; margin: 22px 0 0; padding: 18px 20px; list-style: none; border-radius: 16px; background: #f4f0e6; }
.shop-assure li { display: flex; gap: 12px; }
.shop-assure .shop-icon { width: 22px; height: 22px; margin-top: 1px; color: var(--green); }
.shop-assure strong { display: block; color: var(--ink); font-size: 14.5px; }
.shop-assure span { color: var(--ink-soft); font-size: 13.5px; line-height: 1.5; }
.shop-assure-more { margin: 8px 0 0; font-size: 13.5px; }
.shop-assure-more a { color: var(--green); font-weight: 700; }
body.shop-page .shop-product-desc .shop-sku { margin: 14px 0 0; font-weight: 600; letter-spacing: 0; }

/* --- подвал магазина --- */
.shop-foot { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 28px 40px; padding: 36px 40px 28px; border-radius: 28px; background: #0f3a2e; color: rgba(243, 239, 227, .86); }
.shop-foot h2 { margin: 0 0 8px; color: #fff; font-family: var(--serif); font-size: 28px; font-weight: 500; }
.shop-foot h3 { margin: 4px 0 12px; color: #d9bd78; font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.shop-foot p { margin: 0; font-size: 14.5px; line-height: 1.6; }
.shop-foot ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14.5px; }
.shop-foot a { color: #fff; text-decoration: none; }
.shop-foot a:hover { color: #d9bd78; }
.shop-foot .is-muted { color: rgba(243, 239, 227, .6); }
.shop-foot-contacts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.shop-foot-contacts a { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; font-weight: 700; }
.shop-foot-contacts a:hover { border-color: #d9bd78; }
.shop-foot-legal { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); color: rgba(243, 239, 227, .55); font-size: 12.5px !important; }

/* --- медицина: обязательное предупреждение — заметно, но без крика --- */
body.shop-page .clinic-warning, body.shop-page .shop-warning { border-radius: 14px; }

/* --- адаптив --- */
@media (max-width: 1180px) {
  .shop-dirs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-grid.is-four { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .shop-home-hero { grid-template-columns: 1fr; min-height: 0; }
  .shop-home-hero-copy { padding: 32px 26px 8px; }
  .shop-home-hero-art { order: -1; height: 220px; }
  .shop-home-hero-art img { -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); object-position: 50% 45%; }
  .shop-home-cta { padding-bottom: 26px; }
  .shop-home-hero + .shop-promises { margin-top: 0; }
  .shop-spotlight { grid-template-columns: 1fr; padding: 30px 24px; }
  .shop-howto ol { grid-template-columns: 1fr; gap: 18px; }
  .shop-corporate { flex-direction: column; align-items: flex-start; padding: 26px 24px; }
  .shop-grid.is-four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .shop-foot { grid-template-columns: 1fr; padding: 28px 24px; }
}
@media (max-width: 600px) {
  body.shop-page .shop-shell { gap: 26px; }
  .shop-home-hero { border-radius: 22px; }
  .shop-home-hero h1 { font-size: 36px; }
  .shop-home-lead { font-size: 16px; }
  .shop-home-memory { font-size: 15px; }
  .shop-home-cta .shop-btn-lg { width: 100%; }
  .shop-promises { grid-template-columns: 1fr; }
  .shop-promises li + li { border-left: 0; border-top: 1px solid var(--hair); }
  .shop-promises li { padding: 14px 18px; }
  .shop-dirs-grid { grid-template-columns: 1fr; gap: 14px; }
  .shop-dir-media { aspect-ratio: 16 / 9; }
  .shop-howto { padding: 24px 20px; }
  .shop-block-head.is-row { flex-direction: column; align-items: flex-start; }
  body.shop-page .shop-card-body { padding: 12px 12px 14px; }
  body.shop-page .shop-card-body h3 { font-size: 16px; }
  body.shop-page .shop-card-summary { display: none; }
  body.shop-page .shop-card-price strong { font-size: 18px; }
  .shop-page-head p { font-size: 15.5px; }
  .shop-tabs { gap: 4px 18px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .shop-tab { flex: none; }
  .shop-nav { margin-bottom: -8px; }
}
body.shop-page .clinic-warning { padding: 12px 16px; border: 1px solid rgba(138, 109, 44, .35); background: #fbf6ea; color: #6b5420; font-size: 13.5px; font-weight: 700; letter-spacing: .02em; text-transform: none; text-align: left; }

/* подвал юбилейного сайта в магазине не показываем — у магазина свой */
body.shop-page footer.site-wide-footer { display: none !important; }
.shop-foot-site { display: inline-block; margin-right: 14px; color: rgba(243, 239, 227, .85) !important; font-weight: 700; }
@media (max-width: 600px) {
  .shop-spotlight-item span { flex-direction: column; gap: 2px; padding: 10px 12px 12px; font-size: 13.5px; }
}

/* услуги, обучение, клиника — в общей палитре магазина, без синего и бирюзового */
body.shop-page .dpo, body.shop-page .svc, body.shop-page .svcx, body.shop-page .clinic, body.shop-page .req { --tone: var(--green); }
body.shop-page .dpo-card { border-color: var(--hair); background: var(--paper); box-shadow: none; }
body.shop-page .dpo-card:hover { box-shadow: 0 14px 32px rgba(13, 51, 45, .09); }
body.shop-page .dpo-card-top { color: #8a6d2c; letter-spacing: .08em; }
body.shop-page .dpo-card-price { color: var(--ink); }
body.shop-page .dpo-chip { border-color: var(--hair); background: var(--paper); }
body.shop-page .clinic-about > div, body.shop-page .clinic-about > section { border-color: var(--hair); background: var(--paper); box-shadow: none; }
body.shop-page .dpo-page, body.shop-page .print { --tone: var(--green); }
body.shop-page .clinic-about { border-color: var(--hair); background: var(--paper); box-shadow: none; }
/* длинные полосы (направления, вкладки) прокручиваются сами и не растягивают страницу */
body.shop-page .shop-shell > * { min-width: 0; }
body.shop-page .shop-nav { width: auto; justify-self: start; }
body.shop-page .dpo-chip.is-active { border-color: var(--green); background: var(--green); color: #fff; }
.shop-cart-subtotal { margin: -10px 0 0; color: var(--ink-soft); font-size: 15px; text-align: right; }
.shop-cart-subtotal strong { color: var(--ink); font-size: 18px; }

/* корзина, оформление, заказ, кабинет — в той же спокойной палитре */
body.shop-page .shop-block, body.shop-page .shop-line, body.shop-page .shop-lines, body.shop-page .shop-summary, body.shop-page .shop-empty-state,
body.shop-page .shop-auth-card, body.shop-page .shop-order-summary, body.shop-page .shop-order-payment, body.shop-page .shop-order-next {
  border-color: var(--hair); background: var(--paper); box-shadow: none; }
body.shop-page .shop-page-title { color: var(--green); font-family: var(--serif); font-weight: 500; }

/* ==========================================================================
   2026-10-28, правки: снимок главной юбилейного сайта в первом экране;
   направления без фотографий — иконка, номер, что внутри; при наведении
   карточка заливается университетским зелёным.
   ========================================================================== */
.shop-home-hero-art picture { display: block; width: 100%; height: 100%; }
.shop-home-hero-art img { object-position: 72% 42%; }

.shop-dirs-grid { gap: 16px; }
.shop-dir { position: relative; isolation: isolate; gap: 14px; min-height: 340px; padding: 26px 26px 24px; overflow: hidden;
  background: linear-gradient(160deg, var(--paper) 0%, #f7f1e3 100%); transition: transform 220ms, box-shadow 220ms, background 260ms, color 260ms, border-color 220ms; }
.shop-dir::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(130% 120% at 0% 0%, #0d6b4d 0%, #00442f 60%, #06291f 100%); opacity: 0; transition: opacity 260ms; }
.shop-dir:hover, .shop-dir:focus-visible { transform: translateY(-4px); border-color: transparent; box-shadow: 0 22px 44px rgba(0, 68, 47, .22); }
.shop-dir:hover::before, .shop-dir:focus-visible::before { opacity: 1; }
.shop-dir-top { display: flex; align-items: center; justify-content: space-between; }
.shop-dir-icon { display: grid; width: 58px; height: 58px; place-items: center; border: 1px solid rgba(138, 109, 44, .38); border-radius: 50%; background: #fbf6ea; color: var(--green); transition: background 260ms, color 260ms, border-color 260ms; }
.shop-dir-icon .shop-icon { width: 28px; height: 28px; }
.shop-dir-num { color: #8a6d2c; font-family: var(--serif); font-size: 15px; letter-spacing: .14em; transition: color 260ms; }
.shop-dir .shop-dir-title { margin-top: 8px; font-size: 26px; transition: color 260ms; }
.shop-dir .shop-dir-lead { transition: color 260ms; }
.shop-dir-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.shop-dir-tags span { padding: 4px 10px; border: 1px solid var(--hair); border-radius: 999px; background: rgba(255, 255, 255, .6); color: var(--ink-soft); font-size: 12px; font-weight: 700; transition: background 260ms, color 260ms, border-color 260ms; }
.shop-dir .shop-dir-go { transition: color 260ms; }
.shop-dir-mark { position: absolute; right: -34px; bottom: -40px; z-index: -1; color: var(--green); opacity: .06; pointer-events: none; transition: color 260ms, opacity 260ms; }
.shop-dir-mark .shop-icon { width: 190px; height: 190px; stroke-width: 1; }
.shop-dir:hover .shop-dir-icon, .shop-dir:focus-visible .shop-dir-icon { border-color: rgba(217, 189, 120, .6); background: rgba(255, 255, 255, .08); color: #fff; }
.shop-dir:hover .shop-dir-num, .shop-dir:focus-visible .shop-dir-num { color: #d9bd78; }
.shop-dir:hover .shop-dir-title, .shop-dir:hover .shop-dir-go, .shop-dir:focus-visible .shop-dir-title, .shop-dir:focus-visible .shop-dir-go { color: #fff; }
.shop-dir:hover .shop-dir-lead, .shop-dir:focus-visible .shop-dir-lead { color: rgba(243, 239, 227, .85); }
.shop-dir:hover .shop-dir-tags span, .shop-dir:focus-visible .shop-dir-tags span { border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08); color: #f3efe3; }
.shop-dir:hover .shop-dir-mark, .shop-dir:focus-visible .shop-dir-mark { color: #d9bd78; opacity: .14; }
@media (max-width: 900px) {
  .shop-home-hero-art { height: 240px; }
  .shop-home-hero-art img { object-position: 62% 40%; }
}
@media (max-width: 600px) {
  .shop-dir { min-height: 0; padding: 22px 20px; }
  .shop-dir .shop-dir-title { font-size: 23px; }
  .shop-dir-icon { width: 50px; height: 50px; }
}
@media (prefers-reduced-motion: reduce) { .shop-dir, .shop-dir::before { transition: none; } }
.shop-dirs { scroll-margin-top: 110px; }

/* ==========================================================================
   «Помощник выбора» в услугах, обучении и клинике (2026-10-28, вторая версия):
   главный вопрос — карточки-ответы с примерами; «Уточнить» — необязательные
   подсказки (можно несколько); сводка с крестиками; «что ослабить», если пусто.
   ========================================================================== */
.finder { display: grid; gap: 22px; scroll-margin-top: 100px; }
.finder-ask { display: grid; gap: 22px; padding: 30px 30px 26px; border: 1px solid var(--hair); border-radius: 28px;
  background: radial-gradient(120% 140% at 100% 0%, #f6edd8 0%, var(--paper) 55%); }
.finder-head h2 { margin: 0 0 6px; color: var(--green); font-family: var(--serif); font-size: clamp(28px, 3vw, 38px); font-weight: 500; line-height: 1.1; }
.finder-head p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

.finder-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.finder-tile { position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr); grid-template-rows: auto 1fr auto; gap: 4px 14px; align-items: start;
  padding: 16px 18px 16px 16px; border: 1px solid var(--hair); border-radius: 18px; background: #fff; color: var(--ink); font: inherit; text-align: left; cursor: pointer;
  transition: border-color 180ms, box-shadow 180ms, transform 180ms, background 220ms, color 220ms, opacity 220ms; }
.finder-tile:hover { border-color: rgba(0, 88, 62, .35); box-shadow: 0 10px 26px rgba(13, 51, 45, .08); transform: translateY(-2px); }
.finder-tile:focus-visible { outline: 2px solid #c9a85f; outline-offset: 2px; }
.finder-tile-icon { grid-row: 1 / span 3; display: grid; width: 46px; height: 46px; place-items: center; border-radius: 14px; background: #f4eedf; color: var(--green); transition: background 220ms, color 220ms; }
.finder-tile-icon .shop-icon { width: 24px; height: 24px; }
.finder-tile-title { padding-right: 24px; font-family: var(--serif); font-size: 19px; line-height: 1.2; }
.finder-tile-hint { color: var(--muted); font-size: 13px; line-height: 1.45; transition: color 220ms; }
.finder-tile-n { margin-top: 6px; color: #8a6d2c; font-size: 12.5px; font-weight: 800; transition: color 220ms; }
.finder-tile-check { position: absolute; top: 12px; right: 12px; display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; border: 1px solid var(--hair); background: #fff; color: transparent; transition: background 220ms, color 220ms, border-color 220ms; }
.finder-tile-check .shop-icon { width: 14px; height: 14px; stroke-width: 2.4; }
.finder-tile.is-on { border-color: var(--green); background: var(--green); color: #fff; box-shadow: 0 14px 30px rgba(0, 68, 47, .22); }
.finder-tile.is-on .finder-tile-icon { background: rgba(255, 255, 255, .12); color: #fff; }
.finder-tile.is-on .finder-tile-hint { color: rgba(243, 239, 227, .85); }
.finder-tile.is-on .finder-tile-n { color: #e3c98a; }
.finder-tile.is-on .finder-tile-check { border-color: #e3c98a; background: #e3c98a; color: var(--green); }
.finder-tiles:has(.is-on) .finder-tile:not(.is-on) { opacity: .72; }
.finder-tiles:has(.is-on) .finder-tile:not(.is-on):hover { opacity: 1; }

.finder-refine { display: grid; gap: 10px; padding-top: 18px; border-top: 1px dashed rgba(138, 109, 44, .3); animation: finder-in 240ms ease-out; }
.finder-refine[hidden] { display: none; }
.finder-refine-title { margin: 0; color: var(--ink); font-size: 15px; font-weight: 800; }
.finder-refine-title span { color: var(--muted); font-weight: 600; }
@keyframes finder-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.finder-q { display: grid; grid-template-columns: 200px minmax(0, 1fr); align-items: baseline; gap: 6px 16px; }
.finder-q[hidden] { display: none; }
.finder-q-label { color: var(--ink-soft); font-size: 14px; font-weight: 700; }
.finder-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.finder-opt { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 15px; border: 1px solid rgba(0, 88, 62, .2); border-radius: 999px;
  background: #fff; color: var(--ink-soft); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: background 160ms, color 160ms, border-color 160ms; }
.finder-opt[hidden] { display: none; }
.finder-opt span { color: var(--muted); font-size: 12px; }
.finder-opt::before { content: ""; width: 14px; height: 14px; border: 1.5px solid rgba(0, 88, 62, .35); border-radius: 4px; transition: background 160ms, border-color 160ms; }
.finder-opt:hover { border-color: var(--green); color: var(--green); }
.finder-opt.is-on { border-color: var(--green); background: #e6f0eb; color: var(--green); }
.finder-opt.is-on::before { border-color: var(--green); background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E") center / 11px no-repeat; }
.finder-opt:focus-visible { outline: 2px solid #c9a85f; outline-offset: 2px; }

.finder-bar { position: sticky; top: 92px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 10px 14px 10px 10px;
  border: 1px solid var(--hair); border-radius: 22px; background: rgba(255, 253, 248, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 8px 24px rgba(13, 51, 45, .06); }
.finder-search { display: flex; flex: 1 1 280px; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border: 1px solid var(--hair); border-radius: 999px; background: #fff; }
.finder-search:focus-within { border-color: var(--green); }
.finder-search .shop-icon { width: 18px; height: 18px; color: var(--muted); }
.finder-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 15px; outline: 0; }
.finder-summary { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.finder-summary b { color: var(--ink); font-size: 15px; white-space: nowrap; }
.finder-chips { display: contents; }
.finder-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 12px; border: 0; border-radius: 999px; background: #e6f0eb; color: var(--green); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; animation: finder-in 200ms ease-out; }
.finder-chip i { display: grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; background: rgba(0, 88, 62, .12); font-style: normal; font-size: 14px; line-height: 1; }
.finder-chip:hover i { background: var(--green); color: #fff; }
.finder-reset { margin-left: auto; padding: 0; border: 0; background: none; color: #8a6d2c; font: inherit; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; white-space: nowrap; }
.finder-reset[hidden] { display: none; }

.finder-results { display: grid; gap: 34px; }
.finder-results.is-updating { animation: finder-fade 260ms ease-out; }
@keyframes finder-fade { from { opacity: .35; } to { opacity: 1; } }
.finder-group[hidden], [data-finder-item][hidden] { display: none !important; }
.finder-group { display: grid; gap: 16px; }
.finder-group-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 30px; }
.finder-group-head h2 { margin: 0 0 6px; color: var(--green); font-family: var(--serif); font-size: clamp(24px, 2.4vw, 30px); font-weight: 500; line-height: 1.15; }
.finder-group-head p { max-width: 72ch; margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
.finder-group-head.is-compact { align-items: baseline; padding-bottom: 8px; border-bottom: 1px solid var(--hair); }
.finder-group-head.is-compact h2 { margin: 0; font-size: 22px; }
.finder-group-sub { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.finder-group-sub a { color: var(--green); }
.finder-group-facts { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; color: var(--ink-soft); font-size: 13.5px; }
.finder-group-facts li { display: flex; align-items: center; gap: 8px; }
.finder-group-facts .shop-icon { width: 16px; height: 16px; color: #8a6d2c; }
.finder-group-facts a { color: var(--green); font-weight: 700; }

.finder-empty { display: grid; justify-items: center; gap: 10px; padding: 34px 26px; border: 1px dashed rgba(138, 109, 44, .4); border-radius: 24px; background: var(--paper); text-align: center; }
.finder-empty[hidden] { display: none; }
.finder-empty-title { margin: 0; color: var(--green); font-family: var(--serif); font-size: 26px; }
.finder-empty p { margin: 0; color: var(--ink-soft); }
.finder-empty p[hidden] { display: none; }
.finder-relax { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.finder-relax-btn { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 18px; border: 1px solid rgba(0, 88, 62, .25); border-radius: 16px; background: #fff; font: inherit; text-align: left; cursor: pointer; transition: border-color 160ms, box-shadow 160ms; }
.finder-relax-btn span { color: var(--ink); font-size: 14.5px; font-weight: 700; }
.finder-relax-btn b { color: var(--green); font-size: 13px; }
.finder-relax-btn:hover { border-color: var(--green); box-shadow: 0 8px 20px rgba(13, 51, 45, .08); }
.finder-empty-help a { color: var(--green); font-weight: 800; white-space: nowrap; }

/* услуги: карточка с фото, «кому», цена и сразу «Записаться» */
.svcf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.svcf-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--hair); border-radius: 20px; background: var(--paper); transition: transform 200ms, box-shadow 200ms; }
.svcf-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(13, 51, 45, .09); }
.svcf-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #ece6d8; }
.svcf-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms; }
.svcf-card:hover .svcf-media img { transform: scale(1.04); }
.svcf-tag { position: absolute; left: 12px; top: 12px; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--green); font-size: 12px; font-weight: 800; }
.svcf-body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.svcf-body h3 { margin: 0; font-family: var(--serif); font-size: 21px; font-weight: 500; line-height: 1.2; }
.svcf-body h3 a { color: var(--ink); text-decoration: none; }
.svcf-body h3 a:hover { color: var(--green); }
.svcf-who { margin: 0; color: #8a6d2c; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; }
.svcf-lead { display: -webkit-box; margin: 0; overflow: hidden; color: var(--muted); font-size: 13.5px; line-height: 1.5; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.svcf-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }
.svcf-foot strong { color: var(--ink); font-family: var(--serif); font-size: 20px; }
.svcf-actions { display: flex; align-items: center; gap: 14px; }
.svcf-more { color: var(--green); font-size: 14px; font-weight: 700; }
.svcf-go { min-height: 40px; padding: 0 18px; font-size: 14px; }

/* обучение */
.dpof-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dpof-card { display: flex; flex-direction: column; gap: 10px; min-height: 200px; padding: 20px 20px 18px; border: 1px solid var(--hair); border-radius: 18px; background: var(--paper); color: var(--ink); text-decoration: none; transition: transform 200ms, box-shadow 200ms, border-color 200ms; }
.dpof-card:hover { transform: translateY(-3px); border-color: rgba(0, 88, 62, .25); box-shadow: 0 14px 32px rgba(13, 51, 45, .09); }
.dpof-kind { color: #8a6d2c; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.dpof-title { font-family: var(--serif); font-size: 19px; line-height: 1.25; }
.dpof-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.dpof-meta span { padding: 3px 9px; border-radius: 999px; background: #f2ecdd; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.dpof-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--hair); }
.dpof-foot strong { font-family: var(--serif); font-size: 19px; }
.dpof-go { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-size: 13.5px; font-weight: 800; }
.dpof-go .shop-icon { width: 16px; height: 16px; transition: transform 200ms; }
.dpof-card:hover .dpof-go .shop-icon { transform: translateX(3px); }

/* клиника: прайс строками */
.clinf-list { display: grid; margin: 0; padding: 0; list-style: none; border: 1px solid var(--hair); border-radius: 18px; background: var(--paper); overflow: hidden; }
.clinf-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px 24px; padding: 14px 20px; transition: background 160ms; }
.clinf-row + .clinf-row { border-top: 1px solid var(--hair); }
.clinf-row:hover { background: #f7f1e3; }
.clinf-name b { display: block; color: var(--ink); font-size: 15.5px; }
.clinf-name span { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.clinf-price { color: var(--ink); font-family: var(--serif); font-size: 18px; white-space: nowrap; }
.clinf-go { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid rgba(0, 88, 62, .25); border-radius: 999px; color: var(--green); font-size: 13.5px; font-weight: 800; text-decoration: none; white-space: nowrap; transition: background 160ms, color 160ms; }
.clinf-go .shop-icon { width: 15px; height: 15px; }
.clinf-row:hover .clinf-go, .clinf-go:hover { background: var(--green); color: #fff; }

@media (max-width: 1100px) { .svcf-grid, .dpof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .finder-ask { gap: 16px; padding: 20px 16px 18px; border-radius: 22px; }
  .finder-tiles { grid-template-columns: 1fr; gap: 8px; }
  .finder-tile { grid-template-columns: 40px minmax(0, 1fr); padding: 12px 14px; }
  .finder-tile-icon { width: 40px; height: 40px; border-radius: 12px; }
  .finder-tile-title { font-size: 17.5px; }
  .finder-q { grid-template-columns: 1fr; gap: 6px; }
  .finder-opts { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .finder-opts::-webkit-scrollbar { display: none; }
  .finder-opt { flex: none; }
  .finder-bar { top: 80px; padding: 8px; border-radius: 18px; }
  .finder-summary { padding: 0 6px 2px; }
  .finder-summary b { font-size: 14px; }
  .svcf-grid, .dpof-grid { grid-template-columns: 1fr; }
  .clinf-row { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 14px; }
  .clinf-go { grid-column: 1 / -1; justify-self: start; padding: 6px 12px; }
}
@media (prefers-reduced-motion: reduce) { .finder-tile, .finder-results.is-updating, .finder-refine, .finder-chip { animation: none; transition: none; } }

/* ответ, который сейчас ничего не даст, — неактивен: в тупик не попасть */
.finder-opt.is-zero, .finder-tile.is-zero { opacity: .45; cursor: default; }
.finder-opt.is-zero:hover { border-color: rgba(0, 88, 62, .2); color: var(--ink-soft); }
.finder-tile.is-zero:hover { transform: none; box-shadow: none; border-color: var(--hair); }
/* телефон: ответы в две колонки — список виден раньше */
@media (max-width: 760px) {
  .finder-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finder-tile { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr auto; gap: 6px; padding: 12px 12px 12px; border-radius: 16px; }
  .finder-tile-icon { grid-row: auto; width: 36px; height: 36px; border-radius: 11px; }
  .finder-tile-icon .shop-icon { width: 20px; height: 20px; }
  .finder-tile-title { padding-right: 18px; font-size: 16px; }
  .finder-tile-hint { font-size: 12px; line-height: 1.4; }
  .finder-tile-n { margin-top: 2px; font-size: 12px; }
  .finder-tile-check { top: 10px; right: 10px; width: 20px; height: 20px; }
}
@media (max-width: 360px) { .finder-tiles { grid-template-columns: 1fr; } }

/* ==========================================================================
   Выдача без отдельных шапок: «паспорт места» (категория, адрес и маршрут,
   часы, позвонить) открывает блок; категории — подписи; клиника — карточки.
   ========================================================================== */
.finder-group { gap: 18px; }
.finder-place { display: grid; grid-template-columns: minmax(200px, .8fr) minmax(0, 1.4fr) auto; align-items: center; gap: 16px 30px; padding: 20px 22px 20px 26px;
  border-radius: 22px; background: radial-gradient(130% 160% at 0% 0%, #0d6b4d 0%, #00442f 60%, #06291f 100%); color: #f3efe3; }
.finder-place-kicker { display: block; margin-bottom: 4px; color: #d9bd78; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.finder-place-name h2 { margin: 0; color: #fff; font-family: var(--serif); font-size: clamp(26px, 2.6vw, 34px); font-weight: 500; line-height: 1.05; }
.finder-place-name p { margin: 4px 0 0; color: rgba(243, 239, 227, .78); font-size: 14px; }
.finder-place-facts { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.45; }
.finder-place-facts li { display: flex; align-items: flex-start; gap: 10px; }
.finder-place-facts .shop-icon { width: 18px; height: 18px; margin-top: 1px; color: #d9bd78; }
.finder-place-facts a { color: #fff; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(217, 189, 120, .6); text-underline-offset: 3px; }
.finder-place-facts a:hover { color: #d9bd78; }
.finder-place-call { display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 12px; border-radius: 999px; background: #fff; color: var(--green); text-decoration: none; white-space: nowrap; transition: transform 160ms, box-shadow 160ms; }
.finder-place-call:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }
.finder-place-call .shop-icon { width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: #e6f0eb; }
.finder-place-call span { display: grid; font-size: 16px; font-weight: 800; line-height: 1.2; }
.finder-place-call small { color: #8a6d2c; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.finder-cat { display: grid; gap: 12px; }
.finder-cat + .finder-cat { margin-top: 8px; }
.finder-cat-title { display: flex; align-items: baseline; gap: 10px; margin: 0; color: var(--ink); font-family: var(--serif); font-size: 21px; font-weight: 500; }
.finder-cat-title span { color: #8a6d2c; font-family: inherit; font-size: 14px; font-weight: 700; }
.finder-cat-title::after { content: ""; flex: 1; align-self: center; height: 1px; background: var(--hair); }

/* клиника: карточки услуг — цена сверху, всё поле — кнопка «Записаться» */
.clinc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.clinc-card { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 168px; padding: 18px 18px 16px; overflow: hidden;
  border: 1px solid var(--hair); border-radius: 18px; background: var(--paper); color: var(--ink); text-decoration: none; isolation: isolate;
  transition: transform 200ms, box-shadow 200ms, border-color 200ms, color 220ms; }
.clinc-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(150deg, #0d6b4d, #00442f); opacity: 0; transition: opacity 240ms; }
.clinc-price { align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: #f2ecdd; color: var(--ink); font-family: var(--serif); font-size: 16px; transition: background 220ms, color 220ms; }
.clinc-title { margin-top: 6px; font-size: 16.5px; font-weight: 800; line-height: 1.3; }
.clinc-text { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 13px; line-height: 1.45; -webkit-line-clamp: 3; -webkit-box-orient: vertical; transition: color 220ms; }
.clinc-go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; color: var(--green); font-size: 14px; font-weight: 800; transition: color 220ms; }
.clinc-go .shop-icon { width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: #e6f0eb; transition: transform 220ms, background 220ms; }
.clinc-card:hover, .clinc-card:focus-visible { transform: translateY(-3px); border-color: transparent; box-shadow: 0 16px 34px rgba(0, 68, 47, .2); color: #fff; }
.clinc-card:hover::before, .clinc-card:focus-visible::before { opacity: 1; }
.clinc-card:hover .clinc-price, .clinc-card:focus-visible .clinc-price { background: rgba(255, 255, 255, .14); color: #fff; }
.clinc-card:hover .clinc-text, .clinc-card:focus-visible .clinc-text { color: rgba(243, 239, 227, .82); }
.clinc-card:hover .clinc-go, .clinc-card:focus-visible .clinc-go { color: #d9bd78; }
.clinc-card:hover .clinc-go .shop-icon, .clinc-card:focus-visible .clinc-go .shop-icon { background: #d9bd78; color: var(--green); transform: translateX(4px); }
.clinc-card:focus-visible { outline: 2px solid #c9a85f; outline-offset: 2px; }

@media (max-width: 1000px) { .finder-place { grid-template-columns: 1fr 1fr; } .finder-place-call { grid-column: 1 / -1; justify-self: start; } }
@media (max-width: 640px) {
  .finder-place { grid-template-columns: 1fr; padding: 18px; border-radius: 18px; }
  .finder-place-call { justify-self: stretch; }
  .clinc-grid { grid-template-columns: 1fr; }
  .clinc-card { min-height: 0; }
  .finder-cat-title { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { .clinc-card, .clinc-card::before, .finder-place-call { transition: none; } }
[data-finder-group][hidden] { display: none !important; }

/* --- покупка услуги онлайн (спорт): варианты из прайса, количество, сумма --- */
.svcx-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0; }
.svcbuy { margin-top: 22px; padding: 20px 22px 22px; border: 1px solid rgba(0, 88, 62, .22); border-radius: 16px; background: #fff; scroll-margin-top: 90px; }
.svcbuy h2 { margin: 0 0 6px; color: var(--green); font-family: var(--serif); font-size: 24px; font-weight: 500; }
.svcbuy-lead { margin: 0 0 12px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.svcbuy-auth { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.svcbuy-form { display: grid; gap: 16px; }
.svcbuy-opts { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.svcbuy-opts legend { margin-bottom: 8px; padding: 0; color: var(--ink); font-size: 14px; font-weight: 700; }
.svcbuy-opt { display: grid; grid-template-columns: 20px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--shop-line); border-radius: 12px; cursor: pointer; transition: border-color 120ms, background-color 120ms; }
.svcbuy-opt:hover { border-color: rgba(0, 88, 62, .45); }
.svcbuy-opt:has(input:checked) { border-color: var(--green); background: #f1f7f4; }
.svcbuy-opt input { width: 18px; height: 18px; margin: 0; accent-color: var(--green); }
.svcbuy-opt-t { color: var(--ink); font-weight: 600; }
.svcbuy-opt-p { color: var(--green); font-weight: 800; white-space: nowrap; }
.svcbuy-qty { display: flex; align-items: center; gap: 12px; }
.svcbuy-qty[hidden] { display: none; }
.svcbuy-qty label { color: var(--ink); font-size: 14px; font-weight: 700; }
.svcbuy-qty input { width: 90px; min-height: 44px; padding: 0 12px; border: 1px solid var(--shop-line); border-radius: 10px; font: inherit; font-weight: 700; }
.svcbuy-form .shop-fields { margin: 0; }
.svcbuy-rules { padding: 14px 16px; border-radius: 12px; background: var(--wash); }
.svcbuy-rules h3 { margin: 0 0 6px; color: var(--ink); font-size: 14.5px; }
.svcbuy-rules ul { display: grid; gap: 6px; margin: 0; padding-left: 18px; color: rgb(41, 58, 52); font-size: 13.5px; line-height: 1.5; }
.svcbuy-pay { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding-top: 4px; border-top: 1px solid var(--shop-line); }
.svcbuy-total { margin: 0; color: var(--muted); font-size: 15px; }
.svcbuy-total strong { display: block; color: var(--ink); font-family: var(--serif); font-size: 28px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.svcbuy-note { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
@media (max-width: 600px) {
  .svcbuy { padding: 16px; }
  .svcbuy-pay .shop-btn { width: 100%; }
}

/* --- карусель главной: настоящие фото по направлениям --- */
.shop-home-hero-art { position: relative; min-height: 420px; }
.shop-carousel { position: absolute; inset: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%); mask-image: linear-gradient(90deg, transparent 0, #000 14%); }
.shop-carousel-track { position: absolute; inset: 0; }
.shop-carousel-slide { position: absolute; inset: 0; display: block; color: #fff; text-decoration: none; opacity: 0; visibility: hidden;
  transition: opacity .8s ease, visibility 0s linear .8s; }
.shop-carousel-slide.is-active { opacity: 1; visibility: visible; transition: opacity .8s ease, visibility 0s; z-index: 1; }
.shop-home-hero-art .shop-carousel-slide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; -webkit-mask-image: none; mask-image: none;
  transform: scale(1.06); transition: transform 7s ease-out; }
.shop-carousel-slide.is-active img { transform: scale(1); }
.shop-carousel-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0, 40, 28, .72)); pointer-events: none; }
.shop-carousel-cap { position: absolute; left: 18%; right: 28px; bottom: 58px; z-index: 1; display: grid; gap: 4px; max-width: 30em;
  transform: translateY(10px); opacity: 0; transition: transform .6s ease .25s, opacity .6s ease .25s; }
.shop-carousel-slide.is-active .shop-carousel-cap { transform: none; opacity: 1; }
.shop-carousel-cap small { color: #d9c08a; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.shop-carousel-cap b { font-family: var(--serif); font-size: clamp(20px, 2vw, 27px); font-weight: 500; line-height: 1.2; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.shop-carousel-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 14px; font-weight: 700; }
.shop-carousel-go .shop-icon { width: 16px; height: 16px; transition: transform .2s ease; }
.shop-carousel-slide:hover .shop-carousel-go .shop-icon, .shop-carousel-slide:focus-visible .shop-carousel-go .shop-icon { transform: translateX(4px); }
.shop-carousel-nav { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; margin-top: -21px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .88); color: var(--green); cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
  opacity: 0; transition: opacity .2s ease, transform .2s ease; }
.shop-carousel-nav svg { width: 20px; height: 20px; }
.shop-carousel-nav.is-prev { left: 16%; }
.shop-carousel-nav.is-next { right: 18px; }
.shop-carousel:hover .shop-carousel-nav, .shop-carousel-nav:focus-visible { opacity: 1; }
.shop-carousel-nav:hover { transform: scale(1.06); }
.shop-carousel-dots { position: absolute; left: 18%; bottom: 24px; z-index: 2; display: flex; gap: 8px; }
.shop-carousel-dots button { position: relative; width: 34px; height: 18px; padding: 0; border: 0; background: none; cursor: pointer; }
.shop-carousel-dots i { position: absolute; left: 0; right: 0; top: 7px; height: 4px; overflow: hidden; border-radius: 2px; background: rgba(255, 255, 255, .45); }
.shop-carousel-dots i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: 0 50%; }
.shop-carousel-dots .is-active i::after { transform: scaleX(1); }
.shop-carousel.is-playing .shop-carousel-dots .is-active i::after { transform: scaleX(0); animation: shop-carousel-progress var(--carousel-delay, 6s) linear forwards; }
.shop-carousel.is-paused .shop-carousel-dots .is-active i::after { animation-play-state: paused; }
@keyframes shop-carousel-progress { to { transform: scaleX(1); } }
@media (hover: none) { .shop-carousel-nav { opacity: 1; } }
@media (max-width: 900px) {
  .shop-home-hero-art { min-height: 0; height: 300px; }
  .shop-carousel { -webkit-mask-image: none; mask-image: none; }
  .shop-carousel-cap { left: 22px; right: 22px; bottom: 46px; }
  .shop-carousel-dots { left: 22px; bottom: 18px; }
  /* на телефоне стрелки — в верхнем углу, чтобы не закрывать подпись */
  .shop-carousel-nav { top: 12px; width: 36px; height: 36px; margin-top: 0; }
  .shop-carousel-nav.is-prev { left: auto; right: 54px; }
  .shop-carousel-nav.is-next { right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .shop-carousel-slide, .shop-carousel-cap, .shop-home-hero-art .shop-carousel-slide img { transition: none; transform: none; }
}

/* --- прайс-лист растений (ботсад) --- */
.svc-pricelist { grid-column: 1 / -1; margin-top: 8px; padding: 22px 24px; border: 1px solid var(--hair); border-radius: 20px; background: var(--paper, #fff); }
.svc-pricelist-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.svc-pricelist-head h2 { margin: 0; color: var(--green); font-family: var(--serif); font-size: 24px; font-weight: 500; }
.svc-pricelist-search { display: flex; align-items: center; gap: 8px; min-width: min(320px, 100%); padding: 0 14px; border: 1px solid var(--hair); border-radius: 999px; background: #fff; }
.svc-pricelist-search .shop-icon { width: 18px; height: 18px; color: var(--muted); }
.svc-pricelist-search input { flex: 1; min-width: 0; height: 42px; border: 0; background: none; font: inherit; outline: none; }
.svc-pricelist-count { margin: 8px 0 12px; color: var(--muted); font-size: 13px; }
.svc-pricelist-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.svc-pricelist-table thead th { padding: 8px 10px; border-bottom: 2px solid var(--hair); color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
.svc-pricelist-table tbody { border-bottom: 1px solid var(--hair); }
.svc-pricelist-table th[scope="rowgroup"] { width: 46%; padding: 9px 10px; color: var(--ink); font-weight: 600; text-align: left; vertical-align: top; }
.svc-pricelist-table td { padding: 9px 10px; color: var(--ink-soft); white-space: nowrap; }
.svc-pricelist-table td:last-child { color: var(--green); font-weight: 700; text-align: right; }
.svc-pricelist-table thead th:last-child { text-align: right; }
.svc-pricelist-empty { margin: 14px 0 0; color: var(--muted); }
@media (max-width: 600px) {
  .svc-pricelist { padding: 16px; }
  .svc-pricelist-table { font-size: 13.5px; }
  .svc-pricelist-table th[scope="rowgroup"] { width: auto; }
  .svc-pricelist-table td, .svc-pricelist-table th { padding: 7px 6px; }
}

/* --- шапка направления: только название --- */
.finder-place.is-title-only { grid-template-columns: 1fr; padding: 18px 26px; }
