:root {
  --bg: #ffffff;
  --paper: #f6f7f4;
  --paper-strong: #eef1eb;
  --ink: #1e2621;
  --muted: #68716a;
  --line: #dfe5dc;
  --green: #2d6b4f;
  --green-dark: #1f513b;
  --red: #a9472c;
  --red-dark: #73331f;
  --ochre: #c9a04d;
  --shadow: 0 18px 45px rgba(31, 43, 35, 0.12);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px max(24px, calc((100vw - var(--max)) / 2));
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background:
    radial-gradient(circle at 32% 35%, #d26b3e 0 18%, transparent 19%),
    radial-gradient(circle at 68% 62%, #3a302c 0 19%, transparent 20%),
    linear-gradient(135deg, var(--red), var(--green));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.site-nav a,
.header-cta,
.button,
.text-link,
.menu-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 760;
}

.site-nav a {
  padding: 0 12px;
  color: var(--muted);
  border-radius: 7px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--paper);
}

.header-cta,
.button.primary {
  border: 1px solid var(--green-dark);
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 22px rgba(45, 107, 79, 0.2);
}

.header-cta {
  padding: 0 16px;
}

.button {
  padding: 0 18px;
  border-radius: var(--radius);
}

.button.secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.button:hover,
.header-cta:hover {
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
}

main {
  overflow: hidden;
}

.hero {
  max-width: var(--max);
  min-height: 760px;
  margin: 0 auto;
  padding: 52px 24px 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1.05fr);
  gap: 36px;
  align-items: center;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(3rem, 6vw, 5.9rem);
  line-height: 0.94;
  font-weight: 850;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 640px;
  font-size: clamp(2.85rem, 4.8vw, 3.95rem);
  line-height: 0.98;
}

.hero p,
.page-hero p {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 34px 0 0;
}

.hero-stats div {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.hero-stats dt {
  font-size: 1.55rem;
  font-weight: 850;
  color: var(--red-dark);
}

.hero-stats dd {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-media {
  margin: 0;
}

.hero-media img,
.page-hero img,
.image-text img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.calculator-band,
.section,
.image-text,
.warning-strip,
.lead-section,
.content-section,
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: 24px;
}

.calculator-band {
  padding-top: 38px;
  padding-bottom: 52px;
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 28px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.section {
  padding-top: 70px;
  padding-bottom: 46px;
}

.section-copy {
  max-width: 720px;
}

.section-copy h2,
.image-text h2,
.warning-strip h2,
.lead-section h2,
.content-section h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 3rem);
  line-height: 1.05;
  font-weight: 830;
  letter-spacing: 0;
}

.section-copy p,
.image-text p,
.warning-strip p,
.lead-section p,
.content-section p {
  color: var(--muted);
  font-size: 1.03rem;
}

.calculator {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.field {
  min-width: 0;
}

.field label {
  display: grid;
  gap: 8px;
  color: #48524b;
  font-size: 0.86rem;
  font-weight: 760;
}

.input-unit {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  overflow: hidden;
  min-height: 46px;
  border: 1px solid #cfd8cf;
  border-radius: 7px;
  background: #fff;
}

.input-unit input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 10px 12px;
  color: var(--ink);
  outline: 0;
}

.input-unit span {
  padding: 0 11px;
  color: var(--muted);
  font-size: 0.86rem;
  border-left: 1px solid var(--line);
}

.calc-result {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.calc-result span {
  min-height: 74px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 12px;
  border-radius: 7px;
  background: #fff;
  color: var(--muted);
  border: 1px solid var(--line);
}

.calc-result strong {
  display: block;
  color: var(--red-dark);
  font-size: 1.38rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.guide-card {
  min-height: 194px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.guide-card:hover {
  transform: translateY(-2px);
  border-color: rgba(169, 71, 44, 0.36);
  box-shadow: 0 14px 34px rgba(31, 43, 35, 0.09);
}

.guide-card > span {
  width: 32px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--red), var(--green));
}

.guide-card h3 {
  margin: 8px 0 0;
  font-size: 1.22rem;
}

.guide-card p {
  margin: 0;
  color: var(--muted);
}

.image-text {
  padding-top: 46px;
  padding-bottom: 58px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: center;
}

.text-link {
  color: var(--green-dark);
  justify-content: flex-start;
  min-height: auto;
  margin-top: 10px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.offer-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.offer-list a {
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  text-decoration: none;
}

.offer-list a:hover {
  border-color: rgba(45, 107, 79, 0.35);
}

.offer-list span {
  color: var(--muted);
  font-size: 0.9rem;
}

.offer-list strong {
  color: var(--green-dark);
  font-size: 1.08rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

th,
td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--ink);
  background: var(--paper);
  font-size: 0.9rem;
}

td {
  color: #475149;
}

tr:last-child td {
  border-bottom: 0;
}

.warning-strip {
  margin-top: 30px;
  margin-bottom: 46px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding-top: 26px;
  padding-bottom: 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.lead-section {
  padding-top: 58px;
  padding-bottom: 74px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 30px;
}

.formnx-card {
  min-height: 520px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}

.formnx-card iframe {
  width: 100%;
  min-height: 520px;
  border: 0;
}

.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 58px 24px 52px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.85fr);
  gap: 40px;
  align-items: center;
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--green-dark);
  font-weight: 760;
  text-decoration: none;
}

.content-section {
  padding-top: 38px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
}

.content-section p,
.content-section .check-list {
  max-width: 820px;
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: #475149;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
}

.related {
  background: linear-gradient(180deg, #fff, var(--paper));
}

.compact .guide-card {
  min-height: 142px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  padding-top: 34px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 12px 0 0;
  max-width: 520px;
  color: var(--muted);
}

.footer-links {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .menu-button {
    display: inline-flex;
  }

  .site-nav,
  .header-cta {
    display: none;
  }

  .site-nav.is-open {
    grid-column: 1 / -1;
    display: grid;
    justify-content: stretch;
    gap: 6px;
  }

  .site-nav.is-open a {
    justify-content: flex-start;
  }

  .hero,
  .page-hero,
  .calculator-band,
  .image-text,
  .warning-strip,
  .lead-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 50px;
  }

  .hero-media {
    order: -1;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.75rem, 11vw, 4.8rem);
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .offer-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calculator {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calc-result {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .warning-strip {
    align-items: start;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding-inline: 16px;
    justify-content: start;
    gap: 14px;
  }

  .hero,
  .page-hero,
  .calculator-band,
  .section,
  .image-text,
  .warning-strip,
  .lead-section,
  .content-section,
  .site-footer {
    padding-inline: 16px;
  }

  .hero-stats,
  .cards,
  .offer-list,
  .calculator,
  .calc-result,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .page-actions {
    display: grid;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.45rem, 10vw, 3.05rem);
    line-height: 1.04;
  }

  .button,
  .header-cta {
    width: 100%;
  }

  .guide-card {
    min-height: auto;
  }

  .footer-links {
    justify-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
