/* Root */
:root {
  --bg: #F1F4EE;
  --surface: #FBFCF9;
  --text: #1C2A20;
  --muted: #4E5E52;
  --accent: #2F6B45;
  --accent-text: #FBFCF9;
  --plate-bg: #1C2A20;
  --plate-text: #F1F4EE;
  --line: #D8DFD6;
  --font-head: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-body: Charter, 'Bitstream Charter', 'Sitka Text', Cambria, Georgia, serif;
  --radius-card: 16px;
  --radius-btn: 10px;
  --pad-side: clamp(16px, 4vw, 40px);
  --shadow-soft: 0 1px 2px rgb(28 42 32 / .06), 0 12px 32px rgb(28 42 32 / .08);
}

/* Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(140% 100% at 15% 0%, var(--surface) 0%, var(--bg) 55%, #E4EADF 100%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
}
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}
h1 { font-size: clamp(2.4rem, 4.6vw + 0.6rem, 4.6rem); line-height: 1.06; }
h2 { font-size: clamp(1.8rem, 2.6vw + 0.8rem, 3rem); line-height: 1.15; }
h3 { font-size: clamp(1.2rem, 1vw + 0.9rem, 1.5rem); }
p { margin: 0 0 16px; max-width: 65ch; line-height: 1.65; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #24523A; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--plate-bg); color: var(--plate-text);
  padding: 12px 20px; z-index: 100; border-radius: 0 0 var(--radius-btn) 0;
}
.skip:focus { left: 0; color: var(--plate-text); }

/* Layout */
.layout {
  width: 100%; max-width: 1200px;
  margin: 0 auto;
  padding-inline: var(--pad-side);
}
.layout--narrow { max-width: 760px; }
.segment { padding-block: clamp(64px, 7vw, 96px); }
.segment__title { margin-bottom: 12px; }
.segment__intro {
  color: var(--muted);
  font-size: 1.06rem;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.accent {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--accent);
  font-size: clamp(3.2rem, 6vw + 1.4rem, 6.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  display: inline-block;
}
.prose { color: var(--text); }
.prose p, .prose li { max-width: 68ch; overflow-wrap: break-word; }
.prose table { min-width: 0; }
.prose th, .prose td { overflow-wrap: anywhere; }
.prose h2 { margin-top: 40px; }
.prose h3 { margin-top: 32px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: 8px; }
.prose table {
  width: 100%; border-collapse: collapse;
  background: var(--surface); border-radius: var(--radius-card);
  overflow: hidden; box-shadow: var(--shadow-soft); margin: 24px 0;
}
.prose th, .prose td {
  text-align: left; padding: 12px 16px;
  border-bottom: 1px solid var(--line); font-size: 0.95rem;
}
.prose th { font-family: var(--font-head); font-weight: 700; }

/* Header */
.topbar {
  position: sticky; top: 0; z-index: 80;
  min-height: 72px;
  display: flex; align-items: center;
  background: transparent;
  transition: background-color .3s ease, box-shadow .3s ease;
}
.topbar.is-scrolled {
  background-color: rgb(251 252 249 / .94);
  box-shadow: 0 1px 2px rgb(28 42 32 / .08), 0 8px 24px rgb(28 42 32 / .06);
}
.topbar__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto) minmax(0, 1fr);
  align-items: center; gap: 16px;
}
.topbar__side { display: flex; align-items: center; min-width: 0; }
.topbar__side:last-child { justify-content: flex-end; }
.topbar__mail {
  font-size: .95rem; color: var(--muted); text-decoration: none;
  overflow-wrap: anywhere;
}
.topbar__mail:hover { color: var(--accent); }
.topbar__brand {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1rem, 1.2vw + 0.6rem, 1.3rem);
  color: var(--text); text-decoration: none; text-align: center;
  line-height: 1.2; min-width: 0; overflow-wrap: anywhere;
}
.menu__switch {
  min-height: 48px; padding: 0 22px;
  border: 1px solid var(--line); border-radius: var(--radius-btn);
  background: var(--surface); color: var(--text);
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.menu__switch:hover { background: #EDF1E7; }
.menu__switch:active { box-shadow: none; transform: translateY(1px); }

/* Menu overlay */
.menu {
  position: fixed; inset: 0; z-index: 70;
  background: var(--plate-bg);
  color: var(--plate-text);
  display: flex; align-items: safe center;
  padding-top: clamp(104px, 12vw, 132px);
  overflow-y: auto;
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.menu--expanded { opacity: 1; visibility: visible; }
.menu__inner {
  display: grid; gap: clamp(32px, 5vw, 64px);
  align-items: start;
  min-width: 0;
}
.menu__pages { display: flex; flex-direction: column; gap: 4px; }
.menu__item {
  display: inline-block;
  font-family: var(--font-head); font-weight: 650;
  font-size: clamp(1.05rem, 1.4vw + 0.7rem, 1.45rem);
  color: var(--plate-text); text-decoration: none;
  padding: 10px 14px; margin-inline: -14px;
  border-radius: var(--radius-btn);
  transition: background-color .25s ease, color .25s ease;
}
.menu__item:hover, .menu__item:focus-visible { background: #33463A; color: #FFFFFF; }
.menu__item[aria-current="page"] { background: #3D5346; }
.menu__hint {
  font-family: var(--font-head); font-weight: 650;
  color: #B9C6BC; margin: 0 0 12px; font-size: .95rem;
}
.menu__aside ul { list-style: none; margin: 0; padding: 0; }
.menu__aside li { margin-bottom: 10px; color: #D6DED7; }
.menu__aside li span { color: #93A698; margin-right: 8px; font-size: .9rem; }
.menu__aside a { color: var(--plate-text); }
.bottomline .menu__item {
  color: var(--text); font-size: 1rem; font-weight: 400;
  padding: 4px 0; margin-inline: 0;
}
.bottomline .menu__item:hover, .bottomline .menu__item:focus-visible {
  background: transparent; color: var(--accent); text-decoration: underline;
}

/* Notice */
.notice {
  position: sticky; bottom: 0; z-index: 50;
  background: var(--accent); color: var(--accent-text);
  height: auto; padding: 10px 16px;
}
aside.notice { display: none; }
.notice__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-block: 10px;
}
.notice__text { margin: 0; font-size: .95rem; }
.notice__close {
  background: transparent; border: 1px solid rgb(251 252 249 / .5);
  color: var(--accent-text); border-radius: var(--radius-btn);
  min-height: 48px; padding: 12px 20px; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  flex: none;
  transition: background-color .2s ease, transform .2s ease;
}
.notice__close:hover { background: #24523A; }
.notice__close:active { box-shadow: none; transform: translateY(1px); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px;
  border: none; border-radius: var(--radius-btn);
  background: linear-gradient(135deg, #35754F 0%, #2F6B45 55%, #28573A 100%);
  background-size: 180% 100%; background-position: 0% 50%;
  color: var(--accent-text);
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 2px rgb(28 42 32 / .12);
  transition: background-position .3s ease, filter .2s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover {
  background-position: 100% 50%;
  filter: brightness(1.04);
  transform: translateY(-1px);
}
.btn:focus-visible {
  outline: 3px solid #8FBF9F; outline-offset: 3px;
}
.btn:active { box-shadow: none; transform: translateY(0); filter: brightness(.96); }
.btn--quiet {
  background: transparent; color: var(--plate-text);
  border: 1px solid #B9C6BC; box-shadow: none;
}
.btn--quiet:hover { background: #33463A; }
.btn--quiet:active { box-shadow: none; }

/* Plates */
.plate {
  background: var(--plate-bg); color: var(--plate-text);
  border-radius: var(--radius-card);
  padding: clamp(24px, 4vw, 48px);
}
.plate a { color: #A9D8B9; }

/* Hero */
.hero {
  position: relative;
  padding-block: clamp(64px, 7vw, 96px);
  min-height: auto;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__photo { width: 100%; height: 100%; min-height: 240px; object-fit: cover; }
.hero__inner { position: relative; z-index: 2; }
.hero__plate {
  max-width: 560px;
  box-shadow: var(--shadow-soft);
}
.hero__title { color: var(--plate-text); }
.hero__lead { color: #D6DED7; font-size: 1.1rem; }
.hero__btn { margin-top: 8px; }

/* Numbers */
.numbers .layout { max-width: 880px; }
.numbers__row {
  display: grid; grid-template-columns: 1fr;
  gap: 24px; margin-bottom: 32px;
}
.numbers__cell {
  width: 100%; max-width: 420px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: 40px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.numbers__value { font-size: clamp(3.2rem, 4vw, 4.5rem); }
.numbers__label {
  display: block; color: var(--muted);
  font-size: 1rem; margin-top: 8px;
}

/* Tiles */
.tiles__grid {
  display: grid; grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 32px);
}
.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column;
  transition: border-color .3s ease, transform .3s ease;
}
.tile:hover, .tile:focus-within { border-color: var(--accent); transform: translateY(-3px); }
.tile__photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tile__body { padding: 24px 28px 28px; }
.tile__title { margin-bottom: 8px; }
.tile__text { margin: 0; color: var(--muted); }

/* Photos */
.photo {
  border: 6px solid var(--surface);
  border-radius: 6px;
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

/* FAQ */
.faq__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq .layout--narrow { max-width: 640px; }
.faq__item { margin-bottom: 20px; }
.faq__question {
  font-family: var(--font-head); font-weight: 650;
  font-size: 1.05rem; padding: 20px 24px;
  cursor: pointer; list-style-position: inside;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::before {
  content: "+"; display: inline-block; margin-right: 12px;
  color: var(--accent); font-weight: 800;
  transition: transform .25s ease;
}
.faq__item[open] .faq__question::before { transform: rotate(45deg); }
.faq__answer { padding: 0 24px 20px 24px; margin: 0; color: var(--muted); }
.faq__item[open] .faq__question { border-bottom: 1px solid var(--line); }

/* Feature */
.feature__grid {
  display: grid; grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.feature__photo { width: 100%; aspect-ratio: 4 / 3; }

/* Contact */
.contact__plate {
  display: grid; gap: 12px;
  justify-items: start;
}
.contact__title { color: var(--plate-text); }
.contact__text { color: #D6DED7; margin: 0; }

/* Lead form */
.lead__wrap.plate .lead__field { margin-bottom: 18px; }
.lead__label {
  display: block; font-family: var(--font-head);
  font-weight: 600; font-size: .95rem; margin-bottom: 6px;
}
.lead__input {
  width: 100%; min-height: 48px;
  padding: 10px 16px;
  border: 1px solid var(--line); border-radius: var(--radius-btn);
  background: var(--surface); color: var(--text);
  font: inherit; font-size: 1rem;
}
.lead__input::placeholder { color: #6C7A6F; }
.lead__area { resize: vertical; min-height: 120px; }
.lead__check {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 18px 0; font-size: .95rem; color: #D6DED7;
}
.lead__check input { width: 20px; height: 20px; margin-top: 2px; accent-color: #8FBF9F; }
.lead__check a { color: #A9D8B9; }
.lead__note { font-size: .9rem; color: #B9C6BC; }
.lead__send { margin-top: 8px; }
.lead.is-sending .lead__send {
  opacity: .65; pointer-events: none;
}
.lead__field.is-error .lead__input { border-color: #B3543F; }
.lead__error {
  color: #F0C1B4; font-size: .9rem; margin: 6px 0 0;
}

/* Footer */
.bottomline {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-block: clamp(48px, 6vw, 80px) 24px;
}
.bottomline__inner {
  display: grid; grid-template-columns: 1fr;
  gap: 32px;
}
.bottomline__label {
  font-family: var(--font-head); font-weight: 650;
  font-size: .95rem; color: var(--muted); margin-bottom: 12px;
}
.bottomline address { font-style: normal; }
.bottomline address p { margin-bottom: 10px; color: var(--muted); font-size: .95rem; }
.bottomline ul { list-style: none; margin: 0; padding: 0; }
.bottomline ul li { margin-bottom: 10px; font-size: .95rem; color: var(--muted); }
.bottomline ul li span { color: var(--muted); margin-right: 6px; }
.bottomline__row {
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid var(--line);
}
.bottomline__copy { font-size: .9rem; color: var(--muted); margin: 0; }

/* Inner page header */
.pagehead { padding-top: clamp(40px, 6vw, 72px); }
.pagehead__intro { color: var(--muted); font-size: 1.1rem; }

/* Reveal */
html.is-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
html.is-ready .reveal.is-shown {
  opacity: 1;
  transform: none;
}

/* Breakpoints */
@media (min-width: 480px) {
  .numbers__row { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 640px) {
  .tiles__grid { grid-template-columns: repeat(2, 1fr); }
  .feature__grid { grid-template-columns: 1fr 1fr; }
  .feature__grid--flip .feature__photo { order: 2; }
  .menu__inner { grid-template-columns: 1.4fr 1fr; }
}
@media (min-width: 768px) {
  .bottomline__inner { grid-template-columns: repeat(2, 1fr); }
  .contact__plate { grid-template-columns: 1.6fr auto; align-items: center; }
}
@media (min-width: 1024px) {
  .tiles__grid { grid-template-columns: repeat(3, 1fr); }
  .bottomline__inner { grid-template-columns: repeat(4, 1fr); }
  .hero { min-height: min(80vh, 640px); display: flex; align-items: center; }
}
@media (min-width: 1280px) {
  .layout--narrow { max-width: 760px; }
}

/* Motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html.is-ready .reveal { opacity: 1; transform: none; }
}

@media (max-width: 479px) {
  body { font-size: 1.0625rem; }
  .hero { display: flex; flex-direction: column; padding-bottom: 0; }
  .hero__media { position: relative; inset: auto; order: 1; min-height: 240px; }
  .hero__inner { order: 2; margin: -60px auto 0; width: 100%; }
  .hero__plate { position: relative; width: auto; margin-right: var(--pad-side); }
  .numbers .layout { max-width: none; }
}
@media (min-width: 1024px) {
  .hero__media { flex: 1.4; }
  .hero__plate { flex: 1; }
}

/* Overflow safety */
body { overflow-x: clip; }
.layout > * { min-width: 0; }
.numbers__row, .tiles__grid, .feature__grid, .bottomline__inner { min-width: 0; }
.numbers__cell, .tile, .feature__text, .bottomline__col { min-width: 0; }
.notice__text { overflow-wrap: anywhere; }
.menu__aside li, .menu__aside a, .bottomline ul li { overflow-wrap: anywhere; }
.hero__plate { max-width: 100%; }
@media (max-width: 479px) {
  .topbar__mail { font-size: .875rem; }
  .menu__switch { padding: 0 14px; }
}

/* Menu open state */
body:has(.menu--expanded) .topbar {
  background-color: var(--surface);
  box-shadow: 0 1px 2px rgb(28 42 32 / .08), 0 8px 24px rgb(28 42 32 / .06);
}
@media (max-width: 479px) {
  body:has(.menu--expanded) .topbar { box-shadow: none; border-bottom: 1px solid var(--line); }
}
