:root {
  --green-950: #05251b;
  --green-900: #073923;
  --green-800: #0a5b36;
  --green-700: #08723f;
  --gold-500: #f3b41b;
  --gold-600: #d99a0b;
  --ink: #15221b;
  --muted: #627069;
  --line: #e1e8e3;
  --paper: #f7faf5;
  --surface: #ffffff;
  --shadow: 0 18px 50px rgba(5, 37, 27, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

svg {
  display: block;
}

.topbar {
  background: var(--green-900);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

.topbar-inner {
  align-items: center;
  display: flex;
  gap: 22px;
  margin: 0 auto;
  max-width: 1220px;
  min-height: 40px;
  padding: 7px 22px;
}

.topbar span {
  align-items: center;
  display: inline-flex;
  gap: 7px;
}

.topbar svg {
  color: var(--gold-500);
  height: 15px;
  width: 15px;
}

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(225, 232, 227, 0.92);
  box-shadow: 0 5px 20px rgba(5, 37, 27, 0.05);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 78px;
  padding: 12px max(22px, calc((100vw - 1220px) / 2));
  position: sticky;
  top: 0;
  z-index: 30;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 13px;
  min-width: max-content;
}

.brand-logo {
  height: 54px;
  width: auto;
  max-width: 54px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--green-950);
  font-size: 1.08rem;
  line-height: 1.15;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

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

.main-nav > a,
.nav-parent {
  align-items: center;
  border-radius: 4px;
  color: #203228;
  display: inline-flex;
  font-weight: 700;
  gap: 5px;
  min-height: 42px;
  padding: 9px 11px;
  white-space: nowrap;
}

.main-nav > a:hover,
.nav-parent:hover,
.main-nav .is-active > .nav-parent,
.main-nav > a.is-active {
  background: #edf6ef;
  color: var(--green-800);
}

.nav-parent svg {
  height: 14px;
  width: 14px;
}

.nav-group {
  position: relative;
}

.nav-menu {
  background: var(--surface);
  border-top: 4px solid var(--gold-500);
  box-shadow: var(--shadow);
  display: none;
  min-width: 280px;
  padding: 10px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
}

.nav-menu a {
  border-radius: 4px;
  color: #26382e;
  display: block;
  padding: 10px 12px;
}

.nav-menu a:hover {
  background: #edf6ef;
  color: var(--green-800);
}

.nav-group:hover .nav-menu,
.nav-group:focus-within .nav-menu {
  display: block;
}

.nav-toggle {
  align-items: center;
  background: var(--green-800);
  border: 0;
  border-radius: 4px;
  color: #fff;
  display: none;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.hero {
  align-items: center;
  background: var(--green-950);
  color: #fff;
  display: grid;
  min-height: 650px;
  overflow: hidden;
  padding: 80px max(22px, calc((100vw - 1220px) / 2));
  position: relative;
}

.hero-bg {
  background:
    linear-gradient(90deg, rgba(5, 37, 27, 0.92), rgba(5, 37, 27, 0.68) 48%, rgba(5, 37, 27, 0.18)),
    url("https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&w=2400&q=85") center / cover;
  inset: 0;
  position: absolute;
}

.hero::after {
  background: linear-gradient(90deg, var(--gold-500), transparent);
  bottom: 0;
  content: "";
  height: 7px;
  left: 0;
  position: absolute;
  right: 0;
}

.hero-content {
  max-width: 820px;
  position: relative;
  z-index: 1;
}

.section-kicker {
  color: var(--gold-500);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 9px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.75rem, 6vw, 6.2rem);
  line-height: 0.94;
  margin: 0 0 14px;
  max-width: 920px;
}

.hero h2 {
  color: var(--gold-500);
  font-size: clamp(1.1rem, 2vw, 1.75rem);
  line-height: 1.2;
  margin: 0 0 22px;
  text-transform: uppercase;
}

.hero p:not(.section-kicker) {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.1rem;
  max-width: 710px;
}

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

.btn {
  align-items: center;
  border-radius: 4px;
  display: inline-flex;
  font-weight: 900;
  gap: 9px;
  justify-content: center;
  min-height: 46px;
  padding: 11px 17px;
  transition: transform 150ms ease, background 150ms ease;
}

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

.btn svg {
  height: 18px;
  width: 18px;
}

.btn-gold {
  background: var(--gold-500);
  color: #18251c;
}

.btn-gold:hover {
  background: var(--gold-600);
}

.btn-green {
  background: var(--green-800);
  color: #fff;
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: #fff;
}

.stats-strip {
  background: var(--surface);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: -52px auto 0;
  max-width: 1120px;
  position: relative;
  z-index: 3;
}

.stats-strip div {
  border-right: 1px solid var(--line);
  padding: 30px 26px;
  text-align: center;
}

.stats-strip div:last-child {
  border-right: 0;
}

.stats-strip strong {
  color: var(--green-800);
  display: block;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1;
}

.stats-strip span {
  color: var(--muted);
  font-weight: 800;
}

.section,
.quick-section,
.page-title,
.page-hero {
  padding-left: max(22px, calc((100vw - 1220px) / 2));
  padding-right: max(22px, calc((100vw - 1220px) / 2));
}

.section {
  padding-bottom: clamp(58px, 7vw, 96px);
  padding-top: clamp(58px, 7vw, 96px);
}

.muted-section,
.quick-section {
  background: #eef6ef;
}

.quick-section {
  padding-bottom: 54px;
  padding-top: 78px;
}

.quick-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.quick-card,
.info-card,
.book-card,
.news-card,
.testimonial-card,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 14px 36px rgba(5, 37, 27, 0.07);
}

.quick-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 176px;
  padding: 22px;
}

.quick-card svg,
.info-card svg,
.contact-card svg {
  color: var(--gold-600);
  height: 30px;
  width: 30px;
}

.quick-card strong,
.info-card h3,
.book-card h3,
.news-card h3 {
  color: var(--green-950);
  line-height: 1.25;
  margin: 0;
}

.quick-card span,
.info-card p,
.book-card p,
.news-card p,
.testimonial-card span,
.contact-card p,
.section-heading p,
.page-title p,
.page-hero p,
.note {
  color: var(--muted);
}

.section-heading {
  margin-bottom: 28px;
  max-width: 800px;
}

.section-heading h2,
.page-title h1,
.page-hero h1,
.cta-band h2 {
  color: var(--green-950);
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.08;
  margin: 0 0 14px;
}

.section-heading p,
.page-title p,
.page-hero p {
  font-size: 1.03rem;
  margin: 0;
  max-width: 780px;
}

.about-section {
  align-items: center;
  display: grid;
  gap: 34px;
  grid-template-columns: 1.1fr 0.75fr;
}

.feature-card-list {
  display: grid;
  gap: 12px;
}

.feature-card-list a {
  background: var(--green-900);
  border-left: 6px solid var(--gold-500);
  color: #fff;
  padding: 24px;
}

.feature-card-list strong,
.feature-card-list span {
  display: block;
}

.feature-card-list span {
  color: rgba(255, 255, 255, 0.74);
}

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

.info-card {
  padding: 24px;
}

.info-card h3 {
  font-size: 1.12rem;
  margin-top: 16px;
}

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

.book-cover {
  aspect-ratio: 4 / 5;
  background-position: center;
  background-size: cover;
}

.book-body,
.news-body {
  padding: 20px;
}

.pill {
  background: #e6f4ea;
  color: var(--green-800);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 12px;
  padding: 5px 9px;
  text-transform: uppercase;
}

.meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.card-actions {
  display: flex;
  gap: 9px;
  margin-top: 14px;
}

.card-actions a {
  align-items: center;
  background: #f2f6f1;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--green-800);
  display: inline-flex;
  font-weight: 900;
  gap: 6px;
  padding: 7px 10px;
}

.card-actions svg {
  height: 16px;
  width: 16px;
}

.cta-band {
  align-items: center;
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  color: #fff;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  padding: clamp(44px, 6vw, 72px) max(22px, calc((100vw - 1220px) / 2));
}

.cta-band h2 {
  color: #fff;
  max-width: 780px;
}

.cta-band p:not(.section-kicker) {
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  max-width: 780px;
}

.news-grid,
.testimonial-grid,
.contact-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-image {
  aspect-ratio: 16 / 10;
  background-position: center;
  background-size: cover;
}

.testimonial-card {
  padding: 24px;
}

.avatar {
  align-items: center;
  background: var(--green-800);
  border: 3px solid var(--gold-500);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  height: 54px;
  justify-content: center;
  margin-bottom: 16px;
  width: 54px;
}

blockquote {
  color: #27392f;
  margin: 0 0 16px;
}

.page-title {
  background: var(--green-950);
  color: #fff;
  padding-bottom: 70px;
  padding-top: 70px;
}

.page-title h1,
.page-title p {
  color: #fff;
}

.page-title p {
  color: rgba(255, 255, 255, 0.76);
}

.page-hero {
  align-items: center;
  background: #eff6ef;
  display: grid;
  gap: 42px;
  grid-template-columns: 1fr 0.82fr;
  padding-bottom: 76px;
  padding-top: 76px;
}

.page-hero-image {
  aspect-ratio: 16 / 11;
  background-position: center;
  background-size: cover;
  border-bottom: 8px solid var(--gold-500);
  box-shadow: var(--shadow);
}

.note {
  border-left: 5px solid var(--gold-500);
  margin: 24px 0 0;
  padding: 10px 0 10px 16px;
}

.flow-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.flow-grid div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 5px solid var(--green-800);
  padding: 22px;
}

.flow-grid span {
  align-items: center;
  background: var(--gold-500);
  border-radius: 999px;
  color: #172017;
  display: inline-flex;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  margin-bottom: 14px;
  width: 34px;
}

.flow-grid strong {
  display: block;
}

.flow-grid p {
  color: var(--muted);
  margin: 8px 0 0;
}

.form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 860px;
}

.form-grid label {
  color: var(--green-950);
  display: grid;
  font-weight: 800;
  gap: 7px;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  background: #fff;
  border: 1px solid #cfdcd2;
  border-radius: 4px;
  min-height: 44px;
  padding: 10px 12px;
}

.form-grid textarea {
  min-height: 120px;
  resize: vertical;
}

.span-2 {
  grid-column: 1 / -1;
}

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

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

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

th {
  background: var(--green-900);
  color: #fff;
}

.contact-card {
  padding: 24px;
}

.contact-card h3 {
  margin: 14px 0 8px;
}

.site-footer {
  background: var(--green-950);
  color: rgba(255, 255, 255, 0.76);
  padding: 52px max(22px, calc((100vw - 1220px) / 2)) 24px;
}

.footer-grid {
  display: grid;
  gap: 34px;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
}

.footer-brand {
  color: #fff;
  margin-bottom: 16px;
}

.footer-brand small,
.site-footer p {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  margin: 0 0 13px;
}

.site-footer a:not(.brand) {
  display: block;
  margin-bottom: 8px;
}

.social-links {
  display: flex;
  gap: 9px;
  margin-top: 14px;
}

.social-links a {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  display: inline-flex !important;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.social-links svg {
  height: 18px;
  width: 18px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 34px;
  padding-top: 20px;
}

@media (max-width: 1120px) {
  .quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .book-grid,
  .info-grid,
  .news-grid,
  .testimonial-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 920px) {
  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    align-items: stretch;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    left: 0;
    padding: 14px 22px 22px;
    position: absolute;
    right: 0;
    top: 78px;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav > a,
  .nav-parent {
    justify-content: space-between;
    width: 100%;
  }

  .nav-menu {
    box-shadow: none;
    display: block;
    min-width: 0;
    position: static;
  }

  .about-section,
  .page-hero,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-band {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 70px;
  }

  .brand-seal {
    height: 46px;
    width: 46px;
  }

  .brand small {
    display: none;
  }

  .main-nav {
    top: 70px;
  }

  .hero {
    min-height: 620px;
  }

  .hero-bg {
    background:
      linear-gradient(180deg, rgba(5, 37, 27, 0.92), rgba(5, 37, 27, 0.58)),
      url("https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&w=1600&q=85") center / cover;
  }

  .hero-actions,
  .card-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .stats-strip,
  .quick-grid,
  .book-grid,
  .info-grid,
  .news-grid,
  .testimonial-grid,
  .contact-grid,
  .flow-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .stats-strip {
    margin-top: 0;
  }

  .stats-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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