:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --panel-strong: #eef3f7;
  --ink: #1c2733;
  --muted: #5f7284;
  --line: #d8e0e8;
  --line-strong: #c4cfda;
  --accent: #0a7a63;
  --accent-dark: #065f4d;
  --accent-soft: #e5f6f2;
  --warm: #c48433;
  --danger: #c74f4f;
  --shadow: 0 18px 40px rgba(28, 39, 51, 0.06);
  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 999px;
  --max-width: 1240px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Onest", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
}

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

button,
.button {
  font: inherit;
}

.site-topline {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  background: #eef2f6;
  color: var(--muted);
  font-size: 0.88rem;
}

.topline-inner,
.page-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

.page-shell {
  padding: 20px 0 48px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.15)),
    linear-gradient(135deg, var(--accent), #65b8a4);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-family: "Manrope", "Onest", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.95rem;
  color: var(--muted);
}

.site-nav a {
  position: relative;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

.site-nav a.is-active {
  color: var(--ink);
  font-weight: 700;
}

.site-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: var(--radius-sm);
  background: var(--accent);
}

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

.lang-switch {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel-soft);
}

.lang-button {
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
  cursor: pointer;
}

.lang-button.is-active {
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(28, 39, 51, 0.08);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 600;
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-dark);
}

.button-secondary {
  border-color: var(--line-strong);
  background: var(--panel);
}

.button-ghost {
  border-color: var(--line);
  background: transparent;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.88rem;
}

.crumbs span::after {
  content: "/";
  margin-left: 8px;
}

.crumbs span:last-child::after {
  content: "";
  margin: 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 20px;
  margin-bottom: 24px;
}

.hero-copy,
.hero-aside,
.card,
.section,
.sidebar,
.content-panel,
.footer-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-aside,
.section,
.footer-panel {
  padding: 28px;
}

.eyebrow {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel-soft);
}

.copy-block h1,
.section-head h2,
.page-title {
  margin: 18px 0 0;
  font-family: "Manrope", "Onest", sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.copy-block h1 {
  font-size: clamp(2.5rem, 4vw, 4.3rem);
  line-height: 1.02;
}

.page-title {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.06;
}

.lead {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.7;
}

.hero-actions,
.tag-row,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.hero-list,
.feature-list,
.plain-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.hero-aside {
  display: grid;
  gap: 16px;
}

.aside-block {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel-soft);
}

.aside-block strong,
.metric strong {
  display: block;
  font-family: "Manrope", "Onest", sans-serif;
  font-size: 1.9rem;
  line-height: 1;
}

.aside-block p,
.metric p,
.card p,
.content-panel p,
.footer-panel p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.metrics,
.cards-3,
.cards-4,
.doc-grid,
.product-grid,
.quick-grid,
.dashboard-grid {
  display: grid;
  gap: 16px;
}

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

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

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

.card h3,
.content-panel h3,
.sidebar h3,
.doc-item h3,
.table-card h3 {
  margin: 0;
  font-family: "Manrope", "Onest", sans-serif;
  font-size: 1.25rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section {
  margin-bottom: 20px;
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.section-head h2 {
  font-size: clamp(1.85rem, 3vw, 2.8rem);
  line-height: 1.08;
}

.page-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.sidebar {
  padding: 22px;
  align-self: start;
}

.sidebar-nav {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.sidebar-nav a {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-soft);
  color: var(--ink);
}

.sidebar-note {
  margin-top: 20px;
  padding: 14px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.92rem;
  line-height: 1.5;
}

.content-stack {
  display: grid;
  gap: 20px;
}

.content-panel {
  padding: 22px;
}

.tag {
  display: inline-flex;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 0.84rem;
}

.table-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.table-row {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 14px;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.table-row:first-child {
  border-top: 0;
  background: var(--panel-soft);
  font-weight: 700;
  color: var(--ink);
}

.doc-item,
.product-card,
.dashboard-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel-soft);
}

.doc-item p,
.product-card p,
.dashboard-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.product-meta span {
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  background: var(--panel);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}

.status-good {
  color: var(--accent-dark);
}

.status-warn {
  color: var(--warm);
}

.status-bad {
  color: var(--danger);
}

.footer-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
}

.site-footer {
  display: grid;
  align-items: stretch;
  gap: 24px;
}

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

.footer-column {
  display: grid;
  align-content: start;
  gap: 12px;
}

.footer-column strong {
  font-family: "Manrope", "Onest", sans-serif;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.footer-nav {
  display: grid;
  gap: 10px;
}

.footer-nav a {
  color: var(--muted);
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--ink);
}

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

.footer-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.footer-note {
  margin: 0;
  max-width: 560px;
  color: var(--muted);
  line-height: 1.65;
}

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

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

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

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

.field label {
  font-size: 0.92rem;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink);
}

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

.field-help,
.inline-note {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.is-hidden {
  display: none;
}

@media (max-width: 1120px) {
  .hero,
  .page-layout,
  .cards-4,
  .doc-grid,
  .dashboard-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .site-header {
    flex-wrap: wrap;
    justify-content: center;
  }

  .site-nav {
    justify-content: center;
  }
}

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

  .hero,
  .page-layout,
  .metrics,
  .cards-3,
  .cards-4,
  .cards-2,
  .doc-grid,
  .product-grid,
  .quick-grid,
  .dashboard-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .field-grid-2 {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-aside,
  .section,
  .sidebar,
  .content-panel,
  .footer-panel {
    padding: 20px;
  }

  .footer-panel,
  .footer-bottom,
  .header-actions,
  .hero-actions,
  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .header-actions,
  .lang-switch {
    width: 100%;
  }
}
