  :root {
    --bg: #FFFFFF;
    --bg-alt: #F6F6F6;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F6F6F6;
    --rule: #E4E4E4;
    --rule-soft: #EEEEEE;
    --text: #1A1A1A;
    --text-dim: #5C5C5C;
    --text-faint: #8C8C8C;
    --red: #E31E24;
    --red-strong: #C0181D;
    --red-dim: rgba(227,30,36,0.08);
    --gold: #C8AA64;
    --olive: #5C6430;
    --olive-dim: rgba(92,100,48,0.08);
    --card-shadow: 0 1px 2px rgba(0,0,0,0.05);
    --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
    --font-body: -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, "SF Mono", Consolas, monospace;
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); max-width: 100%; overflow-x: hidden; }
  body { font-family: var(--font-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
  h1, h2, h3 { font-family: var(--font-body); font-weight: 600; margin: 0; text-wrap: balance; }
  a { color: inherit; }
  img { max-width: 100%; }
  button { font-family: inherit; cursor: pointer; }

  .wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
  @media (max-width: 640px) { .wrap { padding: 0 20px; } }

  .eyebrow {
    font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px;
    color: var(--text-faint); display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
  }
  .eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
  .eyebrow.olive .dot { background: var(--olive); }

  /* ---------- utility bar ---------- */
  .utility-bar { background: var(--bg-alt); border-bottom: 1px solid var(--rule-soft); font-size: 12.5px; color: var(--text-dim); }
  .utility-bar .wrap { display: flex; align-items: center; gap: 24px; height: 36px; }
  .utility-bar a { text-decoration: none; color: inherit; }
  .utility-bar a:hover { color: var(--red); }
  .utility-spacer { margin-left: auto; }
  @media (max-width: 760px) { .utility-bar { display: none; } }

  /* ---------- nav ---------- */
  /* position:fixed (not sticky) — Safari drops sticky positioning when any
     ancestor has overflow-x:hidden, which we rely on below to stop horizontal
     drift. .nav-spacer reserves the space fixed removes from normal flow. */
  .nav { position: fixed; top: 0; left: 0; right: 0; z-index: 40; background: rgba(255,255,255,0.82); backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px); border-bottom: 1px solid var(--rule); }
  .nav-spacer { height: 76px; }
  .nav .wrap { display: flex; align-items: center; gap: 32px; height: 76px; min-width: 0; }
  .brand { display: flex; align-items: center; gap: 11px; margin-right: auto; text-decoration: none; min-width: 0; overflow: hidden; }
  .brand-logo { height: 30px; width: auto; flex-shrink: 0; display: block; }
  .brand-text { display: flex; flex-direction: column; justify-content: center; gap: 3px; line-height: 1; min-width: 0; overflow: hidden; }
  .brand-tag { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .navlinks { display: flex; gap: 26px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; color: var(--text); }
  .navlinks a { text-decoration: none; }
  .navlinks a:hover { color: var(--red); }
  .nav-toggle { display: none; background: none; border: none; color: var(--text); width: 32px; height: 32px; align-items: center; justify-content: center; padding: 0; }
  .nav-right { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
  .nav-phone { font-family: var(--font-mono); font-size: 14px; color: var(--text); text-decoration: none; white-space: nowrap; }
  .nav-icon-btn {
    width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--rule); background: none;
    display: flex; align-items: center; justify-content: center; color: var(--text); position: relative; flex-shrink: 0;
  }
  .nav-icon-btn:hover { border-color: var(--red); color: var(--red); }
  .nav-icon-btn svg { width: 17px; height: 17px; }
  .nav-icon-btn--filled { background: var(--red); border-color: var(--red); color: #fff; }
  .nav-icon-btn--filled:hover { background: var(--red-strong); border-color: var(--red-strong); color: #fff; }
  .cart-badge {
    position: absolute; top: -4px; right: -4px; background: #fff; color: var(--red);
    font-family: var(--font-mono); font-size: 10px; font-weight: 700; width: 16px; height: 16px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 1.5px var(--red);
  }
  .btn {
    font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; padding: 11px 20px; border-radius: 2px;
    border: 1px solid transparent; text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease; white-space: nowrap;
  }
  .btn-primary { background: var(--red); color: #fff; }
  .btn-primary:hover { background: var(--red-strong); }
  .btn-ghost { border-color: var(--rule); color: var(--text); background: transparent; }
  .btn-ghost:hover { border-color: var(--red); color: var(--red); }
  .btn:focus-visible { outline: 2px solid var(--red-strong); outline-offset: 2px; }
  @media (max-width: 900px) {
    .nav-toggle { display: flex; }
    .navlinks {
      position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
      background: var(--bg); border-bottom: 1px solid var(--rule);
      max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.25s ease, opacity 0.2s ease;
    }
    .navlinks.open { max-height: 320px; opacity: 1; }
    .navlinks a { padding: 14px 20px; border-top: 1px solid var(--rule-soft); }
  }
  @media (max-width: 640px) {
    .nav .wrap {
      display: grid; grid-template-columns: 1fr auto; column-gap: 12px; row-gap: 8px;
      grid-template-areas: "phone cart" "brand toggle";
      height: auto; padding: 10px 20px 12px; align-items: center;
    }
    .nav-phone { grid-area: phone; display: block; justify-self: start; }
    .nav-right { grid-area: cart; justify-self: end; gap: 10px; margin-right: 6px; }
    .nav-right .nav-icon-btn:not(.nav-icon-btn--filled) { display: none; }
    .nav-right .btn-primary { display: none; }
    .brand { grid-area: brand; width: 100%; min-width: 0; overflow: hidden; }
    .brand-tag { display: none; }
    .nav-toggle { grid-area: toggle; justify-self: end; }
    /* CSS-only fallback matching the two-row layout's real height, in case the
       JS spacer sync (ResizeObserver etc.) doesn't run in time on some browsers. */
    .nav-spacer { height: 101px; }
  }
  @media (max-width: 380px) {
    .brand-logo { height: 24px; }
  }

  /* ---------- hero ---------- */
  .hero { position: relative; overflow: hidden; background: #14110D; min-height: 560px; display: flex; align-items: center; }
  .hero > .wrap { width: 100%; }
  .hero-slides { position: absolute; inset: 0; }
  .hero-slide-img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transition: opacity 1.1s ease;
  }
  .hero-slide-img.active { opacity: 1; }
  .hero-scrim {
    position: absolute; inset: 0;
    background:
      linear-gradient(100deg, rgba(10,8,6,0.86) 0%, rgba(10,8,6,0.72) 34%, rgba(10,8,6,0.4) 58%, rgba(10,8,6,0.15) 80%, rgba(10,8,6,0.5) 100%),
      linear-gradient(to top, rgba(10,8,6,0.85), rgba(10,8,6,0) 42%);
  }
  .hero-inner { position: relative; padding: 88px 0 64px; max-width: 680px; }
  .hero .eyebrow { color: rgba(255,255,255,0.65); }
  .hero h1 {
    font-family: var(--font-body); font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em;
    font-size: clamp(28px, 4.6vw, 46px); line-height: 1.18; margin-bottom: 20px; color: #fff;
    transition: opacity 0.4s ease; min-height: 1.18em;
  }
  .hero h1 .accent { color: var(--red); }
  .hero p.lede { font-size: 17px; color: rgba(255,255,255,0.78); max-width: 52ch; margin: 0 0 32px; transition: opacity 0.4s ease; }
  .hero-dots { display: flex; gap: 8px; }
  .hero-dots button { width: 7px; height: 7px; padding: 0; border-radius: 50%; background: rgba(255,255,255,0.35); border: none; transition: background 0.2s ease, width 0.2s ease; }
  .hero-dots button.active { background: var(--red); width: 20px; border-radius: 4px; }
  @media (max-width: 640px) { .hero { min-height: 480px; } .hero-inner { padding: 56px 0 40px; } .hero p.lede { font-size: 15px; margin-bottom: 24px; } }

  /* ---------- sections ---------- */
  section { padding: 80px 0; border-bottom: 1px solid var(--rule-soft); }
  .section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
  .section-head h2 { font-size: 30px; }
  .section-head p { color: var(--text-dim); max-width: 46ch; margin: 10px 0 0; font-size: 15px; }
  @media (max-width: 640px) { section { padding: 52px 0; } .section-head { margin-bottom: 26px; } .section-head h2 { font-size: 24px; } }

  /* textures grid — full-bleed image tiles */
  .tex-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--rule-soft); border: 1px solid var(--rule-soft); }
  @media (max-width: 900px) { .tex-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 380px) { .tex-name-big { font-size: 13px; } }
  .tex-card { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #14100C; min-width: 0; display: block; text-decoration: none; }
  .tex-card img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
  .tex-overlay { position: absolute; inset: 0; padding: 18px; background: linear-gradient(180deg, rgba(10,8,6,0.62) 0%, rgba(10,8,6,0.18) 42%, rgba(10,8,6,0) 62%); }
  .tex-card::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background-color 1.3s ease; }
  .tex-card:hover::after { background: rgba(0,0,0,0.3); }
  .tex-name-big {
    font-family: var(--font-body); font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em;
    font-size: 15px; line-height: 1.25; color: #FBF7EF; text-shadow: 0 1px 4px rgba(0,0,0,0.45); max-width: 80%;
  }
  .tex-strip {
    display: flex; align-items: center; gap: 18px; padding: 20px 24px; margin-top: 2px;
    background: linear-gradient(135deg, var(--red-dim), var(--bg-card) 70%);
    border: 1px solid var(--rule-soft); text-decoration: none; transition: background 0.2s ease;
  }
  .tex-strip:hover { background: var(--bg-card-hover); }
  .tex-strip .arrow { font-family: var(--font-mono); color: var(--red); font-size: 22px; flex-shrink: 0; }
  .tex-strip .t { font-size: 15px; font-weight: 600; }
  .tex-strip .s { font-size: 13px; color: var(--text-faint); margin-top: 2px; }
  @media (max-width: 460px) { .tex-strip { padding: 16px; gap: 14px; } }

  /* benefits row */
  .benefits-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
  @media (max-width: 800px) { .benefits-row { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 460px) { .benefits-row { grid-template-columns: 1fr; gap: 18px; } }
  .benefit-item { display: flex; align-items: center; gap: 12px; }
  .benefit-icon { width: 30px; height: 30px; color: var(--red); flex-shrink: 0; }
  .benefit-icon svg { width: 100%; height: 100%; }
  .benefit-item .label { font-size: 13.5px; font-weight: 600; line-height: 1.3; }

  /* history timeline */
  .history-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 56px; border-top: 1px solid var(--rule); padding-top: 28px; }
  .history-item { padding: 0 22px; border-left: 1px solid var(--rule); }
  .history-item:first-child { border-left: none; padding-left: 0; }
  .history-era { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--red); font-weight: 700; margin-bottom: 8px; }
  .history-item p { font-size: 13.5px; color: var(--text-dim); margin: 0; line-height: 1.5; }
  @media (max-width: 800px) { .history-strip { grid-template-columns: 1fr 1fr; row-gap: 24px; } .history-item:nth-child(3) { border-left: none; padding-left: 0; } }
  @media (max-width: 460px) {
    .history-strip { grid-template-columns: 1fr; }
    .history-item { border-left: none; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 18px; }
    .history-item:first-child { border-top: none; padding-top: 0; }
  }

  /* factory catalog — compact icon tiles, like the reference row */
  .cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule-soft); border: 1px solid var(--rule-soft); }
  @media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
  @media (max-width: 620px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
  .cat-card {
    background: var(--bg-card); padding: 26px 16px; display: flex; flex-direction: column; align-items: center;
    text-align: center; gap: 10px; text-decoration: none; transition: background 0.15s ease; min-width: 0;
  }
  .cat-card:hover { background: var(--bg-card-hover); }
  .cat-icon { width: 32px; height: 32px; color: var(--red); }
  .cat-icon svg { width: 100%; height: 100%; }
  .cat-card .name { font-size: 14px; font-weight: 600; line-height: 1.3; }
  .cat-card .desc { font-size: 12.5px; color: var(--text-faint); line-height: 1.4; }
  .cat-link { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); display: flex; align-items: center; gap: 5px; margin-top: 2px; }
  .cat-card:hover .cat-link { color: var(--red); }

  /* partner block */
  .partner { background: var(--bg-alt); }
  .partner-box {
    border: 1px solid var(--olive); border-radius: 2px; padding: 40px; display: grid;
    grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
    background: linear-gradient(135deg, var(--olive-dim), var(--bg-card) 65%);
  }
  @media (max-width: 800px) { .partner-box { grid-template-columns: 1fr; } }
  @media (max-width: 640px) { .partner-box { padding: 24px; } }
  .partner-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 26px; }
  .tag { font-family: var(--font-mono); font-size: 12px; border: 1px solid var(--rule); color: var(--text-dim); padding: 5px 11px; border-radius: 20px; }
  .partner-badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--olive); border: 1px solid var(--olive); padding: 6px 12px; border-radius: 20px; margin-bottom: 20px; }
  .partner-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--olive); }
  .btn-olive { background: var(--olive); color: #fff; }
  .btn-olive:hover { background: #71793E; }
  .partner-side { border-left: 1px solid var(--rule); padding-left: 40px; font-size: 14px; color: var(--text-dim); }
  @media (max-width: 800px) { .partner-side { border-left: none; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 20px; } }
  .partner-side strong { color: var(--text); display: block; margin-bottom: 6px; font-family: var(--font-display); font-size: 18px; }

  /* pros */
  .pro-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
  @media (max-width: 800px) { .pro-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 560px) { .pro-grid { grid-template-columns: 1fr; } }
  .pro-card { border: 1px solid var(--rule); padding: 28px; border-radius: 2px; background: var(--bg-card); box-shadow: var(--card-shadow); }
  .pro-card .role { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--red); margin-bottom: 14px; }
  .pro-card h3 { font-size: 19px; margin-bottom: 10px; }
  .pro-card p { font-size: 14px; color: var(--text-dim); margin: 0; }

  /* news */
  .news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
  @media (max-width: 800px) { .news-grid { grid-template-columns: 1fr 1fr; gap: 16px; } }
  @media (max-width: 420px) { .news-grid { gap: 10px; } .news-content { padding: 14px 14px 16px; } .news-card h3 { font-size: 14.5px; } .news-card p { font-size: 12px; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; } }
  .news-card { border: 1px solid var(--rule); border-radius: 2px; overflow: hidden; background: var(--bg-card); box-shadow: var(--card-shadow); text-decoration: none; display: block; transition: background 0.15s ease; }
  .news-card:hover { background: var(--bg-card-hover); }
  .news-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #14100C; }
  .news-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
  .news-card:hover .news-photo img { transform: scale(1.04); }
  .news-photo-brand {
    position: absolute; top: 12px; left: 14px; font-family: var(--font-body); font-weight: 700; font-size: 13px;
    letter-spacing: 0.03em; text-transform: uppercase; color: var(--gold); text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  }
  .news-photo-caption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px 12px 18px;
    border-left: 4px solid var(--red); background: linear-gradient(0deg, rgba(10,8,6,0.85), rgba(10,8,6,0.35));
    color: #fff;
  }
  .news-photo-caption .when { font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.35; }
  .news-photo-caption .cta { font-size: 11.5px; color: rgba(255,255,255,0.8); margin-top: 3px; }
  .news-content { padding: 20px 22px 22px; }
  .news-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
  .news-date { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }
  .news-tag { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--red); border: 1px solid var(--red); border-radius: 20px; padding: 2px 9px; }
  .news-card h3 { font-size: 17px; margin-bottom: 8px; }
  .news-card p { font-size: 13.5px; color: var(--text-dim); margin: 0 0 14px; }
  .news-link { font-family: var(--font-mono); font-size: 12px; color: var(--text); display: flex; align-items: center; gap: 6px; }
  .news-card:hover .news-link { color: var(--red); }

  /* about */
  .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
  @media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; gap: 30px; } }
  .about { background: var(--bg-alt); }
  .about p { color: var(--text-dim); font-size: 15px; max-width: 52ch; }

  /* footer */
  footer { padding: 52px 0 0; }
  .foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
  @media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
  @media (max-width: 460px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } }
  .foot-col h4 { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); margin: 0 0 16px; }
  .foot-col a, .foot-col div { display: block; font-size: 14px; color: var(--text-dim); text-decoration: none; margin-bottom: 10px; }
  .foot-col a:hover { color: var(--red); }
  .foot-bottom {
    display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
    background: var(--bg-alt); border-top: 1px solid var(--rule-soft); padding: 20px 0; font-size: 12px; color: var(--text-faint);
  }
  .foot-bottom .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

  /* concept badge */
  .concept-badge {
    position: fixed; bottom: 22px; left: 22px; z-index: 50; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em;
    background: var(--bg-card); border: 1px solid var(--rule); color: var(--text-faint); padding: 8px 14px; border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  }
  @media (max-width: 640px) { .concept-badge { display: none; } }

  /* cart */
  .cart-pill {
    position: fixed; bottom: max(22px, env(safe-area-inset-bottom)); right: 22px; z-index: 50;
    background: var(--red); color: #fff; border: none; border-radius: 30px; padding: 14px 20px;
    font-family: var(--font-mono); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  }
  .cart-panel {
    position: fixed; bottom: calc(max(22px, env(safe-area-inset-bottom)) + 56px); right: 22px; z-index: 50;
    width: 300px; max-width: calc(100vw - 44px); max-height: 60vh; overflow-y: auto;
    background: var(--bg-card); border: 1px solid var(--rule); border-radius: 4px; padding: 18px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.18); display: none;
  }
  @media (max-width: 420px) { .cart-pill { right: 14px; padding: 12px 16px; font-size: 12px; } .cart-panel { right: 14px; max-width: calc(100vw - 28px); } }
  .cart-panel.open { display: block; }
  .cart-panel h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); margin: 0 0 12px; font-family: var(--font-mono); }
  .cart-empty { font-size: 13px; color: var(--text-faint); }
  .cart-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding: 8px 0; border-bottom: 1px solid var(--rule-soft); }
  .cart-row button { background: none; border: none; color: var(--text-faint); font-size: 15px; }
  .cart-row button:hover { color: var(--red-strong); }
  .cart-submit { width: 100%; margin-top: 14px; background: var(--red); color: #fff; border: none; padding: 10px; border-radius: 2px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer; }
  .cart-submit:disabled { opacity: 0.6; cursor: default; }
  .cart-note { font-size: 11px; color: var(--text-faint); margin-top: 10px; }
  .cart-lead-fields { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
  .cart-input {
    width: 100%; box-sizing: border-box; border: 1px solid var(--rule); border-radius: 2px; padding: 9px 10px;
    font-size: 13px; font-family: inherit; color: var(--text); background: var(--bg-card);
  }
  .cart-input:focus { outline: none; border-color: var(--red); }
  .cart-lead-error { font-size: 11.5px; color: var(--red-strong); }

  /* partner application modal */
  .partner-modal-overlay {
    display: none; position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.5);
    align-items: center; justify-content: center; padding: 20px;
  }
  .partner-modal-overlay.open { display: flex; }
  .partner-modal {
    background: var(--bg-card); border-radius: 4px; padding: 28px; width: 100%; max-width: 380px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3); position: relative;
  }
  .partner-modal h4 { margin: 0 0 6px; font-size: 18px; }
  .partner-modal p.partner-modal-sub { margin: 0 0 18px; font-size: 13px; color: var(--text-dim); }
  .partner-modal-close {
    position: absolute; top: 14px; right: 14px; background: none; border: none; font-size: 18px;
    color: var(--text-faint); cursor: pointer; line-height: 1;
  }
  .partner-modal-close:hover { color: var(--red); }
  .partner-modal .cart-input { margin-bottom: 10px; }
  .partner-modal-submit {
    width: 100%; margin-top: 4px; background: var(--red); color: #fff; border: none; padding: 11px;
    border-radius: 2px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer;
  }
  .partner-modal-submit:disabled { opacity: 0.6; cursor: default; }
  .partner-modal-note { font-size: 11px; color: var(--text-faint); margin-top: 10px; }
  .partner-modal-success { font-size: 14px; color: var(--text); display: none; }
  .partner-modal-success.show { display: block; }

  @media (prefers-reduced-motion: no-preference) {
    .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
    .reveal.in { opacity: 1; transform: translateY(0); }
  }
  @media (prefers-reduced-motion: reduce) {
    .hero-slide-img, .hero h1, .hero p.lede { transition-duration: 0.01ms; }
  }

  /* ---------- category page ---------- */
  .breadcrumb { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); margin-bottom: 18px; }
  .breadcrumb a { text-decoration: none; }
  .breadcrumb a:hover { color: var(--red); }
  .breadcrumb .sep { margin: 0 6px; }
  .cat-hero { padding: 40px 0 8px; }
  .cat-hero h1 { font-size: 32px; margin-bottom: 10px; }
  .cat-hero p { color: var(--text-dim); font-size: 15px; max-width: 60ch; margin: 0; }
  @media (max-width: 640px) { .cat-hero { padding: 28px 0 4px; } .cat-hero h1 { font-size: 24px; } }

  .cat-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 36px; padding: 32px 0 80px; align-items: start; }
  .cat-layout > * { min-width: 0; }
  @media (max-width: 900px) { .cat-layout { grid-template-columns: 1fr; gap: 20px; } }

  .cat-sidebar { position: sticky; top: 96px; min-width: 0; }
  .cat-sidebar-title { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); margin-bottom: 12px; }
  .cat-sidebar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
  .cat-sidebar li { border-left: 2px solid transparent; }
  .cat-sidebar a {
    display: block; padding: 9px 14px; font-size: 14px; color: var(--text-dim); text-decoration: none;
    border-radius: 0 2px 2px 0; transition: background 0.15s ease, color 0.15s ease;
  }
  .cat-sidebar a:hover { background: var(--bg-alt); color: var(--text); }
  .cat-sidebar li.active { border-left-color: var(--red); }
  .cat-sidebar li.active a { color: var(--red); font-weight: 600; background: var(--red-dim); }
  @media (max-width: 900px) {
    .cat-sidebar { position: static; top: auto; }
    .cat-sidebar ul { flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
    .cat-sidebar li { border-left: none; border-bottom: 2px solid transparent; flex: 0 0 auto; }
    .cat-sidebar li.active { border-left-color: transparent; border-bottom-color: var(--red); }
    .cat-sidebar a { white-space: nowrap; padding: 8px 12px; border-radius: 20px; border: 1px solid var(--rule); }
    .cat-sidebar li.active a { border-color: var(--red); }
  }

  .product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  @media (max-width: 800px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
  @media (max-width: 460px) { .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; } }
  .product-card {
    border: 1px solid var(--rule); border-radius: 2px; overflow: hidden; background: var(--bg-card);
    box-shadow: var(--card-shadow); display: flex; flex-direction: column; min-width: 0;
  }
  .product-photo { position: relative; aspect-ratio: 1 / 1; background: var(--bg-alt); overflow: hidden; }
  .product-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .product-info { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
  .product-info h3 { font-size: 14px; line-height: 1.35; font-weight: 600; min-height: 2.7em; overflow-wrap: break-word; }
  .product-price { color: var(--red); font-weight: 700; font-size: 14.5px; }
  .product-price .unit { color: var(--text-faint); font-weight: 400; font-size: 11.5px; margin-left: 3px; }
  .product-actions { margin-top: auto; display: flex; gap: 8px; padding-top: 6px; }
  .product-add {
    flex: 1; font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.03em;
    background: none; border: 1px solid var(--rule); border-radius: 2px; padding: 8px 6px; color: var(--text-dim);
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
  }
  .product-add:hover, .product-add.added { border-color: var(--red); color: var(--red); background: var(--red-dim); }
  .product-more { display: flex; align-items: center; justify-content: center; width: 38px; flex-shrink: 0; border: 1px solid var(--rule); border-radius: 2px; color: var(--text-dim); text-decoration: none; transition: border-color 0.15s ease, color 0.15s ease; }
  .product-more:hover { border-color: var(--red); color: var(--red); }

  .cat-note { margin-top: 28px; padding: 14px 16px; background: var(--bg-alt); border: 1px solid var(--rule-soft); border-radius: 2px; font-size: 12.5px; color: var(--text-faint); }

  /* ---------- product detail page ---------- */
  .product-hero { padding: 32px 0 60px; }
  .product-layout { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 44px; align-items: start; }
  .product-layout > * { min-width: 0; }
  @media (max-width: 900px) { .product-layout { grid-template-columns: 1fr; gap: 24px; } }

  .product-photo-lg { position: relative; aspect-ratio: 1 / 1; background: var(--bg-alt); border-radius: 2px; overflow: hidden; border: 1px solid var(--rule); }
  .product-photo-lg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

  .product-main h1 { font-size: 28px; line-height: 1.25; margin-bottom: 14px; overflow-wrap: break-word; }
  @media (max-width: 640px) { .product-main h1 { font-size: 22px; } }
  .product-main .short-desc { color: var(--text-dim); font-size: 15px; margin-bottom: 22px; max-width: 62ch; }

  .spec-list { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); padding: 14px 0; }
  .spec-list li { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
  .spec-list .label { color: var(--text-faint); }
  .spec-list .value { color: var(--text); font-weight: 500; text-align: right; }

  .product-price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
  .product-price-row .price-big { color: var(--red); font-weight: 700; font-size: 28px; }
  .product-price-row .price-unit { color: var(--text-faint); font-size: 13px; }

  .product-cta { display: flex; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
  .product-cta .product-add {
    flex: 0 0 auto; padding: 13px 26px; font-size: 12.5px; border: 1px solid var(--red); color: var(--red);
    border-radius: 2px; background: var(--red-dim);
  }
  .product-cta .product-add:hover, .product-cta .product-add.added { background: var(--red); color: #fff; }
  .product-note-small { font-size: 12px; color: var(--text-faint); margin-top: 6px; }

  .product-tabs { margin-top: 40px; border-top: 1px solid var(--rule-soft); padding-top: 24px; }
  .product-tabs-nav { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--rule); margin-bottom: 20px; }
  .product-tabs-nav button {
    font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em;
    background: none; border: none; padding: 10px 16px; color: var(--text-faint); border-bottom: 2px solid transparent;
    margin-bottom: -1px; transition: color 0.15s ease, border-color 0.15s ease;
  }
  .product-tabs-nav button:hover { color: var(--text); }
  .product-tabs-nav button.active { color: var(--red); border-bottom-color: var(--red); }
  .product-tab-panel { display: none; font-size: 14.5px; color: var(--text-dim); line-height: 1.7; max-width: 72ch; }
  .product-tab-panel.active { display: block; }
  .product-tab-panel p { margin: 0 0 14px; }
  .product-tab-panel p:last-child { margin-bottom: 0; }

  .char-table { width: 100%; border-collapse: collapse; font-size: 14px; }
  .char-table tr { border-bottom: 1px solid var(--rule-soft); }
  .char-table tr:last-child { border-bottom: none; }
  .char-table th, .char-table td { text-align: left; padding: 10px 12px 10px 0; font-weight: 400; vertical-align: top; }
  .char-table th { color: var(--text-faint); width: 45%; white-space: normal; }
  .char-table td { color: var(--text); }
  @media (max-width: 480px) { .char-table th { width: 50%; } .char-table th, .char-table td { padding: 8px 8px 8px 0; font-size: 13px; } }

  .product-pdf-link { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--red); text-decoration: none; margin-top: 4px; }
  .product-pdf-link:hover { text-decoration: underline; }

  .related-products { margin-top: 56px; }
  .related-products h2 { font-size: 20px; margin-bottom: 20px; }

  /* ---------- factory catalog (tm-product) ---------- */
  .product-bullets { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
  .product-bullets li { position: relative; padding-left: 16px; font-size: 14px; color: var(--text-dim); line-height: 1.5; }
  .product-bullets li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
  .ean-tag { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); margin-bottom: 18px; }
  .price-on-request { color: var(--text-faint); font-size: 13px; font-style: italic; margin-bottom: 20px; }
  .tm-card-noprice .product-info { justify-content: space-between; }
  .tm-card-noprice .price-on-request-sm { font-size: 11.5px; color: var(--text-faint); font-style: italic; }
  .subsection-block { margin-bottom: 20px; }
  .subsection-block:last-child { margin-bottom: 0; }
  .subsection-block h4 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
  .subsection-block p { white-space: pre-line; }

  /* ---------- info article pages (О компании / Решения / Сервис) ---------- */
  .info-article { max-width: 76ch; padding: 8px 0 70px; }
  .info-article p { font-size: 15px; line-height: 1.75; color: var(--text-dim); margin: 0 0 18px; }
  .info-article p strong { color: var(--text); }
  .info-figure { margin: 24px 0; }
  .info-figure img { width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 2px; display: block; }
  .info-table { margin: 24px 0 30px; }
  .info-table th { width: 38%; }

  .hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 8px 0 70px; }
  @media (max-width: 800px) { .hub-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
  @media (max-width: 500px) { .hub-grid { grid-template-columns: 1fr; } }
  .hub-card {
    display: block; padding: 22px 20px; border: 1px solid var(--rule); border-radius: 2px; background: var(--bg-card);
    box-shadow: var(--card-shadow); text-decoration: none; min-width: 0; transition: border-color 0.15s ease, background 0.15s ease;
  }
  .hub-card:hover { border-color: var(--red); background: var(--bg-card-hover); }
  .hub-card .name { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
  .hub-card .desc { font-size: 13px; color: var(--text-faint); line-height: 1.5; margin-bottom: 14px; }
  .hub-card .cat-link { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; color: var(--text-faint); }
  .hub-card:hover .cat-link { color: var(--red); }

  .faq-group-title {
    font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--red); font-family: var(--font-mono);
    margin: 34px 0 14px;
  }
  .faq-group-title:first-child { margin-top: 8px; }
  .faq-item { border: 1px solid var(--rule); border-radius: 2px; margin-bottom: 8px; padding: 0; background: var(--bg-card); }
  .faq-item summary {
    padding: 14px 16px; font-size: 14.5px; font-weight: 600; color: var(--text); cursor: pointer; list-style: none;
    display: flex; justify-content: space-between; gap: 12px; align-items: center;
  }
  .faq-item summary::-webkit-details-marker { display: none; }
  .faq-item summary::after { content: "+"; color: var(--text-faint); font-size: 18px; flex-shrink: 0; }
  .faq-item[open] summary::after { content: "–"; }
  .faq-item p { padding: 0 16px 16px; margin: 0; font-size: 14px; color: var(--text-dim); }

  .video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-bottom: 60px; }
  @media (max-width: 900px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 560px) { .video-grid { grid-template-columns: 1fr; } }
  .video-card { min-width: 0; }
  .video-embed { position: relative; aspect-ratio: 16 / 9; background: var(--bg-alt); border-radius: 2px; overflow: hidden; }
  .video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
  .video-title { font-size: 13px; color: var(--text-dim); margin-top: 8px; line-height: 1.4; }

  .info-article:has(.gallery-grid) { max-width: none; }
  .gallery-room-title { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--red); font-family: var(--font-mono); margin: 34px 0 14px; }
  .gallery-room-title:first-of-type { margin-top: 8px; }
  .gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 10px; }
  @media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 460px) { .gallery-grid { grid-template-columns: 1fr; } }
  .gallery-card { min-width: 0; border: 1px solid var(--rule); border-radius: 2px; overflow: hidden; text-decoration: none; background: var(--bg-card); display: block; transition: border-color 0.15s ease; }
  .gallery-card:hover { border-color: var(--red); }
  .gallery-card img { width: 100%; height: auto; display: block; aspect-ratio: 4 / 3; object-fit: cover; }
  .gallery-caption { padding: 10px 12px; font-size: 13px; font-weight: 600; color: var(--text); }
