/* Reprodukcia – shared structure and components. Colours, type and shape come from the
   variant stylesheet (a.css or b.css), which also restyles the hero and a few sections. */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 104px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-body);
  line-height: var(--lh-body);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--ink); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
strong, b { font-weight: var(--fw-strong); }
h1, h2, h3, h4 {
  margin: 0; color: var(--ink); font-family: var(--font-head); font-weight: var(--fw-head);
  line-height: 1.12; letter-spacing: var(--tracking-head); text-wrap: balance;
}
h1 { font-size: clamp(2.15rem, 4.9vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.3vw, 2.5rem); }
h3 { font-size: 1.35rem; line-height: 1.25; }
h4 { font-size: 1.15rem; line-height: 1.3; }
p { margin: 0 0 1.05em; }

:root { --gutter: clamp(18px, 4vw, 44px); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.nowrap { white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 52px; padding: 0.7em 1.55em; border: 1.5px solid transparent; border-radius: var(--radius-btn);
  font: var(--fw-btn) 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color .16s, color .16s, border-color .16s, box-shadow .16s;
}
.btn-primary { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { background: var(--btn-hover); border-color: var(--btn-hover); color: var(--btn-fg); }
.btn-ghost { background: transparent; border-color: var(--ghost-line); color: var(--ink); }
.btn-ghost:hover { background: var(--tint); color: var(--ink); }
.on-dark .btn-primary { background: var(--dark-btn-bg); border-color: var(--dark-btn-bg); color: var(--dark-btn-fg); }
.on-dark .btn-primary:hover { background: var(--dark-btn-hover); border-color: var(--dark-btn-hover); color: var(--dark-btn-fg); }
.on-dark .btn-ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.on-dark .btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.link-more {
  display: inline-flex; align-items: center; gap: 0.4em; font-weight: var(--fw-btn); color: var(--brand);
  text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px;
}
.link-more .icon { width: 0.95em; height: 0.95em; transition: transform .16s; }
.link-more:hover .icon { transform: translateX(3px); }
.kicker { margin: 0 0 10px; color: var(--muted); font-size: 0.98rem; font-weight: var(--fw-kicker); }

/* ---------- Header and menus ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-solid); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: var(--header-bg); backdrop-filter: saturate(1.5) blur(12px); } }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 76px; }
.brand { display: inline-flex; flex: none; border-radius: 8px; }
.brand-logo { display: block; height: 34px; width: auto; }
@media (max-width: 350px) { .brand-logo { height: 28px; } }
@media (min-width: 640px) { .brand-logo { height: 44px; } }

.nav-desktop { display: none; }
.nav-desktop > ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-desktop a, .more-toggle {
  display: block; padding: 10px 11px; border: 0; border-radius: 8px; background: none; color: var(--text);
  font: var(--fw-nav) 0.97rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.nav-desktop a:hover, .more-toggle:hover { background: var(--tint); color: var(--ink); }
.nav-desktop a[aria-current="page"] { color: var(--ink); font-weight: var(--fw-strong); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav-desktop .nav-cta { margin-left: 10px; }
.nav-desktop .nav-cta a, .nav-desktop .nav-cta a[aria-current="page"] {
  background: var(--btn-bg); color: var(--btn-fg); border-radius: var(--radius-btn); padding: 12px 20px;
  font-weight: var(--fw-btn); box-shadow: none;
}
.nav-desktop .nav-cta a:hover { background: var(--btn-hover); color: var(--btn-fg); }
.more { position: relative; }
.more-toggle .icon { width: 12px; height: 12px; margin-left: 4px; vertical-align: middle; transition: transform .16s; }
.more-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.more-panel {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 290px; margin: 0; padding: 8px; list-style: none;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m); box-shadow: var(--shadow-pop);
}
.more-panel a { padding: 10px 12px; white-space: normal; }
.more-panel a span { display: block; margin-top: 2px; font-size: 0.86rem; font-weight: var(--fw-body); color: var(--muted); }

.menu-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; flex: none;
  border: 1.5px solid var(--line); border-radius: var(--radius-btn); background: var(--paper); color: var(--ink);
  font: var(--fw-btn) 0.95rem/1 var(--font-body); cursor: pointer;
}
.menu-toggle .icon { width: 18px; height: 18px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: inline; }
.nav-mobile { border-top: 1px solid var(--line); background: var(--paper); max-height: calc(100vh - 76px); max-height: calc(100dvh - 76px); overflow-y: auto; }
.nav-mobile ul { list-style: none; margin: 0; padding: 6px 0 10px; display: grid; grid-template-columns: 1fr; }
.nav-mobile li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--tint); color: var(--ink); font-weight: var(--fw-strong); text-decoration: none; }
.nav-mobile li a span { display: block; font-weight: var(--fw-body); color: var(--muted); font-size: 0.9rem; }
.nav-mobile li a[aria-current="page"] { color: var(--brand); }
.nav-mobile-cta { display: flex; flex-wrap: wrap; gap: 10px; padding: 10px 0 22px; }
@media (min-width: 640px) { .nav-mobile ul { grid-template-columns: 1fr 1fr; column-gap: 36px; } }
@media (min-width: 1240px) {
  .nav-desktop { display: block; }
  .menu-toggle, .nav-mobile { display: none !important; }
}

/* ---------- Home: hero (composition is set per variant) ---------- */
.hero { position: relative; overflow: hidden; }
.hero-media { display: block; margin: 0; }
.hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-inner { position: relative; }
.hero-copy { max-width: 600px; }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); line-height: 1.06; }
.hero-lead { margin: 22px 0 0; font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.5; }
.hero-fields { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: clamp(1.08rem, 1.5vw, 1.25rem); font-weight: var(--fw-strong); }
.hero-fields li { display: flex; align-items: center; gap: 10px; }
.hero-fields li::before { content: ""; width: 12px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }
.hero .actions { margin-top: 32px; }

/* ---------- Home: quick facts under the hero ---------- */
.facts-list { list-style: none; margin: 0; padding: 0; display: grid; }
.facts-list li { display: flex; align-items: flex-start; gap: 14px; }
.fact-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--tint); color: var(--brand); }
.fact-icon .icon { width: 20px; height: 20px; }
.fact-text { display: block; min-width: 0; }
.fact-label { display: block; color: var(--muted); font-size: 0.9rem; }
.fact-label::first-letter { text-transform: uppercase; }
.fact-value { display: block; color: var(--ink); font-weight: var(--fw-strong); line-height: 1.4; text-decoration: none; overflow-wrap: anywhere; }
a.fact-value:hover { text-decoration: underline; }
@media (min-width: 860px) { .facts-list { grid-template-columns: 1.25fr 1fr 1.15fr; } }

/* ---------- Home: sections ---------- */
.section { padding: clamp(56px, 8vw, 112px) 0; }
.section-tint { background: var(--tint-2); }
.lead { font-size: clamp(1.12rem, 1.6vw, 1.3rem); line-height: 1.55; }

.intro-grid { display: grid; gap: 22px; }
.intro-body p { margin: 0; font-size: clamp(1.1rem, 1.55vw, 1.28rem); line-height: 1.6; max-width: 62ch; }
@media (min-width: 900px) { .intro-grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; } }

.approach-grid { display: grid; gap: 36px; }
.approach-body p { max-width: 54ch; margin: 16px 0 20px; }
.approach blockquote { margin: 0; }
@media (min-width: 900px) { .approach-grid { grid-template-columns: 5fr 7fr; gap: 72px; align-items: center; } }

.doctor-grid { display: grid; gap: 32px; align-items: center; }
.doctor-photo { display: block; margin: 0; width: min(260px, 70vw); }
.doctor-photo img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.doctor-lead { margin: 14px 0 0; font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.5; max-width: 46ch; }
.doctor-facts { list-style: none; margin: 22px 0 28px; padding: 0; display: grid; gap: 10px; max-width: 60ch; }
.doctor-facts li { position: relative; padding-left: 26px; }
.doctor-facts li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 12px; height: 9px; border-radius: 50%; background: var(--accent); }
@media (min-width: 820px) { .doctor-grid { grid-template-columns: 300px 1fr; gap: 72px; } .doctor-photo { width: 300px; } }

.lexikon { position: relative; background-color: var(--ink-deep); background-size: cover; background-position: center; color: var(--on-dark); }
.lexikon h2 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.1rem); }
.lexikon-sub { margin: 10px 0 26px; font-size: 1.2rem; color: var(--on-dark-muted); }
.lexikon-grid { position: relative; display: grid; gap: 32px; }
.lexikon-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .24); }
.lexikon-list a {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; align-items: center; padding: 18px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, .24); color: #fff; text-decoration: none;
}
.lexikon-list strong { font-family: var(--font-head); font-weight: var(--fw-head); font-size: clamp(1.2rem, 2vw, 1.5rem); letter-spacing: var(--tracking-head); }
.lexikon-list span { grid-column: 1; color: var(--on-dark-muted); font-size: 0.95rem; line-height: 1.45; }
.lexikon-list .icon { grid-column: 2; grid-row: 1 / span 2; width: 22px; height: 22px; transition: transform .16s; }
.lexikon-list a:hover .icon { transform: translateX(4px); }
@media (min-width: 900px) { .lexikon-grid { grid-template-columns: 4fr 7fr; gap: 80px; align-items: start; } }

.textbook-grid { display: grid; gap: 32px; align-items: center; }
.textbook-photo { display: block; margin: 0; }
.textbook-photo img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.textbook-body p { max-width: 54ch; }
.textbook-body .lead { margin: 14px 0 12px; }
@media (min-width: 900px) { .textbook-grid { grid-template-columns: 6fr 5fr; gap: 72px; } }

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.card {
  display: flex; flex-direction: column; height: 100%; padding: 28px; background: var(--paper); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-m); text-decoration: none;
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.card:hover { color: var(--text); border-color: var(--brand-soft); box-shadow: var(--shadow-card); }
.card h3 { font-size: 1.5rem; }
.card h3 span { display: block; margin-top: 4px; font: var(--fw-body) 0.98rem/1.3 var(--font-body); letter-spacing: 0; color: var(--muted); }
.card p { margin: 16px 0 22px; }
.card .link-more { margin-top: auto; align-self: flex-start; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.visit-grid { display: grid; gap: 36px; }
.visit-photo { display: block; margin: 0; }
.visit-photo img { display: block; width: 100%; height: 100%; min-height: 220px; max-height: 420px; object-fit: cover; object-position: 53% 40%; }
.visit h2 { font-size: clamp(1.6rem, 2.7vw, 2.1rem); }
.visit dl { margin: 22px 0 0; display: grid; gap: 16px; }
.visit dt { color: var(--muted); font-size: 0.9rem; }
.visit dt::first-letter { text-transform: uppercase; }
.visit dd { margin: 2px 0 0; color: var(--ink); font-weight: var(--fw-strong); font-size: 1.1rem; line-height: 1.45; }
.visit dd a { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.visit dd a:hover { text-decoration: underline; }
.visit-how p { margin: 18px 0 26px; max-width: 52ch; }
@media (min-width: 700px) { .visit-grid { grid-template-columns: 1fr 1fr; gap: 48px; } .visit-photo { grid-column: 1 / -1; } }
@media (min-width: 1040px) { .visit-grid { grid-template-columns: 4fr 3.4fr 4.4fr; gap: 56px; align-items: start; } .visit-photo { grid-column: auto; align-self: stretch; } .visit-photo img { max-height: none; min-height: 380px; } }

/* ---------- Inner pages ---------- */
.page-head { background: var(--tint-2); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-top: clamp(26px, 4vw, 44px); padding-bottom: clamp(30px, 4.6vw, 56px); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: clamp(18px, 3vw, 30px); color: var(--muted); font-size: 0.92rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }
.page-head h1 { max-width: 22ch; }
.h1-sub { display: block; margin-top: 10px; font-size: 0.5em; line-height: 1.3; font-weight: var(--fw-sub); font-style: var(--sub-style); letter-spacing: 0; color: var(--muted); }
.page-grid { display: grid; gap: 44px; padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(64px, 8vw, 112px); }
@media (min-width: 1040px) { .page-grid.has-aside { grid-template-columns: minmax(0, 1fr) 320px; gap: 72px; align-items: start; } }

.contact-card { padding: 26px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m); }
@media (min-width: 1040px) { .contact-card { position: sticky; top: 104px; } }
.side-photo { display: none; margin: 0; }
.side-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 53% 50%; border-radius: var(--radius-m); }
@media (min-width: 1040px) { .side-photo { display: block; position: sticky; top: 104px; } }
.contact-card h2 { font-size: 1.45rem; margin-bottom: 10px; }
.contact-card p { margin: 0 0 16px; font-size: 0.97rem; color: var(--muted); }
.contact-card .phone { display: block; margin-bottom: 4px; font-family: var(--font-head); font-weight: var(--fw-head); font-size: 1.5rem; letter-spacing: var(--tracking-head); color: var(--ink); text-decoration: none; white-space: nowrap; }
.contact-card .mail { display: block; margin-bottom: 20px; overflow-wrap: anywhere; }
.contact-card .btn { width: 100%; }

/* ---------- Prose: the carried-over content ---------- */
.prose { max-width: 70ch; min-width: 0; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); margin: 2em 0 0.65em; }
.prose h3 { margin: 0.2em 0 0.4em; }
.prose h4 { margin: 2em 0 0.75em; }
.prose ul, .prose ol { padding-left: 1.35em; margin: 0 0 1.25em; }
.prose li { margin: 0.4em 0; padding-left: 0.2em; }
.prose li::marker { color: var(--accent); }
.prose ol > li::marker { color: var(--ink); font-weight: var(--fw-strong); }
.prose .emph { font-weight: var(--fw-strong); color: var(--ink); }
.prose div.emph { margin: 1.7em 0 0.5em; font-family: var(--font-head); font-weight: var(--fw-head); font-size: 1.32rem; line-height: 1.25; letter-spacing: var(--tracking-head); }
.prose .emph2 { font-weight: var(--fw-strong); }
.prose .emph3 { font-weight: var(--fw-strong); color: var(--ink); }
.prose div.emph3 { margin: 1.2em 0 0.3em; font-size: 0.95rem; color: var(--muted); }
.prose div.corobime { margin: 0 0 0.6em; font-family: var(--font-head); font-weight: var(--fw-head); font-size: 1.5rem; line-height: 1.3; letter-spacing: var(--tracking-head); color: var(--ink); }
.prose p.lead { font-size: 1.18rem; }
.prose a.long-url { overflow-wrap: anywhere; }

.prose ol.steps { list-style: none; padding: 0; margin: 1.6em 0 0; counter-reset: step; display: grid; gap: 14px; }
.prose ol.steps > li { counter-increment: step; position: relative; margin: 0; padding: 22px 24px 22px 84px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m); }
.prose ol.steps > li::before {
  content: counter(step); position: absolute; left: 22px; top: 20px; display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 50%; background: var(--tint); color: var(--ink); font-family: var(--font-head); font-weight: var(--fw-head); font-size: 1.25rem;
}
@media (max-width: 560px) { .prose ol.steps > li { padding: 70px 20px 20px; } .prose ol.steps > li::before { left: 20px; top: 18px; } }

.prose p.callout { margin: 1.4em 0; padding: 20px 24px; background: var(--tint); border-left: 4px solid var(--accent); border-radius: var(--radius-s); font-size: 1.15rem; color: var(--ink); font-weight: var(--fw-strong); }

.prose .table-wrap { overflow-x: auto; margin: 1.5em 0 2em; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--paper); }
.prose table.data { border-collapse: collapse; width: 100%; font-size: 0.97rem; }
.prose table.data caption { text-align: left; padding: 16px 18px 8px; }
.prose table.data td { padding: 11px 18px; border-top: 1px solid var(--line); vertical-align: top; }
.prose table.data tr:nth-child(even) td { background: var(--tint-2); }
.prose table.data td:first-child { white-space: nowrap; }
.prose .figs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 1.5em 0 2em; }
.prose figure.fig { margin: 0; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); scroll-margin-top: 110px; }
.prose figure.fig img { display: block; width: 100%; height: auto; border-radius: 4px; }
.prose figure.fig figcaption { margin-top: 10px; font-size: 0.92rem; line-height: 1.4; font-weight: var(--fw-strong); color: #16205a; }
.prose .toc { padding: 22px 26px 10px; margin-bottom: 2.2em; background: var(--tint-2); border: 1px solid var(--line); border-radius: var(--radius-m); }
.prose .toc ul ul { margin-bottom: 0.4em; }
.prose .toc > a, .prose .toc div.emph3 a { font-weight: var(--fw-strong); color: var(--ink); }
.prose .toc div.emph3 { margin-top: 1em; font-size: 1em; }

.prose table.kv { border-collapse: collapse; width: 100%; margin: 0 0 1.6em; }
.prose table.kv td { padding: 15px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose table.kv tr:first-child td { border-top: 1px solid var(--line); }
.prose table.kv td:first-child { width: 38%; padding-right: 20px; color: var(--muted); }
.prose table.kv td:first-child .emph2 { display: inline-block; font-weight: var(--fw-body); }
.prose table.kv td:first-child .emph2::first-letter { text-transform: uppercase; }
@media (max-width: 560px) {
  .prose table.kv, .prose table.kv tbody { display: block; }
  .prose table.kv tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .prose table.kv tr:first-child { border-top: 1px solid var(--line); }
  .prose table.kv td, .prose table.kv tr:first-child td { display: block; width: auto; padding: 0; border: 0; }
  .prose table.kv td:first-child { width: auto; font-size: 0.9rem; margin-bottom: 2px; }
}

.prose img.profile { float: right; width: 190px; margin: 0 0 18px 28px; }
@media (max-width: 560px) { .prose img.profile { float: none; display: block; margin: 0 0 20px; width: 160px; } }
.timeline { list-style: none; padding: 0 !important; margin: 0 0 1.5em !important; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 16px 24px !important; margin: 0 !important; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 0.5em; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2.5px solid var(--accent); }
.tl-when { display: block; font-weight: var(--fw-strong); color: var(--ink); font-size: 0.95rem; }
.tl-what { display: block; }

.orgs { display: grid; gap: 18px; margin-top: 4px; }
@media (min-width: 720px) { .orgs { grid-template-columns: 1fr 1fr; } }
.org { padding: 22px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m); line-height: 1.6; overflow-wrap: anywhere; }
.org > strong:first-child { display: block; margin-bottom: 8px; font-family: var(--font-head); font-weight: var(--fw-head); font-size: 1.22rem; line-height: 1.3; letter-spacing: var(--tracking-head); color: var(--ink); }
.org > strong:first-child + br { display: none; }
.org div.emph3 { margin: 12px 0 0; font-size: 0.86rem; font-weight: var(--fw-body); color: var(--muted); }

.prose picture.book { display: block; margin: 0 0 1.6em; }
.prose picture.book img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- Form ---------- */
.form-note { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 24px; padding: 14px 16px; border-radius: var(--radius-s); background: var(--note-bg); border: 1px solid var(--note-line); color: var(--note-fg); font-size: 0.95rem; line-height: 1.5; }
.form-note .icon { width: 20px; height: 20px; margin-top: 2px; }
.form-note a { color: inherit; }
.ask-form { display: grid; gap: 20px; max-width: 580px; }
.field label { display: block; margin-bottom: 7px; font-weight: var(--fw-strong); color: var(--ink); }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; padding: 13px 15px; font: inherit; color: var(--text); background: var(--paper);
  border: 1.5px solid var(--field-line); border-radius: var(--radius-s);
}
.field textarea { min-height: 180px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--brand); }
.field [aria-invalid="true"] { border-color: var(--danger); background: var(--danger-bg); }
.error { display: block; margin-top: 7px; color: var(--danger); font-size: 0.93rem; }
.error:empty { display: none; }
.consent { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.consent input { width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--ink); }
.consent label { margin: 0; font-weight: var(--fw-body); color: var(--text); }
.consent .error { grid-column: 2; margin-top: 0; }
.form-summary { margin: 0 0 20px; padding: 13px 16px; border-radius: var(--radius-s); border: 1px solid var(--danger); background: var(--danger-bg); color: var(--danger); max-width: 580px; }
.form-done { max-width: 580px; padding: 26px; border-radius: var(--radius-m); border: 1px solid var(--ok-line); background: var(--ok-bg); }
.form-done h2 { margin: 0 0 10px; font-size: 1.5rem; color: var(--ok); }
.form-done p { margin: 0 0 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-fg); font-size: 0.95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 36px; padding-top: clamp(48px, 6vw, 72px); padding-bottom: 36px; }
.footer-brand img { display: block; height: 46px; width: auto; margin-bottom: 18px; }
.footer-brand p { margin: 0; max-width: 36ch; line-height: 1.6; }
.site-footer h2 { margin: 0 0 14px; font: var(--fw-strong) 0.95rem/1.3 var(--font-body); letter-spacing: 0; color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer address { font-style: normal; line-height: 1.75; }
.footer-bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; padding-bottom: 30px; }
.footer-bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: rgba(255, 255, 255, .16); }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
@media (min-width: 1040px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 56px; } }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .site-header, .site-footer, .contact-card, .hero-media { display: none; } }
