:root {
  --green: #0b6b45;
  --green-dark: #08422d;
  --gold: #c7932d;
  --ink: #17211c;
  --muted: #647169;
  --line: #dfe8e2;
  --soft: #f6faf7;
  --sky: #e7f1f4;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(16, 44, 31, .12);
}

* {
  box-sizing: border-box;
}

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

img {
  max-width: 100%;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(223, 232, 226, .82);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--green-dark);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--green), #16835c);
  box-shadow: 0 10px 24px rgba(11, 107, 69, .22);
}

.brand-mark svg {
  width: 21px;
  height: 21px;
}

.brand-logo {
  width: 38px;
  height: 38px;
}

.brand,
.eyebrow,
h1,
h2,
h3,
.lede,
.small,
.trust-item,
.btn,
.choice,
label,
.pill,
.admin-table th,
.admin-table td,
.form-error {
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language {
  min-width: 132px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--white);
  color: var(--ink);
}

.btn {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
  color: var(--green-dark);
  background: var(--white);
  cursor: pointer;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(16, 44, 31, .12);
}

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

.btn-gold {
  border-color: rgba(199, 147, 45, .42);
  color: #51390d;
  background: #fff8e8;
}

.hero {
  padding: 34px 0 40px;
  background:
    linear-gradient(180deg, rgba(246, 250, 247, .75), rgba(255, 255, 255, 0) 65%),
    var(--white);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  gap: 26px;
  align-items: stretch;
}

.hero-copy {
  padding: 36px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  width: fit-content;
  border: 1px solid rgba(199, 147, 45, .34);
  border-radius: 999px;
  padding: 7px 12px;
  color: #68490f;
  background: #fff8e8;
  font-size: .9rem;
  font-weight: 700;
}

h1 {
  margin: 18px 0 14px;
  font-size: 4.35rem;
  line-height: .96;
  letter-spacing: 0;
  color: var(--green-dark);
}

.lede {
  max-width: 54ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

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

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 28px;
  max-width: 540px;
}

.trust-item {
  border-left: 3px solid var(--gold);
  padding: 7px 10px;
  background: rgba(246, 250, 247, .78);
  color: var(--green-dark);
  font-weight: 700;
  font-size: .9rem;
}

.hero-photo {
  height: 560px;
  min-height: 0;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
  background: var(--sky);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.assistant-band {
  padding: 34px 0 52px;
}

.assistant-layout {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(340px, .58fr);
  gap: 22px;
  align-items: start;
}

.panel,
.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 42px rgba(16, 44, 31, .08);
}

.panel {
  padding: 22px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
}

h2 {
  margin: 0;
  color: var(--green-dark);
  font-size: 2.05rem;
  letter-spacing: 0;
}

.small {
  color: var(--muted);
  line-height: 1.55;
  font-size: .95rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 18px 0 22px;
}

.step-dot {
  height: 7px;
  border-radius: 999px;
  background: var(--line);
}

.step-dot.active {
  background: var(--green);
}

.question {
  display: none;
}

.question.active {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 18px;
  align-items: center;
}

.question h3 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.question-copy {
  min-width: 0;
}

.step-visual {
  height: 160px;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  padding: 14px;
  background: linear-gradient(180deg, var(--soft), var(--white));
  overflow: hidden;
}

.step-visual img {
  width: 100%;
  max-width: 148px;
  max-height: 132px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 14px 30px rgba(16, 44, 31, .13);
}

.step-icon {
  width: 96px;
  height: 96px;
  color: var(--green);
}

.step-icon .gold {
  color: var(--gold);
}

.field {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.date-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

label {
  color: var(--green-dark);
  font-weight: 700;
  font-size: .92rem;
}

select,
input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--white);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.choice {
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  display: flex;
  align-items: center;
  background: var(--white);
  color: var(--green-dark);
  text-align: left;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.25;
}

.choice.active {
  border-color: var(--green);
  background: var(--soft);
  box-shadow: inset 0 0 0 1px var(--green);
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
}

.form-error {
  min-height: 22px;
  margin: 16px 0 0;
  color: #8a2f18;
  font-weight: 700;
  line-height: 1.45;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: .52;
  transform: none;
  box-shadow: none;
}

.result {
  padding: 22px;
  position: sticky;
  top: 96px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--green-dark);
  background: var(--soft);
  font-weight: 800;
  font-size: .88rem;
}

.status-mark {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
}

.result h3 {
  margin: 16px 0 8px;
  color: var(--green-dark);
  font-size: 1.4rem;
  letter-spacing: 0;
}

.doc-list {
  list-style: none;
  padding: 0;
  margin: 14px 0;
  display: grid;
  gap: 9px;
}

.doc-list li {
  display: flex;
  gap: 9px;
  color: var(--ink);
}

.check {
  color: var(--green);
  font-weight: 900;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.mini {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--soft);
}

.mini strong {
  display: block;
  color: var(--green-dark);
  margin-bottom: 3px;
}

.services {
  padding: 54px 0;
  background: linear-gradient(180deg, var(--soft), var(--white));
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.service {
  padding: 18px;
}

.service-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--green-dark);
  background: #fff8e8;
  margin-bottom: 14px;
}

.service h3,
.admin h3 {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-size: 1.08rem;
  letter-spacing: 0;
}

.platform {
  padding: 54px 0 64px;
}

.platform-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 22px;
  align-items: start;
}

.flow {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.flow-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  background: var(--white);
  color: var(--green-dark);
  font-weight: 700;
}

.admin {
  padding: 18px;
  overflow: hidden;
}

.admin-table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: .92rem;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-weight: 700;
}

.admin-table .pill {
  display: inline-block;
  max-width: 100%;
}

.pill {
  display: inline-flex;
  max-width: 100%;
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--soft);
  color: var(--green-dark);
  font-weight: 800;
  line-height: 1.25;
  white-space: normal;
}

.legal {
  padding: 26px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.6;
}

.legal .shell {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.copyright {
  color: var(--green-dark);
  font-weight: 700;
}

@media (max-width: 900px) {
  .hero-grid,
  .assistant-layout,
  .platform-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 20px 0 0;
  }

  h1 {
    font-size: 3.25rem;
  }

  h2 {
    font-size: 1.9rem;
  }

  .hero-photo {
    height: 390px;
  }

  .result {
    position: static;
  }

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

@media (max-width: 620px) {
  .shell {
    width: min(100% - 22px, 1120px);
  }

  .nav {
    align-items: stretch;
    flex-direction: column;
    padding: 12px 0;
  }

  .nav-actions,
  .hero-actions,
  .wizard-actions,
  .legal .shell {
    flex-direction: column;
    align-items: stretch;
  }

  .language,
  .btn {
    width: 100%;
  }

  .trust-row,
  .steps,
  .date-grid,
  .choice-grid,
  .mini-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    height: 310px;
  }

  h1 {
    font-size: 2.55rem;
  }

  h2 {
    font-size: 1.65rem;
  }

  .panel,
  .result {
    padding: 16px;
  }

  .question.active {
    grid-template-columns: 1fr;
  }

  .step-visual {
    height: 132px;
  }

  .step-visual img {
    max-width: 124px;
    max-height: 108px;
  }

  .admin {
    overflow-x: auto;
  }

  .admin-table,
  .admin-table thead,
  .admin-table tbody,
  .admin-table tr,
  .admin-table th,
  .admin-table td {
    display: block;
    width: 100%;
  }

  .admin-table {
    border-collapse: separate;
    border-spacing: 0;
  }

  .admin-table thead {
    display: none;
  }

  .admin-table tr {
    border-top: 1px solid var(--line);
    padding: 10px 0;
  }

  .admin-table td {
    padding: 4px 0;
    border-bottom: 0;
  }

  .admin-table .pill {
    display: inline-flex;
    max-width: 100%;
  }
}
