:root {
  --bg: #d9dce0;
  --surface: #f6f8fb;
  --ink: #101b2b;
  --muted: #4b5d72;
  --line: #c7d0db;
  --brand: #64cc13;
  --brand-strong: #59ba10;
  --nav-bg: #ffffff;
  --hero-a: #15395f;
  --hero-b: #0e2239;
  --hero-c: #285a3f;
  --footer-bg: #071428;
  --shadow: 0 18px 45px rgba(16, 27, 43, 0.15);
}

body.theme-dark {
  --bg: #101826;
  --surface: #172335;
  --ink: #eaf0f6;
  --muted: #b5c2d0;
  --line: #2a3b53;
  --nav-bg: #111f31;
  --hero-a: #0f2d4a;
  --hero-b: #0a1729;
  --hero-c: #234b35;
  --footer-bg: #050d1c;
  --shadow: 0 18px 45px rgba(2, 8, 16, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  min-height: 56px;
}

.brand-logo {
  display: block;
  width: auto;
  height: 56px;
  max-width: min(300px, 48vw);
  object-fit: contain;
  filter: none;
  transition: filter 0.22s ease;
}

body.theme-dark .brand-logo {
  /* Keep logo readable on dark headers by switching to a light variant via filter */
  filter: brightness(0) invert(1) contrast(1.06);
}

body.theme-dark .brand {
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
}

body:not(.theme-dark) .brand {
  background: transparent;
  border: 0;
}

.brand-fallback-text {
  display: none;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.brand.brand-fallback .brand-fallback-text {
  display: inline-block;
}

.brand-mark {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-dropdown-toggle .caret {
  font-size: 0.72em;
  transition: transform 0.18s ease;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0;
  min-width: 290px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 50;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.9rem 1.05rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.nav-dropdown-menu a + a {
  border-top: 1px solid var(--line);
}

.nav-dropdown-menu a:hover {
  background: color-mix(in srgb, var(--brand) 12%, var(--surface));
}

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

.nav-dropdown:hover .caret,
.nav-dropdown:focus-within .caret,
.nav-dropdown.open .caret {
  transform: rotate(180deg);
}

.main-nav a,
.footer-grid a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
}

.main-nav a:hover,
.footer-grid a:hover {
  color: var(--brand);
}

.main-nav a.active {
  color: var(--brand);
}

.nav-dropdown-toggle.active {
  color: var(--brand);
}

@media (min-width: 981px) {
  .nav-dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 12px;
  }
}

.main-nav a.active {
  color: var(--brand);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.2rem 1.6rem;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

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

.btn-primary {
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 12px 22px rgba(100, 204, 19, 0.22);
}

.btn-primary:hover {
  background: var(--brand-strong);
}

.btn-outline {
  color: var(--brand-strong);
  border-color: var(--brand);
  background: transparent;
}

.theme-toggle {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.35rem;
  min-width: 88px;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.theme-toggle span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

body:not(.theme-dark) .theme-toggle .sun {
  background: var(--brand);
  color: #ffffff;
  transform: translateX(0);
}

body.theme-dark .theme-toggle .sun {
  background: transparent;
  color: var(--muted);
}

body.theme-dark .theme-toggle .moon {
  background: var(--brand);
  color: #ffffff;
}

body:not(.theme-dark) .theme-toggle .moon {
  background: transparent;
  color: var(--muted);
}

.hero {
  min-height: 740px;
  display: flex;
  align-items: center;
  padding: 6rem 0;
  color: #ecf2f8;
  background:
    radial-gradient(420px 420px at 90% 18%, rgba(113, 205, 57, 0.45), transparent 75%),
    radial-gradient(420px 420px at 8% 95%, rgba(54, 199, 166, 0.2), transparent 75%),
    linear-gradient(102deg, var(--hero-c) 0%, var(--hero-a) 43%, var(--hero-b) 100%);
}

.page-hero {
  padding: 5rem 0;
  color: #ecf2f8;
  background:
    radial-gradient(340px 340px at 86% 20%, rgba(113, 205, 57, 0.4), transparent 75%),
    linear-gradient(110deg, var(--hero-c) 0%, var(--hero-a) 47%, var(--hero-b) 100%);
}

.page-hero h1 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.08;
}

.page-hero p {
  margin: 1rem 0 0;
  max-width: 65ch;
  color: #d2dfeb;
  font-size: clamp(0.98rem, 1.2vw, 1.1rem);
  line-height: 1.55;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--brand);
  font-size: 1.05rem;
  letter-spacing: 0.07em;
  font-weight: 800;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 1.06;
  max-width: 16ch;
}

.hero-copy {
  max-width: 66ch;
  color: #d2dfeb;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  margin: 1.8rem 0;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: clamp(0.95rem, 1.35vw, 1.15rem);
}

.checklist li::before {
  content: "✔";
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 900;
}

section {
  padding: 5.6rem 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.2vw, 2.8rem);
  line-height: 1.14;
}

.cards-grid {
  margin-top: 2.1rem;
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.stat-box,
.value-list article,
.testimonial,
.visual-card,
.faq-visual {
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.card {
  padding: 1.65rem;
}

.card h3 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.card p {
  margin: 0;
  font-size: clamp(0.98rem, 1.2vw, 1.15rem);
  line-height: 1.52;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4rem;
  align-items: center;
}

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

.content-card {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1.35rem;
}

.content-card h3 {
  margin: 0;
  font-size: clamp(1.15rem, 1.4vw, 1.4rem);
}

.content-card p,
.content-card li {
  color: var(--muted);
  font-size: clamp(0.95rem, 1.05vw, 1.05rem);
  line-height: 1.45;
}

.content-card .btn {
  margin-top: 0.8rem;
}

.plain-list {
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
}

.process-list {
  display: grid;
  gap: 0.9rem;
}

.process-step {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1.1rem 1.2rem;
}

.process-step h3 {
  margin: 0;
  font-size: clamp(1.05rem, 1.35vw, 1.3rem);
}

.process-step p {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.25rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #ffffff;
  color: #18263a;
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  font: inherit;
}

body.theme-dark .field input,
body.theme-dark .field select,
body.theme-dark .field textarea {
  background: #0f1b2c;
  color: #eaf0f6;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-status {
  margin: 0.65rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.form-status.success {
  color: #1aa75b;
  font-weight: 700;
}

.form-status.error {
  color: #d64b4b;
  font-weight: 700;
}

.legal-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.35rem;
}

.legal-wrap h2,
.legal-wrap h3 {
  font-size: clamp(1.35rem, 2vw, 2rem);
  margin: 0 0 0.65rem;
}

.legal-wrap p,
.legal-wrap li {
  color: var(--muted);
  line-height: 1.48;
}

.copy p {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.48;
  color: var(--muted);
}

.button-row {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.visual-card {
  min-height: 420px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 88%, rgba(69, 146, 211, 0.28), transparent 37%),
    radial-gradient(circle at 88% 18%, rgba(109, 200, 64, 0.35), transparent 30%),
    linear-gradient(105deg, #275a3a 0%, #0f3b55 50%, #122a54 100%);
}

.visual-card .panel {
  width: 62%;
  height: 48%;
  border-radius: 18px;
  background: rgba(239, 244, 250, 0.9);
  box-shadow: 0 18px 40px rgba(8, 20, 33, 0.35);
}

.visual-card .badge {
  position: absolute;
  right: 18%;
  top: 34%;
  width: 180px;
  height: 140px;
  border-radius: 22px;
  background: rgba(243, 247, 252, 0.94);
  transform: rotate(-10deg);
}

.visual-card .caption {
  position: absolute;
  left: 1.8rem;
  bottom: 1.8rem;
  right: 1.8rem;
  background: rgba(8, 20, 39, 0.55);
  border-radius: 12px;
  color: #eff3f8;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 1rem 1.1rem;
}

.stats {
  padding-top: 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.stat-box {
  text-align: center;
  padding: 1.3rem 1rem;
}

.stat-box h3 {
  margin: 0;
  font-size: clamp(1.7rem, 2.7vw, 2.8rem);
  color: #113d69;
}

body.theme-dark .stat-box h3 {
  color: #8cc4ff;
}

.stat-box p {
  margin: 0.45rem 0 0;
  font-size: clamp(0.95rem, 1.1vw, 1.1rem);
}

.faq-intro,
.section-intro {
  font-size: clamp(0.98rem, 1.2vw, 1.1rem);
  color: var(--muted);
}

.accordion {
  margin-top: 1.2rem;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
}

details {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

details:last-child {
  border-bottom: none;
}

summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.3rem;
  font-size: clamp(1.05rem, 1.45vw, 1.35rem);
  font-weight: 800;
}

summary::-webkit-details-marker {
  display: none;
}

details p {
  margin: 0;
  padding: 0 1.3rem 1.2rem;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.05vw, 1.05rem);
}

details[open] {
  background: color-mix(in srgb, var(--brand) 14%, var(--surface));
}

.faq-visual {
  min-height: 400px;
  padding: 1.5rem;
  background:
    linear-gradient(110deg, #336f42 0%, #1c4250 52%, #1f3464 100%);
  position: relative;
  overflow: hidden;
}

.figure {
  position: absolute;
  bottom: 80px;
  width: 94px;
  height: 130px;
  background: #e8edf4;
  border-radius: 30px;
}

.figure::before {
  content: "";
  position: absolute;
  width: 70px;
  height: 70px;
  background: #c59878;
  border-radius: 50%;
  top: -58px;
  left: 12px;
}

.figure.one {
  left: 16%;
  transform: scale(0.8);
}

.figure.two {
  left: 44%;
}

.figure.three {
  left: 70%;
  transform: scale(0.85);
}

.faq-visual p {
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1.1rem;
  margin: 0;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  background: rgba(9, 24, 42, 0.65);
  color: #f0f4f9;
  font-weight: 700;
}

.value-list {
  display: grid;
  gap: 1rem;
}

.value-list article {
  padding: 1.35rem 1.4rem;
}

.value-list h3 {
  margin: 0;
  font-size: clamp(1.2rem, 1.6vw, 1.6rem);
}

.value-list p {
  margin: 0.7rem 0 0;
}

.center {
  text-align: center;
}

.testimonial-row {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.testimonial-track {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.testimonial {
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.testimonial h3 {
  margin: 0;
  font-size: clamp(1.15rem, 1.35vw, 1.35rem);
}

.testimonial .stars {
  margin: 0.6rem 0;
  color: #efaa00;
  letter-spacing: 0.12em;
}

.testimonial p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.05vw, 1.05rem);
  line-height: 1.45;
}

.carousel-btn {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 2rem;
  cursor: pointer;
}

.site-footer {
  background: var(--footer-bg);
  color: #e8eef5;
  margin-top: 4rem;
}

.footer-grid {
  padding: 4rem 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}

.footer-grid h3,
.footer-grid h4 {
  margin: 0 0 0.9rem;
  color: #ffffff;
}

.footer-grid p,
.footer-grid a {
  margin: 0 0 0.5rem;
  color: #d7e2f2;
  display: block;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  padding: 1.5rem 0 2rem;
}

.footer-bottom p {
  margin: 0.35rem 0;
}

.footer-bottom .copyright {
  color: var(--brand);
  font-weight: 700;
}

@media (max-width: 1180px) {
  .cards-grid,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 980px) {
  .site-header {
    position: static;
  }

  .nav-wrap {
    min-height: auto;
    padding: 1rem 0;
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 0.9rem;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    width: 100%;
    margin-top: 0.45rem;
  }

  .split {
    grid-template-columns: 1fr;
  }

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

  .contact-layout,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .reverse-mobile > :first-child {
    order: 2;
  }

  .reverse-mobile > :last-child {
    order: 1;
  }

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

@media (max-width: 680px) {
  section {
    padding: 4.2rem 0;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
  }

  .nav-actions {
    width: 100%;
    justify-content: space-between;
  }

  .btn {
    min-height: 48px;
    font-size: 1rem;
  }

  .brand-logo {
    height: 46px;
  }

  .hero {
    min-height: auto;
    padding: 4rem 0;
  }

  .cards-grid,
  .stats-grid,
  .footer-grid,
  .testimonial-track,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-row {
    grid-template-columns: 1fr;
  }

  .carousel-btn {
    display: none;
  }
}
