:root {
  --green: #123c2f;
  --green-dark: #0d2c22;
  --ink: #17201c;
  --muted: #66706b;
  --faint: #a8b0ac;
  --bg: #f7f8f6;
  --paper: #ffffff;
  --line: #e2e7e4;
  --divider: #eef1ef;
  --wash: #f1f6f3;
  --chip: #dde9e2;
  --cream: #fae7c7;
  --orange: #d55600;
  --brown: #2e160d;
  --success: #2e6b4f;
  --success-bg: #ddf0e6;
  --warn: #a9691f;
  --warn-bg: #f6e9d8;
  --danger: #9e403a;
  --danger-bg: #f5dedb;
  --on-green: #eaf2ed;
  --on-green-muted: #a9c4b6;
  --shadow: 0 34px 70px -28px rgba(18, 60, 47, 0.36);
  --radius: 18px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

img {
  max-width: 100%;
  display: block;
}

:focus-visible {
  outline: 3px solid rgba(213, 86, 0, 0.35);
  outline-offset: 3px;
}

.page {
  min-height: 100vh;
  background: var(--bg);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 248, 246, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  gap: 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  font-weight: 800;
  font-size: 21px;
  color: var(--ink);
  letter-spacing: 0;
}

.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--green);
  display: grid;
  place-items: center;
}

.brand__mark img {
  width: 23px;
  height: 23px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 25px;
  flex: 1;
}

.nav a {
  font-weight: 700;
  font-size: 15px;
  color: var(--muted);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-menu {
  display: none;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}

.section {
  padding-top: 80px;
}

.hero {
  padding-top: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 58px;
  align-items: center;
}

.hero h1 {
  margin: 22px 0 0;
  max-width: 640px;
  font-size: 60px;
  line-height: 1.03;
  letter-spacing: 0;
  font-weight: 800;
  color: var(--ink);
}

.hero p {
  margin: 22px 0 0;
  max-width: 560px;
  font-weight: 500;
  font-size: 19px;
  line-height: 1.62;
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 7px 14px;
  background: var(--chip);
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.store-notice,
.store-button {
  min-height: 54px;
  border-radius: 14px;
  padding: 13px 18px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.store-notice {
  background: var(--wash);
  border: 1px solid var(--chip);
  color: var(--green);
  font-weight: 800;
}

.store-button {
  background: var(--ink);
  color: var(--on-green);
}

.store-button small {
  display: block;
  opacity: 0.72;
  font-weight: 700;
  font-size: 11px;
}

.store-button strong {
  display: block;
  font-size: 16px;
}

.link-arrow {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--green);
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.phone {
  width: 340px;
  justify-self: center;
  background: var(--bg);
  border-radius: 38px;
  border: 1px solid #dadfdb;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.phone__bar {
  height: 44px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 800;
}

.phone__screen {
  padding: 4px 18px 18px;
  display: grid;
  gap: 14px;
}

.phone__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone__date {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
}

.phone__hello {
  font-size: 21px;
  font-weight: 800;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: var(--on-green);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.next-card {
  background: var(--green);
  border-radius: 20px;
  padding: 18px;
  color: var(--on-green);
}

.next-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--on-green-muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.next-card__pill {
  border-radius: 999px;
  background: rgba(234, 242, 237, 0.14);
  padding: 4px 9px;
  color: var(--on-green);
  text-transform: none;
}

.next-card__title {
  font-weight: 800;
  font-size: 20px;
}

.next-card__sub {
  margin-top: 3px;
  font-size: 12px;
  color: var(--on-green-muted);
  font-weight: 700;
}

.schedule-mini {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 4px 14px;
}

.schedule-mini__row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--divider);
  align-items: center;
}

.schedule-mini__row:last-child {
  border-bottom: 0;
}

.schedule-mini time {
  color: var(--faint);
  font-size: 11px;
  font-weight: 800;
}

.schedule-mini span {
  font-weight: 800;
  font-size: 13px;
}

.task-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}

.task-mini__box {
  width: 19px;
  height: 19px;
  border-radius: 6px;
  border: 1.5px solid #d3d9d5;
  flex: none;
}

.task-mini strong {
  flex: 1;
  font-size: 13px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 11px;
  background: var(--wash);
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.pill--warn {
  color: var(--warn);
  background: var(--warn-bg);
}

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

.section-head h2,
.legal-hero h1,
.page-title {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--ink);
}

.section-head h2 {
  font-size: 38px;
  line-height: 1.15;
}

.section-head p {
  margin: 0;
  max-width: 380px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.55;
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

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

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.feature-card {
  min-height: 184px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.icon-box {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--wash);
  color: var(--green);
  display: grid;
  place-items: center;
  flex: none;
}

.feature-card h3,
.card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.feature-card p,
.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 500;
  font-size: 14px;
}

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

.step-number {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--chip);
  color: var(--green);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
}

.premium {
  background: var(--green);
  border-radius: 28px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  color: var(--on-green);
  overflow: hidden;
  position: relative;
}

.premium::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: rgba(250, 231, 199, 0.08);
}

.premium > * {
  position: relative;
  z-index: 1;
}

.premium h2 {
  margin: 12px 0 0;
  font-size: 36px;
  line-height: 1.15;
}

.premium p {
  color: var(--on-green-muted);
  line-height: 1.62;
  font-weight: 500;
}

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

.premium-list div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.plan {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(234, 242, 237, 0.08);
  border: 1px solid rgba(234, 242, 237, 0.16);
  border-radius: 18px;
  padding: 19px 21px;
}

.plan.is-selected,
.plan.is-featured {
  border-color: var(--cream);
}

.plan__text {
  flex: 1;
}

.plan__text strong {
  display: block;
  color: var(--on-green);
}

.plan__text span {
  display: block;
  margin-top: 3px;
  color: var(--on-green-muted);
  font-size: 13px;
}

.plan__price {
  font-size: 24px;
  font-weight: 800;
  color: var(--on-green);
}

.trust-card {
  min-height: 174px;
}

.site-footer {
  margin-top: 90px;
  background: var(--ink);
  color: var(--on-green-muted);
  padding: 56px 40px 38px;
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand .brand {
  color: var(--on-green);
}

.footer-brand p,
.footer-fine {
  color: #7fa492;
  font-weight: 500;
  line-height: 1.65;
}

.footer-col h3 {
  margin: 0 0 12px;
  color: #54615a;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.footer-col a {
  display: block;
  margin-top: 11px;
  color: var(--on-green-muted);
  font-weight: 700;
  font-size: 14px;
}

.footer-bottom {
  max-width: var(--max);
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(234, 242, 237, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid transparent;
  min-height: 44px;
  border-radius: 13px;
  padding: 11px 18px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--on-green);
  background: var(--green);
}

.btn:hover {
  background: var(--green-dark);
}

.btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.btn--secondary {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--line);
}

.btn--secondary:hover {
  background: var(--wash);
}

.btn--inverse {
  color: var(--green);
  background: var(--on-green);
  border-color: var(--on-green);
}

.btn--inverse:hover {
  background: var(--cream);
}

.btn--danger {
  color: #fff;
  background: var(--danger);
  border-color: var(--danger);
}

.btn--ghost {
  color: var(--green);
  background: transparent;
}

.btn--wide {
  width: 100%;
}

.legal-hero,
.service-hero {
  max-width: 980px;
  margin: 0 auto;
  padding: 58px 40px 20px;
}

.legal-hero h1,
.page-title {
  margin-top: 18px;
  font-size: 46px;
  line-height: 1.13;
}

.legal-hero p,
.service-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 500;
}

.legal-layout {
  max-width: 980px;
  margin: 22px auto 0;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 94px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}

.toc strong {
  display: block;
  margin-bottom: 10px;
}

.toc a {
  display: block;
  padding: 9px 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  border-bottom: 1px solid var(--divider);
}

.toc a:last-child {
  border-bottom: 0;
}

.doc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.doc section {
  padding-top: 18px;
  border-top: 1px solid var(--divider);
  margin-top: 18px;
}

.doc section:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.doc h2 {
  font-size: 22px;
  margin: 0 0 12px;
}

.doc p,
.rich-text p {
  color: var(--muted);
  line-height: 1.72;
  font-weight: 500;
}

.operator-box {
  background: var(--wash);
  border: 1px solid var(--chip);
  border-radius: 18px;
  padding: 18px;
  margin: 20px 0;
}

.form-grid,
.service-grid,
.account-grid {
  max-width: 1180px;
  margin: 34px auto 0;
  padding: 0 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.auth-card,
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
}

.field {
  display: grid;
  gap: 7px;
  margin-top: 15px;
}

.field label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 50px;
  border: 1.5px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
  color: var(--ink);
  padding: 0 15px;
  outline: 0;
}

.field textarea {
  min-height: 132px;
  padding-top: 14px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--green);
}

.checkbox-row {
  margin-top: 16px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;
}

.checkbox-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--green);
  flex: none;
}

.checkbox-row span {
  color: var(--ink);
  line-height: 1.5;
  font-weight: 600;
  font-size: 14px;
}

.alert {
  margin-top: 16px;
  border-radius: 16px;
  padding: 15px 16px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-weight: 600;
  line-height: 1.55;
}

.alert--info {
  background: var(--wash);
  color: var(--green);
}

.alert--success {
  background: var(--success-bg);
  color: var(--success);
}

.alert--warning {
  background: var(--warn-bg);
  color: var(--warn);
}

.alert--error {
  background: var(--danger-bg);
  color: var(--danger);
}

.account-grid {
  grid-template-columns: 250px minmax(0, 1fr);
}

.account-side {
  position: sticky;
  top: 94px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
}

.account-side h2 {
  margin: 8px 10px 14px;
  font-size: 19px;
}

.account-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--muted);
  padding: 12px;
  cursor: pointer;
  font-weight: 800;
  text-align: left;
}

.account-tab.is-active {
  background: var(--green);
  color: var(--on-green);
}

.account-main {
  display: grid;
  gap: 18px;
}

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

.kv {
  border-bottom: 1px solid var(--divider);
  padding-bottom: 12px;
}

.kv small {
  display: block;
  color: var(--faint);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.kv strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
}

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

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  background: var(--paper);
}

th,
td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--divider);
  text-align: left;
  color: var(--muted);
  font-size: 14px;
}

th {
  background: var(--wash);
  color: var(--ink);
  font-weight: 800;
}

.empty {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
}

.empty h3 {
  margin: 12px 0 6px;
}

.empty p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.faq {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  overflow: hidden;
}

.faq-item button {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  text-align: left;
}

.faq-answer {
  padding: 0 18px 18px;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 500;
}

.status-screen {
  max-width: 720px;
  margin: 0 auto;
  padding: 70px 40px 0;
}

.status-icon {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  background: var(--wash);
  color: var(--green);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.status-icon--success {
  background: var(--success-bg);
  color: var(--success);
}

.status-icon--error {
  background: var(--danger-bg);
  color: var(--danger);
}

.backend-list {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 600;
}

.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(234, 242, 237, 0.35);
  border-top-color: currentColor;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 980px) {
  .site-header__inner {
    padding: 14px 20px;
  }

  .nav,
  .header-actions {
    display: none;
  }

  .menu-button {
    display: inline-flex;
    margin-left: auto;
  }

  .mobile-menu.is-open {
    display: grid;
    gap: 2px;
    padding: 8px 20px 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .mobile-menu a {
    padding: 14px 0;
    border-bottom: 1px solid var(--divider);
    font-size: 20px;
    font-weight: 800;
  }

  .container,
  .legal-hero,
  .service-hero,
  .legal-layout,
  .form-grid,
  .service-grid,
  .account-grid {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 42px;
    gap: 34px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero p {
    font-size: 17px;
  }

  .phone {
    width: min(340px, 100%);
  }

  .section {
    padding-top: 56px;
  }

  .section-head {
    display: grid;
  }

  .section-head h2 {
    font-size: 31px;
  }

  .grid--3,
  .grid--4,
  .grid--5,
  .premium,
  .footer-grid,
  .legal-layout,
  .form-grid,
  .service-grid,
  .account-grid,
  .kv-grid {
    grid-template-columns: 1fr;
  }

  .premium {
    padding: 28px 22px;
  }

  .premium h2 {
    font-size: 28px;
  }

  .site-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .toc,
  .account-side {
    position: static;
  }

  .legal-hero h1,
  .page-title {
    font-size: 36px;
  }
}

@media (max-width: 540px) {
  .brand {
    font-size: 18px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-actions,
  .store-notice,
  .btn {
    width: 100%;
  }

  .btn,
  .store-notice,
  .store-button {
    justify-content: center;
  }

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

  .doc,
  .auth-card,
  .panel {
    padding: 20px;
  }
}
