/* ============================================================================
   3D LAB — style.css
   Тёмная тема · оранжевый акцент · полностью адаптивная вёрстка
   ============================================================================ */

/* --------------------------------- Переменные ----------------------------- */
:root {
  --bg: #0b0e14;
  --surface: #121722;
  --surface-2: #182030;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.3);
  --text: #e6ebf4;
  --muted: #98a2b6;
  --accent: #f97316;
  --accent-hover: #fb923c;
  --accent-soft: rgba(249, 115, 22, 0.13);
  --good: #4ade80;
  --bad: #f87171;
  --shadow-card: 0 18px 40px -18px rgba(0, 0, 0, 0.55);
  --r-lg: 18px;
  --r-md: 14px;
  --r-sm: 10px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

/* --------------------------------- Базовые -------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
}

p {
  margin: 0 0 1em;
}

::selection {
  background: var(--accent);
  color: #1a1207;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Тонкий скроллбар в духе темы */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: #232c3d;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2e3a52;
}

.container {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: 56px;
}

/* -------------------------------- Кнопки ---------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease,
    color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #1a1207;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -8px rgba(249, 115, 22, 0.45);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ------------------------------ Типографика -------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin: 0 0 10px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
}

.section-title {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 800;
  margin: 0;
}

.section-more {
  flex-shrink: 0;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

.section-more:hover {
  color: var(--accent);
}

/* -------------------------------- Хедер ------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 14, 20, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.logo-mark {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--accent-soft);
  border: 1px solid rgba(249, 115, 22, 0.35);
  color: var(--accent);
}

.logo:hover .logo-mark {
  background: rgba(249, 115, 22, 0.22);
}

.site-nav {
  display: flex;
  gap: 6px;
}

.site-nav a {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.site-nav a.active {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
.menu-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------------------------------- Hero ----------------------------------- */
.hero {
  position: relative;
  padding-block: 72px 64px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 26px 26px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  font-weight: 800;
  margin: 0 0 18px;
}

.hero h1 .accent {
  color: var(--accent);
  white-space: nowrap;
}

.hero .lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 32em;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px dashed rgba(249, 115, 22, 0.45);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #cdd5e0;
  background: rgba(249, 115, 22, 0.05);
}

.hero-media {
  position: relative;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 8%;
  background: radial-gradient(circle at 50% 45%, rgba(249, 115, 22, 0.16), transparent 65%);
  filter: blur(30px);
  z-index: 0;
}

.hero-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.7);
}

/* ------------------------------ Статистика --------------------------------- */
.stats {
  border-block: 1px solid var(--border);
  background: rgba(18, 23, 34, 0.55);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-block: 30px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.86rem;
  color: var(--muted);
}

/* -------------------------------- Карточки --------------------------------- */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: var(--shadow-card);
}

.card-media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0e1219;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-media img {
  transform: scale(1.05);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px 20px;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--muted);
}

.chip {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
}

.card-title {
  font-size: 1.13rem;
  font-weight: 700;
  margin: 0;
}

.card-title a:hover {
  color: var(--accent);
}

.card-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.card-stats {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--muted);
}

.link-more {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

.link-more span {
  transition: transform 0.2s ease;
}

.link-more:hover span {
  transform: translateX(4px);
}

/* ----------------------------- CTA-полоса ---------------------------------- */
.cta-band {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: linear-gradient(120deg, rgba(249, 115, 22, 0.1), rgba(18, 23, 34, 0.9) 55%);
  padding: 40px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-band h2 {
  font-size: 1.4rem;
  margin: 0 0 6px;
}

.cta-band p {
  margin: 0;
  color: var(--muted);
}

/* ------------------------------ Шапка страницы ----------------------------- */
.page-head {
  padding-block: 56px 10px;
}

.page-head h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 800;
  margin: 0 0 12px;
}

.page-head .page-desc {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 40em;
  margin: 0;
}

/* ------------------------- Фильтры и сортировка ---------------------------- */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-block: 32px 28px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.filter-btn:hover {
  color: var(--accent);
  border-color: rgba(249, 115, 22, 0.5);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a1207;
  font-weight: 600;
}

.sort-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--muted);
}

.sort-select {
  appearance: none;
  -webkit-appearance: none;
  padding: 10px 38px 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2398a2b6' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  color: var(--text);
  font-size: 0.88rem;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.sort-select:hover,
.sort-select:focus {
  border-color: var(--accent);
  outline: none;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 24px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-lg);
  color: var(--muted);
}

/* ----------------------------- Страница модели ----------------------------- */
.model-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.model-back:hover {
  color: var(--accent);
  transform: translateX(-3px);
}

.model-head {
  margin-block: 18px 34px;
}

.model-head h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 800;
  margin: 0 0 10px;
}

.model-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
}

.model-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: start;
}

.gallery-main {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  cursor: zoom-in;
  background: #0e1219;
}

.gallery-main img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.gallery-thumb {
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: #0e1219;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.gallery-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.gallery-thumb:hover,
.gallery-thumb.active {
  opacity: 1;
  border-color: var(--accent);
}

.model-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 92px;
}

.rating-card {
  background: var(--surface);
  border: 1px solid rgba(249, 115, 22, 0.35);
  border-radius: var(--r-lg);
  padding: 24px;
}

.rating-card .rating-value {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}

.rating-card .rating-caption {
  color: var(--muted);
  font-size: 0.86rem;
  margin: 4px 0 12px;
}

.stars {
  font-size: 1.05rem;
  letter-spacing: 3px;
  color: var(--accent);
  white-space: nowrap;
}

.stars-empty {
  color: #333c4d;
}

.quick-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.spec-mini {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 13px 16px;
}

.spec-mini .spec-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.spec-mini .spec-value {
  font-weight: 700;
  font-size: 0.98rem;
  margin-top: 3px;
}

/* ------------------------- Секции страницы модели -------------------------- */
.detail-section {
  margin-top: 52px;
  counter-increment: section;
}

.detail-section > h2::before {
  content: counter(section, decimal-leading-zero) " / ";
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--accent);
  font-weight: 600;
}

.detail-section h2 {
  font-size: 1.45rem;
  font-weight: 700;
}

.prose p {
  color: #c4ccd9;
  max-width: 46em;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.spec-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 18px;
  transition: border-color 0.2s ease;
}

.spec-item:hover {
  border-color: rgba(249, 115, 22, 0.4);
}

.spec-item .spec-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.spec-item .spec-value {
  font-size: 1.08rem;
  font-weight: 700;
  margin-top: 6px;
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.pros,
.cons {
  border-radius: var(--r-lg);
  padding: 24px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.pros {
  border-color: rgba(74, 222, 128, 0.28);
}

.cons {
  border-color: rgba(248, 113, 113, 0.28);
}

.pros h3,
.cons h3 {
  font-size: 1.08rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pros h3::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(74, 222, 128, 0.14);
  color: var(--good);
  font-size: 0.9rem;
}

.cons h3::before {
  content: "✕";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(248, 113, 113, 0.14);
  color: var(--bad);
  font-size: 0.85rem;
}

.pros ul,
.cons ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pros li,
.cons li {
  position: relative;
  padding-left: 22px;
  color: #c4ccd9;
  font-size: 0.95rem;
}

.pros li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--good);
  font-weight: 700;
}

.cons li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--bad);
  font-weight: 700;
}

.conclusion-card {
  border: 1px solid rgba(249, 115, 22, 0.35);
  background: linear-gradient(140deg, rgba(249, 115, 22, 0.09), var(--surface) 60%);
  border-radius: var(--r-lg);
  padding: 30px 32px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.conclusion-rating {
  flex-shrink: 0;
  text-align: center;
}

.conclusion-rating .rating-value {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.conclusion-rating .stars {
  font-size: 0.9rem;
  letter-spacing: 2px;
}

.conclusion-rating .rating-caption {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 6px;
}

.conclusion-card p {
  margin: 0;
  color: #c4ccd9;
  max-width: 40em;
  font-size: 1.02rem;
}

.not-found {
  text-align: center;
  padding: 80px 24px;
}

.not-found h1 {
  font-size: 1.6rem;
}

.not-found p {
  color: var(--muted);
}

/* --------------------------------- Статья ---------------------------------- */
.article {
  max-width: 780px;
  margin-inline: auto;
}

.article-header {
  margin-block: 18px 28px;
}

.article-header h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 800;
  margin: 0 0 14px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
}

.article-hero {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  margin: 0 0 12px;
}

.article-hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-body h2 {
  font-size: 1.4rem;
  margin: 44px 0 16px;
}

.article-body h2::before {
  content: "// ";
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 600;
}

.article-body p {
  color: #c4ccd9;
  font-size: 1.03rem;
}

.article-body p.lead-text {
  font-size: 1.14rem;
  color: var(--text);
}

.settings-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}

.settings-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

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

.settings-table td:first-child {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: 46%;
}

.settings-table td:last-child {
  font-weight: 700;
}

.article-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 22px 0;
}

.article-images figure {
  margin: 0;
}

.article-images img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  cursor: zoom-in;
  transition: border-color 0.2s ease, transform 0.25s ease;
}

.article-images img:hover {
  border-color: rgba(249, 115, 22, 0.5);
  transform: translateY(-3px);
}

.article-images figcaption {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--muted);
  text-align: center;
}

.article-rating {
  margin-top: 44px;
  border: 1px solid rgba(249, 115, 22, 0.35);
  background: linear-gradient(140deg, rgba(249, 115, 22, 0.09), var(--surface) 60%);
  border-radius: var(--r-lg);
  padding: 30px 32px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.article-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 36px;
}

/* --------------------------------- О проекте ------------------------------- */
.about-text {
  max-width: 46em;
  color: #c4ccd9;
  font-size: 1.05rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.steps li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 20px;
  align-items: start;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.steps li:hover {
  border-color: rgba(249, 115, 22, 0.4);
  transform: translateX(4px);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  border-right: 1px solid var(--border);
  line-height: 1.3;
}

.steps h3 {
  font-size: 1.02rem;
  margin: 0 0 4px;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.gear-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
}

.gear-card h3 {
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.gear-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
}

/* --------------------------------- Контакты -------------------------------- */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
  align-items: start;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
  transition: border-color 0.2s ease;
}

.contact-card:hover {
  border-color: rgba(249, 115, 22, 0.4);
}

.contact-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.contact-card h3 {
  font-size: 1rem;
  margin: 0 0 4px;
}

.contact-card p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-card a {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent);
}

.contact-card a:hover {
  text-decoration: underline;
}

.contact-note {
  padding: 16px 18px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-md);
  color: var(--muted);
  font-size: 0.88rem;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
}

.form-card h2 {
  font-size: 1.2rem;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 7px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #5b6575;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.form-field textarea {
  resize: vertical;
  min-height: 130px;
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.form-success[hidden] {
  display: none;
}

.form-success .success-title {
  color: var(--good);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-success p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------------------------------- Футер ---------------------------------- */
.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--border);
  background: rgba(18, 23, 34, 0.5);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-block: 48px 36px;
}

.footer-brand p {
  color: var(--muted);
  margin: 14px 0 0;
  max-width: 22em;
  font-size: 0.94rem;
}

.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: #c4ccd9;
  font-size: 0.94rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-block: 20px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}

/* -------------------------------- Лайтбокс --------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 10, 15, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox figure {
  margin: 0;
  max-width: min(92vw, 1200px);
  text-align: center;
}

.lightbox img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9);
  margin-inline: auto;
}

.lightbox figcaption {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}

.lightbox-counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  background: rgba(18, 23, 34, 0.85);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 16px;
}

.lightbox-btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(18, 23, 34, 0.85);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  user-select: none;
}

.lightbox-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.lightbox-close {
  top: 22px;
  right: 22px;
}

.lightbox-prev {
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev:hover {
  transform: translateY(-50%) translateX(-2px);
}

.lightbox-next:hover {
  transform: translateY(-50%) translateX(2px);
}

/* ------------------------------- Адаптивность ------------------------------ */
@media (max-width: 1024px) {
  .grid-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .model-top {
    grid-template-columns: 1fr;
  }

  .model-side {
    position: static;
  }

  .quick-specs {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-media {
    max-width: 560px;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 880px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    padding: 16px 24px 22px;
    background: rgba(11, 14, 20, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.7);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
  }

  .menu-open .site-nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .site-nav a {
    padding: 12px 14px;
    font-size: 1rem;
  }
}

@media (max-width: 720px) {
  .section {
    padding-block: 44px;
  }

  .hero {
    padding-block: 52px 44px;
  }

  .grid-cards {
    grid-template-columns: 1fr;
  }

  .pros-cons {
    grid-template-columns: 1fr;
  }

  .gear-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .quick-specs {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-thumbs {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .sort-wrap {
    justify-content: space-between;
  }

  .cta-band {
    padding: 30px 26px;
  }

  .conclusion-card,
  .article-rating {
    padding: 24px;
  }

  .article-images {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: 18px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-note {
    font-size: 0.74rem;
    padding: 9px 14px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .lightbox-btn {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }

  .lightbox-close {
    top: 14px;
    right: 14px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }
}

/* ---------------------- Снижение анимаций при запросе ---------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
