
:root {
  --bg: #0E0D0B;
  --bg-elevated: #16140F;
  --surface: #1A1814;
  --text: #F2EDE3;
  --text-muted: #9A938A;
  --text-soft: #6A655E;
  --line: #262320;
  --line-strong: #3A3530;
  --accent: #E8A33D;
  --accent-hover: #F4B855;
  --accent-soft: rgba(232, 163, 61, 0.08);
  --accent-soft-hover: rgba(232, 163, 61, 0.14);
  --danger: #E06B5A;

  --serif: "Fraunces", "Spectral", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  --radius: 0;
  --content-max: 1180px;
  --content-pad: 40px;

  --t-fast: 0.15s ease;
}

/* ---------- Сброс ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;

 background-image: url('../img/back2.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;



}





img, svg { max-width: 100%; height: auto; display: block; }

/* Скроллбар */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-soft); }

/* Выделение */
::selection {
  background: var(--accent);
  color: var(--bg);
}

/* ---------- Ссылки ---------- */
a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--accent-hover); }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Шапка ---------- */
header.site {
  border-bottom: 1px solid var(--line);
  background: rgba(14, 13, 11, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 22px var(--content-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.logo {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  font-variation-settings: "opsz" 40;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
}
.logo span { color: var(--accent); }
.logo:hover { color: var(--text); }

nav.main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 32px;
}
nav.main a {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
}
nav.main a:hover {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* ---------- Кнопка-гамбургер ---------- */
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 12px 11px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  transition: border-color var(--t-fast);
}
.menu-toggle:hover { border-color: var(--accent); }
.menu-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color var(--t-fast);
}
.menu-toggle:hover span { background: var(--accent); }

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ---------- Хлебные крошки ---------- */
.breadcrumbs {
  max-width: var(--content-max);
  margin: 0 auto;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  text-transform: uppercase;
}
.breadcrumbs a {
  color: var(--text-soft);
  border-bottom: 1px solid transparent;
}
.breadcrumbs a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.breadcrumbs .sep {
  margin: 0 8px;
  opacity: 0.5;
}
.breadcrumbs [aria-current="page"] { color: var(--text-muted); }

/* ---------- Основной контейнер ---------- */
main {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--content-pad) 120px;
}

main .breadcrumbs {
  padding-left: 0;
  padding-right: 0;
  padding-top: 32px;
}

/* ---------- Секции ---------- */
section {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
}
section:last-of-type { border-bottom: none; }

h2.section-title {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--text-soft);
  margin: 0 0 36px;
  position: relative;
  padding-left: 18px;
}
h2.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

/* =========================================================
   HERO — двухколоночный блок
   ========================================================= */
.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: center;
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--accent) 15%,
    var(--accent) 85%,
    transparent 100%);
  opacity: 0.4;
}

.hero-text {
  min-width: 0;
}

.hero-text h1,
.hero h1,
.hero .synth-name {
  font-family: var(--serif);
  font-size: 72px;
  line-height: 1.02;
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  color: var(--text);
  max-width: 720px;
}

.hero-text h1 em,
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.hero-text p,
.hero p {
  font-family: var(--sans);
  font-size: 20px;
  line-height: 1.6;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0;
}

.hero-image {
  flex-shrink: 0;
  position: relative;
}

.hero-image img {
  width: 340px;
  max-width: 100%;
  height: auto;
  filter: brightness(0.95) contrast(105%);
  position: relative;
  z-index: 1;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle at center,
    rgba(232, 163, 61, 0.08) 0%,
    transparent 70%);
  z-index: 0;
  pointer-events: none;
}

/* ---------- Блок «О сайте» ---------- */
.about .container7,
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}
.about .container7 { align-items: center; }
.about-grid h2 { margin: 0; }

.about .description,
.about-grid .description {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.7;
  font-weight: 400;
  font-variation-settings: "opsz" 30;
  color: var(--text);
  max-width: none;
}
.about .description p,
.about-grid .description p { margin: 0 0 20px; }
.about .description p:last-child,
.about-grid .description p:last-child { margin-bottom: 0; }
.about .description b,
.about .description strong,
.about-grid .description b,
.about-grid .description strong {
  font-weight: 600;
  color: var(--accent);
}
.about img.responsive-image7 {
  width: 520px;
  height: auto;
  filter: brightness(0.95) contrast(105%);
  flex-shrink: 0;
}

/* ---------- Заголовок карточки ---------- */
.synth-header {
  border-bottom: 1px solid var(--line);
  padding: 32px 0 32px;
  margin-bottom: 0;
}

.synth-header .breadcrumbs {
  padding-top: 0;
  padding-bottom: 20px;
}

.synth-meta-top {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 14px;
}
.synth-meta-top .divider {
  margin: 0 10px;
  opacity: 0.4;
}
.synth-meta-top a {
  color: var(--text-soft);
  border-bottom: 1px solid transparent;
}
.synth-meta-top a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

h1.synth-name {
  font-family: var(--serif);
  font-size: 76px;
  line-height: 1.05;
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  color: var(--text);
}

.synth-tagline {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0;
}
.synth-tagline a {
  border-bottom: 1px solid transparent;
}
.synth-tagline a:hover {
  border-bottom-color: var(--accent);
}

/* ---------- Краткое описание ---------- */
.description {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.7;
  font-variation-settings: "opsz" 30;
  color: var(--text);
  max-width: 720px;
}
.description p { margin: 0 0 18px; }
.description p:last-child { margin-bottom: 0; }

.description img {
  max-width: 100%;
  height: auto;
  margin: 16px 0;
}
.description ul,
.description ol {
  margin: 16px 0;
  padding-left: 24px;
}
.description blockquote {
  margin: 16px 0;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
  color: var(--text-muted);
  font-style: italic;
}
.description h1,
.description h2,
.description h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 24px 0 8px;
}

/* ---------- Характеристики ---------- */
.specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 64px;
}

.spec-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.spec-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.spec-value {
  font-family: var(--sans);
  font-size: 17px;
  color: var(--text);
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.spec-value .num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

/* ---------- Теги (Да/Нет, сортировка) ---------- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 3px 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  white-space: nowrap;
  transition: color var(--t-fast), border-color var(--t-fast), background-color var(--t-fast);
}

a.tag:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.tag.yes {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.tag.no {
  color: var(--text-soft);
  border-color: var(--line);
}

/* ---------- Чипы (категории, страны, эпохи) ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
}

.chip {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 24px 12px 0;
  margin-right: 24px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  font-variation-settings: "opsz" 30;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: color var(--t-fast), border-color var(--t-fast);
}
.chip:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.chip-count {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.chip:hover .chip-count { color: var(--accent); }

.chip-empty {
  opacity: 0.3;
  pointer-events: none;
}

/* ---------- Статистика ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  padding: 48px 28px;
  border-right: 1px solid var(--line);
  text-align: left;
}
.stat:last-child { border-right: none; }

.stat-num {
  display: block;
  font-family: var(--serif);
  font-size: 80px;
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 16px;
}
.stat-label {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-soft);
}

/* ---------- Карточки связанных сущностей ---------- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 80px;
}

.related-card {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  background: transparent;
}
.related-grid .related-card:nth-child(-n+2) { border-top: none; padding-top: 0; }

.related-card h3 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  font-variation-settings: "opsz" 40;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  line-height: 1.15;
}
.related-card h3 a {
  color: var(--text);
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.related-card h3 a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.related-meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.related-text {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 12px 0 0;
}

.related-years {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 14px;
}

/* ---------- Таблица каталога ---------- */
.catalog-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 17px;
}

.catalog-table th,
.catalog-table td {
  padding: 16px 20px 16px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: baseline;
}

.catalog-table th {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 500;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}

.catalog-table td.num,
.catalog-table th.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
  padding-right: 0;
}

.catalog-table td:last-child:not(.num),
.catalog-table th:last-child:not(.num) {
  padding-right: 0;
}

.catalog-table tbody tr {
  transition: background-color var(--t-fast);
}
.catalog-table tbody tr:hover {
  background: var(--accent-soft);
}

.catalog-table a {
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.catalog-table a:hover {
  border-bottom-color: var(--accent);
}

/* ---------- Форма поиска ---------- */
.search-form {
  display: flex;
  gap: 12px;
  max-width: 640px;
  align-items: stretch;
}

.search-form input[type="text"],
.search-form input[type="search"] {
  flex: 1;
  padding: 12px 16px;
  font: inherit;
  font-family: var(--sans);
  font-size: 17px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--t-fast);
  min-width: 0;
}
.search-form input[type="text"]::placeholder,
.search-form input[type="search"]::placeholder {
  color: var(--text-soft);
}
.search-form input[type="text"]:focus,
.search-form input[type="search"]:focus {
  border-color: var(--accent);
}

.search-form button {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 22px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  border-radius: var(--radius);
  transition: background-color var(--t-fast), color var(--t-fast);
  white-space: nowrap;
}
.search-form button:hover {
  background: var(--accent);
  color: var(--bg);
}
.search-form button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Пагинация ---------- */
.pagination {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.pagination a,
.pagination span {
  font-family: var(--mono);
  font-size: 12px;
  padding: 5px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
}
.pagination a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.pagination .current {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Баннер ---------- */
.hero-banner {
  margin: 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-elevated);
}
.hero-banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Утилиты ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-muted { color: var(--text-muted); }

/* ---------- Подвал ---------- */
footer.site {
  border-top: 1px solid var(--line);
  padding: 48px var(--content-pad);
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}
footer.site::before {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto 24px;
  opacity: 0.5;
}

/* =========================================================
   АДАПТИВ: ПЛАНШЕТ (≤1024px)
   ========================================================= */
@media (max-width: 1024px) {
  .specs { gap: 0 40px; }
  .spec-row { grid-template-columns: 180px 1fr; gap: 20px; }

  .about .container7,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about img.responsive-image7 {
    width: 100%;
    order: -1;
  }

  /* HERO: картинка под текстом */
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 64px 0 56px;
  }
  .hero-image { order: 1; }
  .hero-image img { width: 460px; margin: 0 auto; }
  .hero-image::after { inset: -20px; }

  .hero h1,
  .hero .synth-name,
  .hero-text h1 { font-size: 56px; }

  h1.synth-name { font-size: 44px; }
}

/* =========================================================
   АДАПТИВ: МОБИЛКА (≤860px)
   ========================================================= */
@media (max-width: 860px) {
  :root { --content-pad: 20px; }

  /* Шапка: логотип + гамбургер в одну строку, меню — под ними */
  .header-inner {
    padding: 18px var(--content-pad);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
  }

  /* Показываем гамбургер */
  .menu-toggle { display: flex; }

  /* Меню скрыто, раскрывается по клику */
  nav.main {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    order: 3;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }
  nav.main.is-open { display: flex; }

  nav.main a {
    font-size: 16px;
    letter-spacing: 0.12em;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    width: 100%;
    color: var(--text);
  }
  nav.main a:last-child { border-bottom: none; }
  nav.main a:hover {
    color: var(--accent);
    border-bottom-color: var(--line);
  }

  main { padding: 0 var(--content-pad) 64px; }
  main .breadcrumbs { padding-top: 20px; }

  section { padding: 48px 0; }
  h2.section-title { margin-bottom: 24px; }

  /* HERO: картинка под текстом */
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 0 40px;
  }
  .hero-image { order: 1; }
  .hero-image img { width: 320px; margin: 0 auto; }
  .hero h1,
  .hero .synth-name,
  .hero-text h1 { font-size: 40px; }
  .hero p,
  .hero-text p { font-size: 18px; }

  .synth-header { padding: 24px 0; }
  h1.synth-name { font-size: 32px; }
  .synth-tagline { font-size: 16px; }

  .specs { grid-template-columns: 1fr; gap: 0; }
  .spec-row { grid-template-columns: 140px 1fr; gap: 16px; padding: 12px 0; }

  .related-grid { grid-template-columns: 1fr; gap: 0; }
  .related-grid .related-card:nth-child(-n+2) {
    border-top: 1px solid var(--line);
    padding-top: 32px;
  }
  .related-grid .related-card:first-child {
    border-top: none;
    padding-top: 0;
  }
  .related-card { padding: 32px 0; }
  .related-card h3 { font-size: 24px; }

  .catalog-table { font-size: 15px; }
  .catalog-table th,
  .catalog-table td { padding: 12px 14px 12px 0; }

  /* Скрываем «Страну» и «Годы» на мобилке */
  .catalog-table th:nth-child(4),
  .catalog-table td:nth-child(4),
  .catalog-table th:nth-child(5),
  .catalog-table td:nth-child(5) { display: none; }

  .stats { grid-template-columns: 1fr 1fr; }
  .stat {
    padding: 32px 20px;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .stat:nth-child(2n) { border-right: none; }
  .stat:last-child,
  .stat:nth-last-child(2) { border-bottom: none; }
  .stat-num { font-size: 52px; }

  .chip { font-size: 19px; padding: 10px 18px 10px 0; margin-right: 18px; }

  .search-form { flex-direction: column; }
  .search-form button { width: 100%; }

  .about .description,
  .about-grid .description { font-size: 18px; }
  .about img.responsive-image7 { width: 180px; }
}

/* =========================================================
   АДАПТИВ: МАЛЕНЬКАЯ МОБИЛКА (≤480px)
   ========================================================= */
@media (max-width: 480px) {
  .hero h1,
  .hero .synth-name,
  .hero-text h1 { font-size: 32px; }
  .hero-image img { width: 100%; }
  h1.synth-name { font-size: 26px; }
  .stat-num { font-size: 38px; }
  .related-card h3 { font-size: 21px; }
  .chip { font-size: 17px; }
  .about img.responsive-image7 { width: 140px; }

  nav.main a { font-size: 15px; padding: 14px 0; }

  .spec-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 10px 0;
  }
  .spec-label { font-size: 11px; }
}

/* ---------- Уважение к reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* =========================================================
   АЛФАВИТНАЯ НАВИГАЦИЯ
   ========================================================= */
.alphabet {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.alphabet-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

.alphabet-letter {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 42px;
  padding: 0 10px;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: color var(--t-fast), border-color var(--t-fast), background-color var(--t-fast);
  margin-right:3px;
}

.alphabet-letter:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.alphabet-letter:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}


/* Секция «По алфавиту» — компактнее */
.section-alphabet {
  padding-bottom: 32px;
}
.section-alphabet .section-title {
  margin-bottom: 20px;
}

/* Мобильная версия */
@media (max-width: 860px) {
  .alphabet {
    gap: 10px;
  }
  .alphabet-letter {
    min-width: 32px;
    height: 36px;
    padding: 0 8px;
    font-size: 15px;
  }
  .alphabet-letter + .alphabet-letter {
    margin-left: 6px;
  }
  .alphabet-letter + .alphabet-letter::before {
    left: -11px;
    font-size: 12px;
  }
  .section-alphabet {
    padding-bottom: 0px;
  }
}

@media (max-width: 480px) {
  .alphabet-letter {
    min-width: 28px;
    height: 32px;
    padding: 0 3px;
    font-size: 13px;
  }
  .alphabet-letter + .alphabet-letter {
    margin-left: 5px;
  }
  .alphabet-letter + .alphabet-letter::before {
    left: -9px;
    font-size: 10px;
  }
}


/* =========================================================
   КАТАЛОГ — компактные секции
   ========================================================= */

/* Сортировка */
section.section-sort {
  padding-top: 40px;
  padding-bottom: 24px;
}
section.section-sort .section-title {
  margin-bottom: 16px;
}

/* По алфавиту */
section.section-alphabet {
  padding-top: 24px;
  padding-bottom: 24px;
}
section.section-alphabet .section-title {
  margin-bottom: 20px;
}

/* Таблица */
section.section-table {
  padding-top: 40px;
  padding-bottom: 40px;
}



.video-embed {
  position: relative;
  padding-bottom: 56.25%; /* 9/16 = 0.5625 — для соотношения 16:9 */
  height: 0;
  width: 100%;
  overflow: hidden;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


/* Вступительный текст на страницах фильтров */
section.section-intro {
  padding-top: 24px;
  padding-bottom: 24px;
}
section.section-intro .description {
  max-width: 820px;
}