/*
 * Terapie domovem: child theme of Quark 2.
 * The tokens --td-pri, --td-bg, --td-section, --td-acc, --td-ink are written to <style id="td-tokens">
 * from the theme settings in Admin. This file holds the defaults, derived colours, fonts, spacing and radii.
 * To change fonts: override --td-f-head and --td-f-body (and load the font in css/fonts.css).
 */
:root {
  --td-pri: #4F6143; --td-on-pri: #ffffff; --td-bg: #F5F1E8; --td-section: #ECE5D6; --td-section-int: 100%;
  --td-acc: #8A5236; --td-ink: #2A2A23;
  --td-f-head: "Newsreader", Georgia, serif;
  --td-f-body: "Hanken Grotesk", system-ui, sans-serif;
  --td-r-btn: 999px; --td-r-img: 6px; --td-r-card: 14px;
  --td-gutter: 24px; --td-sec-y: 64px;
  --td-bg2: color-mix(in srgb, var(--td-section) var(--td-section-int), var(--td-bg));
  --td-muted: color-mix(in srgb, var(--td-ink) 72%, var(--td-bg));
  --td-line: color-mix(in srgb, var(--td-ink) 18%, var(--td-bg));
  --td-ph1: color-mix(in srgb, var(--td-ink) 7%, var(--td-bg));
  --td-ph2: color-mix(in srgb, var(--td-ink) 11%, var(--td-bg));
  --td-foot: color-mix(in srgb, var(--td-pri) 60%, #0b0d09);
  --td-on-foot: #EDE8DA; --td-on-foot-m: #CBC6B6;
  --td-scrim: rgba(20, 22, 18, .82);
  /* Always-dark overlays on photos: tags, role badges, lightbox. Independent of the light/dark appearance. */
  --td-overlay-bg: #111410; --td-overlay-ink: #F3EFE3; --td-overlay-on: #ffffff; --td-overlay-line: rgba(255, 255, 255, .3);
  --td-tag-dot: #D3A184; --td-on-foot-h: #ffffff;
  --td-shadow: rgba(0, 0, 0, .14); --td-on-foot-line: rgba(255, 255, 255, .18);
}
:root[data-theme="dark"] {
  --td-foot: color-mix(in srgb, var(--td-bg) 55%, #000);
  --td-ph1: color-mix(in srgb, var(--td-ink) 6%, var(--td-bg));
  --td-ph2: color-mix(in srgb, var(--td-ink) 10%, var(--td-bg));
}
@media (min-width: 900px) { :root { --td-gutter: 72px; --td-sec-y: 112px; } }

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
  background: var(--td-bg); color: var(--td-ink);
  font: 400 17px/1.6 var(--td-f-body); -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
#page-wrapper, #body-wrapper { background: var(--td-bg); }
h1, h2, h3, .td-h1, .td-h2, .td-h3 { font-family: var(--td-f-head); font-weight: 400; letter-spacing: -.01em; line-height: 1.12; margin: 0; color: var(--td-ink); }
p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
a { color: var(--td-pri); }
a:hover { color: var(--td-acc); }
:focus-visible { outline: 3px solid var(--td-acc); outline-offset: 3px; border-radius: 4px; }
.td-skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--td-pri); color: var(--td-on-pri); padding: 12px 18px; border-radius: var(--td-r-btn); }
.td-skip:focus { top: 12px; color: var(--td-on-pri); }
.td-h1 { font-size: clamp(38px, 5.4vw, 76px); } .td-h1--md { font-size: clamp(34px, 4.4vw, 56px); }
.td-h2 { font-size: clamp(30px, 3.6vw, 50px); }
.td-h3 { font-size: 24px; } .td-h3--sm { font-size: 22px; }
.td-eyebrow { font: 500 13px/1.3 var(--td-f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--td-acc); }
.td-lead { font-size: 19px; line-height: 1.6; max-width: 60ch; }
.td-muted { color: var(--td-muted); } .td-small { font-size: 15px; }
.td-wrap { padding-inline: var(--td-gutter); }
.td-sec { padding-block: var(--td-sec-y); }
.td-sec--flush { padding-top: 0; } .td-sec--head { padding-bottom: 32px; }
.td-band-soft { background: var(--td-bg2); }
.td-split { display: grid; gap: 24px; }
.td-stack { display: grid; gap: 20px; align-content: start; } .td-stack--start { justify-items: start; } .td-stack--lg { gap: 32px; } .td-center { align-content: center; }
.td-mb { margin-bottom: 40px; } .td-mb-s { margin-bottom: 10px; }
.td-narrow { max-width: 760px; }
.td-content > * + * { margin-top: 1em; }
.td-content a { text-decoration: underline; text-underline-offset: 3px; }
.td-prose { max-width: 820px; }
.td-note { font-size: 14px; color: var(--td-muted); } .td-note a { text-decoration: underline; }
.td-note--end { margin-top: 64px; border-top: 1px solid var(--td-line); padding-top: 24px; }
.td-note-w { max-width: 40ch; }
.td-files { display: grid; gap: 8px; margin-top: 32px; } .td-files a { display: inline-flex; min-height: 44px; align-items: center; }

/* ---------- Buttons and links ---------- */
.td-btn, .td-btn:visited {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px;
  border-radius: var(--td-r-btn); font: 500 16px var(--td-f-body); border: 1.5px solid var(--td-pri);
  background: var(--td-pri); color: var(--td-on-pri); text-decoration: none; white-space: nowrap; cursor: pointer; transition: filter .15s;
}
.td-btn:hover { color: var(--td-on-pri); filter: brightness(.92); }
.td-btn--ghost, .td-btn--ghost:visited { background: transparent; color: var(--td-pri); }
.td-btn--ghost:hover { background: var(--td-pri); color: var(--td-on-pri); filter: none; }
.td-btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.td-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.td-lnk { font-weight: 500; text-decoration: underline; text-underline-offset: 4px; display: inline-flex; min-height: 44px; align-items: center; }

/* ---------- Header and navigation (on top of Quark 2: #header, .navbar, .mobile-menu, .overlay) ---------- */
#header { background: var(--td-bg); border-bottom: 1px solid var(--td-line); padding: 0; box-shadow: none; }
#header .container { max-width: none; padding-inline: var(--td-gutter); }
.navbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; flex-wrap: nowrap; }
.navbar-brand { display: flex; align-items: center; gap: 8px; color: var(--td-pri); text-decoration: none; }
.navbar-brand svg { width: 30px; height: 30px; flex: none; }
.navbar-brand img { height: 36px; width: auto; max-width: 220px; flex: none; }
.td-wm { display: grid; line-height: 1.15; }
.td-wm-t { font: 400 20px var(--td-f-head); color: var(--td-ink); }
.td-wm-s { display: none; font-size: 12px; letter-spacing: .04em; color: var(--td-muted); }
.navbar-section { display: flex; align-items: center; }
.navbar-section.actions { gap: 12px; }
.desktop-menu { display: none; }
.navigation { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.navigation a { color: var(--td-ink); text-decoration: none; font-size: 15px; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.navigation a:hover, .navigation li.active > a { color: var(--td-pri); }
.navigation li.active > a { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px; }
.td-chev { width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-2px); display: inline-block; }
.navigation li { position: relative; }
.td-sub { display: none; position: absolute; top: 100%; left: -16px; min-width: 280px; background: var(--td-bg); border: 1px solid var(--td-line); border-radius: var(--td-r-card); padding: 8px; list-style: none; margin: 0; box-shadow: 0 16px 40px var(--td-shadow); z-index: 20; }
.navigation li:hover > .td-sub, .navigation li:focus-within > .td-sub { display: grid; }
.td-sub a { box-sizing: border-box; padding: 0 14px; border-radius: 8px; width: 100%; }
.td-sub .td-sub-all a { background: var(--td-bg2); }
.td-sub a:hover { background: var(--td-bg2); }
.td-hide-mobile { display: none; }
.td-cta { display: none; }
.mobile-menu { display: block; position: fixed; top: 14px; right: 16px; z-index: 200; }
.td-modebtn { width: 44px; height: 44px; border: 1.5px solid var(--td-line); border-radius: 50%; background: transparent; color: var(--td-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.td-modebtn[data-mode="dark"] svg { transform: scaleX(-1); }
.navbar-section.actions { margin-right: 52px; }
.mobile-menu .button_container { width: 44px; height: 44px; background: transparent; border: 0; cursor: pointer; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; padding: 0; position: relative; }
.mobile-menu .button_container span { display: block; width: 22px; height: 2px; background: var(--td-ink); position: static; transition: transform .2s, opacity .2s; }
.mobile-menu .button_container.active span.top { transform: translateY(7px) rotate(45deg); }
.mobile-menu .button_container.active span.middle { opacity: 0; }
.mobile-menu .button_container.active span.bottom { transform: translateY(-7px) rotate(-45deg); }
/* Overlay menu: hidden until Quark 2's site.js adds the .open class (the #toggle switch) */
.mobile-container { display: none; }
.mobile-container:has(.overlay.open) { display: block; }
.overlay { position: fixed; inset: 0; z-index: 50; background: var(--td-bg); color: var(--td-ink); overflow-y: auto; display: none; flex-direction: column; }
.overlay.open { display: flex; }
.td-mm-nav { flex: 1; }
body.overlay-open { overflow: hidden; }
@media (min-width: 900px) { .mobile-container { display: none !important; } }
.overlay > * { padding-inline: var(--td-gutter); }
.td-mm-top { height: 72px; display: flex; align-items: center; }
.overlay-menu { padding-bottom: 8px; flex: 1; }
.td-mm .navigation { display: grid; gap: 0; align-items: stretch; }
.td-mm .navigation > li { border-top: 1px solid var(--td-line); }
.td-mm .navigation > li > a { font: 400 28px var(--td-f-head); min-height: 56px; display: flex; justify-content: space-between; }
.td-mm .td-sub { display: grid; position: static; border: 0; box-shadow: none; padding: 0 0 12px 16px; background: transparent; min-width: 0; }
.td-mm .td-sub a { font: 400 18px var(--td-f-body); color: var(--td-muted); background: transparent; min-height: 44px; }
.td-mm .td-sub .td-sub-all { display: none; }
.td-chev { margin-left: auto; }
.td-mm .td-chev { transform: rotate(-135deg); }
.td-overlay-foot { display: grid; gap: 16px; padding-top: 16px; padding-bottom: 24px; }
.td-seg { display: inline-flex; border: 1.5px solid var(--td-line); border-radius: 99px; padding: 3px; justify-self: start; }
.td-seg button { min-height: 40px; padding: 0 16px; border: 0; background: transparent; color: var(--td-ink); border-radius: 99px; font: 500 14px var(--td-f-body); cursor: pointer; }
.td-seg button.is-on { background: var(--td-pri); color: var(--td-on-pri); }
.theme-toggle { width: 44px; height: 44px; border: 1.5px solid var(--td-line); border-radius: 50%; background: transparent; color: var(--td-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
@media (min-width: 900px) {
  .td-modebtn { display: none; }
  .navbar-section.actions { margin-right: 0; }
  .navbar { min-height: 88px; }
  .td-wm-t { font-size: 24px; } .td-wm-s { display: block; }
  .desktop-menu, .td-cta, .td-hide-mobile { display: flex; }
  .mobile-menu { display: none; }
  .navbar-section.logo { flex: none; } .navbar-section.desktop-menu { flex: 1; justify-content: center; }
}
@media (min-width: 900px) and (max-width: 1199px) { .navigation { gap: 14px; } .navigation a { font-size: 14px; } }

/* Images always fit the width (also in page content coming from Markdown) */
main img, #page-wrapper img { max-width: 100%; height: auto; }
img { max-width: 100%; }

/* ---------- Hero ---------- */
.td-hero { display: grid; }
.td-hero-i { aspect-ratio: 4 / 3; overflow: hidden; }
.td-hero-t { padding: 36px var(--td-gutter) 56px; display: grid; gap: 22px; align-content: center; justify-items: start; }
.td-img, .td-hero-i img, .td-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 900px) {
  .td-hero { grid-template-columns: 5fr 7fr; min-height: 720px; }
  .td-hero-i { aspect-ratio: auto; order: 2; }
  .td-hero-t { padding: 72px; gap: 28px; }
}

/* ---------- Sekce ---------- */
.td-cols3, .td-cols5 { display: grid; gap: 32px; list-style: none; padding: 0; }
.td-cols5 { gap: 24px; }
.td-pil, .td-ref { display: grid; gap: 12px; align-content: start; border-top: 1px solid var(--td-ink); padding-top: 20px; }
.td-num { font: 400 28px var(--td-f-head); color: var(--td-acc); }
.td-stp { display: grid; grid-template-columns: 40px 1fr; gap: 12px; border-top: 1px solid var(--td-line); padding-top: 16px; }
.td-shead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 32px; }
.td-q { font: 400 28px/1.25 var(--td-f-head); } .td-ref cite { font-style: normal; color: var(--td-muted); font-size: 15px; }
.td-ig { max-width: 540px; width: 100%; border: 1px solid var(--td-line); border-radius: var(--td-r-card); background: var(--td-bg); overflow: hidden; }
.td-ig-h { display: flex; align-items: center; gap: 10px; padding: 12px 16px; } .td-av { width: 32px; height: 32px; border-radius: 50%; background: var(--td-bg2); border: 1px solid var(--td-line); }
.td-band { background: var(--td-pri); color: var(--td-on-pri); padding-block: 72px; }
.td-band .td-h2, .td-band .td-lead, .td-band p { color: var(--td-on-pri); }
.td-band .td-btn { background: var(--td-on-pri); color: var(--td-pri); border-color: var(--td-on-pri); }
.td-band .td-btn:hover { color: var(--td-pri); }
@media (min-width: 900px) {
  .td-split { grid-template-columns: 5fr 7fr; gap: 72px; }
  .td-cols3 { grid-template-columns: repeat(3, 1fr); gap: 56px; }
  .td-cols5 { grid-template-columns: repeat(5, 1fr); gap: 32px; }
  .td-stp { grid-template-columns: 1fr; gap: 20px; }
}
@media (min-width: 900px) { .td-ref:nth-child(n+4) { display: none; } }
@media (max-width: 899px) { .td-ref:nth-child(n+3) { display: none; } }

/* ---------- Placeholder blocks and images ---------- */
.td-ph { position: relative; width: 100%; overflow: hidden; border-radius: var(--td-r-img); background: repeating-linear-gradient(135deg, var(--td-ph1) 0 14px, var(--td-ph2) 14px 28px); color: var(--td-muted); font: 11px/1.35 ui-monospace, Menlo, monospace; display: flex; align-items: flex-end; padding: 0; }
.td-ph--fill { height: 100%; border-radius: 0; padding: 10px; } .td-ph--sq { aspect-ratio: 1; border-radius: 0; padding: 10px; } .td-ph--43 { aspect-ratio: 4 / 3; padding: 10px; }
.td-ph img { position: absolute; inset: 0; }

/* ---------- Galerie ---------- */
.td-gal { padding-bottom: 64px; }
.td-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.td-chip { min-height: 44px; padding: 0 18px; border: 1.5px solid var(--td-line); border-radius: 99px; display: inline-flex; align-items: center; font: 500 15px var(--td-f-body); background: transparent; color: var(--td-ink); cursor: pointer; text-decoration: none; }
.td-chip.is-on { background: var(--td-ink); color: var(--td-bg); border-color: var(--td-ink); }
.td-legend { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: 14px; color: var(--td-muted); margin-bottom: 28px; }
.td-mas { columns: 2; column-gap: 12px; list-style: none; padding: 0; margin: 0; }
.td-tile { margin: 0 0 12px; break-inside: avoid; display: block; } .td-tile[hidden] { display: none; }
.td-tile-link { display: block; }
.td-tile-link:hover .td-img { transform: scale(1.02); } .td-img { transition: transform .4s; }
.td-pager { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; justify-content: center; }
.td-tag { position: absolute; left: 10px; top: 10px; background: var(--td-scrim); color: var(--td-overlay-ink); font: 500 12px/1 var(--td-f-body); padding: 7px 11px; border-radius: 99px; display: inline-flex; align-items: center; gap: 6px; letter-spacing: .02em; white-space: nowrap; z-index: 1; }
.td-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--td-tag-dot); }
.td-tag--inline { position: static; } .td-tag[hidden] { display: none; }
.td-intro--bottom { max-width: 820px; }
@media (min-width: 900px) { .td-mas { columns: 4; column-gap: 20px; } .td-mas--3 { columns: 3; } .td-tile { margin-bottom: 20px; } }

/* ---------- Lightbox ---------- */
html.td-lb-open { overflow: hidden; }
.td-lb { position: fixed; inset: 0; z-index: 1000; background: var(--td-overlay-bg); color: var(--td-overlay-ink); display: grid; grid-template-rows: auto 1fr auto; gap: 16px; padding: 12px 16px 24px; font-family: var(--td-f-body); }
.td-lb[hidden] { display: none; }
.td-lb-top { display: flex; justify-content: space-between; align-items: center; min-height: 44px; font-size: 15px; }
.td-lb-x { min-height: 44px; padding: 0 8px; background: transparent; border: 0; color: inherit; font: inherit; cursor: pointer; }
.td-lb-st { position: relative; display: grid; place-items: center; min-height: 0; }
.td-lb-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.td-lb-ar { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: var(--td-scrim); border: 1px solid var(--td-overlay-line); color: var(--td-overlay-on); font-size: 26px; cursor: pointer; z-index: 2; }
.td-lb-prev { left: 8px; } .td-lb-next { right: 8px; }
.td-lb-cap { display: grid; gap: 8px; justify-items: start; } .td-lb-t { font-size: 18px; } .td-lb-ai { font-size: 14px; color: var(--td-on-foot-m); }
@media (min-width: 900px) { .td-lb { padding: 20px 40px 32px; } .td-lb-prev { left: 0; } .td-lb-next { right: 0; } .td-lb-cap { justify-items: center; text-align: center; } }

/* ---------- Services and price list ---------- */
.td-svcs { padding-bottom: 88px; }
.td-svc { display: grid; gap: 14px; padding: 28px 0; border-top: 1px solid var(--td-ink); }
.td-bl { list-style: none; padding: 0; } .td-bl li { padding: 4px 0; color: var(--td-muted); font-size: 15px; }
.td-svc-p { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.td-pr { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 20px 0; border-top: 1px solid var(--td-line); }
.td-price { font: 400 24px var(--td-f-head); text-align: right; } .td-price small { display: block; font: 400 14px var(--td-f-body); color: var(--td-muted); }
@media (min-width: 900px) { .td-svc { grid-template-columns: 72px 4fr 3fr 3fr; gap: 40px; padding: 36px 0; align-items: start; } .td-svc-p { justify-content: flex-end; } }

/* ---------- Contact and forms (Grav Form) ---------- */
.td-cgrid { display: grid; gap: 48px; }
@media (min-width: 900px) { .td-cgrid { grid-template-columns: 7fr 5fr; gap: 96px; } }
.td-form form, .form-wrapper form { display: grid; gap: 20px; }
.td-form label, .form-wrapper label { font-weight: 500; font-size: 15px; display: block; margin-bottom: 6px; }
.td-form input:not([type="checkbox"]):not([type="radio"]), .td-form select, .td-form textarea,
.form-wrapper input:not([type="checkbox"]):not([type="radio"]), .form-wrapper select, .form-wrapper textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--td-muted); border-radius: var(--td-r-img);
  background: var(--td-bg); color: var(--td-ink); font: inherit; box-shadow: none;
}
.td-form textarea { min-height: 150px; }
.td-form input[type="checkbox"] { width: 24px; height: 24px; accent-color: var(--td-pri); margin-right: 12px; vertical-align: middle; }
.td-form button[type="submit"], .td-form .button { display: inline-flex; align-items: center; min-height: 48px; padding: 0 28px; border-radius: var(--td-r-btn); border: 1.5px solid var(--td-pri); background: var(--td-pri); color: var(--td-on-pri); font: 500 16px var(--td-f-body); cursor: pointer; }
.td-form .notices, .form-wrapper .notices { border-radius: var(--td-r-img); }
.td-dl { display: grid; } .td-dl > div { display: grid; gap: 2px; padding: 14px 0; border-top: 1px solid var(--td-line); }
.td-dl dt { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--td-acc); font-weight: 500; } .td-dl dd { font-size: 18px; } .td-dl a { text-decoration: underline; }

/* ---------- Maintenance ---------- */
.td-mt { min-height: 100vh; display: grid; gap: 20px; justify-items: center; align-content: center; text-align: center; padding: 96px 24px; color: var(--td-pri); }
.td-mt svg { width: 44px; height: 44px; } .td-mt .td-lead, .td-mt .td-h1 { color: var(--td-ink); }

/* ---------- Footer ---------- */
.td-ft { background: var(--td-foot); color: var(--td-on-foot); padding: 56px var(--td-gutter) 28px; }
.td-ft a { color: var(--td-on-foot); text-decoration: none; } .td-ft a:hover { color: var(--td-on-foot-h); text-decoration: underline; }
.td-ft-c { display: grid; gap: 40px; }
.td-ft-b { display: grid; gap: 16px; align-content: start; color: var(--td-on-foot-m); max-width: 36ch; }
.td-ft-l { display: flex; gap: 10px; align-items: center; color: var(--td-on-foot); font: 400 24px var(--td-f-head); } .td-ft-l svg { width: 30px; height: 30px; }
.td-ft-soc { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; padding: 0; }
.td-ft-h { font: 500 13px var(--td-f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--td-on-foot-m); margin-bottom: 8px; }
.td-ft-u { list-style: none; padding: 0; } .td-ft-u a, .td-ft-soc a { display: flex; align-items: center; min-height: 44px; }
.td-ft-req { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--td-on-foot-line); display: grid; gap: 8px; font-size: 14px; color: var(--td-on-foot-m); }
.td-ft-req b { color: var(--td-on-foot); font-weight: 500; }
.td-ft-rl { display: flex; flex-wrap: wrap; gap: 4px 20px; } .td-ft-rl a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; }
@media (min-width: 900px) {
  .td-ft { padding: 88px var(--td-gutter) 36px; }
  .td-ft-c { grid-template-columns: 1.4fr 1fr 1fr; gap: 64px; }
  .td-ft-req { grid-template-columns: 1fr auto; align-items: center; }
}

/* ---------- Cookie banner: Consent plugin (getgrav/grav-plugin-consent) ----------
 * The plugin is styled only through its --consent-* tokens. They are bound to the theme tokens, so
 * colours follow the light/dark appearance. The selector is deliberately stronger than the plugin's
 * own dark block so the theme values always win. */
:root[data-theme] .consent-root:not(.td-x):not(.td-y) {
  --consent-font: var(--td-f-body);
  --consent-font-heading: var(--td-f-head);
  --consent-size: 16px; --consent-size-sm: 15px; --consent-size-xs: 14px;
  --consent-bg: var(--td-bg);
  --consent-bg-sunken: var(--td-bg2);
  --consent-fg: var(--td-ink);
  --consent-muted: var(--td-muted);
  --consent-border: var(--td-line);
  --consent-accent: var(--td-pri);
  --consent-accent-fg: var(--td-on-pri);
  --consent-accent-hover: color-mix(in srgb, var(--td-pri) 85%, #000);
  --consent-focus: var(--td-acc);
  --consent-track: color-mix(in srgb, var(--td-ink) 35%, var(--td-bg));
  --consent-backdrop: rgba(20, 22, 18, .6);
  --consent-radius: var(--td-r-card);
  --consent-radius-sm: var(--td-r-img);
  --consent-btn-radius: var(--td-r-btn);
  --consent-shadow: 0 14px 44px rgba(0, 0, 0, .2);
  --consent-pad: 22px;
  --consent-box-width: 640px;
}
.consent-root .consent-title { font-family: var(--td-f-head); font-weight: 400; font-size: 22px; letter-spacing: -.01em; }
.consent-root .consent-btn { min-height: 44px; padding: 0 20px; font-size: 15px; }
.consent-root .consent-btn-ghost { color: var(--td-pri); border-color: var(--td-pri); }
.consent-root .consent-close { width: 44px; height: 44px; }
.consent-root .consent-badge { width: 44px; height: 44px; }
.consent-root .consent-text a, .consent-root .consent-links a { color: var(--td-pri); }

/* ---------- Mobile menu (own, independent of Quark 2) ---------- */
.td-mm-top { display: flex; justify-content: space-between; align-items: center; height: 72px; padding-inline: var(--td-gutter); flex: none; }
.td-mm-nav, .td-overlay-foot { padding-inline: var(--td-gutter); }
.td-mm-nav { flex: 1; }
.td-mm-x { min-height: 44px; padding: 0 4px; background: transparent; border: 0; color: var(--td-ink); font: 500 16px var(--td-f-body); cursor: pointer; }
.td-burger { width: 44px; height: 44px; background: transparent; border: 0; flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer; padding: 0; }
.td-burger span { display: block; width: 22px; height: 2px; background: var(--td-ink); }
.td-modebtn { margin: 0; }

/* Content is always a centred column and does not stretch on large monitors */
.td-wrap { width: 100%; max-width: 1360px; margin-inline: auto; box-sizing: border-box; }
.td-wrap.td-prose { max-width: calc(820px + 2 * var(--td-gutter)); }
.td-wrap.td-narrow { max-width: calc(760px + 2 * var(--td-gutter)); }
.td-hero-t { box-sizing: border-box; }

/* Logo: larger (overrides the generic image rule) */
.navbar-brand img.td-logo-img { height: 48px !important; width: auto !important; max-width: 260px; }
@media (min-width: 900px) { .navbar-brand img.td-logo-img { height: 64px !important; max-width: 340px; } }
.td-mm .navbar-brand img.td-logo-img { height: 48px !important; }
.navbar-brand svg { width: 40px; height: 40px; }

/* Mobile menu: always a vertical list across the full width */
.td-mm, .td-mm * { box-sizing: border-box; }
.td-mm.is-open { width: 100%; height: 100%; }
.td-mm .navigation, .td-mm ul { display: block !important; list-style: none; margin: 0; padding: 0; width: 100%; }
.td-mm .navigation > li { display: block !important; width: 100%; float: none; border-top: 1px solid var(--td-line); position: static; }
.td-mm .navigation > li > a { display: flex !important; width: 100%; align-items: center; justify-content: space-between; font: 400 28px var(--td-f-head); min-height: 56px; color: var(--td-ink); }
.td-mm .td-sub { display: block !important; position: static !important; width: 100%; border: 0; box-shadow: none; background: transparent; padding: 0 0 12px 16px; min-width: 0; }
.td-mm .td-sub li { display: block; width: 100%; }
.td-mm .td-sub a { display: flex; align-items: center; min-height: 44px; font: 400 18px var(--td-f-body); color: var(--td-muted); background: transparent; }
.td-mm .td-sub .td-sub-all { display: none; }
.td-mm .td-overlay-foot { display: grid; }
.td-mm .td-seg { display: inline-flex; }
.td-mm-top { width: 100%; }

/* Logo in the footer */
.td-ft .navbar-brand { color: var(--td-on-foot); }
.td-ft .td-wm-t { color: var(--td-on-foot); }
.td-ft .td-logo-img { height: 56px !important; width: auto !important; max-width: 280px; }
.td-logo-inv { filter: brightness(0) invert(.92); }
.td-ft a.navbar-brand:hover { text-decoration: none; }

/* Grav forms (pages with the form template and everywhere a form appears) */
#body-wrapper h1, #body-wrapper h2, #body-wrapper h3 { margin-bottom: .5em; }
#body-wrapper .container > * + * { margin-top: 1em; }
#body-wrapper form, .td-form form { display: grid; gap: 20px; max-width: 100%; }
#body-wrapper .form-group, #body-wrapper .form-field, #body-wrapper .form-label-wrapper { margin: 0; }
#body-wrapper label, #body-wrapper .form-label { display: block; font-weight: 500; font-size: 15px; margin-bottom: 6px; }
#body-wrapper input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]), #body-wrapper select, #body-wrapper textarea,
.form-input, .form-select { display: block; width: 100%; box-sizing: border-box; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--td-muted); border-radius: var(--td-r-img); background: var(--td-bg); color: var(--td-ink); font: inherit; box-shadow: none; }
#body-wrapper textarea { min-height: 150px; }
/* Native selects (Safari in particular) ignore padding and render shorter than the text inputs: draw the select ourselves
   with the same box as an input and a chevron made of two gradients (tokens only, so it follows light/dark). */
#body-wrapper select, .td-form select, .form-select {
  -webkit-appearance: none; appearance: none; line-height: 1.6; height: auto; padding-right: 44px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--td-ink) 50%), linear-gradient(135deg, var(--td-ink) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}
#body-wrapper input[type="checkbox"], #body-wrapper input[type="radio"] { width: 24px; height: 24px; accent-color: var(--td-pri); margin-right: 12px; vertical-align: middle; }
#body-wrapper button[type="submit"], #body-wrapper .button, #body-wrapper input[type="submit"] { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; border-radius: var(--td-r-btn); border: 1.5px solid var(--td-pri); background: var(--td-pri); color: var(--td-on-pri); font: 500 16px var(--td-f-body); cursor: pointer; width: auto; }
#body-wrapper .form-errors, #body-wrapper .notices { border-radius: var(--td-r-img); padding: 12px 16px; border: 1px solid var(--td-line); background: var(--td-bg2); }
.td-form { max-width: 100%; }

/* ---------- Navigation: must not overflow ---------- */
.navbar-section.desktop-menu { min-width: 0; }
.navigation { flex-wrap: nowrap; white-space: nowrap; }
.navbar-section.actions { flex: none; }
@media (min-width: 900px) and (max-width: 1099px) { .td-hide-mobile { display: none; } .td-modebtn { display: inline-flex; } }

/* ---------- Modular pages ---------- */
.td-anchor { scroll-margin-top: 96px; }
.td-mod-text { display: grid; gap: 32px; align-items: start; }
.td-mod-text > .td-mod-body { max-width: 760px; }
.td-mod-fig { border-radius: var(--td-r-img); overflow: hidden; }
.td-mod-fig img { width: 100%; height: auto; display: block; }
@media (min-width: 900px) {
  .td-mod-text--img { grid-template-columns: 7fr 5fr; gap: 72px; }
  .td-mod-text--left .td-mod-fig { order: -1; }
}
.td-mod-body h1, .td-mod-head h1 { font: 400 clamp(34px, 4.4vw, 56px)/1.12 var(--td-f-head); letter-spacing: -.01em; }
.td-mod-body h2 { font: 400 clamp(28px, 3.2vw, 42px)/1.15 var(--td-f-head); letter-spacing: -.01em; }
.td-mod-body h3 { font: 400 24px/1.2 var(--td-f-head); }
.td-mod-body ol, .td-mod-body ul, .td-content ol, .td-content ul { padding-left: 1.3em; }
.td-mod-body li + li, .td-content li + li { margin-top: .6em; }
.td-content h1, .td-content h2, .td-content h3 { margin-top: 1.4em; }
.td-content > :first-child { margin-top: 0; }
.td-content h2 { font: 400 clamp(26px, 3vw, 36px)/1.15 var(--td-f-head); letter-spacing: -.01em; }
.td-content h3 { font: 400 24px/1.2 var(--td-f-head); }
.td-content hr { border: 0; border-top: 1px solid var(--td-line); margin: 2em 0; }
.td-content img { border-radius: var(--td-r-img); height: auto; }

/* Project cards */
.td-gal-cards { padding-bottom: var(--td-sec-y); }
.td-case-list { display: grid; gap: 56px; }
.td-case { display: grid; gap: 16px; border-top: 1px solid var(--td-line); padding-top: 28px; }
.td-case h2 { font: 400 clamp(26px, 3vw, 36px)/1.15 var(--td-f-head); margin: 0; }
@media (min-width: 900px) { .td-case-list { grid-template-columns: repeat(2, 1fr); gap: 72px 56px; } }

/* Collapsible blocks ([details] shortcode) */
.td-content details, .td-mod-body details { border-top: 1px solid var(--td-line); padding: 0; }
.td-content details:last-of-type, .td-mod-body details:last-of-type { border-bottom: 1px solid var(--td-line); }
.td-content summary, .td-mod-body summary { cursor: pointer; list-style: none; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font: 400 22px/1.25 var(--td-f-head); padding: 8px 0; }
.td-content summary::-webkit-details-marker, .td-mod-body summary::-webkit-details-marker { display: none; }
.td-content summary::after, .td-mod-body summary::after { content: "+"; font: 400 28px var(--td-f-body); color: var(--td-acc); flex: none; }
.td-content details[open] > summary::after, .td-mod-body details[open] > summary::after { content: "–"; }
.td-content details > :not(summary), .td-mod-body details > :not(summary) { padding-bottom: 16px; color: var(--td-ink); }
.td-content details > :not(summary) + :not(summary), .td-mod-body details > :not(summary) + :not(summary) { margin-top: .8em; }

/* Tabulky z markdownu (kontakt: ikona, text) */
.td-content table { width: 100%; border-collapse: collapse; }
.td-content td, .td-content th { padding: 12px 8px; border-top: 1px solid var(--td-line); text-align: left; vertical-align: middle; }
.td-content td:empty, .td-content th:empty { display: none; }
.td-content td svg, .td-content td i { color: var(--td-pri); }
.td-content [class*="fa-"] { font-size: 1.4em; }

/* Justified text ([justify]) is not wanted in a reading column: left alignment reads better */
.td-content .justify, .td-mod-body .justify, .td-content [style*="justify"] { text-align: left !important; }
.td-mod-head { max-width: 820px; }
.td-case .swiffy-slider { --swiffy-slider-nav-light: var(--td-bg); border-radius: var(--td-r-img); overflow: hidden; }
.td-case .slider-container, .td-case .swiffy-slider { margin: 0; padding: 0; }

/* The logo is a dark (ink) SVG: in dark mode it is recoloured to the text colour so it keeps its size and contrast */
:root[data-theme="dark"] .td-logo-img { filter: brightness(0) invert(.92); }
.td-ft .td-logo-img { filter: brightness(0) invert(.92); }

/* Icons in content that Font Awesome does not load on the site (brands and an arrow): own masks, colour from text */
.td-content i.fa-brands.fa-facebook, .td-content i.fa-brands.fa-instagram, .td-content i.fa-arrow-up-right-from-square {
  display: inline-block; font-size: 0 !important; width: 24px; height: 24px; vertical-align: middle; background: var(--td-pri);
  -webkit-mask: var(--td-ico) center / contain no-repeat; mask: var(--td-ico) center / contain no-repeat;
}
.td-content i.fa-brands.fa-facebook { --td-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 8V6.5c0-.7.2-1 1.1-1H17V2h-2.6C11.6 2 10 3.7 10 6.2V8H8v3.5h2V22h4V11.5h2.7L17 8z'/%3E%3C/svg%3E"); }
.td-content i.fa-brands.fa-instagram { --td-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M7 2h10a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5zm0 2a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3zm5 3.5a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9zm0 2a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5zM17.5 5.5a1 1 0 1 1 0 2 1 1 0 0 1 0-2z'/%3E%3C/svg%3E"); }
.td-content i.fa-arrow-up-right-from-square { --td-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 3h7v7h-2V6.4l-8.3 8.3-1.4-1.4L17.6 5H14zM5 5h6v2H5v12h12v-6h2v8H3V5z'/%3E%3C/svg%3E"); }

/* ---------- Services and price list: service image, price groups ---------- */
.td-svc-main { display: grid; gap: 12px; align-content: start; }
.td-svc-side { display: grid; gap: 12px; align-content: start; }
.td-svc-fig { margin-top: 12px; border-radius: var(--td-r-img); overflow: hidden; max-width: 420px; }
.td-svc-fig img { width: 100%; height: auto; display: block; }
.td-svc-p:empty { display: none; }
.td-pr-g { margin: 40px 0 8px; font-size: 22px; }
.td-pr-g:first-child { margin-top: 0; }
.td-pr-note { padding: 12px 0 0; }
.td-pr .td-bl { margin-top: 8px; }
.td-pr .td-content > * + * { margin-top: .6em; }
@media (min-width: 900px) { .td-svc-fig { max-width: none; } }
.td-h1--wide { max-width: 20ch; }
@media (min-width: 900px) {
  .td-svc--wide { grid-template-columns: 72px 7fr 3fr; }
  .td-svc--wide .td-svc-fig { max-width: 560px; }
}

/* ---------- Gallery: groups by project ---------- */
.td-grp { margin-top: 56px; }
.td-grp:first-of-type { margin-top: 32px; }
.td-grp[hidden] { display: none; }
.td-grp-h { font: 400 clamp(22px, 2.4vw, 30px)/1.2 var(--td-f-head); letter-spacing: -.01em; border-top: 1px solid var(--td-ink); padding-top: 18px; margin: 0 0 20px; }
.td-mas--grid { columns: auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; align-items: start; }
.td-mas--grid .td-tile { margin: 0; }
@media (min-width: 900px) { .td-mas--grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.td-role { position: absolute; left: 10px; bottom: 10px; background: var(--td-scrim); color: var(--td-overlay-ink); font: 500 12px/1 var(--td-f-body); padding: 7px 11px; border-radius: 99px; letter-spacing: .02em; z-index: 1; }
/* Lightbox: photo and caption always fit the window */
.td-lb { height: 100vh; height: 100dvh; box-sizing: border-box; grid-template-rows: auto minmax(0, 1fr) auto; }
.td-lb-st { min-height: 0; overflow: hidden; }
.td-lb-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.td-lb-cap { max-height: 28vh; overflow-y: auto; }
/* Lightbox: the photo fills the space between the bar and the caption and is always shown whole */
.td-lb-st { position: relative; display: block; }
.td-lb-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; border-radius: 0; }

/* ---------- Price list: item (title + price in the head, description and bullets below) ---------- */
.td-pr { display: block; padding: 20px 0; }
.td-pr-h { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 16px; flex-wrap: wrap; }
.td-pr-h b { font-weight: 500; font-size: 17px; flex: 1 1 14ch; }
.td-pr-h .td-price { text-align: right; flex: none; }
.td-pr-b { margin-top: 10px; max-width: 62ch; }
.td-pr-l { margin: 0 0 4px; font-style: italic; color: var(--td-ink); }
.td-bl { list-style: disc; padding-left: 1.2em; }
.td-bl li::marker { color: var(--td-acc); }
.td-pr .td-bl { margin: 0; }
.td-pr-h .td-price { margin-left: auto; }

/* Error page */
.td-err { display: grid; gap: 20px; justify-items: start; min-height: 50vh; align-content: center; }
.td-content table { max-width: 100%; }
.td-content td, .td-content th { overflow-wrap: anywhere; }

/* Touch targets at least 44 px (appearance switch and short menu items) */
.td-seg button { min-height: 44px; min-width: 44px; }
.navigation > li > a { min-width: 44px; justify-content: center; }

/* Language switcher (rendered only on a multilingual site) */
.td-iconbtn { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 99px; color: var(--td-ink); text-decoration: none; }
.td-iconbtn:hover { background: var(--td-bg2); color: var(--td-pri); }
.td-overlay-foot .td-btn svg { margin-right: 10px; flex: none; }
/* The studio icon takes 44 px of the header: tighten the gaps so the menu keeps its room */
#header:has(.td-iconbtn) .navigation { gap: 16px; }
#header:has(.td-iconbtn) .navbar-section.actions { gap: 8px; }
#header:has(.td-iconbtn) .td-seg button { padding: 0 10px; }
.td-lang { display: inline-flex; gap: 4px; }
.td-lang a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 99px; color: var(--td-ink); text-decoration: none; font: 500 14px var(--td-f-body); letter-spacing: .06em; }
.td-lang a.is-on { background: var(--td-pri); color: var(--td-on-pri); }
.td-lang a:not(.is-on):hover { background: var(--td-bg2); color: var(--td-ink); }

/* ---------- Home page ---------- */
.td-pains { list-style: none; padding: 0; display: grid; gap: 28px 40px; grid-template-columns: 1fr; }
.td-pain { border-top: 1px solid var(--td-ink); padding-top: 16px; display: grid; gap: 10px; align-content: start; }
.td-pain-q { font: 400 20px/1.4 var(--td-f-head); }
.td-pain-t { font: 400 16px/1.55 var(--td-f-body); color: var(--td-muted); margin-top: -2px; }
@media (min-width: 600px) { .td-pains { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .td-pains { grid-template-columns: repeat(3, 1fr); gap: 40px 56px; } }

.td-turn { background: var(--td-pri); color: var(--td-on-pri); padding-block: clamp(48px, 7vw, 96px); text-align: center; }
.td-turn-t { font: 400 clamp(28px, 4vw, 52px)/1.2 var(--td-f-head); letter-spacing: -.01em; max-width: 24ch; margin-inline: auto; }

.td-quotes { list-style: none; padding: 0; display: grid; gap: 28px 56px; grid-template-columns: 1fr; }
.td-qt { font: italic 400 clamp(20px, 2vw, 24px)/1.4 var(--td-f-head); border-left: 2px solid var(--td-acc); padding-left: 20px; }
@media (min-width: 900px) { .td-quotes { grid-template-columns: repeat(2, 1fr); } }

.td-about { display: grid; gap: 40px; align-items: center; }
.td-about-fig { margin: 0; border-radius: var(--td-r-card); overflow: hidden; }
.td-about-fig img { width: 100%; height: auto; display: block; }
.td-statement { font: 400 clamp(26px, 3.2vw, 40px)/1.25 var(--td-f-head); letter-spacing: -.01em; }
.td-assure { display: flex; flex-wrap: wrap; gap: 4px 20px; font: 400 clamp(22px, 2.4vw, 30px)/1.3 var(--td-f-head); color: var(--td-acc); }
@media (min-width: 900px) { .td-about--img { grid-template-columns: 5fr 7fr; gap: 72px; } }

/* Steps: a vertical axis, every step is one row
   < 600 px:  number next to the title, description below across the full width
   600–899:   description indented under the title
   >= 900:    number | title | description side by side, all steps start at the same height and columns */
.td-steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.td-steps .td-stp { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; row-gap: 8px; align-items: start; border-top: 1px solid var(--td-line); padding: 18px 0 22px; }
.td-steps .td-stp:last-child { border-bottom: 1px solid var(--td-line); }
.td-steps .td-num { grid-column: 1; grid-row: 1; line-height: 1.2; }
.td-steps .td-stp-h { grid-column: 2; grid-row: 1; margin: 0; align-self: center; }
.td-steps .td-stp-b { grid-column: 1 / -1; grid-row: 2; font-size: 16px; line-height: 1.6; max-width: 66ch; }
.td-steps .td-stp-b > * + * { margin-top: .6em; }
@media (min-width: 600px) { .td-steps .td-stp-b { grid-column: 2; } }
@media (min-width: 900px) {
  .td-steps .td-stp { grid-template-columns: 56px minmax(0, 4fr) minmax(0, 7fr); column-gap: 32px; padding: 28px 0 30px; }
  .td-steps .td-num { font-size: 34px; }
  .td-steps .td-stp-h { grid-column: 2; grid-row: 1; align-self: start; font-size: 24px; }
  .td-steps .td-stp-b { grid-column: 3; grid-row: 1; font-size: 17px; }
}

/* ---------- Price calculator (partials/calculator.html.twig, js/td-calc.js) ---------- */
.td-calc { display: grid; gap: 40px; align-items: start; }
.td-calc-form { display: grid; gap: 44px; }
.td-calc-sec { display: grid; gap: 8px; align-content: start; }
.td-calc-step { display: flex; gap: 14px; align-items: baseline; margin-bottom: 8px; }
.td-calc-num { font: 400 24px var(--td-f-head); color: var(--td-acc); }
.td-calc-room { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--td-line); }
.td-calc-ctl { display: flex; align-items: center; gap: 6px; }
.td-calc-n { min-width: 28px; text-align: center; font: 400 24px var(--td-f-head); }
.td-calc-round { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--td-line); background: transparent; color: var(--td-ink); font: 400 22px var(--td-f-body); cursor: pointer; }
.td-calc-round:hover:not(:disabled) { background: var(--td-bg); }
.td-calc-round:disabled { opacity: .35; cursor: default; }
.td-calc-round--on, .td-calc-round--on:hover:not(:disabled) { background: var(--td-pri); border-color: var(--td-pri); color: var(--td-on-pri); }
.td-calc-opts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.td-calc-opts--s { grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.td-calc-opt { text-align: left; display: grid; gap: 6px; align-content: start; padding: 18px 20px; border-radius: var(--td-r-card); border: 1.5px solid var(--td-line); background: var(--td-bg); color: var(--td-ink); font: 400 17px var(--td-f-body); cursor: pointer; }
.td-calc-opt:hover { border-color: var(--td-pri); }
.td-calc-opt[aria-pressed="true"] { border-color: var(--td-pri); box-shadow: inset 0 0 0 1px var(--td-pri); }
.td-calc-opt-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.td-calc-tick { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--td-line); font-size: 13px; line-height: 19px; text-align: center; flex: none; }
.td-calc-opt[aria-pressed="true"] .td-calc-tick { background: var(--td-pri); border-color: var(--td-pri); color: var(--td-on-pri); }
.td-calc-sum { background: var(--td-pri); color: var(--td-on-pri); border-radius: var(--td-r-card); padding: clamp(24px, 3vw, 40px); display: grid; gap: 24px; }
.td-calc-sum .td-eyebrow, .td-calc-sum .td-small { color: var(--td-on-pri); }
.td-calc-top { display: grid; gap: 6px; }
.td-calc-total { font: 400 clamp(32px, 4vw, 44px)/1.1 var(--td-f-head); }
.td-calc-warn-wrap { padding-bottom: 0; }
.td-calc-warn { display: grid; gap: 8px; padding: 16px 20px; border: 1.5px solid var(--td-acc); border-radius: var(--td-r-card); background: var(--td-bg); }
.td-calc-warn ul { margin: 0; padding-left: 20px; }
.td-calc-live { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.td-calc-combo { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--td-r-img); background: color-mix(in srgb, var(--td-on-pri) 14%, transparent); }
.td-calc-combo .td-small { color: var(--td-on-pri); }
.td-calc-line { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid color-mix(in srgb, var(--td-on-pri) 28%, transparent); font-size: 15px; }
.td-calc-line span:last-child { white-space: nowrap; }
.td-calc-empty { font: 400 24px/1.3 var(--td-f-head); }
.td-calc-note { margin: 0; }
.td-calc-sum .td-btn { justify-self: start; background: var(--td-on-pri); color: var(--td-pri); border-color: var(--td-on-pri); }
.td-calc-sum .td-btn:hover { color: var(--td-pri); }
@media (min-width: 900px) { .td-calc { grid-template-columns: 1.4fr 1fr; gap: 56px; } .td-calc-sum { position: sticky; top: 24px; } }
