:root {
  /* Dsn-01: прежние значения шапки (до 2026-06-10):
     --header: rgba(8, 24, 42, 0.96);
     --header-text: #dbe7f5;
     --header-text-active: #ffffff;
  */
  --bg: #0b1f33;
  --bg-alt: #f4f7fb;
  --card: #ffffff;
  --text: #1a2b3c;
  --muted: #5b6b7c;
  --accent: #0B4664;
  --accent-dark: #083651;
  --border: #d9e2ec;
  --header: #E2EDEA;
  --header-text: #0B4664;
  --header-active-border: #597786;
  --max: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
.container { width: min(100% - 2rem, var(--max)); margin: 0 auto; }
.narrow { width: min(100% - 2rem, 760px); margin: 0 auto; }
.center { text-align: center; }
.lead { font-size: 1.125rem; color: var(--muted); }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header); color: var(--header-text);
  border-bottom: 1px solid rgba(11, 70, 100, .12);
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .75rem 0;
}
.logo img { height: 42px; width: auto; }
.site-nav ul {
  display: flex; flex-wrap: wrap; gap: .25rem 1rem;
  list-style: none; margin: 0; padding: 0;
}
.site-nav a {
  color: var(--header-text); text-decoration: none; font-size: .92rem;
  padding: .35rem .2rem; border-bottom: 2px solid transparent;
  opacity: .92;
}
.site-nav a:hover, .site-nav a.active {
  color: var(--header-text); opacity: 1; border-color: var(--header-active-border);
}
.nav-toggle {
  display: none; background: transparent; border: 1px solid rgba(11, 70, 100, .35);
  color: var(--header-text); font-size: 1.25rem; padding: .25rem .55rem; border-radius: 6px;
}

.page-hero {
  position: relative; color: #fff; padding: 4rem 0 3rem;
  background: linear-gradient(135deg, #0d2744, #123a63);
}
.page-hero.has-bg {
  background-size: cover; background-position: center;
  min-height: 320px; display: flex; align-items: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,24,42,.72), rgba(8,24,42,.88));
}

/* Шапки страниц: фон #0B4664; фото или заливка #E2EDEA поверх с opacity 40% */
.page-hero.hero-tone-wix {
  background: #0B4664;
  color: #fff;
}
.page-hero.hero-tone-wix .hero-bg,
.page-hero.hero-tone-wix .hero-tint {
  position: absolute;
  inset: 0;
}
.page-hero.hero-tone-wix .hero-bg {
  background-size: cover;
  background-position: center;
  opacity: 0.4;
}
.page-hero.hero-tone-wix .hero-tint {
  background: #E2EDEA;
  opacity: 0.4;
}
.page-hero.hero-tone-wix .hero-sub { color: #e8f1fb; }

.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.5rem); line-height: 1.2; }
.hero-sub { margin: .75rem 0 0; font-size: 1.05rem; max-width: 48rem; color: #e8f1fb; }

.section { padding: 3rem 0; }
.section.alt { background: var(--bg-alt); }

.btn {
  display: inline-block; padding: .75rem 1.25rem; border-radius: 8px;
  text-decoration: none; font-weight: 600; border: none; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { background: #fff; color: var(--accent); border: 1px solid var(--accent); }

.feature-grid, .cap-grid, .client-grid, .partner-grid, .logo-grid {
  display: grid; gap: 1.25rem;
}
.feature-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cap-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.client-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.partner-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.logo-grid {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  align-items: center; justify-items: center;
}
.logo-grid img { max-height: 64px; object-fit: contain; filter: grayscale(.1); }
.logo-grid img.logo-scale-80 { transform: scale(0.8); }
.sk-badge { display: inline-block; max-height: 56px; margin-right: .5rem; vertical-align: middle; }

.card, .cap-card, .client-card, .partner-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.25rem; box-shadow: 0 8px 24px rgba(16,42,67,.06);
}
.card h3, .cap-card h3, .client-card h3, .partner-card h3 { margin-top: 0; }
.cap-card img { border-radius: 8px; margin-bottom: .75rem; max-height: 180px; width: 100%; object-fit: cover; }
.client-card img { max-height: 56px; margin-bottom: .75rem; object-fit: contain; }
.client-card img.logo-scale-80 { transform: scale(0.8); transform-origin: left center; }
.client-card img.logo-scale-150 { transform: scale(1.5); transform-origin: left center; }
.partner-logo {
  height: 100px; display: flex; align-items: center; margin-bottom: .75rem;
}
.partner-logo a { display: flex; align-items: center; height: 100%; }
.partner-logo img { max-height: 100px; width: auto; object-fit: contain; }

.intro-with-image {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 1.5rem; align-items: center;
  margin-bottom: 2rem;
}
.docs-links ul { padding-left: 1.2rem; }
.highlight-box {
  margin-top: 2rem; padding: 1.25rem; border-left: 4px solid var(--accent);
  background: var(--bg-alt); border-radius: 0 8px 8px 0;
}

.prose { max-width: 820px; }
.prose h2 { margin-top: 2rem; }
.doc-list { padding-left: 1.2rem; }

.faq-item {
  border: 1px solid var(--border); border-radius: 10px; padding: .25rem 1rem;
  margin-bottom: .75rem; background: #fff;
}
.faq-item summary { cursor: pointer; font-weight: 600; padding: .6rem 0; }
.faq-body { padding-bottom: .75rem; color: var(--muted); }

.contact-info {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem;
}
.form-required-note {
  margin: -.5rem 0 1rem; color: var(--muted); font-size: .95rem;
}
.contact-form {
  position: relative;
  display: grid; gap: 1rem;
}
.contact-form > label { display: grid; gap: .35rem; font-weight: 600; }
.contact-form .field-label::after {
  content: ' *';
  color: #b42318;
  font-weight: 700;
}
.contact-form input, .contact-form textarea {
  font: inherit; padding: .7rem .8rem; border: 1px solid var(--border); border-radius: 8px;
}
.contact-form input.field-invalid,
.contact-form textarea.field-invalid {
  border-color: #b42318;
  box-shadow: 0 0 0 2px rgb(180 35 24 / 20%);
}
.form-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.form-status { font-weight: 600; }
.form-status.ok { color: #0a7a36; }
.form-status.err { color: #b42318; }

.materials .blog-post {
  padding-bottom: 2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--border);
}
.post-date { color: var(--muted); font-size: .9rem; }

.site-footer {
  background: #3A5268; color: #dbe7f5; padding: 2.5rem 0 1rem; margin-top: 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 1.5rem; align-items: start;
}
.footer-sk { display: flex; justify-content: flex-end; align-items: flex-start; }
.footer-sk img { max-height: 72px; width: auto; }
.footer-grid a { color: #9ec9ff; }
.footer-copy { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .9rem; color: #9bb0c7; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-sk { justify-content: flex-start; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--header); padding: .75rem 1rem 1rem;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .header-inner { position: relative; }
  .intro-with-image { grid-template-columns: 1fr; }
}
