/* Custom fonts (served from public/fonts) */
@font-face {
  font-family: ModernDisplay;
  src: url(/fonts/Modern/MODERN.ttf) format("truetype");
  font-display: swap;
}
@font-face {
  font-family: BebasNeueBold;
  src: url(/fonts/BebasNeueBold/BebasNeueBold.woff) format("woff"),
       url(/fonts/BebasNeueBold/BebasNeueBold.ttf) format("truetype");
  font-display: swap;
}
@font-face {
  font-family: Robotocondensed;
  src: url(/fonts/Robotocondensed.woff) format("woff"),
       url(/fonts/Robotocondensed.ttf) format("truetype");
  font-display: swap;
}
@font-face {
  font-family: Robotocondensedlight;
  src: url(/fonts/Robotocondensedlight.woff) format("woff"),
       url(/fonts/Robotocondensedlight.ttf) format("truetype");
  font-display: swap;
}
@font-face {
  font-family: Robotocondensedbold;
  src: url(/fonts/Robotocondensedbold.woff) format("woff"),
       url(/fonts/Robotocondensedbold.ttf) format("truetype");
  font-display: swap;
}
.mfp-bg {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1042;
    overflow: hidden;
    position: fixed;
    background: #0b0b0b;
    opacity: 0.8;
}

.mfp-wrap {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1043;
    position: fixed;
    outline: none !important;
    -webkit-backface-visibility: hidden;
}

.mfp-container {
    text-align: center;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    padding: 0 8px;
    box-sizing: border-box;
}

.mfp-container:before {
    content: '';
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

.mfp-align-top .mfp-container:before {
    display: none;
}

.mfp-content {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    margin: 0 auto;
    text-align: left;
    z-index: 1045;
}

.mfp-inline-holder .mfp-content, .mfp-ajax-holder .mfp-content {
    width: 100%;
    cursor: auto;
}

.mfp-ajax-cur {
    cursor: progress;
}

.mfp-zoom-out-cur, .mfp-zoom-out-cur .mfp-image-holder .mfp-close {
    cursor: -moz-zoom-out;
    cursor: -webkit-zoom-out;
    cursor: zoom-out;
}

.mfp-zoom {
    cursor: pointer;
    cursor: -webkit-zoom-in;
    cursor: -moz-zoom-in;
    cursor: zoom-in;
}

.mfp-auto-cursor .mfp-content {
    cursor: auto;
}

.mfp-close, .mfp-arrow, .mfp-preloader, .mfp-counter {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.mfp-loading.mfp-figure {
    display: none;
}

.mfp-hide {
    display: none !important;
}

.mfp-preloader {
    color: #CCC;
    position: absolute;
    top: 50%;
    width: auto;
    text-align: center;
    margin-top: -0.8em;
    left: 8px;
    right: 8px;
    z-index: 1044;
}

.mfp-preloader a {
    color: #CCC;
}

.mfp-preloader a:hover {
    color: #FFF;
}

.mfp-s-ready .mfp-preloader {
    display: none;
}

.mfp-s-error .mfp-content {
    display: none;
}

button.mfp-close, button.mfp-arrow {
    overflow: visible;
    cursor: pointer;
    background: transparent;
    border: 0;
    -webkit-appearance: none;
    display: block;
    outline: none;
    padding: 0;
    z-index: 1046;
    box-shadow: none;
    touch-action: manipulation;
}

button::-moz-focus-inner {
    padding: 0;
    border: 0;
}

.mfp-close {
    width: 44px;
    height: 44px;
    line-height: 44px;
    position: absolute;
    right: 0;
    top: 0;
    text-decoration: none;
    text-align: center;
    opacity: 0.65;
    padding: 0 0 18px 10px;
    color: #FFF;
    font-style: normal;
    font-size: 28px;
    font-family: Arial, Baskerville, monospace;
}

.mfp-close:hover, .mfp-close:focus {
    opacity: 1;
}

.mfp-close:active {
    top: 1px;
}

.mfp-close-btn-in .mfp-close {
    color: #333;
}

.mfp-image-holder .mfp-close, .mfp-iframe-holder .mfp-close {
    color: #FFF;
    right: -6px;
    text-align: right;
    padding-right: 6px;
    width: 100%;
}

.mfp-counter {
    position: absolute;
    top: 0;
    right: 0;
    color: #CCC;
    font-size: 12px;
    line-height: 18px;
    white-space: nowrap;
}

.mfp-arrow {
    position: absolute;
    opacity: 0.65;
    margin: 0;
    top: 50%;
    margin-top: -55px;
    padding: 0;
    width: 90px;
    height: 110px;
    -webkit-tap-highlight-color: transparent;
}

.mfp-arrow:active {
    margin-top: -54px;
}

.mfp-arrow:hover, .mfp-arrow:focus {
    opacity: 1;
}

.mfp-arrow:before, .mfp-arrow:after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    position: absolute;
    left: 0;
    top: 0;
    margin-top: 35px;
    margin-left: 35px;
    border: medium inset transparent;
}

.mfp-arrow:after {
    border-top-width: 13px;
    border-bottom-width: 13px;
    top: 8px;
}

.mfp-arrow:before {
    border-top-width: 21px;
    border-bottom-width: 21px;
    opacity: 0.7;
}

.mfp-arrow-left {
    left: 0;
}

.mfp-arrow-left:after {
    border-right: 17px solid #FFF;
    margin-left: 31px;
}

.mfp-arrow-left:before {
    margin-left: 25px;
    border-right: 27px solid #3F3F3F;
}

.mfp-arrow-right {
    right: 0;
}

.mfp-arrow-right:after {
    border-left: 17px solid #FFF;
    margin-left: 39px;
}

.mfp-arrow-right:before {
    border-left: 27px solid #3F3F3F;
}

.mfp-iframe-holder {
    padding-top: 40px;
    padding-bottom: 40px;
}

.mfp-iframe-holder .mfp-content {
    line-height: 0;
    width: 100%;
    max-width: 900px;
}

.mfp-iframe-holder .mfp-close {
    top: -40px;
}

.mfp-iframe-scaler {
    width: 100%;
    height: 0;
    overflow: hidden;
    padding-top: 56.25%;
}

.mfp-iframe-scaler iframe {
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
    background: #000;
}

img.mfp-img {
    width: auto;
    max-width: 100%;
    height: auto;
    display: block;
    line-height: 0;
    box-sizing: border-box;
    padding: 40px 0 40px;
    margin: 0 auto;
}

.mfp-figure {
    line-height: 0;
}

.mfp-figure:after {
    content: '';
    position: absolute;
    left: 0;
    top: 40px;
    bottom: 40px;
    display: block;
    right: 0;
    width: auto;
    height: auto;
    z-index: -1;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
    background: #444;
}

.mfp-figure small {
    color: #BDBDBD;
    display: block;
    font-size: 12px;
    line-height: 14px;
}

.mfp-figure figure {
    margin: 0;
}

.mfp-bottom-bar {
    margin-top: -36px;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    cursor: auto;
}

.mfp-title {
    text-align: left;
    line-height: 18px;
    color: #F3F3F3;
    word-wrap: break-word;
    padding-right: 36px;
}

.mfp-image-holder .mfp-content {
    max-width: 100%;
}

.mfp-gallery .mfp-image-holder .mfp-figure {
    cursor: pointer;
}

@media screen and (max-width: 800px) and(orientation: landscape), screen and(max-height: 300px) {
    .mfp-img-mobile .mfp-image-holder {
        padding-left: 0;
        padding-right: 0;
    }

    .mfp-img-mobile img.mfp-img {
        padding: 0;
    }

    .mfp-img-mobile .mfp-figure:after {
        top: 0;
        bottom: 0;
    }

    .mfp-img-mobile .mfp-figure small {
        display: inline;
        margin-left: 5px;
    }

    .mfp-img-mobile .mfp-bottom-bar {
        background: rgba(0, 0, 0, 0.6);
        bottom: 0;
        margin: 0;
        top: auto;
        padding: 3px 5px;
        position: fixed;
        box-sizing: border-box;
    }

    .mfp-img-mobile .mfp-bottom-bar:empty {
        padding: 0;
    }

    .mfp-img-mobile .mfp-counter {
        right: 5px;
        top: 3px;
    }

    .mfp-img-mobile .mfp-close {
        top: 0;
        right: 0;
        width: 35px;
        height: 35px;
        line-height: 35px;
        background: rgba(0, 0, 0, 0.6);
        position: fixed;
        text-align: center;
        padding: 0;
    }
}

@media all and (max-width: 900px) {
    .mfp-arrow {
        -webkit-transform: scale(0.75);
        transform: scale(0.75);
    }

    .mfp-arrow-left {
        -webkit-transform-origin: 0;
        transform-origin: 0;
    }

    .mfp-arrow-right {
        -webkit-transform-origin: 100%;
        transform-origin: 100%;
    }

    .mfp-container {
        padding-left: 6px;
        padding-right: 6px;
    }
}

.mfp-fade.mfp-bg {
    opacity: 0;
    -webkit-transition: all 0.35s ease-out;
    -moz-transition: all 0.35s ease-out;
    transition: all 0.35s ease-out;
}

.mfp-fade.mfp-bg.mfp-ready {
    opacity: 0.8;
}

.mfp-fade.mfp-bg.mfp-removing {
    opacity: 0;
}

.mfp-fade.mfp-wrap .mfp-content {
    opacity: 0;
    -webkit-transition: all 0.35s ease-out;
    -moz-transition: all 0.35s ease-out;
    transition: all 0.35s ease-out;
}

.mfp-fade.mfp-wrap.mfp-ready .mfp-content {
    opacity: 1;
}

.mfp-fade.mfp-wrap.mfp-removing .mfp-content {
    opacity: 0;
}


/* ============================================================
   MODERN — design tokens (dark theme)
   Палитра: #fbb03c · #2d2d2d · #000000 · #1a1a1a · #333333 · #404040
   Текст: #f5f5f5 · #e0e0e0 · #a0a0a0
   Сетка: 8px · типографика: modular scale 1.25
   ============================================================ */

:root {
  /* Акценты */
  --color-accent: #fbb03c;
  --color-accent-hover: #e5a035;
  --color-accent-soft: rgba(251, 176, 60, 0.12);
  --color-accent-border: rgba(251, 176, 60, 0.45);

  /* Фоны — иерархия тёмных оттенков */
  --color-black: #000000;
  --color-dark: #2d2d2d;
  --color-dark-elevated: #333333;
  --color-surface-deep: #1a1a1a;

  --color-bg: #000000;
  --color-bg-muted: #1a1a1a;
  --color-bg-subtle: #242424;

  /* Текст */
  --color-text: #f5f5f5;
  --color-text-secondary: #e0e0e0;
  --color-text-inverse: #f5f5f5;
  --color-muted: #a0a0a0;

  /* Границы и разделители */
  --color-border: #333333;
  --color-border-strong: #404040;

  /* Поля ввода / селекты */
  --color-input-bg: #1a1a1a;
  --color-input-bg-disabled: #242424;

  /* Типографика — modular scale 1.25 от 16px */
  --font-display: BebasNeueBold, "Arial Narrow", sans-serif;
  --font-body: Robotocondensed, "Helvetica Neue", Arial, sans-serif;
  --font-body-light: Robotocondensedlight, "Helvetica Neue", Arial, sans-serif;
  --font-body-bold: Robotocondensedbold, "Helvetica Neue", Arial, sans-serif;

  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5625rem;   /* 25px */
  --text-3xl: 1.953125rem; /* 31px */
  --text-4xl: 2.441406rem; /* 39px */
  --text-5xl: 3.051758rem; /* 49px */

  --leading-tight: 1.2;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;

  /* Spacing — строгая 8px-сетка */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;

  /* Радиусы — минимальные, industrial */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-full: 9999px;

  /* Тени — для тёмной темы */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.6);
  --shadow-accent: 0 0 0 2px rgba(251, 176, 60, 0.25);

  /* Layout */
  --container-max: 1280px;
  --header-height: 64px;
  --touch-min: 44px;

  /* Breakpoints (для справки в media queries) */
  --bp-sm: 480px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;

  /* Transitions */
  --transition-fast: 0.12s ease;
  --transition-base: 0.18s ease;

  /* SVG-стрелка для кастомных select */
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a0a0a0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");

  /* Legacy aliases */
  --catalog-bg: var(--color-bg);
  --catalog-surface: var(--color-dark);
  --catalog-surface-hover: var(--color-dark-elevated);
  --catalog-border: var(--color-border);
  --catalog-text: var(--color-text);
  --catalog-muted: var(--color-muted);
  --catalog-accent: var(--color-accent);

  --site-bg: var(--color-bg);
  --site-surface: var(--color-dark);
  --site-surface-2: var(--color-bg-muted);
  --site-border: var(--color-border);
  --site-text: var(--color-text);
  --site-muted: var(--color-muted);
  --site-accent: var(--color-accent);
  --site-accent-soft: var(--color-accent-soft);
  --site-radius: var(--radius-md);
  --site-maxw: var(--container-max);
}
/* ============================================================
   MODERN — Catalog UI
   Style: Modern Dark Cinema + OLED (ui-ux-pro-max)
   Easing: cubic-bezier(0.16,1,0.3,1) — expo-out, premium feel
   Spacing: 4/8dp rhythm
   ============================================================ */

/* ── Design tokens ── */
:root {
  /* backgrounds — avoid pure #000 (OLED smear), use near-black */
  --c-bg-deep:    #030303;
  --c-bg-base:    #070707;
  --c-bg-raised:  #0e0e0e;
  --c-bg-card:    #111111;

  /* glass */
  --c-glass:         rgba(255,255,255,0.04);
  --c-glass-hover:   rgba(255,255,255,0.07);
  --c-glass-border:  rgba(255,255,255,0.08);
  --c-glass-blur:    blur(16px);

  /* gold */
  --c-gold:          #fbb03c;
  --c-gold-dim:      rgba(251,176,60,0.18);
  --c-gold-border:   rgba(251,176,60,0.38);
  --c-gold-glow:     0 0 28px rgba(251,176,60,0.18);

  /* text */
  --c-text-1:   #f0f0f0;
  --c-text-2:   rgba(240,240,240,0.55);
  --c-text-3:   rgba(240,240,240,0.32);

  /* radii */
  --r-card:  16px;
  --r-pill:  100px;

  /* easing — expo-out from ui-ux-pro-max */
  --ease-out:    cubic-bezier(0.16,1,0.3,1);
  --ease-spring: cubic-bezier(0.34,1.56,0.64,1);

  /* durations */
  --dur-fast:   160ms;
  --dur-base:   260ms;
  --dur-slow:   420ms;
}

/* ── Reduce motion support ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Page shell ── */
.catalog-page {
  padding: var(--space-2) 0 var(--space-6);
  min-height: 60vh;
  background: var(--c-bg-base);
}

/* ── Breadcrumb ── */
.catalog-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--c-text-3);
}

.catalog-breadcrumb a {
  color: var(--c-text-2);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
  cursor: pointer;
}

.catalog-breadcrumb a:hover { color: var(--c-gold); }

.catalog-breadcrumb-sep {
  color: var(--c-text-3);
  user-select: none;
}

.catalog-breadcrumb-current { color: var(--c-text-2); }

/* ── Content base ── */
.catalog-content { color: var(--c-text-1); }

.catalog-content h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.15;
  margin: 0 0 12px;
  font-weight: normal;
}

.catalog-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 16px;
  font-weight: normal;
}

/* ── Badge ── */
.badge,
.catalog-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-gold);
  background: var(--c-gold-dim);
  border: 1px solid var(--c-gold-border);
  border-radius: var(--r-pill);
  padding: 4px 12px;
  line-height: 1;
}

/* ── Category meta ── */
.catalog-category-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}

.catalog-category-meta .badge {
  background: rgba(251,176,60,0.15);
  border: 1px solid rgba(251,176,60,0.4);
  color: #fbb03c;
  font-family: var(--font-body-bold);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
}

/* ── Parts grid ── */
.catalog-parts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}

/* ── Part card — split layout (image top / body bottom) ── */
.catalog-part-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(255,255,255,0.07);
  cursor: pointer;
  transition:
    transform 240ms cubic-bezier(0.16,1,0.3,1),
    box-shadow 240ms cubic-bezier(0.16,1,0.3,1),
    border-color 240ms ease;
}

.catalog-part-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(251,176,60,0.3),
    0 16px 48px rgba(0,0,0,0.65);
  border-color: rgba(251,176,60,0.3);
}

.catalog-part-card:active {
  transform: translateY(-1px) scale(0.99);
  transition-duration: 100ms;
}

/* Image area */
.catalog-part-card-image {
  position: relative;
  height: 190px;
  flex-shrink: 0;
  background: #0c0c0c;
  overflow: hidden;
}

.catalog-part-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 16px;
  transition: transform 360ms cubic-bezier(0.16,1,0.3,1);
}

.catalog-part-card:hover .catalog-part-card-image img {
  transform: scale(1.06);
}

.catalog-part-card-no-img {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #0d0d0d, #1a1a1a);
}

.catalog-part-card-no-img svg {
  width: 36px;
  height: 36px;
  fill: rgba(255,255,255,0.07);
}

/* Body area */
.catalog-part-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  border-top: 1px solid rgba(255,255,255,0.06);
  position: relative;
}

.catalog-part-card-article {
  align-self: flex-start;
  font-family: var(--font-body-bold);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--c-gold);
  background: var(--c-gold-dim);
  border: 1px solid var(--c-gold-border);
  border-radius: 5px;
  padding: 2px 7px;
}

.catalog-part-card-name {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  line-height: 1.45;
}

.catalog-part-card-oem {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.catalog-part-card-oem span {
  font-size: 10px;
  font-family: var(--font-body-light);
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.05em;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 4px;
  padding: 2px 6px;
}

/* Arrow — bottom right, appears on hover */
.catalog-part-card-arrow {
  position: absolute;
  bottom: 14px;
  right: 16px;
  font-size: 14px;
  color: var(--c-gold);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.catalog-part-card:hover .catalog-part-card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* No-image placeholder */
.catalog-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(145deg, #101010 0%, #1a1a1a 100%);
  color: var(--c-text-3);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.catalog-image-placeholder svg {
  width: 40px;
  height: 40px;
  opacity: 0.15;
}

.catalog-image-placeholder svg path { fill: #fff; }

/* ── Category index grid ── */
.catalog-category-index-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 10px;
}

/* First card spans 2 columns and 2 rows as featured */
.catalog-category-index-grid > *:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.catalog-category-index-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  border-radius: 16px;
  overflow: hidden;
  background: var(--c-bg-card);
  border: 1px solid var(--c-glass-border);
  cursor: pointer;
  will-change: transform;
  transition:
    transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
}

.catalog-category-index-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px var(--c-gold-border),
    0 12px 40px rgba(0,0,0,0.7),
    var(--c-gold-glow);
  border-color: var(--c-gold-border);
}

.catalog-category-index-card:active {
  transform: scale(0.98);
  transition-duration: var(--dur-fast);
}

.catalog-category-index-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.catalog-category-index-card:hover img {
  transform: scale(1.06);
}

.catalog-category-index-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.92) 0%,
    rgba(0,0,0,0.38) 50%,
    rgba(0,0,0,0.05) 100%
  );
  transition: opacity var(--dur-base) var(--ease-out);
}

.catalog-category-index-card:hover .catalog-category-index-card-overlay {
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.95) 0%,
    rgba(10,6,0,0.55) 55%,
    rgba(30,15,0,0.15) 100%
  );
}

.catalog-category-index-card-body {
  position: relative;
  z-index: 2;
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.catalog-category-index-card-title {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Featured (first) card gets bigger title */
.catalog-category-index-grid > *:nth-child(1) .catalog-category-index-card-title {
  font-size: 18px;
}

/* Arrow that appears on hover */
.catalog-category-index-card-title::after {
  content: '→';
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 200ms ease, transform 200ms ease;
  color: #fbb03c;
  font-size: 0.9em;
}

.catalog-category-index-card:hover .catalog-category-index-card-title::after {
  opacity: 1;
  transform: translateX(0);
}

.catalog-category-index-card-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-family: var(--font-body-light);
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.04em;
}

/* Gold dot accent */
.catalog-category-index-card-count::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fbb03c;
  opacity: 0.6;
  flex-shrink: 0;
}

.catalog-category-index-card-no-img {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #0d0d0d 0%, #1a1a1a 100%);
}

.catalog-category-index-card-no-img svg {
  width: 36px;
  height: 36px;
  fill: rgba(255,255,255,0.06);
}

/* ── Category hero header ── */
.catalog-category-header {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 200px;
  max-height: 220px;
  display: flex;
  align-items: stretch;
  margin-bottom: 32px;
  border: 1px solid var(--c-glass-border);
  background-color: #2a2e30;
}

.catalog-category-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--category-header-pattern);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: rotate(180deg);
  pointer-events: none;
}

.catalog-category-header-body {
  position: relative;
  z-index: 2;
  padding: 36px 40px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.1) 80%,
    transparent 100%
  );
}

.catalog-category-header-body h1 {
  margin: 0 0 10px;
}

.catalog-category-header-photo {
  position: relative;
  z-index: 2;
  width: 44%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 28px 18px 8px;
}

.catalog-category-header-photo-showcase {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 240px);
  min-height: 180px;
  padding: 22px 18px;
  transform: rotate(-3deg);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(251,176,60,0.22);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 18px 48px rgba(0,0,0,0.55),
    0 0 48px rgba(251,176,60,0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    transform var(--dur-slow) var(--ease-out),
    box-shadow var(--dur-slow) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
}

.catalog-category-header-photo-showcase::before {
  content: '';
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251,176,60,0.18) 0%, transparent 68%);
  z-index: 0;
  pointer-events: none;
}

.catalog-category-header-photo-showcase::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(251,176,60,0.08) 0%,
    transparent 42%,
    transparent 58%,
    rgba(255,255,255,0.04) 100%
  );
  pointer-events: none;
}

.catalog-category-header:hover .catalog-category-header-photo-showcase {
  transform: rotate(0deg) scale(1.02);
  border-color: rgba(251,176,60,0.42);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.1),
    0 22px 56px rgba(0,0,0,0.6),
    0 0 64px rgba(251,176,60,0.16);
}

.catalog-category-header-photo-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--c-gold);
  border-style: solid;
  opacity: 0.75;
  z-index: 2;
  pointer-events: none;
}

.catalog-category-header-photo-corner--tl {
  top: 12px;
  left: 12px;
  border-width: 2px 0 0 2px;
  border-radius: 4px 0 0 0;
}

.catalog-category-header-photo-corner--br {
  right: 12px;
  bottom: 12px;
  border-width: 0 2px 2px 0;
  border-radius: 0 0 4px 0;
}

.catalog-category-header-photo-img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 150px;
  object-fit: contain;
  object-position: center;
  filter:
    drop-shadow(0 10px 28px rgba(0,0,0,0.65))
    drop-shadow(0 0 24px rgba(251,176,60,0.12));
  transition:
    transform var(--dur-slow) var(--ease-out),
    filter var(--dur-slow) var(--ease-out);
}

.catalog-category-header:hover .catalog-category-header-photo-img {
  transform: translateY(-4px) scale(1.03);
  filter:
    drop-shadow(0 16px 36px rgba(0,0,0,0.7))
    drop-shadow(0 0 32px rgba(251,176,60,0.2));
}

/* ── Subcategory chips ── */
.subcategory-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 28px;
}

.subcategory-chip {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--c-text-2);
  background: var(--c-glass);
  border: 1px solid var(--c-glass-border);
  border-radius: var(--r-pill);
  padding: 7px 16px;
  display: inline-flex;
  align-items: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  transition:
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out);
}

.subcategory-chip:hover {
  color: var(--c-gold);
  border-color: var(--c-gold-border);
  background: var(--c-gold-dim);
}

/* ── Part hero (detail page) ── */
.catalog-part-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
  align-items: start;
}

/* Gallery (left) */
.catalog-part-media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--c-bg-card);
  border: 1px solid var(--c-glass-border);
  min-height: 360px;
}

.catalog-part-media-empty {
  min-height: 360px;
  height: 100%;
}

.catalog-part-media-empty .catalog-image-placeholder {
  position: relative;
  inset: auto;
  min-height: 360px;
  height: 100%;
}

/* ── New gallery: thumbs-left + main-right ── */
.part-gallery {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 6px;
  height: 100%;
  min-height: 360px;
  padding: 6px;
}

.part-gallery--single {
  grid-template-columns: 1fr;
}

/* Vertical scrollable thumbnail strip */
.part-gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow-y: auto;
  max-height: 500px;
  scrollbar-width: thin;
  scrollbar-color: var(--c-glass-border) transparent;
  padding: 2px;
}

.part-gallery-thumbs::-webkit-scrollbar { width: 3px; }
.part-gallery-thumbs::-webkit-scrollbar-track { background: transparent; }
.part-gallery-thumbs::-webkit-scrollbar-thumb {
  background: var(--c-glass-border);
  border-radius: 2px;
}

.part-gallery-thumb {
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid var(--c-glass-border);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition:
    border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

.part-gallery-thumb:hover {
  border-color: rgba(251,176,60,0.5);
  transform: scale(1.04);
}

.part-gallery-thumb.is-active {
  border-color: var(--c-gold);
  box-shadow: 0 0 12px rgba(251,176,60,0.3);
}

.part-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Main large image */
.part-gallery-main {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--c-glass-border);
  background-color: #0a0a0a;
  transition: border-color var(--dur-fast);
  cursor: zoom-in;
}

.part-gallery-main--pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--part-gallery-pattern);
  background-size: 150%;
  background-position: center;
  background-repeat: no-repeat;
  transform: rotate(180deg);
  pointer-events: none;
}

.part-gallery-main--pattern img {
  position: relative;
  z-index: 1;
}

.part-gallery-main--pattern .part-gallery-open-btn {
  z-index: 2;
}

.part-gallery-main:hover { border-color: var(--c-gold-border); }

.part-gallery-main img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 420px;
  transition: opacity 130ms ease;
  pointer-events: none;
}

.part-gallery-open-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 200ms ease, background 200ms ease;
}

.part-gallery-main:hover .part-gallery-open-btn { opacity: 1; }

.part-gallery-open-btn svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

/* Summary panel (right) */
.catalog-part-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: calc(var(--header-height, 64px) + 16px);
}

.catalog-part-summary-glass {
  background: var(--c-glass);
  backdrop-filter: var(--c-glass-blur);
  -webkit-backdrop-filter: var(--c-glass-blur);
  border: 1px solid var(--c-glass-border);
  border-radius: 18px;
  padding: 28px;
}

.catalog-part-summary-glass h1 {
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  letter-spacing: 0.05em;
  margin: 0;
  line-height: 1.2;
}

/* Артикул MODERN — тонкая строка под названием */
.catalog-part-title-row {
  margin-bottom: 20px;
}

.catalog-part-title-row h1 {
  margin: 0 0 6px;
}

.catalog-article {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}

.catalog-article-label {
  font-family: var(--font-body-light);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.3);
}

.catalog-article-value {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(251, 176, 60, 0.6);
}

.catalog-article-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  padding: 0;
  transition: color 0.16s ease;
}

.catalog-article-copy svg { width: 12px; height: 12px; fill: currentColor; }
.catalog-article-copy:hover { color: rgba(251, 176, 60, 0.6); }
.catalog-article-copy.is-copied { color: rgba(251, 176, 60, 0.9); }

/* OEM list — each code is a separate tag */
.catalog-oem-list {
  margin-bottom: 16px;
}

.catalog-oem-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-3);
  margin-bottom: 8px;
}

.catalog-oem-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.catalog-oem-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body-bold);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--c-gold);
  background: var(--c-gold-dim);
  border: 1px solid var(--c-gold-border);
  border-radius: 6px;
  padding: 4px 10px;
}

.catalog-description {
  font-family: var(--font-body-light);
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255,255,255,0.65);
  margin-top: 16px;
}

.catalog-description p { margin: 0; }

/* ── Sections (glass panels) ── */
.catalog-section {
  background: var(--c-glass);
  backdrop-filter: var(--c-glass-blur);
  -webkit-backdrop-filter: var(--c-glass-blur);
  border: 1px solid var(--c-glass-border);
  border-radius: 18px;
  padding: 28px;
  margin-bottom: 12px;
}

.catalog-section-title {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--c-glass-border);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Gold accent bar */
.catalog-section-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 14px;
  background: var(--c-gold);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── Tables ── */
.catalog-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid var(--c-glass-border);
}

.catalog-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 13px;
}

.catalog-table th,
.catalog-table td {
  border-bottom: 1px solid var(--c-glass-border);
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
}

.catalog-table th {
  background: rgba(255,255,255,0.025);
  color: var(--c-text-3);
  font-family: var(--font-body-bold);
  font-weight: normal;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  white-space: nowrap;
}

.catalog-table td {
  background: transparent;
  color: var(--c-text-2);
}

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

.catalog-table tbody tr {
  transition: background var(--dur-fast);
}

.catalog-table tbody tr:hover td {
  background: rgba(255,255,255,0.03);
  color: var(--c-text-1);
}

.catalog-table-characteristics th {
  width: 36%;
  color: var(--c-text-2);
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
}

.catalog-table-characteristics td {
  color: #fff;
}

.catalog-table-registries thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

/* ── Совместимые авто: табы по брендам ── */
.compat-widget {
  border: 1px solid var(--c-glass-border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--c-bg-card);
}

.compat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0 8px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--c-glass-border);
  overflow-x: auto;
  scrollbar-width: thin;
}

.compat-tab {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--c-text-3);
  font-family: var(--font-body-bold);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out);
}

.compat-tab:hover:not(.is-active) {
  color: var(--c-text-2);
  background: rgba(255,255,255,0.03);
}

.compat-tab.is-active {
  color: var(--c-gold);
  border-bottom-color: var(--c-gold);
  background: rgba(251,176,60,0.06);
}

.compat-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--c-text-2);
}

.compat-tab.is-active .compat-tab-count {
  background: rgba(251,176,60,0.15);
  color: var(--c-gold);
}

.compat-panel { display: none; padding: 0; }
.compat-panel.is-active { display: block; }
.compat-panel[hidden] { display: none !important; }

.compat-panel .catalog-table-scroll {
  border-radius: 0 0 16px 16px;
}

.compat-panel .catalog-table { font-size: 13px; }

.compat-panel .catalog-table th:first-child,
.compat-panel .catalog-table td:first-child { padding-left: 20px; }

.compat-panel .catalog-table th:last-child,
.compat-panel .catalog-table td:last-child { padding-right: 20px; }

/* ── Empty state ── */
.catalog-empty {
  font-family: var(--font-body-light);
  font-size: 14px;
  color: var(--c-text-3);
  text-align: center;
  padding: 48px 24px;
  background: var(--c-glass);
  border: 1px dashed var(--c-glass-border);
  border-radius: 16px;
  margin: 0;
}

/* ── Popup / topbar ── */
.catalog-popup .catalog-popup-content {
  height: 100%;
  overflow: hidden;
}

.catalog-popup-inner {
  padding: var(--space-6) var(--space-2) var(--space-4);
  max-width: var(--container-max);
  margin: 0 auto;
}

.catalog-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  min-height: var(--header-height, 56px);
  background: var(--c-bg-deep);
  border-bottom: 1px solid var(--c-gold-border);
}

.catalog-topbar-logo {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.1em;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
}

.catalog-topbar-back {
  font-size: 13px;
  color: var(--c-text-2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: color var(--dur-fast);
}

.catalog-topbar-back:hover { color: var(--c-gold); }

/* ── Magnific popup ── */
.mfp-bg { background: rgba(0,0,0,0.94); }
.mfp-counter { font-family: var(--font-body); color: var(--c-gold); }

/* ── Stagger entrance animation ── */
@keyframes card-in {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.catalog-parts-grid .catalog-part-card,
.catalog-category-index-grid .catalog-category-index-card {
  animation: card-in var(--dur-slow) var(--ease-out) both;
}

.catalog-parts-grid .catalog-part-card:nth-child(1),
.catalog-category-index-grid .catalog-category-index-card:nth-child(1)  { animation-delay:  0ms; }
.catalog-parts-grid .catalog-part-card:nth-child(2),
.catalog-category-index-grid .catalog-category-index-card:nth-child(2)  { animation-delay: 40ms; }
.catalog-parts-grid .catalog-part-card:nth-child(3),
.catalog-category-index-grid .catalog-category-index-card:nth-child(3)  { animation-delay: 80ms; }
.catalog-parts-grid .catalog-part-card:nth-child(4),
.catalog-category-index-grid .catalog-category-index-card:nth-child(4)  { animation-delay:120ms; }
.catalog-parts-grid .catalog-part-card:nth-child(5),
.catalog-category-index-grid .catalog-category-index-card:nth-child(5)  { animation-delay:160ms; }
.catalog-parts-grid .catalog-part-card:nth-child(6),
.catalog-category-index-grid .catalog-category-index-card:nth-child(6)  { animation-delay:200ms; }
.catalog-parts-grid .catalog-part-card:nth-child(n+7),
.catalog-category-index-grid .catalog-category-index-card:nth-child(n+7){ animation-delay:240ms; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .catalog-part-hero { grid-template-columns: 1fr; }
  .catalog-part-summary { position: static; }
  .catalog-category-index-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
}

@media (max-width: 768px) {
  .catalog-category-header { min-height: 200px; }
  .catalog-category-header-body { padding: 24px; }
  .catalog-category-header-photo {
    width: 38%;
    padding: 12px 16px 12px 0;
  }
  .catalog-category-header-photo-showcase {
    width: min(100%, 140px);
    min-height: 130px;
    padding: 16px 12px;
  }
  .catalog-category-header-photo-img {
    max-height: 100px;
  }
  .catalog-section { padding: 20px; }
  .catalog-parts-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px; }
  .catalog-part-summary-glass { padding: 20px; }
  .catalog-category-index-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }
  .catalog-category-index-grid > *:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
  }

  /* Part gallery: thumbs below main image, no side waste */
  .catalog-part-media {
    border-radius: 12px;
    min-height: 0;
    margin: 0;
  }

  .part-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    padding: 4px;
    gap: 4px;
    min-height: 0;
  }

  /* Thumbs become a horizontal strip */
  .part-gallery-thumbs {
    order: 2;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
    padding: 2px;
    gap: 4px;
  }

  .part-gallery-main {
    order: 1;
  }

  .part-gallery-main img {
    max-height: 280px;
  }

  .part-gallery-thumb {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
  }
}

@media (max-width: 480px) {
  .catalog-parts-grid { grid-template-columns: repeat(2,1fr); gap: 5px; }
  .catalog-gallery   { grid-template-columns: repeat(2,1fr); }
  .catalog-category-index-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 140px;
  }
  .catalog-category-index-grid > *:nth-child(1) {
    grid-column: span 1;
    grid-row: span 1;
  }
  .catalog-table { font-size: 12px; }
  .catalog-table th, .catalog-table td { padding: 8px 12px; }
}

/* ── Vanilla lightbox (part gallery) ── */

.part-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 220ms ease;
}

.part-lightbox.is-open { opacity: 1; }
.part-lightbox.is-closing { opacity: 0; }

.part-lightbox-bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
}

.part-lightbox-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 90vh;
}

.part-lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  transition: opacity 100ms ease;
  user-select: none;
}

.part-lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 180ms ease;
  z-index: 1;
}

.part-lightbox-close:hover { background: rgba(255,255,255,0.2); }

.part-lightbox-prev,
.part-lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 180ms ease;
  z-index: 1;
}

.part-lightbox-prev { left: 20px; }
.part-lightbox-next { right: 20px; }
.part-lightbox-prev:hover,
.part-lightbox-next:hover { background: rgba(251,176,60,0.25); border-color: rgba(251,176,60,0.4); }

.part-lightbox-counter {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
}
/* ============================================================
   MODERN — site-wide components & layout
   Premium industrial aesthetic, strict 8px grid
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--space-2));
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-nav-open { overflow: hidden; }

main { flex: 1; }

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

::selection {
  background: var(--color-accent);
  color: var(--color-black);
}

a { color: inherit; }

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

.btn:focus-visible,
.search-tab:focus-visible {
  outline-offset: 3px;
}

/* ── Typography ── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  line-height: var(--leading-tight);
  margin: 0;
  color: var(--color-text);
  font-weight: normal;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

.text-caption {
  font-family: var(--font-body-light);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.text-lead {
  font-family: var(--font-body-light);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-muted);
}

/* ── Layout ── */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.section {
  padding: var(--space-5) 0;
}

.section--compact { padding: var(--space-4) 0; }
.section--muted { background-color: var(--color-bg-muted); }
.section--dark {
  background-color: var(--color-black);
  color: var(--color-text);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-border);
}

.section-head h2 { font-size: var(--text-3xl); }

.section-head .section-link {
  font-family: var(--font-body-bold);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  text-decoration: none;
  white-space: nowrap;
  min-height: var(--touch-min);
  display: inline-flex;
  align-items: center;
  transition: opacity var(--transition-fast);
}

.section-head .section-link:hover { opacity: 0.7; }

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  min-height: var(--touch-min);
  font-family: var(--font-body-bold);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast);
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-black);
  border-color: var(--color-accent);
}

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

.btn-secondary {
  background-color: var(--color-dark);
  color: var(--color-text);
  border-color: var(--color-border-strong);
}

.btn-secondary:hover {
  background-color: var(--color-dark-elevated);
  border-color: var(--color-accent);
}

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

.btn-ghost:hover {
  border-color: var(--color-accent);
  background-color: var(--color-accent-soft);
  color: var(--color-text);
}

.btn-ghost--inverse {
  border-color: var(--color-border-strong);
  color: var(--color-text-secondary);
}

.btn-ghost--inverse:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background-color: var(--color-accent-soft);
}

/* ── Badges ── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  color: var(--color-black);
  background-color: var(--color-accent-soft);
  border: 1px solid var(--color-accent-border);
  border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-2);
}

.badge--dark {
  background-color: var(--color-dark);
  border-color: var(--color-dark);
  color: var(--color-accent);
}

/* ── Inputs ── */

.input,
.search-input {
  width: 100%;
  min-height: var(--touch-min);
  background-color: var(--color-input-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  padding: var(--space-2);
  outline: none;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast);
}

.input::placeholder,
.search-input::placeholder {
  color: var(--color-muted);
}

.input:hover:not(:disabled),
.search-input:hover:not(:disabled) {
  border-color: var(--color-border-strong);
}

.input:focus,
.search-input:focus {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-accent);
}

/* Кастомный select — CSS-only, без нативного вида браузера */
.search-select-wrap {
  position: relative;
  display: block;
}

.search-select {
  width: 100%;
  min-height: var(--touch-min);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: var(--color-input-bg);
  background-image: var(--select-arrow);
  background-repeat: no-repeat;
  background-position: right var(--space-2) center;
  background-size: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  padding: var(--space-2) calc(var(--space-4) + 8px) var(--space-2) var(--space-2);
  outline: none;
  cursor: pointer;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast),
    opacity var(--transition-fast);
}

.search-select:hover:not(:disabled) {
  border-color: var(--color-border-strong);
}

.search-select:focus {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-accent);
}

.search-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: var(--color-input-bg-disabled);
  color: var(--color-muted);
}

.search-select option {
  color: var(--color-text);
  background-color: var(--color-dark);
}

/* Состояния обёртки select (disabled / загрузка каскада) */
.search-select-wrap.is-disabled .search-select {
  opacity: 0.5;
  cursor: not-allowed;
}

.search-select-wrap.is-loading .search-select {
  opacity: 0.7;
  pointer-events: none;
}

.search-select-wrap.is-loading::after {
  content: '';
  position: absolute;
  right: calc(var(--space-4) + 4px);
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border: 2px solid var(--color-border-strong);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: search-select-spin 0.6s linear infinite;
  pointer-events: none;
}

@keyframes search-select-spin {
  to { transform: rotate(360deg); }
}

/* ── Header ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.site-header-accent {
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(251, 176, 60, 0.15) 20%,
    rgba(251, 176, 60, 0.85) 50%,
    rgba(251, 176, 60, 0.15) 80%,
    transparent 100%
  );
}

.site-header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  height: var(--header-height);
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  min-height: var(--touch-min);
  padding-right: var(--space-2);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  margin-right: var(--space-1);
}

.site-logo-img {
  display: block;
  height: 28px;
  width: auto;
  transition: opacity var(--transition-fast);
}

.site-logo:hover .site-logo-img { opacity: 0.85; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-muted);
  text-decoration: none;
  padding: 8px 14px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  transition:
    color var(--transition-fast),
    background-color var(--transition-fast),
    border-color var(--transition-fast);
}

.site-nav a span { position: relative; }

.site-nav a:hover {
  color: var(--color-text);
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.06);
}

.site-nav a.is-active {
  color: var(--color-accent);
  background-color: rgba(251, 176, 60, 0.1);
  border-color: rgba(251, 176, 60, 0.22);
}

.site-header-search {
  margin-left: auto;
  display: flex;
  align-items: stretch;
  max-width: 300px;
  flex: 1;
  position: relative;
}

.site-header-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header-search input {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-right: none;
  border-radius: var(--radius-full) 0 0 var(--radius-full);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  padding: 0 var(--space-3);
  outline: none;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast);
}

.site-header-search input::placeholder { color: var(--color-muted); }

.site-header-search input:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background-color: rgba(255, 255, 255, 0.06);
}

.site-header-search input:focus {
  border-color: rgba(251, 176, 60, 0.45);
  background-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(251, 176, 60, 0.12);
  z-index: 1;
  position: relative;
}

.site-header-search button {
  background: linear-gradient(135deg, var(--color-accent) 0%, #e5a035 100%);
  border: none;
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  color: var(--color-black);
  min-width: 44px;
  padding: 0 var(--space-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter var(--transition-fast), transform var(--transition-fast);
}

.site-header-search button:hover {
  filter: brightness(1.06);
}

.site-header-search button:active { transform: scale(0.98); }
.site-header-search button svg { width: 18px; height: 18px; fill: currentColor; }

.site-burger {
  display: none;
  margin-left: auto;
  width: var(--touch-min);
  height: var(--touch-min);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  transition: border-color var(--transition-fast);
}

.site-burger:hover { border-color: var(--color-accent); }

.site-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.site-burger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-burger.is-active span:nth-child(2) { opacity: 0; }
.site-burger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--header-height);
  background: rgba(0, 0, 0, 0.55);
  z-index: 150;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.site-nav-overlay.is-visible {
  display: block;
  opacity: 1;
}

/* ── Footer ── */

.site-footer {
  margin-top: auto;
  background: #030303;
  color: var(--color-text);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.site-footer-accent {
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(251, 176, 60, 0.12) 20%,
    rgba(251, 176, 60, 0.75) 50%,
    rgba(251, 176, 60, 0.12) 80%,
    transparent 100%
  );
}

.site-footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding: 56px 0 40px;
}

.site-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 340px;
}

.site-footer-logo-link {
  display: inline-flex;
  text-decoration: none;
}

.site-footer-logo {
  display: block;
  height: 30px;
  width: auto;
  transition: opacity var(--transition-fast);
}

.site-footer-logo-link:hover .site-footer-logo { opacity: 0.85; }

.site-footer-tagline {
  margin: 0;
  font-family: var(--font-body-light);
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.42);
}

.site-footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  padding: 10px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(251, 176, 60, 0.18);
  background: rgba(251, 176, 60, 0.06);
}

.site-footer-badge-year {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-accent);
  line-height: 1;
}

.site-footer-badge-text {
  font-size: 11px;
  font-family: var(--font-body-light);
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.site-footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.site-footer-col h4 {
  margin: 0 0 16px;
  font-family: var(--font-body-bold);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
}

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

.site-footer-col a {
  font-family: var(--font-body-light);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.site-footer-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
}

.site-footer-cta h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  letter-spacing: 0.04em;
  color: #fff;
}

.site-footer-cta p {
  margin: 0;
  font-family: var(--font-body-light);
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.42);
}

.site-footer-cta-btn {
  align-self: flex-start;
  margin-top: 4px;
}

.site-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px 0 24px;
}

.site-footer-bottom-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer-copy,
.site-footer-address {
  margin: 0;
  font-family: var(--font-body-light);
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.28);
}

.site-footer-address {
  text-align: right;
  max-width: 520px;
}

/* ── Hero ── */

.hero {
  position: relative;
  padding: var(--space-6) 0 var(--space-5);
  background-color: var(--color-bg-muted);
  color: var(--color-text);
  border-bottom: 2px solid var(--color-accent);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: start;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, var(--text-5xl));
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.hero-content h1 span { color: var(--color-accent); }

.hero-lead {
  font-family: var(--font-body-light);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-muted);
  max-width: 480px;
  margin-bottom: var(--space-4);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.hero-stats {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.hero-stats > div {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.hero-stats dd { margin: 0; }
.hero-stats dt { margin: 0; }

.hero-stat-value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--color-accent);
  line-height: 1;
}

.hero-stat-label {
  font-family: var(--font-body-light);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-top: var(--space-1);
}

.hero-search { position: relative; }

/* ── Search widget ── */

.search-widget {
  background-color: var(--color-dark);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.search-tabs {
  display: flex;
  background-color: var(--color-bg-muted);
  border-bottom: 1px solid var(--color-border);
}

.search-tab {
  flex: 1;
  min-height: var(--touch-min);
  padding: var(--space-2) var(--space-3);
  background: transparent;
  border: none;
  color: var(--color-muted);
  font-family: var(--font-body-bold);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    color var(--transition-fast),
    background-color var(--transition-fast);
  position: relative;
}

.search-tab:hover:not(.is-active) {
  color: var(--color-text-secondary);
  background-color: var(--color-bg-subtle);
}

.search-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--space-3);
  right: var(--space-3);
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.search-tab.is-active {
  color: var(--color-text);
  background-color: var(--color-dark);
}

.search-tab.is-active::after { transform: scaleX(1); }

.search-panel { display: none; padding: var(--space-4); }
.search-panel.is-active { display: block; }
.search-panel[hidden] { display: none !important; }

/* Category filter tabs (vehicle search results) */
.search-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-border);
}

.search-category-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-bg-muted);
  color: var(--color-muted);
  font-family: var(--font-body-bold);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    color var(--transition-fast),
    border-color var(--transition-fast),
    background-color var(--transition-fast);
}

.search-category-tab:hover:not(.is-active) {
  color: var(--color-text-secondary);
  border-color: var(--color-border-strong);
  background: var(--color-bg-subtle);
}

.search-category-tab.is-active {
  color: var(--color-accent);
  border-color: var(--color-accent-border);
  background: var(--color-accent-soft);
}

.search-category-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}

.search-category-tab.is-active .search-category-count {
  background: rgba(251, 176, 60, 0.18);
  color: var(--color-accent);
}

.search-row {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.search-field { flex: 1; min-width: 140px; }

.search-field label {
  display: block;
  font-family: var(--font-body-bold);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-1);
}

.search-actions { margin-top: var(--space-3); }

.search-hint {
  font-family: var(--font-body-light);
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin: var(--space-2) 0 0;
  line-height: var(--leading-normal);
}

/* ── Breadcrumbs ── */

.breadcrumb,
.catalog-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.breadcrumb a,
.catalog-breadcrumb a {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb a:hover,
.catalog-breadcrumb a:hover { color: var(--color-accent); }

.breadcrumb-sep,
.catalog-breadcrumb-sep {
  color: var(--color-border-strong);
  user-select: none;
}

.breadcrumb-current,
.catalog-breadcrumb-current {
  color: var(--color-muted);
}

/* ── Page heading ── */

.page-head {
  padding: var(--space-4) 0 var(--space-2);
}

.page-head h1 {
  font-size: clamp(1.75rem, 4vw, var(--text-4xl));
}

.page-head .page-sub {
  font-family: var(--font-body-light);
  font-size: var(--text-base);
  color: var(--color-muted);
  margin-top: var(--space-2);
  max-width: 560px;
  line-height: var(--leading-relaxed);
}

/* ── Category cards ── */

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-2);
}

/* ── Bento grid (home page) — 2 ряда: крупная плитка + 4 компаньона ── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 130px;
  gap: 8px;
}

/* Row 1-2: big hero left, 2x2 right */
.bento-grid > *:nth-child(1) { grid-column: 1 / 7;   grid-row: 1 / 3; }
.bento-grid > *:nth-child(2) { grid-column: 7 / 10;  grid-row: 1 / 2; }
.bento-grid > *:nth-child(3) { grid-column: 10 / 13; grid-row: 1 / 2; }
.bento-grid > *:nth-child(4) { grid-column: 7 / 10;  grid-row: 2 / 3; }
.bento-grid > *:nth-child(5) { grid-column: 10 / 13; grid-row: 2 / 3; }
/* Row 3: two equal + CTA card */
.bento-grid > *:nth-child(6) { grid-column: 1 / 5;   grid-row: 3 / 4; }
.bento-grid > *:nth-child(7) { grid-column: 5 / 9;   grid-row: 3 / 4; }
.bento-grid > *:nth-child(8) { grid-column: 9 / 13;  grid-row: 3 / 4; }

.bento-card {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  background-color: #111;
  border: 1px solid rgba(255,255,255,.07);
  transition: transform 0.25s cubic-bezier(.22,.68,0,1.2), box-shadow 0.25s ease;
  cursor: pointer;
}

.bento-card:hover {
  transform: scale(1.018);
  box-shadow: 0 12px 40px rgba(0,0,0,.6);
  border-color: rgba(251,176,60,.35);
  z-index: 2;
}

.bento-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s cubic-bezier(.22,.68,0,1.1);
}

.bento-card:hover .bento-card__img { transform: scale(1.07); }

/* Rich gradient: near-black bottom, subtle colour tint top */
.bento-card__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,
      rgba(0,0,0,.88) 0%,
      rgba(0,0,0,.30) 45%,
      rgba(0,0,0,.06) 100%);
}

/* Top-right accent tag for count */
.bento-card__tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(251,176,60,.15);
  border: 1px solid rgba(251,176,60,.35);
  color: #fbb03c;
  font-size: 11px;
  font-family: var(--font-body);
  letter-spacing: .06em;
  padding: 3px 9px;
  border-radius: 100px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.2s;
  white-space: nowrap;
}

.bento-card:hover .bento-card__tag {
  background: rgba(251,176,60,.28);
}

.bento-card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 20px 20px;
}

.bento-card__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  letter-spacing: 0.06em;
  color: #fff;
  line-height: var(--leading-tight);
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

/* Hero card gets bigger title */
.bento-grid > *:nth-child(1) .bento-card__title {
  font-size: var(--text-xl);
}

/* CTA card — 8th item: text instead of image */
.bento-card--cta {
  background: rgba(251, 176, 60, 0.04);
  border: 1px solid rgba(251, 176, 60, 0.18) !important;
  display: flex !important;
  align-items: stretch;
  transform: none !important;
}

.bento-card--cta:hover {
  background: rgba(251, 176, 60, 0.09);
  border-color: rgba(251, 176, 60, 0.42) !important;
  box-shadow: 0 8px 28px rgba(251,176,60,0.1) !important;
}

.bento-card__cta-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 22px;
  width: 100%;
}

.bento-card__cta-label {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  line-height: 1.2;
}

.bento-card__cta-count {
  font-family: var(--font-body-light);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 4px;
}

.bento-card__cta-arrow svg {
  width: 22px;
  height: 22px;
  fill: var(--color-accent);
  opacity: 0.7;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.bento-card--cta:hover .bento-card__cta-arrow svg {
  transform: translateX(5px);
  opacity: 1;
}

/* Accent underline on hover */
.bento-card__title::after {
  content: '';
  display: block;
  margin-top: 6px;
  height: 2px;
  width: 0;
  background: #fbb03c;
  border-radius: 2px;
  transition: width 0.25s ease;
}

.bento-card:hover .bento-card__title::after { width: 32px; }

.bento-card__no-img {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #141414 0%, #1c1c1c 100%);
}

.bento-card__no-img svg {
  width: 36px;
  height: 36px;
  fill: rgba(255,255,255,.12);
}

.category-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
  background-color: var(--color-dark);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  min-height: var(--touch-min);
  transition:
    border-color var(--transition-fast),
    background-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.category-card:hover {
  border-color: var(--color-accent);
  background-color: var(--color-dark-elevated);
  box-shadow: var(--shadow-sm);
}

.category-card-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: var(--radius-md);
  background-color: var(--color-bg-muted);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.category-card:hover .category-card-icon { border-color: var(--color-accent-border); }

.category-card-icon img { width: 100%; height: 100%; object-fit: cover; }

.category-card-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--color-muted);
}

.category-card-body { flex: 1; min-width: 0; }

.category-card-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  letter-spacing: 0.02em;
  line-height: var(--leading-tight);
}

.category-card-count {
  font-family: var(--font-body-light);
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-top: 2px;
}

.category-card-arrow {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  fill: var(--color-border-strong);
  transition: fill var(--transition-fast);
}

.category-card:hover .category-card-arrow { fill: var(--color-accent); }

/* ── News / post cards ── */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-3);
}

.news-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--color-text);
  background-color: var(--color-dark);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.news-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.news-card-media {
  height: 192px;
  background-color: var(--color-bg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card-media svg {
  width: 40px;
  height: 40px;
  fill: var(--color-border-strong);
  opacity: 0.4;
}

.news-card-body {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  flex: 1;
}

.news-card-date {
  font-family: var(--font-body-bold);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.news-card-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  letter-spacing: 0.02em;
  line-height: var(--leading-tight);
}

.news-card-excerpt {
  font-family: var(--font-body-light);
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: var(--leading-normal);
}

/* ── News cards (redesigned) ── */

.news-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.news-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--color-text);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 260ms ease, transform 260ms cubic-bezier(0.16,1,0.3,1), box-shadow 260ms ease;
}

.news-card:hover {
  border-color: rgba(251,176,60,0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(251,176,60,0.08);
}

.news-card-media {
  position: relative;
  height: 180px;
  background: #111;
  overflow: hidden;
}

.news-card--featured .news-card-media { height: 260px; }

.news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms cubic-bezier(0.16,1,0.3,1);
}

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

.news-card-no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
}

.news-card-no-img svg {
  width: 40px;
  height: 40px;
  fill: rgba(255,255,255,0.12);
}

.news-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 10px;
  font-family: var(--font-body-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #000;
  background: #fbb03c;
  padding: 4px 10px;
  border-radius: 20px;
}

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

.news-card-date {
  font-family: var(--font-body-bold);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fbb03c;
}

.news-card-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: #fff;
}

.news-card--featured .news-card-title { font-size: var(--text-2xl); }

.news-card-excerpt {
  font-family: var(--font-body-light);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  flex: 1;
}

.news-card-link {
  font-size: 12px;
  font-family: var(--font-body-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fbb03c;
  margin-top: 4px;
}

/* ── Brand section ── */

/* ── Brand section — full redesign ── */
.brand-section {
  background: #050505;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
}

/* Hero block */
.brand-hero {
  padding: 80px 0 60px;
  position: relative;
}

.brand-hero::before {
  content: 'MODERN';
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(80px, 14vw, 200px);
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.02);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.brand-hero-inner {
  max-width: 680px;
}

.brand-eyebrow {
  font-family: var(--font-body-bold);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fbb03c;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1.5px;
  background: #fbb03c;
  flex-shrink: 0;
}

.brand-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: 0.03em;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 28px;
}

.brand-lead {
  font-family: var(--font-body-light);
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255,255,255,0.55);
  max-width: 560px;
}

.brand-lead strong {
  color: #fbb03c;
  font-family: var(--font-body-bold);
}

/* Stats row */
.brand-stats-row {
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0;
}

.brand-stats {
  display: flex;
  align-items: stretch;
}

.brand-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 24px;
  text-align: center;
  gap: 6px;
}

.brand-stat--divider {
  flex: none;
  width: 1px;
  background: rgba(255,255,255,0.06);
  padding: 0;
}

.brand-stat-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 48px);
  color: #fbb03c;
  line-height: 1;
}

.brand-stat-label {
  font-size: 11px;
  font-family: var(--font-body-light);
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Pillars */
.brand-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin: 0 0 0;
}

.brand-pillar {
  background: #050505;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 250ms ease;
}

.brand-pillar:hover {
  background: rgba(251,176,60,0.03);
}

.brand-pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(251,176,60,0.08);
  border: 1px solid rgba(251,176,60,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-pillar-icon svg {
  width: 22px;
  height: 22px;
  fill: #fbb03c;
}

.brand-pillar-title {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.05em;
  color: #fff;
  line-height: 1.3;
}

.brand-pillar-text {
  font-family: var(--font-body-light);
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.45);
}

/* Legal strip */
.brand-legal {
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.brand-legal-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.brand-legal-name {
  font-size: 12px;
  font-family: var(--font-body-bold);
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.05em;
}

.brand-legal-sep {
  color: rgba(255,255,255,0.15);
}

.brand-legal-addr {
  font-size: 12px;
  font-family: var(--font-body-light);
  color: rgba(255,255,255,0.2);
}

/* ── Team / Contacts ── */

.team-section {
  position: relative;
  padding: 80px 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(251, 176, 60, 0.07) 0%, transparent 60%),
    #080808;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.team-section::before {
  content: 'CONTACT';
  position: absolute;
  right: -10px;
  bottom: 24px;
  font-family: var(--font-display);
  font-size: clamp(72px, 12vw, 160px);
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.015);
  pointer-events: none;
  user-select: none;
}

.team-head {
  max-width: 620px;
  margin-bottom: 40px;
}

.team-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--font-body-bold);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.team-eyebrow::before {
  content: '';
  width: 32px;
  height: 1.5px;
  background: var(--color-accent);
  flex-shrink: 0;
}

.team-head h2 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 48px);
}

.team-lead {
  margin: 0;
  font-family: var(--font-body-light);
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.48);
}

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

/* Horizontal card: compact uncropped portrait + contacts */
.team-card {
  --team-card-bg: #0e0e0e;
  --team-photo-w: 120px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: var(--team-card-bg);
  overflow: hidden;
  transition:
    transform var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

.team-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 2px;
  height: auto;
  z-index: 3;
  background: linear-gradient(180deg, transparent, rgba(251, 176, 60, 0.8), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.team-card:hover {
  transform: translateY(-2px);
  border-color: rgba(251, 176, 60, 0.22);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.team-card:hover .team-card-accent { opacity: 1; }

.team-card--featured {
  border-color: rgba(251, 176, 60, 0.2);
  background:
    linear-gradient(100deg, rgba(251, 176, 60, 0.07) 0%, transparent 42%),
    var(--team-card-bg);
}

/* Portrait — full frame, no crop (source is 4:5) */
.team-card-photo {
  position: relative;
  flex: 0 0 auto;
  width: var(--team-photo-w);
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.team-card-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  filter: brightness(1.16) contrast(1.04) saturate(1.06);
  transition: filter var(--transition-base);
}

.team-card:hover .team-card-photo img {
  filter: brightness(1.22) contrast(1.05) saturate(1.1);
}

.team-card--featured .team-card-photo {
  border-color: rgba(251, 176, 60, 0.28);
}

.team-card-region {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 2px;
  padding: 0 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(251, 176, 60, 0.22);
  background: rgba(251, 176, 60, 0.08);
  font-family: var(--font-body-bold);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* Name block on the left, contacts pushed to the right */
.team-card-info {
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.team-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.team-card-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  letter-spacing: 0.03em;
  color: #fff;
}

.team-card-role {
  margin: 0;
  font-family: var(--font-body-light);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.42);
}

.team-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.team-card-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition:
    color var(--transition-fast),
    border-color var(--transition-fast),
    background-color var(--transition-fast);
}

.team-card-phone svg {
  width: 16px;
  height: 16px;
  fill: var(--color-accent);
  flex-shrink: 0;
}

.team-card-phone:hover {
  color: #fff;
  border-color: rgba(251, 176, 60, 0.35);
  background: rgba(251, 176, 60, 0.08);
}

/* Phone row — phone link + WA icon as one visual pill */
.team-card-phone-row {
  display: flex;
  align-items: stretch;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.team-card-phone-row .team-card-phone {
  flex: 1;
  border: none;
  border-radius: 0;
  min-height: 42px;
}

.team-card-wa-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  margin: auto 6px auto 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(37, 211, 102, 0.8);
  text-decoration: none;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.team-card-wa-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.team-card-wa-icon:hover {
  background: rgba(37, 211, 102, 0.15);
  border-color: rgba(37, 211, 102, 0.4);
  color: #25d366;
}

/* Отдельная полная WhatsApp-кнопка (оставлена для обратной совместимости) */
.team-card-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(37, 211, 102, 0.35);
  background: rgba(37, 211, 102, 0.12);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: #25d366;
  text-decoration: none;
  transition:
    color var(--transition-fast),
    border-color var(--transition-fast),
    background-color var(--transition-fast);
}

.team-card-whatsapp svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

.team-card-whatsapp:hover {
  color: #fff;
  background: #25d366;
  border-color: #25d366;
}

/* ── Company / map / lead form ── */
.company-section {
  padding: 80px 0;
  border-top: 1px solid var(--color-border);
}

.company-head {
  max-width: 640px;
  margin-bottom: var(--space-5);
}

.company-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.company-head h2 {
  font-size: clamp(1.6rem, 3.5vw, var(--text-4xl));
  letter-spacing: 0.03em;
  margin-bottom: var(--space-2);
}

.company-lead {
  font-family: var(--font-body-light);
  color: var(--color-muted);
  line-height: var(--leading-relaxed);
  max-width: 560px;
}

.company-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-4);
  align-items: stretch;
}

.company-map-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.company-map {
  position: relative;
  flex: 1;
  min-height: 340px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #111;
}

.company-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: grayscale(0.2);
}

.company-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}

.company-facts li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
}

.company-fact-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.company-fact-value {
  font-family: var(--font-body-light);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.company-form-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.02);
}

.company-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.company-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.company-field label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.72);
}

.company-textarea {
  resize: vertical;
  min-height: 84px;
  padding-top: 10px;
}

.company-form-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-1);
}

.company-form-btn { width: 100%; }

.company-form-note {
  font-size: var(--text-sm);
  min-height: 1em;
  margin: 0;
}

.company-form-note.is-ok { color: #25d366; }
.company-form-note.is-err { color: #ff6b6b; }

.company-form-success {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.3);
}

.company-form-success svg {
  width: 24px;
  height: 24px;
  fill: #25d366;
  flex-shrink: 0;
}

.company-form-success strong { display: block; color: #fff; font-size: var(--text-sm); }
.company-form-success span { font-size: var(--text-sm); color: rgba(255, 255, 255, 0.7); }

@media (max-width: 860px) {
  .company-grid { grid-template-columns: 1fr; }
  .company-section { padding: 56px 0; }
  .company-map { min-height: 300px; }
}

/* ── About / contacts (legacy — keep for other pages) ── */

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-5);
  align-items: start;
}

.about-text p {
  font-family: var(--font-body-light);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-muted);
}

.contact-card {
  background-color: var(--color-dark);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  border-top: 2px solid var(--color-accent);
}

.contact-card h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}

.contact-row { margin-bottom: var(--space-3); }

.contact-row:last-child { margin-bottom: 0; }

.contact-row .label {
  font-family: var(--font-body-bold);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  display: block;
  margin-bottom: var(--space-1);
}

.contact-row a,
.contact-row .value {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: var(--color-text);
  text-decoration: none;
}

.contact-row a {
  min-height: var(--touch-min);
  display: flex;
  align-items: center;
}

.contact-row a:hover { color: var(--color-accent); }

/* ── Article (post show) ── */

.article {
  max-width: 720px;
  margin: 0 auto;
}

.article-cover {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-4);
  border: 1px solid var(--color-border);
}

.article h1 {
  font-size: clamp(1.75rem, 4vw, var(--text-4xl));
  margin-bottom: var(--space-2);
}

.article-date {
  font-family: var(--font-body-bold);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.article-body {
  font-family: var(--font-body-light);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
}

.article-body p { margin: 0 0 var(--space-3); }

/* ── Subcategory chips ── */

.subcategory-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
}

.subcategory-chip {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  text-decoration: none;
  color: var(--color-text);
  background-color: var(--color-dark);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-2);
  min-height: var(--touch-min);
  display: inline-flex;
  align-items: center;
  transition:
    border-color var(--transition-fast),
    background-color var(--transition-fast);
}

.subcategory-chip:hover {
  border-color: var(--color-accent);
  background-color: var(--color-accent-soft);
}

/* ── Pagination ── */

.site-pagination {
  margin-top: var(--space-4);
  display: flex;
  justify-content: center;
}

.site-pagination .pagination {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-pagination .pagination a,
.site-pagination .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--touch-min);
  min-height: var(--touch-min);
  padding: 0 var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  text-decoration: none;
  color: var(--color-text);
  background-color: var(--color-dark);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition:
    border-color var(--transition-fast),
    background-color var(--transition-fast);
}

.site-pagination .pagination .current {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-black);
  font-family: var(--font-body-bold);
}

.site-pagination .pagination a:hover {
  border-color: var(--color-accent);
  background-color: var(--color-accent-soft);
}

/* ── Result summary ── */

.result-summary {
  font-family: var(--font-body-light);
  font-size: var(--text-base);
  color: var(--color-muted);
  margin-bottom: var(--space-4);
  padding: var(--space-3);
  background-color: var(--color-dark);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  border-left: 2px solid var(--color-accent);
}

.result-summary strong {
  color: var(--color-text);
  font-family: var(--font-body-bold);
}

/* ── Empty state ── */

.site-empty {
  font-family: var(--font-body-light);
  font-size: var(--text-base);
  color: var(--color-muted);
  text-align: center;
  padding: var(--space-5) var(--space-4);
  background-color: var(--color-dark);
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-lg);
}

/* ── Search results ── */

.search-results { margin-top: var(--space-4); }

/* ── Search empty state (ui-ux-pro-max: no-results UX) ── */

.search-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 56px 32px 48px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  margin-top: var(--space-4);
  gap: 16px;
}

.search-empty-icon {
  width: 56px;
  height: 56px;
  background: rgba(251,176,60,0.1);
  border: 1px solid rgba(251,176,60,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.search-empty-icon svg {
  width: 24px;
  height: 24px;
  fill: #fbb03c;
}

.search-empty-state h3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
}

.search-empty-state > p {
  font-family: var(--font-body-light);
  font-size: var(--text-base);
  color: rgba(255,255,255,0.5);
  margin: 0;
  max-width: 400px;
}

.search-empty-state > p strong {
  color: #fbb03c;
  font-family: var(--font-body-bold);
}

.search-empty-tips {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 16px 20px;
  text-align: left;
  max-width: 400px;
  width: 100%;
}

.search-empty-tip-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 10px;
}

.search-empty-tips ul {
  margin: 0;
  padding: 0 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-empty-tips li {
  font-family: var(--font-body-light);
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

/* ── Scroll-reveal (data-reveal) ──
   Only animate when JS has initialized (.js-animate on <html>).
   Without JS, content is always visible — no blank page risk.
── */

.js-animate [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s cubic-bezier(0.16,1,0.3,1),
    transform 0.5s cubic-bezier(0.16,1,0.3,1);
}

.js-animate [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger items inside grids */
.js-animate [data-stagger] {
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  transition:
    opacity 0.42s cubic-bezier(0.16,1,0.3,1),
    transform 0.42s cubic-bezier(0.16,1,0.3,1);
}

.js-animate [data-stagger].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .js-animate [data-reveal],
  .js-animate [data-stagger] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ── Focus rings (WCAG 2.1 AA — ui-ux-pro-max §1) ── */

:focus-visible {
  outline: 2px solid #fbb03c;
  outline-offset: 3px;
  border-radius: 4px;
}

.bento-card:focus-visible,
.catalog-part-card:focus-visible,
.catalog-category-index-card:focus-visible {
  outline: 2px solid #fbb03c;
  outline-offset: 2px;
}

/* ── Touch targets 44px min (ui-ux-pro-max §2) ── */

.btn {
  min-height: 44px;
}

.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.part-gallery-thumb {
  min-width: 44px;
  min-height: 44px;
}

/* ── Responsive ── */

@media (max-width: 1280px) {
  .container { padding: 0 var(--space-3); }
}

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--space-4); }
  .site-footer-main { grid-template-columns: 1fr 1fr; gap: 32px; }
  .site-footer-brand { grid-column: span 2; max-width: none; }
  .team-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .site-nav,
  .site-header-search { display: none; }

  .site-logo {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
  }

  .site-nav.is-open {
    display: flex;
    position: fixed;
    top: calc(var(--header-height) + 2px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    background-color: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-2) var(--space-3) var(--space-3);
    z-index: 160;
  }

  .site-nav.is-open a {
    padding: var(--space-2) var(--space-2);
    border-bottom: none;
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    width: 100%;
    justify-content: flex-start;
  }

  .site-burger { display: flex; }

  .hero { padding: var(--space-4) 0; }
  .hero-stats { gap: var(--space-3); }
  .section { padding: var(--space-4) 0; }
  .section-head h2 { font-size: var(--text-2xl); }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .news-grid { grid-template-columns: 1fr 1fr; }
  .brand-pillars { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .news-grid { grid-template-columns: 1fr; }
  .team-section { padding: 56px 0; }
  .team-grid { grid-template-columns: 1fr; }
  .team-card { --team-photo-w: 104px; gap: 14px; padding: 14px; }
  .brand-hero { padding: 48px 0 40px; }
  .brand-stats { flex-wrap: wrap; }
  .brand-stat { flex: none; width: 50%; }
  .brand-stat--divider { display: none; }
  .site-footer-main { grid-template-columns: 1fr; }
  .site-footer-brand { grid-column: span 1; }
  .site-footer-bottom-main { flex-direction: column; align-items: flex-start; }
  .site-footer-address { text-align: left; }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-2); }
  .hero-stats { flex-direction: column; gap: var(--space-2); }
  .search-row { flex-direction: column; }
  .category-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
}

/* ── Bento grid — mobile ── */
@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 160px;
    gap: 8px;
  }

  /* Reset all explicit placements — !important needed to override desktop nth-child rules */
  .bento-grid > * { grid-column: auto !important; grid-row: auto !important; }

  /* First card: full width, taller */
  .bento-grid > *:nth-child(1) { grid-column: span 2 !important; grid-row: span 2 !important; }

  /* Bigger title on the full-width hero card */
  .bento-grid > *:nth-child(1) .bento-card__title { font-size: var(--text-xl); }

  .bento-card__body { padding: 12px 14px 14px; }
  .bento-card__title { font-size: var(--text-sm); }
  .bento-card__tag { font-size: 10px; padding: 2px 7px; top: 10px; right: 10px; }
  .bento-card { border-radius: 10px; }
}
/*
 * Application stylesheet manifest.
 *
 * Legacy agency template (main.min.css, blog.css, animate.css) intentionally
 * NOT required — kept on disk for reference only.
 *






 */
