/* =========================================================
   База Директоров — общий стиль сайта
   ========================================================= */

:root {
  --color-bg: #0b1220;
  --color-bg-soft: #101a2e;
  --color-surface: #16223b;
  --color-surface-hover: #1c2c4a;
  --color-border: #263857;
  --color-text: #eaf0fb;
  --color-text-muted: #9fb0cc;
  --color-primary: #3d7dfc;
  --color-primary-dark: #2a5fd6;
  --color-accent: #ff9f43;
  --color-success: #33c58f;

  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --container-width: 1160px;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.25);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-base);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
}

/* ---------- Типографика ---------- */

h1, h2, h3, h4 {
  margin: 0 0 16px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.75rem, 4vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 1.5vw, 1.5rem); }

p { margin: 0 0 16px; color: var(--color-text-muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--color-primary);
  display: inline-block;
}

.lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 640px;
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 40px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 1.125rem;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

@media (max-width: 560px) {
  .btn { white-space: normal; text-align: center; }
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 12px 28px rgba(61, 125, 252, 0.38);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-ghost:hover {
  border-color: var(--color-primary);
  box-shadow: 0 12px 28px rgba(6, 10, 20, 0.35);
}

.btn-block { width: 100%; }

/* ---------- Хедер ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-text);
  white-space: nowrap;
  flex-shrink: 0;
  text-shadow: 0 0 8px rgba(61, 125, 252, 0.5), 0 0 18px rgba(61, 125, 252, 0.28);
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-mark svg {
  filter: drop-shadow(0 0 4px rgba(61, 125, 252, 0.6)) drop-shadow(0 0 10px rgba(61, 125, 252, 0.35));
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav a {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.nav a:hover, .nav a.active { color: var(--color-text); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  padding: 16px 16px;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.header-cta { display: flex; align-items: center; gap: 24px; }
.header-cta .btn-primary { padding: 12px 24px; }

.nav-contact { display: none; }
.nav-link-mobile-only { display: none; }

@media (max-width: 1000px) {
  .nav {
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--color-bg-soft);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 20px;
    gap: 4px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--color-border); }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .header-cta { display: none; }
  .nav-link-kontakty { display: none; }
  .nav-link-mobile-only { display: block; }

  .nav-contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
  }
  .nav-contact a {
    padding: 8px 0;
    border-bottom: none;
    font-weight: 700;
    color: var(--color-text);
  }
}

/* ---------- Hero ---------- */

.hero {
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 900px) {
  .hero { padding: 64px 0 48px; }
}

.hero::before {
  content: "";
  position: absolute;
  top: -200px; right: -160px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(61, 125, 252, 0.28), transparent 70%);
  z-index: 0;
}

.hero .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
.hero-grid > * { min-width: 0; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }

.hero-stats {
  display: flex;
  gap: 16px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  flex: 1 1 172px;
  min-width: 172px;
}

.hero-stat-icon {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  background: rgba(61, 125, 252, 0.15);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-stat-icon svg {
  width: 28px;
  height: 28px;
}

.hero-stat .label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

@media (max-width: 900px) {
  .hero-stat {
    flex: 1 1 100%;
    max-width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }
  .hero-stat-icon {
    width: 54px;
    height: 54px;
  }
  .hero-stat-icon svg {
    width: 26px;
    height: 26px;
  }
  .hero-stat .label {
    font-size: 0.95rem;
  }
}

.hero-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  margin-top: 36px;
  height: 480px;
  display: flex;
  flex-direction: column;
}
@media (max-width: 900px) {
  .hero-card { display: none; }
}

/* ---------- Барабан сфер деятельности в hero-card ---------- */

.hero-card-reel {
  padding-bottom: 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.hero-card-reel-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  line-height: 1.4;
  flex-shrink: 0;
}
.reel-window {
  height: 325px;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
}
.reel-track {
  display: flex;
  flex-direction: column;
  animation: reel-scroll 52s linear infinite;
}
.reel-item {
  height: 65px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--color-border);
}
.reel-item-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reel-item .tag {
  flex-shrink: 0;
  width: 156px;
  text-align: center;
  background: rgba(212, 175, 55, 0.14);
  color: #d4af37;
  padding: 4px 0;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
}
@keyframes reel-scroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-1560px); }
}
@media (prefers-reduced-motion: reduce) {
  .reel-track { animation: none; }
}

.hero-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.92rem;
}
.hero-card-row:last-child { border-bottom: none; }
.hero-card-row .tag {
  background: rgba(51, 197, 143, 0.15);
  color: var(--color-success);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* ---------- Секции ---------- */

section { padding: 96px 0; }
@media (max-width: 640px) {
  section { padding: 48px 0; }
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head.left { margin: 0 0 48px; text-align: left; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.grid-3 > *, .grid-2 > *, .grid-4 > * { min-width: 0; }
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--color-primary); transform: translateY(-3px); }
@media (max-width: 640px) {
  .card { padding: 24px; }
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(61, 125, 252, 0.15);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.section-alt { background: var(--color-bg-soft); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.step-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 8px;
}

/* ---------- Прайс ---------- */

.pricing-card {
  max-width: 700px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
}
@media (max-width: 640px) {
  .pricing-card { padding: 24px 24px; }
}

.pricing-group {
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
}
.pricing-group:first-child { padding-top: 0; }

.pricing-group h3 {
  margin-bottom: 4px;
}

.pricing-note {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 4px 0 0;
}
.pricing-note strong { color: var(--color-text); }
.pricing-note-muted { font-size: 0.86rem; }

.pricing-cta {
  width: 100%;
  margin-top: 28px;
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.price-features li {
  padding: 8px 0;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.92rem;
  display: flex;
  gap: 8px;
}
.price-features li:first-child { border-top: none; }
.price-features li::before { content: "✓"; color: var(--color-success); font-weight: 700; }

/* ---------- Таблица баз ---------- */

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

table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.92rem;
}
th { color: var(--color-text-muted); font-weight: 600; background: var(--color-surface); }
tr:last-child td { border-bottom: none; }

/* ---------- Отзывы ---------- */

.quote-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
}
.quote-card p { color: var(--color-text); font-size: 1.02rem; }
.quote-author { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.quote-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--color-surface-hover);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--color-primary);
}
.quote-name { font-weight: 600; font-size: 0.9rem; }
.quote-role { font-size: 0.8rem; color: var(--color-text-muted); }

/* ---------- CTA-блок ---------- */

.cta-band {
  background: linear-gradient(120deg, var(--color-primary), #1c3f9e);
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
  color: #fff;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); margin: 0 auto 28px; }
.cta-band .btn-ghost { border-color: rgba(255,255,255,0.5); color: #fff; }
.cta-band .btn-ghost:hover { border-color: #fff; }

/* ---------- Блок «Не смогли найти нужную информацию» ---------- */

.support-band {
  background: linear-gradient(120deg, var(--color-primary), #1c3f9e);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.support-band-text h2 { color: #fff; margin-bottom: 8px; }
.support-band-subtitle {
  color: rgba(255,255,255,0.88);
  font-weight: 600;
  margin-bottom: 12px;
}
.support-band-text p {
  color: rgba(255,255,255,0.72);
  max-width: 460px;
  margin: 0;
}
.support-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(170px, 1fr));
  gap: 12px;
  flex-shrink: 0;
}
.support-card {
  display: block;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  text-align: center;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.support-card:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(6,10,20,0.25); }
.support-card-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5b6b85;
  margin-bottom: 4px;
}
.support-card-value {
  display: block;
  font-weight: 700;
  color: #0b1220;
  font-size: 1rem;
}

@media (max-width: 860px) {
  .support-band { flex-direction: column; align-items: stretch; text-align: center; padding: 32px 24px; }
  .support-band-text p { max-width: none; margin: 0 auto; }
  .support-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .support-cards { grid-template-columns: 1fr; }
}

/* ---------- Формы ---------- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

label {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

input:not([type="checkbox"]):not([type="radio"]), textarea, select {
  width: 100%;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.95rem;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-primary);
}

.field { margin-bottom: 4px; }
.field-full { grid-column: 1 / -1; }

.form-note { font-size: 0.8rem; color: var(--color-text-muted); margin-top: 8px; }

/* ---------- Контакты ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-list-wrap { max-width: 560px; }

.contact-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}
.contact-item .card-icon { margin-bottom: 0; flex-shrink: 0; }
.contact-item .label-strong { color: var(--color-text); font-weight: 600; margin-bottom: 4px; }

.map-placeholder {
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: 40px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-top: 24px;
}

/* ---------- Контакты: мобильная версия (только kontakty.html) ---------- */

.mobile-contact-block { display: none; }

@media (max-width: 640px) {
  .page-kontakty .legal-bar,
  .page-kontakty .site-header,
  .page-kontakty main {
    display: none;
  }
  .page-kontakty .mobile-contact-block {
    display: block;
    padding: 20px 20px 48px;
  }
}

.mobile-contact-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 0 auto 50px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-text);
  text-shadow: 0 0 8px rgba(61, 125, 252, 0.5), 0 0 18px rgba(61, 125, 252, 0.28);
  width: fit-content;
}

.mobile-contact-heading {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-text);
  margin: 0 0 20px;
}

.mobile-msg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.mobile-msg-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 0;
  color: var(--color-text);
  min-height: 48px;
}

.mobile-msg-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--color-surface);
  border: 1px solid rgba(125, 178, 255, 0.55);
  color: #7db2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(125, 178, 255, 0.45), 0 0 22px rgba(61, 125, 252, 0.32);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.mobile-msg-icon svg {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 0 4px rgba(125, 178, 255, 0.6)) drop-shadow(0 0 10px rgba(61, 125, 252, 0.35));
}
.mobile-msg-item:hover .mobile-msg-icon,
.mobile-msg-item:focus-visible .mobile-msg-icon {
  border-color: #a7c8ff;
  box-shadow: 0 0 14px rgba(125, 178, 255, 0.65), 0 0 32px rgba(61, 125, 252, 0.5);
}

.mobile-msg-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.mobile-info-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-info-label {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}
.mobile-info-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-text);
}
.mobile-info-value:hover { color: var(--color-primary); }

.mobile-privacy-note {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  text-align: center;
  margin: 8px 0 0;
}
.mobile-privacy-note a { color: var(--color-text-muted); text-decoration: underline; }
.mobile-privacy-note a:hover { color: var(--color-primary); }

/* ---------- Блог ---------- */

.post-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.post-thumb {
  height: 160px;
  background: linear-gradient(135deg, var(--color-surface-hover), var(--color-bg-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 2rem;
  font-weight: 800;
  overflow: hidden;
}
.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}
.post-body { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.post-meta { font-size: 0.78rem; color: var(--color-text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.04em; }
.post-body h3 { margin-bottom: 12px; }
.post-body p { flex-grow: 1; }
.post-link { font-weight: 600; color: var(--color-primary); font-size: 0.9rem; margin-top: 12px; }

.article-body { max-width: 900px; margin: 0 auto; }
.article-body h1 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); line-height: 1.15; }
.article-body h2 { font-size: clamp(1.5rem, 1rem + 1.4vw, 1.75rem); line-height: 1.2; margin-top: 40px; }
.article-body p { color: var(--color-text-muted); font-size: 1.02rem; }
.article-meta { color: var(--color-text-muted); font-size: 0.85rem; margin-bottom: 32px; }

/* ---------- Карточка «CEO» на страницах статей блога ---------- */

.founder-card {
  width: 100%;
  height: 318px;
  margin: 0 0 40px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 6px 40px 26px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.founder-photo {
  position: relative;
  flex-shrink: 0;
  width: 165px;
  height: 165px;
}
.founder-photo img {
  width: 165px;
  height: 165px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  box-shadow: 0 0 0 1px rgba(125, 178, 255, 0.35), 0 0 24px rgba(61, 125, 252, 0.25);
}
.founder-badge {
  position: absolute;
  left: 50%;
  bottom: -2px;
  transform: translateX(calc(-50% + 30px));
  background: var(--color-primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: background-color .2s ease;
}
.founder-badge:hover { background: var(--color-primary-dark); }

.founder-content {
  flex: 1;
  min-width: 0;
  height: 165px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.founder-card h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 1rem + 1.6vw, 2rem); line-height: 1.2; }
.founder-content p.lead { margin: 0 0 8px; font-weight: 600; color: var(--color-text); font-size: 1.05rem; }
.founder-content p:not(.lead) { margin: 0; color: var(--color-text-muted); font-size: 0.95rem; }
.founder-icons { display: flex; justify-content: flex-end; gap: 16px; margin-top: 32px; }
.founder-icons .social-icon { width: 72px; height: 72px; }
.founder-icons .social-icon svg { width: 36px; height: 36px; }
.founder-icons-label { display: none; }

@media (max-width: 760px) {
  .founder-card {
    height: auto;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px;
    gap: 32px;
  }
  .founder-photo, .founder-photo img { width: 140px; height: 140px; }
  .founder-badge { bottom: -16px; transform: translateX(-50%); }
  .founder-content { height: auto; justify-content: flex-start; gap: 16px; }
  .founder-icons-label { display: block; margin: 0; font-weight: 600; font-size: 0.95rem; color: var(--color-text); }
  .founder-icons { justify-content: center; margin-top: 16px; }
  .founder-icons .social-icon { width: 72px; height: 72px; }
  .founder-icons .social-icon svg { width: 36px; height: 36px; }
}

/* ---------- Футер ---------- */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 48px 0 32px;
  background: var(--color-bg-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-text-muted); margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; font-size: 0.92rem; color: var(--color-text-muted); margin-bottom: 8px; }
.footer-col a:hover { color: var(--color-text); }
.footer-col .logo { display: flex; align-items: center; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.badge-note {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--color-accent);
  background: rgba(255, 159, 67, 0.12);
  padding: 4px 12px;
  border-radius: 999px;
}

/* ---------- Верхняя правовая плашка ---------- */

.legal-bar {
  background: #d21f2c;
  border-bottom: 1px solid #a5141f;
  padding: 8px 24px;
}
.legal-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  text-align: center;
  font-size: 0.82rem;
  color: #ffffff;
}
.legal-bar strong { color: #ffffff; }
.legal-bar a { color: #ffffff; font-weight: 600; text-decoration: underline; white-space: nowrap; }

@media (max-width: 900px) {
  .legal-bar { padding: 8px 16px; }
  .legal-bar .container { font-size: 0.68rem; gap: 4px 8px; line-height: 1.35; }
}

/* ---------- Телефон в шапке ---------- */

.header-phone {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-text);
  margin-right: 8px;
  white-space: nowrap;
}
@media (max-width: 860px) {
  .header-cta .header-phone { display: none; }
}

/* ---------- Выпадающее меню "Базы данных" ---------- */

.nav-item-dropdown { position: relative; }

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
}
.nav-dropdown-toggle:hover { color: var(--color-text); }
.nav-dropdown-toggle::after {
  content: "⌄";
  font-size: 0.75rem;
  transition: transform 0.15s ease;
}
.nav-item-dropdown:hover .nav-dropdown-toggle::after,
.nav-item-dropdown.is-open .nav-dropdown-toggle::after { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px;
  min-width: 300px;
  box-shadow: var(--shadow-card);
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  z-index: 60;
}
.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown.is-open .dropdown-menu { display: grid; }

.dropdown-menu a {
  display: block;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.86rem;
  color: var(--color-text-muted);
}
.dropdown-menu a:hover { background: var(--color-surface-hover); color: var(--color-text); }

@media (max-width: 1000px) {
  .dropdown-menu {
    position: static;
    transform: none;
    display: none;
    grid-template-columns: 1fr;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 8px 16px;
    min-width: 0;
  }
  .nav-item-dropdown.is-open .dropdown-menu { display: grid; }
  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-muted);
  }
  .dropdown-menu a { padding: 8px 0; border-radius: 0; }
}

/* ---------- Процесс заказа (таймлайн) ---------- */

.process-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.process-item {
  display: flex;
  gap: 24px;
  padding: 16px 0;
  position: relative;
}
.process-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 56px;
  bottom: -6px;
  width: 2px;
  background: var(--color-border);
}
.process-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
}
.process-item h3 { margin-bottom: 4px; }
.process-item p { margin-bottom: 0; }

@media (max-width: 900px) {
  .process-item:nth-child(6),
  .process-item:nth-child(7) {
    display: none;
  }
  .process-item:nth-child(5)::before {
    display: none;
  }
}

.process-time {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.clock-colon {
  display: inline-block;
  animation: clock-blink 1s steps(1) infinite;
}
@keyframes clock-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .clock-colon { animation: none; }
}
.process-note {
  text-align: center;
  max-width: 640px;
  margin: -20px auto 40px;
  font-size: 0.9rem;
}

.process-disclaimer {
  text-align: center;
  max-width: 700px;
  margin: 32px auto 0;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  background: rgba(61, 125, 252, 0.12);
  border: 1px solid rgba(61, 125, 252, 0.25);
  border-radius: 14px;
  padding: 16px 24px;
}

/* ---------- FAQ-аккордеон ---------- */

.accordion { max-width: 760px; margin: 0 auto; }
.accordion-item { border-bottom: 1px solid var(--color-border); }
.accordion-item:first-child { border-top: 1px solid var(--color-border); }
.accordion-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 4px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  font-family: inherit;
}
.accordion-q::after {
  content: "⌄";
  color: var(--color-primary);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.accordion-item.is-open .accordion-q::after { transform: rotate(180deg); }
.accordion-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.accordion-a p { padding: 0 4px 16px; margin: 0; }
.accordion-a p:last-child { padding-bottom: 20px; }
.accordion-a ul.price-features { padding-left: 4px; }
.accordion-a ul.price-features li::before { flex-shrink: 0; }

/* ---------- Каталог направлений ---------- */

.catalog-card { scroll-margin-top: 100px; }
.catalog-card .card-link { font-weight: 600; color: var(--color-primary); font-size: 0.88rem; }

/* ---------- Соцсети в футере ---------- */

.social-row { display: flex; gap: 8px; margin: 16px 0 4px; }
.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-surface-hover);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--color-text);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.social-icon:hover { border-color: var(--color-primary); color: var(--color-primary); }
.social-icon svg { display: block; }

.footer-col .social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}
.footer-col .social-icon:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* ---------- Якоря разделов под sticky-шапку ---------- */

section[id], .catalog-card[id] {
  scroll-margin-top: 110px;
}

/* ---------- Страница 404 ---------- */

.error-page {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px;
}
.error-code {
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 16px;
}

/* ---------- Хлебные крошки ---------- */

.breadcrumbs {
  padding: 16px 0 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.breadcrumbs a { color: var(--color-text-muted); }
.breadcrumbs a:hover { color: var(--color-text); }
.breadcrumbs .sep { margin: 0 8px; opacity: 0.5; }
.breadcrumbs .current { color: var(--color-text); }

/* ---------- Модальное окно "Связаться" ---------- */

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.contact-modal.is-open { display: flex; }

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 20, 0.72);
  backdrop-filter: blur(4px);
}

.contact-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 32px;
  animation: contact-modal-in 0.2s ease;
}

@keyframes contact-modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.contact-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.contact-modal-close:hover { color: var(--color-text); border-color: var(--color-primary); }

.contact-modal-dialog h3 {
  text-align: center;
  margin: 0 0 24px;
  padding-right: 40px;
  font-size: 1.4rem;
}

.contact-modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 560px) {
  .contact-modal-body { grid-template-columns: 1fr; }
}

.contact-modal-qr-block,
.contact-modal-buttons,
.contact-modal-phone {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.contact-modal-qr-block {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.contact-modal-qr-label {
  display: inline-block;
  background: rgba(61, 125, 252, 0.15);
  color: var(--color-primary);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.contact-modal-qr {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 148px;
  height: 148px;
}
.contact-modal-qr canvas, .contact-modal-qr img { display: block; }
.contact-modal-qr-fallback {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  padding: 8px;
  text-align: center;
}

.contact-modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.msg-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: 14px;
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.msg-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }

.msg-btn-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.msg-btn-badge svg { width: 16px; height: 16px; display: block; }

.msg-btn-max { background: linear-gradient(135deg, #4f7cfe, #8b3ff0); }
.msg-btn-whatsapp { background: linear-gradient(135deg, #34d399, #16a34a); }
.msg-btn-telegram { background: linear-gradient(135deg, #38bdf8, #0e7fc9); }

.contact-modal-phone {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.contact-modal-phone span { color: var(--color-text-muted); font-size: 0.92rem; }
.contact-modal-phone a { font-size: 1.15rem; font-weight: 800; color: var(--color-text); }
.contact-modal-phone a:hover { color: var(--color-primary); }

.contact-modal-consent {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  padding: 4px 4px 0;
  cursor: pointer;
}
.contact-modal-consent input { margin: 0; accent-color: var(--color-primary); flex-shrink: 0; }
.contact-modal-consent a { color: var(--color-primary); text-decoration: underline; }

body.contact-modal-open { overflow: hidden; }

/* ---------- Плавающая кнопка "Связаться" ---------- */
/* Фиксирована в правом нижнем углу на всех страницах, иконки мессенджеров
   и звонка сменяют друг друга с плавным затуханием (см. видео-референс) */

.contact-fab {
  position: fixed;
  right: 60px;
  bottom: 20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  z-index: 150;
  display: block;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(6, 10, 20, 0.5);
  animation: fab-pulse 2.6s ease-in-out infinite;
  cursor: pointer;
}
.contact-fab:hover,
.contact-fab:focus-visible {
  animation-play-state: paused;
  transform: scale(1.06);
}

.contact-fab-item {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fab-fade 12s infinite;
}
.contact-fab-item svg { width: 52px; height: 52px; }

.contact-fab-wa { background: linear-gradient(135deg, #34d399, #16a34a); animation-delay: 0s; }
.contact-fab-tg { background: linear-gradient(135deg, #38bdf8, #0e7fc9); animation-delay: 3s; }
.contact-fab-ph { background: linear-gradient(135deg, #fb7c3c, #e0116f); animation-delay: 6s; }
.contact-fab-mx { background: linear-gradient(135deg, #6d5bf7, #38bdf8); animation-delay: 9s; }

@keyframes fab-fade {
  0% { opacity: 1; }
  20% { opacity: 1; }
  30% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes fab-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 10px 28px rgba(6, 10, 20, 0.5); }
  50% { transform: scale(1.07); box-shadow: 0 12px 32px rgba(6, 10, 20, 0.6), 0 0 0 8px rgba(255, 255, 255, 0.05); }
}

body.contact-modal-open .contact-fab { display: none; }

@media (prefers-reduced-motion: reduce) {
  .contact-fab,
  .contact-fab-item { animation: none !important; }
  .contact-fab-item.contact-fab-wa { opacity: 1; }
}

@media (max-width: 480px) {
  .contact-fab { right: 14px; bottom: 14px; width: 54px; height: 54px; }
  .contact-fab-item svg { width: 23px; height: 23px; }
}

/* ---------- Параметры поиска (инфографика) ---------- */

.params-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.params-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  min-width: 0;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.params-card:hover { border-color: var(--color-primary); transform: translateY(-3px); }
.params-card-top {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 16px;
}
.params-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(61, 125, 252, 0.15);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.params-card-icon svg { width: 20px; height: 20px; }
.params-card h3 { margin: 0; }
.params-card-desc {
  color: var(--color-text-muted);
  margin: 0 0 16px;
}
.params-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.params-tag {
  background: rgba(61, 125, 252, 0.12);
  color: #a7c1fb;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.params-tag:hover {
  background: var(--color-primary);
  color: #fff;
}
.params-cta {
  text-align: center;
  margin-top: 32px;
}
.params-cta .btn-primary {
  padding: 32px 64px;
}
@media (max-width: 860px) {
  .params-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .params-grid { grid-template-columns: 1fr; }
}
.params-card .card-link {
  display: inline-block;
  margin-top: 16px;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.88rem;
}

/* ---------- Каталог параметров подбора (якорная навигация и спецификации) ---------- */

section[id] { scroll-margin-top: 96px; }

.okopf-note-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 32px;
  max-width: 720px;
}
.okopf-note-title {
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}
.okopf-note-text { margin-bottom: 8px; }
.okopf-note-muted { font-size: 0.85rem; margin: 0; }

.anchor-menu {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.anchor-menu-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  min-height: 48px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.anchor-menu-btn:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary), 0 0 24px rgba(61, 125, 252, 0.45);
  transform: translateY(-2px);
  color: #fff;
}
.anchor-menu-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(61, 125, 252, 0.15);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
}
.anchor-menu-btn:hover .anchor-menu-num { background: rgba(255, 255, 255, 0.2); color: #fff; }
@media (max-width: 760px) {
  .anchor-menu { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .anchor-menu { grid-template-columns: 1fr; }
}

.section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.spec-grid--2col { grid-template-columns: repeat(2, 1fr); }
.spec-item {
  min-width: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  transition: border-color 0.2s ease;
}
.spec-item:hover { border-color: var(--color-primary); }
.spec-item strong {
  display: block;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 4px;
}
.spec-item span {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}
@media (max-width: 860px) {
  .spec-grid, .spec-grid--2col { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .spec-grid, .spec-grid--2col { grid-template-columns: 1fr; }
}

.tag-group { margin-top: 24px; }
.tag-group-title {
  font-size: 0.95rem;
  color: var(--color-text);
  margin-bottom: 12px;
}
.tag-group .params-tag { white-space: normal; }

.reg-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.reg-item {
  min-width: 0;
  padding: 12px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  transition: border-color 0.2s ease;
}
.reg-item:hover { border-color: var(--color-primary); }
@media (max-width: 640px) {
  .reg-list { grid-template-columns: 1fr; }
}

.accordion-a .okopf-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 24px;
  padding: 4px 4px 20px;
}
.okopf-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 8px 4px;
  border-top: 1px solid var(--color-border);
  font-size: 0.88rem;
  min-width: 0;
}
.okopf-item:nth-child(-n+2) { border-top: none; }
.okopf-code {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--color-primary);
  min-width: 52px;
}
.okopf-name { color: var(--color-text-muted); min-width: 0; overflow-wrap: break-word; }
@media (max-width: 640px) {
  .accordion-a .okopf-list { grid-template-columns: 1fr; }
  .okopf-item:nth-child(2) { border-top: 1px solid var(--color-border); }
}

/* ---------- Кнопка "Наверх" ---------- */

.back-to-top {
  position: fixed;
  right: 92px;
  bottom: 204px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid rgba(125, 178, 255, 0.55);
  color: #7db2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 140;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  box-shadow: 0 0 10px rgba(125, 178, 255, 0.45), 0 0 22px rgba(61, 125, 252, 0.32);
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover,
.back-to-top:focus-visible {
  border-color: #a7c8ff;
  box-shadow: 0 0 14px rgba(125, 178, 255, 0.65), 0 0 32px rgba(61, 125, 252, 0.5);
}
.back-to-top svg {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 4px rgba(125, 178, 255, 0.6)) drop-shadow(0 0 10px rgba(61, 125, 252, 0.35));
}
@media (max-width: 480px) {
  .back-to-top { right: 17px; bottom: 132px; width: 48px; height: 48px; }
  .back-to-top svg { width: 20px; height: 20px; }
}
