:root {
  --ink: #142b40;
  --muted: #162532;
  --paper: #f8f6f1;
  --plaster-image: url("assets/sterka-beton-relief.webp");
  --plaster-tone: linear-gradient(#2b262138, #2b262138);
  --plaster-light-tone: linear-gradient(#f5ebdd70, #f5ebdd70);
  --plaster-dark-tone: linear-gradient(#22232bce, #22232bce);
  --plaster-base: #c3baaa;
  --brand-height: clamp(88px, 7.7vw, 112px);
  --header-height: calc(var(--brand-height) + 12px);
  --white: #fff;
  --line: #dbd9d4;
  --accent: #3a1a0d;
  --accent-light: #f3b399;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 12px); }
body { margin: 0; background: var(--plaster-base); color: var(--ink); font: 1rem/1.65 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .23em; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.container { width: min(1170px, 100% - 104px); margin-inline: auto; }
.section { padding-block: clamp(64px, 8vw, 112px); }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.08; }
h2 { font-size: clamp(2.45rem, 5vw, 4.45rem); letter-spacing: -.05em; }
h3 { font-size: 1.62rem; }
em { color: var(--accent); }
.section-label { display: block; margin: 0 0 20px; color: var(--accent); font-size: .875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.skip-link { position: fixed; z-index: 20; top: 12px; left: 12px; padding: 12px; background: var(--white); opacity: 0; pointer-events: none; }
.skip-link:focus { opacity: 1; pointer-events: auto; }
.site-header {
  --active-brand-height: var(--brand-height);
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  background:
    var(--plaster-tone),
    var(--plaster-base) var(--plaster-image) center 42% / cover no-repeat;
  border-bottom: 1px solid #a2998c;
}
.header-inner { width: min(1290px, 100% - 104px); min-height: calc(var(--active-brand-height) + 12px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: var(--active-brand-height);
  transition: height .3s ease;
}
.brand img {
  width: auto;
  height: 100%;
  transform-origin: left center;
  transition: transform .25s ease, filter .25s ease;
}
.brand:focus-visible img {
  transform: translateY(-2px) scale(1.035);
  filter: drop-shadow(0 3px 7px #63301d55);
}
@media (hover: hover) {
  .brand:hover img {
    transform: translateY(-2px) scale(1.035);
    filter: drop-shadow(0 3px 7px #63301d55);
  }
}
.site-header.is-compact { --active-brand-height: clamp(43px, 4.2vw, 57px); }
.header-inner { transition: min-height .3s ease; }
.calculator-page { padding-top: calc(var(--header-height) + 1px); }
.main-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 42px); }
.main-nav a { font-size: .925rem; font-weight: 650; text-decoration: none; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--accent); text-decoration: underline; }
.main-nav .nav-cta { border: 1px solid var(--ink); padding: 9px 18px; }
.menu-toggle { display: none; }

.home-page {
  --home-content-width: min(1600px, 100% - clamp(56px, 8vw, 150px));
}
.home-page .site-header {
  pointer-events: none;
  background: transparent;
  border: 0;
}
.home-page .header-inner > * { pointer-events: auto; }
.home-page .site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -30px;
  z-index: -1;
  background:
    var(--plaster-tone),
    var(--plaster-base) var(--plaster-image) center 42% / cover no-repeat;
  mask-image: linear-gradient(#000 0 calc(100% - 38px), transparent);
  opacity: 0;
  transition: opacity .2s ease;
}
.home-page .site-header.is-past-hero::before { opacity: 1; }
.home-page .header-inner {
  width: var(--home-content-width);
}
.home-page .site-header:not(.is-compact) {
  --active-brand-height: calc(var(--brand-height) + clamp(5px, .52vw, 10px));
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    var(--plaster-tone),
    var(--plaster-base) var(--plaster-image) left center / cover no-repeat;
}
.hero-photo {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  mask-image: linear-gradient(90deg, transparent 20%, #0002 34%, #000a 49%, #000 62%);
}
.hero-inner {
  display: grid;
  align-items: center;
  min-height: clamp(540px, 49vw, 715px);
  padding-block: 48px;
}
.home-page .hero-inner {
  width: var(--home-content-width);
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(48px + var(--header-height));
}
.hero-copy {
  max-width: min(55%, 610px);
  margin-block-start: clamp(0px, calc(30svh - 186px), 112px);
}
.hero-copy > :is(.section-label, h1, .hero-lead) {
  position: relative;
  inset-block-start: clamp(-12px, calc(34px - 5svh), 0px);
}
.hero h1 { font-size: clamp(3rem, 5.1vw, 5.3rem); line-height: .99; letter-spacing: -.06em; }
.hero h1 em { color: #572a16; display: inline-block; }
.hero-lead { max-width: 410px; margin: 25px 0 clamp(42px, 3.1vw, 56px); color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.14rem); }
@media (min-width: 721px) and (min-height: 650px) {
  .home-page .hero {
    /* Anchor the vertical crop at the top edge of the monitor in the photo. */
    --monitor-position: .375;
  }
  .home-page .hero-photo { object-position: 62% calc(100% * var(--monitor-position)); }
  .home-page .hero-inner {
    --hero-title-size: clamp(3rem, min(5.1vw, calc(17svh - 3.4rem)), 5.3rem);
    --hero-monitor-top: calc(100svh * var(--monitor-position));
    align-content: start;
    padding-top: max(
      calc(var(--header-height) + 18px),
      calc(var(--hero-monitor-top) - 3.6rem - .9 * var(--hero-title-size))
    );
  }
  .home-page .hero-copy { margin-block-start: 0; }
  .home-page .hero-copy > :is(.section-label, h1, .hero-lead) { inset-block-start: 0; }
  .home-page .hero h1 { font-size: var(--hero-title-size); }
  .home-page .hero-actions { padding-block-start: min(100px, calc(15svh - 40px), calc((100vw - 720px) / 3)); }
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero .button-outline { background: #ded6c9df; }
.hero .button-outline:hover { background: #e9e0d2; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 10px 18px; border: 1px solid transparent; border-radius: 4px; font-size: .925rem; line-height: 1.35; font-weight: 700; text-decoration: none; }
.button-primary { background: var(--ink); color: var(--white); }
.button-primary:hover { background: #26465e; }
.button-outline { border-color: var(--ink); color: var(--ink); }
.button-outline:hover { background: #ffffff75; }
.text-link { display: inline-block; padding: 0; border: 0; background: none; color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: .25em; }

.plaster-section {
  background:
    var(--plaster-tone),
    var(--plaster-base) var(--plaster-image) center / cover no-repeat;
}
.plaster-section--light { --plaster-tone: var(--plaster-light-tone); }
.about {
  width: min(1160px, var(--home-content-width));
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(30px, 5vw, 80px);
}
.portrait { margin: 0; }
.portrait img {
  width: 100%;
  height: auto;
  mask-image: linear-gradient(to bottom, #000 86%, transparent 100%);
}
.about-copy p:not(.section-label), .contact-copy > p:not(.section-label) { max-width: 52ch; color: var(--muted); }
.about-copy a { margin-top: 12px; }
.services {
  background:
    var(--plaster-tone),
    var(--plaster-base) var(--plaster-image) center 58% / cover no-repeat;
}
.services-inner { width: min(1160px, var(--home-content-width)); }
.services .section-label { font-family: var(--sans); }
.service-feature {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 5vw, 80px);
}
.service-feature h3 { font-size: clamp(2.5rem, 5.5vw, 4.95rem); letter-spacing: -.055em; line-height: 1.02; }
.service-feature h3 em { display: block; color: #572a16; }
.service-feature-copy { max-width: 46ch; }
.service-feature-copy p { margin: 0 0 20px; color: var(--muted); font-size: clamp(1rem, 1.35vw, 1.14rem); }
.service-feature-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}
.service-feature-link { padding-block: 5px; }
.service-feature-link span { display: inline-block; margin-inline-start: .45em; }
.service-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 5vw, 72px);
  margin-top: clamp(32px, 5vw, 64px);
  border-top: 1px solid #6a5949a6;
  padding-top: clamp(24px, 3vw, 36px);
}
.service-list article { display: flex; flex-direction: column; align-items: flex-start; }
.service-list h3 { font-size: clamp(1.5rem, 2.35vw, 2.05rem); letter-spacing: -.025em; }
.service-list p { margin: 9px 0 12px; color: var(--muted); }
.service-list a { margin-top: auto; font-size: .925rem; }
.services .text-link:hover { color: var(--ink); }

.tools {
  background:
    var(--plaster-light-tone),
    var(--plaster-base) var(--plaster-image) center / cover no-repeat;
}
.tools-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr); align-items: start; gap: clamp(26px, 6vw, 85px); }
.tools-inner p:not(.section-label) { color: var(--muted); max-width: 41ch; }
.tool-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tool-links a { display: flex; align-items: center; min-height: 64px; padding: 12px 16px; border: 1px solid #66594c; border-radius: 4px; background: #f4ebdc55; text-decoration: none; font-weight: 650; }
.tool-links a:hover { background: #f4ebdcbd; border-color: var(--accent); }

.contact {
  width: min(1160px, var(--home-content-width));
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1fr);
  grid-template-areas: "intro form" "photo form";
  grid-template-rows: auto 1fr;
  column-gap: clamp(30px, 5vw, 80px);
  row-gap: clamp(18px, 3vw, 35px);
  align-items: start;
}
.contact-copy { grid-area: intro; }
.contact address {
  display: grid;
  gap: 2px;
  margin-block: 23px 15px;
  font-style: normal;
  overflow-wrap: anywhere;
}
.contact address strong { font-weight: 750; }
.contact address span { color: var(--muted); }
.contact address a { width: fit-content; }
.contact-direct { display: flex; flex-wrap: wrap; gap: 6px 20px; font-weight: 700; overflow-wrap: anywhere; }
.contact :is(.contact-direct, address) a:hover { color: var(--accent); }
.contact-photo {
  grid-area: photo;
  margin: 0;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 16% 91%, transparent),
              linear-gradient(to bottom, transparent, #000 20% 78%, transparent);
  mask-composite: intersect;
}
.office-photo {
  width: 100%;
  aspect-ratio: 1.65;
  object-fit: cover;
  object-position: center 59%;
  filter: brightness(.88) saturate(.86);
  transform: scale(1.24);
  transform-origin: 58% 56%;
}
.contact-journey {
  grid-area: form;
  min-width: 0;
  border-top: 1px solid #6a594999;
  padding-top: clamp(22px, 3vw, 34px);
}
.contact-journey h3 { font-size: clamp(1.65rem, 2.6vw, 2.25rem); letter-spacing: -.035em; }
.future-picker { margin-top: 18px; border-top: 1px solid #6a594980; }
.future-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 10px 9px 10px 2px;
  border: 0;
  border-bottom: 1px solid #6a594980;
  background: transparent;
  color: var(--ink);
  font-weight: 750;
  text-align: left;
}
.future-option span { color: var(--accent); }
.future-option:hover, .future-option.is-selected { background: #f4ebdc48; color: var(--accent); }
.contact-form-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.contact-form-head p { margin: 6px 0 0; color: var(--accent); font-weight: 650; }
.contact-form-head button { flex-shrink: 0; font-size: .875rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.contact-form label { display: grid; gap: 5px; margin-bottom: 13px; font-weight: 650; font-size: .875rem; }
.contact-optional { color: var(--muted); font-weight: 400; }
.contact-form input:not([type="checkbox"]), .contact-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 9px;
  background: #f5eddfbd;
  color: var(--ink);
  border: 1px solid #746451;
  border-radius: 3px;
  font-size: 1rem;
}
.contact-form textarea { resize: vertical; }
.contact-form .consent { grid-template-columns: auto 1fr; align-items: start; gap: 9px; font-weight: 400; }
.consent input { width: 17px; height: 17px; accent-color: var(--ink); }
.contact-form .button { gap: 12px; }
.contact-note, .form-status { font-size: .875rem; color: var(--muted); overflow-wrap: anywhere; }
.contact-note { margin: 9px 0 0; }
.contact-note a, .form-status { color: var(--accent); }
.form-status:empty { display: none; }
.contact-confirm {
  width: min(22rem, calc(100% - 2rem));
  padding: 18px;
  border: 1px solid #746451;
  border-radius: 4px;
  color: var(--ink);
}
.contact-confirm h3 { font-size: 1.25rem; line-height: 1.2; }
.contact-confirm::backdrop { background: #142b4080; }
.contact-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}
.contact-confirm-actions .button { min-width: 52px; min-height: 42px; padding: 6px 12px; }
.site-footer {
  padding-block: 32px;
  border-top: 1px solid #a2998c;
  background:
    var(--plaster-light-tone),
    var(--plaster-base) var(--plaster-image) center 72% / cover no-repeat;
}
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 35px; }
.footer-inner p { margin: 3px 0 0; color: var(--muted); font-size: .875rem; }
.footer-contact { display: grid; overflow-wrap: anywhere; }
.footer-legal { flex-basis: 100%; }

@media (max-width: 1000px) {
  .container, .header-inner { width: min(1170px, 100% - 56px); }
  .home-page { --home-content-width: min(1170px, 100% - 56px); }
}
@media (max-width: 720px) {
  :root { --brand-height: clamp(72px, 20vw, 83px); }
  .container, .header-inner { width: calc(100% - 36px); }
  .menu-toggle { display: block; min-height: 42px; padding-inline: 12px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: transparent; font-weight: 650; }
  .main-nav { display: none; position: absolute; inset: 100% 0 auto; padding: 14px 18px; background: var(--plaster-tone), var(--plaster-base) var(--plaster-image) center 55% / cover no-repeat; border-bottom: 1px solid #a2998c; }
  .main-nav.open { display: grid; gap: 0; }
  .home-page { --home-content-width: calc(100% - 36px); }
  .home-page .header-inner { gap: 14px; }
  .home-page .site-header .menu-toggle { border-color: #75685a; }
  .main-nav a, .main-nav .nav-cta { display: block; padding: 10px 4px; border: 0; }
  .hero-photo {
    position: relative;
    height: clamp(220px, 58vw, 360px);
    object-position: 73% 54%;
    mask-image: linear-gradient(#000 calc(100% - 30px), transparent);
  }
  .home-page .hero {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
  }
  .home-page .hero-photo {
    flex-shrink: 0;
    height: calc(clamp(220px, 58vw, 360px) + var(--header-height));
  }
  .hero-inner { min-height: 0; padding-block: 30px 41px; }
  .home-page .hero-inner { flex: 1; min-height: 0; padding-top: 30px; }
  .hero-copy {
    max-width: 580px;
    margin-block-start: clamp(0px, calc(18svh - 137px), 32px);
  }
  .hero h1 { font-size: clamp(2.4rem, 9.2vw, 4.1rem); }
  .hero-lead { margin-block: 18px 35px; }
  .section-label { margin-bottom: 12px; }
  .about, .service-feature, .service-list, .tools-inner, .contact { grid-template-columns: minmax(0, 1fr); }
  .contact { grid-template-areas: "intro" "form" "photo"; grid-template-rows: auto; row-gap: 27px; }
  .service-list article + article { border-top: 1px solid #6a594980; padding-top: 19px; }
  .about-copy { grid-row: 1; }
  .portrait { width: min(100%, 440px); justify-self: center; }
}
@media (max-width: 440px) {
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .contact-form-head { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .header-inner, .brand, .brand img, .home-page .site-header::before { transition: none; }
  .brand img { transform: none !important; }
}
