/* ── Tokens ── */
:root {
  /* Accent — синий YRO (светлее на тёмной теме, чтобы текст читался) */
  --accent:       #4a7ce8;
  --accent-2:     #2f5fc9;
  --accent-light: #7ea3f2;
  --accent-dim:   rgba(74,124,232,.13);
  --accent-glow:  transparent;      /* неон убран: только рамка и фон */

  /* Dark (default) — тёплый почти-чёрный с фиолетовым оттенком */
  --bg-0:     #0d0c0f;
  --bg-1:     #141218;
  --bg-2:     #1c1921;
  --bg-3:     #242129;
  --bg-hover: #1a1720;
  --text-0:   #eeeaf0;
  --text-1:   #9e98a8;
  --text-2:   #625c6e;
  --b0:       rgba(255,255,255,.055);
  --b1:       rgba(255,255,255,.10);
  --b2:       rgba(255,255,255,.17);
  --b-accent: rgba(74,124,232,.32);
  --sh-sm:    0 1px 3px rgba(0,0,0,.45);
  --sh-md:    0 6px 24px rgba(0,0,0,.55);
  --sh-lg:    0 16px 48px rgba(0,0,0,.65);

  --font:     'Onest', system-ui, sans-serif;
  --r:        0;
  --r-lg:     0;
  --r-xl:     0;
  --r-pill:   0;
  --nav-h:    64px;
  --max-w:    1200px;
  --tr:       .22s cubic-bezier(.4,0,.2,1);
  color-scheme: dark;
}

[data-theme="light"] { color-scheme: light; }
[data-theme="black"] { color-scheme: dark; }

[data-theme="light"] {
  --accent:       #234da1;
  --accent-2:     #1a3a7a;
  --accent-light: #4a72c8;
  --accent-dim:   rgba(35,77,161,.10);
  --bg-0:     #f8f6f3;
  --bg-1:     #ffffff;
  --bg-2:     #f0ece6;
  --bg-3:     #e6e0d8;
  --bg-hover: #ede8e0;
  --text-0:   #18140f;
  --text-1:   #524840;
  --text-2:   #9a8e84;
  --b0:       rgba(0,0,0,.055);
  --b1:       rgba(0,0,0,.10);
  --b2:       rgba(0,0,0,.17);
  --b-accent: rgba(35,77,161,.25);
  --sh-sm:    0 1px 3px rgba(0,0,0,.07);
  --sh-md:    0 6px 24px rgba(0,0,0,.10);
  --sh-lg:    0 16px 48px rgba(0,0,0,.13);
}

[data-theme="black"] {
  --bg-0:     #000;
  --bg-1:     #080808;
  --bg-2:     #111;
  --bg-3:     #1a1a1a;
  --bg-hover: #141414;
  --text-0:   #f5f5f5;
  --text-1:   #999;
  --text-2:   #555;
  --b0:       rgba(255,255,255,.04);
  --b1:       rgba(255,255,255,.08);
  --b2:       rgba(255,255,255,.14);
  --b-accent: rgba(74,124,232,.35);
  --sh-sm:    0 1px 3px rgba(0,0,0,.7);
  --sh-md:    0 6px 24px rgba(0,0,0,.75);
  --sh-lg:    0 16px 48px rgba(0,0,0,.8);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font);
  background: var(--bg-0);
  color: var(--text-0);
  line-height: 1.65;
  min-height: 100vh;
  display: flex; flex-direction: column;
  overflow-x: hidden;
  overflow-wrap: break-word;
  transition: background .3s, color .3s;
}
a { color: inherit; text-decoration: none; transition: color var(--tr); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; }
/* Строгие мелочи: золотое выделение текста и видимый фокус с клавиатуры */
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
main { flex: 1; }

/* ── Иконки (Material Symbols, self-hosted спрайт) ──
   .ic всегда 1em × 1em → наследует font-size контейнера и color темы. */
.ic {
  width: 1em; height: 1em;
  fill: currentColor;
  display: inline-block; vertical-align: -.14em;
  flex-shrink: 0;
}

/* ── Utils ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section    { padding: 72px 0; }
.text-center { text-align: center; }
.accent { color: var(--accent); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 26px; border-radius: var(--r-pill);
  font-weight: 700; font-size: .92rem;
  cursor: pointer; border: 1px solid transparent;
  transition: all var(--tr); white-space: nowrap;
}
.btn-primary, .btn-solar {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.btn-primary:hover, .btn-solar:hover {
  background: var(--accent-2); border-color: var(--accent-2); color: #fff;
  box-shadow: 0 6px 20px var(--accent-glow);
}
.btn-outline {
  background: transparent; color: var(--accent); border-color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent); color: #fff;
  box-shadow: 0 6px 20px var(--accent-glow);
}
.btn-ghost {
  background: var(--accent-dim); color: var(--accent); border-color: var(--b-accent);
}
.btn-ghost:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-sm  { padding: 7px 18px; font-size: .82rem; }
.btn-lg  { padding: 14px 36px; font-size: 1rem; }

/* ── Announce ── */
.header-announce {
  background: var(--accent); color: #fff;
  font-size: .8rem; font-weight: 600;
  text-align: center; padding: 7px 40px;
  position: relative; z-index: 1001;
}
.header-announce a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.header-announce-close {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: rgba(255,255,255,.6);
  cursor: pointer; font-size: .95rem; padding: 3px 7px;
  border-radius: 5px; transition: all .2s;
}
.header-announce-close:hover { color: #fff; background: rgba(255,255,255,.12); }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: transparent;
}

.header-bar {
  display: flex; align-items: center;
  height: var(--nav-h); gap: 12px;
  padding: 0 24px; max-width: var(--max-w); margin: 0 auto;
}

.header-logo { display: flex; align-items: center; flex-shrink: 0; transition: opacity var(--tr); }
.header-logo:hover { opacity: .72; }
.header-logo img { height: 32px; width: auto; }
.yro-logo { display: block; height: 34px; width: auto; }
[data-theme="dark"] .yro-logo,
[data-theme="black"] .yro-logo { filter: brightness(0) invert(1); }

/* Навбар-островок */
.nav-island {
  display: flex; align-items: center; gap: 1px;
  margin: 0 auto;
  padding: 5px 6px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--bg-1) 70%, transparent);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--b1);
  box-shadow: 0 2px 20px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.06);
  transition: box-shadow var(--tr), background .3s;
}
.site-header.scrolled .nav-island {
  box-shadow: 0 4px 32px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.07);
}
.nav-island a {
  padding: 6px 13px; font-weight: 500; font-size: .82rem;
  color: var(--text-1); border-radius: var(--r-pill);
  transition: all var(--tr); white-space: nowrap; text-decoration: none;
}
.nav-island a:hover { color: var(--text-0); background: var(--b1); }
.nav-island a.active {
  color: var(--accent); background: var(--accent-dim);
  font-weight: 600;
}

/* Правая группа */
.header-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: auto; }
.header-phone { font-size: .83rem; font-weight: 600; color: var(--text-1); white-space: nowrap; transition: color var(--tr); }
.header-phone:hover { color: var(--accent); }
.header-cta-btn {
  display: inline-flex; align-items: center;
  padding: 7px 15px; background: var(--accent); color: #fff !important;
  border-radius: var(--r-pill); font-size: .82rem; font-weight: 700; white-space: nowrap;
  transition: all var(--tr); box-shadow: 0 2px 10px var(--accent-glow);
}
.header-cta-btn:hover { background: var(--accent-2); color: #fff; }

/* Переключатель тем — островок */
.theme-pill {
  display: flex; align-items: center; gap: 1px;
  padding: 3px; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--bg-2) 70%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--b1);
}
.tpb {
  width: 28px; height: 26px; border-radius: var(--r-pill);
  border: none; background: none; color: var(--text-2);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .18s;
}
.tpb svg { display: block; flex-shrink: 0; }
.tpb:hover { color: var(--text-0); }
.tpb.active {
  background: var(--bg-1); color: var(--text-0);
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
}

/* Переключатель языка — островок с дропдауном (details, без JS) */
.lang-switch {
  position: relative;
  display: flex; align-items: center;
  padding: 3px; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--bg-2) 70%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--b1);
  flex-shrink: 0;
}
.lang-switch summary {
  display: flex; align-items: center; gap: 4px;
  padding: 4px 8px; border-radius: var(--r-pill);
  font-size: .72rem; font-weight: 700; letter-spacing: .4px;
  color: var(--text-2); line-height: 1;
  cursor: pointer; list-style: none;
  text-transform: uppercase;
  transition: all .18s;
  user-select: none;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover { color: var(--text-0); }
.lang-switch[open] summary {
  background: var(--bg-1); color: var(--text-0);
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.lang-caret { transition: transform .18s; flex-shrink: 0; }
.lang-switch[open] .lang-caret { transform: rotate(180deg); }

.lang-switch .lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 60;
  display: flex; flex-direction: column; min-width: 148px;
  padding: 5px; border-radius: var(--r);
  background: var(--bg-1);
  border: 1px solid var(--b1);
  box-shadow: 0 8px 28px rgba(0,0,0,.28);
}
.lang-switch .lang-menu a {
  padding: 7px 10px; border-radius: 6px;
  font-size: .8rem; font-weight: 600; letter-spacing: 0;
  color: var(--text-2); text-transform: none;
  white-space: nowrap; text-decoration: none;
  transition: all .15s;
}
.lang-switch .lang-menu a:hover { background: var(--bg-2); color: var(--text-0); }
.lang-switch .lang-menu a.active {
  background: var(--bg-2); color: var(--text-0); font-weight: 700;
}
/* RTL: меню по левому краю островка */
[dir="rtl"] .lang-switch .lang-menu { right: auto; left: 0; }

/* Бургер */
.burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  cursor: pointer; padding: 7px; background: var(--b0); border: 1px solid var(--b1);
  border-radius: var(--r); transition: all var(--tr); flex-shrink: 0;
}
.burger:hover { background: var(--b1); }
.burger span { display: block; width: 18px; height: 1.5px; background: var(--text-0); border-radius: 2px; transition: transform .25s, opacity .25s; }
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Мобильное меню — островок */
.mobile-menu {
  display: none;
  position: absolute; top: calc(var(--nav-h) + 8px); left: 16px; right: 16px;
  background: color-mix(in srgb, var(--bg-1) 78%, transparent);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border: 1px solid var(--b1);
  border-radius: var(--r-xl);
  box-shadow: 0 8px 40px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.07);
  padding: 8px;
  overflow: hidden;
  animation: islandDown .22s cubic-bezier(.4,0,.2,1);
  transform-origin: top center;
}
.mobile-menu.open { display: block; }
@keyframes islandDown {
  from { opacity: 0; transform: scale(.97) translateY(-6px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.mobile-nav { display: flex; flex-direction: column; gap: 2px; }
.mobile-nav a {
  padding: 11px 16px; color: var(--text-1);
  font-size: .92rem; font-weight: 500; transition: all var(--tr);
  text-decoration: none; border-radius: var(--r-lg);
}
.mobile-nav a:hover { color: var(--text-0); background: var(--b1); }
.mobile-nav a.active {
  color: var(--accent); background: var(--accent-dim);
  font-weight: 600;
}
.mobile-nav-accent { color: var(--accent) !important; font-weight: 700 !important; }
.mobile-nav-cta {
  display: block; margin-top: 6px; padding: 12px 16px !important;
  background: var(--accent); color: #fff !important;
  border-radius: var(--r-lg); font-weight: 700 !important;
  text-align: center; transition: background var(--tr) !important;
}
.mobile-nav-cta:hover { background: var(--accent-2) !important; }

/* Разделитель в мобильном меню */
.mobile-menu-sep {
  height: 1px; background: var(--b1); margin: 6px 4px;
}
/* Строка с телефоном в мобильном меню */
.mobile-menu-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px 4px; margin-top: 4px;
}

/* ── Hero ── */
.hero {
  background: var(--bg-0); color: var(--text-0);
  padding: 80px 0 64px; border-bottom: 1px solid var(--b0);
}
.hero-tagline {
  color: var(--text-2); font-size: .78rem; font-weight: 600;
  margin-bottom: 14px; letter-spacing: .1em; text-transform: uppercase;
}
.hero-logo {
  font-size: clamp(48px, 8vw, 96px); font-weight: 900;
  line-height: 1.05; margin-bottom: 40px; letter-spacing: -3px;
}
.hero-logo span { color: var(--accent); }

/* ── Section cards ── */
.section-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 14px; padding: 40px 0 80px;
}
.section-card {
  border-radius: var(--r-xl); overflow: hidden;
  position: relative; height: 440px;
  border: 1px solid var(--b1);
  transition: transform .35s cubic-bezier(.4,0,.2,1),
              box-shadow .35s cubic-bezier(.4,0,.2,1),
              border-color .25s;
}
.section-card:hover {
  box-shadow: var(--sh-md); border-color: var(--b-accent);
}
.section-card-header { padding: 20px 20px 0; position: relative; z-index: 2; }
.card-star { font-size: 80px; color: var(--accent); line-height: 1; display: block; }
.section-card-icon, .section-card-body, .section-card-desc,
.section-card-contacts, .section-card-footer { display: none; }
.section-card-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 2rem; text-align: center;
  background: rgba(0,0,0,.2); transition: background .3s;
}
.section-card:hover .section-card-overlay { background: rgba(180,40,40,.65); }
.section-card-title {
  color: #fff; font-size: clamp(24px, 4vw, 42px);
  font-weight: 900; letter-spacing: -1px; margin-bottom: 12px;
}
.section-card-subtitle { color: rgba(255,255,255,.8); font-size: .95rem; margin-bottom: 24px; }
.section-card-btn {
  display: inline-flex; align-items: center; padding: 10px 28px;
  background: rgba(255,255,255,.1); backdrop-filter: blur(8px);
  color: #fff; font-weight: 700; border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,.3); transition: all .22s;
}
.section-card-btn:hover { background: #fff; color: var(--accent); border-color: #fff; }
.section-card-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }

/* ── Section hero ── */
.section-hero {
  padding: 52px 0 44px; background: var(--bg-0); border-bottom: 1px solid var(--b0);
}
.section-hero-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.section-hero-text h1 {
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900;
  margin-bottom: 10px; letter-spacing: -1.5px; line-height: 1.1;
}
.section-hero-text h1 .accent { color: var(--accent); }
.section-hero-text p { color: var(--text-1); font-size: 1rem; }
.section-hero-icon { font-size: 64px; opacity: .06; margin-left: auto; }

/* Герой с фоновой картинкой: градиент всегда тёмный (rgba(13,14,17,…)), поэтому
   в светлой теме тёмный текст ложился бы на тёмную картинку. Принудительно
   светлый текст поверх изображения — на любой теме. Фон собирается из
   --hero-img (задаётся в home.html), чтобы на мобилке/RTL менять градиент. */
.section-hero--img {
  background-image:
    linear-gradient(90deg, rgba(13,14,17,.92) 0%, rgba(13,14,17,.70) 45%, rgba(13,14,17,.35) 100%),
    var(--hero-img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
[dir="rtl"] .section-hero--img {
  background-image:
    linear-gradient(270deg, rgba(13,14,17,.92) 0%, rgba(13,14,17,.70) 45%, rgba(13,14,17,.35) 100%),
    var(--hero-img);
}
.section-hero--img h1,
.section-hero--img h1 .accent { color: #f3f0ea; }
.section-hero--img p { color: rgba(243,240,234,.82); }
.section-hero--img .btn-outline {
  color: #f3f0ea; border-color: rgba(255,255,255,.55); background: transparent;
}
.section-hero--img .btn-outline:hover {
  background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.85);
}

/* ── Quick tiles ── */
.quick-tiles {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px; padding: 32px 0 10px;
}
.quick-tile {
  background: var(--bg-1); border-radius: var(--r-lg);
  padding: 22px 16px; text-align: center;
  border: 1px solid var(--b0); transition: all var(--tr); color: var(--text-0);
}
.quick-tile:hover {
  border-color: var(--b-accent); box-shadow: var(--sh-md); color: var(--accent); background: var(--accent-dim);
}
.quick-tile-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  background: var(--accent-dim); color: var(--accent);
  font-size: 26px;
}
.quick-tile:hover .quick-tile-icon { background: var(--accent); color: #fff; }
.quick-tile-name { font-weight: 600; font-size: .88rem; }
.quick-tile-sub  { font-size: .74rem; color: var(--text-2); margin-top: 3px; }

/* ── About ── */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 26px; align-items: start; }
.about-grid--img { grid-template-columns: 1fr 300px; }
.about-block {
  background: var(--bg-1); border-radius: var(--r-lg);
  padding: 28px; border: 1px solid var(--b0); margin: 18px 0;
}
.about-block h2 { font-size: 1.2rem; font-weight: 800; margin-bottom: 12px; }
/* Линейка раздела: одинаковая для всех крупных заголовков */
.about-block h2::after,
.news-section-header h2::after {
  content: ''; display: block; width: 34px; height: 3px;
  background: var(--accent); margin-top: 7px;
}
.about-block p { color: var(--text-1); line-height: 1.8; }
.stats-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px; margin-top: 24px;
}
.stat-item { text-align: center; }
.stat-num { font-size: 1.9rem; font-weight: 900; color: var(--accent); letter-spacing: -1px; }
.stat-label { font-size: .78rem; color: var(--text-2); margin-top: 3px; }

/* ── Breadcrumb ── */
.breadcrumb { padding: 11px 0; border-bottom: 1px solid var(--b0); background: var(--bg-0); }
.breadcrumb-list {
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem; color: var(--text-2); flex-wrap: wrap;
}
.breadcrumb-list a { color: var(--accent); transition: opacity var(--tr); }
.breadcrumb-list a:hover { opacity: .7; }
.breadcrumb-sep { opacity: .3; }

/* ── Catalog ── */
.catalog-layout {
  display: grid; grid-template-columns: 220px 1fr;
  gap: 24px; padding: 24px 0 56px; min-width: 0;
}
.catalog-layout > * { min-width: 0; }

.cat-list { display: flex; flex-direction: column; gap: 2px; }
.cat-item a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 11px; border-radius: var(--r); font-size: .86rem;
  color: var(--text-1); font-weight: 500; transition: all var(--tr);
}
.cat-item a:hover { background: var(--b0); color: var(--text-0); }
.cat-item a.active {
  background: var(--accent); color: #fff; font-weight: 600;
  box-shadow: 0 2px 10px var(--accent-glow);
}
.cat-item .cat-count {
  font-size: .68rem; padding: 2px 7px; border-radius: var(--r-pill);
  background: var(--b1); color: var(--text-2);
}
.cat-item a.active .cat-count { background: rgba(255,255,255,.18); color: #fff; }
.cat-sub { margin-left: 10px; border-left: 1px solid var(--b1); padding-left: 7px; margin-top: 2px; }

.sidebar-card {
  background: var(--bg-1); border-radius: var(--r-lg);
  padding: 16px; margin-bottom: 10px; border: 1px solid var(--b0);
}
.sidebar-card-title {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .8px; color: var(--text-2); margin-bottom: 10px;
}

/* ── Product grid ── */
.products-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; flex-wrap: wrap; gap: 10px;
}
.products-header h2 { font-size: 1.3rem; font-weight: 800; letter-spacing: -.3px; }
.products-count { font-size: .8rem; color: var(--text-2); }

.products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px; min-width: 0;
}
.products-grid > * { min-width: 0; }

.product-card {
  background: var(--bg-1); border-radius: var(--r-xl); overflow: hidden;
  display: flex; flex-direction: column;
  border: 1px solid var(--b0); position: relative; height: 360px;
  transition: transform .3s cubic-bezier(.4,0,.2,1),
              box-shadow .3s cubic-bezier(.4,0,.2,1),
              border-color .22s;
}
.product-card:hover {
  box-shadow: var(--sh-md); border-color: var(--b-accent);
}
.product-card-img {
  flex: 1; overflow: hidden;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.product-card-img img {
  max-height: 190px; width: auto; max-width: 100%; object-fit: contain;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
}
.product-card:hover .product-card-img img { transform: scale(1.06); }
.product-card-img .no-img { color: var(--text-2); font-size: 48px; opacity: .25; }
.product-gallery-main .no-img { color: var(--text-2); font-size: 72px; opacity: .2; }
.product-card-body {
  padding: 14px 16px 16px;
  background: linear-gradient(to top, var(--bg-0) 0%, transparent 100%);
  position: absolute; bottom: 0; left: 0; right: 0;
}
.product-card-name {
  font-weight: 600; font-size: .88rem; color: var(--text-0);
  margin-bottom: 7px; line-height: 1.4;
}
.product-card-name a { color: var(--text-0); }
.product-card-desc { display: none; }
.product-card-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.product-price { font-size: .9rem; font-weight: 700; color: var(--accent); }
.product-price-old { font-size: .75rem; text-decoration: line-through; color: var(--text-2); }
.stock-badge { font-size: .68rem; padding: 2px 8px; border-radius: var(--r-pill); font-weight: 600; }
.stock-in  { background: rgba(34,197,94,.15); color: #4ade80; }
.stock-out { background: rgba(239,68,68,.15); color: #f87171; }
[data-theme="light"] .stock-in  { background: rgba(21,128,61,.1); color: #16a34a; }
[data-theme="light"] .stock-out { background: rgba(220,38,38,.08); color: #dc2626; }

.product-card-arrow {
  position: absolute; top: 12px; right: 12px;
  width: 38px; height: 38px; background: var(--accent); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px; font-weight: 700;
  transition: all var(--tr); z-index: 2; box-shadow: 0 2px 10px var(--accent-glow);
}
.product-card-arrow:hover { background: var(--accent-2); transform: scale(1.1); color: #fff; }

/* ── Product detail ── */
.product-detail { padding: 28px 0 56px; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px; min-width: 0; }
.product-detail-grid > * { min-width: 0; }
.product-gallery-main {
  border-radius: var(--r-xl); overflow: hidden;
  background: var(--bg-1); border: 1px solid var(--b0);
  aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
}
.product-gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.product-gallery-thumbs { display: flex; gap: 7px; margin-top: 9px; flex-wrap: wrap; }
.product-gallery-thumbs img {
  width: 62px; height: 62px; object-fit: cover; border-radius: var(--r);
  border: 1px solid var(--b1); cursor: pointer; transition: border-color var(--tr);
}
.product-gallery-thumbs img.active,
.product-gallery-thumbs img:hover { border-color: var(--accent); }
.product-info-title {
  font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 900;
  margin-bottom: 12px; line-height: 1.15; letter-spacing: -.5px;
}
.product-info-price-block { margin: 16px 0; }
.product-info-price { font-size: 1.9rem; font-weight: 900; color: var(--accent); letter-spacing: -1px; }
.product-info-price-old { font-size: .9rem; text-decoration: line-through; color: var(--text-2); margin-right: 8px; }
.product-info-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.product-category-label {
  display: inline-block; color: var(--accent); font-size: .76rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .8px; opacity: .7; margin-bottom: 9px;
}

/* Specs */
.specs-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.specs-table tr { transition: background var(--tr); }
.specs-table tr:nth-child(even) { background: var(--bg-1); }
.specs-table tr:hover { background: var(--bg-hover); }
.specs-table td { padding: 8px 13px; border-bottom: 1px solid var(--b0); }
.specs-table td:first-child { color: var(--text-2); width: 45%; }
.specs-table td:last-child { font-weight: 600; color: var(--text-0); }

/* ── News ── */
.news-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px; padding: 24px 0 56px;
}
.news-card {
  background: var(--bg-1); border-radius: var(--r-xl);
  overflow: hidden; border: 1px solid var(--b0);
  transition: all var(--tr); display: flex; flex-direction: column;
}
.news-card:hover { box-shadow: var(--sh-md); border-color: var(--b-accent); }
.news-card-img { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-2); }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .news-card-img img { transform: scale(1.04); }
.news-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.news-card-date { font-size: .72rem; color: var(--text-2); margin-bottom: 7px; }
.news-card-title { font-weight: 700; font-size: .92rem; margin-bottom: 7px; line-height: 1.45; color: var(--text-0); }
.news-card-title a:hover { color: var(--accent); }
.news-card-preview { font-size: .83rem; color: var(--text-1); flex: 1; }
.news-card-more { margin-top: 12px; font-size: .8rem; font-weight: 700; color: var(--accent); }
.news-card-more:hover { text-decoration: underline; }

/* ── Contacts ── */
.contacts-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px; padding: 32px 0 56px;
}
.contact-card {
  background: var(--bg-1); border-radius: var(--r-xl);
  padding: 28px 22px; border: 1px solid var(--b0);
  text-align: center; transition: all var(--tr); position: relative; overflow: hidden;
}
.contact-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
}
.contact-card:hover { box-shadow: var(--sh-md); border-color: var(--b-accent); }
.contact-card-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  background: var(--accent-dim); color: var(--accent);
  font-size: 25px;
}
.contact-card h3 { font-size: .95rem; font-weight: 800; text-transform: uppercase; margin-bottom: 9px; letter-spacing: .2px; color: var(--text-0); }
.contact-card p  { color: var(--text-1); font-size: .88rem; margin-bottom: 3px; }
.contact-card a  { color: var(--text-0); font-weight: 700; font-size: .95rem; }
.contact-card a:hover { color: var(--accent); }

/* Contact form */
.contact-form-wrap {
  background: var(--bg-1); border-radius: var(--r-xl);
  padding: 32px; border: 1px solid var(--b0);
  max-width: 540px; margin: 0 auto 56px; position: relative; overflow: hidden;
}
.contact-form-wrap::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
}
.form-title { font-size: 1.3rem; font-weight: 800; margin-bottom: 20px; letter-spacing: -.3px; color: var(--text-0); }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: .76rem; font-weight: 700; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-2); }
.form-control {
  display: block; width: 100%; padding: 10px 13px;
  border: 1px solid var(--b1); border-radius: var(--r);
  font-size: .9rem; color: var(--text-0); background: var(--bg-2);
  transition: border-color var(--tr), background var(--tr);
}
.form-control:focus { outline: none; border-color: var(--accent); background: var(--bg-1); }
.form-control::placeholder { color: var(--text-2); }
textarea.form-control { resize: vertical; min-height: 100px; }
.privacy-check {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 18px; cursor: pointer;
}
.privacy-check input[type=checkbox] { margin-top: 3px; flex-shrink: 0; accent-color: var(--accent); width: 16px; height: 16px; cursor: pointer; }
.privacy-check span { font-size: .83rem; color: var(--text-1); line-height: 1.5; }
.privacy-check a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.form-success { background: rgba(34,197,94,.1); color: #4ade80; padding: 10px 14px; border-radius: var(--r); margin-bottom: 14px; font-size: .85rem; border: 1px solid rgba(34,197,94,.2); }
.form-error   { background: var(--accent-dim); color: var(--accent); padding: 10px 14px; border-radius: var(--r); margin-bottom: 14px; font-size: .85rem; }
[data-theme="light"] .form-success { color: #16a34a; }
[data-theme="light"] .form-error   { color: var(--accent-2); }

/* ── Empty state ── */
.empty-state { text-align: center; padding: 72px 20px; color: var(--text-2); }
.empty-state-icon {
  width: 88px; height: 88px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  background: var(--accent-dim); color: var(--accent);
  font-size: 44px;
}
.empty-state h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 7px; color: var(--text-1); }

/* 404 */
.nf-icon {
  width: 120px; height: 120px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  background: var(--accent-dim); color: var(--accent);
  font-size: 56px;
}

/* ── Pagination ── */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--r);
  font-size: .85rem; font-weight: 700; border: 1px solid var(--b1);
  background: var(--bg-1); color: var(--text-0); transition: all var(--tr);
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 2px 10px var(--accent-glow); }
.pagination .disabled { opacity: .3; pointer-events: none; }

/* ── Footer ── */
.site-footer {
  background: var(--bg-1); color: var(--text-1);
  padding: 52px 0 22px; margin-top: auto;
  border-top: 1px solid var(--b0);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer-logo-link { display: inline-block; margin-bottom: 14px; }
.footer-logo { font-size: 1.5rem; font-weight: 900; letter-spacing: -.5px; color: var(--text-0); }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col-title { color: var(--text-0); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 4px; }
.footer-col a { font-size: .84rem; color: var(--text-1); transition: color var(--tr); }
.footer-col a:hover { color: var(--accent); }
.footer-brand .logo { font-size: 1.3rem; font-weight: 900; color: var(--text-0); margin-bottom: 10px; }
.footer-brand .logo span { color: var(--accent); }
.footer-brand p { font-size: .84rem; line-height: 1.8; color: var(--text-1); }
.footer-col h4 { color: var(--text-0); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 12px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a { font-size: .84rem; color: var(--text-1); transition: color var(--tr); }
.footer-col ul a:hover { color: var(--accent); }
.footer-extra { border-top: 1px solid var(--b0); padding: 14px 0 0; margin-top: 14px; font-size: .8rem; line-height: 1.8; color: var(--text-2); }
.footer-extra + .footer-extra { border-top: none; padding-top: 2px; margin-top: 0; }
.footer-extra a { color: var(--text-1); text-decoration: underline; text-underline-offset: 3px; }
.footer-extra a:hover { color: var(--accent); }
.footer-extra strong { color: var(--text-0); }
.footer-extra ul { padding-left: 14px; margin: 4px 0; }
.footer-extra p { margin: 3px 0; }
.footer-cta {
  display: inline-block; margin-top: 16px;
  padding: 8px 18px; border: 1px solid var(--b-accent); border-radius: var(--r-pill);
  color: var(--accent); font-size: .82rem; font-weight: 700;
  transition: all var(--tr);
}
.footer-cta:hover { background: var(--accent); color: #fff; }
.footer-addr { color: var(--text-2); }
.footer-bottom {
  border-top: 1px solid var(--b0); padding-top: 18px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px; font-size: .77rem; color: var(--text-2);
}
.footer-bottom a { color: var(--text-2); transition: color var(--tr); }
.footer-bottom a:hover { color: var(--text-1); }
.footer-admin-link {
  font-size: .75rem; margin-top: 6px; padding-top: 8px;
  border-top: 1px dashed var(--b1);
  color: var(--text-2) !important;
}
.footer-admin-link:hover { color: var(--accent) !important; }

/* ── Alerts ── */
.alert { padding: 10px 14px; border-radius: var(--r); font-size: .86rem; margin-bottom: 12px; }
.alert-success { background: rgba(34,197,94,.1);  color: #4ade80; border: 1px solid rgba(34,197,94,.2); }
.alert-error   { background: var(--accent-dim);   color: var(--accent); border: 1px solid rgba(217,79,79,.2); }
.alert-info    { background: rgba(96,165,250,.1); color: #60a5fa; border: 1px solid rgba(96,165,250,.2); }
[data-theme="light"] .alert-success { color: #16a34a; }
[data-theme="light"] .alert-error   { color: var(--accent-2); }
[data-theme="light"] .alert-info    { color: #1d4ed8; }

/* ── News section header ── */
.news-section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--b1);
}
.news-section-header h2 { font-size: 1.3rem; font-weight: 800; letter-spacing: -.3px; }
.news-section-header a { font-size: .84rem; color: var(--accent); font-weight: 700; }

/* ── Page layout shared ── */
.pg-wrap { padding: 52px 0 72px; max-width: 920px; }
.pg-title {
  font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 900;
  letter-spacing: -1px; margin-bottom: 10px; color: var(--text-0);
}
.pg-subtitle { color: var(--accent); font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 36px; }
.pg-lead { color: var(--text-1); font-size: 1rem; line-height: 1.75; max-width: 660px; margin-bottom: 36px; }

/* Info card */
.info-card {
  background: var(--bg-1); border-radius: var(--r-xl);
  padding: 26px 28px; border: 1px solid var(--b0); margin-bottom: 14px;
  transition: background .3s;
}
.info-card-title {
  font-size: .8rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .5px; color: var(--accent); margin-bottom: 14px;
}
.info-card-text { color: var(--text-1); line-height: 1.8; font-size: .96rem; }
.info-card-text a { color: var(--accent); font-weight: 600; }
.info-card-text a:hover { text-decoration: underline; }

/* List items */
.list-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 16px; background: var(--bg-2);
  border-radius: var(--r); font-size: .93rem; color: var(--text-0); line-height: 1.6;
}
.list-item + .list-item { margin-top: 6px; }
.list-item-check { color: var(--accent); font-size: 1rem; flex-shrink: 0; font-weight: 900; margin-top: 1px; }
.list-item-num {
  background: var(--accent); color: #fff; border-radius: 50%;
  width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: .8rem; flex-shrink: 0;
}
.list-item-accent { border-left: 2px solid var(--accent); background: var(--accent-dim); }
.list-items { display: grid; gap: 6px; }

/* CTA banner */
.cta-banner {
  background: var(--accent); border-radius: var(--r-xl);
  padding: 28px 32px; color: #fff; margin-top: 16px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 18px;
}
.cta-banner h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 5px; }
.cta-banner p  { opacity: .88; line-height: 1.6; font-size: .93rem; max-width: 480px; margin: 0; }
.cta-banner .btn-white {
  display: inline-flex; align-items: center;
  padding: 11px 28px; background: #fff; color: var(--accent);
  border-radius: var(--r-pill); font-weight: 800; font-size: .92rem;
  white-space: nowrap; flex-shrink: 0; transition: all var(--tr);
}
.cta-banner .btn-white:hover { background: rgba(255,255,255,.88); color: var(--accent-2); }

/* Step cards */
.step-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 14px; margin-bottom: 20px; }
.step-card {
  background: var(--bg-1); border-radius: var(--r-xl); padding: 24px 20px;
  border: 1px solid var(--b0); text-align: center; transition: all var(--tr);
}
.step-card:hover { border-color: var(--b-accent); box-shadow: var(--sh-md); }
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 1.3rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; box-shadow: 0 2px 10px var(--accent-glow);
}
.step-card h3 { font-weight: 800; font-size: .93rem; text-transform: uppercase; margin-bottom: 8px; color: var(--text-0); }
.step-card p  { color: var(--text-1); font-size: .86rem; line-height: 1.6; margin: 0; }

/* Dealer card */
.dealer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 14px; margin-bottom: 28px; }
.dealer-card {
  background: var(--bg-1); border-radius: var(--r-xl); padding: 24px 22px;
  border: 1px solid var(--b0); transition: all var(--tr);
}
.dealer-card:hover { border-color: var(--b-accent); box-shadow: var(--sh-md); }
.dealer-card-city { color: var(--accent); font-weight: 800; font-size: .9rem; text-transform: uppercase; margin-bottom: 12px; }
.dealer-card-body { color: var(--text-1); line-height: 1.85; font-size: .9rem; }
.dealer-card-body strong { color: var(--text-0); }
.dealer-card-body a { color: var(--accent); font-weight: 600; }
.dealer-card-body a:hover { text-decoration: underline; }

/* Doc link */
.doc-section { margin-bottom: 36px; }
.doc-section-title {
  font-size: .75rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .5px; color: var(--accent); margin-bottom: 10px;
  padding-bottom: 8px; border-bottom: 1px solid var(--b-accent);
}
.doc-link {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-1); border: 1px solid var(--b0);
  border-radius: var(--r); padding: 12px 16px;
  text-decoration: none; color: var(--text-0);
  transition: all var(--tr); margin-bottom: 6px;
}
.doc-link:hover { border-color: var(--accent); background: var(--accent-dim); }
.doc-link-icon { color: var(--accent); font-size: 1.2rem; flex-shrink: 0; }
.doc-link-name { flex: 1; font-size: .9rem; font-weight: 600; line-height: 1.35; color: var(--text-0); }
.doc-link-size { font-size: .74rem; color: var(--text-2); white-space: nowrap; }
.doc-link-badge { font-size: .74rem; color: var(--accent); font-weight: 700; white-space: nowrap; flex-shrink: 0; }

/* Timeline */
.timeline { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.timeline-item {
  display: flex; gap: 18px;
  background: var(--bg-1); border-radius: var(--r-lg); padding: 18px 20px;
  border: 1px solid var(--b0); transition: border-color var(--tr);
}
.timeline-item:hover { border-color: var(--b1); }
.timeline-year { flex-shrink: 0; min-width: 76px; font-weight: 900; color: var(--accent); font-size: .86rem; padding-top: 2px; }
.timeline-text { color: var(--text-1); line-height: 1.7; font-size: .91rem; }

/* Literature */
.lit-anchor-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 36px; }
.lit-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; background: var(--bg-1); border: 1px solid var(--b1);
  border-radius: var(--r-pill); font-size: .8rem; font-weight: 600;
  color: var(--text-1); text-decoration: none; transition: all var(--tr);
}
.lit-tag:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.lit-tag-count {
  background: var(--bg-2); border-radius: 99px; padding: 1px 7px;
  font-size: .68rem; color: var(--text-2);
}
.lit-tag:hover .lit-tag-count { background: rgba(255,255,255,.2); color: #fff; }

.lit-section { background: var(--bg-1); border-radius: var(--r-xl); border: 1px solid var(--b0); overflow: hidden; margin-bottom: 16px; }
.lit-section-head {
  background: var(--bg-2); padding: 16px 22px; border-bottom: 1px solid var(--b0);
  display: flex; align-items: center; gap: 10px;
}
.lit-section-icon { font-size: 1.3rem; }
.lit-section-name { font-size: .88rem; font-weight: 800; text-transform: uppercase; color: var(--accent); flex: 1; margin: 0; }
.lit-section-cnt {
  background: var(--accent-dim); color: var(--accent); border-radius: 99px;
  padding: 2px 9px; font-size: .7rem; font-weight: 700; border: 1px solid var(--b-accent);
}
.lit-articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); list-style: none; padding: 0; margin: 0; }
.lit-article-item { border-bottom: 1px solid var(--b0); }
.lit-article-item:nth-child(even) { background: var(--bg-2); }
.lit-article-link {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; color: var(--text-0); text-decoration: none;
  font-size: .88rem; line-height: 1.4; transition: all var(--tr);
}
.lit-article-link:hover { color: var(--accent); background: var(--accent-dim); padding-left: 24px; }
.lit-article-arrow { color: var(--accent); font-size: .95rem; flex-shrink: 0; font-weight: 900; }

/* Article body */
.article-section-tag {
  display: inline-block; padding: 5px 14px; border-radius: var(--r-pill);
  background: var(--accent-dim); color: var(--accent); border: 1px solid var(--b-accent);
  font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  margin-bottom: 18px;
}
.article-body {
  background: var(--bg-1); border-radius: var(--r-xl); padding: 32px 36px;
  border: 1px solid var(--b0); line-height: 1.85; color: var(--text-1); font-size: .97rem;
  overflow-wrap: break-word; word-break: break-word;
}
.article-body h1, .article-body h2, .article-body h3 { color: var(--text-0); }
.article-body a { color: var(--accent); }
.article-body img { border-radius: var(--r); max-width: 100%; height: auto; }

/* Сетка сертификатов (/certificate/) — собирается синком из Elementor-сетки */
#cert-grid {
  list-style: none; display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
#cert-grid li figure { margin: 0; height: 100%; display: flex; flex-direction: column; }
#cert-grid li a { display: block; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--b0); background: var(--bg-2); transition: border-color var(--tr), box-shadow var(--tr); }
#cert-grid li a:hover { border-color: var(--b-accent); box-shadow: var(--sh-md); }
#cert-grid li img { width: 100%; height: auto; object-fit: contain; background: #fff; }
#cert-grid li figcaption { font-size: .84rem; color: var(--text-0); font-weight: 600; text-align: center; padding: 10px 8px 2px; line-height: 1.4; }

/* Media */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 14px; }
.album-card {
  display: block; border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--b0); text-decoration: none; color: var(--text-0);
  transition: all var(--tr); background: var(--bg-1);
}
.album-card:hover { border-color: var(--b-accent); box-shadow: var(--sh-md); }
.album-cover { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-2); position: relative; }
.album-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.album-card:hover .album-cover img { transform: scale(1.05); }
.album-cover-empty { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: var(--text-2); }
.album-count {
  position: absolute; bottom: 9px; right: 9px;
  background: rgba(0,0,0,.6); color: #fff; font-size: .72rem; font-weight: 700;
  padding: 3px 9px; border-radius: 20px;
}
.album-body { padding: 16px 18px; }
.album-title { font-weight: 800; font-size: .92rem; margin: 0 0 5px; line-height: 1.3; color: var(--text-0); }
.album-desc  { color: var(--text-1); font-size: .82rem; margin: 0; line-height: 1.5; }

/* Media grid */
.media-thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 10px; }
.media-thumb {
  display: block; border-radius: var(--r); overflow: hidden; cursor: pointer;
  border: 1px solid var(--b0); transition: all var(--tr);
}
.media-thumb:hover { border-color: var(--b-accent); box-shadow: var(--sh-md); }
.media-thumb-inner { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-2); position: relative; }
.media-thumb-inner img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.media-thumb:hover .media-thumb-inner img { transform: scale(1.06); }
.media-thumb-title { padding: 7px 9px; font-size: .78rem; font-weight: 600; color: var(--text-0); background: var(--bg-1); border-top: 1px solid var(--b0); }
.media-video-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.3); transition: background .2s;
}
.media-thumb:hover .media-video-overlay { background: rgba(0,0,0,.45); }
.media-play-btn {
  width: 48px; height: 48px; background: var(--accent); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px var(--accent-glow);
}
.media-video-badge {
  position: absolute; top: 7px; right: 7px;
  background: var(--accent); color: #fff; font-size: .62rem; font-weight: 700;
  padding: 2px 6px; border-radius: 8px;
}

/* Admin edit link */
.admin-edit-link {
  font-size: .78rem; color: var(--accent); text-decoration: none;
  border: 1px solid var(--b-accent); border-radius: var(--r-sm);
  padding: 5px 12px; background: var(--accent-dim); white-space: nowrap;
  transition: all var(--tr);
}
.admin-edit-link:hover { background: var(--accent); color: #fff; }

/* Theme toggle (3-button like admin) */
.site-theme-toggle {
  display: flex; gap: 0; background: var(--bg-2);
  border: 1px solid var(--b1); border-radius: var(--r-pill); padding: 3px;
  flex-shrink: 0;
}
.site-theme-btn {
  width: 28px; height: 24px; border-radius: var(--r-pill); border: none;
  background: none; color: var(--text-2); font-size: .78rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all .18s;
}
.site-theme-btn.active { background: var(--bg-1); color: var(--text-0); box-shadow: var(--sh-sm); }
.site-theme-btn:hover:not(.active) { color: var(--text-0); }

/* Catalog new classes ── */
.product-sku {
  font-size: .76rem; color: var(--text-2); margin-bottom: 7px; font-family: monospace;
}
.product-sku strong { color: var(--accent); }

.product-short-desc { color: var(--text-1); margin: 18px 0; line-height: 1.8; font-size: .96rem; overflow-wrap: break-word; word-break: break-word; }

.product-on-request { font-size: 1.2rem; color: var(--text-2); font-weight: 600; }
.product-on-request-sm { font-size: .82rem; color: var(--text-2); }

.product-files { margin-top: 22px; }
.product-files-title {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .6px; color: var(--text-2); margin-bottom: 9px;
}
.product-files-list { display: flex; flex-direction: column; gap: 6px; }
.product-file-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 13px; background: var(--bg-2);
  border: 1px solid var(--b1); border-radius: var(--r);
  color: var(--accent); font-size: .85rem; font-weight: 600;
  text-decoration: none; transition: all var(--tr);
}
.product-file-link:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.product-file-ext { margin-left: auto; font-size: .7rem; opacity: .6; }

.product-extra {
  background: var(--bg-1); border-radius: var(--r-xl);
  padding: 28px; border: 1px solid var(--b0); margin-top: 10px;
}
.product-extra-title {
  font-size: 1rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .3px; margin-bottom: 14px; color: var(--text-0);
}
.product-description { color: var(--text-1); line-height: 1.8; margin-bottom: 24px; font-size: .94rem; overflow-wrap: break-word; word-break: break-word; }

.card-sku {
  font-size: .68rem; color: var(--accent);
  font-family: monospace; margin-bottom: 3px; font-weight: 700;
}
.card-cat-name { font-size: .72rem; color: var(--text-2); margin-bottom: 4px; }

/* Search form */
.catalog-search-form { display: flex; gap: 6px; align-items: center; }
.catalog-search-input {
  flex: 1; min-width: 0; padding: 8px 11px;
  border: 1px solid var(--b1); border-radius: var(--r);
  font-size: .86rem; background: var(--bg-2); color: var(--text-0);
  outline: none; transition: border-color var(--tr), background var(--tr);
}
.catalog-search-input::placeholder { color: var(--text-2); }
.catalog-search-input:focus { border-color: var(--accent); background: var(--bg-1); }
.catalog-search-btn {
  flex-shrink: 0; padding: 8px 14px;
  background: var(--accent); color: #fff; border: none;
  border-radius: var(--r); cursor: pointer; font-weight: 700;
  font-size: .9rem; transition: background var(--tr);
}
.catalog-search-btn:hover { background: var(--accent-2); }
.catalog-search-hint { margin-top: 7px; font-size: .75rem; color: var(--text-2); }
.catalog-search-hint a { color: var(--accent); margin-left: 5px; }
.catalog-search-hint a:hover { text-decoration: underline; }

/* Welcome state */
.catalog-welcome {
  background: var(--bg-1); border-radius: var(--r-xl);
  padding: 40px 36px; border: 1px solid var(--b0); text-align: center;
}
.catalog-welcome-icon {
  width: 96px; height: 96px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  background: var(--accent-dim); color: var(--accent);
  font-size: 48px;
}
.catalog-welcome h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 10px; color: var(--text-0); }
.catalog-welcome p { color: var(--text-1); margin-bottom: 24px; max-width: 380px; margin-left: auto; margin-right: auto; }
.catalog-cat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px; text-align: left; margin-top: 14px;
}
.catalog-cat-link {
  display: block; padding: 14px 16px;
  background: var(--bg-2); border: 1px solid var(--b1);
  border-radius: var(--r-lg); font-weight: 600; color: var(--text-0);
  font-size: .9rem; transition: all var(--tr);
}
.catalog-cat-link:hover {
  background: var(--accent); color: #fff; border-color: var(--accent);
  box-shadow: 0 4px 14px var(--accent-glow);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-sidebar { order: 2; }
  .cat-list { flex-direction: row; flex-wrap: wrap; }
  .cat-sub { display: none; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* mobile-theme-pill — скрыт на десктопе, виден на мобилке */
.mobile-theme-pill { display: none; }

@media (max-width: 1100px) {
  .nav-island { display: none; }
  .header-phone { display: none; }
  .theme-pill:not(.mobile-theme-pill) { display: none; } /* десктоп-пилюля */
  .mobile-theme-pill { display: flex; }
  .burger { display: flex; }
  /* Меню длинное (9 языков в дропдауне шапки) — скроллится внутри вьюпорта */
  .mobile-menu {
    max-height: calc(100vh - var(--nav-h) - 24px);
    max-height: calc(100dvh - var(--nav-h) - 24px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }
  /* Тач-цели: крупнее пальцем */
  .mobile-nav a { padding: 13px 16px; font-size: .95rem; }
  .lang-switch summary { padding: 11px 12px; min-height: 38px; }
  .tpb { min-width: 36px; min-height: 34px; }
  .burger { padding: 11px; }
}
@media (min-width: 1101px) {
  .mobile-menu { display: none !important; }
}
@media (max-width: 768px) {
  .hero-logo { font-size: 48px; }
  .section-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .section-hero-icon { display: none; }
  .contact-form-wrap { padding: 22px 16px; }
  .section-hero-text h1 { font-size: 1.9rem; }
  .about-grid--img { grid-template-columns: 1fr; }
  .section-hero { padding: 40px 0 36px; }
  .about-block { padding: 22px 18px; }
  .article-body { padding: 24px 20px; }
  .pg-wrap { padding: 36px 0 56px; }
  .cta-banner { padding: 24px 20px; }
  .contacts-grid { padding-top: 24px; padding-bottom: 40px; }
  .empty-state { padding: 56px 16px; }
  .container { padding: 0 18px; }
  /* Статистика: на узком экране числа крупные — даём им переноситься без наложения */
  .stats-row { gap: 10px; }
  .stat-num { font-size: 1.6rem; }
  .stat-label { font-size: .74rem; }
  /* Герой на узком экране: градиент сверху вниз — текст всегда на затемнении */
  .section-hero--img,
  [dir="rtl"] .section-hero--img {
    background-image:
      linear-gradient(180deg, rgba(13,14,17,.94) 0%, rgba(13,14,17,.78) 55%, rgba(13,14,17,.55) 100%),
      var(--hero-img);
  }
  /* Таблица характеристик: на узком экране 2 колонки распирают таблицу шире
     контейнера (длинный текст обрезается). Превращаем в стопку — каждая
     характеристика блоком «название сверху, значение снизу» на всю ширину. */
  .specs-table, .specs-table tbody, .specs-table tr, .specs-table td { display: block; width: 100%; }
  .specs-table tr { padding: 10px 0; border-bottom: 1px solid var(--b0); }
  .specs-table td { padding: 0; border: none; }
  .specs-table td:first-child { width: auto; color: var(--text-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .3px; margin-bottom: 2px; }
  .specs-table td:last-child { font-weight: 600; color: var(--text-0); }
}
@media (max-width: 640px) {
  /* CTA дублируется в мобильном меню — в шапке не помещается */
  .header-cta-btn { display: none; }
  .products-grid { grid-template-columns: 1fr; }
  .product-detail-grid { gap: 26px; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .hero-logo { font-size: 38px; }
  .product-card { height: 320px; }
  .section { padding: 52px 0; }
  /* Быстрые плитки — ровно 2 колонки, без прыжков */
  .quick-tiles { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .quick-tile { padding: 18px 10px; }
  .quick-tile-icon { width: 48px; height: 48px; font-size: 23px; }
  .container { padding: 0 16px; }
  .stats-row { flex-wrap: nowrap; gap: 6px; }
  .stat-num { font-size: 1.4rem; }
  .stat-label { font-size: .68rem; }
  .article-body { padding: 20px 16px; }
  .cta-banner { padding: 22px 18px; }
  .pagination a, .pagination span { width: 44px; height: 44px; }
  .nf-icon { width: 96px; height: 96px; font-size: 46px; }
  .empty-state-icon { width: 76px; height: 76px; font-size: 38px; }
  .catalog-welcome { padding: 30px 18px; }
  .catalog-welcome-icon { width: 80px; height: 80px; font-size: 40px; }
}
@media (max-width: 400px) {
  /* Ещё плотнее: лого + переключатели должны помещаться в 360px */
  .header-bar { padding: 0 14px; gap: 8px; }
  .header-logo img, .yro-logo { height: 28px; }
  .tpb { min-width: 32px; min-height: 32px; }
  .tpb svg { width: 12px; height: 12px; }
  .lang-switch summary { padding: 10px 9px; min-height: 36px; }
  .lang-cur { font-size: .78rem; }
  .mobile-nav a { padding: 14px 14px; }
  .section-hero-text h1 { font-size: 1.6rem; }
}

/* ── Строгий стиль YRO: скруглений нет вообще — жёстко, включая сторонние стили ── */
*, *::before, *::after { border-radius: 0 !important; }
