:root {
  color-scheme: light;
  --ink: #252720;
  --muted: #4d5047;
  --paper: #fff;
  --warm: #f8f6f1;
  --line: #dedbd3;
  --accent: #9a3f18;
  --dark: #292d26;
  font-family: Montserrat, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body, figure { margin: 0; }
body { font-size: .875rem; }
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1rem; line-height: 1.7; }
h1, h2 { margin: 0 0 1.25rem; font-weight: 400; line-height: 1.12; letter-spacing: -.03em; }
h1, h2 { font-size: clamp(1.4rem, 2.05vw, 2.05rem); }
h3 { margin: 0 0 .45rem; font-size: inherit; line-height: 1.35; }
:focus-visible { outline: 3px solid #4d6053; outline-offset: 5px; }
.wrap { width: min(94%, 1290px); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 7vw, 7rem); }
.skip { position: absolute; z-index: 2; transform: translateY(-150%); padding: .75rem; background: white; }
.skip:focus { transform: none; }
.header, .footer { background: white; }
.header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; font-weight: 700; line-height: 1.22; }
.brand img { border-radius: 4px; }
.brand small { display: block; margin-top: .25rem; color: var(--muted); font-weight: 400; }
nav { display: flex; flex-wrap: wrap; gap: .3rem clamp(.8rem, 2vw, 2.1rem); }
nav a { padding-block: .5rem; text-decoration: none; }
nav a:hover { text-decoration: underline; text-underline-offset: .25em; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: .85rem 1.25rem; min-height: 46px; background: var(--dark); color: white; text-decoration: none; text-align: center; font-weight: 650; border: 1px solid transparent; }
.button:hover { background: var(--accent); }
.header-cta { background: white; color: var(--ink); border-color: var(--line); }

.text-link { font-weight: 650; text-underline-offset: .27em; text-decoration-thickness: 1px; }
.text-link:hover { color: var(--accent); }
.hero { background: var(--warm); border-bottom: 1px solid #8da38e; }
.hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(1.5rem, 4vw, 4rem); padding-block: clamp(1.8rem, 4vw, 3.8rem); }
.hero-copy { padding-block: 1rem; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; line-height: 1.4; margin-bottom: 1.1rem; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 35ch; color: var(--muted); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.3rem; margin-top: 1.75rem; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 1.2; object-fit: cover; }
figcaption { padding-top: .5rem; font-size: .875rem; color: var(--muted); }
.hero-photo figcaption { text-align: right; }
.intro, .feature-grid, .review-grid, .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 7vw, 7rem); }
.intro { align-items: center; }
#o-firmie .eyebrow { color: #000; }
.intro-text { max-width: 60ch; text-align: start; }
.intro-text p { line-height: 1.8; text-wrap: pretty; }
.intro-text p:last-child { margin-bottom: 0; }
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin-top: 2rem; }
.services article { border: 1px solid var(--line); padding: clamp(1rem, 2vw, 1.65rem); }
.services p, .reviews p { color: var(--muted); margin-bottom: 0; }
.gallery-band, .contact { background: var(--warm); }
.section-note { color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.75rem; }
.gallery a { display: block; cursor: zoom-in; overflow: hidden; }
.gallery img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; background: white; transition: transform .25s ease; }
.gallery a:hover img { transform: scale(1.035); }
.score { font-size: 1.25rem; font-weight: 400; line-height: 1.35; margin-bottom: .5rem; color: inherit; }
.reviews article { padding: 1rem 0; border-top: 1px solid var(--line); }
.reviews .source { margin-top: .6rem; font-size: .875rem; }
.contact-grid { align-items: start; }
#kontakt .eyebrow { color: #000; }
#kontakt h2 { font-size: clamp(1.1rem, 1.75vw, 1.9rem); }
.contact-details { margin: 0; padding: 1rem 1.5rem; background: white; border: 1px solid var(--line); }
.contact-details dt { margin-top: .55rem; font-weight: 700; }
.contact-details dd { margin: .2rem 0 .7rem; overflow-wrap: anywhere; }
.footer-inner { padding-block: 1.5rem; }
dialog { width: max-content; max-width: min(92vw, 1050px); max-height: 94vh; border: 0; padding: 1rem; color: var(--ink); }
dialog::backdrop { background: #171914e8; }
dialog img { width: auto; max-height: 70vh; object-fit: contain; }
dialog form { display: flex; justify-content: flex-end; margin-bottom: .65rem; }
dialog button { min-height: 44px; padding: .55rem .85rem; border: 1px solid var(--line); background: white; color: var(--ink); font: inherit; cursor: pointer; }
@media (max-width: 960px) {
  .header-inner { flex-wrap: wrap; gap: .8rem; }
  nav { order: 1; width: 100%; }
}
@media (max-width: 760px) {
  .hero-grid, .intro, .feature-grid, .review-grid, .contact-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .intro h2 { margin-bottom: 0; }
  .feature-photo { grid-area: auto; }
  .hero-photo img { aspect-ratio: 4 / 3; }
  .services, .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 430px) {
  .wrap { width: 92%; }
  .brand img { width: 42px; height: 42px; }
  .brand { gap: .45rem; font-size: .9rem; }
  .header-cta { padding-inline: .6rem; }
  .services, .gallery { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery img { transition: none; }
}

@font-face {
  font-family: Montserrat;
  src: url("assets/montserrat.woff") format("woff");
  font-weight: 100 900;
  font-display: swap;
}

.hero-photo img { aspect-ratio: auto; object-fit: contain; }

.header-lion {
  width: clamp(68px, 8vw, 96px);
  height: auto;
  margin: 0 auto;
}
.header { padding-top: 1rem; }
.hero-plan {
  position: relative;
  display: block;
  width: 58px;
  height: 42px;
  margin-bottom: 1.25rem;
  border: 1.5px solid #52685d;
  background: repeating-linear-gradient(90deg, transparent 0 6px, #52685d14 6px 7px);
}
.hero-plan::before {
  position: absolute;
  inset: 0 0 45% 58%;
  border-left: 1.5px solid #52685d;
  border-bottom: 1.5px solid #52685d;
  content: "";
}
.hero-plan::after {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 38%;
  height: 42%;
  border-top: 1.5px solid #52685d;
  border-right: 1.5px solid #52685d;
  border-top-right-radius: 100%;
  content: "";
}

.hero-contact { background-color: #000; }
.header-cta:is(:hover, :focus-visible, :active),
.hero-contact:is(:hover, :focus-visible, :active) {
  background-color: #000;
  border-color: #000;
  color: white;
}

.feature { background: #000; color: #fff; }
.feature .eyebrow { color: inherit; }
.feature-grid {
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4.5rem);
  padding-block: clamp(1.25rem, 4vw, 3.5rem);
}
.feature-copy > p:not(.eyebrow) { max-width: 48ch; color: inherit; }
.feature-photo { grid-column: 1; grid-row: 1; }
.feature-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 57%;
}
.feature-photo figcaption { color: inherit; text-align: left; }
.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem 1.5rem;
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}
.steps li { border-top: 1px solid #fff; padding: .7rem 0 .3rem .15rem; }
.steps li::marker { color: inherit; font-weight: 600; }
.steps p { margin: 0; color: inherit; }
.feature .button { background: #000; color: #fff; border-color: #fff; }
.feature .button:hover, .feature .button:focus-visible { background: #252525; }
.feature .button:focus-visible { outline-color: #fff; }
@media (max-width: 760px) {
  .feature-photo img { aspect-ratio: 4 / 5; }
}
@media (max-width: 420px) {
  .steps { grid-template-columns: 1fr; }
}

.blog-entry { min-width: 0; }

.blog-article { margin-top: 2.5rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.blog-article h3 { font-size: clamp(1.15rem, 1.75vw, 1.5rem); font-weight: 500; }
.blog-article p { max-width: 75ch; text-wrap: pretty; }
.blog-article summary { width: fit-content; cursor: pointer; font-weight: 650; }
.blog-article details[open] > summary { margin-bottom: 1rem; }

.blog-cover { max-width: min(100%, 19rem); margin: 1rem 0 1.25rem; }
.blog-cover img { width: 100%; height: auto; }
