/* Электросхемы: /schemes/, /schemes/m/…, /schemes/c/…, /schemes_usf40/c/… (layers/presentation/schemes.py) */

/* —— Кнопки каталогов (как блок «Электросхемы» на странице авто) —— */
.model-techdocs {
  margin: 0 0 1.25rem;
  padding: 1rem 1.05rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(ellipse 90% 80% at 0% 0%, rgba(96, 165, 250, 0.16), transparent 55%),
    radial-gradient(ellipse 70% 70% at 100% 100%, rgba(192, 132, 252, 0.12), transparent 50%),
    rgba(12, 16, 28, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 14px 36px rgba(0, 0, 0, 0.28);
  position: relative;
  z-index: 1;
}
.model-techdocs__title { margin: 0 0 0.25rem; font-size: 1.05rem; font-weight: 800; letter-spacing: -0.02em; color: rgba(244, 247, 255, 0.95); }
.model-techdocs__lead { margin: 0 0 0.85rem; font-size: 0.9rem; line-height: 1.4; color: rgba(244, 247, 255, 0.68); }
.model-techdocs__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
@media (max-width: 640px) { .model-techdocs__grid { grid-template-columns: 1fr; } }
.model-techdocs__btn {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.9rem 1rem; border-radius: 14px;
  text-decoration: none !important; color: rgba(244, 247, 255, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(6, 8, 13, 0.45);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.28s cubic-bezier(0.33, 1, 0.68, 1), border-color 0.2s ease, background 0.2s ease;
}
.model-techdocs__btn:hover { transform: translateY(-3px); border-color: rgba(96, 165, 250, 0.45); background: rgba(12, 16, 28, 0.72); color: #fff !important; }
.model-techdocs__icon {
  flex: 0 0 auto; width: 2.75rem; height: 2.75rem; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(145deg, rgba(96, 165, 250, 0.35), rgba(59, 130, 246, 0.12));
  color: #bfdbfe;
}
.model-techdocs__btn--eu .model-techdocs__icon { background: linear-gradient(145deg, rgba(192, 132, 252, 0.4), rgba(124, 58, 237, 0.14)); color: #e9d5ff; }
.model-techdocs__name { margin: 0; font-size: 1rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.model-techdocs__meta { margin: 0.2rem 0 0; font-size: 0.8rem; line-height: 1.35; color: rgba(244, 247, 255, 0.62); }
.model-techdocs__arrow { margin-left: auto; opacity: 0.55; font-size: 0.95rem; }
.model-techdocs__btn:hover .model-techdocs__arrow { opacity: 1; }
html.is-win-chrome .model-techdocs { backdrop-filter: none; -webkit-backdrop-filter: none; }

/* —— Каталог /schemes/: фильтр —— */
.schemes-filter {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 0.6rem;
  max-width: 28rem; margin: 0 0 1.4rem;
  padding: 0.55rem 0.85rem; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(12, 16, 28, 0.66);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: rgba(244, 247, 255, 0.7);
}
.schemes-filter:focus-within { border-color: rgba(96, 165, 250, 0.6); }
.schemes-filter input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  color: #f4f7ff; font: inherit; font-size: 0.95rem;
}
.schemes-filter input::placeholder { color: rgba(244, 247, 255, 0.45); }
.schemes-filter__count { font-size: 0.78rem; white-space: nowrap; opacity: 0.7; }
.schemes-empty { position: relative; z-index: 1; color: rgba(244, 247, 255, 0.75); }
.models-poster-item[hidden], .models-brand[hidden] { display: none !important; }

/* —— Страница авто /schemes/m/… —— */
.schemes-model-hero { position: relative; z-index: 1; display: flex; gap: 1.1rem; align-items: center; margin: 0 0 1.2rem; color: #f4f7ff; }
.schemes-model-hero__img { flex: 0 0 auto; width: min(15rem, 38vw); aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); }
.schemes-model-hero h1 { margin: 0 0 0.3rem; font-size: clamp(1.35rem, 3vw, 1.9rem); font-weight: 800; letter-spacing: -0.03em; }
.schemes-model-hero p { margin: 0; color: rgba(244, 247, 255, 0.72); font-size: 0.92rem; }
.schemes-model-hero a { color: #b9d3ff; }
@media (max-width: 560px) { .schemes-model-hero { flex-direction: column; align-items: flex-start; } .schemes-model-hero__img { width: 100%; } }

/* —— Страницы каталога и схемы: на всю ширину, без боковой колонки —— */
html.page-schemes-v body,
html.page-schemes-v #content,
html.page-schemes-v #content .site-layout,
html.page-schemes-v #content .site-layout__main { background: transparent !important; }
html.page-schemes-v body { background: #0b0f16 !important; }
html.page-schemes-v #content .site-layout {
  display: block !important; max-width: none !important; width: 100% !important;
  padding: 0 !important; margin: 0 !important; grid-template-columns: none !important;
}
html.page-schemes-v #content .site-layout__main { max-width: none !important; width: 100% !important; padding: 0 !important; margin: 0 !important; }
html.page-schemes-v #content .site-layout__sidebar { display: none !important; }
html.page-schemes-v .site-prefooter, html.page-schemes-v .site-footer { position: relative; z-index: 3; }

.schemes-crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.45rem;
  padding: 0.7rem 1.1rem;
  background: rgba(12, 16, 28, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.84rem; line-height: 1.35;
  color: rgba(244, 247, 255, 0.92);
  position: relative; z-index: 4;
}
.schemes-crumbs a { color: #b9d3ff; text-decoration: none; }
.schemes-crumbs a:hover { color: #d7e6ff; }
.schemes-crumbs__sep { opacity: 0.4; user-select: none; }
.schemes-crumbs__here { color: rgba(244, 247, 255, 0.92); font-weight: 650; }
.schemes-dl {
  margin-left: auto; display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.85rem; border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.4); background: rgba(37, 99, 235, 0.22);
  color: #dbeafe !important; font-weight: 650; text-decoration: none !important; white-space: nowrap;
}
.schemes-dl:hover { background: rgba(37, 99, 235, 0.38); color: #fff !important; }

.schemes-page { position: relative; z-index: 3; padding: 1.1rem 1.15rem 2.5rem; max-width: 72rem; color: #f4f7ff; }
.schemes-page h1 { margin: 0 0 0.4rem; font-size: clamp(1.45rem, 3.4vw, 2rem); font-weight: 800; letter-spacing: -0.03em; color: #f4f7ff; }
.schemes-page__lead { margin: 0 0 1.1rem; opacity: 0.72; }
.schemes-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.schemes-list a {
  display: flex; justify-content: space-between; gap: 0.75rem; align-items: baseline;
  padding: 0.72rem 0.9rem; border-radius: 12px; text-decoration: none; color: #f4f7ff;
  border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(12, 16, 28, 0.62);
  transition: transform 0.22s cubic-bezier(0.33, 1, 0.68, 1), border-color 0.2s ease, background 0.2s ease;
}
.schemes-list a:hover { transform: translateY(-2px); border-color: rgba(96, 165, 250, 0.45); background: rgba(12, 16, 28, 0.82); }
.schemes-list .g { opacity: 0.55; font-size: 0.78rem; flex: none; }

.schemes-stage {
  overflow: auto; width: 100%;
  max-height: calc(100vh - 8rem); min-height: 60vh;
  padding: 12px;
  background: linear-gradient(180deg, rgba(12, 16, 28, 0.35), rgba(12, 16, 28, 0.55)), #0b0f16;
}
.schemes-stage svg { display: block; width: auto; height: auto; max-width: none; background: #fff; border-radius: 8px; }
