:root {
  --ink: #10211d;
  --muted: #64706b;
  --forest: #0d342d;
  --forest-2: #16483e;
  --paper: #f4f1e7;
  --paper-2: #ece8db;
  --surface: #fffdf7;
  --line: #d9d7cb;
  --accent: #d8ff52;
  --accent-strong: #bde82e;
  --orange: #ff8a5b;
  --sky: #90d9ec;
  --danger: #a33a35;
  --success: #297258;
  --warning: #986019;
  --shadow: 0 18px 50px rgba(16, 33, 29, 0.09);
  --radius: 20px;
  --radius-small: 12px;
  --shell: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% -10%, rgba(216, 255, 82, 0.16), transparent 26rem),
    var(--paper);
  font-family:
    Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

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

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

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 8px;
  color: white;
  background: var(--forest);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(16, 33, 29, 0.1);
  background: rgba(244, 241, 231, 0.91);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 34px;
  align-items: center;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: 10px;
  background: var(--forest);
}

.brand-mark span {
  border-radius: 2px;
  background: var(--accent);
}

.brand-mark span:last-child {
  grid-column: 1 / -1;
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy strong {
  font-size: 18px;
  letter-spacing: -0.04em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.main-nav a {
  padding: 9px 12px;
  border-radius: 9px;
  color: #34433e;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--forest);
  background: rgba(13, 52, 45, 0.08);
}

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

.menu-toggle {
  display: none;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}

.button {
  display: inline-flex;
  min-height: 48px;
  gap: 9px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

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

.button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(29, 122, 103, 0.3);
  outline-offset: 2px;
}

.button[disabled] {
  opacity: 0.52;
  cursor: not-allowed;
  transform: none;
}

.button-small {
  min-height: 40px;
  padding-inline: 15px;
  border-radius: 10px;
  font-size: 14px;
}

.button-wide {
  width: 100%;
}

.button-dark {
  color: white;
  background: var(--forest);
  box-shadow: 0 9px 24px rgba(13, 52, 45, 0.16);
}

.button-dark:hover {
  background: var(--forest-2);
}

.button-accent {
  color: var(--forest);
  background: var(--accent);
  box-shadow: 0 10px 30px rgba(189, 232, 46, 0.2);
}

.button-accent:hover {
  background: var(--accent-strong);
}

.button-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 253, 247, 0.64);
}

.button-ghost:hover {
  background: white;
}

.button-danger {
  border-color: rgba(163, 58, 53, 0.22);
  color: var(--danger);
  background: #fff5f3;
}

.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 14px;
  color: var(--forest);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 22px;
  height: 2px;
  content: "";
  background: currentColor;
}

.hero {
  overflow: hidden;
  padding: 68px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 56px;
  align-items: center;
}

.hero h1,
.page-hero h1,
.auth-panel h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(42px, 6vw, 79px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.hero h1 span {
  color: var(--forest-2);
}

.hero-lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: #4b5b56;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

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

.hero-facts {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.hero-facts li {
  display: grid;
  gap: 2px;
}

.hero-facts strong {
  color: var(--forest);
  font-size: 17px;
}

.hero-facts span {
  color: var(--muted);
  font-size: 12px;
}

.hero-board {
  position: relative;
  min-height: 475px;
  padding: 28px;
  border-radius: 30px;
  color: white;
  background:
    linear-gradient(135deg, rgba(216, 255, 82, 0.11), transparent 50%),
    var(--forest);
  box-shadow: 0 30px 80px rgba(13, 52, 45, 0.2);
}

.hero-board::after {
  position: absolute;
  right: -45px;
  bottom: -70px;
  width: 230px;
  height: 230px;
  border: 44px solid rgba(216, 255, 82, 0.12);
  border-radius: 50%;
  content: "";
}

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

.board-head strong {
  font-size: 14px;
}

.live-chip,
.status-chip,
.pill {
  display: inline-flex;
  min-height: 28px;
  gap: 7px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
}

.live-chip {
  color: var(--accent);
  background: rgba(216, 255, 82, 0.12);
}

.live-chip::before,
.footer-status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(216, 255, 82, 0.12);
}

.route-map {
  position: relative;
  display: grid;
  gap: 16px;
  margin-top: 38px;
}

.route-node {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 75px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
}

.route-node:nth-child(2) {
  margin-left: 46px;
}

.route-node:nth-child(3) {
  margin-left: 92px;
  color: var(--forest);
  background: var(--accent);
}

.route-index {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: var(--forest);
  background: white;
  font-weight: 800;
}

.route-node small {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.62);
}

.route-node:nth-child(3) small {
  color: rgba(13, 52, 45, 0.7);
}

.route-count {
  font-size: 12px;
  font-weight: 800;
}

.pilot-banner {
  margin-top: 26px;
  padding: 14px 16px;
  border: 1px solid rgba(216, 255, 82, 0.22);
  border-radius: 14px;
  color: #dce7e3;
  background: rgba(0, 0, 0, 0.13);
  font-size: 13px;
}

.pilot-banner strong {
  color: var(--accent);
}

.section {
  padding: 72px 0;
}

.section-compact {
  padding: 40px 0;
}

.section-dark {
  color: white;
  background: var(--forest);
}

.section-paper {
  border-block: 1px solid rgba(16, 33, 29, 0.08);
  background: var(--paper-2);
}

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

.section-head h2,
.content-heading {
  max-width: 760px;
  margin: 0;
  font-size: clamp(29px, 4vw, 48px);
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.section-head p {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
}

.section-dark .section-head p {
  color: rgba(255, 255, 255, 0.65);
}

.value-grid,
.product-grid,
.metric-grid,
.feature-grid,
.task-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.value-card,
.feature-card,
.metric-card,
.task-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.value-card {
  min-height: 240px;
}

.value-card-index {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: var(--forest);
  background: var(--accent);
  font-size: 13px;
  font-weight: 850;
}

.value-card h3,
.feature-card h3,
.task-card h3 {
  margin: 34px 0 10px;
  font-size: 21px;
  letter-spacing: -0.025em;
}

.value-card p,
.feature-card p,
.task-card p {
  margin: 0;
  color: var(--muted);
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin: 24px 0 28px;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}

.search-box input {
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.category-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.category-chip {
  min-height: 35px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #3e4c47;
  background: rgba(255, 253, 247, 0.7);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.category-chip:hover,
.category-chip.active {
  border-color: var(--forest);
  color: white;
  background: var(--forest);
}

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

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.product-image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #dfe6df;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 280ms ease;
}

.product-card:hover .product-image img {
  transform: scale(1.025);
}

.product-badges {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
}

.pill {
  color: var(--forest);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
}

.pill-ad {
  color: #673b08;
  background: #ffe1ad;
}

.pill-demo {
  color: #51386a;
  background: #eee1ff;
}

.product-body {
  padding: 18px;
}

.product-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stock {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--success);
}

.stock::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
  background: currentColor;
}

.product-card h3 {
  min-height: 2.7em;
  margin: 12px 0 12px;
  font-size: 19px;
  letter-spacing: -0.025em;
  line-height: 1.32;
}

.product-card h3 a {
  text-decoration: none;
}

.product-bottom {
  display: flex;
  gap: 12px;
  align-items: end;
  justify-content: space-between;
}

.price {
  display: grid;
  line-height: 1.1;
}

.price strong {
  font-size: 21px;
  letter-spacing: -0.025em;
}

.price small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.seller-link {
  color: var(--muted);
  font-size: 12px;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
}

.flow-step {
  min-height: 235px;
  padding: 24px;
  background: var(--forest);
}

.flow-step span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
}

.flow-step h3 {
  margin: 52px 0 10px;
  font-size: 21px;
}

.flow-step p {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
}

.cta-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  padding: 34px;
  border-radius: 24px;
  color: white;
  background:
    linear-gradient(100deg, rgba(216, 255, 82, 0.14), transparent 55%),
    var(--forest);
}

.cta-band h2 {
  margin: 0 0 8px;
  font-size: clamp(27px, 4vw, 42px);
  letter-spacing: -0.045em;
}

.cta-band p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
}

.page-hero {
  padding: 58px 0 30px;
}

.page-hero h1 {
  font-size: clamp(39px, 5vw, 66px);
}

.page-hero p {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb a {
  text-decoration: none;
}

.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 15px 17px;
  border: 1px solid rgba(152, 96, 25, 0.25);
  border-radius: 13px;
  color: #6d491c;
  background: #fff6df;
  font-size: 14px;
}

.notice strong {
  display: block;
}

.notice-success {
  border-color: rgba(41, 114, 88, 0.24);
  color: #245f4c;
  background: #eaf8f1;
}

.notice-danger {
  border-color: rgba(163, 58, 53, 0.22);
  color: var(--danger);
  background: #fff1ef;
}

.notice-info {
  border-color: rgba(25, 110, 137, 0.2);
  color: #225c70;
  background: #ebf8fc;
}

.empty-state {
  display: grid;
  min-height: 280px;
  place-items: center;
  padding: 40px;
  border: 1px dashed #bcbcb2;
  border-radius: var(--radius);
  text-align: center;
  background: rgba(255, 253, 247, 0.45);
}

.empty-state h2 {
  margin: 0 0 8px;
}

.empty-state p {
  max-width: 520px;
  margin: 0 0 20px;
  color: var(--muted);
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 48px;
  padding-bottom: 72px;
}

.product-detail-image {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
}

.product-detail-image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.product-detail-content {
  align-self: center;
}

.product-detail-content h1 {
  margin: 12px 0 18px;
  font-size: clamp(34px, 4.8vw, 58px);
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.product-detail-content .description {
  color: var(--muted);
  font-size: 18px;
}

.detail-price {
  margin: 28px 0;
  font-size: 34px;
  font-weight: 820;
  letter-spacing: -0.04em;
}

.seller-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  margin: 24px 0;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}

.seller-box span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.seller-box strong {
  display: block;
  margin-top: 3px;
}

.checkout-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(400px, 1.14fr);
  gap: 32px;
  align-items: stretch;
  padding: 52px 0 72px;
}

.auth-side {
  display: flex;
  min-height: 620px;
  flex-direction: column;
  justify-content: space-between;
  padding: 38px;
  border-radius: 28px;
  color: white;
  background:
    radial-gradient(circle at 80% 10%, rgba(216, 255, 82, 0.18), transparent 20rem),
    var(--forest);
}

.auth-side h2 {
  max-width: 480px;
  margin: 0;
  font-size: clamp(36px, 5vw, 58px);
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.auth-checks {
  display: grid;
  gap: 13px;
  padding: 0;
  list-style: none;
}

.auth-checks li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.76);
}

.auth-checks li::before {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--forest);
  content: "✓";
  background: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.auth-panel {
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
}

.auth-panel h1 {
  font-size: clamp(34px, 4vw, 48px);
}

.auth-panel > p {
  margin: 12px 0 28px;
  color: var(--muted);
}

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

.field {
  display: grid;
  gap: 7px;
}

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

.field label,
.field > span {
  font-size: 12px;
  font-weight: 760;
}

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

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

.field small {
  color: var(--muted);
  font-size: 11px;
}

.check-field {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
}

.check-field input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--forest);
}

.check-field span {
  color: #4f5c57;
  font-size: 13px;
}

.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 22px;
}

.form-help {
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px;
  padding: 36px 0 72px;
}

.dashboard-nav {
  position: sticky;
  top: 98px;
  align-self: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.dashboard-nav h2 {
  margin: 8px 10px 14px;
  font-size: 13px;
}

.dashboard-nav a {
  display: flex;
  min-height: 42px;
  align-items: center;
  padding: 0 11px;
  border-radius: 9px;
  color: #4e5c57;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.dashboard-nav a:hover,
.dashboard-nav a.active {
  color: white;
  background: var(--forest);
}

.dashboard-content {
  min-width: 0;
}

.dashboard-head {
  display: flex;
  gap: 20px;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.dashboard-head h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.045em;
}

.dashboard-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.status-chip {
  color: #4b4840;
  background: var(--paper-2);
}

.status-chip.verified,
.status-chip.active,
.status-chip.success,
.status-chip.published,
.status-chip.connected {
  color: #185944;
  background: #dff5ea;
}

.status-chip.SUBMITTED {
  color: #185944;
  background: #dff5ea;
}

.status-chip.pending,
.status-chip.pending_email,
.status-chip.moderation,
.status-chip.running,
.status-chip.SANDBOX {
  color: #7c5118;
  background: #fff0cf;
}

.status-chip.rejected,
.status-chip.blocked,
.status-chip.error,
.status-chip.suspended {
  color: #8b312c;
  background: #ffe3df;
}

.status-chip.unknown {
  color: #8b312c;
  background: #ffe3df;
}

.status-chip.demo,
.status-chip.DISCONNECTED {
  color: #5d4a72;
  background: #eee5f8;
}

.metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 24px;
}

.metric-card {
  min-height: 142px;
}

.metric-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.metric-card strong {
  display: block;
  margin-top: 19px;
  font-size: 32px;
  letter-spacing: -0.05em;
}

.panel {
  margin-bottom: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.panel-head {
  display: flex;
  gap: 16px;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.panel-head h2,
.panel h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.025em;
}

.panel-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

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

th {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.row-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

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

.integration-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
}

.integration-head {
  display: flex;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}

.integration-card h3 {
  margin: 0;
  font-size: 17px;
}

.integration-card p {
  min-height: 2.7em;
  margin: 9px 0;
  color: var(--muted);
  font-size: 12px;
}

.integration-card ul {
  margin: 12px 0 18px;
  padding-left: 18px;
  color: #485650;
  font-size: 12px;
}

.compact-form {
  display: grid;
  gap: 11px;
  margin-top: 17px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.compact-form .field {
  gap: 5px;
}

.compact-form .field input,
.compact-form .field select {
  min-height: 40px;
  padding: 8px 10px;
  font-size: 13px;
}

.code-block {
  overflow-x: auto;
  padding: 16px;
  border-radius: 12px;
  color: #d8efe7;
  background: #102a25;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 48px;
  padding: 28px 0 80px;
}

.legal-content {
  max-width: 850px;
}

.legal-content h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 5vw, 58px);
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.legal-content h2 {
  margin: 38px 0 12px;
  font-size: 24px;
  letter-spacing: -0.025em;
}

.legal-content h3 {
  margin: 28px 0 8px;
  font-size: 18px;
}

.legal-content p,
.legal-content li {
  color: #46534e;
}

.legal-content li + li {
  margin-top: 7px;
}

.legal-meta {
  margin: 12px 0 26px;
  color: var(--muted);
  font-size: 13px;
}

.legal-toc {
  position: sticky;
  top: 100px;
  align-self: start;
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}

.legal-toc strong {
  margin-bottom: 4px;
  font-size: 12px;
}

.legal-toc a {
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}

.legal-toc a:hover {
  color: var(--forest);
}

.requisites {
  display: grid;
  grid-template-columns: 200px 1fr;
  overflow: hidden;
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.requisites dt,
.requisites dd {
  margin: 0;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.requisites dt {
  color: var(--muted);
  background: var(--paper-2);
  font-size: 12px;
}

.requisites dd {
  background: var(--surface);
}

.requisites dt:last-of-type,
.requisites dd:last-of-type {
  border-bottom: 0;
}

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

.task-card h3 {
  margin-top: 20px;
}

.task-reward {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin: 18px 0 4px;
}

.task-reward strong {
  font-size: 26px;
}

.task-reward span {
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  padding: 55px 0 20px;
  color: #e6eeeb;
  background: #0a2924;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
}

.brand-footer {
  color: white;
}

.brand-footer .brand-mark {
  background: var(--accent);
}

.brand-footer .brand-mark span {
  background: var(--forest);
}

.brand-footer .brand-copy small {
  color: rgba(255, 255, 255, 0.46);
}

.footer-note {
  max-width: 360px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
}

.site-footer h2 {
  margin: 0 0 13px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer > .footer-grid > div:not(:first-child) {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

.site-footer p {
  margin-block: 0;
}

.footer-status {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px !important;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.footer-bottom {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-top: 42px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
}

.cookie-panel {
  position: fixed;
  z-index: 300;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  width: min(calc(100% - 40px), 820px);
  margin-inline: auto;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  color: white;
  background: rgba(11, 40, 35, 0.97);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(18px);
}

.cookie-panel[hidden] {
  display: none;
}

.cookie-panel strong {
  display: block;
}

.cookie-panel p {
  margin: 4px 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.cookie-panel a {
  color: var(--accent);
  font-size: 12px;
}

.cookie-actions {
  display: flex;
  gap: 8px;
}

.cookie-panel .button-ghost {
  border-color: rgba(255, 255, 255, 0.25);
  color: white;
  background: transparent;
}

.toast-region {
  position: fixed;
  z-index: 500;
  top: 92px;
  right: 20px;
  display: grid;
  width: min(calc(100% - 40px), 380px);
  gap: 10px;
}

.toast {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--forest);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  animation: toast-in 220ms ease both;
}

.toast.error {
  border-left-color: var(--danger);
}

.toast.success {
  border-left-color: var(--success);
}

.toast strong {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
}

.toast span {
  color: var(--muted);
  font-size: 12px;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
}

.loading-screen {
  min-height: 620px;
  padding-block: 80px;
}

.skeleton {
  border-radius: 12px;
  background:
    linear-gradient(
      90deg,
      rgba(217, 215, 203, 0.55),
      rgba(255, 255, 255, 0.75),
      rgba(217, 215, 203, 0.55)
    );
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

.skeleton-title {
  width: min(650px, 80%);
  height: 70px;
}

.skeleton-line {
  width: min(460px, 60%);
  height: 20px;
  margin-top: 24px;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 52px;
}

.skeleton-card {
  height: 320px;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

.hide {
  display: none !important;
}

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

.text-danger {
  color: var(--danger);
}

.text-success {
  color: var(--success);
}

.mono {
  font-family: "Cascadia Code", Consolas, monospace;
}

@media (max-width: 1040px) {
  .header-inner {
    grid-template-columns: auto auto 1fr;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    position: fixed;
    top: 76px;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    padding: 18px 20px 26px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }

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

  .main-nav a {
    padding: 13px;
  }

  .header-actions {
    justify-self: end;
  }

  .hero-grid,
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .hero-board {
    min-height: 420px;
  }

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

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

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

  .footer-grid > div:last-child {
    grid-column: 2 / -1;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    order: -1;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .header-inner {
    grid-template-columns: auto auto;
    min-height: 68px;
  }

  .menu-toggle {
    justify-self: end;
  }

  .main-nav {
    top: 68px;
  }

  .header-actions {
    display: none;
  }

  .hero {
    padding-top: 46px;
  }

  .hero h1 {
    font-size: clamp(42px, 14vw, 62px);
  }

  .hero-board {
    min-height: 390px;
    padding: 22px;
  }

  .route-node {
    grid-template-columns: 38px 1fr;
  }

  .route-node:nth-child(2) {
    margin-left: 20px;
  }

  .route-node:nth-child(3) {
    margin-left: 40px;
  }

  .route-count {
    display: none;
  }

  .section {
    padding: 55px 0;
  }

  .section-head,
  .dashboard-head,
  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .value-grid,
  .product-grid,
  .metric-grid,
  .feature-grid,
  .task-grid,
  .integration-grid,
  .skeleton-grid {
    grid-template-columns: 1fr;
  }

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

  .flow-step {
    min-height: 190px;
  }

  .flow-step h3 {
    margin-top: 32px;
  }

  .cta-band {
    grid-template-columns: 1fr;
  }

  .catalog-toolbar {
    grid-template-columns: 1fr;
  }

  .product-detail {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .auth-side {
    min-height: 480px;
    padding: 26px;
  }

  .auth-panel {
    padding: 24px;
  }

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

  .field-full {
    grid-column: auto;
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-nav {
    position: static;
    display: flex;
    overflow-x: auto;
  }

  .dashboard-nav h2 {
    display: none;
  }

  .dashboard-nav a {
    flex: 0 0 auto;
  }

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

  .requisites dt {
    border-bottom: 0;
  }

  .legal-toc {
    grid-template-columns: 1fr 1fr;
  }

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

  .footer-grid > div:first-child,
  .footer-grid > div:last-child {
    grid-column: 1 / -1;
  }

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

  .cookie-panel {
    right: 10px;
    bottom: 10px;
    left: 10px;
    grid-template-columns: 1fr;
    width: calc(100% - 20px);
  }

  .cookie-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
