:root {
  --ink: #102825;
  --muted: #5f706c;
  --green: #0a8f75;
  --green-dark: #064f44;
  --mint: #6be6a6;
  --lime: #e8ffc0;
  --paper: #ffffff;
  --soft: #f3faf4;
  --line: rgba(16, 40, 37, .12);
  --shadow: 0 28px 80px rgba(6, 79, 68, .14);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #eef8ef;
}

body {
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  width: 100%;
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 8%, rgba(107, 230, 166, .42), transparent 25%),
    radial-gradient(circle at 88% 10%, rgba(232, 255, 192, .72), transparent 24%),
    linear-gradient(135deg, #f7fff5 0%, #edf8ef 42%, #f8fbf3 100%);
}

.page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(6, 79, 68, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 79, 68, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .6), transparent 78%);
}

.wrap {
  position: relative;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 110px 0 72px;
  z-index: 1;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100vw;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1200px) / 2 + 14px));
  border-bottom: 1px solid rgba(6, 79, 68, .1);
  background: rgba(247, 255, 245, .9);
  box-shadow: 0 18px 48px rgba(6, 79, 68, .08);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  position: relative;
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  border-radius: 0;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 950;
  font-size: 19px;
  letter-spacing: .02em;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

.brand-mark::after {
  content: none;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-copy strong {
  letter-spacing: .02em;
  font-size: 16px;
  line-height: 1.14;
}

.brand-copy span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  color: #304541;
  font-weight: 800;
  font-size: 15px;
}

.nav-link {
  position: relative;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--mint));
}

.pill,
.primary {
  min-width: 148px;
  height: 46px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  white-space: nowrap;
  font-weight: 900;
  font-size: 14px;
  border: 1px solid rgba(6, 79, 68, .14);
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 14px 32px rgba(6, 79, 68, .08);
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.primary {
  border: 0;
  color: white;
  background: linear-gradient(135deg, #064f44, #0a8f75);
}

.pill:hover,
.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(6, 79, 68, .14);
}

.pill:focus-visible,
.primary:focus-visible,
.field:focus-visible {
  outline: 3px solid rgba(107, 230, 166, .46);
  outline-offset: 3px;
}

.primary:active,
.pill:active {
  transform: translateY(0);
}

.hero {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 52px;
  align-items: center;
  padding: 70px 0 34px;
}

.eyebrow {
  width: fit-content;
  color: var(--green-dark);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 10px 16px;
  border: 1px solid rgba(10, 143, 117, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
}

h1 {
  margin: 20px 0 0;
  font-size: 58px;
  line-height: .98;
  letter-spacing: 0;
}

.accent {
  color: var(--green);
}

.lead {
  margin: 20px 0 0;
  color: #526964;
  font-size: 18px;
  line-height: 1.68;
}

.hero-card {
  border-radius: 38px;
  padding: 34px;
  background:
    radial-gradient(circle at 82% 8%, rgba(232, 255, 192, .8), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, .88), rgba(242, 251, 244, .84));
  border: 1px solid rgba(6, 79, 68, .1);
  box-shadow: var(--shadow);
}

.hero-card.dark {
  color: white;
  background:
    radial-gradient(circle at 82% 8%, rgba(107, 230, 166, .22), transparent 34%),
    linear-gradient(145deg, #0b3c34, #064f44);
}

.hero-card h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: 0;
}

.hero-card p {
  margin: 14px 0 0;
  color: #60746f;
  font-size: 15px;
  line-height: 1.65;
}

.hero-card.dark p {
  color: rgba(255, 255, 255, .76);
}

.grid {
  display: grid;
  gap: 28px;
  margin-top: 28px;
}

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

.grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.panel {
  border-radius: 34px;
  padding: 28px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(6, 79, 68, .1);
  box-shadow: 0 24px 55px rgba(6, 79, 68, .08);
}

.panel.dark {
  color: white;
  background: linear-gradient(145deg, #0b3c34, #064f44);
}

.panel h2,
.panel h3 {
  margin: 0;
  letter-spacing: 0;
}

.panel h2 {
  font-size: 34px;
  line-height: 1.1;
}

.panel h3 {
  font-size: 20px;
}

.panel p {
  margin: 12px 0 0;
  color: #60746f;
  font-size: 15px;
  line-height: 1.65;
}

.panel.dark p {
  color: rgba(255, 255, 255, .74);
}

.card {
  display: block;
  min-height: 174px;
  border-radius: 26px;
  padding: 22px;
  background: linear-gradient(180deg, #ffffff, #f3faf4);
  border: 1px solid rgba(6, 79, 68, .1);
}

.card-muted {
  box-shadow: none;
}

.card.dark {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .12);
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: #064f44;
  background: linear-gradient(135deg, #e8ffc0, #6be6a6);
  font-weight: 950;
}

.card b {
  display: block;
  font-size: 17px;
  margin-bottom: 8px;
}

.card span,
.card p {
  color: #6b7b77;
  font-size: 13px;
  line-height: 1.55;
}

.dark .card span,
.dark .card p,
.card.dark span,
.card.dark p {
  color: rgba(255, 255, 255, .72);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.list-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(6, 79, 68, .09);
}

.list-row i {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e8ffc0, #6be6a6);
}

.list-icon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--green-dark);
  background: linear-gradient(135deg, #e8ffc0, #6be6a6);
}

.list-icon svg {
  width: 17px;
  height: 17px;
}

.list-row b {
  display: block;
  margin-bottom: 5px;
}

.list-row span {
  color: #647873;
  font-size: 13px;
  line-height: 1.55;
}

.footer {
  margin-top: 28px;
  min-height: 92px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 28px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(6, 79, 68, .1);
  box-shadow: 0 24px 55px rgba(6, 79, 68, .08);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.footer-copy {
  display: grid;
  align-content: center;
  min-height: 84px;
}

.footer-brand .brand-mark {
  width: 84px;
  height: 84px;
  flex-basis: 84px;
  border-radius: 0;
  font-size: 22px;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 6px;
  color: #6c7d78;
  font-size: 12px;
}

.footer b {
  display: block;
  font-size: 14px;
  letter-spacing: .04em;
  line-height: 1.25;
}

.footer span {
  display: block;
  margin-top: 4px;
  color: #6c7d78;
  font-size: 12px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #45605a;
  font-weight: 800;
  font-size: 13px;
}

.mock-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label {
  color: #29443f;
  font-size: 13px;
  font-weight: 900;
}

.field {
  width: 100%;
  min-height: 58px;
  border-radius: 18px;
  padding: 16px 18px;
  color: #60746f;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(6, 79, 68, .1);
  outline: none;
  font: inherit;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.field.tall {
  min-height: 138px;
  resize: vertical;
}

.field:focus {
  border-color: rgba(10, 143, 117, .46);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 0 0 4px rgba(107, 230, 166, .18);
}

.contact-status {
  display: none;
  border-radius: 18px;
  padding: 14px 16px;
  color: #064f44;
  font-weight: 800;
  background: rgba(107, 230, 166, .2);
  border: 1px solid rgba(10, 143, 117, .22);
}

.contact-status.is-visible {
  display: block;
}

.article {
  margin-top: 28px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 34px;
  padding: 42px 46px;
  background: rgba(255, 255, 255, .84);
  border: 1px solid rgba(6, 79, 68, .1);
  box-shadow: 0 24px 55px rgba(6, 79, 68, .08);
}

.article h2 {
  margin: 0 0 18px;
  font-size: 32px;
  letter-spacing: 0;
}

.article h3 {
  margin: 34px 0 12px;
  font-size: 22px;
  letter-spacing: 0;
}

.article h4 {
  margin: 22px 0 8px;
  color: #143b34;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: 0;
}

.article p {
  margin: 0 0 16px;
  color: #526964;
  font-size: 16px;
  line-height: 1.72;
}

.article ul {
  margin: 0 0 18px;
  padding-left: 22px;
  color: #526964;
  font-size: 16px;
  line-height: 1.78;
}

.article li {
  margin: 6px 0;
}

.article .note-card {
  margin-top: 28px;
  border-radius: 26px;
  padding: 24px;
  color: white;
  background: linear-gradient(145deg, #0b3c34, #064f44);
}

.article .note-card p,
.article .note-card li {
  color: rgba(255, 255, 255, .78);
}

.article .note-card h3 {
  margin-top: 0;
  color: white;
}

.tool-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 28px;
}

.calculator-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.result-grid {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.result-card {
  border-radius: 22px;
  padding: 18px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(6, 79, 68, .1);
}

.result-card b {
  display: block;
  color: #60746f;
  font-size: 13px;
}

.result-card strong {
  display: block;
  margin-top: 6px;
  color: #0b3c34;
  font-size: 24px;
}

.panel.dark .result-card {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .14);
}

.panel.dark .result-card b {
  color: rgba(255, 255, 255, .72);
}

.panel.dark .result-card strong {
  color: white;
}

.form-note {
  color: #60746f;
  font-size: 13px;
  line-height: 1.6;
}

.panel.dark .form-note {
  color: rgba(255, 255, 255, .72);
}

svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.article-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.article-toc a {
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
  background: rgba(107, 230, 166, .16);
  border: 1px solid rgba(10, 143, 117, .16);
}

@media (max-width: 1024px) {
  .wrap {
    width: min(100% - 40px, 900px);
    padding-top: 148px;
  }

  .nav {
    height: auto;
    min-height: 116px;
    flex-wrap: wrap;
    gap: 12px 20px;
    padding: 14px 24px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    gap: 22px;
    overflow-x: auto;
    flex-wrap: nowrap;
    white-space: nowrap;
    padding: 4px 0 8px;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-link.active::after {
    bottom: -8px;
  }

  .hero,
  .split,
  .grid.two,
  .tool-layout {
    grid-template-columns: 1fr;
  }

  .grid.three,
  .grid.four {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .wrap {
    width: min(100% - 28px, 420px);
    padding-top: 154px;
    padding-bottom: 42px;
  }

  .nav {
    min-height: 128px;
    padding: 12px 14px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 60px;
    height: 60px;
    flex-basis: 60px;
    border-radius: 0;
    font-size: 22px;
  }

  .brand-copy strong {
    max-width: 260px;
    font-size: 12px;
  }

  .brand-copy span {
    font-size: 10px;
  }

  .pill,
  .primary {
    min-width: 130px;
    height: 40px;
    padding: 0 14px;
    font-size: 12px;
  }

  .nav-links {
    gap: 18px;
    font-size: 13px;
  }

  .hero {
    padding: 38px 0 22px;
  }

  h1 {
    font-size: 38px;
    line-height: 1.04;
  }

  .lead {
    font-size: 15px;
  }

  .hero-card,
  .panel,
  .article {
    border-radius: 24px;
    padding: 22px;
  }

  .hero-card h2,
  .panel h2,
  .article h2 {
    font-size: 26px;
  }

  .grid,
  .grid.two,
  .grid.three,
  .grid.four {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .card {
    min-height: auto;
    border-radius: 22px;
    padding: 18px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    border-radius: 24px;
    gap: 18px;
    padding: 22px;
  }

  .footer-brand {
    width: 100%;
  }

  .footer-meta {
    display: grid;
    gap: 6px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 12px;
  }
}
