/* ============================================================
   FAKTURA TECH — main.css
   Источник: index.html + catalog-specific секции из catalog.html
   Все страницы тянут этот файл через <link rel="stylesheet">
   ============================================================ */

  :root {
    /* БРУТАЛИЗМ + HAZARD */
    --bg-0: #F5F5F5;
    --bg-1: #FFFFFF;
    --bg-2: #ECECEC;
    --bg-3: #1A1A1A;
    --line: #1A1A1A;
    --line-soft: #D0D0D0;
    --text: #1A1A1A;
    --text-dim: #2A2A2A;
    --text-faint: #6B6B6B;
    --text-on-dark: #F5F5F5;

    --accent: #FFE66B;
    --accent-bright: #FFF099;
    --accent-soft: rgba(255, 230, 107, 0.18);
    --accent-line: #FFE66B;

    --container: 1400px;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    background: var(--bg-0);
    color: var(--text);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }

  body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
      linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    z-index: 0;
  }

  .container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
  }

  /* ============ HAZARD PATTERN — диагональные полосы как разделитель ============ */
  .hazard-strip {
    height: 28px;
    background:
      repeating-linear-gradient(
        -45deg,
        var(--accent),
        var(--accent) 20px,
        var(--text) 20px,
        var(--text) 40px
      );
    border-top: 2px solid var(--line);
    border-bottom: 2px solid var(--line);
    position: relative;
    z-index: 5;
  }
  .hazard-strip.thin {
    height: 18px;
  }

  /* ============ SAFETY CORNERS — жёлтые уголки-маркеры ============ */
  .safety-corner {
    position: absolute;
    width: 28px;
    height: 28px;
    pointer-events: none;
    z-index: 6;
  }
  .safety-corner::before,
  .safety-corner::after {
    content: "";
    position: absolute;
    background: var(--accent);
  }
  .safety-corner.tl::before { top: 0; left: 0; width: 100%; height: 4px; }
  .safety-corner.tl::after  { top: 0; left: 0; width: 4px; height: 100%; }
  .safety-corner.tr::before { top: 0; right: 0; width: 100%; height: 4px; }
  .safety-corner.tr::after  { top: 0; right: 0; width: 4px; height: 100%; }
  .safety-corner.bl::before { bottom: 0; left: 0; width: 100%; height: 4px; }
  .safety-corner.bl::after  { bottom: 0; left: 0; width: 4px; height: 100%; }
  .safety-corner.br::before { bottom: 0; right: 0; width: 100%; height: 4px; }
  .safety-corner.br::after  { bottom: 0; right: 0; width: 4px; height: 100%; }

  /* ТИПОГРАФИКА */
  .display, h1, h2, h3 {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
  }
  .mono, .label, .tag {
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.02em;
  }

  .toned-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(1) contrast(1.15) brightness(0.95);
    transition: filter .4s ease, transform .6s ease;
  }
  .toned-img:hover { filter: grayscale(1) contrast(1.2) brightness(1); }

  .photo-frame {
    position: relative;
    overflow: hidden;
    background: var(--bg-3);
    border: 2px solid var(--line);
  }
  .photo-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(0,0,0,0.15) 100%);
    pointer-events: none;
    mix-blend-mode: multiply;
  }
  .photo-frame .photo-tag {
    position: absolute;
    bottom: 16px;
    left: 16px;
    z-index: 5;
    background: var(--accent);
    color: var(--text);
    padding: 8px 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
  }
  .photo-frame .corners {
    position: absolute;
    inset: 16px;
    pointer-events: none;
    z-index: 4;
  }
  .photo-frame .corners::before,
  .photo-frame .corners::after {
    content: "";
    position: absolute;
    width: 20px; height: 20px;
    border: 2px solid var(--accent);
  }
  .photo-frame .corners::before { top: 0; left: 0; border-right: none; border-bottom: none; }
  .photo-frame .corners::after { bottom: 0; right: 0; border-left: none; border-top: none; }

  .block-counter {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 6px 10px;
    background: var(--accent);
  }
  .block-counter::before {
    content: "▎";
    color: var(--text);
  }

  /* HEADER */
  header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-0);
    border-bottom: 2px solid var(--line);
  }
  .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
  }
  .logo {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.06em;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .logo-mark {
    width: 30px; height: 30px;
    display: block;
    flex-shrink: 0;
  }
  .nav-menu {
    display: flex;
    gap: 28px;
    list-style: none;
  }
  .nav-menu a {
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all .15s ease;
    padding: 4px 8px;
    position: relative;
  }
  .nav-menu a:hover { background: var(--accent); }
  .nav-menu a.highlight { background: var(--accent); }
  .nav-cta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    background: var(--bg-0);
    border: 2px solid var(--line);
    padding: 10px 18px;
    cursor: pointer;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all .15s ease;
    text-decoration: none;
    display: inline-block;
  }
  .nav-cta:hover { background: var(--accent); }
  .nav-cta::after { content: " →"; }

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid var(--line);
    cursor: pointer;
    transition: all .15s ease;
  }
  .btn-primary { background: var(--accent); color: var(--text); }
  .btn-primary:hover { background: var(--text); color: var(--accent); }
  .btn-ghost { background: var(--bg-0); color: var(--text); }
  .btn-ghost:hover { background: var(--accent); }
  .btn-arrow::after {
    content: "→";
    font-family: inherit;
    transition: transform .15s ease;
  }
  .btn:hover .btn-arrow::after,
  .btn-arrow:hover::after { transform: translateX(4px); }

  /* ============ БЛОК 1: HERO с edge jumbotron ============ */
  .hero {
    min-height: 92vh;
    padding: 60px 0 40px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
  }
  /* JUMBOTRON — декоративный edge-текст справа, СТРОГО за фотоблоком, не залезает на текст */
  .hero-jumbo {
    position: absolute;
    bottom: 8%;
    right: -100px;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: clamp(140px, 18vw, 260px);
    color: var(--accent);
    letter-spacing: -0.05em;
    pointer-events: none;
    line-height: 0.8;
    z-index: 0;
    white-space: nowrap;
    opacity: 0.18;
    user-select: none;
  }
  .hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 3;
  }
  .hero h1 {
    font-size: clamp(34px, 4.6vw, 66px);
    margin-bottom: 28px;
    letter-spacing: -0.02em;
    line-height: 0.98;
    text-wrap: balance;
  }
  .hero h1 .accent {
    color: var(--text);
    background: var(--accent);
    padding: 0 12px;
    display: inline-block;
    transform: translateY(-4px);
  }
  .hero-sub {
    font-size: 20px;
    color: var(--text);
    margin-bottom: 16px;
    max-width: 620px;
    font-weight: 500;
    line-height: 1.45;
  }
  .hero-lead {
    font-size: 15px;
    color: var(--text-dim);
    max-width: 540px;
    margin-bottom: 40px;
    line-height: 1.6;
  }
  .hero-ctas {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    position: relative;
    z-index: 3;
  }
  .hero-ctas .btn { margin-right: -2px; }
  .hero-meta {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 2px solid var(--line);
    background: var(--bg-1);
    position: relative;
    z-index: 3;
  }
  .hero-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 20px;
    border-right: 2px solid var(--line);
    background: var(--bg-1);
  }
  .hero-meta-item:last-child { border-right: none; }
  .hero-meta-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--text-faint);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
  }
  .hero-meta-value {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 22px;
    color: var(--text);
    font-weight: 700;
  }
  .hero-visual {
    position: relative;
    aspect-ratio: 1;
    z-index: 3;
  }

  .section {
    padding: 120px 0;
    position: relative;
  }
  .section-header {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    margin-bottom: 70px;
    align-items: end;
  }
  .section-header h2 {
    font-size: clamp(36px, 5vw, 72px);
    letter-spacing: -0.025em;
  }
  .section-header h2 mark {
    background: var(--accent);
    color: var(--text);
    padding: 0 8px;
  }
  .section-header .lead {
    color: var(--text-dim);
    font-size: 17px;
    line-height: 1.55;
    font-weight: 500;
  }

  /* ============ БЛОК 2: ФЛАГМАН ============ */
  .flagship {
    padding: 130px 0;
    background: var(--bg-3);
    color: var(--text-on-dark);
    position: relative;
    overflow: hidden;
  }
  /* Edge jumbo для флагмана */
  .flagship-jumbo {
    position: absolute;
    top: 30px;
    right: -80px;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: clamp(140px, 22vw, 320px);
    color: var(--accent);
    opacity: 0.07;
    letter-spacing: -0.05em;
    pointer-events: none;
    line-height: 0.8;
    white-space: nowrap;
    z-index: 0;
  }
  .flagship .container { position: relative; z-index: 2; }
  .flagship .block-counter {
    background: var(--accent);
    color: var(--text);
  }
  .flagship-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text);
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: inline-block;
    padding: 8px 14px;
    background: var(--accent);
  }
  .flagship-title {
    font-size: clamp(48px, 8vw, 110px);
    margin-bottom: 30px;
    line-height: 0.92;
    color: var(--text-on-dark);
  }
  .flagship-title .line2 {
    display: block;
    color: var(--text);
    background: var(--accent);
    padding: 0 16px;
    margin-top: 6px;
    width: max-content;
    max-width: 100%;
  }
  .flagship-subtitle {
    color: var(--text-on-dark);
    font-size: 19px;
    margin-bottom: 60px;
    max-width: 620px;
    font-weight: 500;
    opacity: 0.85;
  }

  .flagship-hero {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 0;
    border: 2px solid var(--accent);
    background: var(--bg-1);
    color: var(--text);
    overflow: hidden;
    position: relative;
  }
  .flagship-content {
    padding: 56px 48px;
    position: relative;
    z-index: 2;
  }

  .flagship-badges {
    display: flex;
    gap: 0;
    margin-bottom: 32px;
    flex-wrap: wrap;
  }
  .badge-big {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.08em;
    padding: 12px 18px;
    text-transform: uppercase;
    border: 2px solid var(--line);
    margin-right: -2px;
  }
  .badge-big.b1 { background: var(--accent); color: var(--text); }
  .badge-big.b2 { background: var(--text); color: var(--bg-1); }
  .badge-big.b3 { background: var(--bg-1); color: var(--text); }

  .flagship-name {
    font-size: 42px;
    margin-bottom: 18px;
    line-height: 1.05;
  }
  .flagship-desc {
    color: var(--text-dim);
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.65;
  }
  .flagship-features {
    list-style: none;
    margin-bottom: 36px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 24px;
  }
  .flagship-features li {
    display: flex;
    gap: 12px;
    font-size: 14px;
    color: var(--text);
    align-items: flex-start;
    font-weight: 500;
  }
  .flagship-features li::before {
    content: "▸";
    color: var(--text);
    background: var(--accent);
    padding: 0 4px;
    font-size: 11px;
    line-height: 1.6;
    flex-shrink: 0;
  }
  .flagship-ctas {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
  }
  .flagship-ctas .btn { margin-right: -2px; }

  .flagship-visual {
    position: relative;
    background: var(--bg-0);
    min-height: 580px;
    overflow: hidden;
    border-left: 2px solid var(--line);
  }
  .flagship-visual .toned-img {
    filter: none;
    object-fit: contain;
    padding: 20px;
  }
  .flagship-hit-sticker {
    position: absolute;
    top: 24px;
    left: 24px;
    background: var(--text);
    color: var(--accent);
    padding: 12px 18px;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    z-index: 6;
    transform: rotate(-3deg);
    border: 2px solid var(--text);
    box-shadow: 4px 4px 0 var(--accent);
  }
  .flagship-price-tag {
    position: absolute;
    bottom: 24px;
    left: 24px;
    z-index: 6;
    background: var(--bg-1);
    border: 2px solid var(--text);
    padding: 14px 18px;
  }
  .flagship-price-tag .t1 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--text);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 4px;
  }
  .flagship-price-tag .t2 {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--text);
  }
  .flagship-price-tag .t2 .old {
    color: var(--text-faint);
    text-decoration: line-through;
    font-size: 14px;
    margin-right: 8px;
    font-weight: 500;
  }

  .vs-mnsb {
    margin-top: 40px;
    display: flex;
    align-items: stretch;
    gap: 0;
    background: var(--bg-1);
    border: 2px solid var(--accent);
  }
  .vs-mnsb-label {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 22px;
    color: var(--text);
    background: var(--accent);
    padding: 22px 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
  }
  .vs-mnsb-text {
    color: var(--text);
    font-size: 14px;
    flex: 1;
    padding: 20px 24px;
    line-height: 1.6;
    font-weight: 500;
    align-self: center;
  }
  .vs-mnsb-text strong { background: var(--accent); padding: 0 4px; }
  .vs-mnsb-text a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 2px solid var(--accent);
    font-weight: 700;
  }

  /* ============ БЛОК 3: КАТАЛОГ ============ */
  .catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 2px solid var(--line);
    background: var(--line);
    position: relative;
  }
  .cat-card {
    background: var(--bg-1);
    padding: 36px 32px;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    text-decoration: none;
    color: inherit;
    transition: background .15s ease;
    overflow: hidden;
    border: 1px solid var(--line);
  }
  .cat-card:hover { background: var(--accent); }
  .cat-card.featured {
    grid-column: span 2;
    grid-row: span 2;
    background: var(--accent);
    padding: 48px 40px;
    min-height: 480px;
  }
  .cat-card.featured:hover { background: var(--accent-bright); }
  .cat-card.featured .cat-bg-img {
    display: none;   /* убрали засвеченный полупрозрачный фон — чистая жёлтая карточка */
  }
  .cat-card.featured .cat-bg-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.2) brightness(0.85);
  }
  .cat-card.featured > div:not(.cat-photo),
  .cat-card.featured > .cat-footer { position: relative; z-index: 2; }

  .cat-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  .cat-title {
    font-family: 'Chakra Petch', sans-serif;
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 12px;
    color: var(--text);
    margin-top: 6px;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  .cat-card.featured .cat-title { font-size: clamp(28px, 5vw, 48px); margin-bottom: 18px; }
  .cat-desc {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 480px;
    font-weight: 500;
  }
  .cat-card.featured .cat-desc { font-size: 16px; }
  .cat-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 2px solid var(--line);
  }
  .cat-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  .cat-arrow {
    color: var(--text);
    font-size: 22px;
    font-weight: 700;
    transition: transform .15s ease;
  }
  .cat-card:hover .cat-arrow { transform: translateX(6px); }
  .featured-ribbon {
    position: absolute;
    top: 24px;
    right: 24px;
    background: var(--text);
    color: var(--accent);
    padding: 8px 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    z-index: 3;
  }

  /* аппарат на заднике карточки: чистая фото-панель справа (без выреза), текст слева.
     фон панели совпадает со студийным фоном кадра -> шва нет, рваных краёв нет */
  .cat-card .cat-photo {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 42%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #EFEDE9;            /* студийный кремовый — как фон фото */
    border-left: 2px solid var(--line);
    z-index: 0;
    pointer-events: none;
  }
  .cat-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }
  /* линейная иконка (расходка / нестандарт) — мельче, по центру панели */
  .cat-photo.is-icon img { width: auto; height: 44%; opacity: .82; }
  /* флагман: серый студийный фон под бело-серый маркиратор, панель крупнее */
  .cat-card.featured .cat-photo { width: 40%; background: #E5E4E5; }
  /* текст держим в левой колонке, чтобы не залезал на панель */
  .cat-card .cat-num,
  .cat-card .cat-title,
  .cat-card .cat-desc { max-width: 54%; }
  .cat-card.featured .cat-num,
  .cat-card.featured .cat-title,
  .cat-card.featured .cat-desc { max-width: 56%; }
  /* в карточках не рвём слова по слогам — переносим по словам */
  .cat-card .cat-title { word-break: normal; overflow-wrap: break-word; hyphens: manual; }
  .cat-card:not(.featured) .cat-title { font-size: clamp(19px, 2.1vw, 23px); }
  .cat-card .cat-footer { width: 54%; }
  .cat-card.featured .cat-footer { width: 56%; }
  .cat-card > *:not(.cat-photo) { position: relative; z-index: 1; }

  /* ============ БЛОК 4: КОНФИГУРАТОР ============ */
  .configurator {
    padding: 120px 0;
    background: var(--bg-1);
    position: relative;
  }
  .config-wrap {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
  }
  .config-box {
    background: var(--bg-0);
    border: 2px solid var(--line);
    padding: 40px;
    box-shadow: 8px 8px 0 var(--line);
    position: relative;
  }
  .config-step { margin-bottom: 28px; }
  .config-step-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: flex;
    gap: 10px;
  }
  .config-step-label::before {
    content: counter(step-counter, decimal-leading-zero);
    counter-increment: step-counter;
    background: var(--accent);
    padding: 0 6px;
  }
  .config-box { counter-reset: step-counter; }
  .config-options {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
  }
  .config-opt {
    padding: 10px 16px;
    border: 2px solid var(--line);
    background: var(--bg-1);
    color: var(--text);
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s ease;
    margin-right: -2px;
    margin-bottom: -2px;
  }
  .config-opt:hover { background: var(--accent); }
  .config-opt.active { background: var(--text); color: var(--accent); }
  .config-price {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 2px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .config-price-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--text);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  /* ============ БЛОК 5: УСЛУГИ ============ */
  .services {
    padding: 130px 0;
    position: relative;
  }
  .services-banner {
    position: relative;
    height: 280px;
    margin-bottom: 60px;
    overflow: hidden;
    border: 2px solid var(--line);
    background: var(--bg-3);
  }
  .services-banner img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.15) brightness(0.7);
  }
  .services-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(245,245,245,0.95) 0%, rgba(245,245,245,0.5) 50%, transparent 100%);
  }
  .services-banner .banner-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 0 60px;
    z-index: 2;
  }
  .services-banner .banner-text-inner { max-width: 480px; }
  .services-banner .banner-text h3 {
    font-size: 36px;
    color: var(--text);
    margin-bottom: 8px;
  }
  .services-banner .banner-text p {
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
  }
  .services-banner .banner-tag {
    position: absolute;
    top: 20px; right: 20px;
    z-index: 3;
    background: var(--accent);
    color: var(--text);
    padding: 8px 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: 2px solid var(--text);
  }

  .services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 2px solid var(--line);
  }
  .svc-card {
    background: var(--bg-1);
    padding: 32px 28px;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: background .15s ease;
    cursor: pointer;
    border: 1px solid var(--line);
    position: relative;
  }
  .svc-card:hover { background: var(--accent); }
  .svc-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text);
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
    background: var(--accent);
    display: inline-block;
    padding: 4px 8px;
    width: max-content;
  }
  .svc-card:hover .svc-num {
    background: var(--text);
    color: var(--accent);
  }
  .svc-title {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 12px;
  }
  .svc-desc {
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.55;
    font-weight: 500;
  }

  .svc-cta-row {
    margin-top: 60px;
    padding: 0;
    border: 2px solid var(--line);
    background: var(--accent);
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 0;
    position: relative;
  }
  .svc-cta-text {
    flex: 1;
    padding: 36px 40px;
  }
  .svc-cta-text h3 {
    font-size: 30px;
    margin-bottom: 8px;
    line-height: 1.05;
  }
  .svc-cta-text p {
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
  }
  .svc-cta-buttons {
    display: flex;
    gap: 0;
    align-items: stretch;
  }
  .svc-cta-buttons .btn {
    border-top: none;
    border-bottom: none;
    margin-right: 0;
    border-left: 2px solid var(--line);
    border-right: none;
  }

  /* ============ БЛОК 6: СЕРВИС ============ */
  .servicing {
    padding: 120px 0;
    background: var(--bg-1);
    position: relative;
  }
  .servicing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
  }
  .servicing-list {
    list-style: none;
    border-top: 2px solid var(--line);
    border-bottom: 2px solid var(--line);
  }
  .servicing-list li {
    padding: 20px 16px;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: 50px 1fr auto;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: all .15s ease;
  }
  .servicing-list li:last-child { border-bottom: none; }
  .servicing-list li:hover {
    background: var(--accent);
    padding-left: 24px;
  }
  .servicing-list .s-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--text);
    font-weight: 700;
    letter-spacing: 0.1em;
  }
  .servicing-list .s-name {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: var(--text);
  }
  .servicing-list .s-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--text);
    background: var(--accent);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 5px 9px;
    border: 2px solid var(--text);
  }
  .servicing-list li:hover .s-tag {
    background: var(--text);
    color: var(--accent);
  }

  .btmark-box {
    background: var(--bg-3);
    color: var(--text-on-dark);
    border: 2px solid var(--line);
    padding: 36px;
    position: relative;
    overflow: hidden;
    box-shadow: 8px 8px 0 var(--accent);
  }
  .btmark-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text);
    background: var(--accent);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: inline-block;
    padding: 6px 10px;
  }
  .btmark-title {
    font-size: 28px;
    margin-bottom: 14px;
    line-height: 1.1;
    color: var(--text-on-dark);
  }
  .btmark-title mark {
    background: var(--accent);
    color: var(--text);
    padding: 0 6px;
  }
  .btmark-desc {
    color: var(--text-on-dark);
    opacity: 0.85;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 22px;
    font-weight: 500;
  }
  .btmark-offers {
    list-style: none;
    margin-bottom: 24px;
  }
  .btmark-offers li {
    padding: 10px 0;
    display: flex;
    gap: 14px;
    font-size: 14px;
    align-items: center;
    color: var(--text-on-dark);
    border-bottom: 1px solid rgba(245,245,245,0.15);
    font-weight: 500;
  }
  .btmark-offers li:last-child { border-bottom: none; }
  .btmark-offers li::before {
    content: "+";
    color: var(--text);
    background: var(--accent);
    padding: 0 7px;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.4;
  }
  .btmark-box .btn-primary { border-color: var(--accent); }
  .btmark-box .btn-primary:hover {
    background: var(--bg-1);
    color: var(--text);
  }

  /* ============ БЛОК 7: ЗАДАЧИ ============ */
  .tasks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 2px solid var(--line);
  }
  .task-card {
    background: var(--bg-1);
    padding: 0;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: background .15s ease;
    cursor: pointer;
    border: 1px solid var(--line);
    color: inherit;
    text-decoration: none;
  }
  .task-card:hover { background: var(--accent); }
  .task-card .task-img {
    height: 150px;
    overflow: hidden;
    position: relative;
    background: var(--bg-3);
    border-bottom: 2px solid var(--line);
  }
  .task-card .task-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.2) brightness(0.85);
    transition: transform .4s ease;
  }
  .task-card:hover .task-img img { transform: scale(1.05); }
  .task-card .task-body {
    padding: 22px 26px 60px;
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  .task-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text);
    background: var(--accent);
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 10px;
    width: max-content;
    padding: 3px 7px;
  }
  .task-card:hover .task-num {
    background: var(--text);
    color: var(--accent);
  }
  .task-name {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 6px;
  }
  .task-sub {
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 500;
  }
  .task-card::after {
    content: "→";
    position: absolute;
    bottom: 22px;
    right: 26px;
    color: var(--text);
    font-size: 22px;
    font-weight: 700;
    transition: transform .15s ease;
  }
  .task-card:hover::after { transform: translateX(6px); }

  /* ============ БЛОК 8: ПРОЦЕСС ============ */
  .process { padding: 130px 0; }
  .process-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    position: relative;
    border: 2px solid var(--line);
  }
  .proc-step {
    padding: 28px 22px;
    position: relative;
    background: var(--bg-1);
    border-right: 2px solid var(--line);
    min-height: 160px;
  }
  .proc-step:last-child { border-right: none; }
  .proc-step.active { background: var(--accent); }
  .proc-dot {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 14px; height: 14px;
    background: var(--bg-1);
    border: 2px solid var(--line);
  }
  .proc-step.active .proc-dot { background: var(--text); }
  .proc-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text);
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
  }
  .proc-title {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text);
  }

  /* ============ БЛОК 9: ПОЧЕМУ ============ */
  .why {
    padding: 120px 0;
    background: var(--bg-3);
    color: var(--text-on-dark);
    position: relative;
  }
  .why .section-header h2 { color: var(--text-on-dark); }
  .why .section-header h2 mark { background: var(--accent); color: var(--text); }
  .why .section-header .lead { color: var(--text-on-dark); opacity: 0.85; }
  .why .block-counter { background: var(--accent); color: var(--text); }

  .why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 2px solid var(--accent);
  }
  .why-item {
    padding: 32px 30px;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    background: var(--bg-3);
    transition: background .15s ease;
  }
  .why-item:nth-child(3n) { border-right: none; }
  .why-item:nth-last-child(-n+3) { border-bottom: none; }
  .why-item:hover { background: rgba(255, 230, 107, 0.08); }
  .why-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--text);
    background: var(--accent);
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 16px;
    display: inline-block;
    padding: 4px 8px;
  }
  .why-title {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.15;
    color: var(--text-on-dark);
  }
  .why-text {
    color: var(--text-on-dark);
    opacity: 0.85;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 500;
  }

  /* ============ БЛОК 10: О КОМПАНИИ ============ */
  .about { padding: 130px 0; }
  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
  }
  .about-visual {
    position: relative;
    aspect-ratio: 3/4;
  }
  .about-text h3 {
    font-size: 44px;
    margin-bottom: 24px;
    line-height: 1.05;
  }
  .about-text p {
    color: var(--text-dim);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 18px;
    font-weight: 500;
  }

  .partners { margin-top: 60px; }
  .partners-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text);
    background: var(--accent);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 24px;
    display: inline-block;
    padding: 6px 10px;
  }
  .partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 2px solid var(--line);
  }
  .partner-cell {
    background: var(--bg-1);
    aspect-ratio: 2/1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    transition: background .15s ease;
    border: 1px solid var(--line);
  }
  .partner-cell:hover { background: var(--accent); }

  /* ============ БЛОК 11: КОНТАКТЫ ============ */
  .contact {
    padding: 130px 0;
    background: var(--bg-1);
    position: relative;
  }
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }
  .contact-form {
    background: var(--bg-0);
    border: 2px solid var(--line);
    padding: 40px;
    box-shadow: 8px 8px 0 var(--accent);
    position: relative;
  }
  .form-row { margin-bottom: 22px; }
  .form-row label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 8px;
  }
  .form-row input, .form-row textarea {
    width: 100%;
    background: var(--bg-1);
    border: 2px solid var(--line);
    padding: 12px 14px;
    color: var(--text);
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 500;
    transition: background .15s ease;
  }
  .form-row input:focus, .form-row textarea:focus {
    outline: none;
    background: var(--accent);
  }
  .form-row input::placeholder, .form-row textarea::placeholder {
    color: var(--text-faint);
  }
  .form-row textarea { min-height: 90px; resize: vertical; }
  .form-grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .contact-info .info-block {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 2px solid var(--line);
  }
  .contact-info .info-block:last-child { border-bottom: none; }
  .info-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 10px;
    background: var(--accent);
    display: inline-block;
    padding: 4px 8px;
  }
  .info-value {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
  }
  .messengers {
    display: flex;
    gap: 0;
    margin-top: 16px;
    flex-wrap: wrap;
  }
  .msg-btn {
    padding: 10px 16px;
    border: 2px solid var(--line);
    color: var(--text);
    background: var(--bg-1);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: background .15s ease;
    margin-right: -2px;
    text-transform: uppercase;
  }
  .msg-btn:hover { background: var(--accent); }

  .map-frame {
    margin-top: 20px;
    height: 200px;
    overflow: hidden;
    border: 2px solid var(--line);
    position: relative;
  }
  .map-frame img,
  .map-frame iframe {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    border: 0;
  }
  .map-frame::after { pointer-events: none; }
  .map-frame::after {
    content: "СЕЛЯТИНО · ПРОМЫШЛЕННАЯ 11/1";
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--accent);
    color: var(--text);
    padding: 5px 9px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    border: 2px solid var(--text);
  }

  /* FOOTER */
  footer {
    background: var(--bg-3);
    color: var(--text-on-dark);
    padding: 60px 0 30px;
  }
  .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(245,245,245,0.15);
  }
  .footer-col h5 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text);
    background: var(--accent);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: inline-block;
    padding: 5px 9px;
  }
  .footer-col a {
    display: block;
    color: var(--text-on-dark);
    opacity: 0.8;
    text-decoration: none;
    font-size: 14px;
    padding: 6px 0;
    font-weight: 500;
    transition: opacity .15s ease;
  }
  .footer-col a:hover { opacity: 1; }
  .footer-about p {
    color: var(--text-on-dark);
    opacity: 0.85;
    font-size: 14px;
    line-height: 1.6;
    margin-top: 20px;
    max-width: 380px;
    font-weight: 500;
  }
  .footer-about .logo { color: var(--text-on-dark); }
  .footer-bottom {
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text-on-dark);
    opacity: 0.7;
    font-weight: 500;
    letter-spacing: 0.08em;
  }

  .mockup-strip {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--accent);
    color: var(--text);
    padding: 12px 18px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 1000;
    cursor: pointer;
    border: 2px solid var(--text);
    box-shadow: 4px 4px 0 var(--text);
  }
  .mockup-strip:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--text);
  }

  body.show-annotations .block-annotation { display: block !important; }
  .block-annotation {
    display: none;
    position: absolute;
    top: 20px; left: 20px;
    background: var(--accent);
    color: var(--text);
    padding: 6px 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    z-index: 50;
    border: 2px solid var(--text);
  }

  /* RESPONSIVE */
  @media (max-width: 1024px) {
    .hero-inner, .flagship-hero, .config-wrap, .servicing-grid, .about-grid, .contact-grid {
      grid-template-columns: 1fr;
    }
    .catalog-grid, .services-grid, .tasks-grid, .why-grid, .footer-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    .why-item:nth-child(3n) { border-right: 2px solid var(--accent); }
    .why-item:nth-child(2n) { border-right: none; }
    .why-item:nth-last-child(-n+3) { border-bottom: 2px solid var(--accent); }
    .why-item:nth-last-child(-n+2) { border-bottom: none; }
    .cat-card.featured { grid-column: span 2; grid-row: auto; }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .proc-step { border-right: 2px solid var(--line); border-bottom: 2px solid var(--line); }
    .proc-step:nth-child(2n) { border-right: none; }
    .proc-step:nth-last-child(-n+2) { border-bottom: none; }
    .partners-grid { grid-template-columns: repeat(3, 1fr); }
    .section-header { grid-template-columns: 1fr; gap: 30px; margin-bottom: 50px; }
    .services-banner .banner-text { padding: 0 30px; }
    .hero-meta { grid-template-columns: repeat(2, 1fr); }
    .hero-meta-item { border-right: 2px solid var(--line); }
    .hero-meta-item:nth-child(2n) { border-right: none; }
    .hero-meta-item:nth-last-child(-n+2) { border-bottom: 2px solid var(--line); }
    .hero-jumbo { font-size: 160px; bottom: 5%; right: -60px; opacity: 0.14; }
  }
  @media (max-width: 640px) {
    .container { padding: 0 20px; }
    .catalog-grid, .services-grid, .tasks-grid, .why-grid, .footer-grid {
      grid-template-columns: 1fr;
    }
    /* featured не должен требовать вторую колонку в однополосной сетке */
    .cat-card.featured { grid-column: auto; grid-row: auto; }
    /* карточки категорий: фото-полоса сверху, текст во всю ширину */
    .cat-card { padding-top: 190px; min-height: 0; }
    .cat-card .cat-photo,
    .cat-card.featured .cat-photo {
      top: 0; left: 0; right: 0; bottom: auto;
      width: 100%; height: 168px;
      border-left: none;
      border-bottom: 2px solid var(--line);
    }
    .cat-card .cat-num,
    .cat-card .cat-title,
    .cat-card .cat-desc,
    .cat-card.featured .cat-num,
    .cat-card.featured .cat-title,
    .cat-card.featured .cat-desc { max-width: 100%; }
    .cat-card .cat-footer,
    .cat-card.featured .cat-footer { width: 100%; }
    .cat-card.featured { padding-top: 210px; }
    .hero { min-height: auto; padding-top: 60px; }
    .hero-jumbo { font-size: 100px; bottom: 4%; right: -30px; opacity: 0.12; }
    .flagship-jumbo { font-size: 140px; }
    .flagship-features { grid-template-columns: 1fr; }
    .form-grid2 { grid-template-columns: 1fr; }
    .svc-cta-row { flex-direction: column; align-items: stretch; }
    .svc-cta-buttons { flex-direction: column; }
    .svc-cta-buttons .btn { border: 2px solid var(--line); border-top: none; }
    .services-banner { height: 220px; }
    .services-banner .banner-text h3 { font-size: 24px; }
    .hero-meta { grid-template-columns: 1fr; }
    .hero-meta-item { border-right: none; border-bottom: 2px solid var(--line); }
    .hero-meta-item:last-child { border-bottom: none; }
    .vs-mnsb { flex-direction: column; align-items: stretch; }
    .safety-corner { display: none; } /* убираем уголки на мобиле, чтобы не дублировать */
  }

  .reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
  .reveal.in { opacity: 1; transform: translateY(0); }


/* ================================================================
   catalog-specific: HERO КАТАЛОГА + ХЛЕБНЫЕ КРОШКИ + СТАТИСТИКА
   ================================================================ */

  /* ============ КАТАЛОГ HERO ============ */
  .cat-hero {
    padding: 70px 0 50px;
    position: relative;
    border-bottom: 2px solid var(--line);
    overflow: hidden;
  }
  .cat-hero-jumbo {
    position: absolute;
    bottom: -30px;
    right: -80px;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: clamp(120px, 16vw, 240px);
    color: var(--accent);
    letter-spacing: -0.05em;
    pointer-events: none;
    line-height: 0.8;
    z-index: 0;
    white-space: nowrap;
    opacity: 0.18;
    user-select: none;
  }
  .cat-hero-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    align-items: end;
    position: relative;
    z-index: 2;
  }
  .breadcrumbs {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .breadcrumbs a {
    color: var(--text-faint);
    text-decoration: none;
  }
  .breadcrumbs a:hover { color: var(--text); }
  .breadcrumbs .crumb-current { color: var(--text); background: var(--accent); padding: 2px 8px; }
  .breadcrumbs .sep { color: var(--text-faint); }

  .cat-hero h1 {
    font-size: clamp(48px, 8vw, 100px);
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    line-height: 1.08;
  }
  .cat-hero h1 mark {
    background: var(--accent);
    color: var(--text);
    padding: 2px 12px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
  }
  .cat-hero-lead {
    font-size: 17px;
    color: var(--text-dim);
    line-height: 1.6;
    max-width: 580px;
    font-weight: 500;
  }

  .cat-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border: 2px solid var(--line);
    background: var(--bg-1);
  }
  .cat-stat {
    padding: 22px 24px;
    border-right: 2px solid var(--line);
    border-bottom: 2px solid var(--line);
  }
  .cat-stat:nth-child(2n) { border-right: none; }
  .cat-stat:nth-last-child(-n+2) { border-bottom: none; }
  .cat-stat-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--text-faint);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: block;
  }
  .cat-stat-value {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 28px;
    color: var(--text);
    font-weight: 700;
    line-height: 1;
  }
  .cat-stat-value .accent-bg { background: var(--accent); padding: 0 6px; }

  /* ============ FILTER BAR ============ */
  .filter-bar {
    background: var(--bg-1);
    border-bottom: 2px solid var(--line);
    padding: 0;
    position: sticky;
    top: 79px;
    z-index: 50;
  }
  .filter-row {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 0;
  }
  .filter-tab {
    flex: 0 0 auto;
    padding: 18px 22px;
    border-right: 2px solid var(--line);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
    cursor: pointer;
    background: var(--bg-1);
    transition: all .15s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    border: none;
    border-right: 2px solid var(--line);
  }
  .filter-tab:hover { background: var(--accent); }
  .filter-tab.active { background: var(--text); color: var(--accent); }
  .filter-tab .count {
    font-size: 10px;
    background: var(--accent);
    color: var(--text);
    padding: 2px 6px;
  }
  .filter-tab.active .count { background: var(--accent); color: var(--text); }

  .filter-search {
    flex: 1 1 320px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 10px;
    background: var(--bg-0);
    border-right: 2px solid var(--line);
  }
  .filter-search input {
    border: none;
    background: transparent;
    padding: 18px 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--text);
    width: 100%;
    outline: none;
  }
  .filter-search input::placeholder { color: var(--text-faint); }
  .filter-search-icon {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: var(--text-faint);
  }
  .filter-sort {
    display: flex;
    align-items: center;
    padding: 0 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    gap: 10px;
    background: var(--bg-0);
  }
  .filter-sort select {
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    cursor: pointer;
    text-transform: inherit;
    padding: 18px 0;
    outline: none;
  }


/* ================================================================
   catalog-specific: СЕКЦИИ КАТЕГОРИЙ
   ================================================================ */

  /* ============ КАТЕГОРИЯ-ЗАГОЛОВОК ============ */
  .cat-section {
    padding: 100px 0 60px;
    position: relative;
    border-bottom: 2px solid var(--line);
  }
  .cat-section.alt { background: var(--bg-1); }
  .cat-section-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    align-items: end;
    border-bottom: 2px solid var(--line);
    padding-bottom: 40px;
  }
  .cat-section-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 14px;
    display: inline-block;
    padding: 6px 12px;
    background: var(--accent);
    color: var(--text);
  }
  .cat-section-head h2 {
    font-size: clamp(34px, 5vw, 60px);
    line-height: 1.1;
  }
  .cat-section-head h2 mark {
    background: var(--accent);
    color: var(--text);
    padding: 2px 8px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
  }
  .cat-section-meta {
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.6;
    font-weight: 500;
  }
  .cat-section-meta strong { background: var(--accent); padding: 0 4px; }

  /* ============ PRODUCT GRID + CARD ============ */
  .product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 2px solid var(--line);
    background: var(--line);
  }
  .product-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .product-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

  .product-card {
    background: var(--bg-1);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: background .15s ease;
    position: relative;
    overflow: hidden;
  }
  .product-card:hover { background: var(--bg-0); }
  .product-card:hover .product-photo .toned-img { transform: scale(1.04); }

  .product-photo {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bg-3);
    border-bottom: 2px solid var(--line);
  }
  .product-photo .toned-img { filter: grayscale(1) contrast(1.18) brightness(0.92); }
  .product-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.25) 100%);
    pointer-events: none;
  }

  .product-badges {
    position: absolute;
    top: 12px; left: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 4;
    align-items: flex-start;
  }
  .product-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 9px;
    border: 2px solid var(--text);
    background: var(--bg-1);
    color: var(--text);
  }
  .product-badge.hit { background: var(--accent); }
  .product-badge.flagman { background: var(--text); color: var(--accent); }
  .product-badge.action { background: var(--accent); transform: rotate(-2deg); }
  .product-badge.archive { background: var(--bg-2); color: var(--text-faint); border-color: var(--text-faint); }
  .product-badge.discontinued { background: var(--bg-1); color: var(--text); border: 2px solid var(--text); }
  .product-badge.stock { background: var(--bg-1); color: var(--text); }
  .product-badge.preorder { background: var(--bg-1); color: var(--text); }
  .product-badge.demo { background: var(--accent); color: var(--text); }

  .product-photo-tag {
    position: absolute;
    bottom: 12px; right: 12px;
    z-index: 4;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 5px 9px;
    background: var(--text);
    color: var(--accent);
    border: 2px solid var(--text);
  }

  .product-body {
    padding: 24px 24px 0;
    display: flex;
    flex-direction: column;
    flex: 1;
  }
  .product-cat {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 8px;
  }
  .product-title {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--text);
    line-height: 1.05;
    margin-bottom: 6px;
  }
  .product-subtitle {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 16px;
    line-height: 1.45;
    font-weight: 500;
  }
  .product-desc {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.55;
    margin-bottom: 18px;
    font-weight: 500;
  }

  .product-specs {
    list-style: none;
    margin-bottom: 18px;
    border-top: 1px dashed var(--line-soft);
    padding-top: 14px;
  }
  .product-specs li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    border-bottom: 1px dashed var(--line-soft);
  }
  .product-specs li:last-child { border-bottom: none; }
  .product-specs .k {
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
  }
  .product-specs .v {
    color: var(--text);
    font-weight: 700;
    text-align: right;
  }

  .product-foot {
    margin-top: auto;
    border-top: 2px solid var(--line);
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: stretch;
  }
  .product-price {
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .product-price-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    color: var(--text-faint);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 2px;
  }
  .product-price-value {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--text);
  }
  .product-price-value.muted { color: var(--text-faint); font-size: 14px; }
  .product-price-value .old {
    color: var(--text-faint);
    text-decoration: line-through;
    font-size: 12px;
    margin-right: 8px;
    font-weight: 500;
  }
  .product-action {
    border-left: 2px solid var(--line);
    background: var(--bg-1);
    padding: 18px 22px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all .15s ease;
    text-decoration: none;
  }
  .product-card:hover .product-action { background: var(--accent); }
  .product-action::after {
    content: "→";
    transition: transform .15s ease;
  }
  .product-card:hover .product-action::after { transform: translateX(4px); }

  /* WIDE / ARCHIVE-LIST для устаревших моделей */
  .product-card.archive-row {
    flex-direction: row;
    grid-column: span 3;
    background: var(--bg-2);
  }
  .product-card.archive-row .product-photo {
    width: 220px;
    flex-shrink: 0;
    aspect-ratio: auto;
    border-bottom: none;
    border-right: 2px solid var(--line);
  }
  .product-card.archive-row .product-photo .toned-img {
    filter: grayscale(1) contrast(0.9) brightness(0.7);
    opacity: 0.6;
  }
  .product-card.archive-row .product-body {
    padding: 22px 26px;
    flex-direction: row;
    align-items: center;
    flex: 1;
    gap: 30px;
  }
  .product-card.archive-row .product-body > div { flex: 1; }
  .product-card.archive-row .product-title { font-size: 20px; margin-bottom: 4px; }
  .product-card.archive-row .product-foot {
    border-top: none;
    border-left: 2px solid var(--line);
    grid-template-columns: auto;
  }
  .product-card.archive-row .product-action {
    border-left: 2px solid var(--line);
    background: var(--bg-2);
  }

  /* ============ VS-БЛОК ============ */
  .vs-block {
    margin-top: 40px;
    display: flex;
    align-items: stretch;
    gap: 0;
    background: var(--bg-1);
    border: 2px solid var(--accent);
  }
  .vs-block-label {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 22px;
    color: var(--text);
    background: var(--accent);
    padding: 22px 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
  }
  .vs-block-text {
    color: var(--text);
    font-size: 14px;
    flex: 1;
    padding: 20px 24px;
    line-height: 1.6;
    font-weight: 500;
    align-self: center;
  }
  .vs-block-text strong { background: var(--accent); padding: 0 4px; }
  .vs-block-text a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 2px solid var(--accent);
    font-weight: 700;
  }

  /* ============ CTA-БЛОК / ПОДБОР ============ */
  .cta-section {
    padding: 100px 0;
    background: var(--bg-3);
    color: var(--text-on-dark);
    position: relative;
    overflow: hidden;
  }
  .cta-jumbo {
    position: absolute;
    bottom: -40px;
    left: -80px;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: clamp(140px, 18vw, 260px);
    color: var(--accent);
    opacity: 0.07;
    letter-spacing: -0.05em;
    pointer-events: none;
    line-height: 0.8;
    white-space: nowrap;
    z-index: 0;
  }
  .cta-section .container { position: relative; z-index: 2; }
  .cta-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    align-items: center;
  }
  .cta-grid h2 {
    font-size: clamp(36px, 5vw, 64px);
    color: var(--text-on-dark);
    margin-bottom: 24px;
    line-height: 1.08;
  }
  .cta-grid h2 mark {
    background: var(--accent);
    color: var(--text);
    padding: 2px 12px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
  }
  .cta-grid p {
    color: var(--text-on-dark);
    opacity: 0.85;
    font-size: 16px;
    line-height: 1.6;
    max-width: 580px;
    margin-bottom: 32px;
    font-weight: 500;
  }
  .cta-buttons {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
  }
  .cta-buttons .btn { margin-right: -2px; }
  .cta-buttons .btn-ghost {
    background: transparent;
    color: var(--text-on-dark);
    border-color: var(--accent);
  }
  .cta-buttons .btn-ghost:hover {
    background: var(--accent);
    color: var(--text);
  }

  .cta-side {
    background: var(--bg-1);
    color: var(--text);
    border: 2px solid var(--accent);
    padding: 36px 32px;
    box-shadow: 8px 8px 0 var(--accent);
  }
  .cta-side h4 {
    font-size: 24px;
    margin-bottom: 14px;
  }
  .cta-side ul {
    list-style: none;
    margin-bottom: 24px;
  }
  .cta-side li {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px dashed var(--line-soft);
    font-weight: 500;
  }
  .cta-side li:last-child { border-bottom: none; }
  .cta-side li::before {
    content: "▸";
    color: var(--text);
    background: var(--accent);
    padding: 0 4px;
    font-size: 11px;
    line-height: 1.6;
    flex-shrink: 0;
    height: fit-content;
  }


/* ================================================================
   catalog-specific: RESPONSIVE
   ================================================================ */

  /* RESPONSIVE */
  @media (max-width: 1100px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 1024px) {
    .cat-hero-inner, .flagship-hero, .cat-section-head, .cta-grid {
      grid-template-columns: 1fr;
      gap: 30px;
    }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .product-card.archive-row { grid-column: span 2; }
  }
  @media (max-width: 720px) {
    .container { padding: 0 20px; }
    .product-grid, .product-grid.cols-4 { grid-template-columns: 1fr; }
    .product-card.archive-row { grid-column: span 1; flex-direction: column; }
    .product-card.archive-row .product-photo { width: 100%; aspect-ratio: 4/3; border-right: none; border-bottom: 2px solid var(--line); }
    .product-card.archive-row .product-body { flex-direction: column; align-items: flex-start; padding: 22px 24px 0; }
    .product-card.archive-row .product-foot { border-left: none; border-top: 2px solid var(--line); }
    .footer-grid { grid-template-columns: 1fr; }
    .filter-bar { position: static; }
    .filter-row { flex-direction: column; align-items: stretch; }
    .filter-tab { border-right: none; border-bottom: 2px solid var(--line); justify-content: space-between; }
    .vs-block { flex-direction: column; align-items: stretch; }
    .product-specs li { font-size: 10px; }
    .flagship-features { grid-template-columns: 1fr; }
    .cat-hero-stats { grid-template-columns: 1fr; }
    .cat-stat { border-right: none; border-bottom: 2px solid var(--line); }
    .cat-stat:last-child { border-bottom: none; }
    .safety-corner { display: none; }
  }

  .reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
  .reveal.in { opacity: 1; transform: translateY(0); }


/* ================================================================
   flagship-page: дополнительные секции страницы flagship.html
   ================================================================ */

  .fl-section {
    padding: 110px 0;
    position: relative;
    border-bottom: 2px solid var(--line);
  }
  .fl-section.alt { background: var(--bg-1); }
  .fl-section.dark {
    background: var(--bg-3);
    color: var(--text-on-dark);
    border-bottom: 2px solid var(--line);
  }
  .fl-section.dark .section-header h2 { color: var(--text-on-dark); }
  .fl-section.dark .section-header .lead { color: var(--text-on-dark); opacity: 0.85; }
  .fl-section.dark .block-counter { background: var(--accent); color: var(--text); }

  /* HERO ФЛАГМАНА — отдельная посадочная, темнее остальных */
  .fl-hero {
    padding: 80px 0 60px;
    background: var(--bg-3);
    color: var(--text-on-dark);
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid var(--line);
  }
  .fl-hero-jumbo {
    position: absolute;
    bottom: -40px;
    right: -100px;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: clamp(160px, 24vw, 380px);
    color: var(--accent);
    opacity: 0.07;
    letter-spacing: -0.05em;
    pointer-events: none;
    line-height: 0.8;
    white-space: nowrap;
    z-index: 0;
    user-select: none;
  }
  .fl-hero .container { position: relative; z-index: 2; }
  .fl-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 60px;
    align-items: center;
  }
  .fl-hero h1 {
    font-size: clamp(48px, 7.5vw, 100px);
    line-height: 0.95;
    margin-bottom: 24px;
    color: var(--text-on-dark);
    letter-spacing: -0.03em;
  }
  .fl-hero h1 .line2 {
    display: block;
    color: var(--text);
    background: var(--accent);
    padding: 0 16px;
    margin-top: 8px;
    width: max-content;
    max-width: 100%;
  }
  .fl-hero .block-counter { background: var(--accent); color: var(--text); }
  .fl-hero-sub {
    color: var(--text-on-dark);
    opacity: 0.85;
    font-size: 18px;
    line-height: 1.55;
    max-width: 580px;
    font-weight: 500;
    margin-bottom: 36px;
  }

  /* Бейджи флагмана — крупные плашки */
  .fl-badges {
    display: flex;
    gap: 0;
    margin-bottom: 36px;
    flex-wrap: wrap;
  }
  .fl-badge {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: clamp(18px, 2vw, 24px);
    letter-spacing: 0.06em;
    padding: 18px 26px;
    text-transform: uppercase;
    border: 2px solid var(--line);
    margin-right: -2px;
    margin-bottom: -2px;
  }
  .fl-badge.b1 { background: var(--accent); color: var(--text); }
  .fl-badge.b2 { background: var(--bg-1); color: var(--text); }
  .fl-badge.b3 { background: var(--text); color: var(--accent); border-color: var(--accent); }

  .fl-hero-ctas {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
  }
  .fl-hero-ctas .btn { margin-right: -2px; }
  .fl-hero-ctas .btn-ghost {
    background: transparent;
    color: var(--text-on-dark);
    border-color: var(--accent);
  }
  .fl-hero-ctas .btn-ghost:hover { background: var(--accent); color: var(--text); }

  .fl-hero-visual {
    position: relative;
    background: var(--bg-0);
    border: 2px solid var(--accent);
    min-height: 520px;
    overflow: hidden;
  }
  .fl-hero-visual img {
    width: 100%; height: 100%;
    object-fit: contain;
    padding: 24px;
    display: block;
    position: absolute;
    inset: 0;
  }
  .fl-hero-sticker {
    position: absolute;
    top: 24px; left: 24px;
    background: var(--text);
    color: var(--accent);
    padding: 14px 20px;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    z-index: 6;
    transform: rotate(-3deg);
    border: 2px solid var(--text);
    box-shadow: 4px 4px 0 var(--accent);
  }
  .fl-hero-price {
    position: absolute;
    bottom: 24px; left: 24px;
    z-index: 6;
    background: var(--bg-1);
    border: 2px solid var(--text);
    padding: 16px 22px;
  }
  .fl-hero-price .p1 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--text);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 6px;
  }
  .fl-hero-price .p2 {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: 26px;
    color: var(--text);
  }
  .fl-hero-price .p2 .old {
    color: var(--text-faint);
    text-decoration: line-through;
    font-size: 16px;
    margin-right: 10px;
    font-weight: 500;
  }

  /* 6 ПРЕИМУЩЕСТВ — крупная сетка */
  .fl-advantages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 2px solid var(--line);
    background: var(--line);
  }
  .fl-adv {
    background: var(--bg-1);
    padding: 36px 32px;
    border: 1px solid var(--line);
    position: relative;
    min-height: 240px;
    display: flex;
    flex-direction: column;
  }
  .fl-adv:hover { background: var(--accent-soft); }
  .fl-adv-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--text);
    background: var(--accent);
    padding: 4px 8px;
    width: max-content;
    margin-bottom: 18px;
  }
  .fl-adv-title {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 12px;
    color: var(--text);
  }
  .fl-adv-text {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.6;
    font-weight: 500;
  }

  /* ТАБЛИЦА СРАВНЕНИЯ с MNSB-155 */
  .compare-wrap {
    overflow-x: auto;
    border: 2px solid var(--line);
    background: var(--bg-1);
  }
  .compare-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-1);
    min-width: 720px;
  }
  .compare-table th,
  .compare-table td {
    padding: 18px 22px;
    text-align: left;
    border-bottom: 2px solid var(--line);
    border-right: 2px solid var(--line);
    vertical-align: middle;
  }
  .compare-table th:last-child,
  .compare-table td:last-child { border-right: none; }
  .compare-table tr:last-child td { border-bottom: none; }
  .compare-table thead th {
    background: var(--bg-3);
    color: var(--text-on-dark);
    font-family: 'Chakra Petch', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.02em;
  }
  .compare-table thead th.us {
    background: var(--accent);
    color: var(--text);
  }
  .compare-table tbody th {
    background: var(--bg-2);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text);
    width: 32%;
  }
  .compare-table td {
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
  }
  .compare-table td.us {
    background: var(--accent-soft);
    font-weight: 700;
  }
  .compare-table td.us::before {
    content: "▸ ";
    color: var(--text);
    font-weight: 700;
  }
  .compare-note {
    margin-top: 24px;
    padding: 18px 22px;
    background: var(--accent);
    border: 2px solid var(--line);
    font-size: 14px;
    line-height: 1.55;
    color: var(--text);
    font-weight: 600;
  }
  .compare-note strong { background: var(--text); color: var(--accent); padding: 0 4px; }

  /* СЦЕНАРИИ ПРИМЕНЕНИЯ */
  .scenarios {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 2px solid var(--line);
  }
  .scenario {
    background: var(--bg-1);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    transition: background .15s ease;
  }
  .scenario:hover { background: var(--bg-0); }
  .scenario-img {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--bg-3);
    border-bottom: 2px solid var(--line);
    position: relative;
  }
  .scenario-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.18) brightness(0.92);
    display: block;
    transition: transform .4s ease;
  }
  .scenario:hover .scenario-img img { transform: scale(1.04); }
  .scenario-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.3) 100%);
    pointer-events: none;
  }
  .scenario-body { padding: 24px 26px; flex: 1; }
  .scenario-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text);
    background: var(--accent);
    padding: 3px 7px;
    width: max-content;
    margin-bottom: 12px;
  }
  .scenario-title {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 8px;
    color: var(--text);
  }
  .scenario-text {
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.55;
    font-weight: 500;
  }

  /* ТТХ — таблица две колонки */
  .specs-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 2px solid var(--accent);
  }
  .specs-col {
    background: var(--bg-3);
    padding: 0;
  }
  .specs-col + .specs-col { border-left: 2px solid var(--accent); }
  .specs-row {
    padding: 16px 22px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 230, 107, 0.2);
    align-items: baseline;
  }
  .specs-row:last-child { border-bottom: none; }
  .spec-k {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  .spec-v {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 16px;
    color: var(--text-on-dark);
    font-weight: 700;
    text-align: right;
    letter-spacing: 0.02em;
  }

  /* КОМПЛЕКТАЦИЯ — двойной список */
  .kit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 2px solid var(--line);
    background: var(--bg-1);
  }
  .kit-col { padding: 30px 32px; }
  .kit-col + .kit-col { border-left: 2px solid var(--line); }
  .kit-col h4 {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 22px;
    margin-bottom: 18px;
    line-height: 1.15;
    display: inline-block;
    background: var(--accent);
    padding: 4px 10px;
  }
  .kit-list { list-style: none; }
  .kit-list li {
    padding: 12px 0;
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
    border-bottom: 1px dashed var(--line-soft);
    display: flex;
    gap: 12px;
    align-items: baseline;
  }
  .kit-list li:last-child { border-bottom: none; }
  .kit-list li::before {
    content: "+";
    color: var(--text);
    background: var(--accent);
    padding: 0 6px;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
  }
  .kit-list.dim li { color: var(--text-dim); }
  .kit-list.dim li::before { background: var(--bg-2); color: var(--text-faint); }

  /* СЕРВИС И ГАРАНТИЯ */
  .warranty-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 2px solid var(--accent);
    background: var(--accent);
  }
  .warranty-cell {
    background: var(--bg-3);
    color: var(--text-on-dark);
    padding: 30px 26px;
    border: 1px solid var(--accent);
  }
  .warranty-cell .num {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 44px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
  }
  .warranty-cell .lbl {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-on-dark);
    opacity: 0.85;
    margin-bottom: 14px;
  }
  .warranty-cell .desc {
    color: var(--text-on-dark);
    opacity: 0.85;
    font-size: 13px;
    line-height: 1.55;
    font-weight: 500;
  }

  /* ФИНАЛЬНАЯ CTA-ФОРМА */
  .fl-cta-form {
    background: var(--bg-1);
    border: 2px solid var(--accent);
    box-shadow: 10px 10px 0 var(--accent);
    padding: 50px;
    max-width: 820px;
    margin: 0 auto;
    position: relative;
  }

  /* RESPONSIVE FLAGSHIP-PAGE */
  @media (max-width: 1024px) {
    .fl-hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .fl-advantages, .scenarios { grid-template-columns: repeat(2, 1fr); }
    .specs-wrap, .kit-grid { grid-template-columns: 1fr; }
    .specs-col + .specs-col, .kit-col + .kit-col { border-left: none; border-top: 2px solid var(--accent); }
    .kit-col + .kit-col { border-top-color: var(--line); }
    .warranty-grid { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 640px) {
    .fl-advantages, .scenarios { grid-template-columns: 1fr; }
    .warranty-grid { grid-template-columns: 1fr; }
    .fl-cta-form { padding: 30px 24px; box-shadow: 6px 6px 0 var(--accent); }
    .fl-hero-visual { min-height: 360px; }
    .compare-table { font-size: 13px; }
    .fl-badge { font-size: 16px; padding: 12px 18px; }
  }


/* ================================================================
   configurator-page: страница configurator.html — конфигуратор лазеров
   ================================================================ */

  .cfg-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.85fr;
    gap: 60px;
    align-items: start;
  }

  .cfg-step {
    border: 2px solid var(--line);
    background: var(--bg-1);
    padding: 32px;
    margin-bottom: -2px;
    position: relative;
  }
  .cfg-step-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
  }
  .cfg-step-num {
    background: var(--text);
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    padding: 6px 12px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.1em;
  }
  .cfg-step-title {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.1;
  }
  .cfg-step-desc {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 22px;
    font-weight: 500;
  }

  .cfg-opts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
  .cfg-opt {
    background: var(--bg-0);
    border: 2px solid var(--line);
    padding: 18px 18px 16px;
    cursor: pointer;
    text-align: left;
    margin-right: -2px;
    margin-bottom: -2px;
    transition: background .15s ease;
    position: relative;
    font: inherit;
    color: inherit;
    display: flex;
    flex-direction: column;
  }
  .cfg-opt:hover { background: var(--accent-soft); }
  .cfg-opt.active {
    background: var(--accent);
    border-color: var(--text);
    z-index: 2;
  }
  .cfg-opt.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
  }
  .cfg-opt-label {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    display: block;
    line-height: 1.15;
    color: var(--text);
  }
  .cfg-opt-hint {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.45;
    margin-bottom: 10px;
    display: block;
    min-height: 34px;
    flex: 1;
  }
  .cfg-opt.active .cfg-opt-hint { color: var(--text); }
  .cfg-opt-price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .cfg-opt-price.base { color: var(--text-faint); }

  /* PREVIEW PANEL */
  .cfg-preview {
    position: sticky;
    top: 110px;
    background: var(--bg-3);
    color: var(--text-on-dark);
    border: 2px solid var(--accent);
    padding: 36px 32px;
    box-shadow: 10px 10px 0 var(--accent);
  }
  .cfg-preview-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text);
    background: var(--accent);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 5px 9px;
    display: inline-block;
    margin-bottom: 16px;
  }
  .cfg-preview h3 {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 28px;
    color: var(--text-on-dark);
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 700;
  }
  .cfg-summary {
    list-style: none;
    border-top: 1px solid rgba(255, 230, 107, 0.25);
  }
  .cfg-summary-row {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 230, 107, 0.25);
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: baseline;
  }
  .cfg-summary-k {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    flex-shrink: 0;
  }
  .cfg-summary-v {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 16px;
    color: var(--text-on-dark);
    font-weight: 700;
    text-align: right;
    line-height: 1.15;
  }
  .cfg-summary-v.empty {
    color: var(--text-faint);
    font-weight: 500;
    font-style: italic;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
  }

  .cfg-extras {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 230, 107, 0.25);
  }
  .cfg-extras-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
  }
  .cfg-extras ul { list-style: none; }
  .cfg-extras li {
    font-size: 13px;
    color: var(--text-on-dark);
    font-weight: 500;
    padding: 6px 0;
    display: flex;
    gap: 10px;
    align-items: baseline;
    line-height: 1.4;
  }
  .cfg-extras li::before {
    content: "+";
    color: var(--text);
    background: var(--accent);
    padding: 0 6px;
    font-weight: 700;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 13px;
    flex-shrink: 0;
  }
  .cfg-extras li.empty {
    color: var(--text-faint);
    font-style: italic;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
  }
  .cfg-extras li.empty::before { display: none; }

  .cfg-total {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 2px solid var(--accent);
  }
  .cfg-total-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
  }
  .cfg-total-value {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 38px;
    color: var(--accent);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
  }
  .cfg-total-note {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--text-on-dark);
    opacity: 0.7;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  .cfg-total-cta {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .cfg-total-cta .btn {
    justify-content: center;
    width: 100%;
    margin-bottom: -2px;
  }
  .cfg-total-cta .btn-ghost {
    background: transparent;
    color: var(--text-on-dark);
    border-color: var(--accent);
  }
  .cfg-total-cta .btn-ghost:hover { background: var(--accent); color: var(--text); }

  /* Hero конфигуратора */
  .cfg-hero {
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid var(--line);
  }
  .cfg-hero-jumbo {
    position: absolute;
    bottom: -30px;
    right: -80px;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: clamp(120px, 16vw, 240px);
    color: var(--accent);
    opacity: 0.18;
    letter-spacing: -0.05em;
    pointer-events: none;
    line-height: 0.8;
    white-space: nowrap;
    z-index: 0;
    user-select: none;
  }
  .cfg-hero .container { position: relative; z-index: 2; }
  .cfg-hero h1 {
    font-size: clamp(48px, 8vw, 100px);
    letter-spacing: -0.03em;
    line-height: 1.06;
    margin-bottom: 20px;
  }
  .cfg-hero h1 mark {
    background: var(--accent);
    color: var(--text);
    padding: 2px 12px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
  }
  .cfg-hero-lead {
    font-size: 18px;
    color: var(--text-dim);
    line-height: 1.6;
    max-width: 720px;
    font-weight: 500;
  }

  @media (max-width: 1024px) {
    .cfg-layout { grid-template-columns: 1fr; gap: 30px; }
    .cfg-preview { position: relative; top: 0; }
    .cfg-opts-grid { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 640px) {
    .cfg-opts-grid { grid-template-columns: 1fr; }
    .cfg-preview { padding: 24px 22px; box-shadow: 6px 6px 0 var(--accent); }
    .cfg-step { padding: 24px 22px; }
    .cfg-total-value { font-size: 32px; }
  }


/* ================================================================
   btmark-owners-page + about-page: специфика двух страниц
   ================================================================ */

  /* OFFER-GRID — 3 крупных оффера на btmark-owners */
  .offer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 2px solid var(--line);
    background: var(--line);
  }
  .offer-card {
    background: var(--bg-1);
    border: 1px solid var(--line);
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 460px;
    overflow: hidden;
    transition: background .15s ease;
  }
  .offer-card.accent {
    background: var(--accent);
  }
  .offer-card.dark {
    background: var(--bg-3);
    color: var(--text-on-dark);
  }
  .offer-card .o-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    padding: 5px 10px;
    background: var(--text);
    color: var(--accent);
    width: max-content;
    margin-bottom: 24px;
  }
  .offer-card.accent .o-num { background: var(--text); color: var(--accent); }
  .offer-card.dark .o-num { background: var(--accent); color: var(--text); }
  .offer-card .o-title {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 16px;
    color: inherit;
  }
  .offer-card .o-text {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
    font-weight: 500;
    color: inherit;
    opacity: 0.92;
  }
  .offer-card.dark .o-text { opacity: 0.85; }
  .offer-card .o-list {
    list-style: none;
    margin-bottom: 24px;
    flex: 1;
  }
  .offer-card .o-list li {
    padding: 8px 0;
    font-size: 13px;
    line-height: 1.5;
    display: flex;
    gap: 10px;
    align-items: baseline;
    font-weight: 500;
    border-bottom: 1px dashed rgba(0,0,0,0.15);
  }
  .offer-card.dark .o-list li {
    border-bottom-color: rgba(245,245,245,0.15);
  }
  .offer-card .o-list li:last-child { border-bottom: none; }
  .offer-card .o-list li::before {
    content: "+";
    color: var(--text);
    background: var(--accent);
    padding: 0 6px;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
  }
  .offer-card.accent .o-list li::before { background: var(--text); color: var(--accent); }
  .offer-card.dark .o-list li::before { background: var(--accent); color: var(--text); }
  .offer-card .o-cta {
    margin-top: auto;
  }

  /* PRICE COMPARE — таблица "у дилера vs у нас" для btmark-owners */
  .price-compare {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-1);
    border: 2px solid var(--line);
    min-width: 640px;
  }
  .price-compare th,
  .price-compare td {
    padding: 16px 22px;
    text-align: left;
    border-bottom: 2px solid var(--line);
    border-right: 2px solid var(--line);
    vertical-align: middle;
  }
  .price-compare th:last-child,
  .price-compare td:last-child { border-right: none; }
  .price-compare tr:last-child td { border-bottom: none; }
  .price-compare thead th {
    background: var(--bg-3);
    color: var(--text-on-dark);
    font-family: 'Chakra Petch', sans-serif;
    font-size: 17px;
    font-weight: 700;
  }
  .price-compare thead th.us { background: var(--accent); color: var(--text); }
  .price-compare tbody td {
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
  }
  .price-compare tbody td.item {
    background: var(--bg-2);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .price-compare td.dealer {
    color: var(--text-faint);
    text-decoration: line-through;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: 17px;
  }
  .price-compare td.us {
    background: var(--accent-soft);
    color: var(--text);
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: 18px;
  }
  .price-compare td.diff {
    background: var(--text);
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
  }
  .price-wrap { overflow-x: auto; border: 2px solid var(--line); }
  .price-wrap .price-compare { border: none; }

  /* CASE / SOCIAL PROOF — простой блок */
  .case-block {
    background: var(--bg-3);
    color: var(--text-on-dark);
    padding: 50px 56px;
    border: 2px solid var(--accent);
    box-shadow: 10px 10px 0 var(--accent);
    margin-top: 40px;
    position: relative;
  }
  .case-block .case-quote-mark {
    position: absolute;
    top: 24px;
    right: 32px;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 100px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    opacity: 0.7;
  }
  .case-block .case-text {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 22px;
    line-height: 1.35;
    color: var(--text-on-dark);
    margin-bottom: 24px;
    max-width: 820px;
    font-weight: 600;
  }
  .case-block .case-text mark {
    background: var(--accent);
    color: var(--text);
    padding: 0 6px;
  }
  .case-block .case-meta {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
  }
  .case-block .case-meta .sep { color: var(--text-on-dark); opacity: 0.4; }

  /* ABOUT: команда */
  .team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 2px solid var(--line);
  }
  .team-card {
    background: var(--bg-1);
    border: 1px solid var(--line);
    padding: 0;
    display: flex;
    flex-direction: column;
    transition: background .15s ease;
  }
  .team-card:hover { background: var(--bg-0); }
  .team-photo {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-3);
    border-bottom: 2px solid var(--line);
    position: relative;
  }
  .team-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.15) brightness(0.95);
    display: block;
  }
  .team-info { padding: 22px 22px 26px; }
  .team-name {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 4px;
    color: var(--text);
  }
  .team-role {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text);
    background: var(--accent);
    padding: 3px 7px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
  }
  .team-bio {
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.5;
    font-weight: 500;
  }

  /* ABOUT: сертификаты */
  .certs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 2px solid var(--line);
  }
  .cert-cell {
    background: var(--bg-1);
    border: 1px solid var(--line);
    padding: 28px 26px;
    aspect-ratio: 3/4;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: background .15s ease;
    position: relative;
    overflow: hidden;
  }
  .cert-cell:hover { background: var(--accent-soft); }
  .cert-cell .cert-thumb {
    aspect-ratio: 1;
    background: var(--bg-2);
    margin-bottom: 18px;
    border: 1px solid var(--line-soft);
    position: relative;
    overflow: hidden;
  }
  .cert-cell .cert-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.1);
    display: block;
  }
  .cert-cell .cert-title {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 4px;
  }
  .cert-cell .cert-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--text-faint);
    font-weight: 700;
    letter-spacing: 0.1em;
  }

  /* ABOUT: цифры компании */
  .stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 2px solid var(--accent);
    background: var(--accent);
  }
  .stats-cell {
    background: var(--bg-3);
    color: var(--text-on-dark);
    padding: 36px 28px;
    border: 1px solid var(--accent);
    text-align: left;
  }
  .stats-cell .v {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 56px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
  }
  .stats-cell .l {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text-on-dark);
    opacity: 0.85;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  @media (max-width: 1024px) {
    .offer-grid { grid-template-columns: 1fr; }
    .team-grid, .certs-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-strip { grid-template-columns: repeat(2, 1fr); }
    .case-block { padding: 36px 32px; }
  }
  @media (max-width: 640px) {
    .team-grid, .certs-grid { grid-template-columns: 1fr; }
    .stats-strip { grid-template-columns: 1fr; }
    .case-block { padding: 28px 24px; box-shadow: 6px 6px 0 var(--accent); }
    .case-block .case-quote-mark { font-size: 70px; }
    .case-block .case-text { font-size: 18px; }
    .stats-cell .v { font-size: 44px; }
    .offer-card { padding: 30px 24px; min-height: 0; }
  }


/* ================================================================
   BURGER-MENU — мобильное меню drawer
   ================================================================ */

  .burger {
    display: none;
    width: 44px;
    height: 44px;
    background: var(--bg-0);
    border: 2px solid var(--line);
    padding: 0;
    cursor: pointer;
    position: relative;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    z-index: 110;
    transition: background .15s ease;
    flex-shrink: 0;
  }
  .burger:hover { background: var(--accent); }
  .burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    transition: all .25s ease;
  }
  .burger.open { background: var(--accent); }
  .burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 95;
    opacity: 0;
    transition: opacity .25s ease;
  }
  .nav-overlay.open {
    display: block;
    opacity: 1;
  }

  /* CTA-пункт виден только в мобильном меню */
  .nav-menu-cta-mobile { display: none; }

  body.menu-open { overflow: hidden; }

  @media (max-width: 900px) {
    .burger { display: flex; }
    .nav-cta { display: none; }

    .nav-menu {
      display: flex;
      position: fixed;
      top: 0;
      right: 0;
      width: 320px;
      max-width: 85vw;
      height: 100vh;
      background: var(--bg-0);
      flex-direction: column;
      gap: 0;
      padding: 90px 0 40px;
      transform: translateX(100%);
      transition: transform .3s ease, box-shadow .3s ease;
      z-index: 100;
      border-left: 2px solid var(--line);
      overflow-y: auto;
      list-style: none;
      box-shadow: none;
    }
    .nav-menu.open {
      transform: translateX(0);
      box-shadow: -8px 0 0 var(--accent);
    }
    .nav-menu li {
      border-bottom: 1px solid var(--line-soft);
      width: 100%;
    }
    .nav-menu li:first-child { border-top: 2px solid var(--line); }
    .nav-menu a {
      display: block;
      padding: 18px 28px;
      font-size: 16px;
      font-weight: 600;
      color: var(--text);
      text-decoration: none;
      width: 100%;
    }
    .nav-menu a:hover,
    .nav-menu a.highlight {
      background: var(--accent);
    }

    .nav-menu-cta-mobile {
      display: block;
      margin-top: 20px;
      border-top: 2px solid var(--line);
      border-bottom: none !important;
    }
    .nav-menu-cta-mobile a {
      background: var(--accent);
      font-family: 'JetBrains Mono', monospace;
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      padding: 22px 28px;
    }
    .nav-menu-cta-mobile a:hover { background: var(--text); color: var(--accent); }
  }

  /* На очень узком (≤360) уменьшаем drawer */
  @media (max-width: 380px) {
    .nav-menu { width: 280px; }
    .nav-menu a { padding: 16px 22px; font-size: 15px; }
  }


/* ================================================================
   product-page: карточки моделей в product/*.html
   ================================================================ */

  .pp-hero {
    padding: 50px 0 60px;
    border-bottom: 2px solid var(--line);
    position: relative;
  }
  .pp-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: start;
  }

  /* ГАЛЕРЕЯ */
  .pp-gallery {
    position: sticky;
    top: 100px;
  }
  .pp-main-photo {
    aspect-ratio: 1;
    background: var(--bg-3);
    border: 2px solid var(--line);
    position: relative;
    overflow: hidden;
  }
  .pp-main-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.18) brightness(0.95);
    display: block;
  }
  .pp-main-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 70%, rgba(0,0,0,0.25) 100%);
    pointer-events: none;
  }
  .pp-main-corners {
    position: absolute;
    inset: 16px;
    pointer-events: none;
    z-index: 4;
  }
  .pp-main-corners::before,
  .pp-main-corners::after {
    content: "";
    position: absolute;
    width: 24px; height: 24px;
    border: 2px solid var(--accent);
  }
  .pp-main-corners::before { top: 0; left: 0; border-right: none; border-bottom: none; }
  .pp-main-corners::after { bottom: 0; right: 0; border-left: none; border-top: none; }

  .pp-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: -2px;
  }
  .pp-thumb {
    aspect-ratio: 1;
    border: 2px solid var(--line);
    margin-right: -2px;
    cursor: pointer;
    background: var(--bg-3);
    overflow: hidden;
    transition: border-color .15s ease;
    padding: 0;
  }
  .pp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.15) brightness(0.95);
    transition: filter .15s ease;
  }
  .pp-thumb:hover img { filter: none; }
  .pp-thumb.active {
    border-color: var(--accent);
    position: relative;
    z-index: 2;
  }
  .pp-thumb.active img { filter: none; }

  /* ДЕТАЛИ СПРАВА */
  .pp-details { padding-top: 0; }
  .pp-cat {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text);
    background: var(--accent);
    padding: 4px 8px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 16px;
  }
  .pp-title {
    font-family: 'Chakra Petch', sans-serif;
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1;
    margin-bottom: 12px;
    color: var(--text);
    letter-spacing: -0.02em;
  }
  .pp-subtitle {
    font-size: 17px;
    color: var(--text-dim);
    line-height: 1.5;
    margin-bottom: 24px;
    font-weight: 500;
  }
  .pp-badges {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    margin-bottom: 24px;
  }
  .pp-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    padding: 6px 11px;
    border: 2px solid var(--line);
    margin-right: -2px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--bg-1);
    color: var(--text);
  }
  .pp-badge.hit { background: var(--accent); }
  .pp-badge.stock { background: var(--bg-1); }
  .pp-badge.demo { background: var(--text); color: var(--accent); }
  .pp-badge.preorder { background: var(--bg-2); color: var(--text-faint); }

  .pp-price-box {
    background: var(--bg-3);
    color: var(--text-on-dark);
    padding: 24px 28px;
    border: 2px solid var(--accent);
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 20px;
    box-shadow: 6px 6px 0 var(--accent);
  }
  .pp-price-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 4px;
    display: block;
  }
  .pp-price-value {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 32px;
    color: var(--accent);
    font-weight: 700;
    line-height: 1;
  }
  .pp-price-note {
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-on-dark);
    opacity: 0.7;
    font-size: 11px;
    text-align: right;
    letter-spacing: 0.05em;
  }

  .pp-quick-specs {
    list-style: none;
    border: 2px solid var(--line);
    background: var(--bg-1);
    margin-bottom: 24px;
  }
  .pp-quick-specs li {
    padding: 13px 18px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--line-soft);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    align-items: baseline;
  }
  .pp-quick-specs li:last-child { border-bottom: none; }
  .pp-quick-specs .k {
    color: var(--text-faint);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
  }
  .pp-quick-specs .v {
    color: var(--text);
    font-weight: 700;
    text-align: right;
  }

  .pp-ctas {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }
  .pp-ctas .btn { margin-right: -2px; }

  .pp-desc {
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.65;
    font-weight: 500;
    margin-bottom: 18px;
  }
  .pp-desc strong { background: var(--accent); padding: 0 4px; color: var(--text); }

  /* СВЯЗАННЫЕ МОДЕЛИ */
  .pp-related {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 2px solid var(--line);
  }

  /* RESPONSIVE */
  @media (max-width: 1024px) {
    .pp-grid { grid-template-columns: 1fr; gap: 36px; }
    .pp-gallery { position: relative; top: 0; }
    .pp-related { grid-template-columns: repeat(2, 1fr); }
    .pp-price-box { grid-template-columns: 1fr; gap: 8px; }
    .pp-price-note { text-align: left; }
  }
  @media (max-width: 640px) {
    .pp-related { grid-template-columns: 1fr; }
    .pp-thumbs { grid-template-columns: repeat(3, 1fr); }
    .pp-thumb:nth-child(n+4) { display: none; }
    .pp-price-value { font-size: 28px; }
  }


/* ================================================================
   alt-grid: компактные карточки «что ещё в категории» (без фото)
   ================================================================ */

  .alt-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 2px solid var(--line);
  }
  .alt-card {
    background: var(--bg-1);
    border: 1px solid var(--line);
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: background .15s ease;
    min-height: 220px;
  }
  .alt-card:hover { background: var(--accent); }
  .alt-card.alt-card-flag { background: var(--accent); }
  .alt-card.alt-card-flag:hover { background: var(--accent-bright); }
  .alt-card .alt-num {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    margin-bottom: 16px;
    background: var(--accent);
    padding: 0 8px;
    width: max-content;
  }
  .alt-card.alt-card-flag .alt-num { background: var(--text); color: var(--accent); }
  .alt-card h3 {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 10px;
    color: var(--text);
  }
  .alt-card p {
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.5;
    font-weight: 500;
    margin-bottom: 18px;
    flex: 1;
  }
  .alt-card .alt-action {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text);
    padding-top: 12px;
    border-top: 2px solid var(--line);
    transition: transform .15s ease;
  }
  .alt-card:hover .alt-action { transform: translateX(4px); }

  @media (max-width: 1024px) { .alt-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 640px)  { .alt-grid { grid-template-columns: 1fr; } }


/* ================================================================
   UX-АПГРЕЙД: анимации, переходы, доступность, мобильный CTA
   ================================================================ */

  /* ---- Page transition: плавное появление body ---- */
  body {
    opacity: 1;
  }
  body:not(.loaded) {
    opacity: 0;
  }
  body.loaded {
    opacity: 1;
    transition: opacity .25s ease;
  }

  /* ---- Smooth scroll с offset для sticky header ---- */
  html {
    scroll-padding-top: 100px;
  }

  /* ---- Кастомный scrollbar ---- */
  ::-webkit-scrollbar {
    width: 12px;
    height: 12px;
  }
  ::-webkit-scrollbar-track {
    background: var(--bg-2);
    border-left: 2px solid var(--line);
  }
  ::-webkit-scrollbar-thumb {
    background: var(--text);
    border-left: 2px solid var(--line);
  }
  ::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
  }
  /* Firefox */
  html { scrollbar-color: var(--text) var(--bg-2); scrollbar-width: thin; }

  /* ---- FOCUS-стили (доступность) ---- */
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  textarea:focus-visible,
  select:focus-visible,
  .product-card:focus-visible,
  .cat-card:focus-visible,
  .task-card:focus-visible,
  .alt-card:focus-visible,
  .pp-thumb:focus-visible,
  .filter-tab:focus-visible,
  .config-opt:focus-visible,
  .cfg-opt:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    z-index: 5;
    position: relative;
  }

  /* ---- УСИЛЕННЫЕ HOVER на карточках (brutalism shadow) ---- */
  .product-card,
  .cat-card,
  .task-card,
  .alt-card,
  .svc-card,
  .team-card,
  .scenario,
  .fl-adv,
  .why-item,
  .pillar {
    transition: background .15s ease, transform .2s ease, box-shadow .2s ease;
  }
  .product-card:hover,
  .cat-card:hover:not(.featured),
  .task-card:hover,
  .alt-card:hover:not(.alt-card-flag),
  .svc-card:hover,
  .scenario:hover,
  .fl-adv:hover,
  .team-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 0 var(--accent);
  }
  .cat-card.featured:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 0 var(--text);
  }
  .alt-card.alt-card-flag:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 0 var(--text);
  }

  /* ---- STAGGER REVEAL: дети секции появляются по очереди ---- */
  .stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .45s ease, transform .45s ease;
  }
  .stagger-children.in > * {
    opacity: 1;
    transform: translateY(0);
  }
  .stagger-children.in > *:nth-child(1) { transition-delay: 0ms; }
  .stagger-children.in > *:nth-child(2) { transition-delay: 80ms; }
  .stagger-children.in > *:nth-child(3) { transition-delay: 160ms; }
  .stagger-children.in > *:nth-child(4) { transition-delay: 240ms; }
  .stagger-children.in > *:nth-child(5) { transition-delay: 320ms; }
  .stagger-children.in > *:nth-child(6) { transition-delay: 400ms; }
  .stagger-children.in > *:nth-child(7) { transition-delay: 480ms; }
  .stagger-children.in > *:nth-child(8) { transition-delay: 560ms; }

  /* ---- БЕЙДЖИ ФЛАГМАНА: subtle shine на ДЕШЕВЛЕ ---- */
  .fl-badge.b1,
  .badge-big.b1 {
    position: relative;
    overflow: hidden;
  }
  .fl-badge.b1::after,
  .badge-big.b1::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100%;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.4) 50%, transparent 70%);
    animation: shineSweep 3.5s ease-in-out infinite;
    animation-delay: 1.5s;
    pointer-events: none;
  }
  @keyframes shineSweep {
    0% { left: -100%; }
    40% { left: 120%; }
    100% { left: 120%; }
  }

  /* ---- SUBTLE FLOAT на jumbo-надписях фон ---- */
  .hero-jumbo,
  .cat-hero-jumbo,
  .flagship-jumbo,
  .cta-jumbo,
  .fl-hero-jumbo,
  .bt-hero-jumbo,
  .ab-hero-jumbo,
  .sol-hero-jumbo,
  .srv-hero-jumbo,
  .svc-hero-jumbo,
  .contacts-hero-jumbo,
  .cfg-hero-jumbo {
    animation: jumboFloat 12s ease-in-out infinite;
  }
  @keyframes jumboFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
  }

  /* ---- STICKY MOBILE CTA (плавающая кнопка «обсудить») ---- */
  .sticky-cta {
    display: none;
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 90;
    background: var(--accent);
    color: var(--text);
    padding: 16px 22px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid var(--text);
    box-shadow: 4px 4px 0 var(--text);
    transform: translateY(120%);
    transition: transform .3s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .sticky-cta.visible {
    transform: translateY(0);
  }
  .sticky-cta:hover {
    background: var(--text);
    color: var(--accent);
  }
  .sticky-cta::after {
    content: " →";
  }
  @media (max-width: 900px) {
    .sticky-cta { display: block; }
  }
  /* Когда меню открыто — прячем sticky-CTA */
  body.menu-open .sticky-cta { display: none; }

  /* ---- SCROLL INDICATOR (для long hero на главной) ---- */
  .scroll-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-faint);
    z-index: 5;
    animation: bounceDown 1.8s ease-in-out infinite;
  }
  @keyframes bounceDown {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: .6; }
    50%      { transform: translateX(-50%) translateY(6px); opacity: 1; }
  }

  /* ---- SMOOTH price counter в конфигураторе ---- */
  .cfg-total-value {
    transition: color .15s ease;
  }
  .cfg-total-value.pulse {
    color: var(--accent-bright);
  }

  /* ---- ANIMATED COUNTER (about.html, 80+ / 12 / 200+ / 10) ---- */
  .stats-cell .v {
    font-variant-numeric: tabular-nums;
  }

  /* ---- РЕАЛЬНЫЕ ССЫЛКИ внутри текста — подчёркивание-анимация ---- */
  .pp-desc a,
  .compare-note a,
  .vs-block-text a,
  .case-block a,
  .cat-section-meta a,
  .o-text a {
    position: relative;
    color: var(--text);
    text-decoration: none;
    border-bottom: 2px solid var(--accent);
    transition: background .15s ease, padding .15s ease;
    padding: 0 2px;
  }
  .pp-desc a:hover,
  .compare-note a:hover,
  .vs-block-text a:hover,
  .case-block a:hover,
  .cat-section-meta a:hover,
  .o-text a:hover {
    background: var(--accent);
    padding: 0 6px;
  }

  /* нав-меню: подсветка через background — линии-underline убраны */

  /* ---- УЧИТЫВАЕМ reduce-motion ---- */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
    body:not(.loaded) { opacity: 1; }
  }

  /* ---- УБИРАЕМ subtle blur на главной hero photo по hover ---- */
  .photo-frame:hover .toned-img,
  .flagship-visual:hover .toned-img {
    filter: grayscale(0.4) contrast(1.18) brightness(1);
  }

  /* ---- LOADER (мини, для случая если кто-то решит подключить ajax) ---- */
  .skeleton {
    background: linear-gradient(90deg, var(--bg-2) 0%, var(--bg-1) 50%, var(--bg-2) 100%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
  }
  @keyframes skeleton-pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
  }

/* ================================================================
   Скрываем safety-corner внутри форм — пересекался с заголовком
   ================================================================ */
  .contact-form .safety-corner,
  .fl-cta-form .safety-corner,
  .task-builder .safety-corner {
    display: none;
  }

/* ================================================================
   Section overflow-x: hidden — jumbo-надписи не должны вылазить
   за viewport на мобиле
   ================================================================ */
  section,
  .hazard-strip,
  .cat-section,
  .fl-section,
  .pp-hero,
  .cfg-hero,
  .svc-hero,
  .srv-hero,
  .sol-hero,
  .ab-hero,
  .bt-hero,
  .contacts-hero,
  .cat-hero {
    overflow-x: clip;
  }
  /* fallback для старых браузеров */
  @supports not (overflow-x: clip) {
    section, .cat-section, .fl-section, .pp-hero,
    .cfg-hero, .svc-hero, .srv-hero, .sol-hero,
    .ab-hero, .bt-hero, .contacts-hero, .cat-hero {
      overflow-x: hidden;
    }
  }

/* ================================================================
   Мобильные CTA: стопка, одинаковая ширина, без -2px смещений
   ================================================================ */
  @media (max-width: 720px) {
    .hero-ctas,
    .flagship-ctas,
    .fl-hero-ctas,
    .bt-hero-ctas,
    .cta-buttons,
    .svc-cta-buttons,
    .pp-ctas,
    .cfg-promo .ctas,
    .bt-promo .ctas {
      flex-direction: column;
      gap: 0;
      align-items: stretch;
    }
    .hero-ctas .btn,
    .flagship-ctas .btn,
    .fl-hero-ctas .btn,
    .bt-hero-ctas .btn,
    .cta-buttons .btn,
    .svc-cta-buttons .btn,
    .pp-ctas .btn,
    .cfg-promo .ctas .btn,
    .bt-promo .ctas .btn {
      width: 100%;
      margin-right: 0;
      margin-bottom: -2px;
      justify-content: center;
    }
    .hero-ctas .btn:last-child,
    .flagship-ctas .btn:last-child,
    .fl-hero-ctas .btn:last-child,
    .bt-hero-ctas .btn:last-child,
    .cta-buttons .btn:last-child,
    .svc-cta-buttons .btn:last-child,
    .pp-ctas .btn:last-child,
    .cfg-promo .ctas .btn:last-child,
    .bt-promo .ctas .btn:last-child {
      margin-bottom: 0;
    }
  }

  /* SVC-CTA-ROW: на мобиле кнопки в стопку */
  @media (max-width: 720px) {
    .svc-cta-row {
      flex-direction: column;
      align-items: stretch;
    }
    .svc-cta-buttons {
      width: 100%;
    }
  }


/* ================================================================
   hero-pillars — 4 опоры бизнеса (вариант D: hazard-маркеры)
   Без SVG, крупная цифра + hazard-треугольник в углу + название + глагол-действие
   ================================================================ */

  .hero-pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 36px;
    border: 2px solid var(--line);
    background: var(--line);
  }
  .hero-pillar {
    position: relative;
    background: var(--bg-1);
    border: 1px solid var(--line);
    padding: 28px 26px 24px;
    display: flex;
    flex-direction: column;
    gap: 0;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    min-height: 200px;
    transition: background .15s ease, transform .2s ease, box-shadow .2s ease;
  }
  .hero-pillar:hover {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 6px 0 var(--text);
    z-index: 2;
  }

  /* Hazard-треугольник в верхнем-правом углу */
  .hp-hazard {
    position: absolute;
    top: 0;
    right: 0;
    width: 56px;
    height: 56px;
    background:
      repeating-linear-gradient(
        -45deg,
        var(--accent),
        var(--accent) 6px,
        var(--text) 6px,
        var(--text) 12px
      );
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    transition: filter .2s ease;
  }
  .hero-pillar:hover .hp-hazard {
    filter: invert(1) hue-rotate(180deg);
  }

  /* Крупная цифра — доминанта карточки */
  .hp-num {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: 64px;
    line-height: 0.9;
    color: var(--text);
    letter-spacing: -0.04em;
    margin-bottom: 18px;
    display: block;
  }

  /* Название направления — крупно, рядом с цифрой смыслово */
  .hp-title {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1;
    color: var(--text);
    margin-bottom: 6px;
  }

  /* Глагол-действие: что мы делаем по этому направлению */
  .hp-action {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-top: auto;
    padding-top: 14px;
    border-top: 2px solid var(--line);
    transition: color .15s ease;
  }
  .hero-pillar:hover .hp-action { color: var(--text); }

  /* На планшете → 2×2 */
  @media (max-width: 900px) {
    .hero-pillars { grid-template-columns: repeat(2, 1fr); }
  }
  /* На узком — уменьшаем цифру */
  @media (max-width: 380px) {
    .hero-pillar { padding: 22px 18px 18px; min-height: 168px; }
    .hp-num { font-size: 48px; margin-bottom: 12px; }
    .hp-title { font-size: 20px; }
    .hp-action { font-size: 10px; padding-top: 10px; }
    .hp-hazard { width: 42px; height: 42px; }
  }


/* ================================================================
   ФИНАЛЬНАЯ ПОЛИРОВКА — баги и UX-улучшения по аудиту
   ================================================================ */

  /* 1. COMPARE-TABLE НА МОБИЛЕ: stacked-карточки вместо горизонтального скролла */
  @media (max-width: 720px) {
    .compare-wrap { overflow-x: visible; }
    .compare-table { display: block; min-width: 0; border: none; }
    .compare-table thead { display: none; }
    .compare-table tbody { display: block; }
    .compare-table tr {
      display: block;
      border: 2px solid var(--line);
      background: var(--bg-1);
      margin-bottom: 12px;
      padding: 0;
    }
    .compare-table th {
      display: block;
      background: var(--bg-3);
      color: var(--text-on-dark);
      padding: 12px 16px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      width: 100%;
      border: none;
    }
    .compare-table td {
      display: block;
      padding: 12px 16px;
      border: none;
      border-bottom: 1px dashed var(--line-soft);
      font-size: 14px;
      position: relative;
      padding-left: 110px;
    }
    .compare-table td:last-child { border-bottom: none; }
    .compare-table td::before {
      content: attr(data-col);
      position: absolute;
      left: 16px;
      top: 12px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--text-faint);
      width: 90px;
    }
    .compare-table td.us {
      background: var(--accent-soft);
      border-left: 4px solid var(--accent);
      padding-left: 20px;
      font-weight: 700;
    }
    /* На мобиле убираем все decorative ::before/::after — оставляем чистоту */
    .compare-table td::before,
    .compare-table td::after,
    .compare-table td.us::before,
    .compare-table td.us::after {
      content: none !important;
      display: none !important;
    }
    .compare-table td { padding-left: 16px !important; }
    .compare-table td.us { padding-left: 20px !important; }
  }

  /* 2. HERO CTA НА DESKTOP — крупнее и заметнее */
  @media (min-width: 901px) {
    .hero-ctas .btn {
      padding: 20px 32px;
      font-size: 14px;
    }
    .hero-ctas .btn-primary {
      box-shadow: 4px 4px 0 var(--text);
      transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    }
    .hero-ctas .btn-primary:hover {
      transform: translate(-2px, -2px);
      box-shadow: 6px 6px 0 var(--text);
    }
  }

  /* 3. INPUT FOCUS — явный brutalism */
  input:focus,
  textarea:focus,
  select:focus {
    background: var(--accent-soft) !important;
    border-color: var(--text) !important;
    outline: 2px solid var(--accent);
    outline-offset: -4px;
    box-shadow: 4px 4px 0 var(--accent);
  }
  .form-row input:focus,
  .form-row textarea:focus {
    background: var(--accent-soft) !important;
  }

  /* 4. HERO-STAT (категории) на мобиле — компактнее */
  @media (max-width: 720px) {
    .cat-hero-stat,
    .svc-hero-stat {
      padding: 14px 16px;
    }
    .cat-stat-value,
    .svc-hero-stat .val {
      font-size: 20px;
    }
    .cat-stat-label,
    .svc-hero-stat .lbl {
      font-size: 9px;
    }
  }

  /* 5. КАРТОЧКИ ТОВАРОВ — улучшение subtle (тень на hover уже есть) */
  /* 6. Усиление флагман-блока на главной (jumbo больше) */
  @media (min-width: 901px) {
    .flagship-jumbo {
      font-size: clamp(180px, 26vw, 380px);
      opacity: 0.09;
    }
  }


/* ================================================================
   service.html — переделанный hero и блок «Что входит в сервис»
   ================================================================ */

  /* HERO: фото справа, текст слева, stat-плашки под текстом (не отдельной колонкой) */
  .srv-hero-text {
    display: flex;
    flex-direction: column;
  }
  .srv-hero-text .srv-hero-stats {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border: 2px solid var(--line);
    background: var(--bg-1);
  }
  .srv-hero-text .srv-hero-stats .svc-hero-stat {
    padding: 16px 18px;
    border-right: 2px solid var(--line);
    border-bottom: 2px solid var(--line);
  }
  .srv-hero-text .srv-hero-stats .svc-hero-stat:nth-child(2n) { border-right: none; }
  .srv-hero-text .srv-hero-stats .svc-hero-stat:nth-last-child(-n+2) { border-bottom: none; }

  .srv-hero-visual {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: var(--bg-3);
    border: 2px solid var(--line);
  }
  .srv-hero-visual .toned-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.18) brightness(0.92);
  }

  /* БЛОК «Что входит» с акцент-цифрой 07 */
  .srv-directions-head {
    display: grid;
    grid-template-columns: 1.4fr 0.7fr;
    gap: 60px;
    margin-bottom: 60px;
    align-items: end;
    padding-bottom: 40px;
    border-bottom: 2px solid var(--line);
  }
  .srv-dir-num {
    text-align: right;
    background: var(--accent);
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    border: 2px solid var(--line);
    position: relative;
  }
  .srv-dir-num::before {
    content: "";
    position: absolute;
    top: -2px; left: -2px;
    width: 32px; height: 32px;
    background:
      repeating-linear-gradient(
        -45deg,
        var(--text), var(--text) 5px,
        var(--accent), var(--accent) 10px
      );
    clip-path: polygon(0 0, 100% 0, 0 100%);
  }
  .srv-dir-big {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: clamp(80px, 12vw, 140px);
    line-height: 0.85;
    color: var(--text);
    letter-spacing: -0.05em;
  }
  .srv-dir-cap {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text);
    text-align: right;
    line-height: 1.3;
  }

  @media (max-width: 1024px) {
    .srv-directions-head { grid-template-columns: 1fr; gap: 30px; }
    .srv-dir-num { align-items: flex-start; text-align: left; }
    .srv-dir-cap { text-align: left; }
  }
  @media (max-width: 720px) {
    .srv-hero-visual { aspect-ratio: 4/3; }
    .srv-dir-big { font-size: 64px; }
  }

  /* cat-title на мобиле — точные размеры, чтобы длинные слова не вылазили */
  @media (max-width: 640px) {
    .cat-title { font-size: 20px !important; }
    .cat-card.featured .cat-title { font-size: 28px !important; }
  }

  /* hero-pillars: на узких десктопах текст может вылазить — уменьшаем padding и font */
  @media (max-width: 1280px) and (min-width: 901px) {
    .hero-pillar { padding: 22px 18px 20px; min-height: 180px; }
    .hp-num { font-size: 48px; margin-bottom: 14px; }
    .hp-title { font-size: 18px; }
    .hp-action { font-size: 10px; padding-top: 10px; }
    .hp-hazard { width: 44px; height: 44px; }
  }

  /* ============================================================= */
  /* FAKTURA TECH — реальные фото оборудования (v8, цвет Core)      */
  /* Ассеты в img/products/ показываем В ЦВЕТЕ на чистом белом.     */
  /* Picsum-заглушки (сценарии/команда/флагман) остаются            */
  /* тонированными, чтобы каталог выглядел единым.                  */
  /* ============================================================= */

  /* белая подложка под фото вместо тёмной */
  .pp-main-photo,
  .pp-thumb { background: var(--bg-1); }
  .product-card .product-photo { background: var(--bg-1); }

  /* цвет для реальных фото — чисто, без grayscale */
  .pp-main-photo img,
  .pp-thumb img,
  .product-photo img[src*="img/products/"],
  .cat-thumb img[src*="img/products/"] {
    filter: contrast(1.04) saturate(1.05);
  }
  /* флагман — всегда в полном цвете во всех слотах (hero, блок, карточки) */
  img[src*="img/products/flagship/"] {
    filter: contrast(1.03) saturate(1.04) !important;
  }

  /* SVG-иконки сценариев — фирменная графика, показываем как есть (без grayscale) */
  img[src*="scenarios/icons/"] {
    filter: none !important;
    object-fit: cover;
  }
  /* над светлыми иконками не нужен тёмный градиент-оверлей */
  .scenario-img:has(img[src*="scenarios/icons/"])::after,
  .task-img:has(img[src*="scenarios/icons/"])::after,
  .scenario:has(img[src*="scenarios/icons/"]) .scenario-img::after { background: none !important; }

  /* ============================================================= */
  /* FAKTURA TECH — premium photo-cards (полная композиция в файле) */
  /* У карточек свои уголки/тег/hazard — убираем дублирующую        */
  /* CSS-рамку и фильтры, показываем как есть.                      */
  /* ============================================================= */
  .pp-main-corners { display: none; }
  .pp-main-photo::after,
  .product-card .product-photo::after { display: none; }
  .pp-main-photo,
  .pp-thumb,
  .product-card .product-photo,
  .cat-thumb { background: #F3F1EA; }
  .pp-main-photo img,
  .pp-thumb img,
  .product-photo img[src*="img/products/"],
  .cat-thumb img[src*="img/products/"],
  img[src*="img/products/flagship/"] { filter: none !important; }
  .pp-thumb:hover img,
  .pp-thumb.active img { filter: contrast(1.06) saturate(1.1); }
  .product-card:hover .product-photo img[src*="img/products/"] {
    filter: contrast(1.06) saturate(1.1);
    transform: scale(1.04);
  }

  /* убрать тёмный нижний градиент над белыми фото (серая грязь) */
  .pp-main-photo::after {
    background: linear-gradient(180deg, transparent 88%, rgba(0,0,0,0.05) 100%);
  }
  .product-card .product-photo::after {
    background: linear-gradient(180deg, transparent 84%, rgba(0,0,0,0.05) 100%);
  }

  /* ============================================================= */
  /* FAKTURA TECH — моушен-слой (v8): живой, но сдержанный          */
  /* Брутализм: резко, быстро, без «слоупа». 1/4 экрана максимум.   */
  /* ============================================================= */

  /* 1. Живые hazard-полосы — медленный индустриальный «конвейер» */
  .hazard-strip {
    background-size: 56.57px 56.57px;
    animation: ft-hazard-scroll 3.2s linear infinite;
  }
  .hazard-strip.thin { animation-duration: 4s; }
  @keyframes ft-hazard-scroll {
    to { background-position: 56.57px 0; }
  }

  /* 2. Жёлтые уголки галереи «прорисовываются» при появлении */
  .pp-main-corners::before,
  .pp-main-corners::after {
    animation: ft-corner-in .6s ease both;
  }
  .pp-main-corners::after { animation-delay: .12s; }
  @keyframes ft-corner-in {
    from { width: 0; height: 0; opacity: 0; }
    to   { width: 24px; height: 24px; opacity: 1; }
  }

  /* 3. Главное фото товара «оседает» из лёгкого зума при reveal */
  .reveal .pp-main-photo img,
  .reveal .flagship-visual img { transform: scale(1.05); transition: transform .7s cubic-bezier(.2,.7,.2,1); }
  .reveal.in .pp-main-photo img,
  .reveal.in .flagship-visual img { transform: scale(1); }

  /* 4. Кроссфейд при переключении миниатюр галереи */
  .pp-main-photo img { transition: opacity .18s ease, filter .15s ease; }
  .pp-main-photo.swapping img { opacity: 0; }

  /* 5. Scroll-progress: тонкая жёлтая линия прогресса сверху */
  .scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: var(--accent);
    border-right: 2px solid var(--line);
    z-index: 200;
    pointer-events: none;
    transition: width .1s linear;
  }

  /* 6. Карточки товара: чуть более выраженный hover-подъём */
  .product-card { transition: background .15s ease, transform .2s ease, box-shadow .2s ease; }
  .product-card:hover {
    transform: translateY(-3px);
    box-shadow: -6px 6px 0 var(--line);
  }

  /* --- Доступность: уважаем prefers-reduced-motion --- */
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: .001ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: .001ms !important;
      scroll-behavior: auto !important;
    }
    .hazard-strip { animation: none; }
    .reveal, .reveal.in,
    .stagger-children > *,
    .pp-main-photo img { transform: none !important; opacity: 1 !important; }
  }

  /* ============================================================= */
  /* FAKTURA TECH — лазерная hero-анимация (панель гравировки)     */
  /* ============================================================= */
  .hero-inner > * { min-width: 0; }   /* чтобы fr-колонка анимации не схлопывалась под широким заголовком */
  .hero-laser {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #121417;
    border: 2px solid var(--line);
    overflow: hidden;
  }
  .hero-laser canvas { display: block; width: 100%; height: 100%; }
  .hero-laser .hl-sc {
    position: absolute; width: 26px; height: 26px;
    border: 3px solid var(--accent); z-index: 4; pointer-events: none;
  }
  .hero-laser .hl-sc.tl { top: 14px; left: 14px; border-right: none; border-bottom: none; }
  .hero-laser .hl-sc.tr { top: 14px; right: 14px; border-left: none; border-bottom: none; }
  .hero-laser .hl-sc.bl { bottom: 26px; left: 14px; border-right: none; border-top: none; }
  .hero-laser .hl-sc.br { bottom: 26px; right: 14px; border-left: none; border-top: none; }
  .hero-laser .hl-hud,
  .hero-laser .hl-stat,
  .hero-laser .hl-cap {
    position: absolute; z-index: 4;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px; letter-spacing: 0.12em; color: #8b9096;
  }
  .hero-laser .hl-hud { left: 18px; top: 16px; }
  .hero-laser .hl-hud b { color: var(--accent); }
  .hero-laser .hl-stat { right: 20px; top: 16px; display: flex; align-items: center; gap: 7px; }
  .hero-laser .hl-cap { left: 20px; bottom: 26px; color: #cfd3d6; letter-spacing: 0.14em; }
  .hero-laser .hl-led {
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--accent); box-shadow: 0 0 10px var(--accent);
  }
  .hero-laser .hl-led.done { background: #34d058; box-shadow: 0 0 8px #34d058; }
  .hero-laser .hl-haz {
    position: absolute; left: 0; right: 0; bottom: 0; height: 14px; z-index: 4;
    background: repeating-linear-gradient(-45deg, var(--accent) 0 12px, var(--line) 12px 24px);
  }
  @media (prefers-reduced-motion: reduce) {
    .hero-laser .hl-led { background: #34d058; box-shadow: none; }
  }

  /* ===== FIX: жёлтые плашки в заголовках не съедают верхушки букв соседних строк.
     Заголовок создаёт стекинг-контекст, фон плашки уходит на слой ниже текста ===== */
  h1, h2, h3, .flagship-title, .cat-title, .pp-title {
    position: relative;
    z-index: 0;
  }
  h1 mark, h2 mark, h3 mark,
  h1 .accent, h2 .accent, h3 .accent,
  h1 .line2, .flagship-title .line2 {
    position: relative;
    z-index: -1;
  }

  /* сетка товаров из двух карточек: без пустой тёмной колонки */
  .product-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  @media (max-width: 720px) {
    .product-grid.cols-2 { grid-template-columns: 1fr; }
  }

  /* плашки-маркеры в заголовках: 82% высоты строки, по центру.
     Строки не слипаются, буквы не упираются в край плашки */
  h1 mark, h2 mark, h3 mark, h1 .accent {
    background: linear-gradient(var(--accent), var(--accent)) 0 58% / 100% 82% no-repeat !important;
  }

  /* подбор под задачу: блок рекомендации */
  .config-price { gap: 24px; flex-wrap: wrap; }
  .config-rec { min-width: 0; }
  .config-rec-name {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 22px; font-weight: 700;
    margin-top: 4px; color: var(--text);
  }
  .config-rec-why {
    font-size: 13px; color: var(--text-dim);
    font-weight: 500; line-height: 1.5;
    margin-top: 4px; max-width: 340px;
  }
  .config-rec-ctas { display: flex; gap: 0; flex-wrap: wrap; align-items: center; }
  @media (max-width: 640px) {
    .config-rec-ctas { width: 100%; }
    .config-rec-ctas .btn { flex: 1; justify-content: center; }
  }

  /* видео-панель процесса в баннере услуг (правые 44%, не во весь экран) */
  .banner-video {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 44%;
    z-index: 1;
    overflow: hidden;
    border-left: 2px solid var(--line);
    background: var(--text);
  }
  .banner-video video {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(1) contrast(1.1) brightness(0.95);
  }
  .banner-video-tag {
    position: absolute;
    left: 12px; bottom: 12px;
    background: var(--accent);
    color: var(--text);
    border: 2px solid var(--text);
    padding: 4px 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.14em;
  }
  @media (max-width: 640px) {
    .banner-video { display: none; }
  }
  @media (prefers-reduced-motion: reduce) {
    .banner-video video { display: none; }
  }

  /* статус отправки формы + подсветка ошибок */
  .form-status {
    margin-top: 16px;
    padding: 12px 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 2px solid var(--line);
  }
  .form-status[data-type="ok"] { background: var(--accent); color: var(--text); border-color: var(--text); }
  .form-status[data-type="error"] { background: #fff; color: #c0392b; border-color: #c0392b; }
  .field-error { outline: 2px solid #c0392b !important; outline-offset: 1px; }

  /* логотипы партнёров в ячейках */
  .partner-cell img {
    max-width: 74%;
    max-height: 58%;
    object-fit: contain;
    display: block;
  }
