:root {
  --bg: #0c0e12;
  --bg-elevated: #141820;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.14);
  --border: rgba(255, 255, 255, 0.08);
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Instrument Serif", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  z-index: 100;
}

.skip-link:focus {
  left: 0.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(12, 14, 18, 0.88);
  backdrop-filter: blur(12px);
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.logo-mark {
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 1rem;
  color: var(--text);
}

.logo-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  margin-top: 0.125rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.16);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.hero {
  padding: 4.5rem 0 4rem;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.18), transparent);
}

.hero-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(59, 130, 246, 0.35);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  line-height: 1.12;
  margin: 0 0 1rem;
  max-width: 18ch;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 46ch;
  margin: 0 0 1.75rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.section {
  padding: 4rem 0;
}

.section-muted {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.section h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 0.75rem;
}

.section-intro {
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0 0 2rem;
}

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.logo-placeholder {
  width: 120px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.card {
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.arch-diagram {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.arch-box {
  padding: 1.25rem;
  text-align: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-weight: 600;
  font-size: 0.9rem;
}

.arch-box span {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.pricing-teaser {
  text-align: center;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(59, 130, 246, 0.06);
}

.subbrand-link {
  padding: 3rem 0 4rem;
  text-align: center;
  color: var(--text-muted);
}

.subbrand-link strong {
  color: var(--text);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-footer .inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

code {
  font-size: 0.85em;
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

/* —— расширенный маркетинговый лейаут —— */
.header-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1rem 0;
}

.site-nav {
  display: none;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

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

.site-nav a:hover {
  color: var(--text);
}

@media (min-width: 1100px) {
  .site-nav {
    display: flex;
  }
}

.hero-stats {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.hero-stats li {
  padding: 1rem 1.15rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.hero-stats strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.hero-stats span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.grid-2col {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .grid-2col {
    grid-template-columns: 1fr 1fr;
  }
}

.grid-2col.tight {
  align-items: stretch;
}

.grid-3 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.callout {
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.callout h3 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.callout ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.callout li {
  margin-bottom: 0.5rem;
}

.callout-problem {
  background: rgba(255, 255, 255, 0.02);
}

.callout-solution {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.25);
}

.card-tall {
  min-height: 100%;
}

.card-num {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-foot {
  margin: 2rem 0 0;
  font-size: 0.875rem;
}

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

.small {
  font-size: 0.8125rem;
}

.steps-list {
  margin: 2rem 0 0;
  padding-left: 1.25rem;
  max-width: 58ch;
  color: var(--text-muted);
}

.steps-list li {
  margin-bottom: 0.65rem;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
}

.check-list li {
  position: relative;
  margin-bottom: 0.75rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.card.flat {
  background: rgba(255, 255, 255, 0.02);
}

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

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.compare-table th,
.compare-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table th {
  background: var(--bg-elevated);
  color: var(--text);
  font-weight: 600;
}

.compare-table td:first-child {
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.pricing-cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.pricing-card {
  padding: 1.75rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pricing-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.pricing-card.featured {
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.08);
}

.pricing-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.faq {
  max-width: 720px;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 0.65rem;
  padding: 0.25rem 1rem;
  background: rgba(255, 255, 255, 0.02);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.65rem 0;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details[open] summary {
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.5rem;
}

.faq p {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding: 2.5rem 0 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.footer-heading {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.footer-links li {
  margin-bottom: 0.35rem;
}

.footer-bottom {
  padding: 1rem 0 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-header .wrap.header-grid {
  width: min(1200px, 100% - 2.5rem);
}

.stats-strip-b2b {
  padding: 1.75rem 0;
  border-block: 1px solid var(--border);
  background: rgba(20, 24, 32, 0.85);
}

.stats-strip-b2b--metrics {
  padding-bottom: 1.25rem;
}

.stats-row-b2b {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem 1.5rem;
}

.stats-row-b2b--metrics {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.stat-b2b {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.stat-b2b--center {
  text-align: center;
  padding: 0.25rem 0;
}

.stat-b2b-metric {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.5vw, 2.2rem);
  font-weight: 400;
  color: var(--accent);
  line-height: 1.1;
}

.stat-b2b-value {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--accent);
}

.stats-b2b-disclaimer {
  margin: 1.15rem 0 0;
  font-size: 0.8125rem;
  text-align: center;
  max-width: 48rem;
  margin-inline: auto;
}

.case-row-b2b {
  margin-top: 0.5rem;
}

.case-b2b h3 {
  margin-top: 0;
  font-size: 1.05rem;
}

.lang-root--hidden {
  display: none !important;
}

.lang-toggle {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid var(--border);
  overflow: hidden;
  margin-right: 0.25rem;
}

.lang-toggle__btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
}

.lang-toggle__btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.lang-toggle__btn[aria-pressed="true"] {
  background: var(--accent-soft);
  color: var(--text);
}
