/* Автоключи.бел — светлая / тёмная тема (акцент: индиго, без «зелёного») */
:root {
  --font: "Manrope", system-ui, sans-serif;
  --accent: #4f46e5;
  --accent-deep: #4338ca;
  --bg: #f4f5fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 10px 40px -15px rgba(15, 23, 42, 0.12);
  --radius: 14px;
}

[data-theme="dark"] {
  --accent: #818cf8;
  --accent-deep: #6366f1;
  --bg: #0b0d12;
  --surface: #12151f;
  --text: #e8eaf4;
  --muted: #94a3b8;
  --border: #252b3a;
  --shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.55);
}

[data-theme="dark"] .site-header {
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border-bottom-color: var(--border);
}

[data-theme="dark"] .hero {
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--accent) 12%, var(--bg)) 0%,
    var(--bg) 50%
  );
  border-bottom-color: var(--border);
}

[data-theme="dark"] .card,
[data-theme="dark"] .faq-list details,
[data-theme="dark"] .steps li {
  box-shadow: var(--shadow);
}

[data-theme="dark"] .cta-strip {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #eef2ff;
}

[data-theme="dark"] .related-inline {
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  border-color: var(--border);
}

[data-theme="dark"] .theme-toggle {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

[data-theme="dark"] .nav-toggle {
  background: var(--surface);
  border-color: var(--border);
}

[data-theme="dark"] .site-footer {
  background: color-mix(in srgb, var(--surface) 92%, var(--bg));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
}

.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  color: var(--accent);
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
  display: block;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.35);
}

.site-nav ul {
  display: flex;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.site-nav a {
  font-weight: 600;
  color: var(--text);
  padding: 0.35rem 0;
}

.site-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.phone-link {
  font-weight: 700;
  white-space: nowrap;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  color: var(--text);
}

.theme-icon-moon {
  display: none;
}

[data-theme="dark"] .theme-icon-sun {
  display: none;
}

[data-theme="dark"] .theme-icon-moon {
  display: inline;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--text);
  margin: 0 auto;
}

@media (max-width: 880px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    order: 10;
  }

  .site-nav.is-open {
    display: block;
    position: relative;
    z-index: 5;
  }

  .site-nav a {
    position: relative;
    z-index: 6;
  }

  .site-nav ul {
    flex-direction: column;
    padding: 0.5rem 0 1rem;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .header-actions {
    margin-left: auto;
  }
}

/* Hero */
.hero {
  padding: 2.5rem 0 3.5rem;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 12%, var(--bg)) 0%, var(--bg) 55%);
  border-bottom: 1px solid var(--border);
}

.hero-layout {
  display: grid;
  gap: 2rem 2.5rem;
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr minmax(280px, 40%);
    gap: 2.5rem 3rem;
  }
}

.hero-copy {
  min-width: 0;
}

.hero-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: var(--surface);
  max-width: 520px;
  margin-inline: auto;
}

@media (min-width: 900px) {
  .hero-figure {
    margin-inline: 0;
    max-width: none;
  }
}

.hero-figure img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  max-width: 18ch;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 1.5rem;
}

.hero-phones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1rem;
}

.hero-phones a {
  font-weight: 700;
  font-size: 1.1rem;
}

.tagline {
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section h2 {
  font-size: 1.75rem;
  margin: 0 0 1.5rem;
}

.grid-2 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.lead-block {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 75ch;
}

.reviews-section .section-subtitle {
  margin-top: 0.35rem;
  margin-bottom: 1.5rem;
}

.reviews-carousel {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0.35rem;
  max-width: 52rem;
  margin: 0 auto;
}

.reviews-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
  outline: none;
}

.reviews-viewport:focus-visible {
  box-shadow: 0 0 0 3px var(--accent);
}

.reviews-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .reviews-track {
    transition: none;
  }
}

.reviews-slide {
  flex: 0 0 100%;
  min-width: 0;
  padding: 0 0.25rem;
  box-sizing: border-box;
}

.reviews-card {
  height: 100%;
  margin: 0;
  padding: 1.35rem 1.5rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.reviews-card::before {
  content: "“";
  position: absolute;
  top: 0.65rem;
  left: 1rem;
  font-size: 2.75rem;
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--accent);
  opacity: 0.35;
  pointer-events: none;
}

.review-stars {
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  color: #eab308;
  margin-bottom: 0.65rem;
}

[data-theme="dark"] .review-stars {
  color: #facc15;
}

.reviews-quote {
  margin: 0;
  padding: 0;
  border: none;
  font-size: 1.02rem;
  line-height: 1.55;
  font-style: italic;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

.reviews-author {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.reviews-meta {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  opacity: 0.9;
}

.reviews-nav {
  flex-shrink: 0;
  align-self: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.reviews-nav:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.reviews-nav:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.reviews-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.reviews-dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}

.reviews-dot:hover {
  background: var(--muted);
}

.reviews-dot.is-active {
  background: var(--accent);
  transform: scale(1.25);
}

.reviews-dot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .reviews-carousel {
    gap: 0;
  }

  .reviews-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.35rem;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(6px);
  }

  .reviews-nav-prev {
    left: 0.35rem;
  }

  .reviews-nav-next {
    right: 0.35rem;
  }

  .reviews-slide {
    padding: 0 0.15rem;
  }

  .reviews-card {
    padding: 1.15rem 1.1rem 1.25rem 2.5rem;
  }
}

.seo-block {
  font-size: 0.95rem;
  color: var(--muted);
}

.seo-block strong {
  color: var(--text);
}

.cta-strip {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #ecfdf5;
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
}

.cta-strip a {
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
}

/* News list */
.news-list {
  display: grid;
  gap: 1.5rem;
}

.news-card {
  display: grid;
  grid-template-columns: minmax(0, 280px) 1fr;
  gap: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

@media (max-width: 700px) {
  .news-card {
    grid-template-columns: 1fr;
  }
}

.news-card-img {
  aspect-ratio: 16/10;
  background: var(--border);
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card-body {
  padding: 1.25rem 1.25rem 1.25rem 0;
}

@media (max-width: 700px) {
  .news-card-body {
    padding: 0 1.25rem 1.25rem;
  }
}

.news-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.news-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.news-card h2 a {
  color: var(--text);
}

.news-card h2 a:hover {
  color: var(--accent);
}

.news-excerpt {
  color: var(--muted);
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.read-more {
  font-weight: 600;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  padding: 1rem 0 0;
}

.breadcrumb a {
  color: var(--muted);
}

/* Article */
.article-hero {
  padding: 2rem 0 1rem;
}

.article-hero h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.75rem;
}

.article-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.article-cover {
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
}

.article-cover img {
  width: 100%;
  display: block;
  max-height: 420px;
  object-fit: cover;
}

.article-body {
  max-width: 720px;
}

.article-body p {
  margin: 0 0 1rem;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.tag {
  font-size: 0.8rem;
  background: color-mix(in srgb, var(--accent) 15%, var(--surface));
  color: var(--text);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1rem;
  margin-top: auto;
  background: color-mix(in srgb, var(--surface) 88%, var(--bg));
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 2rem;
}

.footer-grid strong {
  display: block;
  margin-bottom: 0.5rem;
}

.footer-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}

/* Расширенный контент и SEO-блоки */
.section-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 65ch;
  margin: -0.5rem 0 1.5rem;
}

.prose {
  max-width: 75ch;
}

.prose h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
}

.prose h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
}

.prose p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
  color: var(--muted);
}

.prose li {
  margin-bottom: 0.35rem;
}

.prose strong {
  color: var(--text);
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.steps li {
  position: relative;
  padding: 1rem 1rem 1rem 3.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.faq-section h2 {
  margin-bottom: 1rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 800px;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::before {
  content: "+";
  display: inline-block;
  width: 1.5rem;
  font-weight: 800;
  color: var(--accent);
}

.faq-list details[open] summary::before {
  content: "−";
}

.faq-list details p {
  margin: 0.75rem 0 0;
  padding-left: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.related-inline {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 0.95rem;
}

.related-inline a {
  font-weight: 600;
}

.two-col-text {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

@media (min-width: 900px) {
  .wide-prose {
    max-width: none;
  }
}

