@font-face {
  font-family: 'Chivo';
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url('../assets/fonts/chivo-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/figtree-latin.woff2') format('woff2');
}

:root {
  --ink: #14271d;
  --ink-soft: #53645b;
  --cream: #f5f6ef;
  --paper: #e8ede3;
  --grain: #d8ee72;
  --grain-light: #eaf5af;
  --grain-pale: #f3f8d7;
  --rust: #d45c37;
  --green: #2f6c4d;
  --line: rgba(20, 39, 29, 0.16);
  --shadow: 0 28px 70px rgba(18, 47, 32, 0.16);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --max: 1220px;
}

body {
  color: var(--ink);
  background: var(--cream);
  font-family: 'Figtree', sans-serif;
  font-size: 17px;
  line-height: 1.62;
  letter-spacing: -0.006em;
}

:focus-visible { outline-color: #5ca77e; }
::selection { background: var(--grain); color: #102219; }

h1,
h2,
h3,
.brand-name,
.feature-number,
.card-price strong,
.summary-total strong {
  font-family: 'Chivo', sans-serif;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.052em;
}

h1 { font-size: clamp(3.2rem, 7vw, 6.9rem); }
h2 { font-size: clamp(2.25rem, 4.8vw, 4.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); letter-spacing: -0.03em; }

.lead {
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.7vw, 1.34rem);
  letter-spacing: -0.018em;
}

.eyebrow {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.19em;
}

.site-header {
  background: rgba(245, 246, 239, 0.91);
  border-bottom-color: rgba(20, 39, 29, 0.12);
  box-shadow: 0 10px 35px rgba(20, 39, 29, 0.05);
}

.nav-wrap { min-height: 78px; }
.brand { gap: 12px; }
.brand img { width: 42px; height: 42px; }
.brand-name { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.04em; }
.site-nav { gap: 30px; }
.site-nav a { font-weight: 650; letter-spacing: -0.012em; }
.site-nav a:not(.button):hover { color: var(--green); }
.lang-switch { border-color: rgba(20, 39, 29, 0.2); border-radius: 10px; }
.lang-switch a { border-radius: 7px; }
.lang-switch a[aria-current='page'] { background: var(--green); }
.nav-toggle { border-radius: 10px; }

.button {
  min-height: 50px;
  padding: 13px 21px;
  border-radius: 10px;
  border-color: var(--ink);
  background: var(--ink);
  font-weight: 750;
  letter-spacing: -0.012em;
  box-shadow: 0 8px 20px rgba(20, 39, 29, 0.12);
}

.button:hover {
  transform: translateY(-3px);
  background: #244432;
  box-shadow: 0 14px 30px rgba(20, 39, 29, 0.2);
}

.button--grain {
  color: #112018;
  background: var(--grain);
  border-color: var(--grain);
  box-shadow: 0 12px 30px rgba(216, 238, 114, 0.2);
}

.button--grain:hover { background: #e3f58b; }
.button--light { color: var(--ink); background: var(--cream); border-color: var(--cream); }
.button--outline { color: var(--ink); background: transparent; border-color: rgba(20, 39, 29, 0.25); box-shadow: none; }
.button--outline:hover { color: white; border-color: var(--green); background: var(--green); }
.button--danger { color: #a33c26; border-color: rgba(163, 60, 38, 0.35); background: transparent; box-shadow: none; }

.hero {
  min-height: min(820px, calc(100svh - 78px));
  background: #10261a;
}

.hero::before {
  background-position: center 48%;
  filter: saturate(0.78) contrast(1.06);
}

.hero::after {
  background:
    linear-gradient(90deg, rgba(8, 29, 18, 0.94) 0%, rgba(10, 37, 23, 0.84) 36%, rgba(9, 27, 18, 0.27) 72%, rgba(8, 22, 15, 0.12)),
    linear-gradient(0deg, rgba(7, 24, 15, 0.56), transparent 58%);
}

.hero-content {
  max-width: 770px;
  padding-block: clamp(88px, 13vh, 150px) 70px;
  animation: theme-rise 0.7s cubic-bezier(.2,.75,.25,1) both;
}

.hero .eyebrow { color: var(--grain) !important; }
.hero h1 { max-width: 760px; margin-bottom: 26px; }
.hero .lead { max-width: 650px; color: rgba(245, 246, 239, 0.84); }
.hero-facts { gap: 12px 30px; }
.hero-facts li { font-size: 0.92rem; }
.hero-facts li::before { background: var(--grain); box-shadow: 0 0 0 5px rgba(216, 238, 114, 0.16); }
.hero-credit { color: rgba(255, 255, 255, 0.62); }

@keyframes theme-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.section { position: relative; }
.section--paper {
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(47, 108, 77, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 108, 77, 0.045) 1px, transparent 1px);
  background-size: 38px 38px;
}
.section--ink { background: #11281c; color: var(--cream); }
.section--grain { background: var(--grain-light); }
.section-head { gap: clamp(36px, 6vw, 78px); }
.section-head h2 { max-width: 800px; }

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

.feature {
  min-height: 220px;
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid rgba(20, 39, 29, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 14px 38px rgba(20, 39, 29, 0.06);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.feature:hover {
  transform: translateY(-6px);
  border-color: rgba(47, 108, 77, 0.42);
  box-shadow: 0 22px 48px rgba(20, 39, 29, 0.11);
}

.feature-number { margin-bottom: 30px; color: var(--green); font-size: 0.82rem; font-weight: 800; letter-spacing: 0.08em; }
.feature p { color: var(--ink-soft); }

.diagram-card {
  min-height: 580px;
  border: 1px solid rgba(20, 39, 29, 0.12);
  background: #d9ac52;
  box-shadow: var(--shadow);
}

.probe-box,
.preview-probe-box { background: #13271d; border-color: #3d5b49; }
.probe-box::after,
.preview-probe-box::after { background: var(--grain); }
.probe-depth-label,
.preview-meta { border-radius: 8px; }

.spec-list { border-color: rgba(20, 39, 29, 0.18); }
.spec-row { padding-block: 20px; }
.spec-icon { border-radius: 8px; background: var(--grain-pale); color: var(--green); }

.process-step { border-top-color: rgba(216, 238, 114, 0.28); }
.process-step::before { color: var(--grain); background: #11281c; font-family: 'Chivo', sans-serif; }
.process-step p { color: rgba(245, 246, 239, 0.68); }

.trust-band { background: #f8f9f4; }
.partner-placeholder {
  border-style: solid;
  border-color: rgba(20, 39, 29, 0.14);
  border-radius: var(--radius);
  background: white;
  color: var(--green);
}

.demo-banner {
  border: 1px solid rgba(20, 39, 29, 0.14);
  background:
    radial-gradient(circle at 85% 15%, rgba(216, 238, 114, 0.9), transparent 32%),
    #d8e8d7;
  box-shadow: 0 24px 60px rgba(20, 39, 29, 0.1);
}

.site-footer { background: #0d2117; color: rgba(245, 246, 239, 0.7); }
.footer-grid h2 { color: var(--cream); }
.footer-grid h3 { color: var(--grain); font-family: 'Figtree', sans-serif; }
.footer-grid a:hover { color: var(--grain); }

.page-hero {
  color: var(--cream);
  border-bottom: 0;
  background-color: #123020;
  background-image:
    radial-gradient(circle at 85% 25%, rgba(216, 238, 114, 0.14), transparent 32%),
    linear-gradient(rgba(216, 238, 114, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 238, 114, 0.04) 1px, transparent 1px);
  background-size: auto, 42px 42px, 42px 42px;
}

.page-hero .eyebrow { color: var(--grain); }
.page-hero .lead { color: rgba(245, 246, 239, 0.72); }
.page-hero .breadcrumb { color: rgba(245, 246, 239, 0.62); }
.page-hero .brand { color: var(--cream); }

.form-section-title .index { border-radius: 9px; color: var(--ink); background: var(--grain); }
.measurement-card,
.contact-card {
  border-color: rgba(20, 39, 29, 0.14);
  border-radius: var(--radius);
  background: #fbfcf8;
  box-shadow: 0 14px 36px rgba(20, 39, 29, 0.07);
}
.measurement-card.is-active { border-color: var(--green); box-shadow: 0 0 0 3px rgba(47, 108, 77, 0.12); }

.contact-person {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(20, 39, 29, 0.14);
}
.contact-avatar {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--grain);
  font-family: 'Chivo', sans-serif;
  font-weight: 800;
}
.contact-person strong,
.contact-person span { display: block; }
.contact-person strong { font: 800 1.12rem/1.2 'Chivo', sans-serif; }
.contact-person span { margin-top: 5px; color: var(--ink-soft); }
.contact-prep { margin-top: 32px; padding: 24px; border-left: 4px solid var(--green); background: var(--green-wash); }
.contact-prep h3 { margin-bottom: 8px; }
.contact-prep p { margin: 0; color: var(--ink-soft); }

input,
select,
textarea {
  border-color: rgba(20, 39, 29, 0.23);
  border-radius: 9px;
  background: white;
}
input:focus,
select:focus,
textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(47, 108, 77, 0.11); }

.radio-option label { border-radius: 10px; }
.radio-option label span:last-child { color: var(--green); }
.radio-option input:checked + label { border-color: var(--green); background: #f1f7ee; box-shadow: 0 0 0 2px rgba(47, 108, 77, 0.12); }

.probe-preview { border-color: rgba(20, 39, 29, 0.14); background: #edf1e6; }
.preview-sky { background: linear-gradient(#f4f7ef, #dde8d8); }
.sensor-point { border-color: #f5f6ef; background: var(--rust); }
.quote-summary { background: #11281c; }
.summary-total strong,
.summary-monthly { color: var(--grain); }
.quote-notice { border-left-color: var(--green); background: #e7f0df; }
.form-status { color: var(--green); }

@media (max-width: 980px) {
  .site-nav { background: rgba(245, 246, 239, 0.98); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .nav-wrap { min-height: 68px; }
  .site-nav { inset: 69px 0 auto; }
  .hero { min-height: 740px; }
  .hero::after {
    background: linear-gradient(0deg, rgba(8, 29, 18, 0.97) 0%, rgba(10, 37, 23, 0.72) 60%, rgba(8, 22, 15, 0.2));
  }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.7rem); }
  .feature { min-height: auto; }
  .feature-grid { grid-template-columns: 1fr; }
  .demo-banner { background: #d8e8d7; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-content { animation: none; }
  .feature { transition: none; }
}

@media print {
  body { color: #111; background: white; }
  .page-hero { color: #111; background: white; }
  .page-hero .lead,
  .page-hero .breadcrumb { color: #333; }
}
