/* ПЕРЕТИН — terracotta urban bands. One stylesheet, no build step. */
:root {
  --bg: #FFF8F1;
  --surface: #FFFFFF;
  --text: #292D31;
  --primary: #BD502C;
  --primary-strong: #9E3F1F;
  --primary-tint: #FBEBE1;
  --accent: #426D91;
  --accent-strong: #34587A;
  --accent-tint: #EAF0F6;
  --muted: #5C6166;
  --line: #E9DED3;
  --line-strong: #D9C8B8;
  --radius: 10px;
  --f-body: "Rubik", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-label: "Noto Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1200px;
  --gutter: 16px;
}
@media (min-width: 768px) { :root { --gutter: 28px; } }
@media (min-width: 1200px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent-strong); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--primary-strong); }
h1, h2, h3 { line-height: 1.12; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.band-primary :focus-visible, .site-footer :focus-visible { outline-color: #FFFFFF; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 8px; top: -100px; z-index: 10; background: var(--text); color: #fff; padding: 10px 14px; border-radius: 6px; }
.skip:focus { top: 8px; color: #fff; }
.label, .kicker {
  font-family: var(--f-label);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.2em; }

/* ---------- header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; }
.site-header::after { /* two thin static stripes: brand bands */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 4px;
  background: linear-gradient(90deg, var(--primary) 0 62%, var(--accent) 62% 100%);
}
.header-row { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); margin-right: auto; min-height: 44px; }
.brand svg { width: 38px; height: 38px; }
.brand-name { font-weight: 700; font-size: 1.3rem; letter-spacing: 0.06em; }
.brand-note { display: none; font-family: var(--f-label); font-size: 0.75rem; color: var(--muted); line-height: 1.2; max-width: 14em; }
@media (min-width: 1024px) { .brand-note { display: block; } }
.main-nav { order: 3; width: 100%; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; justify-content: space-between; }
.main-nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
  color: var(--text); text-decoration: none; font-weight: 500;
}
.main-nav a::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 6px; height: 3px; border-radius: 2px;
  background: var(--primary); transform: scaleX(0); transform-origin: left center;
  transition: transform 140ms ease-out;
}
.main-nav a:hover::after { transform: scaleX(1); }
.main-nav a[aria-current="page"]::after { transform: scaleX(1); animation: grow 140ms ease-out; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.lang-switch { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; font-family: var(--f-label); font-weight: 600; font-size: 0.85rem; }
.lang-switch a, .lang-switch span { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 44px; padding: 0 12px; text-decoration: none; color: var(--text); }
.lang-switch [aria-current="true"] { background: var(--text); color: #fff; }
.btn.header-cta { display: none; }
@media (max-width: 400px) {
  .main-nav a { padding: 0 6px; font-size: 0.98rem; }
  .main-nav a::after { left: 6px; right: 6px; }
}
@media (min-width: 900px) {
  .main-nav { order: 0; width: auto; }
  .main-nav ul { justify-content: flex-start; gap: 8px; }
  .btn.header-cta { display: inline-flex; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 8px; border: 2px solid transparent;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color 140ms ease-out, color 140ms ease-out, border-color 140ms ease-out;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-strong); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-strong); color: #fff; }
.btn-light { background: #fff; color: var(--primary-strong); }
.btn-light:hover { background: var(--bg); color: var(--primary-strong); }
.btn-outline-light { border-color: #fff; color: #fff; background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,0.14); color: #fff; }
.btn-quiet { background: var(--surface); border-color: var(--line-strong); color: var(--text); font-weight: 500; }
.btn-quiet:hover { border-color: var(--accent); color: var(--accent-strong); }
.btn-sm { min-height: 44px; padding: 0 14px; font-size: 0.95rem; }

/* ---------- bands ---------- */
.band { padding-block: clamp(40px, 7vw, 88px); position: relative; }
.band-primary { background: var(--primary); color: #fff; }
.band-primary a:not(.btn) { color: #fff; }
.band-white { background: var(--surface); }
.band-accent { background: var(--accent-tint); }
.band-tint { background: var(--primary-tint); }
.band-head { padding-block: clamp(28px, 5vw, 56px); }
.section-lead { max-width: 46rem; color: var(--muted); font-size: 1.05rem; }
.band-primary .section-lead { color: #fff; }

/* ---------- hero ---------- */
.hero { overflow: hidden; padding-bottom: 0; }
.hero-grid { display: grid; gap: 28px; align-items: end; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 48px; } }
.hero h1 { font-size: clamp(2.5rem, 7.4vw, 5.4rem); line-height: 1.0; letter-spacing: -0.025em; margin-bottom: 0.35em; }
.hero-lead { font-size: clamp(1.08rem, 1.8vw, 1.28rem); max-width: 40rem; }
.hero-note { font-size: 0.98rem; opacity: 0.95; border-left: 3px solid #fff; padding-left: 12px; max-width: 40rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 8px; }
.hero-hint { font-size: 0.92rem; margin: 0 0 28px; }
.hero-figure { margin: 0; background: #fff; border-radius: 6px 6px 0 0; padding: 18px 18px 0; position: relative; }
.hero-figure img { display: block; width: 100%; height: auto; aspect-ratio: 440 / 200; object-fit: cover; }
.hero-figure figcaption { font-family: var(--f-label); font-size: 0.75rem; color: var(--muted); padding: 10px 0 14px; }
.hero-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--text); color: #fff; }
.hero-stats li { padding: 16px 12px; border-right: 1px solid rgba(255,255,255,0.18); }
.hero-stats li:last-child { border-right: 0; }
.hero-stats b { display: block; font-size: clamp(1.6rem, 3.6vw, 2.4rem); line-height: 1; }
.hero-stats span { font-family: var(--f-label); font-size: 0.78rem; letter-spacing: 0.04em; }
.stripe-bottom { height: 22px; background: repeating-linear-gradient(90deg, var(--accent) 0 72px, var(--primary-strong) 72px 84px); }

/* ---------- kinds (free text set) ---------- */
.kinds-set { font-size: clamp(1.7rem, 4.6vw, 3.3rem); line-height: 1.18; font-weight: 700; margin: 0.2em 0 0.6em; letter-spacing: -0.015em; }
.kinds-set a { display: inline; padding-block: 0.1em; color: var(--text); text-decoration: none; background-image: linear-gradient(var(--primary), var(--primary)); background-size: 100% 0.12em; background-repeat: no-repeat; background-position: 0 92%; }
.kinds-set a:hover { color: var(--primary-strong); }
.kinds-set sup { font-family: var(--f-label); font-size: 0.36em; font-weight: 600; color: var(--primary-strong); vertical-align: 1.5em; margin-left: 0.15em; letter-spacing: 0; }
.kinds-set .sep { color: var(--accent); font-weight: 400; padding: 0 0.12em; }
.kinds-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 2px solid var(--text); }
@media (min-width: 768px) { .kinds-list { grid-template-columns: repeat(3, 1fr); } }
.kinds-list li { padding: 14px 0; border-bottom: 1px solid var(--line-strong); display: flex; flex-direction: column; gap: 2px; }
@media (min-width: 768px) { .kinds-list li { padding: 14px 18px 14px 0; border-bottom: 0; } }
.kinds-list b { font-size: 1.05rem; }
.kinds-list span { color: var(--muted); font-size: 0.95rem; }
.kinds-out { margin-top: 18px; color: var(--muted); font-size: 0.95rem; }

/* ---------- two actions ---------- */
.actions { display: grid; gap: 16px; }
@media (min-width: 768px) { .actions { grid-template-columns: 1fr 1fr; gap: 24px; } }
.action { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: start; padding: 24px; background: var(--bg); border-radius: var(--radius); border-left: 10px solid var(--primary); text-decoration: none; color: var(--text); }
.action.alt { border-left-color: var(--accent); }
.action .icon { width: 40px; height: 40px; color: var(--primary); grid-row: span 3; }
.action.alt .icon { color: var(--accent); }
.action h3 { margin: 0; font-size: 1.45rem; }
.action p { margin: 0; color: var(--muted); }
.action .go { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--primary-strong); margin-top: 6px; min-height: 32px; }
.action.alt .go { color: var(--accent-strong); }
.action:hover h3 { text-decoration: underline; text-underline-offset: 0.15em; }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: s; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: s; border-top: 6px solid var(--accent); padding-top: 14px; }
.steps li:nth-child(odd) { border-top-color: var(--primary); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--f-label); font-weight: 600; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.08em; }
.steps h3 { margin: 4px 0 6px; }
.steps p { margin: 0; color: var(--muted); }

/* ---------- faq ---------- */
.faq { border-top: 2px solid var(--text); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 12px 0; font-weight: 600; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform 140ms ease-out; color: var(--primary); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details > div { padding: 0 0 16px; color: var(--text); max-width: 46rem; }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--accent); color: #fff; padding-block: 40px 28px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.06em; font-size: 1.2rem; margin-bottom: 10px; }
.footer-brand svg { width: 34px; height: 34px; color: #fff; }
.site-footer p { font-size: 0.95rem; max-width: 34rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-bottom { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.3); font-family: var(--f-label); font-size: 0.8rem; }

/* ---------- breadcrumbs / page head ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 14px; font-family: var(--f-label); font-size: 0.85rem; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.7; }
.crumbs a { display: inline-flex; min-height: 44px; align-items: center; }
.crumbs ol { align-items: center; }
.page-head h1 { font-size: clamp(2rem, 5.4vw, 3.6rem); letter-spacing: -0.02em; max-width: 20ch; }
.page-head .section-lead { color: inherit; }

/* ---------- catalog ---------- */
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-top: -36px; position: relative; box-shadow: 0 10px 30px -18px rgba(41,45,49,0.35); }
.no-js .filters { display: none; }
.nojs-note { display: none; background: var(--surface); border-left: 6px solid var(--accent); padding: 14px 16px; border-radius: 6px; }
.no-js .nojs-note { display: block; }
.f-grid { display: grid; gap: 14px; }
@media (min-width: 768px) { .f-grid { grid-template-columns: 1fr 1fr; } .f-q { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .f-grid { grid-template-columns: 1.5fr 1fr 1fr; } .f-q { grid-column: auto; } }
.field label, .field legend { display: block; margin-bottom: 6px; color: var(--muted); }
.field input, .field select {
  width: 100%; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--line-strong); border-radius: 8px;
  background: var(--surface); color: var(--text); font: inherit; font-size: 1rem;
}
.field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23292D31' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field select:disabled { opacity: 0.55; }
.svc-field { border: 0; padding: 0; margin: 16px 0 0; min-width: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--line-strong); border-radius: 999px; cursor: pointer; font-weight: 500; background: var(--surface); }
.seg input:checked + label { background: var(--text); border-color: var(--text); color: #fff; }
.seg input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.active-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-strong); min-height: 44px; }
.active-row .label { color: var(--muted); margin-right: 4px; }
.active-none { color: var(--muted); font-size: 0.95rem; }
.chip { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 6px 0 12px; border-radius: 999px; background: var(--primary-tint); border: 1px solid #F0CDB8; font-size: 0.95rem; }
.chip b { font-weight: 600; }
.chip button { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--primary-strong); cursor: pointer; }
.chip button:hover { background: #F4D6C5; }
.clear-all { border: 0; background: none; color: var(--accent-strong); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 0.18em; min-height: 44px; padding: 0 8px; cursor: pointer; }
.count-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin: 28px 0 8px; }
.count { font-size: clamp(1.3rem, 2.6vw, 1.75rem); font-weight: 700; margin: 0; }
.count-note { color: var(--muted); font-size: 0.92rem; margin: 0; }
.empty { display: none; padding: 28px 20px; background: var(--surface); border: 2px dashed var(--line-strong); border-radius: var(--radius); text-align: center; margin: 12px 0 28px; }
.empty.on { display: block; }
.empty p { margin: 0 0 12px; }
.empty .t { font-weight: 700; font-size: 1.2rem; margin-bottom: 4px; }

.region { margin-top: 26px; }
.region[hidden] { display: none; }
.region-h { display: flex; align-items: baseline; gap: 10px; font-size: 1.3rem; padding: 10px 0; margin: 0; border-bottom: 3px solid var(--text); }
.region-h .n { font-family: var(--f-label); font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.labs { list-style: none; margin: 0; padding: 0; }
.lab { display: grid; gap: 12px 24px; padding: 18px 0; border-bottom: 1px solid var(--line-strong); }
.lab[hidden] { display: none; }
@media (min-width: 900px) { .lab { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) minmax(0, 0.95fr); align-items: start; } }
.lab-title { margin: 0; font-size: 1.22rem; line-height: 1.3; font-weight: 500; overflow-wrap: anywhere; }
.lab-title .kicker { display: block; color: var(--muted); margin-bottom: 2px; }
.lab-title .city { font-weight: 700; }
.lab-region { margin: 4px 0 8px; font-family: var(--f-label); font-size: 0.82rem; color: var(--muted); }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-family: var(--f-label); font-size: 0.78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-strong); }
.tag.gbo { background: var(--primary-tint); color: var(--primary-strong); }
.status { display: inline-block; margin-top: 8px; font-family: var(--f-label); font-size: 0.8rem; font-weight: 600; color: var(--text); background: #F3E6C8; border-radius: 4px; padding: 3px 8px; }
.lab-phones { display: flex; flex-direction: column; gap: 6px; }
.phone-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.phone-num { font-size: 1.25rem; font-weight: 600; color: var(--text); text-decoration: none; white-space: nowrap; letter-spacing: 0.01em; min-height: 36px; display: inline-flex; align-items: center; }
a.phone-num:hover { color: var(--accent-strong); text-decoration: underline; }
.phone-kind { font-family: var(--f-label); font-size: 0.74rem; font-weight: 600; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 4px; padding: 1px 6px; }
.phone-none { color: var(--muted); font-size: 0.95rem; }
.lab-phones .btn { align-self: flex-start; margin-top: 4px; }
.lab-meta { display: flex; flex-direction: column; gap: 8px; font-size: 0.95rem; }
.sched { display: flex; gap: 8px; align-items: flex-start; }
.sched .icon { color: var(--muted); margin-top: 2px; }
.lab-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.lab-actions .btn { min-height: 40px; padding: 0 10px; font-size: 0.88rem; gap: 6px; }
.lab details { margin-top: -4px; }
.lab summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; cursor: pointer; color: var(--accent-strong); font-weight: 600; list-style: none; }
.lab summary::-webkit-details-marker { display: none; }
.lab summary .icon { transition: transform 140ms ease-out; }
.lab details[open] summary .icon { transform: rotate(180deg); }
.lab dl { display: grid; grid-template-columns: 1fr; gap: 2px; margin: 4px 0 6px; padding: 14px 16px; background: var(--bg); border-radius: 8px; font-size: 0.95rem; }
.lab dt { color: var(--muted); font-family: var(--f-label); font-size: 0.82rem; padding-top: 2px; }
.lab dd { margin: 0; overflow-wrap: anywhere; }
.lab dd { margin-bottom: 8px; }
.lab dd:last-child { margin-bottom: 0; }
.lab-note { margin: 6px 0 0; font-size: 0.92rem; background: #F3E6C8; padding: 6px 10px; border-radius: 6px; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--text); color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 0.95rem; z-index: 20; opacity: 0; pointer-events: none; transition: opacity 140ms ease-out; max-width: calc(100% - 32px); }
.toast.on { opacity: 1; }

/* ---------- directory ---------- */
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); color: var(--text); text-decoration: none; font-weight: 500; }
.toc a::before { content: counter(t); font-family: var(--f-label); font-size: 0.78rem; font-weight: 600; color: var(--primary-strong); }
.toc a:hover { border-color: var(--primary); }
.wrap.article > * { max-width: 50rem; }
.svc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: -4px 0 18px; }
.svc-head .count-pill { font-family: var(--f-label); font-weight: 600; font-size: 0.85rem; background: var(--accent-tint); color: var(--accent-strong); padding: 6px 12px; border-radius: 999px; }
.svc-head a { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.callout { border-left: 6px solid var(--accent); background: var(--surface); padding: 16px 18px; border-radius: 6px; margin-top: 8px; }
.callout h3 { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }
.doc-grid { display: grid; gap: 18px; }
@media (min-width: 900px) { .doc-grid { grid-template-columns: repeat(3, 1fr); } }
.doc-card { background: var(--surface); border-radius: var(--radius); padding: 20px; border-top: 6px solid var(--primary); }
.doc-card:nth-child(2) { border-top-color: var(--accent); }
.doc-card h3 { font-size: 1.12rem; }
.doc-card .src { font-family: var(--f-label); font-size: 0.78rem; color: var(--muted); margin: -4px 0 10px; }
.doc-card ul { margin: 0; padding-left: 1.1em; }
.doc-card li { margin-bottom: 6px; }
.sources { margin-top: 26px; }
.sources ul { padding-left: 1.1em; }
.sources li { margin-bottom: 8px; overflow-wrap: anywhere; }
.memo { list-style: none; padding: 0; margin: 0 0 18px; max-width: 46rem; }
.memo li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line-strong); }
.memo .box { flex: none; width: 22px; height: 22px; border: 2px solid var(--text); border-radius: 4px; margin-top: 2px; }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.cta-band h2 { margin: 0 0 4px; }
.cta-band p { margin: 0; }
.contact-block p { max-width: 50rem; }

/* ---------- 404 ---------- */
.nf { min-height: 50vh; display: flex; align-items: center; }

/* ---------- motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .skip, .print-btn, .toc, .filters, .lab-actions, .hero-actions, .btn { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .band { padding-block: 12pt; background: #fff !important; color: #000 !important; }
  a { color: #000; text-decoration: none; }
  body.print-memo main > *:not(.print-keep) { display: none !important; }
  details { display: block; }
}
