:root {
  --paper: #f4f1e9;
  --ink: #243d35;
  --muted: #5e675e;
  --line: #d6d9cc;
  --accent: #a45131;
  --white: #fffdf8;
  --display: Georgia, 'Times New Roman', serif;
  --body: Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.65; }
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.wrap { width: min(1180px, calc(100% - 3rem)); margin-inline: auto; }
.skip { position: absolute; top: -100px; left: 1rem; background: var(--white); padding: 1rem; z-index: 5; }
.skip:focus { top: 1rem; }
.preview { padding: .4rem 1rem; color: var(--muted); text-align: center; font-size: .875rem; border-bottom: 1px solid var(--line); }
.header { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 142px; border-bottom: 1px solid var(--line); }
.brand { font-family: var(--display); font-size: clamp(2.2rem, 3.5vw, 3rem); font-weight: 400; letter-spacing: -.045em; line-height: 1.1; text-decoration: none; }
.brand span { display: block; margin-top: .7rem; font-family: var(--body); font-size: .9375rem; font-weight: 400; letter-spacing: 0; line-height: 1.5; }
nav { display: flex; gap: 1.4rem; align-items: center; }
nav a { font-size: 1rem; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.phone, .button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; border: 0; border-radius: 2px; background: var(--ink); color: var(--white); padding: .85rem 1.2rem; font: 600 1rem/1.4 var(--body); text-decoration: none; }
.phone:hover, .button:hover { background: #355a4c; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -.035em; text-wrap: pretty; }
h1 { font-size: clamp(3rem, 6vw, 5.5rem); line-height: 1.08; letter-spacing: -.045em; margin-bottom: 1.5rem; }
h1 em { color: var(--accent); font-weight: 400; }
h2 { font-size: clamp(2.4rem, 4vw, 3.5rem); line-height: 1.15; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; line-height: 1.3; letter-spacing: -.02em; margin-bottom: .65rem; }
p { margin-bottom: 1.25rem; }
.eyebrow { display: flex; align-items: center; gap: .8rem; font-size: .9375rem; font-weight: 400; letter-spacing: 0; color: var(--accent); line-height: 1.5; margin-bottom: 1.25rem; }
.eyebrow:before { content: ''; width: 24px; height: 1px; flex-shrink: 0; background: currentColor; }
.hero { padding: 4rem 0 4.5rem; display: grid; grid-template-columns: 1.2fr .9fr; gap: 3.5rem; align-items: center; }
.intro { font-size: 1.125rem; color: var(--muted); max-width: 36rem; margin-bottom: 2rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.text-link { display: inline-block; padding: .8rem .3rem; font-size: 1rem; }
.hero-note { margin: 1.3rem 0 0; color: var(--muted); font-size: 1rem; }
.hero-photo { margin: 0; position: relative; align-self: stretch; }
.hero-photo img { display: block; width: 100%; height: 100%; max-height: 640px; object-fit: cover; border-radius: 2px; }
.hero-photo figcaption { position: absolute; inset: auto 0 0; padding: 2.5rem 1.25rem 1rem; color: white; background: linear-gradient(transparent, rgba(20,30,25,.8)); font-size: 1rem; line-height: 1.5; }
.hero-photo figcaption span { display: block; font-family: var(--display); font-size: 1.4rem; }
.area-strip { display: flex; flex-wrap: wrap; gap: 1rem 2rem; padding: 1.3rem 0; border-block: 1px solid var(--line); font-size: 1rem; }
.area-strip strong { font-weight: 400; color: var(--accent); }
section { padding: 5rem 0; }
.section-top { display: grid; grid-template-columns: 1.25fr 1fr; gap: 4rem; align-items: end; margin-bottom: 2.5rem; }
.section-top h2 { max-width: 38rem; margin: 0; }
.section-top p { color: var(--muted); margin: 0; max-width: 27rem; }
.bath-gallery, .detail-gallery, .process-gallery, .repair-gallery { display: grid; gap: 3rem 2rem; align-items: start; }
.bath-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bath-gallery > figure:last-child { grid-column: 1 / -1; }
.portfolio-photo { margin: 0; min-width: 0; }
.portfolio-photo a { display: block; background: transparent; }
.portfolio-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3/4; object-fit: contain; }
.bath-gallery > figure:last-child img { aspect-ratio: 4/3; }
.portfolio-photo figcaption { padding-top: 1.2rem; }
.portfolio-photo h3 { margin: 0 0 .55rem; }
.portfolio-photo p { font-size: 1rem; line-height: 1.6; color: var(--muted); margin: 0; }
.reconstruction, .about { background: var(--paper); border-block: 1px solid var(--line); }
.process-gallery, .repair-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.detail-heading { margin: 4rem 0 2rem; }
.detail-heading h3 { font-size: 2rem; margin-bottom: .6rem; }
.detail-heading p { color: var(--muted); margin: 0; }
.detail-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.detail-gallery .portfolio-photo img { aspect-ratio: 4/3; }
.repair-labels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; color: var(--accent); font-size: 1rem; margin-bottom: 1rem; }
.fault-example { display: grid; grid-template-columns: .8fr 1fr; gap: 3rem; align-items: center; margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.fault-example img { display: block; width: 100%; height: auto; }
.fault-example h3 { font-size: 2rem; line-height: 1.3; }
.fault-example p { color: var(--muted); }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 3rem; }
.service { padding: 1.5rem 0 0; border-top: 1px solid var(--line); }
.number { font-size: .9375rem; color: var(--accent); }
.service h3 { margin-top: .9rem; }
.service p { color: var(--muted); max-width: 30rem; }
.tags { font-size: 1rem; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; }
.about p { color: var(--muted); }
.signature { font-family: var(--display); font-size: 2rem; line-height: 1.3; margin-top: 2rem; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: steps; }
.steps li { position: relative; counter-increment: steps; padding: 0 0 1.5rem 3rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.steps li:last-child { border: 0; margin-bottom: 0; padding-bottom: 0; }
.steps li:before { content: '0' counter(steps); position: absolute; left: 0; color: var(--accent); font-size: 1rem; }
.steps p { font-size: 1rem; margin: 0; }
.faq { max-width: 850px; }
details { border-top: 1px solid var(--line); padding: 1.3rem 0; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { font-family: var(--display); font-size: 1.5rem; line-height: 1.35; font-weight: 400; cursor: pointer; padding-right: 1rem; }
details p { color: var(--muted); margin: 1rem 0 0; }
.contact { background: var(--ink); color: var(--paper); }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
.contact p { color: #d6ddcf; max-width: 32rem; }
.contact .eyebrow { color: #d4ac8e; }
.big-phone { display: block; font-family: var(--display); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.3; letter-spacing: -.035em; margin: 1rem 0; text-decoration: none; }
.big-phone:hover { text-decoration: underline; }
.contact-email { display: inline-block; margin-bottom: 1.5rem; font-size: 1.125rem; overflow-wrap: anywhere; }
.contact-details { border-top: 1px solid #56685b; padding-top: 1rem; font-size: 1rem; }
.contact-details span { display: block; }
footer { padding: 1.5rem 0; font-size: .9375rem; color: var(--muted); }
.footer-row { display: flex; justify-content: space-between; gap: 1rem; }
@media(max-width: 1000px) {
  .header { gap: 1.5rem; }
  nav { gap: 1rem; }
  nav .nav-about, nav .nav-contact { display: none; }
  .hero { gap: 2rem; }
  .section-top { gap: 2.5rem; }
  .detail-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-gallery, .repair-gallery { gap: 2.5rem 1.2rem; }
  .about-grid { gap: 3rem; }
}
@media(max-width: 650px) {
  .wrap { width: calc(100% - 2rem); }
  .header { flex-wrap: wrap; padding: 1.5rem 0; min-height: 0; gap: 1.2rem; }
  .brand { font-size: 2.4rem; }
  .brand span { font-size: .875rem; }
  nav { width: 100%; justify-content: space-between; gap: .8rem; }
  nav a { font-size: .9375rem; }
  .phone { padding: .75rem .9rem; }
  .hero { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 0; }
  h1 { font-size: 3.3rem; }
  h2 { font-size: 2.5rem; }
  h3, summary { font-size: 1.4rem; }
  .detail-heading h3, .fault-example h3 { font-size: 1.75rem; line-height: 1.3; }
  .hero-photo img { max-height: 560px; aspect-ratio: 3/4; }
  .area-strip { gap: .6rem 1rem; }
  section { padding: 3.5rem 0; }
  .section-top { grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 2rem; }
  .bath-gallery, .process-gallery, .repair-gallery { grid-template-columns: 1fr; gap: 2.5rem; }
  .bath-gallery > figure:last-child { grid-column: auto; }
  .portfolio-photo figcaption { padding-top: 1rem; }
  .detail-gallery { grid-template-columns: 1fr; gap: 2.5rem; }
  .detail-gallery .portfolio-photo img { max-height: 400px; }
  .detail-heading { margin-top: 3rem; }
  .repair-labels { display: none; }
  .repair-gallery figure:before { display: block; font-size: 1rem; color: var(--accent); margin-bottom: 1rem; }
  .repair-gallery figure:nth-child(1):before { content: '01 · Původní stav'; }
  .repair-gallery figure:nth-child(2):before { content: '02 · Oprava'; }
  .repair-gallery figure:nth-child(3):before { content: '03 · Výsledek'; }
  .fault-example, .service-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .fault-example { margin-top: 3rem; padding-top: 2rem; }
  .steps { margin-top: 1rem; }
  .footer-row { flex-direction: column; }
}
@media(prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
