:root {
  --bg: #f7ffe8;
  --bg-soft: #eef9d7;
  --green: #7fd12b;
  --green-dark: #11230d;
  --green-muted: #4c6240;
  --card: #ffffff;
  --card-soft: #f9fcf2;
  --border: #e1ebd3;
  --blue: #4097ea;
  --orange: #f8a93b;
  --gray: #a0a8b2;
  --shadow: 0 18px 42px rgba(25, 54, 14, 0.12);
  --radius: 30px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--green-dark);
  background:
    linear-gradient(135deg, #f9ffef 0%, #eef9d7 52%, #ffffff 100%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 76px;
  padding: 0 max(22px, calc((100vw - 1120px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(249, 255, 239, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.15rem;
}

.brand-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: white;
  background: var(--green-dark);
  font-size: 0.95rem;
}

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

.site-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--green-muted);
  font-weight: 750;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--green-dark);
  background: rgba(127, 209, 43, 0.12);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.65rem;
  color: var(--green-dark);
  cursor: pointer;
}

.hero {
  width: min(1120px, calc(100% - 32px));
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  padding: 72px 0 90px;
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  gap: 58px;
}

.label {
  margin: 0 0 14px;
  color: #5f7b4f;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(4.8rem, 11vw, 8.5rem);
  line-height: 0.88;
  letter-spacing: -0.085em;
}

.lead {
  max-width: 620px;
  margin: 26px 0 0;
  color: var(--green-muted);
  font-size: 1.25rem;
  line-height: 1.7;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 16px;
  font-weight: 900;
  transition: 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  color: white;
  background: var(--green-dark);
}

.btn.secondary {
  color: var(--green-dark);
  background: #ffffff;
  border: 1px solid var(--border);
}

.app-preview {
  display: flex;
  justify-content: center;
}

.phone {
  width: 360px;
  height: 720px;
  overflow: hidden;
  padding: 22px 22px 28px;
  border: 9px solid #10190d;
  border-radius: 46px;
  background: #edffd0;
  box-shadow: 0 24px 70px rgba(23, 47, 11, 0.2);
}

.phone-status {
  width: 100%;
  height: 26px;
  margin-bottom: 22px;
}

.app-top {
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.app-top h2 {
  margin: 0;
  text-align: center;
  font-size: 2.25rem;
  line-height: 1;
  letter-spacing: -0.06em;
}

.back,
.settings {
  font-size: 2rem;
  font-weight: 800;
}

.summary-card,
.ai-card {
  background: #ffffff;
  border: 1px solid #dfe9d0;
  border-radius: 34px;
  box-shadow: 0 12px 28px rgba(25, 54, 14, 0.16);
}

.summary-card {
  position: relative;
  padding: 36px 22px 24px;
  text-align: center;
}

.info {
  position: absolute;
  right: 22px;
  top: 22px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 2px solid #6a7a58;
  border-radius: 50%;
  color: #6a7a58;
  font-weight: 900;
  font-style: italic;
}

.ring {
  width: 186px;
  height: 186px;
  margin: 30px auto 22px;
  padding: 19px;
  border-radius: 50%;
  background:
    conic-gradient(var(--blue) 0 25%, var(--orange) 25% 56%, var(--gray) 56% 83%, #ecf7df 83% 100%);
}

.ring-center {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: #ffffff;
}

.ring-center strong {
  font-size: 2.65rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.ring-center span {
  margin-top: 8px;
  color: #637251;
  font-weight: 850;
}

.summary-card h3 {
  margin: 14px 0 8px;
  font-size: 1.75rem;
  letter-spacing: -0.05em;
}

.summary-card p {
  margin: 0 auto 20px;
  max-width: 280px;
  color: var(--green-muted);
  font-size: 0.98rem;
  line-height: 1.45;
  font-weight: 750;
}

.macro-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.macro-row div {
  min-width: 0;
  padding: 12px 6px;
  border: 1px solid #e0ebd0;
  border-radius: 20px;
  background: #fbfdf5;
}

.dot {
  width: 13px;
  height: 13px;
  display: block;
  margin: 0 auto 8px;
  border-radius: 50%;
}

.blue { background: var(--blue); }
.orange { background: var(--orange); }
.gray { background: var(--gray); }

.macro-row strong {
  display: block;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
}

.macro-row small {
  display: block;
  margin-top: 4px;
  color: var(--green-muted);
  font-weight: 850;
}

.ai-card {
  margin-top: 24px;
  padding: 22px;
}

.ai-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-head span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #d9ff7a;
  font-size: 1.35rem;
}

.ai-head h3 {
  margin: 0;
  font-size: 1.55rem;
  letter-spacing: -0.04em;
}

.ai-card p {
  margin: 18px 0 0;
  color: var(--green-muted);
  line-height: 1.55;
  font-weight: 750;
}

.section,
.page,
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 84px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 30px;
}

.section h2,
.page-hero h1,
.score-section h2 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.section-head p:not(.label),
.page-hero p,
.score-section p,
.card p,
.step p,
.document p,
.document li {
  color: var(--green-muted);
  line-height: 1.75;
  font-size: 1.03rem;
}

.cards.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card,
.accuracy-box,
.score-section,
.document {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card {
  padding: 26px;
}

.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 16px;
  background: var(--bg-soft);
  font-size: 1.35rem;
}

.card h3,
.step h3 {
  margin: 0 0 8px;
  font-size: 1.32rem;
  letter-spacing: -0.04em;
}

.card p {
  margin: 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 26px;
  align-items: start;
}

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

.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 20px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--border);
}

.step > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: white;
  background: var(--green-dark);
  font-weight: 900;
}

.accuracy-box {
  padding: 28px;
}

.accuracy-box strong,
.score-section > strong {
  display: block;
  color: var(--green-dark);
  font-size: clamp(4.8rem, 11vw, 7.4rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.accuracy-box p:not(.label) {
  color: var(--green-muted);
  line-height: 1.7;
}

.accuracy-box small,
.score-section small {
  display: block;
  color: #66745b;
  font-size: 0.78rem;
  line-height: 1.55;
}

.accuracy-box a {
  display: inline-block;
  margin-top: 22px;
  color: var(--green-dark);
  font-weight: 900;
}

.page {
  padding: 74px 0 96px;
}

.page-hero {
  max-width: 850px;
  margin-bottom: 30px;
}

.page-hero h1 {
  margin-bottom: 20px;
}

.score-section {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 34px;
  margin: 34px 0 0;
}

.score-section p {
  margin-bottom: 10px;
}

.document {
  padding: clamp(24px, 4vw, 42px);
  margin-top: 34px;
}

.document h2 {
  margin: 32px 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  letter-spacing: -0.05em;
}

.document h2:first-child {
  margin-top: 0;
}

.document a {
  color: var(--green-dark);
  font-weight: 850;
}

.document ul {
  padding-left: 22px;
}

.notice {
  margin-top: 28px;
  padding: 18px;
  border-radius: 20px;
  background: #f3fbdf;
  border: 1px solid var(--border);
  color: var(--green-muted);
  line-height: 1.65;
}

.table-wrap {
  overflow-x: auto;
}

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

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

th {
  color: var(--green-dark);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 850;
}

.status.good {
  background: #e9f8d8;
  color: #2c651e;
}

.status.progress {
  background: #fff2cf;
  color: #755611;
}

.site-footer {
  padding: 28px 0 36px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin: 8px 0 0;
  color: var(--green-muted);
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--green-muted);
  font-weight: 800;
}

@media (max-width: 950px) {
  .hero,
  .split,
  .score-section {
    grid-template-columns: 1fr;
  }

  .app-preview {
    order: -1;
  }

  .hero {
    padding-top: 42px;
  }

  .cards.three {
    grid-template-columns: 1fr;
  }

  .score-section > strong {
    font-size: 5.5rem;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 22px 18px;
    background: rgba(249, 255, 239, 0.98);
    border-bottom: 1px solid var(--border);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 13px 12px;
  }
}

@media (max-width: 520px) {
  .hero,
  .section,
  .page,
  .site-footer {
    width: min(100% - 22px, 1120px);
  }

  .hero h1 {
    font-size: clamp(4rem, 22vw, 6rem);
  }

  .lead {
    font-size: 1.08rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .phone {
    width: 318px;
    height: 638px;
    padding: 18px;
    border-radius: 42px;
  }

  .app-top h2 {
    font-size: 1.85rem;
  }

  .ring {
    width: 155px;
    height: 155px;
  }

  .ring-center strong {
    font-size: 2.2rem;
  }

  .summary-card h3 {
    font-size: 1.45rem;
  }

  .macro-row strong {
    font-size: 1.02rem;
  }

  .site-footer {
    flex-direction: column;
  }
}
