/* =========================================================================
   AVS – design systém v3.1 (produkce)
   Zdroj: schválený prototyp prototypes/avs-architecture-v3/ + produkční komponenty (sekce 19).
   Dokumentace: docs/avs-design-system.md
   Struktura odpovídá design-system.md:
   1 Tokeny · 2 Základ · 3 Typografie · 4 Tlačítka a odkazy · 5 Hlavička
   6 Mobilní menu · 7 Patička · 8 Hero · 9 Hlavička stránky a breadcrumbs
   10 Obsahové bloky · 11 Fotografie a galerie · 12 Technický diagram
   13 Specifikace a FAQ · 14 Formuláře · 15 Produktové karty a detail
   16 Homepage kompozice · 17 Poptávka · 18 Pohyb a prototyp
   ========================================================================= */

/* ---------- 1 Tokeny ---------- */
:root {
  /* barvy */
  --white: #ffffff;
  --stone: #eeebe5;          /* teplý kámen – materiálové plochy */
  --line: #d6d2ca;
  --ink: #141413;            /* nadpisy, tlačítka, tmavé sekce */
  --text: #2b2a28;
  --mid: #66645f;            /* sekundární text: 5,7:1 na bílé, 4,9:1 na stone */
  --graphite: #1d1d1b;       /* technické sekce */
  --on-dark: #f1efea;
  --on-dark-mid: #a7a49d;    /* 7,1:1 na graphite */
  --line-dark: #3a3936;
  --error: #9b2c1f;          /* 6,9:1 na bílé */

  /* písma */
  --display: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  /* typografická škála */
  --fs-mono: 0.6875rem;                                 /* 11 */
  --fs-small: 0.875rem;                                 /* 14 */
  --fs-body: 1rem;                                      /* 16 */
  --fs-lead: clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem); /* 17–20 */
  --fs-h4: clamp(1.25rem, 1.05rem + 0.6vw, 1.5rem);     /* 20–24 */
  --fs-h3: clamp(1.75rem, 1.2rem + 1.8vw, 3rem);        /* 28–48 */
  --fs-h2: clamp(2.25rem, 1.3rem + 3.2vw, 4.5rem);      /* 36–72 */
  --fs-h1-page: clamp(2.75rem, 1.2rem + 5.4vw, 7rem);   /* 44–112 */
  --fs-hero: clamp(3.4rem, 1.2rem + 8.2vw, 10.5rem);    /* 54–168 */
  --track-display: -0.045em;

  /* layout a rytmus */
  --gap: clamp(14px, 1.6vw, 24px);
  --pad: clamp(20px, 4vw, 64px);
  --max: 1600px;
  --header: 68px;
  --sec: clamp(64px, 5vw + 36px, 144px);    /* vertikální odsazení sekcí */
  --head-gap: clamp(28px, 3.5vw, 64px);     /* nadpis sekce → obsah */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- 2 Základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); }
body { margin: 0; background: var(--white); color: var(--text); font: 400 var(--fs-body)/1.6 var(--sans); letter-spacing: -0.005em; -webkit-font-smoothing: antialiased; }
img { display: block; width: 100%; height: auto; }
figure, h1, h2, h3, h4, p, dl, dd { margin: 0; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; color: var(--ink); text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
address { font-style: normal; }
:focus-visible { outline: 1.5px solid currentColor; outline-offset: 4px; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.skip { position: absolute; left: var(--pad); top: -80px; z-index: 100; padding: 10px 14px; background: var(--ink); color: #fff; }
.skip:focus { top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 3 Typografie ---------- */
.mono { font-family: var(--mono); font-size: var(--fs-mono); font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; }
.kicker { display: block; color: var(--mid); margin-bottom: 18px; }
.kicker--light { color: var(--on-dark-mid); }
.h2 { font-size: var(--fs-h2); line-height: 0.96; letter-spacing: var(--track-display); }
.h3 { font-size: var(--fs-h3); line-height: 1.02; letter-spacing: -0.04em; }
.h4 { font-size: var(--fs-h4); line-height: 1.2; letter-spacing: -0.02em; }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--text); }
.small { font-size: var(--fs-small); }
.muted { color: var(--mid); }
.note { font-size: var(--fs-small); color: var(--mid); }
.note--light { color: var(--on-dark-mid); }
/* placeholder: neověřený údaj, který doplní AVS */
.ph { background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(20, 20, 19, 0.06) 6px 7px); padding: 0 4px; outline: 1px dashed var(--line); outline-offset: -1px; }

/* ---------- 4 Tlačítka a odkazy ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; font: 500 var(--fs-small)/1 var(--sans); border: 1px solid transparent; cursor: pointer; transition: background-color 250ms var(--ease), color 250ms var(--ease), border-color 250ms var(--ease); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 0.8125rem; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #3b3a37; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--stone); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.text-link { display: inline-flex; gap: 10px; align-items: center; font-size: var(--fs-small); font-weight: 500; color: var(--ink); padding-bottom: 3px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size 800ms var(--ease); }
.text-link::after { content: "→"; transition: transform 400ms var(--ease); }
.text-link:hover { background-size: 0 1px; background-position: 100% 100%; }
.text-link:hover::after { transform: translateX(4px); }
.text-link--light { color: #fff; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }

/* ---------- 5 Hlavička ---------- */
.header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: box-shadow 300ms; }
.header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.header__bar { display: flex; align-items: center; gap: 32px; height: var(--header); }
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); margin-right: auto; }
.logo__mark { width: 30px; height: auto; fill: currentColor; flex: none; }
.logo__text { font: 500 0.9375rem/1 var(--sans); letter-spacing: -0.01em; white-space: nowrap; }
.logo--light { color: #fff; }
.nav__list { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 28px); }
.nav__item { position: relative; display: flex; align-items: center; gap: 2px; }
.nav__link { position: relative; font-size: var(--fs-small); white-space: nowrap; padding-block: 8px; }
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 500ms var(--ease); }
.nav__link:hover::after, .nav__link[aria-current]::after { transform: scaleX(1); transform-origin: left; }
/* tlačítko podnabídky: samostatné, odkaz hlavní položky vede dál na přehled */
.nav__toggle, .menu__toggle { display: inline-grid; place-items: center; flex: none; border: 0; background: none; color: var(--ink); cursor: pointer; }
.nav__toggle { width: 24px; height: 32px; margin-right: -4px; }
.nav__toggle svg, .menu__toggle svg { width: 10px; height: 6px; fill: none; stroke: currentColor; stroke-width: 1.4; transition: transform 300ms var(--ease); }
.nav__toggle[aria-expanded="true"] svg, .menu__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__toggle:hover { color: var(--mid); }
.nav__toggle:focus-visible, .menu__toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.nav__sub { position: absolute; top: calc(100% + 10px); left: -20px; z-index: 41; display: grid; gap: 2px; min-width: 240px; padding: 14px 20px; background: #fff; border: 1px solid var(--line); }
.nav__sub[hidden] { display: none; }
.nav__sub a { display: block; padding: 7px 0; font-size: var(--fs-small); white-space: nowrap; }
.nav__sub a:hover, .nav__sub a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
/* bez JavaScriptu: podnabídka při najetí nebo fokusu, mobilní menu nahrazuje odkaz na navigaci v zápatí */
html:not(.js) .nav__toggle, html:not(.js) .menu-btn { display: none; }
html:not(.js) .nav__item:hover > .nav__sub, html:not(.js) .nav__item:focus-within > .nav__sub { display: grid; }
.menu-fallback { display: none; font: 500 var(--fs-small)/1 var(--sans); color: var(--ink); padding: 14px 2px; }
.menu-btn { display: none; min-height: 44px; padding: 0 2px; border: 0; background: none; font: 500 var(--fs-small)/1 var(--sans); color: var(--ink); cursor: pointer; }
:target { scroll-margin-top: calc(var(--header) + 24px); }
@media (max-width: 1179px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  html:not(.js) .menu-fallback { display: block; }
  .header__bar { gap: 20px; }
}
@media (max-width: 479px) { .header__cta { display: none; } }

/* ---------- 6 Mobilní menu ---------- */
.menu { position: fixed; inset: var(--header) 0 0; z-index: 39; background: #fff; overflow-y: auto; opacity: 0; transform: translateY(-6px); transition: opacity 400ms var(--ease), transform 400ms var(--ease); }
.menu.is-open { opacity: 1; transform: none; }
.menu__inner { display: grid; gap: 36px; padding-top: 20px; padding-bottom: 48px; }
.menu__item { border-bottom: 1px solid var(--line); }
.menu__row { display: flex; align-items: center; gap: 12px; }
.menu__link { display: flex; flex: 1; align-items: baseline; gap: 18px; padding: 13px 0; font: 400 clamp(2rem, 1.4rem + 3vw, 3rem)/1.05 var(--display); letter-spacing: -0.03em; color: var(--ink); }
.menu__primary .mono { color: var(--mid); width: 2rem; flex: none; }
.menu__link[aria-current] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.menu__toggle { width: 48px; height: 48px; margin-right: -12px; }
.menu__toggle svg { width: 14px; height: 9px; }
.menu__sub { display: grid; padding: 0 0 16px calc(2rem + 18px); }
.menu__sub[hidden] { display: none; }
.menu__sub a { display: block; padding: 9px 0; font-size: 1.0625rem; color: var(--text); }
.menu__sub a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.menu__foot { display: grid; gap: 22px; justify-items: start; font-size: var(--fs-small); line-height: 1.8; }
.menu__secondary { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--mid); }
body.menu-open { overflow: hidden; }

/* ---------- 7 Patička ---------- */
.footer { background: var(--ink); color: var(--on-dark-mid); font-size: var(--fs-small); padding-bottom: 32px; }
.footer__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; padding-top: 40px; padding-bottom: 48px; border-top: 1px solid var(--line-dark); }
.footer .logo { grid-column: 1 / span 3; align-self: start; }
.footer__col { grid-column: span 2; }
.footer__contact { grid-column: span 3; }
.footer__label { color: var(--on-dark); margin-bottom: 14px; }
.footer ul { display: grid; gap: 8px; }
.footer a { color: var(--on-dark-mid); }
.footer a:hover, .footer a:focus-visible { color: #fff; }
.footer a:focus-visible { outline: 1px solid #fff; outline-offset: 3px; }
.footer address { font-style: normal; line-height: 1.6; }
.footer__local { margin-top: 18px; line-height: 1.6; }
.footer__local a, .footer__bottom a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 24px; border-top: 1px solid var(--line-dark); color: var(--on-dark-mid); text-transform: none; letter-spacing: 0.02em; }
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
@media (max-width: 999px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer .logo { grid-column: 1 / -1; }
  .footer__col, .footer__contact { grid-column: auto; }
}
@media (max-width: 599px) {
  .footer__grid { grid-template-columns: 1fr; row-gap: 32px; }
  .footer__col + .footer__col { padding-top: 28px; border-top: 1px solid var(--line-dark); }
  .footer__bottom { flex-direction: column; }
  .footer__bottom ul { flex-direction: column; gap: 10px; }
}

/* ---------- 8 Hero (homepage) ---------- */
.hero__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; padding-top: clamp(32px, 4.5vw, 80px); padding-bottom: clamp(24px, 2.6vw, 40px); }
.hero__title { grid-column: 1 / span 8; font-size: var(--fs-hero); line-height: 0.88; letter-spacing: -0.058em; margin-left: -0.05em; }
.hero__aside { grid-column: 9 / -1; display: grid; gap: 22px; padding-bottom: 0.7rem; font-size: var(--fs-small); max-width: 26rem; }
.hero__media img { aspect-ratio: 1900 / 560; object-fit: cover; object-position: 50% 55%; min-height: 280px; max-height: 58vh; }
.hero__meta { display: flex; justify-content: space-between; gap: 16px; padding-top: 12px; color: var(--mid); }
.hero__spec { color: var(--ink); }
@media (max-width: 999px) {
  .hero__top { grid-template-columns: 1fr; row-gap: 24px; }
  .hero__title, .hero__aside { grid-column: 1; }
  .hero__media img { aspect-ratio: 4 / 3; object-position: 64% 50%; max-height: none; }
  .hero__meta { flex-direction: column; gap: 4px; }
}
@media (max-width: 599px) { .hero__title { font-size: clamp(3.75rem, 1rem + 15vw, 5.5rem); } }

/* ---------- 9 Hlavička stránky a breadcrumbs ---------- */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; color: var(--mid); margin-bottom: clamp(24px, 3vw, 48px); }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs li + li::before { content: "/"; margin-right: 10px; color: var(--line); }
.breadcrumbs [aria-current] { color: var(--ink); }
.page-head { padding-top: clamp(28px, 3.5vw, 56px); padding-bottom: clamp(32px, 4vw, 64px); }
.page-head__grid { align-items: end; row-gap: 24px; }
.page-head__title { grid-column: 1 / span 8; font-size: var(--fs-h1-page); line-height: 0.92; letter-spacing: -0.052em; margin-left: -0.04em; }
.page-head__aside { grid-column: 9 / -1; display: grid; gap: 22px; padding-bottom: 0.5rem; max-width: 28rem; }
.page-head__media img { aspect-ratio: 21 / 8; object-fit: cover; max-height: 60vh; }
@media (max-width: 999px) {
  .page-head__title, .page-head__aside { grid-column: 1 / -1; }
  .page-head__media img { aspect-ratio: 4 / 3; max-height: none; }
}

/* ---------- 10 Obsahové bloky ---------- */
.section { padding-block: var(--sec); }
.section--stone { background: var(--stone); }
.section--dark { background: var(--graphite); color: var(--on-dark); --diagram-bg: var(--graphite); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { margin-bottom: var(--head-gap); align-items: end; row-gap: 16px; }
.section-head > h2 { grid-column: 1 / span 7; }
.specs__note, .diagram__note { margin-top: 12px; }
.section-head > p:not(.kicker) { grid-column: 9 / -1; max-width: 26rem; }
.section-head .kicker { grid-column: 1 / -1; margin-bottom: 0; }
/* textový blok: nadpis vlevo, obsah vpravo */
.block { row-gap: 24px; }
.block__head { grid-column: 1 / span 4; }
.block__body { grid-column: 6 / span 6; display: grid; gap: 20px; align-content: start; }
.block__body > p { max-width: 40rem; }
.list { border-top: 1px solid var(--line); }
.list li { display: grid; grid-template-columns: 2.6rem 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.list .mono { color: var(--mid); padding-top: 4px; }
.list strong { display: block; font-weight: 500; color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; color: var(--ink); }
.tags li { padding: 6px 10px; border: 1px solid var(--line); }
.notice { display: flex; gap: 12px; padding: 14px 16px; border: 1px dashed var(--line); background: var(--white); font-size: var(--fs-small); color: var(--text); }
.notice .mono { color: var(--mid); white-space: nowrap; padding-top: 3px; }
@media (max-width: 999px) {
  .section-head > h2, .section-head > p:not(.kicker), .block__head, .block__body { grid-column: 1 / -1; }
}

/* ---------- 11 Fotografie a galerie ---------- */
.frame-img { overflow: hidden; background: var(--stone); }
.frame-img img, .media-zoom img { transition: transform 1600ms var(--ease); }
figure:hover .frame-img img, .media-zoom:hover img { transform: scale(1.02); }
.caption { display: flex; justify-content: space-between; gap: 16px; padding-top: 12px; color: var(--mid); }
.section--dark .caption { color: var(--on-dark-mid); }
.gallery { row-gap: clamp(36px, 4vw, 72px); }
.gallery__item--wide { grid-column: 1 / span 8; }
.gallery__item--side { grid-column: 9 / -1; align-self: end; }
.gallery__item--half { grid-column: span 6; }
.gallery__item--third { grid-column: span 4; }
.gallery__item--two-thirds { grid-column: span 8; }
.gallery img { object-fit: cover; }
.ratio-3x2 img { aspect-ratio: 3 / 2; }
.ratio-4x5 img { aspect-ratio: 4 / 5; }
.ratio-16x10 img { aspect-ratio: 16 / 10; }
.ratio-1x1 img { aspect-ratio: 1 / 1; }
/* chybějící fotografie: viditelný placeholder, nikdy cizí fotka bez označení */
.img-placeholder { display: grid; place-items: center; aspect-ratio: 4 / 3; background: repeating-linear-gradient(135deg, var(--stone) 0 10px, #e8e4dd 10px 11px); color: var(--mid); text-align: center; padding: 16px; }
@media (max-width: 999px) {
  .gallery__item--wide, .gallery__item--side, .gallery__item--half, .gallery__item--two-thirds { grid-column: 1 / -1; }
  .gallery__item--third { grid-column: span 6; }
}
@media (max-width: 599px) {
  .gallery__item--third { grid-column: 1 / -1; }
  .caption { flex-direction: column; gap: 2px; }
}

/* ---------- 12 Technický diagram ---------- */
.diagram { color: #d9d5cd; }
.diagram svg { width: 100%; height: auto; display: block; }
.diagram__hint { display: none; color: var(--on-dark-mid); margin-bottom: 12px; }
.legend { border-top: 1px solid var(--line-dark); }
.legend li { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line-dark); font-size: var(--fs-small); color: var(--on-dark); }
.legend .mono { color: var(--on-dark-mid); width: 1.8rem; padding-top: 3px; }
@media (max-width: 699px) {
  /* výkres zůstává čitelný – na mobilu vodorovný posun místo zmenšení */
  .diagram { overflow-x: auto; margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); scrollbar-width: thin; }
  .diagram svg { width: 760px; max-width: none; }
  .diagram__hint { display: block; }
}

/* ---------- 13 Specifikace a FAQ ---------- */
.spec { border-top: 1px solid var(--ink); }
.spec > div { display: grid; grid-template-columns: minmax(8rem, 2fr) 3fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--mid); padding-top: 3px; }
.spec dd { color: var(--ink); }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.specs > div { padding: 14px 16px 0 0; border-right: 1px solid var(--line); }
.specs > div + div { padding-left: 16px; }
.specs > div:last-child { border-right: 0; }
.specs dt { color: var(--mid); }
.specs dd { font: 300 clamp(1.25rem, 0.8rem + 1.2vw, 2.25rem)/1.1 var(--display); letter-spacing: -0.03em; color: var(--ink); margin-top: 8px; white-space: nowrap; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 24px; padding: 18px 0; cursor: pointer; list-style: none; font: 400 var(--fs-h4)/1.25 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--mid); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 20px; max-width: 42rem; color: var(--text); }

/* ---------- 14 Formuláře ---------- */
.form { display: grid; gap: 28px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px var(--gap); }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--mid); padding: 0; }
.field .req { color: var(--ink); }
.input { width: 100%; min-height: 48px; padding: 10px 0; border: 0; border-bottom: 1px solid #8a877f; border-radius: 0; background: transparent; color: var(--ink); font: 400 var(--fs-body)/1.4 var(--sans); }
textarea.input { min-height: 132px; resize: vertical; }
.input::placeholder { color: #75736d; }
.input:hover { border-bottom-color: var(--ink); }
.input:focus-visible { outline: none; border-bottom: 2px solid var(--ink); }
.field__hint { font-size: var(--fs-small); color: var(--mid); }
.field__error { display: none; font-size: var(--fs-small); color: var(--error); }
.field.is-error .input { border-bottom-color: var(--error); }
.field.is-error .field__error { display: block; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; border: 0; margin: 0; padding: 0; }
.choices legend { margin-bottom: 12px; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: inline-block; padding: 10px 14px; border: 1px solid var(--line); font-size: var(--fs-small); cursor: pointer; transition: border-color 200ms, background-color 200ms; }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.choice input:focus-visible + span { outline: 1.5px solid var(--ink); outline-offset: 3px; }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 12px; font-size: var(--fs-small); }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); }
.check a { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 599px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- 15 Produktové karty a detail ---------- */
.product-grid { row-gap: 40px; }
.product-card { grid-column: span 3; display: grid; gap: 14px; align-content: start; }
.product-card__media { background: #fff; border: 1px solid var(--line); aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; }
.product-card__media img { width: 78%; transition: transform 1200ms var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.04); }
.product-card__meta { color: var(--mid); }
.product-card__name { font: 400 var(--fs-h4)/1.2 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.product { align-items: start; row-gap: 40px; }
.product__gallery { grid-column: 1 / span 7; display: grid; gap: var(--gap); grid-template-columns: 1fr 1fr; }
.product__gallery figure:first-child { grid-column: 1 / -1; }
.product__panel { grid-column: 9 / -1; position: sticky; top: calc(var(--header) + 24px); display: grid; gap: 24px; }
.product__title { font-size: clamp(2rem, 1.3rem + 2.2vw, 3.5rem); line-height: 1; letter-spacing: -0.04em; }
.variants { border-top: 1px solid var(--ink); }
.variants li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-small); }
.variants b { font-weight: 500; color: var(--ink); white-space: nowrap; }
.docs li { border-bottom: 1px solid var(--line); }
.docs a { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; font-size: var(--fs-small); color: var(--ink); }
.docs a:hover { color: var(--mid); }
@media (max-width: 999px) {
  .product-card { grid-column: span 6; }
  .product__gallery, .product__panel { grid-column: 1 / -1; position: static; }
}

.product-page { padding-top: clamp(28px, 3.5vw, 56px); }
.product__main { border: 1px solid var(--line); }
.product__main img { width: 82%; }
@media (min-width: 1000px) { .product__main--full img { width: 100%; } }  /* čtvercový packshot výrobce: jeho pozadí vyplní rámeček */
.product__aside-note { grid-column: 1 / -1; display: grid; gap: 14px; justify-items: start; padding-top: 24px; border-top: 1px solid var(--line); max-width: 36rem; }
.product__aside-note .kicker { margin-bottom: 0; }
.product__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; font: 400 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.1 var(--display); letter-spacing: -0.02em; color: var(--ink); padding-top: 16px; border-top: 1px solid var(--line); }
.product__price .note { font-family: var(--sans); letter-spacing: 0; width: 100%; }
.product__panel .kicker { margin-bottom: 10px; }
.product-card--more .product-card__media { background: var(--white); color: var(--ink); }

/* produkt pod 1000 px: hlavní fotka → panel s cenou a CTA → instalace a poznámka */
@media (min-width: 600px) and (max-width: 999px) { .product-card { grid-column: span 4; } }
@media (max-width: 999px) {
  .product { display: flex; flex-direction: column; gap: 32px; }
  .product__gallery { display: contents; }
  .product__gallery figure:first-child { order: 1; width: 100%; }
  .product__panel { order: 2; }
  .product__gallery figure:nth-child(n+2) { order: 3; width: min(100%, 360px); }
  .product__aside-note { order: 4; }
  .product__main { aspect-ratio: 4 / 3; }
  .product__main img { width: 86%; height: 86%; object-fit: contain; }
}

/* kontakt */
.contact { row-gap: 56px; padding-bottom: var(--sec); }
.contact__form { grid-column: 1 / span 7; }
.contact__aside { grid-column: 9 / -1; display: grid; gap: 32px; align-content: start; }
.contact__block { display: grid; gap: 12px; justify-items: start; padding-top: 16px; border-top: 1px solid var(--ink); }
.contact__block .kicker { margin-bottom: 0; }
.contact__big { font: 400 clamp(1.375rem, 1.1rem + 0.8vw, 1.875rem)/1.3 var(--display); letter-spacing: -0.02em; color: var(--ink); overflow-wrap: anywhere; }
.page-head__media .caption { padding-top: 12px; }
@media (max-width: 999px) {
  .contact__form, .contact__aside { grid-column: 1 / -1; }
}

/* ---------- 16 Homepage kompozice ---------- */
/* editorial */
.editorial { align-items: start; padding-block: var(--sec); }
.editorial__text { grid-column: 1 / span 5; position: sticky; top: calc(var(--header) + 32px); display: grid; gap: 28px; }
.editorial__text .text-link { justify-self: start; }
.editorial__media { grid-column: 7 / -1; }
.editorial__media .frame-img img { aspect-ratio: 1 / 1.02; object-fit: cover; }
/* oblasti */
.areas { display: grid; gap: var(--sec); padding-bottom: var(--sec); }
.area__text, .area__panel { display: grid; gap: 20px; justify-items: start; align-content: start; }
.area__text > p:not(.kicker), .area__panel > p:not(.kicker) { max-width: 28rem; }
.area__text .kicker, .area__panel .kicker { margin-bottom: -4px; }
.area--cellar { align-items: end; }
.area--cellar .area__media { grid-column: 1 / span 8; }
.area--cellar .area__media img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 45%; }
.area--cellar .area__text { grid-column: 9 / -1; padding-bottom: 40px; }
/* vinné stěny: kamenná plocha ve stejné šířce jako ostatní oblasti, zrcadlová kompozice k oblasti 01 */
.area--wall { padding-block: clamp(48px, 5vw, 88px); background: var(--stone); }
.area--wall .area__text { grid-column: 1 / span 4; align-self: end; padding-bottom: 40px; }
.area--wall .area__media { grid-column: 5 / -1; }
.area--wall .area__media img { aspect-ratio: 3 / 2; object-fit: cover; }
.area__inset { margin-top: 16px; width: 100%; }
.area__inset img { aspect-ratio: 16 / 7; object-fit: cover; }
.area--cabinet { align-items: center; }
.area--cabinet .area__media { grid-column: 1 / span 9; grid-row: 1; }
.area--cabinet .area__media img { aspect-ratio: 16 / 9; object-fit: cover; }
.area__panel { grid-column: 8 / -1; grid-row: 1; position: relative; z-index: 1; background: #fff; padding: clamp(28px, 3vw, 48px); margin-top: 18%; }
/* technologie */
.tech { padding-block: var(--sec); }
.tech__grid { row-gap: 40px; }
.tech__head { grid-column: 1 / span 4; display: grid; gap: 20px; align-content: start; color: var(--on-dark-mid); }
.tech .diagram { grid-column: 5 / -1; grid-row: 1 / span 2; }
.tech .legend { grid-column: 1 / span 4; align-self: end; }
.tech__links { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); column-gap: var(--gap); border-top: 1px solid var(--line-dark); }
.tech__links a { display: grid; gap: 8px; padding: 20px 0 4px; font: 400 clamp(1.125rem, 0.9rem + 0.6vw, 1.5rem)/1.2 var(--display); letter-spacing: -0.02em; color: #fff; transition: opacity 250ms; }
.tech__links a:hover { opacity: 0.7; }
.tech__links .mono { color: var(--on-dark-mid); }
/* realizace */
.works { padding-block: var(--sec); }
.works__title { font-size: clamp(3.5rem, 1.5rem + 7vw, 9rem); line-height: 0.85; letter-spacing: -0.06em; }
.works__foot { display: flex; justify-content: flex-end; margin-top: 36px; }
.work--b img { object-position: 30% 50%; }
@media (max-width: 999px) {
  .editorial { row-gap: 40px; }
  .editorial__text, .editorial__media { grid-column: 1 / -1; position: static; }
  .area--cellar, .area--wall .wrap, .area--cabinet { row-gap: 24px; }
  .area--cellar .area__media, .area--cellar .area__text, .area--wall .area__text, .area--wall .area__media,
  .area--cabinet .area__media, .area__panel { grid-column: 1 / -1; grid-row: auto; }
  .area--cellar .area__text, .area--wall .area__text { padding-bottom: 0; }
  .area--wall .area__media { order: -1; }
  .area__panel { margin-top: 0; padding: 0; background: transparent; }
  .tech__head, .tech .diagram, .tech .legend, .tech__links { grid-column: 1 / -1; grid-row: auto; }
  .tech__links { grid-template-columns: 1fr 1fr; row-gap: 8px; }
  .works__foot { justify-content: flex-start; }
}
@media (max-width: 599px) {
  .gallery .work--b, .gallery .work--c { width: 82%; }
  .gallery .work--b { justify-self: end; }
}

/* tablet: dvousloupcové galerie místo skládání na plnou šířku */
@media (min-width: 600px) and (max-width: 999px) {
  .gallery__item--side, .gallery__item--third { grid-column: span 6; align-self: start; }
  .gallery .work--b, .gallery .work--c { width: auto; }
  .editorial__media .frame-img img { aspect-ratio: 4 / 3; }
  .area--cellar .area__media img { aspect-ratio: 16 / 10; }
}

/* ---------- 17 Poptávka (CTA) ---------- */
.cta { background: var(--ink); color: var(--on-dark); padding-block: var(--sec) clamp(48px, 5vw, 80px); }
.cta__grid { row-gap: 48px; }
.cta__main { grid-column: 1 / span 7; }
.cta__title { font-size: clamp(2.5rem, 1.2rem + 5vw, 6.5rem); line-height: 0.92; letter-spacing: -0.055em; color: #fff; margin-bottom: 24px; }
.cta__lead { font-size: var(--fs-lead); color: var(--on-dark-mid); max-width: 34rem; margin-bottom: 32px; }
.cta__phone { font: 400 clamp(1.25rem, 1rem + 0.8vw, 1.75rem)/1 var(--display); letter-spacing: -0.02em; color: #fff; }
.steps { grid-column: 9 / -1; align-self: end; border-top: 1px solid var(--line-dark); }
.steps li { display: grid; grid-template-columns: 2.4rem 1fr; column-gap: 12px; row-gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
.steps .mono { grid-row: 1 / span 2; color: var(--on-dark-mid); padding-top: 5px; }
.steps strong { font: 500 1.0625rem/1.3 var(--sans); color: #fff; }
.steps li > span:last-child { font-size: var(--fs-small); color: var(--on-dark-mid); }
.cta__address { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 32px; padding-top: 24px; border-top: 1px solid var(--line-dark); color: var(--on-dark-mid); font-size: var(--fs-small); line-height: 1.7; }
.cta__address .mono { color: var(--on-dark); }
@media (max-width: 999px) {
  .cta__main, .steps, .cta__address { grid-column: 1 / -1; }
  .cta__address { flex-direction: column; }
}

/* ---------- 18 Pohyb a prototyp ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 1000ms var(--ease), transform 1000ms var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.hero__title, .page-head__title { animation: rise 1100ms var(--ease) 100ms both; }
.hero__aside, .page-head__aside { animation: rise 1100ms var(--ease) 300ms both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- 19 Produkční komponenty ---------- */
/* cookie lišta */
.site-cookies { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; max-width: 640px; padding: 16px 20px; background: var(--ink); color: var(--on-dark); font-size: var(--fs-small); }
.site-cookies[hidden] { display: none; }
.site-cookies p { margin: 0; flex: 1 1 260px; color: var(--on-dark-mid); }
.site-cookies a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.btn-cookie { min-height: 40px; padding: 0 18px; border: 0; background: #fff; color: var(--ink); font: 500 var(--fs-small)/1 var(--sans); cursor: pointer; }
.btn-cookie:hover { background: var(--stone); }

/* próza – právní a převzaté obsahové stránky */
.prose { max-width: 46rem; font-size: var(--fs-body); line-height: 1.7; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: var(--fs-h3); line-height: 1.05; letter-spacing: -0.04em; margin-top: 1.6em; }
.prose h3 { font-size: var(--fs-h4); line-height: 1.25; letter-spacing: -0.02em; margin-top: 1.4em; }
.prose h4 { font: 500 var(--fs-body)/1.4 var(--sans); margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.35em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose img { margin: 1.5em 0; background: var(--stone); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.prose--wide { max-width: none; }
.prose--wide img { max-width: min(100%, 720px); }
.block__body.prose { max-width: 40rem; }
.block__body > ul:not(.list), .block__body > ol:not(.list) { padding-left: 1.2em; list-style: disc; }
.block__body a:not(.text-link):not(.btn) { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* karty služeb / rozcestník */
.cards { row-gap: 0; border-top: 1px solid var(--ink); }
.card { grid-column: span 4; display: grid; gap: 10px; align-content: start; padding: 22px 0 28px; border-bottom: 1px solid var(--line); }
.card:nth-child(3n+2), .card:nth-child(3n+3) { padding-left: var(--gap); border-left: 1px solid var(--line); }
.card__title { font: 400 var(--fs-h4)/1.2 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.card p { font-size: var(--fs-small); color: var(--mid); }
.card .text-link { justify-self: start; margin-top: 4px; }
a.card:hover .card__title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
@media (max-width: 999px) {
  .card { grid-column: span 6; }
  .card:nth-child(n) { padding-left: 0; border-left: 0; }
  .card:nth-child(2n) { padding-left: var(--gap); border-left: 1px solid var(--line); }
}
@media (max-width: 599px) { .card, .card:nth-child(2n) { grid-column: 1 / -1; padding-left: 0; border-left: 0; } }

/* kategorie */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { padding: 9px 14px; border: 1px solid var(--line); font-size: var(--fs-small); transition: border-color 200ms, background-color 200ms; }
.chips a:hover, .chips a[aria-current] { border-color: var(--ink); }
.chips a[aria-current] { background: var(--ink); color: #fff; }
.product-card__count { color: var(--mid); }

/* dokumenty */
.doc-group + .doc-group { margin-top: 40px; }
.doc-group .docs { border-top: 1px solid var(--ink); }
.docs__product { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.docs__product > a:first-child { font-weight: 500; color: var(--ink); }
.docs__files { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--fs-small); }
.docs__files a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 599px) { .docs__product { grid-template-columns: 1fr; } }

/* produkt – poptávkový režim ceny */
.product__price--inquiry { font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.5rem); }
.product__desc > * + * { margin-top: 0.8em; }
.product__desc ul { padding-left: 1.2em; list-style: disc; }

/* poptávkový formulář – pole „produkt“ se ukáže jen s ?produkt= */
.field--product[hidden] { display: none; }
.netlify-honeypot { position: absolute; left: -9999px; }

/* jednoduché stránky (děkujeme, 404) */
.simple { padding-block: var(--sec); }
.simple .actions { margin-top: 32px; }
.map-link { display: inline-block; }

/* tabulky v textu: na úzkém displeji vodorovný posun uvnitř bloku, ne celé stránky */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.25em 0; }
.table-scroll table:has(thead th:nth-child(4)) { min-width: 34rem; }
.prose thead th { color: var(--mid); font-weight: 400; border-bottom: 1px solid var(--ink); }
.prose tbody th { font-weight: 500; }
.block__body > ol:not(.list) { list-style: decimal; }

/* IA 10/2026: rozcestník tří hlavních nabídek v hero, ořez široké fotografie stěny */
.hero__offers { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; font-size: var(--fs-small); text-transform: uppercase; letter-spacing: 0.06em; }
.hero__offers a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
img.obj-left { object-position: 14% 50%; }
/* Média 10/2026: <picture> s AVIF se chová jako dosavadní <img>; široký autentický snímek stěny v přirozeném poměru (bez zvětšování výřezem) */
picture.pic { display: block; }
.area--wall .area__media img.ratio-native { aspect-ratio: auto; height: auto; }

/* Média V3.1: poznámka ke galerii, videa načítaná až po kliknutí */
.gallery__note { grid-column: 1 / -1; max-width: 62ch; margin: 0; }
.videos { row-gap: var(--gap); }
.videos .video { grid-column: span 6; margin: 0; }
.video__play { display: block; position: relative; width: 100%; padding: 0; border: 0; background: var(--ink); cursor: pointer; aspect-ratio: 16 / 9; overflow: hidden; }
.video__play img, .video iframe { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 0; }
.video__play img { opacity: .82; transition: opacity 400ms var(--ease); }
.video__play:hover img, .video__play:focus-visible img { opacity: 1; }
.video__label { position: absolute; left: 16px; bottom: 16px; padding: 8px 12px; background: var(--white); color: var(--ink); }
@media (max-width: 767px) { .videos .video { grid-column: 1 / -1; } }

/* kalkulačka Wine Master – celá šířka obsahu, formulář ve dvou sloupcích */
.calc__head { max-width: 62ch; margin-bottom: 40px; }
.calc__head .note { margin-top: 12px; }
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 32px clamp(32px, 5vw, 80px); }
.calc fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.calc legend { font-weight: 500; margin-bottom: 10px; }
.calc__group { display: grid; gap: 20px; align-content: start; }
.calc__dims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.calc__submit { grid-column: 1 / -1; }
.calc .field__error:empty { display: none; }
.calc__result { margin-top: 48px; padding: clamp(20px, 3vw, 40px); background: var(--white); border: 1px solid var(--line); scroll-margin-top: 96px; transition: box-shadow 900ms var(--ease); }
.calc__result.is-new { box-shadow: 0 0 0 3px rgba(20, 20, 19, .14); }
.calc__result h3:focus { outline: none; }
.calc__model { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; padding: 24px 0; border-top: 1px solid var(--line); }
.calc__model img { width: 100%; max-width: 300px; aspect-ratio: 4 / 3; object-fit: contain; background: var(--white); }
.calc__model h4 { font: 400 1.5rem/1.15 var(--display); margin: 0 0 8px; letter-spacing: -0.02em; }
.calc__price { font: 400 1.25rem/1.2 var(--display); margin: 0 0 8px; }
.calc__model p { margin: 0 0 8px; }
@media (max-width: 899px) {
  .calc { grid-template-columns: 1fr; }
  .calc__model { grid-template-columns: 1fr; }
  .calc__model img { max-width: 360px; }
}
@media (prefers-reduced-motion: reduce) { .calc__result { transition: none; } }
.product-card__price { margin: 6px 0 0; font-size: .95rem; }
.variants--prices li { display: flex; justify-content: space-between; gap: 16px; }

/* ---------- 20 Hero homepage: CAD kresba → fotografie (schválený prototyp Pavlov) ----------
   Vrstvy a časování 1 : 1 podle prototypu; řízení v assets/js/avs-v3.js (cadHero), kresba scripts/partials/cad-pavlov.svg.
   Výchozí (bez JS, omezený pohyb) je konečný stav: fotografie a text. Fotografie i kresba sdílejí jeden rámeček
   s poměrem originálu 2048 × 1115 (.cad-hero__fit), takže linie sedí na snímek i při jiném výřezu na mobilu (--fx). */
.cad-hero { --fx: 0.5; --fy: 0.5; position: relative; height: calc(100vh - var(--header)); height: calc(100svh - var(--header)); min-height: 560px; overflow: hidden; background: #060a0e; color: #fff; isolation: isolate; container-type: size; }
.cad-hero__fit { position: absolute; max-width: none; width: max(100cqw, 183.6771cqh); height: max(100cqh, 54.4434cqw); left: calc((100cqw - max(100cqw, 183.6771cqh)) * var(--fx)); top: calc((100cqh - max(100cqh, 54.4434cqw)) * var(--fy)); }
.cad-hero__photo { z-index: 0; object-fit: fill; filter: brightness(0.96) saturate(1); } /* bez will-change: jinak Chrome snímek nezapočítá do LCP (měřeno 6,5 s → 1,0 s) */
.cad-hero__blueprint { position: absolute; inset: 0; z-index: 1; opacity: 0; background: radial-gradient(ellipse at 40% 37%, #15202a 0%, #06090c 75%); will-change: opacity; }
.cad-hero__blueprint::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(#b8d8e609 1px, transparent 1px), linear-gradient(90deg, #b8d8e609 1px, transparent 1px); background-size: 38px 38px; }
.cad-hero__drawing { z-index: 2; overflow: visible; opacity: 0; pointer-events: none; will-change: opacity; }
.cad-hero .ln { fill: none; stroke: #c0e3eb; stroke-width: 1.35; stroke-linecap: round; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); vector-effect: non-scaling-stroke; opacity: 0.85; }
.cad-hero .s0 { stroke: #d8edf3; stroke-width: 1.8; opacity: 0.94; }
.cad-hero .s2 { stroke: #8daab8; stroke-width: 0.95; opacity: 0.63; }
.cad-hero.is-playing .ln { animation: cad-draw var(--t) cubic-bezier(0.32, 0.05, 0.65, 1) var(--d) both; }
@keyframes cad-draw { to { stroke-dashoffset: 0; } }
.cad-hero__veil { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(90deg, rgba(1, 5, 8, 0.76) 0%, rgba(1, 5, 8, 0.49) 37%, rgba(1, 5, 8, 0.05) 82%), linear-gradient(0deg, rgba(1, 5, 8, 0.42), transparent 50%); }
.cad-hero__content { position: absolute; z-index: 4; left: clamp(25px, 5vw, 90px); right: clamp(25px, 5vw, 90px); bottom: clamp(75px, 9vh, 120px); max-width: 900px; }
.cad-hero__overline { margin: 0 0 20px; font: 500 12px/1.3 var(--sans); letter-spacing: 0.17em; text-transform: uppercase; }
.cad-hero__title { margin: 0 0 23px; font-family: var(--display); font-size: clamp(54px, 8.2vw, 125px); font-weight: 400; line-height: 0.96; letter-spacing: -0.064em; color: #fff; }
.cad-hero__lead { max-width: 625px; margin: 0 0 24px; font-size: clamp(16px, 1.5vw, 21px); line-height: 1.48; }
.cad-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cad-hero__actions a { display: inline-flex; align-items: center; min-height: 48px; padding: 14px 23px; border: 1px solid #ffffff99; background: #000000aa; color: #fff; font-size: 14px; line-height: 1.2; text-decoration: none; transition: background-color 250ms var(--ease), border-color 250ms var(--ease); }
.cad-hero__actions a:last-child { background: #ffffff11; }
.cad-hero__actions a:hover { border-color: #fff; background: #000000d9; }
.cad-hero__actions a:last-child:hover { background: #ffffff26; }
.cad-hero a:focus-visible, .cad-hero button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.cad-hero__bottom { position: absolute; z-index: 5; right: clamp(18px, 4vw, 65px); bottom: 24px; display: flex; align-items: center; gap: 12px; }
.cad-hero__bottom .mono { letter-spacing: 0.08em; }
.cad-hero__bottom button { min-height: 40px; padding: 10px 14px; border: 1px solid #ffffff70; background: #05090caa; color: #fff; font: 400 11px/1 var(--sans); cursor: pointer; }
.cad-hero__bottom button:hover { border-color: #fff; }
.cad-hero__progress { position: absolute; z-index: 10; left: 0; bottom: 0; width: 100%; height: 3px; background: #c8e0e8; }
@media (max-width: 970px) {
  .cad-hero__content { bottom: 85px; }
  .cad-hero__title { font-size: clamp(55px, 10.5vw, 95px); }
  .cad-hero__bottom .mono { display: none; }
}
/* nízká okna (telefon na šířku): hero na výšku okna, nadpis podle výšky, aby se text vešel nad ohyb */
@media (max-height: 520px) and (orientation: landscape) {
  .cad-hero { min-height: 320px; }
  .cad-hero__content { bottom: 64px; max-width: 70%; }
  .cad-hero__overline { margin-bottom: 10px; }
  .cad-hero__title { margin-bottom: 12px; font-size: clamp(36px, 13vh, 64px); }
  .cad-hero__lead { margin-bottom: 14px; font-size: 15px; }
  .cad-hero__actions a { min-height: 44px; padding: 10px 18px; }
}
/* na výšku: výřez na kamenný sloup a osvětlené regály vpravo (kresba se posouvá spolu s fotografií) */
@media (max-aspect-ratio: 4/5) { .cad-hero { --fx: 0.75; } }
/* bez kontejnerových jednotek: chování prototypu (object-fit: cover + preserveAspectRatio slice, výřez na střed) */
@supports not (width: 1cqw) {
  .cad-hero__fit { left: 0; top: 0; width: 100%; height: 100%; }
  .cad-hero__photo { object-fit: cover; object-position: center; }
}
/* výchozí stav animace – jen s JS a bez požadavku na omezený pohyb; JS pak řídí průběh inline styly */
@media (prefers-reduced-motion: no-preference) {
  .js .cad-hero:not(.is-done) .cad-hero__photo { opacity: 0; filter: brightness(0.74) saturate(0.88); }
  .js .cad-hero:not(.is-done) .cad-hero__blueprint, .js .cad-hero:not(.is-done) .cad-hero__drawing { opacity: 1; }
  .js .cad-hero:not(.is-done) .cad-hero__veil { opacity: 0; }
  .js .cad-hero:not(.is-done) [data-cad-part] { opacity: 0; transform: translateY(12px); }
  .js .cad-hero:not(.is-done) .cad-hero__bottom > :not([data-cad-skip]) { opacity: 0; pointer-events: none; }
  .js .cad-hero:not(.is-done) .cad-hero__progress { width: 0; }
  .js .cad-hero:not(.is-done) .cad-hero__content:not(.is-active) { pointer-events: none; }
}

/* ---------- 21 Průvodce: fotografie + textový blok (např. /nabytek-2/) ----------
   Skladba z komponent v3.1: sloupce .gallery__item--half / --third, popisek .caption, seznam .list, štítky .tags. */
.guide-item { display: grid; gap: 24px; align-content: start; }
.guide-item > figure { margin: 0; }
.guide-item__body { display: grid; gap: 16px; justify-items: start; align-content: start; }
.guide-item__body > p:not(.kicker) { max-width: 38rem; }
.guide-item__body .kicker { margin-bottom: -6px; }
.guide-item__body .list { width: 100%; }
.card .tags { margin-top: 4px; }
/* převzaté články (šablona content): karty parametrů a galerie pod textem sekce */
.article__extra { margin-top: var(--head-gap); }
.article__single { grid-column: 6 / span 6; }
@media (max-width: 999px) { .article__single { grid-column: 1 / -1; } }
/* čtyři karty v řadě (parametry systému): bez osamocené karty na druhém řádku */
@media (min-width: 1000px) {
  .cards--quad .card { grid-column: span 3; }
  .cards--quad .card:nth-child(n) { padding-left: var(--gap); border-left: 1px solid var(--line); }
  .cards--quad .card:nth-child(4n+1) { padding-left: 0; border-left: 0; }
}

/* ---------- 22 Portfolio realizací (/realizace/) a detail projektu ----------
   Úvodní projekt přes šířku obsahu, pod ním pravidelná mřížka 2 sloupců (mobil 1) v jednotném poměru 4 : 3.
   Fotografie bez textů a překryvů, pod nimi jen název a typ; další záběry projektu až v detailu (lightbox). */
.pf-project { display: grid; gap: 0; align-content: start; }
.pf-project__media { display: block; overflow: hidden; background: var(--stone); }
.pf-project__media img { aspect-ratio: 4 / 3; object-fit: cover; transition: opacity 400ms var(--ease); }
.pf-project__media:hover img { opacity: 0.92; }
.pf-project__media:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.pf-project__title { margin-top: 18px; font-size: 1.125rem; line-height: 1.3; letter-spacing: -0.01em; }
.pf-project__meta { margin: 6px 0 0; color: var(--mid); }
.pf-project--hero { margin-bottom: clamp(56px, 7vw, 112px); }
.pf-project--hero .pf-project__media img { aspect-ratio: 16 / 9; }
.pf-project--hero .pf-project__title { font-size: var(--fs-h4); margin-top: 20px; }
.pf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); row-gap: clamp(56px, 6vw, 96px); }
@media (max-width: 599px) {
  .pf-grid { grid-template-columns: 1fr; row-gap: 48px; }
  .pf-project--hero { margin-bottom: 48px; }
  .pf-project--hero .pf-project__media img { aspect-ratio: 4 / 3; }
  .pf-project__title, .pf-project--hero .pf-project__title { margin-top: 14px; font-size: 1.0625rem; }
}

/* editorial přehled (PF_LAYOUTS ve v3_render.py): řízené střídání kompozic – široký snímek, dvojice,
   vysoký + menší vodorovný, široký předěl; méně výrazné projekty v kompaktní části „Další realizace“ */
.pf-ed { display: grid; row-gap: clamp(88px, 10vw, 168px); }
.pf-ed--b { row-gap: clamp(72px, 8vw, 132px); }
.pf-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
.pf-cell .pf-project__media img { width: 100%; transition: transform 1400ms var(--ease); }
.pf-cell .pf-project__media:hover img { opacity: 1; transform: scale(1.025); }
.pf-cell--full, .pf-cell--hero { grid-column: 1 / -1; }
.pf-cell--full img { aspect-ratio: 21 / 9; }
.pf-cell--hero img { aspect-ratio: 16 / 9; }
.pf-cell--band { grid-column: 2 / span 10; }
.pf-cell--band img { aspect-ratio: 21 / 9; }
.pf-cell--full, .pf-cell--hero, .pf-cell--band { grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; align-items: baseline; }
.pf-cell--full .pf-project__media, .pf-cell--hero .pf-project__media, .pf-cell--band .pf-project__media { grid-column: 1 / -1; }
.pf-cell--full .pf-project__meta, .pf-cell--hero .pf-project__meta, .pf-cell--band .pf-project__meta { margin-top: 18px; }
.pf-row--pair .pf-cell:first-child { grid-column: 1 / span 5; }
.pf-row--pair .pf-cell:last-child { grid-column: 7 / span 6; }
.pf-cell--pair img { aspect-ratio: 4 / 5; }
.pf-cell--pair-land { grid-column: span 6; }
.pf-cell--pair-land img { aspect-ratio: 4 / 3; }
.pf-row--tall .pf-cell--tall { grid-column: 1 / span 6; }
.pf-row--tall .pf-cell--small { grid-column: 8 / span 5; }
.pf-row--tall-flip .pf-cell--small { grid-column: 1 / span 5; grid-row: 1; }
.pf-row--tall-flip .pf-cell--tall { grid-column: 7 / span 6; grid-row: 1; }
.pf-cell--tall img { aspect-ratio: 4 / 5; }
.pf-cell--small img { aspect-ratio: 4 / 3; }
.pf-more { margin-top: clamp(104px, 11vw, 184px); padding-top: 20px; border-top: 1px solid var(--line); }
.pf-more__head { margin-bottom: clamp(32px, 4vw, 56px); color: var(--mid); }
.pf-compact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); row-gap: clamp(48px, 5vw, 80px); }
.pf-cell--compact img { aspect-ratio: 4 / 3; }
.pf-cell--compact .pf-project__title { margin-top: 14px; font-size: 1rem; }
@media (max-width: 999px) {
  .pf-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* mobil: vlastní rytmus – jeden velký snímek na řádek, detailové záběry po dvou */
@media (max-width: 599px) {
  .pf-ed, .pf-ed--b { row-gap: 56px; }
  .pf-row { grid-template-columns: minmax(0, 1fr); row-gap: 56px; }
  .pf-ed .pf-row > .pf-cell:nth-child(n) { grid-column: 1 / -1; grid-row: auto; }
  .pf-row--tall-flip .pf-cell--tall { order: -1; }
  .pf-cell--full img, .pf-cell--hero img { aspect-ratio: 3 / 2; }  /* panoramata na výšku telefonu: méně ztrát po stranách */
  .pf-cell--band img, .pf-cell--pair-land img, .pf-cell--small img { aspect-ratio: 4 / 3; }
  .pf-cell--full, .pf-cell--hero, .pf-cell--band { grid-template-columns: minmax(0, 1fr); }
  .pf-cell--full .pf-project__meta, .pf-cell--hero .pf-project__meta, .pf-cell--band .pf-project__meta { margin-top: 6px; }
  .pf-more { margin-top: 88px; }
  .pf-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; row-gap: 44px; }
  .pf-cell--compact { grid-column: 1 / -1; }
  .pf-cell--detail { grid-column: span 1; }
  .pf-cell--detail img { aspect-ratio: 4 / 5; }
  .pf-cell--detail .pf-project__title { font-size: 0.9375rem; }
  .pf-cell--detail .pf-project__meta { font-size: 0.6875rem; }
}
@media (prefers-reduced-motion: reduce) {
  .pf-cell .pf-project__media img { transition: none; }
  .pf-cell .pf-project__media:hover img { transform: none; }
}

/* detail projektu: světlý lightbox, celé fotografie bez ořezu, diskrétní číslování */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--white, #fff); color: var(--ink); }
.lightbox::backdrop { background: var(--white, #fff); }
.lightbox__head { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 22px var(--pad, 32px); }
.lightbox__title { margin: 0; font: 400 1.125rem/1.3 var(--display); color: var(--ink); }
.lightbox__meta { margin: 4px 0 0; color: var(--mid); }
.lightbox__stage { position: absolute; inset: 96px 88px 84px; display: flex; align-items: center; justify-content: center; touch-action: pan-y pinch-zoom; }
.lightbox__img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; }
.lightbox__bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 24px; justify-content: space-between; align-items: baseline; padding: 24px var(--pad, 32px) 28px; color: var(--mid); }
.lightbox__cap { margin: 0; }
.lightbox button { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--ink); font: inherit; cursor: pointer; }
.lightbox button:hover { color: var(--mid); }
.lightbox button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.lightbox .lightbox__close { flex: none; gap: 10px; grid-auto-flow: column; font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: 0.06em; }
.lightbox .lightbox__close span:last-child { font-size: 18px; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); font-size: 22px; }
.lightbox__prev { left: 24px; }
.lightbox__next { right: 24px; }
.lightbox.is-single .lightbox__prev, .lightbox.is-single .lightbox__next, .lightbox.is-single .lightbox__count { display: none; }
@media (max-width: 599px) {
  .lightbox__head { padding: 14px 16px; }
  .lightbox__stage { inset: 88px 0 112px; }
  .lightbox__bar { flex-direction: column; gap: 2px; align-items: center; text-align: center; padding: 16px 64px 30px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 22px; transform: none; }
  .lightbox__prev { left: 8px; }
  .lightbox__next { right: 8px; }
}
html.lb-open { overflow: hidden; }

/* ---------- 23 Reference na homepage: pás „Důvěřují nám“ ----------
   Loga v jedné řadě bez rámečků a karet, velmi pomalý nepřetržitý posun zprava doleva (délka cyklu podle délky pásu, --dur),
   na krajích jemné vytrácení. Najetí myší pás zastaví; při omezení pohybu statický seznam. */
.clients { padding-block: clamp(40px, 5vw, 64px); background: var(--white); }
.clients__title { margin-bottom: clamp(20px, 2.4vw, 32px); }
.clients__viewport { overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent); }
.clients__track { display: flex; width: max-content; animation: clients-scroll var(--dur, 60s) linear infinite; will-change: transform; }
.clients__viewport:hover .clients__track { animation-play-state: paused; }
.clients__row { display: flex; align-items: center; gap: 96px; margin: 0; padding: 0 96px 0 0; list-style: none; }
.clients__row img { width: auto; height: var(--h); max-width: none; }
@keyframes clients-scroll { to { transform: translate3d(-50%, 0, 0); } }
@media (max-width: 599px) {
  .clients__row { gap: 56px; padding-right: 56px; }
  .clients__row img { height: calc(var(--h) * 0.72); }
}
@media (prefers-reduced-motion: reduce) {
  .clients__viewport { -webkit-mask-image: none; mask-image: none; }
  .clients__track { width: auto; animation: none; justify-content: center; }
  .clients__row { flex-wrap: wrap; justify-content: center; gap: 32px 56px; padding: 0 var(--pad); }
  .clients__row[aria-hidden] { display: none; }
}

/* ---------- 24 Obrazové sekce obsahových stránek (šablona service) ----------
   Sdílené komponenty místo úprav jednotlivých stránek; řídí je klíče bloku v JSON stránky:
   photo → .split (fotografie + text, strany se střídají), wide → .wide, vcards → vizuální karty (.guide-item),
   steps → .phases (fáze projektu), details → .more (rozbalovací technické podrobnosti). */
.split { row-gap: 28px; align-items: center; }
.split__media { grid-column: 1 / span 7; margin: 0; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__text { grid-column: 9 / -1; display: grid; gap: 20px; justify-items: start; align-content: center; }
.split__text .kicker { margin-bottom: -8px; }
.split__body { max-width: 32rem; }
.split__body .list { width: 100%; margin-top: 4px; padding-left: 0; list-style: none; }
.split__body .list li { padding: 12px 0; }
.split--flip .split__media { grid-column: 6 / -1; grid-row: 1; }
.split--flip .split__text { grid-column: 1 / span 4; grid-row: 1; }
.split--tall .split__media { grid-column: 1 / span 5; }
.split--tall .split__media img { aspect-ratio: 4 / 5; }
.split--tall .split__text { grid-column: 7 / span 5; }
.split--tall.split--flip .split__media { grid-column: 8 / -1; }
.split--tall.split--flip .split__text { grid-column: 1 / span 6; }
.wide { margin: 0; }
.wide img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.wide__text { margin-top: var(--head-gap); }
.wide__text .text-link { justify-self: start; }
.more { width: 100%; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.more summary { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; cursor: pointer; list-style: none; color: var(--ink); }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "+"; color: var(--mid); }
.more[open] summary::after { content: "–"; }
.more summary:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
.more__body { padding-bottom: 20px; font-size: var(--fs-small); }
.phases { display: grid; grid-template-columns: repeat(var(--phases, 5), minmax(0, 1fr)); gap: var(--gap); }
.phases__item { display: grid; gap: 16px; align-content: start; }
.phases__item figure { margin: 0; }
.phases__num { display: grid; place-items: end start; aspect-ratio: 4 / 5; padding: 18px; background: var(--stone); }
.phases__item .caption { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phases__item .caption span + span { display: none; }  /* u náhledu jen původ (realizace / vizualizace), popis nese text kroku */
.section--stone .phases__num { background: var(--white); }
.phases__num span { font-size: clamp(2.5rem, 4vw, 4rem); line-height: 1; color: var(--mid); }
.phases__text { display: grid; gap: 8px; }
.phases__text .kicker { margin-bottom: -2px; }
.phases__text p:not(.kicker) { font-size: var(--fs-small); color: var(--text); }
.pf-project { scroll-margin-top: 96px; }
@media (max-width: 999px) {
  .split__media, .split__text, .split--flip .split__media, .split--flip .split__text,
  .split--tall .split__media, .split--tall .split__text, .split--tall.split--flip .split__media, .split--tall.split--flip .split__text { grid-column: 1 / -1; grid-row: auto; }
  .split--tall .split__media img { aspect-ratio: 4 / 3; }
  .wide img { aspect-ratio: 3 / 2; }
  .phases { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
}
@media (max-width: 599px) {
  .split__media img { aspect-ratio: 4 / 3; }
  .phases { grid-template-columns: 1fr; row-gap: 0; border-top: 1px solid var(--line); }
  .phases__item { grid-template-columns: 112px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .phases__item .caption { font-size: 0.6875rem; padding-top: 6px; }
  .phases__num { padding: 10px; }
  .phases__num span { font-size: 1.5rem; }
}

/* ---------- 25 VintageView: katalog s filtry a varianty produktu ----------
   Data a filtry jen z ověřených parametrů výrobce (scripts/content/vintageview.json); bez JS je vidět celý katalog. */
.vv-exclusive { color: var(--ink); margin-bottom: 4px; }
.vv-filter { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px var(--gap); margin-bottom: var(--head-gap); padding: clamp(18px, 2vw, 28px); background: var(--white); }
.vv-filter[hidden], .vv-group[hidden], .vv-card[hidden], .vv-empty[hidden] { display: none; }
.vv-filter__field { display: grid; gap: 6px; min-width: 0; }
.vv-filter__field .mono { color: var(--mid); }
.vv-filter select { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 0; background: #fff; font: inherit; font-size: var(--fs-small); color: var(--ink); }
.vv-filter select:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.vv-filter__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-top: 14px; border-top: 1px solid var(--line); }
.vv-filter__foot button { border: 0; background: none; cursor: pointer; font: inherit; }
.vv-group + .vv-group { margin-top: clamp(56px, 6vw, 96px); }
.vv-group__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 32px; margin-bottom: 28px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.vv-group__head p { max-width: 34rem; font-size: var(--fs-small); color: var(--mid); }
.vv-card__facts { margin-top: 4px; font-size: var(--fs-small); color: var(--mid); }
.vv-empty { margin-top: 24px; }
.vv-variants { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.vv-variants th, .vv-variants td { padding: 13px 16px 13px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-weight: 400; }
.vv-variants thead th { font: 400 var(--fs-mono)/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--mid); border-bottom-color: var(--ink); }
.vv-variants a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.vv-variants .vv-variants__ask { text-align: right; white-space: nowrap; padding-right: 0; }
.vv-variants .vv-variants__ask a { text-decoration: none; }
@media (max-width: 999px) { .vv-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 699px) {
  .vv-variants thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .vv-variants, .vv-variants tbody { display: block; min-width: 0 !important; }  /* přebíjí min-width tabulek v .table-scroll */
  .vv-variants tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .vv-variants th, .vv-variants td { display: block; padding: 0; border: 0; }
  .vv-variants [data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font: 400 0.6875rem/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--mid); }
  .vv-variants th[scope="row"], .vv-variants td[data-label="Provedení"], .vv-variants .vv-variants__ask { grid-column: 1 / -1; }
  .vv-variants .vv-variants__ask { text-align: left; }
}
@media (max-width: 359px) { .vv-filter { grid-template-columns: 1fr; } }

/* ---------- 26 VintageView: výběr varianty na produktu ---------- */
.vv-pick { display: grid; gap: 18px; }
.vv-pick__set { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.vv-pick__set[hidden] { display: none; }
.vv-pick__set .kicker { margin-bottom: 2px; }
.vv-pick__opts { display: flex; flex-wrap: wrap; gap: 6px; }
.vv-pick__opt { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); background: #fff; font-size: var(--fs-small); color: var(--ink); cursor: pointer; }
.vv-pick__opt input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.vv-pick__opt.is-checked, .vv-pick__opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.vv-pick__opt:has(input:focus-visible), a.vv-pick__opt:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
a.vv-pick__opt:hover, .vv-pick__opt:hover { border-color: var(--mid); }
.vv-pick__spec { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: var(--fs-small); }
.vv-pick__spec dt { color: var(--mid); padding-top: 2px; }
.vv-pick__spec a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
