/* Стили SEO-страниц (avcrm.ru). Вне React-бандла — подключаются напрямую. */
:root {
  --blue: #2563eb;
  --blue-dark: #1e3a8a;
  --green: #16a34a;
  --bg: #f4f6fb;
  --card: #ffffff;
  --border: #e6eaf3;
  --text: #1c2434;
  --muted: #5a6478;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', Roboto, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

main.wrap { padding-bottom: 48px; }

a { color: var(--blue); }

img { max-width: 100%; height: auto; }

/* --- Шапка (как на главной странице) --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.site-header .header-inner { max-width: 1120px; padding: 14px 24px; }

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;
  border: 1.5px solid #e0b344;
}

.brand-text {
  font-size: 17px;
  font-weight: 700;
  color: #0f1f3d;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.main-nav a {
  color: #33405e;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}

.main-nav a:hover { color: var(--blue); }

/* --- Кнопки --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
}

.btn-sm { min-height: 44px; padding: 8px 18px; font-size: 15px; }

.btn-primary {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(37, 99, 235, 0.7);
}

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

.btn-ghost {
  background: #fff;
  color: var(--blue);
  border-color: #c7d2fe;
}

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

/* --- Крошки --- */
.breadcrumbs {
  font-size: 14px;
  color: var(--muted);
  padding: 16px 0 4px;
}

.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue); text-decoration: underline; }
.breadcrumbs .sep { margin: 0 8px; color: #b6bfd0; }

/* --- Текстовые блоки --- */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 28px 0 8px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.15;
  color: var(--blue-dark);
}

.hero-sub {
  margin: 0;
  font-size: clamp(18px, 2.5vw, 21px);
  color: var(--muted);
}

.lead {
  font-size: 19px;
  margin: 18px 0 4px;
}

main h2 {
  font-size: clamp(23px, 3.4vw, 29px);
  line-height: 1.25;
  margin: 40px 0 14px;
  color: var(--blue-dark);
}

main h3 { font-size: 19px; margin: 0 0 8px; }

main p { margin: 0 0 16px; }

main ul, main ol { margin: 0 0 20px; padding-left: 24px; }
main li { margin-bottom: 10px; }

ul.list-plain { list-style: none; padding-left: 0; }
ul.list-plain li { padding-left: 0; }

.steps { counter-reset: step; }
.steps li { margin-bottom: 14px; }

/* --- Карточки --- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 12px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: 0 14px 30px -22px rgba(30, 58, 138, 0.5);
}

.card h3 { color: var(--blue); }
.card p { margin: 0; color: var(--text); }

/* --- Таблицы --- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 22px;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 460px;
  font-size: 16px;
}

th, td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  background: #eef3ff;
  color: var(--blue-dark);
  font-weight: 700;
}

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

/* --- FAQ --- */
.faq { display: grid; gap: 14px; }

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
}

.faq-item h3 { color: var(--blue-dark); }
.faq-item p { margin: 0; }

/* --- Скриншот --- */
.shot { margin: 8px 0 26px; }

.shot-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 240px;
  padding: 24px;
  background: linear-gradient(135deg, #eef3ff 0%, #e7f6ec 100%);
  border: 1.5px dashed #b6c4e8;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 15px;
}

.shot figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

/* --- Лента скриншотов --- */
.gallery { margin: 0 0 26px; }

.gallery-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: relative;
  border-radius: var(--radius);
}

.gallery-track::-webkit-scrollbar { display: none; }

.gallery-slide {
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: start;
}

.gallery-slide img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.gallery-slide figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 14px;
}

.gallery-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #cfd8ea;
  background: #fff;
  color: #33405e;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gallery-btn:hover { border-color: var(--blue); color: var(--blue); }

.gallery-dots { display: flex; gap: 8px; }

.gallery-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: #cfd8ea;
  cursor: pointer;
}

.gallery-dot.is-active { background: var(--blue); }

/* --- Выноски и CTA --- */
.note {
  background: #fff8e6;
  border: 1px solid #f2d48b;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 0 0 20px;
}

.note p:last-child { margin-bottom: 0; }

.cta-band {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  color: #fff;
  border-radius: 18px;
  padding: 30px 26px;
  margin: 44px 0 8px;
  box-shadow: 0 24px 50px -30px rgba(30, 58, 138, 0.9);
}

.cta-band h2 { color: #fff; margin: 0 0 8px; }
.cta-band p { margin: 0; color: #dbe6ff; }
.cta-band .btn-primary { background: #fff; color: var(--blue-dark); box-shadow: none; }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }

/* --- Соседние материалы --- */
.related {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-top: 34px;
}

.related h2 { margin-top: 0; }
.related ul { margin-bottom: 0; }

/* --- Подвал (как на главной странице) --- */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--border);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 20px;
}

.footer-copy { color: #7c8aa5; }

.site-footer .footer-inner { max-width: 1120px; padding: 20px 24px; }

.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--blue); text-decoration: none; min-height: 48px; display: inline-flex; align-items: center; }
.site-footer a:hover { text-decoration: underline; }

/* --- Десктоп --- */
@media (min-width: 860px) {
  .hero { grid-template-columns: 1.15fr 1fr; align-items: center; padding-top: 40px; }
  .wrap { padding: 0 24px; }
}

@media (max-width: 720px) {
  .brand-text { display: none; }
  .main-nav { gap: 14px; }
}
