:root {
  color-scheme: light;
  --forest: #5d6e54;
  --forest-dark: #1d251d;
  --gold: #a08d58;
  --paper: #fffdf9;
  --warm: #f4efe4;
  --surface: rgba(255, 253, 249, 0.94);
  --line: #ddd8cd;
  --muted: #656b64;
  --danger: #8f3434;
  --shadow: 0 1.5rem 4rem rgba(29, 37, 29, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 15%, rgba(160, 141, 88, 0.15), transparent 27rem),
    linear-gradient(145deg, var(--paper), var(--warm));
  color: var(--forest-dark);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: var(--forest);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--forest-dark);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(160, 141, 88, 0.55);
  outline-offset: 3px;
}

.shell {
  width: min(72rem, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  padding: 1.25rem 0;
}

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  color: var(--forest-dark);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.055em;
  text-decoration: none;
}

.wordmark .mas {
  color: var(--forest);
}

.wordmark .tap {
  color: var(--gold);
}

.header-link {
  font-size: 0.95rem;
  font-weight: 700;
}

.hero-main {
  min-height: calc(100vh - 6rem);
  display: grid;
  align-content: center;
  padding: 2rem 0 4rem;
}

.hero-card,
.legal-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 2rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(1rem);
}

.hero-card {
  padding: clamp(2rem, 6vw, 5rem);
}

.hero-mark {
  position: absolute;
  right: -5rem;
  top: -5rem;
  width: 18rem;
  aspect-ratio: 1;
  border: 2.5rem solid rgba(93, 110, 84, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.hero-wordmark {
  margin: 0 0 2.5rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
}

h1,
h2,
h3,
p,
ul,
ol,
dl {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.hero-card h1 {
  max-width: 17ch;
  margin-bottom: 0;
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.lead {
  max-width: 44rem;
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 2.5rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid rgba(93, 110, 84, 0.28);
  border-radius: 999px;
  background: rgba(93, 110, 84, 0.08);
  color: var(--forest);
  font-weight: 700;
}

.status::before {
  width: 0.65rem;
  aspect-ratio: 1;
  content: "";
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0.3rem rgba(160, 141, 88, 0.14);
}

.sms-note {
  max-width: 49rem;
  margin: 3rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.98rem;
}

.legal-main {
  padding: 1.5rem 0 4rem;
}

.legal-card {
  padding: clamp(1.5rem, 5vw, 4rem);
}

.legal-card h1 {
  max-width: 23ch;
  margin-bottom: 0.8rem;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.document-meta {
  margin-bottom: 2.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-card section + section {
  margin-top: 2.4rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--line);
}

.legal-card h2 {
  margin-bottom: 0.85rem;
  font-size: 1.35rem;
}

.legal-card h3 {
  margin: 1.4rem 0 0.6rem;
  font-size: 1.05rem;
}

.legal-card li + li {
  margin-top: 0.45rem;
}

.legal-card ul,
.legal-card ol {
  padding-left: 1.35rem;
}

.notice {
  margin: 1.5rem 0;
  padding: 1rem 1.1rem;
  border-left: 0.3rem solid var(--gold);
  border-radius: 0.75rem;
  background: rgba(160, 141, 88, 0.1);
}

.notice-danger {
  border-left-color: var(--danger);
  background: rgba(143, 52, 52, 0.08);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.data-table th,
.data-table td {
  padding: 0.85rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: rgba(93, 110, 84, 0.08);
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.15rem;
  border-radius: 0.85rem;
  background: var(--forest);
  color: white;
  font-weight: 750;
  text-decoration: none;
}

.button-link:hover {
  background: var(--forest-dark);
  color: white;
}

.requisites {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.55rem 1rem;
}

.requisites dt {
  color: var(--muted);
}

.requisites dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.site-footer {
  padding: 2rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 1.2rem 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

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

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: flex-end;
  gap: 0.55rem 1rem;
}

.footer-nav a {
  white-space: nowrap;
}

.muted {
  color: var(--muted);
}

.break-anywhere {
  overflow-wrap: anywhere;
}

@media (max-width: 700px) {
  .site-header .shell,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-header .shell {
    align-items: flex-start;
  }

  .footer-nav {
    justify-content: flex-start;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td {
    display: block;
  }

  .data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .data-table tr + tr {
    margin-top: 1rem;
  }

  .data-table td::before {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--muted);
    content: attr(data-label);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
  }

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

  .requisites dd + dt {
    margin-top: 0.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
