/* ============ Токены ============ */
:root {
  --navy: #0b1b33;
  --navy-800: #14294a;
  --navy-600: #23415f;
  --accent: #ffc92b;
  --accent-dark: #e0ac00;
  --red: #e4322b;
  --ink: #131a24;
  --muted: #5a6b80;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --surface: #ffffff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(11, 27, 51, .08);
  --shadow-lg: 0 24px 60px rgba(11, 27, 51, .16);
  --container: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 4vw, 46px); }
h2 { font-size: clamp(23px, 2.6vw, 32px); }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
.nav a { color: #3d4250; text-decoration: none; }
a:hover { color: var(--accent-dark); }
img, iframe { max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

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

/* ============ Кнопки ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--navy); }
.btn-accent:hover { background: var(--accent-dark); color: var(--navy); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-600); color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; background: rgba(255, 255, 255, .06); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* ============ Хедер ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; color: #1a1a2e; flex: 0 0 auto; }
.logo-img { display: block; height: 40px; width: auto; max-width: 100%; }
/* Логотип тёмный — на тёмном фоне подкладываем белую плашку */
.logo-chip { background: #fff; padding: 6px 12px; border-radius: 10px; display: inline-flex; align-items: center; }
.logo-footer .logo-img { height: 38px; }
.nav { display: flex; gap: 4px; margin-left: 8px; flex: 1 1 auto; }
.nav a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 15px;
  color: var(--ink);
  white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--bg-soft); color: var(--navy); }
.header-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.header-phone { font-weight: 700; color: #4a5568; white-space: nowrap; }
.nav-toggle { display: none; }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  padding: 0;
  background: transparent;
  color: #4a5568;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.theme-toggle:hover { background: var(--bg-soft); }
.theme-toggle svg { display: block; }
.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ============ Первый экран ============ */
.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(255, 201, 43, .18), transparent 60%),
    linear-gradient(180deg, #f7f9fc 0%, #eaf0f8 100%);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 72px 0 64px;
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8a6000;
}
.hero h1 { color: var(--ink); max-width: 15ch; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 52ch; }
/* Вторичная кнопка на светлом первом экране: белая с рамкой, иначе сливается с фоном */
.hero .btn-ghost { border: 1px solid rgba(11, 27, 51, .32); color: var(--navy); background: #fff; box-shadow: 0 1px 3px rgba(11, 27, 51, .10); }
.hero .btn-ghost:hover { background: #eef3fa; border-color: var(--navy); color: var(--navy); }
html[data-theme="dark"] .hero .btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; background: rgba(255, 255, 255, .06); box-shadow: none; }
html[data-theme="dark"] .hero .btn-ghost:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-stats { display: flex; gap: 34px; margin: 38px 0 0; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-stats dt { font-size: 24px; font-weight: 800; color: var(--ink); }
.hero-stats dd { margin: 2px 0 0; font-size: 13px; color: var(--muted); max-width: 18ch; }
.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.hero-card h2 { font-size: 20px; color: var(--ink); }
.hero-list { display: grid; gap: 10px; margin-bottom: 22px; }
.hero-list li { position: relative; padding-left: 26px; font-size: 15px; color: var(--ink); }
.hero-list li::before {
  content: "✓";
  position: absolute; left: 0; top: -1px;
  color: var(--accent); font-weight: 700;
}
/* ============ Секции, карточки ============ */
.section { padding: 72px 0; }
.section-tight { padding: 44px 0 64px; }
.section-muted { background: var(--bg-soft); }
.section-title { margin-bottom: 8px; }
.section-sub { color: var(--muted); max-width: 68ch; margin-bottom: 30px; }
.section-actions { display: flex; justify-content: center; margin-top: 34px; }

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #d3dced; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin-bottom: 12px; font-size: 15px; }

.service-card { display: flex; flex-direction: column; }
.service-card p { flex: 1 1 auto; }
.link-arrow { font-weight: 600; font-size: 14px; }
.link-arrow::after { content: " →"; }

.direction-card { text-align: left; }
.direction-icon-wrap {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px; margin-bottom: 14px;
  border-radius: 12px;
  background: var(--bg-soft);
  color: #4a5568;
}
.direction-icon { display: block; width: 26px; height: 26px; }

.advantages .advantage { padding: 4px 18px 4px 0; }
.advantages h3 { font-size: 16px; margin-bottom: 6px; }
.advantages h3::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
}
.advantages p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ============ Тизер прайса и CTA ============ */
.price-teaser {
  background:
    radial-gradient(700px 300px at 88% -20%, rgba(255, 201, 43, .18), transparent 62%),
    linear-gradient(180deg, #f8fafd 0%, #e9f0f9 100%);
  color: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.teaser-inner { display: flex; align-items: center; gap: 40px; justify-content: space-between; flex-wrap: wrap; }
.price-teaser h2 { color: var(--ink); max-width: 24ch; }
.price-teaser .section-sub { color: var(--muted); margin-bottom: 8px; }
.price-updated { font-size: 14px; color: var(--muted); margin: 0; }
.price-updated strong { color: #8a6000; }
.price-teaser .btn-ghost { border: 1px solid rgba(11, 27, 51, .32); color: var(--navy); background: #fff; box-shadow: 0 1px 3px rgba(11, 27, 51, .10); }
.price-teaser .btn-ghost:hover { background: #eef3fa; border-color: var(--navy); color: var(--navy); }
.teaser-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.section-cta { background: linear-gradient(120deg, var(--accent) 0%, #ffd965 100%); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-inner h2 { margin-bottom: 6px; }
.cta-inner p { margin: 0; color: rgba(11, 27, 51, .8); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============ Подвал ============ */
.site-footer { background: #081527; color: rgba(255, 255, 255, .74); padding: 56px 0 24px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 36px; }
.site-footer h3 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.site-footer a { color: rgba(255, 255, 255, .82); }
.site-footer a:hover { color: var(--accent); }
.site-footer ul { display: grid; gap: 9px; }
.logo-footer { color: #fff; margin-bottom: 14px; }
.logo-footer .logo-text small { color: rgba(255, 255, 255, .55); }
.footer-note { max-width: 40ch; color: rgba(255, 255, 255, .6); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 13px; color: rgba(255, 255, 255, .55);
}
/* ============ Внутренние страницы ============ */
.page-hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 52px 0 44px; }
.page-hero h1 { max-width: 26ch; }
.page-hero .lead { color: var(--muted); }
.page-hero .price-updated { color: var(--muted); margin-top: 16px; }
.page-hero .price-updated strong { color: var(--navy); }
/* ============ Услуги ============ */
.services-list { display: grid; gap: 22px; }
.service-detail {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  scroll-margin-top: 96px;
}
.service-detail-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 10px; }
.service-num { color: var(--accent-dark); font-weight: 800; font-size: 14px; letter-spacing: .06em; }
.service-detail-head h2 { font-size: clamp(20px, 2.2vw, 25px); margin: 0; }
.service-desc { color: var(--muted); max-width: 80ch; }
.service-detail-body { display: grid; grid-template-columns: 1.35fr .8fr; gap: 28px; margin-top: 18px; }
.service-detail-body h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--navy-600); }
.check-list { display: grid; gap: 8px; }
.check-list li { position: relative; padding-left: 26px; color: var(--ink); font-size: 15px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: #1f9d55; font-weight: 700; }
.service-side { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 18px; display: grid; gap: 14px; align-content: start; }
.service-note h3 { margin-bottom: 4px; }
.service-note p { margin: 0; font-size: 14.5px; color: var(--muted); }
/* ============ Прайс-лист ============ */
.price-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 13px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid #cfd8e5;
  border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--navy-600);
  box-shadow: 0 0 0 3px rgba(35, 65, 95, .12);
}
.price-toolbar-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.price-found { font-size: 14.5px; color: var(--muted); margin: 0 0 12px; }
.price-found strong { color: var(--navy); }
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; background: var(--surface); }
.price-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
.price-table thead th {
  position: sticky; top: 0;
  background: var(--navy);
  color: #fff;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 14px 16px;
  white-space: nowrap;
}
.price-table tbody td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tbody tr:hover td { background: var(--bg-soft); }
.price-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-table .col-article { color: var(--muted); font-size: 14px; white-space: nowrap; }
/* Цена второй строкой под артикулом — показывается только на узких экранах */
.col-price-mobile { display: none; }
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}
.badge-pp { background: #e8f0ff; color: #1c3f7d; }
.badge-its { background: #fff4d6; color: #7a5a00; }
.table-empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.pagination { display: flex; justify-content: center; gap: 6px; margin: 22px 0 8px; flex-wrap: wrap; }
.pagination button {
  min-width: 38px;
  padding: 8px 12px;
  font: inherit;
  font-size: 14px;
  color: var(--navy);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.pagination button:hover:not(:disabled) { border-color: var(--navy-600); }
.pagination button[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.pagination button:disabled { opacity: .45; cursor: default; }
.pagination .page-info { align-self: center; padding: 0 8px; font-size: 14px; color: var(--muted); }
.price-note { margin-top: 22px; padding: 18px 20px; background: var(--bg-soft); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); }
.price-note p { margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.price-note p:last-child { margin-bottom: 0; }

/* ============ О компании ============ */
.about-grid { display: grid; grid-template-columns: 1.5fr .8fr; gap: 44px; align-items: start; }
.about-grid h2:not(:first-child) { margin-top: 30px; }
.about-facts { display: grid; gap: 12px; position: sticky; top: 96px; }
.fact { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 18px; display: grid; gap: 2px; }
.fact-num { font-size: 26px; font-weight: 800; color: var(--navy); }
.fact span:last-child { font-size: 14px; color: var(--muted); }
.prose { max-width: 78ch; }
.prose h2 { font-size: 20px; margin-top: 28px; }
.prose p { color: #2c3a4b; }
.prose-date { margin-top: 28px; font-size: 14px; color: var(--muted); }
/* ============ Контакты и форма ============ */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-list { display: grid; gap: 18px; margin-bottom: 24px; }
.contact-list li { display: grid; gap: 3px; }
.contact-list span { font-size: 12.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.contact-list a, .contact-list address, .contact-list p { font-size: 18px; font-style: normal; font-weight: 600; color: var(--navy); margin: 0; }
.contact-list a:hover { color: var(--accent-dark); }
.contact-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.map-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.map-wrap iframe { display: block; width: 100%; height: 300px; border: 0; }

.contacts-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); scroll-margin-top: 96px; }
.form-sub { color: var(--muted); font-size: 14.5px; }
#feedbackForm { display: grid; gap: 14px; }
#feedbackForm .field { gap: 5px; }
.req { color: var(--red); }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.checkbox input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--navy); flex: 0 0 auto; }
.checkbox a { text-decoration: underline; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-size: 14.5px; min-height: 20px; }
.form-status.ok { color: #1f7a45; }
.form-status.err { color: var(--red); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red); }
/* ============ Адаптив ============ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { max-width: none; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-toolbar { grid-template-columns: 1fr 1fr; }
  .price-toolbar-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .service-detail-body { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-facts { position: static; grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .header-inner { min-height: 66px; gap: 12px; }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px; height: 42px;
    padding: 0 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    content: "";
    position: relative;
  }
  .nav-toggle span::before { position: absolute; top: -6px; width: 100%; }
  .nav-toggle span::after { position: absolute; top: 6px; width: 100%; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 10px 16px 18px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; border-radius: 8px; }
  .header-phone { display: none; }
  .section { padding: 52px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; flex-wrap: wrap; }
  .price-table { min-width: 0; }
  .price-table thead th, .price-table tbody td { padding: 11px 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 700px) {
  /* На телефоне третья колонка не нужна: цена уходит второй строкой под артикул */
  .table-wrap { overflow-x: visible; }
  .price-table { min-width: 0; table-layout: fixed; }
  .price-table thead th.num,
  .price-table tbody td.num { display: none; }
  .price-table thead th.col-article { width: 38%; }
  .price-table thead th,
  .price-table tbody td { padding: 11px 12px; vertical-align: top; }
  .price-table .col-article { font-size: 12.5px; letter-spacing: -.01em; white-space: nowrap; overflow-wrap: normal; }
  .col-price-mobile {
    display: block;
    margin-top: 5px;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .price-toolbar { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 44px; }
  .about-facts { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero-actions .btn, .cta-actions .btn, .teaser-actions .btn, .price-toolbar-actions .btn { width: auto; }
}

/* ============ Реквизиты компании ============ */
.requisites { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.requisites h2 { font-size: 20px; margin-bottom: 14px; }
.req-list { display: grid; gap: 10px; margin: 0; }
.req-row { display: grid; grid-template-columns: minmax(150px, 210px) 1fr; gap: 12px; }
.req-row dt { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.req-row dd { margin: 0; font-size: 15px; color: var(--ink); }

/* ============ Тёмная тема ============ */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c1421;
  --bg-soft: #111d2f;
  --surface: #16233a;
  --ink: #e7eef8;
  --muted: #96a7be;
  --line: #26374f;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);
}
/* Герой в тёмной теме остаётся тёмно-синим */
html[data-theme="dark"] .hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(255, 201, 43, .22), transparent 60%),
    linear-gradient(160deg, #0b1b33 0%, #12294a 60%, #0b1b33 100%);
  border-bottom-color: transparent;
}
html[data-theme="dark"] .eyebrow { color: var(--accent); }
html[data-theme="dark"] .hero-card {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .16);
  box-shadow: none;
}
html[data-theme="dark"] a { color: #b6d3f7; }
html[data-theme="dark"] a:hover { color: var(--accent); }
html[data-theme="dark"] .site-header { background: rgba(12, 20, 33, .92); border-bottom-color: var(--line); }
html[data-theme="dark"] .site-header .logo { background: #fff; padding: 6px 12px; border-radius: 10px; }
html[data-theme="dark"] .nav a { color: var(--ink); }
html[data-theme="dark"] .nav a:hover,
html[data-theme="dark"] .nav a[aria-current="page"] { background: rgba(255, 255, 255, .07); color: #fff; }
html[data-theme="dark"] .header-phone { color: #fff; }
html[data-theme="dark"] .theme-toggle { color: var(--ink); }
html[data-theme="dark"] .btn-dark { background: #e9f1fb; color: #0b1b33; }
html[data-theme="dark"] .btn-dark:hover { background: #fff; color: #0b1b33; }
html[data-theme="dark"] .btn-outline { border-color: rgba(255, 255, 255, .38); color: var(--ink); }
html[data-theme="dark"] .btn-outline:hover { background: #fff; color: #0b1b33; }
html[data-theme="dark"] .page-hero .lead { color: var(--muted); }
html[data-theme="dark"] .page-hero .price-updated strong { color: var(--ink); }
html[data-theme="dark"] .card { border-color: var(--line); }
html[data-theme="dark"] .card:hover { border-color: #34486a; }
html[data-theme="dark"] .direction-icon-wrap { background: rgba(255, 255, 255, .06); color: var(--accent); }
html[data-theme="dark"] .service-detail { border-color: var(--line); }
html[data-theme="dark"] .service-detail-body h3 { color: #9fc0e8; }
html[data-theme="dark"] .check-list li { color: var(--ink); }
html[data-theme="dark"] .check-list li::before { color: #56d68b; }
html[data-theme="dark"] .service-side { background: rgba(255, 255, 255, .05); }
html[data-theme="dark"] .field input,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .field textarea { background: #0f1a2b; border-color: var(--line); }
html[data-theme="dark"] .field input:focus,
html[data-theme="dark"] .field select:focus,
html[data-theme="dark"] .field textarea:focus { border-color: #4a6a90; box-shadow: 0 0 0 3px rgba(120, 160, 210, .18); }
html[data-theme="dark"] .price-found strong { color: var(--ink); }
html[data-theme="dark"] .price-table thead th { background: #0a1220; }
html[data-theme="dark"] .price-table tbody tr:hover td { background: rgba(255, 255, 255, .05); }
html[data-theme="dark"] .pagination button { color: var(--ink); }
html[data-theme="dark"] .pagination button[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #0b1b33; }
html[data-theme="dark"] .fact { background: rgba(255, 255, 255, .05); }
html[data-theme="dark"] .fact-num { color: var(--accent); }
html[data-theme="dark"] .prose p { color: #c3d0e2; }
html[data-theme="dark"] .contact-list a,
html[data-theme="dark"] .contact-list address,
html[data-theme="dark"] .contact-list p { color: var(--ink); }
html[data-theme="dark"] .checkbox { color: var(--muted); }
html[data-theme="dark"] .checkbox input { accent-color: var(--accent); }
html[data-theme="dark"] .form-status.ok { color: #63d392; }
html[data-theme="dark"] .section-cta { --ink: #0b1b33; }
html[data-theme="dark"] .btn-accent,
html[data-theme="dark"] .btn-accent:hover { color: #0b1b33; }
html[data-theme="dark"] .price-teaser {
  background: #0a1220;
  color: #fff;
  border-color: transparent;
}
html[data-theme="dark"] .price-teaser h2 { color: #fff; }
html[data-theme="dark"] .price-teaser .section-sub { color: rgba(255, 255, 255, .78); }
html[data-theme="dark"] .price-teaser .price-updated { color: rgba(255, 255, 255, .7); }
html[data-theme="dark"] .price-teaser .price-updated strong { color: var(--accent); }
html[data-theme="dark"] .price-teaser .btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; background: rgba(255, 255, 255, .06); }
html[data-theme="dark"] .price-teaser .btn-ghost:hover { background: rgba(255, 255, 255, .16); color: #fff; }
html[data-theme="dark"] .req-row dd { color: var(--ink); }
@media (max-width: 900px) {
  .header-cta { display: none; }
}
@media (max-width: 600px) {
  .req-row { grid-template-columns: 1fr; gap: 2px; }
  .logo-img { height: 32px; }
}
/* END */

/* Фильтр по типу софта на странице прайса */
.price-types { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.price-types[hidden] { display: none; }
.type-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: inherit; font-size: 14px; line-height: 1.2;
  transition: background .15s, color .15s, border-color .15s;
}
.type-chip:hover { border-color: var(--navy); }
.type-chip .type-count {
  font-size: 12px; font-weight: 700; opacity: .65;
  padding: 1px 7px; border-radius: 999px; background: rgba(11, 27, 51, .08);
}
.type-chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.type-chip.is-active .type-count { background: rgba(255, 255, 255, .18); opacity: .9; }
html[data-theme="dark"] .type-chip .type-count { background: rgba(255, 255, 255, .12); }
html[data-theme="dark"] .type-chip.is-active { background: var(--accent); border-color: var(--accent); color: #0b1b33; }
html[data-theme="dark"] .type-chip.is-active .type-count { background: rgba(11, 27, 51, .16); }
@media (max-width: 700px) {
  .price-types { gap: 6px; }
  .type-chip { padding: 7px 12px; font-size: 13px; }
}
