/* static/css/site.css */
/* METLAGO: весь вид сайта (таск 02).
   Токены, шрифт, H1, .wrap, точки 1100 и 600, кнопки и фокус взяты из
   outputs/brand-launch/final/website/styles.css. Новые правила только на этих токенах,
   без теней. Красный статуса из второго круга проверки (review-2026-09-26 §8)
   живёт только в живых блоках (схема, расчёт, заявка) и в списке главной. Классы компонентов: spec.md, «Границы и швы». */

@font-face {
  font-family: Manrope;
  src: url('/assets/fonts/Manrope.ttf') format('truetype');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F5F4F0;
  --text: #202927;
  --green: #006039;
  --muted: #56615D;
  --line: #CFD5D0;
  --white: #FFFFFF;
  --line-dark: #75857e;
  --status-red: #8a2a2a;
  --stitch-diagnose: #006039;
  --stitch-start: #9A7B3E;
  --stitch-team: #4E5E59;
  --stitch-schutz: #8A2A2A;
  --font: Manrope, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --radius-btn: 4px;
  --radius-card: 8px;
  --radius-contact: 12px;
  --tap: 44px;
  --wrap-max: 1120px;
  --measure: 660px;
  --section-y: 48px;
  --hero-top: 28px;
  --hero-after-crumbs-top: 16px;
  --heading-1: clamp(26px, 2.5vw, 36px);
  --heading-2: clamp(22px, 1.8vw, 26px);
  --heading-3: clamp(19px, 1.4vw, 20px);
  --text-lead: clamp(18px, 1.4vw, 20px);
  --text-body: 18px;
  --text-price: clamp(22px, 1.7vw, 24px);
  --text-ui: 16px;
  --text-sm: 14px;
  --text-xs: 12px;
}

/* Основа */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: var(--text-body)/1.6 var(--font); overflow-wrap: break-word; }
/* История 14: перенос по правилам языка из lang; короткие слова вроде METLAGO не рвутся */
body { -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 10 4 4; -webkit-hyphenate-limit-before: 4; -webkit-hyphenate-limit-after: 4; }
a[href^="mailto:"], a[href^="tel:"], a[href^="http"] { -webkit-hyphens: manual; hyphens: manual; }
a[href^="tel:"] { white-space: nowrap; }
img { max-width: 100%; height: auto; display: block; }
/* Фото: полоса на ширину .wrap или карточка в сетке .grid-2 */
.photo { margin: 28px 0 0; }
.photo img { width: 100%; height: auto; border-radius: var(--radius-card); background: var(--line); }
.photo figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }
.grid-2 > .photo { margin: 0; align-self: center; }
.hero .grid-2 { align-items: start; margin: 0; }
a { color: var(--green); text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
/* История 24: ссылка в абзаце получает цель касания 44 px, строка при этом не растёт */
:where(p > a:not(.btn)) { display: inline-block; min-width: var(--tap); padding-block: 10px; margin-block: -10px; }
/* Абзац с двумя ссылками и больше читается как фраза: ссылка строчная, строка не растёт, запятая стоит у слова,
   замер 44 px такую ссылку не берёт (WCAG 2.5.5) */
:where(p:has(> a:not(.btn) ~ a:not(.btn)) > a:not(.btn)) { display: inline; min-width: 0; padding-block: 0; margin-block: 0; }
/* Строка ссылок «a · a» помечается в разметке классом link-row: строка со ссылкой 44 px, рамка ссылки 44 px,
   соседние строки не накладываются, длинная ссылка переносится внутри себя */
:where(p.link-row > a:not(.btn)) { display: inline; min-width: 0; margin-block: 0; line-height: var(--tap); padding-block: 10px; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, figure { margin: 0 0 16px; }
p { margin: 0 0 22px; }
h1, h2, h3 { overflow-wrap: anywhere; }
/* Д04: в заголовках рвутся только слова от 14 букв, по 6 с каждой стороны */
h1, h2, h3 { hyphenate-limit-chars: 14 6 6; }
/* Д06: в заголовках и коротких подписях дефис только там, где в разметке стоит &shy;;
   слово длиннее строки держит overflow-wrap */
h1, h2, h3, .card__title, .lead, .faq-item > summary, label, th, .btn { -webkit-hyphens: manual; hyphens: manual; }
.card__title, .lead, .faq-item > summary { overflow-wrap: anywhere; }
/* Свежий взгляд 1: строки заголовка выровнены по длине, одно слово не остаётся на последней строке;
   браузер без text-wrap показывает как раньше */
h1, h2, h3, .card__title { text-wrap: balance; }
.nowrap { white-space: nowrap; }
/* Спокойная типографика на всех страницах: единая шкала и компактная строка. */
h1 { font-size: var(--heading-1); line-height: 1.2; letter-spacing: -.02em; font-weight: 700; max-width: 740px; }
h2 { font-size: var(--heading-2); line-height: 1.25; letter-spacing: -.01em; max-width: var(--measure); font-weight: 700; }
h3 { font-size: var(--heading-3); line-height: 1.3; font-weight: 700; margin-bottom: 10px; }
p { max-width: var(--measure); }
ul, ol { padding-left: 20px; margin: 0 0 16px; }
ol { padding-left: 26px; }
li { margin-bottom: 10px; padding-left: 8px; }
li strong { display: block; }
strong { font-weight: 700; }
.muted { color: var(--muted); }
.wrap { width: calc(100% - 96px); max-width: var(--wrap-max); margin: auto; }
.wrap > :last-child, .card > :last-child, .faq-a > :last-child { margin-bottom: 0; }

a:focus-visible, button:focus-visible, select:focus-visible, textarea:focus-visible,
input:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}

.skip { position: absolute; top: 8px; left: 24px; z-index: 30; background: var(--white); color: var(--green); padding: 12px; transform: translateY(-160%); }
.skip:focus { transform: none; }

/* Значки из спрайта: <svg class="icon" aria-hidden="true"><use href="/assets/img/icons.svg#i-NAME"></use></svg> */
.icon { display: inline-block; width: 1.25em; height: 1.25em; vertical-align: -0.25em; flex-shrink: 0; color: inherit; }

/* Кнопки: .button бренда под именем .btn */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 20px;
  border: 1px solid var(--green); border-radius: var(--radius-btn);
  background: var(--green); color: var(--white);
  font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--text); border-color: var(--text); color: var(--white); text-decoration: none; }
.btn--text { background: transparent; border-color: transparent; color: var(--green); text-decoration: underline; padding-left: 4px; padding-right: 4px; }
/* Д17: ссылка-кнопка в две строки стоит по левому краю, как текст рядом */
.btn--text { justify-content: flex-start; text-align: left; }
.btn--text:hover { background: transparent; border-color: transparent; color: var(--text); }
/* Ссылка-кнопка первой в ряду: текст по краю абзаца, отступ 4 px и рамка 1 px уходят влево (решение Дениса 06.10 по двум призывам) */
.actions > .btn--text:first-child { margin-left: -5px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin: 24px 0 16px; }

/* Шапка */
.site-header { position: relative; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; min-height: 84px; max-width: 1200px; padding: 12px 0; }
.brand { display: inline-flex; align-items: center; min-height: var(--tap); margin-right: auto; }
.logo { width: 240px; min-width: 200px; }
.nav { order: 3; flex-basis: 100%; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 24px; }
.nav-list li, .nav-mobile li, .footer-nav li, .breadcrumbs li { margin: 0; padding: 0; }
.nav-list a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--text); font-size: 16px; text-decoration: none; }
.nav-list a:hover, .nav-mobile nav a:hover { color: var(--green); text-decoration: underline; }
.nav-list a[aria-current="page"], .nav-mobile nav a[aria-current="page"] { color: var(--green); font-weight: 700; }
.header-cta { font-size: 16px; }
/* Переключатель языка: список из пункта на язык, текущий язык без ссылки. В шапке высотой 48 px, как кнопка заявки;
   в меню телефона и в подвале у каждого пункта цель касания 44 px */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; font-size: 14px; font-weight: 700; }
.lang-switch li { margin: 0; padding: 0; }
.lang-switch a, .lang-switch span { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 48px; color: var(--text); text-decoration: none; }
.lang-switch a:hover { color: var(--green); text-decoration: underline; }
.lang-switch [aria-current] { color: var(--green); }
.nav-mobile .lang-switch { display: flex; }
.nav-mobile .lang-switch a, .nav-mobile .lang-switch span, .site-footer .lang-switch a, .site-footer .lang-switch span { min-width: var(--tap); min-height: var(--tap); border-bottom: 0; }
/* Д01: от 1320 px меню в одной строке между логотипом и кнопкой, как в образце бренда; ниже второй строкой */
@media (min-width: 1320px) {
  .brand { margin-right: 0; }
  .nav { order: 0; flex: 0 1 auto; margin-inline: auto; }
}

/* Меню до 1100 px: details без JS */
.nav-mobile { display: none; }
.nav-mobile > summary {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 14px;
  border: 1px solid var(--line-dark); border-radius: var(--radius-btn);
  font-size: 16px; font-weight: 700; cursor: pointer; list-style: none;
}
.nav-mobile > summary::-webkit-details-marker { display: none; }
.nav-mobile > summary::after {
  content: ""; width: 8px; height: 8px; margin-top: -4px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
.nav-mobile[open] > summary::after { margin-top: 4px; transform: rotate(-135deg); }
.nav-mobile > nav { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); }
.nav-mobile ul { list-style: none; margin: 0 auto; padding: 6px 0 12px; width: calc(100% - 48px); max-width: var(--wrap-max); }
.nav-mobile nav a { display: flex; align-items: center; min-height: 46px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }

/* Хлебные крошки */
.breadcrumbs { padding-top: 8px; font-size: var(--text-sm); color: var(--muted); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; }
.breadcrumbs li { display: inline-flex; align-items: center; }
.breadcrumbs li + li::before {
  content: ""; width: 6px; height: 6px; margin: 0 12px 0 8px;
  border-right: 1.5px solid var(--muted); border-top: 1.5px solid var(--muted); transform: rotate(45deg);
}
.breadcrumbs a { display: inline-flex; align-items: center; justify-content: center; min-width: var(--tap); min-height: var(--tap); color: var(--muted); }
.breadcrumbs a:hover { color: var(--green); }
.breadcrumbs [aria-current="page"] { color: var(--text); }

/* Секции */
.section { padding: var(--section-y) 0; }
main > .section:first-child { padding-top: var(--hero-top); }
main > .wrap:first-child + .section { padding-top: var(--hero-after-crumbs-top); }
main > .wrap:first-child + .section--alt { padding-top: var(--hero-top); }
.section--muted { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--muted + .section--muted { border-top: 0; }
.section--alt { background: var(--text); color: var(--white); }
.section--alt a, .section--alt .eyebrow, .section--alt .btn--text { color: var(--white); }
.section--alt .muted, .section--alt .note, .section--alt .photo figcaption { color: var(--line); }
.section--alt .btn--primary { background: var(--white); border-color: var(--white); color: var(--green); }
.section--alt .btn--primary:hover { background: var(--bg); border-color: var(--bg); color: var(--text); }
.section--alt a:focus-visible, .section--alt button:focus-visible, .section--alt summary:focus-visible,
.section--alt [tabindex]:focus-visible { outline-color: var(--white); }

/* Первая секция */
.eyebrow { font-size: var(--text-sm); letter-spacing: 1.2px; text-transform: uppercase; color: var(--green); margin-bottom: 10px; }
.lead { font-size: var(--text-lead); line-height: 1.5; max-width: var(--measure); }

/* Сетки и карточки */
.grid-2, .grid-3 { display: grid; gap: 24px; margin: 28px 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 > *, .grid-3 > * { min-width: 0; }
/* Д16: нечётная последняя карточка в два столбца не остаётся одна с пустотой справа */
.grid-2 > :last-child:nth-child(odd):not(:first-child) { grid-column: 1 / -1; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 24px; }
.card p, .card ul, .card ol { margin-bottom: 12px; }
.card > .icon:first-child { display: block; width: 32px; height: 32px; color: var(--green); margin-bottom: 16px; }
.card__title { font-size: var(--heading-3); line-height: 1.3; font-weight: 700; margin: 0 0 10px; }
.section--muted .card { background: var(--bg); }
.section--alt .card { background: #293430; border-color: rgba(207, 213, 208, 0.24); }
.section--alt .card > .icon:first-child { color: var(--white); }
.section--alt .ref-code { color: #B4BEB8; }

/* Салонный верхний баннер, кожаная строчка моделей и витрина коллекции */
.atelier-ribbon {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px;
  padding: 10px 18px; margin: 0 0 24px;
  background: var(--text); color: var(--white);
  border-radius: var(--radius-btn); border-left: 3px solid var(--green);
  font-size: var(--text-xs); letter-spacing: .09em; text-transform: uppercase;
}
.section--alt .atelier-ribbon { background: #293430; border: 1px solid rgba(207, 213, 208, 0.22); border-left: 3px solid var(--stitch-schutz); }
.atelier-ribbon span { font-variant-numeric: tabular-nums; color: #D4DAD5; }
.stitch { position: relative; overflow: hidden; padding-top: 24px; }
.stitch::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: repeating-linear-gradient(90deg, var(--stitch, var(--green)) 0 11px, transparent 11px 16px);
}
.stitch--diagnose { --stitch: var(--stitch-diagnose); }
.stitch--start { --stitch: var(--stitch-start); }
.stitch--team { --stitch: var(--stitch-team); }
.stitch--schutz { --stitch: var(--stitch-schutz); }
.ref-code {
  margin: 0 0 10px; font-size: var(--text-xs); font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums;
}
.kollektion .lead { margin-bottom: 16px; }
.kol-filter { display: none; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }
.kollektion.is-ready .kol-filter { display: flex; }
.kol-pill {
  display: inline-flex; align-items: center; min-height: var(--tap); padding: 8px 18px;
  border: 1px solid var(--line-dark); border-radius: 999px; background: var(--white);
  color: var(--text); font-size: 15px; font-weight: 600; cursor: pointer;
}
.kol-pill:hover { border-color: var(--green); color: var(--green); }
.kol-pill[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--white); }
.kol-grid { margin-top: 24px; margin-bottom: 0; }
.kol-card { display: flex; flex-direction: column; transition: border-color 180ms ease, background-color 180ms ease; }
.kol-card.is-dimmed { background: transparent; border-color: var(--line); }
.kollektion[data-branche]:not([data-branche="alle"]) .kol-card:not(.is-dimmed) {
  background: var(--white); border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green);
}
.kol-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.kol-head .ref-code { margin: 0; }
.kol-preis { margin: 0; font-size: 16px; font-weight: 700; color: var(--green); white-space: nowrap; font-variant-numeric: tabular-nums; }
.kol-fit { font-size: 15px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.kol-card .link-row { margin-top: auto; padding-top: 8px; margin-bottom: 0; }

/* Списки, шаги, пометки */
/* Д14: строка списка не длиннее шагов */
.list-check { list-style: none; padding: 0; max-width: 720px; }
.list-check li { position: relative; padding-left: 36px; margin-bottom: 10px; }
.list-check li::before {
  content: ""; position: absolute; left: 6px; top: 0.3em; width: 8px; height: 14px;
  border-right: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(45deg);
}
.section--alt .list-check li::before { border-color: var(--white); }
ol.steps { list-style: none; padding: 0; counter-reset: step; max-width: 720px; }
ol.steps > li { position: relative; counter-increment: step; padding: 0 0 20px 56px; margin: 0; min-height: 52px; }
ol.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  display: flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border: 2px solid var(--green); border-radius: 50%; color: var(--green); font-weight: 700; font-size: var(--text-ui);
}
ol.steps > li + li { border-top: 1px solid var(--line); padding-top: 20px; }
ol.steps > li + li::before { top: 20px; }
.section--alt ol.steps > li::before { border-color: var(--white); color: var(--white); }
.section--alt ol.steps > li + li { border-color: var(--line-dark); }
.note { font-size: var(--text-ui); line-height: 1.45; color: var(--muted); }

/* Таблица сравнения: скролл только внутри блока */
.table-scroll { max-width: 100%; overflow-x: auto; margin: 24px 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); }
.table-hint { display: none; font-size: var(--text-sm); color: var(--muted); margin: 20px 0 -12px; }
table.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: var(--text-ui); line-height: 1.4; }
table.compare caption { caption-side: top; text-align: left; padding: 16px; font-size: var(--text-sm); color: var(--muted); }
table.compare th, table.compare td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
table.compare thead th { border-bottom: 2px solid var(--green); font-weight: 700; }
table.compare tbody th { font-weight: 700; }
table.compare tr:last-child > * { border-bottom: 0; }
.section--muted .table-scroll { background: var(--bg); }
.section--alt .table-scroll { background: var(--white); color: var(--text); }

/* FAQ на details */
.faq-item { max-width: 780px; border-bottom: 1px solid var(--line); }
.faq-item:first-of-type { border-top: 1px solid var(--line); }
.faq-item > summary { position: relative; padding: 18px 44px 18px 0; font-size: var(--heading-3); font-weight: 700; line-height: 1.35; cursor: pointer; list-style: none; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::before, .faq-item > summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 18px; height: 2px; background: var(--green);
}
.faq-item > summary::after { transform: rotate(90deg); }
.faq-item[open] > summary::after { transform: none; }
.faq-a { padding: 0 24px 20px 0; }
.faq-a p { margin-bottom: 12px; }
.section--alt .faq-item, .section--alt .faq-item:first-of-type { border-color: var(--line-dark); }
.section--alt .faq-item > summary::before, .section--alt .faq-item > summary::after { background: var(--white); }

/* Юридический текст */
.legal .wrap > * { max-width: var(--measure); }
.legal h2 { font-size: var(--heading-2); line-height: 1.25; margin-top: 36px; }
.legal h1 + h2, .legal .wrap > h2:first-child { margin-top: 0; }
.legal h3 { font-size: var(--heading-3); margin-top: 24px; margin-bottom: 10px; }
.legal p, .legal li { font-size: var(--text-body); line-height: 1.7; }
.legal address { font-style: normal; margin-bottom: 20px; }

/* Футер */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; font-size: var(--text-sm); }
.footer-nav ul { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 24px; }
.footer-nav a { display: inline-flex; align-items: center; min-width: var(--tap); min-height: var(--tap); color: var(--text); font-size: var(--text-ui); text-decoration: none; }
.footer-nav a:hover { color: var(--green); text-decoration: underline; }
.site-footer p { margin: 0 0 8px; max-width: none; }
.footer-contact a { display: inline-flex; align-items: center; min-height: var(--tap); }
.footer-ai, .footer-copy { color: var(--muted); }
.footer-logo { margin-bottom: 24px; }

/* До 1100 px: меню на details, сетки уже */
@media (max-width: 1100px) {
  .wrap { width: calc(100% - 48px); }
  .logo { width: 196px; min-width: 0; }
  .site-header .wrap { gap: 12px 16px; }
  .nav { display: none; }
  .site-header .wrap > .lang-switch { display: none; }
  /* Кнопка меню и EN рядом с логотипом; если строки мало, кнопка заявки уходит на вторую строку */
  .lang-switch { order: 1; }
  .nav-mobile { display: block; order: 2; }
  .header-cta { order: 3; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .grid-2 { gap: 24px; }
}

@media (max-width: 900px) {
  /* Д08: первый экран главной в одну колонку, h1 не идёт в пять строк */
  main > .section:first-child .grid-2 { grid-template-columns: 1fr; }
}

/* Д10: подсказка о прокрутке, пока таблица (640 px и рамка) не помещается в .wrap */
@media (max-width: 705px) {
  .table-hint { display: block; }
}

@media (max-width: 600px) {
  .wrap { width: calc(100% - 36px); }
  .nav-mobile ul { width: calc(100% - 36px); }
  .logo { width: 200px; }
  .site-header .wrap { gap: 12px; min-height: 0; }
  .nav-mobile { order: 1; }
  .header-cta { order: 2; flex: 1 1 200px; padding: 10px 12px; }
  .lang-switch { order: 3; }
  .section { padding: 36px 0; }
  main > .section:first-child { padding-top: 24px; }
  main > .wrap:first-child + .section { padding-top: 16px; }
  main > .wrap:first-child + .section--alt { padding-top: 24px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; margin: 20px 0; gap: 16px; }
  .card { padding: 20px; }
  .faq-item > summary { padding: 16px 36px 16px 0; }
  ol { padding-left: 22px; }
  ol.steps > li { padding-left: 48px; }
  /* Д17: строка ссылок блоками, точка-разделитель не нужна */
  p.link-row > a:not(.btn) { display: flex; align-items: center; width: fit-content; max-width: 100%; min-height: var(--tap); padding-block: 0; line-height: 1.4; }
  .link-row .sep { display: none; }
}

/* Д09: на 320 px логотип и Menü в одной строке */
@media (max-width: 360px) {
  .logo { width: 160px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Location disclosure: hover, keyboard and touch share one native control. */
.header-location { flex: 0 0 auto; }
.header-location > summary { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-btn); background: transparent; font-size: 14px; cursor: pointer; list-style: none; }
.header-location > summary::-webkit-details-marker { display: none; }
.location-clock { min-width: 5ch; font-variant-numeric: tabular-nums; color: var(--muted); }
@media (scripting: enabled) {
  .header-location:not(.is-ready) .location-clock { width: 5ch; visibility: hidden; }
}
.location-chevron { width: 7px; height: 7px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg); transition: transform 160ms ease; }
.header-location[open] .location-chevron { transform: rotate(225deg); }
.location-panel { position: absolute; top: 100%; left: 0; right: 0; z-index: 25; background: var(--white); box-shadow: 0 16px 24px rgb(32 41 39 / 12%); border-bottom: 1px solid var(--line); }
.location-panel::before { content: ''; position: absolute; top: -20px; height: 20px; left: 0; right: 0; }
.location-layout { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; width: calc(100% - 96px); max-width: 1200px; margin: auto; padding: 48px 0 28px; }
.location-copy .location-address { font-size: var(--heading-2); font-weight: 600; line-height: 1.4; letter-spacing: -.02em; margin-bottom: 24px; }
.location-copy .eyebrow { margin-bottom: 16px; }
.location-time { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; border-radius: 10px; background: var(--bg); padding: 16px; font-size: 16px; }
.location-time [data-location-clock] { font-variant-numeric: tabular-nums; color: var(--muted); }
.location-map { min-width: 0; margin: 0; }
.location-map img { display: block; width: 100%; height: auto; aspect-ratio: 760/460; object-fit: cover; border-radius: 12px; background: #edf0e5; }
.location-map figcaption { font-size: 12px; color: var(--muted); }
.location-map figcaption a { display: inline-flex; align-items: center; min-height: 44px; }
.location-close { position: absolute; top: 6px; right: 0; min-height: 44px; padding: 8px; border: 0; background: transparent; font-size: 14px; cursor: pointer; }
.header-location.is-ready[open] .location-layout { animation: location-open 160ms ease-out both; }
@keyframes location-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 1320px) {
  .site-header .wrap { gap: 12px; }
  .site-header .logo { width: 194px; min-width: 194px; }
  .site-header .nav-list { gap: 16px; }
  .site-header .nav-list a, .site-header .header-cta { font-size: 14px; }
}
@media (max-width: 1100px) {
  .header-location { order: 3; }
  .header-cta { order: 4; }
  .location-layout { width: calc(100% - 48px); gap: 28px; }
}
@media (max-width: 600px) {
  .header-location { order: 2; flex: 1 1 auto; }
  .header-location > summary { min-height: 44px; }
  .header-cta { order: 4; flex-basis: 100%; }
  .lang-switch { order: 3; }
  .location-layout { width: calc(100% - 36px); grid-template-columns: 1fr; gap: 16px; padding-top: 48px; }
  .location-copy .location-address { font-size: 20px; margin-bottom: 16px; }
  .location-copy .eyebrow { display: none; }
  .location-time { font-size: 14px; padding: 12px; margin-bottom: 12px; }
  .location-map figcaption { line-height: 1.4; }
}

/* Строка бренда на странице контакта */
.contact-brand { margin: 16px 0 0; font-size: 14px; line-height: 1.45; color: var(--muted); }

/* Живые блоки (pages/bloecke): общий выбор. Радио и флажок занимают 44×44 px, видимый знак рисует ::before. */
.wahl { display: flex; align-items: center; min-height: var(--tap); font-size: 16px; line-height: 1.3; cursor: pointer; }
.wahl input { -webkit-appearance: none; appearance: none; position: relative; flex: 0 0 var(--tap); width: var(--tap); height: var(--tap); margin: 0 -10px 0 0; cursor: pointer; }
.wahl input::before { content: ""; box-sizing: border-box; position: absolute; left: 0; top: 11px; width: 22px; height: 22px; border: 1px solid var(--line-dark); border-radius: 50%; background: var(--white); }
.wahl input[type="checkbox"]::before { border-radius: 3px; }
.wahl input:checked::before { border-color: var(--green); background: var(--green); }
.wahl input[type="radio"]:checked::before { border-width: 7px; background: var(--white); }
.wahl input[type="checkbox"]:checked::after { content: ""; box-sizing: content-box; position: absolute; left: 7px; top: 14px; width: 5px; height: 10px; border: solid var(--white); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.wahl input:focus-visible { outline: 0; }
.wahl input:focus-visible::before { outline: 3px solid var(--green); outline-offset: 3px; }
.wahl-name { flex: 1 1 auto; min-width: 0; }
.wahl-preis { flex: 0 0 auto; margin-left: auto; padding-left: 12px; font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--muted); }
fieldset:disabled .wahl { opacity: .5; cursor: default; }
fieldset:disabled .wahl input { cursor: default; }
@media (forced-colors: active) {
  .wahl input { appearance: auto; margin-right: 0; }
  .wahl input::before, .wahl input::after { display: none; }
}

/* Схема «под капотом». Без JS и в режиме liste: список пяти слоёв, «было» и «стало» рядом. */
.unter-der-haube { --udh-karte: var(--white); --udh-feld: var(--bg); }
.section--muted .unter-der-haube { --udh-karte: var(--bg); --udh-feld: var(--white); }
.udh-text { color: var(--muted); }
.udh-leiste, .udh-schalter { display: none; }
.udh-liste { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.udh-schicht { margin: 0; padding: 20px 24px 24px; background: var(--udh-karte); border: 1px solid var(--line); border-radius: var(--radius-card); }
.udh-schicht h3 { margin-bottom: 8px; font-size: var(--heading-3); }
.udh-schicht > p { max-width: none; margin-bottom: 16px; font-size: 16px; color: var(--muted); }
.udh-paar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.udh-vorher, .udh-nachher { position: relative; max-width: none; margin: 0; padding: 14px 16px 16px 20px; overflow: hidden; border-radius: var(--radius-btn); background: var(--udh-feld); font-size: 16px; line-height: 1.45; }
.udh-vorher::before, .udh-nachher::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--status-red); }
.udh-nachher::before { background: var(--green); }
.udh-vorher strong, .udh-nachher strong { margin-bottom: 4px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--status-red); }
.udh-nachher strong { color: var(--green); }
.udh-knopf { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--udh-karte); font-size: 16px; font-weight: 600; line-height: 1.25; text-align: left; cursor: pointer; }
.udh-knopf:hover { border-color: var(--green); }
.udh-knopf[aria-pressed="true"] { border-color: var(--green); background: var(--green); color: var(--white); }
.udh-nr { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; border: 1px solid currentColor; border-radius: 50%; font-size: 14px; font-variant-numeric: tabular-nums; }
.udh-stand { min-width: 104px; min-height: var(--tap); padding: 8px 20px; border: 0; background: transparent; font-size: 15px; font-weight: 700; cursor: pointer; }
.udh-stand:focus-visible { outline-offset: -5px; }
.udh-stand[aria-pressed="true"] { background: var(--green); color: var(--white); }
.udh-stand[data-stand="vorher"][aria-pressed="true"] { background: var(--status-red); }
.udh-stand[aria-pressed="true"]:focus-visible { outline-color: var(--white); }
@media (max-width: 767px) {
  .udh-schicht { padding: 16px 16px 20px; }
  .udh-paar { grid-template-columns: minmax(0, 1fr); }
}
/* Сцена: только полный вид и только со скриптом. Слои лежат в одной ячейке, поэтому высота блока
   не меняется ни при загрузке, ни при переключении; браузер без этого правила показывает список. */
@media (scripting: enabled) {
  .unter-der-haube[data-modus="voll"] .udh-buehne { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); grid-template-areas: "leiste schalter" "leiste liste"; grid-template-rows: auto 1fr; gap: 16px 32px; align-items: start; }
  .unter-der-haube[data-modus="voll"] .udh-leiste { grid-area: leiste; display: grid; gap: 8px; }
  .unter-der-haube[data-modus="voll"] .udh-schalter { grid-area: schalter; display: inline-flex; justify-self: start; overflow: hidden; border: 1px solid var(--line-dark); border-radius: 24px; background: var(--udh-karte); }
  .unter-der-haube[data-modus="voll"] .udh-liste { grid-area: liste; gap: 0; }
  .unter-der-haube[data-modus="voll"] .udh-schicht { grid-area: 1 / 1; visibility: hidden; opacity: 0; transform: translateY(8px); transition: opacity 240ms ease, transform 240ms ease, visibility 0s linear 240ms; }
  .unter-der-haube[data-modus="voll"] .udh-schicht.is-aktiv { visibility: inherit; opacity: 1; transform: none; transition-delay: 0s; }
  .unter-der-haube[data-modus="voll"] .udh-paar { grid-template-columns: minmax(0, 1fr); }
  .unter-der-haube[data-modus="voll"] .udh-vorher, .unter-der-haube[data-modus="voll"] .udh-nachher { grid-area: 1 / 1; transition: opacity 240ms ease, transform 240ms ease, visibility 0s; }
  .unter-der-haube[data-modus="voll"][data-stand="vorher"] .udh-nachher,
  .unter-der-haube[data-modus="voll"][data-stand="nachher"] .udh-vorher { visibility: hidden; opacity: 0; transform: translateX(12px); transition-delay: 0s, 0s, 240ms; }
  /* Зелёная черта проводится под «стало», когда его открывают */
  .unter-der-haube[data-modus="voll"] .udh-nachher::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform 420ms ease 160ms; }
  .unter-der-haube[data-modus="voll"][data-stand="nachher"] .is-aktiv .udh-nachher::after { transform: scaleX(1); }
}
@media (scripting: enabled) and (max-width: 767px) {
  .unter-der-haube[data-modus="voll"] .udh-buehne { grid-template-columns: minmax(0, 1fr); grid-template-areas: "leiste" "schalter" "liste"; grid-template-rows: auto; }
  .unter-der-haube[data-modus="voll"] .udh-leiste { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .unter-der-haube[data-modus="voll"] .udh-knopf { justify-content: center; min-height: 48px; padding: 8px 0; }
  /* На телефоне на кнопке номер; название слоя остаётся кнопке именем и стоит заголовком карточки */
  .unter-der-haube[data-modus="voll"] .udh-knopf > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* Расчёт пути. Без JS виден пример из меток цен; со скриптом пример и расчёт лежат в одной ячейке,
   место под расчёт занято до is-ready и страница не прыгает. */
.weg-beispiel { padding: 20px 24px; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: var(--radius-card); }
.weg-live { display: none; }
.weg-rechner.is-ready > .weg-live { display: block; }
.weg-rechner.is-ready > .weg-beispiel { display: none; }
@media (scripting: enabled) {
  .weg-rechner:not(.is-ready) { display: grid; grid-template-columns: minmax(0, 1fr); }
  .weg-rechner:not(.is-ready) > .weg-beispiel, .weg-rechner:not(.is-ready) > .weg-live { grid-area: 2 / 1; }
  .weg-rechner:not(.is-ready) > .weg-beispiel { align-self: start; }
  .weg-rechner:not(.is-ready) > .weg-live { display: block; visibility: hidden; }
}
.weg-text { color: var(--muted); }
.weg-spalten { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 32px; align-items: start; }
.weg-wahl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.weg-gruppe { min-width: 0; margin: 0; padding: 8px 16px 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); }
.weg-gruppe legend { padding: 0 6px; font-size: 16px; font-weight: 700; }
.weg-feld { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.3; }
.weg-feld .wahl-preis { grid-column: 1; margin: 0; padding: 0; white-space: normal; }
.weg-feld select { grid-area: 1 / 2 / span 2; min-width: 72px; min-height: var(--tap); padding: 8px 12px; background: var(--white); border: 1px solid var(--line-dark); border-radius: var(--radius-btn); cursor: pointer; }
.weg-summe { position: sticky; top: 24px; padding: 24px; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: var(--radius-card); }
.weg-summe h3 { margin-bottom: 8px; font-size: var(--heading-3); }
.weg-summe dl { margin: 0 0 16px; }
.weg-summe dl > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.weg-summe dt { font-size: 15px; color: var(--muted); }
.weg-summe dd { margin: 0 0 0 auto; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* Пустая сумма до расчёта держит строку той же высоты, что и готовая */
.weg-summe output:empty::before { content: "\200b"; }
.weg-haupt dd { font-size: var(--text-price); line-height: 1.2; color: var(--green); }
.weg-hinweis, .weg-netto { max-width: none; margin: 0 0 8px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.weg-netto { margin: 12px 0 0; }
@media (max-width: 1100px) {
  .weg-spalten { grid-template-columns: minmax(0, 1fr); }
  .weg-summe { position: static; }
}
@media (max-width: 620px) {
  .weg-wahl { grid-template-columns: minmax(0, 1fr); }
  .weg-gruppe { padding-inline: 12px; }
  .weg-summe { padding: 20px 16px; }
}

/* Конструктор заявки. Ряд ссылок виден всегда: без JS это прямые WhatsApp, почта и телефон. */
.anfrage-text, .anfrage-anleitung { color: var(--muted); font-size: 15px; }
.anfrage-live { display: none; }
.anfrage.is-ready > .anfrage-live { display: block; }
.anfrage:not(.is-ready) .btn[data-anfrage="kopieren"] { display: none; }
@media (scripting: enabled) {
  .anfrage:not(.is-ready) > .anfrage-live { display: block; visibility: hidden; }
  .anfrage:not(.is-ready) .btn[data-anfrage="kopieren"] { display: inline-flex; visibility: hidden; }
}
.anfrage-themen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; min-width: 0; margin: 0 0 16px; padding: 0; border: 0; }
.anfrage-themen legend, .anfrage-feld > span { display: block; margin-bottom: 6px; padding: 0; font-size: 15px; font-weight: 700; }
.anfrage-feld { display: block; margin-bottom: 16px; }
.anfrage-feld input, .anfrage-feld select, .anfrage-feld textarea { display: block; width: 100%; min-height: 48px; padding: 10px 12px; background: var(--white); border: 1px solid var(--line-dark); border-radius: var(--radius-btn); font-size: 16px; line-height: 1.45; }
.anfrage-feld textarea { resize: vertical; }
.anfrage-feld select:disabled { opacity: .55; }
.anfrage-feld [data-feld="vorschau"] { background: transparent; border-style: dashed; }
.anfrage-paar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.anfrage-wege { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
.anfrage-mail { display: inline-flex; }
.anfrage-mail a { flex: 1 1 auto; }
.anfrage-mail a, .anfrage .btn[data-anfrage="kopieren"] { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; background: transparent; border: 1px solid var(--green); border-radius: var(--radius-btn); color: var(--green); font-weight: 700; line-height: 1.2; text-decoration: none; }
.anfrage-mail a:hover, .anfrage .btn[data-anfrage="kopieren"]:hover { background: var(--text); border-color: var(--text); color: var(--white); }
.anfrage-tel { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 700; }
.anfrage-hinweis, .anfrage-selbst { max-width: none; margin: 0 0 8px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.anfrage-hinweis { color: var(--text); font-weight: 700; }
.anfrage-selbst { margin-bottom: 0; }
.anfrage-selbst a { padding-block: 13px; margin-block: -13px; }
@media (max-width: 480px) {
  .anfrage-themen, .anfrage-paar { grid-template-columns: minmax(0, 1fr); }
  .anfrage-wege > * { flex: 1 1 100%; }
}

/* pages/css/diagnose.css */
.page-diagnose .hero .lead { max-width: var(--measure); }
.page-diagnose .preis { display: flex; flex-direction: column; }
.page-diagnose .preis__betrag { font-size: var(--text-price); font-weight: 700; line-height: 1.2; color: var(--green); font-variant-numeric: tabular-nums; }
.page-diagnose .preis .btn { margin-top: auto; align-self: flex-start; }
.page-diagnose .abschluss #buchen { margin: 24px 0 0; }

/* pages/css/index.css */
.page-index .hero .lead { max-width: var(--measure); }
.page-index .schmerzen { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; max-width: 820px; }
.page-index .schmerzen li { position: relative; padding: 0 0 0 28px; font-size: var(--text-body); line-height: 1.5; }
.page-index .schmerzen li::before { content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 12px; border-radius: 50%; background: var(--status-red); }
.page-index .pruefungen { list-style: none; padding: 0; margin: 24px 0 0; max-width: 920px; border-top: 1px solid var(--line); counter-reset: pruefung; }
.page-index .pruefungen > li { counter-increment: pruefung; display: grid; grid-template-columns: 56px minmax(200px, 260px) minmax(0, 1fr); align-items: baseline; gap: 12px 24px; margin: 0; padding: 16px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.page-index .pruefungen > li::before { content: "0" counter(pruefung); color: var(--green); font-size: 18px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.page-index .pruefungen h3 { margin: 0; font-size: var(--heading-3); }
.page-index .pruefungen p { margin: 0; color: var(--muted); max-width: none; }
.page-index .fall { display: flex; flex-direction: column; }
.page-index .fall__vorher { color: var(--muted); }
.page-index .fall__nachher { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.page-index .fall__nachher strong { color: var(--green); }
.page-index .section--alt .fall__vorher { color: #D4DAD5; }
.page-index .section--alt .fall__vorher strong { color: #F8CACA; }
.page-index .section--alt .fall__nachher { border-top-color: rgba(207, 213, 208, 0.24); color: var(--white); }
.page-index .section--alt .fall__nachher strong { color: #9CD3B8; }
.page-index .weg h3 { margin-bottom: 8px; }
.page-index .weg p { margin-bottom: 8px; }
.page-index .abschluss .actions { margin-bottom: 0; }
@media (max-width: 900px) {
  .page-index .pruefungen > li { grid-template-columns: 44px minmax(0, 1fr); gap: 4px 16px; }
  .page-index .pruefungen p { grid-column: 2; }
}
@media (max-width: 600px) {
  .page-index .schmerzen { grid-template-columns: 1fr; }
}

/* pages/css/kontakt.css */
.page-kontakt .contact-intro { padding-block: 16px 40px; }
.page-kontakt .contact-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.page-kontakt .contact-person { min-width: 0; }
.page-kontakt .contact-person h1 { max-width: 440px; margin: 0 0 16px; }
.page-kontakt .contact-person > .lead { font-size: var(--text-lead); line-height: 1.5; max-width: 440px; color: var(--muted); margin: 0; }
.page-kontakt .contact-person-info { padding-top: 32px; }
.page-kontakt .contact-person-label { display: block; font-size: var(--text-sm); color: var(--muted); margin: 0 0 4px; font-weight: 400; }
.page-kontakt .contact-person-info h2 { font-size: var(--heading-2); margin-bottom: 20px; }
.page-kontakt .contact-direct { line-height: 1.4; margin: 0; }
.page-kontakt .contact-direct > div { border-top: 1px solid var(--line); padding: 12px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-kontakt .contact-direct > div > span { font-size: var(--text-sm); color: var(--muted); }
.page-kontakt .contact-direct a { display: inline-flex; align-items: center; min-height: var(--tap); font-size: clamp(17px, 1.4vw, 19px); text-decoration: none; font-weight: 600; text-underline-offset: 5px; }
.page-kontakt .contact-direct a:hover { text-decoration: underline; }
.page-kontakt .contact-place { border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding: 0; }
.page-kontakt .contact-place summary { padding: 18px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; list-style: none; cursor: pointer; }
.page-kontakt .contact-place summary::-webkit-details-marker { display: none; }
.page-kontakt .contact-place summary::after { content: none; }
.page-kontakt .contact-address { display: block; color: var(--text); font-size: 15px; font-weight: 400; }
.page-kontakt .contact-place-icon { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; background: var(--white); border: 1px solid var(--line); border-radius: 50%; font-size: 20px; font-weight: 400; transition: transform 160ms ease; }
.page-kontakt .contact-place[open] .contact-place-icon { transform: rotate(45deg); }
.page-kontakt .contact-place figure { margin: 0 0 16px; }
.page-kontakt .contact-place img { display: block; width: 100%; height: auto; border-radius: var(--radius-btn); }
.page-kontakt .contact-place figcaption { font-size: var(--text-xs); line-height: 1.5; color: var(--muted); }
.page-kontakt .contact-place figcaption a { display: inline-flex; align-items: center; min-height: var(--tap); }
.page-kontakt .contact-compose { min-width: 0; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); }
.page-kontakt .contact-compose h2 { position: relative; font-size: var(--heading-2); margin-bottom: 8px; }
.page-kontakt .contact-compose > p { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.page-kontakt .contact-compose h2::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 40px; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform 220ms ease; pointer-events: none; }
.page-kontakt .contact-compose:focus-within h2::after { transform: scaleX(1); }
.page-kontakt .contact-place[open] figure { animation: page-kontakt-reveal 260ms ease-out; }
.page-kontakt .contact-legal { padding-block: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--text-sm); }
@keyframes page-kontakt-reveal { from { opacity: .65; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1000px) {
  .page-kontakt .contact-layout { gap: 32px; }
  .page-kontakt .contact-compose { padding: 24px; }
}
@media (max-width: 760px) {
  .page-kontakt .contact-intro { padding-block: 16px 32px; }
  .page-kontakt .contact-layout { grid-template-columns: 1fr; gap: 28px; }
  .page-kontakt .contact-person-info { padding-top: 24px; }
  .page-kontakt .contact-person-info h2 { margin-bottom: 16px; }
  .page-kontakt .contact-compose { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .page-kontakt .contact-place-icon, .page-kontakt .contact-compose h2::after { transition: none; }
  .page-kontakt .contact-place[open] figure { animation: none; }
}

/* pages/css/leistungen.css */
.page-leistungen .hero .lead { max-width: var(--measure); }
.page-leistungen .richtungen { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px 14px; }
.page-leistungen .richtungen a { display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap); padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--radius-btn); background: var(--white); color: var(--text); font-weight: 600; text-decoration: none; }
.page-leistungen .richtungen a:hover { border-color: var(--green); color: var(--green); }
.page-leistungen .richtungen .icon { width: 20px; height: 20px; color: var(--green); }
.page-leistungen .paket { display: flex; flex-direction: column; }
.page-leistungen .paket__preis { font-size: var(--text-price); font-weight: 700; line-height: 1.2; color: var(--green); font-variant-numeric: tabular-nums; }
.page-leistungen .paket .list-check { margin-bottom: 20px; }
.page-leistungen .paket .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 600px) {
  .page-leistungen .richtungen { flex-direction: column; }
}

/* pages/css/module.css */
/* Preis in der Karte */
.page-module .card__price { font-size: var(--text-price); line-height: 1.2; font-weight: 700; color: var(--green); margin: 0 0 12px; font-variant-numeric: tabular-nums; }
.page-module .card .btn--text { padding-left: 0; }

/* pages/css/preise.css */
.page-preise .hero .lead { max-width: var(--measure); }
.page-preise .preistabelle tbody .abschnitt th { padding-top: 24px; font-size: var(--heading-3); color: var(--green); text-align: left; }
.page-preise .preistabelle tbody:first-of-type .abschnitt th { padding-top: 12px; }
.page-preise .preistabelle td.nowrap { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.page-preise .hinweise { margin: 20px 0 0; padding-left: 20px; max-width: var(--measure); color: var(--muted); font-size: var(--text-ui); line-height: 1.55; }
.page-preise .hinweise li { margin-bottom: 6px; }
.page-preise .abschluss .actions { margin-bottom: 0; }

/* F2: до 600 px строка таблицы цен в две строки без боковой прокрутки: название и цена, под ними описание */
@media (max-width: 600px) {
  .page-preise table.preistabelle, .page-preise .preistabelle tbody { display: block; min-width: 0; }
  .page-preise .preistabelle thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .page-preise .preistabelle tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .page-preise .preistabelle th, .page-preise .preistabelle td { display: block; padding: 0; border: 0; }
  .page-preise .preistabelle tbody th[scope="row"] { grid-column: 1; }
  .page-preise .preistabelle td { grid-column: 1 / -1; grid-row: 2; margin-top: 4px; font-size: 15px; color: var(--muted); }
  .page-preise .preistabelle td.nowrap { grid-column: 2; grid-row: 1; margin-top: 0; white-space: nowrap; color: var(--text); }
  .page-preise .preistabelle tr.abschnitt { display: block; padding: 0 16px; }
  .page-preise .preistabelle tbody .abschnitt th { font-size: 18px; padding: 20px 0 8px; }
  .page-preise .preistabelle tbody:first-of-type .abschnitt th { padding-top: 12px; }
}

/* pages/css/wartung.css */
/* Preis in der Karte */
.page-wartung .card__price { font-size: var(--text-price); line-height: 1.2; font-weight: 700; color: var(--green); margin: 0 0 12px; font-variant-numeric: tabular-nums; }
.page-wartung .card .btn--text { padding-left: 0; }
