/* Kamnářství Hrabec – fáze 2. Dnešní styl (vínová, hnědošedé pásy, Noto Serif + Roboto) v kvalitě oborového standardu. */
:root {
  --wine: #b12c2b;
  --wine-dark: #8f2222;
  --taupe: #574d4c;
  --taupe-dark: #463d3c;
  --taupe-ink: #f4eeeb;
  --taupe-soft: #ddd3cf;
  --paper: #f8f8f8;
  --white: #fff;
  --ink: #2b2524;
  --muted: #625856;
  --line: #e4dedb;
  --serif: 'Noto Serif', Georgia, 'Times New Roman', serif;
  --sans: Roboto, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1200px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --header: 76px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--wine); color: #fff; }
a { color: var(--wine); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--wine-dark); }
:focus-visible { outline: 3px solid var(--wine); outline-offset: 3px; border-radius: 2px; }
.band :focus-visible, .hero :focus-visible, .site-footer :focus-visible { outline-color: #fff; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; letter-spacing: -.015em; color: var(--taupe-dark); margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 1.4rem + 3.2vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.625rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); }
h4 { font: 500 1.0625rem/1.4 var(--sans); margin: 0 0 .4em; color: var(--ink); }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.125rem, 1rem + .4vw, 1.3125rem); line-height: 1.6; max-width: 38em; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(4rem, 3rem + 5vw, 7rem); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.section-head p { color: var(--muted); font-size: 1.125rem; }
.section-head--split { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; }
.section-head--split > div { max-width: 46rem; }
.white { background: var(--white); }
.band { background: var(--taupe); color: var(--taupe-ink); }
.band h1, .band h2, .band h3 { color: #fff; }
.band a:not(.btn) { color: #fff; }
.band .muted, .band .section-head p { color: var(--taupe-soft); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--wine); color: #fff; padding: .6rem 1rem; }
.skip:focus { top: .75rem; color: #fff; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Tlačítka */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 3rem; padding: .7rem 1.4rem; border: 2px solid transparent; border-radius: 4px;
  font: 500 1.0625rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.btn-primary { background: var(--wine); color: #fff; box-shadow: 0 6px 18px -8px rgba(80, 15, 15, .55); }
.btn-primary:hover { background: var(--wine-dark); color: #fff; transform: translateY(-1px); }
.btn-primary:active { transform: none; }
.btn-ghost { border-color: currentColor; color: var(--taupe-dark); background: transparent; }
.btn-ghost:hover { background: var(--taupe-dark); border-color: var(--taupe-dark); color: #fff; }
.band .btn-ghost { color: #fff; }
.band .btn-ghost:hover { background: #fff; color: var(--taupe-dark); border-color: #fff; }
.btn-lg { min-height: 3.5rem; padding: .85rem 1.75rem; font-size: 1.1875rem; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn .num { font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 500; text-decoration: none; }
.link-arrow .icon { transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* Hlavička */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header); }
.brand { font: 700 1.5rem/1 var(--serif); letter-spacing: -.01em; text-decoration: none; white-space: nowrap; margin-right: auto; }
.brand span:first-child { color: var(--wine); }
.brand span:last-child { color: var(--taupe); }
.brand:hover span:first-child { color: var(--wine-dark); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.nav a { display: block; padding: .55rem .7rem; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .9375rem; text-transform: uppercase; letter-spacing: .05em; border-radius: 3px; }
.nav a:hover { color: var(--wine); }
.nav a[aria-current='page'] { color: var(--wine); box-shadow: inset 0 -2px 0 var(--wine); border-radius: 0; }
.header-call { min-height: 2.75rem; padding: .55rem 1.1rem; font-size: 1rem; }
.menu-toggle { display: none; }
@media (max-width: 1099px) {
  .header-call .label { display: none; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .5rem .9rem;
    background: transparent; border: 1px solid var(--line); border-radius: 4px; font: 500 .9375rem/1 var(--sans); color: var(--ink); cursor: pointer;
    text-transform: uppercase; letter-spacing: .05em;
  }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -18px rgba(40, 30, 30, .35); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: .5rem var(--pad) 1.25rem; gap: 0; }
  .nav a { padding: .9rem 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1rem; }
  .nav a[aria-current='page'] { box-shadow: none; }
}
@media (max-width: 420px) { .brand { font-size: 1.25rem; } .site-header .wrap { gap: .6rem; } }

/* Úvodní obrazovka */
.hero { background: var(--taupe); color: var(--taupe-ink); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: stretch; min-height: min(calc(100svh - var(--header)), 780px); }
.hero-text { padding: clamp(3rem, 2rem + 4vw, 6rem) clamp(1.5rem, 4vw, 4.5rem) clamp(3rem, 2rem + 4vw, 5rem) 0; align-self: center; }
.hero h1 { color: #fff; margin-bottom: .45em; }
.hero .lead { color: var(--taupe-ink); margin-bottom: 2rem; }
.hero .actions { margin-bottom: 2.75rem; }
.hero-photo { position: relative; margin-right: calc(-1 * var(--pad)); min-height: 100%; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1280px) { .hero-photo { margin-right: calc((100vw - var(--wrap)) / -2); } }
.trust { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; padding-top: 1.75rem; border-top: 1px solid rgba(255, 255, 255, .18); }
.trust a { display: block; border-radius: 50%; }
.trust img { width: 84px; height: 84px; }
.trust-note { font-size: .9375rem; line-height: 1.45; color: var(--taupe-soft); max-width: 15rem; }
.trust-note strong { display: block; color: #fff; font: 700 1.125rem/1.3 var(--serif); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { padding: 2.5rem 0 2.75rem; order: 2; }
  .hero-photo { order: 1; margin-inline: calc(-1 * var(--pad)); aspect-ratio: 4 / 3.4; }
  .trust img { width: 68px; height: 68px; }
}

/* Podstránky: menší úvod */
.page-hero .hero-grid { min-height: 0; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.page-hero .hero-text { padding-block: clamp(2.75rem, 2rem + 3vw, 4.5rem); }
.page-hero .hero-photo { min-height: 380px; }
.page-hero .lead { margin-bottom: 1.75rem; }
.page-hero .actions { margin-bottom: 0; }
.crumbs { font-size: .9375rem; margin-bottom: 1rem; color: var(--taupe-soft); }
.crumbs a { color: var(--taupe-soft); }
.crumbs a:hover { color: #fff; }
@media (max-width: 860px) { .page-hero .hero-grid { grid-template-columns: 1fr; } .page-hero .hero-photo { min-height: 0; aspect-ratio: 16 / 10; } }
.page-title { padding-block: clamp(3rem, 2rem + 4vw, 5rem) clamp(2rem, 1.5rem + 2vw, 3rem); }
.page-title .lead { color: var(--muted); }

/* Tři vstupy */
.entries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
.entry { display: block; color: inherit; text-decoration: none; }
.entry-img { overflow: hidden; border-radius: 4px; background: var(--line); aspect-ratio: 4 / 5; }
.entry-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.entry:hover .entry-img img { transform: scale(1.035); }
.entry h3 { margin: 1.1rem 0 .35rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.entry h3 .icon { color: var(--wine); transition: transform .25s var(--ease); }
.entry:hover h3 { color: var(--wine); }
.entry:hover h3 .icon { transform: translateX(4px); }
.entry p { color: var(--muted); margin: 0; max-width: 30em; }
@media (max-width: 760px) {
  .entries { grid-template-columns: 1fr; gap: 2.25rem; }
  .entry-img { aspect-ratio: 16 / 11; }
}

/* Služby jako seznam */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.split-aside { position: sticky; top: calc(var(--header) + 2rem); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split-aside { position: static; } }
.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .2); }
.service-list li { border-bottom: 1px solid rgba(255, 255, 255, .2); }
.service-list a { display: grid; grid-template-columns: 1fr auto; gap: .25rem 1.5rem; padding: 1.4rem 0; text-decoration: none; color: var(--taupe-ink); }
.service-list h3 { margin: 0; font-size: 1.375rem; color: #fff; }
.service-list p { margin: 0; color: var(--taupe-soft); grid-column: 1; }
.service-list .icon { grid-row: 1 / span 2; align-self: center; width: 1.4rem; height: 1.4rem; transition: transform .25s var(--ease); }
.service-list a:hover h3 { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.service-list a:hover .icon { transform: translateX(4px); }

/* Typy kamen – srovnání */
.compare { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; background: var(--white); border-radius: 4px; overflow: hidden; box-shadow: 0 10px 30px -18px rgba(60, 40, 40, .35); }
.compare caption { text-align: left; color: var(--muted); padding-bottom: .9rem; caption-side: bottom; padding-top: .9rem; font-size: .9375rem; }
.compare th, .compare td { padding: 1.1rem 1.25rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { font: 700 1.25rem/1.25 var(--serif); color: var(--taupe-dark); background: #f1edeb; border-bottom: 2px solid var(--line); }
.compare tbody th { font-weight: 500; color: var(--muted); width: 22%; font-size: .9375rem; }
.compare td strong { display: block; font: 700 1.5rem/1.2 var(--serif); color: var(--wine); margin-bottom: .15rem; letter-spacing: -.01em; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
@media (max-width: 760px) {
  .compare, .compare tbody, .compare tr, .compare td, .compare th { display: block; width: auto; }
  .compare thead { display: none; }
  .compare tr { padding: .5rem 0; border-bottom: 2px solid var(--line); }
  .compare tbody th { padding-bottom: .25rem; border: 0; }
  .compare td { border: 0; padding-block: .5rem; }
  .compare td::before { content: attr(data-label); display: block; font: 700 1rem/1.3 var(--serif); color: var(--taupe-dark); }
}

/* Text + fotka */
.feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.feature + .feature { margin-top: clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.feature--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.feature--flip .feature-media { order: -1; }
.feature-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; box-shadow: 0 20px 40px -24px rgba(50, 30, 30, .45); }
.feature-media--wide img { aspect-ratio: 4 / 3; }
@media (max-width: 860px) {
  .feature, .feature--flip { grid-template-columns: 1fr; }
  .feature--flip .feature-media { order: 0; }
  .feature-media img { aspect-ratio: 16 / 11; }
}
.ticks { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .7rem; }
.ticks li { position: relative; padding-left: 1.75rem; max-width: 40em; }
.ticks li::before { content: ''; position: absolute; left: .15rem; top: .62em; width: .55rem; height: .55rem; background: var(--wine); border-radius: 1px; transform: rotate(45deg); }
.ticks b, .ticks strong { font-weight: 500; color: var(--taupe-dark); }
.band .ticks b { color: #fff; }

/* Typy (krby, kamna) */
.types { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.type img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; margin-bottom: 1.25rem; }
.type h3 { margin-bottom: .6rem; }
.type .fact { font: 700 1.125rem/1.3 var(--serif); color: var(--wine); margin-bottom: .75rem; }

/* Galerie */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.gallery-filter {
  min-height: 2.75rem; padding: .5rem 1.1rem; border: 1px solid #cfc6c3; border-radius: 999px; background: #fff; color: var(--ink);
  font: 500 1rem/1 var(--sans); cursor: pointer; transition: background-color .2s, border-color .2s, color .2s;
}
.gallery-filter:hover { border-color: var(--taupe); }
.gallery-filter[aria-pressed='true'] { background: var(--taupe); border-color: var(--taupe); color: #fff; }
.gallery-filter .count { color: inherit; opacity: .7; margin-left: .3em; font-variant-numeric: tabular-nums; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: clamp(.5rem, 1.2vw, 1rem); }
.gallery-item[hidden] { display: none; }
.gallery-item a { display: block; overflow: hidden; border-radius: 4px; background: var(--line); aspect-ratio: 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .3s; }
.gallery-item a:hover img { transform: scale(1.04); }
@media (max-width: 520px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gallery-more { margin-top: 2rem; }

.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(24, 19, 19, .96); color: #fff; }
.lightbox::backdrop { background: rgba(24, 19, 19, .96); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; padding: .75rem 1rem; font-variant-numeric: tabular-nums; color: var(--taupe-soft); }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 4.5rem 1.5rem; }
.lb-stage img { max-width: 100%; max-height: calc(100dvh - 5.5rem); object-fit: contain; border-radius: 2px; box-shadow: 0 30px 60px -20px #000; }
.lb-btn { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; transition: background-color .2s; }
.lb-btn:hover { background: rgba(255, 255, 255, .22); }
.lb-btn .icon { width: 1.4rem; height: 1.4rem; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 1rem; } .lb-next { right: 1rem; }
@media (max-width: 640px) { .lb-stage { padding: 0 .5rem 5rem; } .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; } .lb-prev { left: calc(50% - 3.5rem); } .lb-next { right: calc(50% - 3.5rem); } }

/* Majitel */
.owner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.owner img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.owner blockquote { margin: 0 0 1.5rem; font: 700 clamp(1.375rem, 1.1rem + 1vw, 1.875rem)/1.35 var(--serif); color: var(--taupe-dark); letter-spacing: -.01em; text-wrap: pretty; }
.owner blockquote p { margin: 0; }
.owner blockquote p::before { content: '„'; } .owner blockquote p::after { content: '“'; }
.owner .context { color: var(--muted); max-width: 36em; }
.milestones { list-style: none; padding: 0; margin: 2rem 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1.25rem 1.5rem; }
.milestones li { border-top: 2px solid var(--wine); padding-top: .75rem; font-size: .9375rem; color: var(--muted); line-height: 1.45; }
.milestones strong { display: block; font: 700 1.375rem/1.2 var(--serif); color: var(--taupe-dark); font-variant-numeric: tabular-nums; margin-bottom: .2rem; }
@media (max-width: 860px) { .owner { grid-template-columns: 1fr; } .owner img { aspect-ratio: 16 / 11; } }

/* Časová osa (O nás) */
.timeline { list-style: none; margin: 0; padding: 0; max-width: 52rem; }
.timeline li { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 2rem; padding-block: 2rem; border-top: 1px solid var(--line); }
.timeline li:first-child { border-top: 0; padding-top: 0; }
.timeline time { font: 700 1.5rem/1.2 var(--serif); color: var(--wine); font-variant-numeric: tabular-nums; }
.timeline h2 { font-size: 1.5rem; margin-bottom: .4rem; }
.timeline p { margin: 0; max-width: 40em; }
@media (max-width: 640px) { .timeline li { grid-template-columns: 1fr; gap: .4rem; } }

/* Výzva k volání */
.call-band { padding-block: clamp(3.5rem, 2.5rem + 4vw, 5.5rem); }
.call-band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem 4rem; align-items: center; }
.call-band h2 { margin-bottom: .35em; }
.call-band p { margin: 0; color: var(--taupe-soft); max-width: 34em; }
.call-band .phone { display: inline-flex; align-items: center; gap: .6rem; font: 700 clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem)/1 var(--serif); color: #fff; text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.call-band .phone:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; }
.call-band .sub { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; margin-top: 1rem; font-size: 1rem; }
@media (max-width: 860px) { .call-band .wrap { grid-template-columns: 1fr; } }

/* Kontakt + formulář */
.contact-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1.5rem 2.5rem; margin-top: 2rem; }
.contact-top dt { font-size: .9375rem; color: var(--muted); margin-bottom: .2rem; }
.contact-top dd { margin: 0; font: 700 1.375rem/1.3 var(--serif); color: var(--taupe-dark); }
.contact-top dd a { text-decoration: none; color: var(--wine); font-variant-numeric: tabular-nums; }
.contact-top dd a:hover { text-decoration: underline; }
.contact-top dd small { display: block; font: 400 1rem/1.5 var(--sans); color: var(--muted); }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 860px) { .form-grid { grid-template-columns: 1fr; } }
.form-card { background: #fff; border-radius: 6px; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); box-shadow: 0 20px 45px -28px rgba(50, 30, 30, .45); color: var(--ink); }
.form-card h2, .form-card h3 { color: var(--taupe-dark); }
.form-note { color: var(--muted); font-size: .9375rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 500; margin-bottom: .35rem; font-size: .9375rem; }
.field .req { color: var(--wine); }
.field input, .field textarea {
  width: 100%; padding: .75rem .9rem; border: 1px solid #c9c0bd; border-radius: 4px; background: #fff; color: var(--ink);
  font: 400 1.0625rem/1.4 var(--sans); caret-color: var(--wine); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: #a69b98; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 3px rgba(177, 44, 43, .2); }
.field input::placeholder, .field textarea::placeholder { color: #8a7f7c; }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--wine); }
.form-info { padding: .85rem 1rem; border-radius: 4px; margin-bottom: 1.25rem; font-weight: 500; }
.form-info.hidden, .form-info:empty { display: none; }
.alert-success { background: #e7f2e8; color: #1f5a2a; }
.alert-danger { background: #f9e5e4; color: #8a1d1c; }
.alert-warning { background: #f4efe6; color: #5c4a22; }
.map { width: 100%; height: 360px; border: 0; border-radius: 6px; display: block; background: var(--line); }
.address { font-style: normal; }

/* Patička */
.site-footer { background: var(--taupe-dark); color: var(--taupe-soft); padding-block: 3.5rem 2rem; font-size: .9375rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem 3rem; }
.site-footer .brand span { color: #fff !important; }
.site-footer h2 { font: 500 .8125rem/1.2 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer a { color: var(--taupe-ink); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* Vstup obsahu: jeden klidný moment (úvodní text) */
@media (prefers-reduced-motion: no-preference) {
  .hero-text > * { animation: rise .9s var(--ease) both; }
  .hero-text > *:nth-child(2) { animation-delay: .06s; }
  .hero-text > *:nth-child(3) { animation-delay: .12s; }
  .hero-text > *:nth-child(4) { animation-delay: .18s; }
  .hero-text > *:nth-child(5) { animation-delay: .24s; }
  @keyframes rise { from { opacity: .001; transform: translateY(14px); } }
}
.footer-about { margin-top: 1rem; max-width: 24rem; }
.form-card h2 { font-size: 1.75rem; }
.form-foot { margin: 1rem 0 0; }
.gallery { list-style: none; margin: 0; padding: 0; }
.owner .sign { display: block; margin-top: .75rem; font-weight: 500; color: var(--taupe-dark); }
.section-tight { padding-bottom: clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.type-fact { font: 700 1.125rem/1.35 var(--serif); color: var(--wine); margin-bottom: .9rem; }
.feature h3 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
.contact-actions { margin-top: 2rem; }
@media (min-width: 861px) { .contact-actions { display: none; } }
.hero .btn-ghost { color: #fff; }
.hero .btn-ghost:hover { background: #fff; color: var(--taupe-dark); border-color: #fff; }
.service-list h3 { grid-column: 1; grid-row: 1; }
.service-list p { grid-row: 2; }
.service-list .icon { grid-column: 2; }
@media (min-width: 900px) { .gallery--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 440px) {
  .menu-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .menu-toggle, .header-call { padding-inline: .8rem; }
}
@media (max-width: 760px) { .compare tbody th { width: auto; padding-top: 1rem; text-transform: uppercase; letter-spacing: .06em; font-size: .8125rem; } }

/* Čtyři vstupy na úvodu */
@media (min-width: 761px) and (max-width: 1099px) { .entries { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .entries:has(> :nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.entries:has(> :nth-child(4)) h3 { font-size: clamp(1.25rem, 1.1rem + .4vw, 1.375rem); }

/* Hodinové označení typů */
.compare thead th small, .type-alt { display: block; font: 400 .9375rem/1.4 var(--sans); color: var(--muted); letter-spacing: 0; margin-top: .2rem; }

/* Jak to probíhá */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2rem clamp(1rem, 2.2vw, 2rem); counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--wine); padding-top: 1.1rem; }
.steps li::before { content: counter(step); display: block; font: 700 2rem/1 var(--serif); color: var(--wine); font-variant-numeric: tabular-nums; margin-bottom: .8rem; }
.steps h3 { font-size: 1.25rem; margin-bottom: .45rem; }
.steps p { margin: 0; color: var(--muted); font-size: 1rem; }
@media (max-width: 1099px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); column-gap: .75rem; border-top: 1px solid var(--line); padding-block: 1.25rem; }
  .steps li::before { grid-row: 1 / span 2; font-size: 1.625rem; margin: 0; }
}

/* Co ovlivňuje cenu */
.price-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.price-list li { padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
.price-list h3 { font-size: 1.375rem; margin-bottom: .3rem; }
.price-list p { margin: 0; color: var(--muted); max-width: 40em; }
.split-aside .actions { margin-top: 1.5rem; }

/* Časté otázky */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.faq-aside { position: sticky; top: calc(var(--header) + 2rem); }
.faq-photo { margin: 1.75rem 0 1.5rem; }
.faq-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; box-shadow: 0 20px 40px -24px rgba(50, 30, 30, .45); }
.faq-ask { margin: 0; font: 700 1.25rem/1.3 var(--serif); color: var(--taupe-dark); }
.faq-ask a { display: flex; align-items: center; gap: .5rem; margin-top: .4rem; font: 500 1.0625rem/1.3 var(--sans); text-decoration: none; }
.faq-ask a:hover span { text-decoration: underline; }
@media (max-width: 860px) {
  .faq { grid-template-columns: 1fr; }
  .faq-aside { position: static; }
  .faq-photo, .faq-ask { display: none; }
}
.faq-list { display: grid; gap: .75rem; }
.faq-list details { border-radius: 6px; background: var(--paper); transition: background-color .3s, box-shadow .3s; }
.faq-list details[open] { background: #fff; box-shadow: 0 18px 40px -26px rgba(50, 30, 30, .5), 0 0 0 1px var(--line); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.25rem 1.25rem 1.25rem 1.5rem; cursor: pointer; list-style: none;
  font: 700 clamp(1.125rem, 1.05rem + .3vw, 1.3125rem)/1.35 var(--serif); color: var(--taupe-dark); border-radius: 6px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--wine); }
.faq-list summary:focus-visible { outline-offset: -3px; }
.faq-icon { position: relative; flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid #cfc6c3; background: #fff; transition: background-color .25s, border-color .25s, transform .35s var(--ease); }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: .9rem; height: 2px; margin: -1px 0 0 -.45rem; background: var(--wine); border-radius: 1px; transition: background-color .25s; }
.faq-icon::after { transform: rotate(90deg); }
.faq-list summary:hover .faq-icon { border-color: var(--wine); }
.faq-list details[open] .faq-icon { background: var(--wine); border-color: var(--wine); transform: rotate(45deg); }
.faq-list details[open] .faq-icon::before, .faq-list details[open] .faq-icon::after { background: #fff; }
.faq-answer { padding: 0 4.5rem 1.5rem 1.5rem; }
.faq-answer p { margin: 0; color: var(--muted); max-width: 42em; }
@media (max-width: 520px) { .faq-answer { padding-right: 1.25rem; } .faq-list summary { padding-left: 1.25rem; } .faq-answer { padding-left: 1.25rem; } }
@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
    .faq-list { interpolate-size: allow-keywords; }
    .faq-list details::details-content { block-size: 0; overflow: clip; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
    .faq-list details[open]::details-content { block-size: auto; }
  }
}

/* Formulář: téma, dvojice polí */
.chips { border: 0; padding: 0; margin: 0 0 1.25rem; min-width: 0; }
.chips legend { font-weight: 500; font-size: .9375rem; margin-bottom: .5rem; padding: 0; }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: .5rem 1rem; border: 1px solid #c9c0bd; border-radius: 999px;
  font: 500 .9375rem/1.2 var(--sans); color: var(--ink); background: #fff; transition: background-color .2s, border-color .2s, color .2s;
}
.chip:hover span { border-color: var(--taupe); }
.chip input:checked + span { background: var(--taupe); border-color: var(--taupe); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--wine); outline-offset: 2px; }
.field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.field-pair .field { margin-bottom: .35rem; }
@media (max-width: 520px) { .field-pair { grid-template-columns: 1fr; } .field-pair .field { margin-bottom: 1.1rem; } }
.field-hint { margin: 0 0 1.1rem; font-size: .875rem; }

/* O mně */
.timeline h3 { font-size: 1.5rem; margin-bottom: .4rem; }
.badges { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.75rem; }
.badges a { display: block; border-radius: 50%; }
.badges img { width: 84px; height: 84px; }
.quote-band { padding-block: clamp(4rem, 3rem + 5vw, 7rem); }
.quote-band blockquote { margin: 0 0 1.5rem; max-width: 20em; font: 700 clamp(1.875rem, 1.2rem + 2.8vw, 3.25rem)/1.2 var(--serif); color: #fff; letter-spacing: -.02em; text-wrap: balance; }
.quote-band blockquote p { margin: 0; }
.quote-band blockquote p::before { content: '„'; } .quote-band blockquote p::after { content: '“'; }
.quote-source { margin: 0; max-width: 38em; color: var(--taupe-soft); }

/* Co sporák umí, rozcestník krbů */
.options { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.25rem clamp(1.25rem, 3vw, 2.75rem); }
.options li { border-top: 2px solid var(--line); padding-top: 1.1rem; }
.options h3 { font-size: 1.3125rem; margin-bottom: .4rem; }
.options p { margin: 0; color: var(--muted); max-width: 30em; }
.options--links { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.options--links li { border-top-color: var(--wine); }
.options--links a { display: block; color: inherit; text-decoration: none; }
.options--links h3 { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; }
.options--links h3 .icon { flex: none; color: var(--wine); transform: rotate(90deg); transition: transform .25s var(--ease); }
.options--links a:hover h3 { color: var(--wine); }
.options--links a:hover h3 .icon { transform: rotate(90deg) translateX(3px); }
@media (max-width: 1099px) { .options, .options--links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .options, .options--links { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Popisky realizací */
.gallery--captions { row-gap: 1.75rem; }
.gallery-caption { margin: .7rem 0 0; font-size: .9375rem; line-height: 1.5; color: var(--muted); }
.lb-bar { gap: 1rem; }
.lb-caption { flex: 1; text-align: center; color: #fff; font-size: .9375rem; }
