/* exjoint.ru — восстановленный каталог гидрошпонок
   Дизайн-система: инженерная спецификация, петроль + сигнальный оранжевый */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-cyrillic.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

:root {
  --ink: #10171c;
  --ink-2: #26313b;
  --muted: #5f6b76;
  --muted-2: #8a949d;
  --brand: #0e4d64;
  --brand-2: #0a3745;
  --brand-3: #d9e7ee;
  --accent: #e1661b;
  --accent-2: #b84e10;
  --paper: #f5f6f4;
  --card: #ffffff;
  --line: #dde2e0;
  --line-2: #eceeeb;
  --ok: #1c7a52;
  --warn: #a15c07;
  --r: 6px;
  --shadow: 0 1px 2px rgba(16, 23, 28, .05), 0 8px 24px -12px rgba(16, 23, 28, .18);
  --wrap: 1280px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(26px, 3.4vw, 42px); }
h2 { font-size: clamp(22px, 2.4vw, 30px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.15em; }
li { margin: .35em 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
small { font-size: 13px; }
.mono { font-variant-numeric: tabular-nums; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.grid { display: grid; gap: 16px; }

/* ---------- header ---------- */
.topbar {
  background: var(--brand-2);
  color: #cfe0e7;
  font-size: 13px;
}
.topbar .wrap { display: flex; gap: 20px; align-items: center; height: 38px; }
.topbar a { color: #eaf3f6; }
.topbar a:hover { color: #fff; }
.topbar .sep { flex: 1; }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }

.head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.head .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.03em; font-size: 21px; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo-mark { width: 34px; height: 34px; flex: 0 0 34px; }
.logo span { line-height: 1.02; display: block; }
.logo small { display: block; margin-top: 3px; font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }

.nav { display: flex; gap: 22px; margin-left: 8px; }
.nav a { color: var(--ink-2); font-size: 15px; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.is-active { color: var(--brand); border-color: var(--accent); }

.head-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.head-phone { font-weight: 700; font-size: 16px; color: var(--ink); white-space: nowrap; }
.head-phone span { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: .02em; }

.head .burger { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--r);
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: .15s;
}
.btn:hover { background: var(--brand-2); color: #fff; border-color: var(--brand-2); }
.btn--accent { background: var(--accent); border-color: var(--accent); }
.btn--accent:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn--ghost { background: transparent; color: var(--brand); border-color: #bfd0d8; }
.btn--ghost:hover { background: #eef4f6; color: var(--brand-2); border-color: var(--brand); }
.btn--sm { padding: 9px 14px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- hero ---------- */
.hero { background: var(--brand-2); color: #eaf2f5; position: relative; overflow: hidden; }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .35) 60%, transparent 100%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; padding-top: 64px; padding-bottom: 64px; }
.hero h1 { color: #fff; font-size: clamp(30px, 3.9vw, 50px); line-height: 1.05; letter-spacing: -.03em; }
.hero .lead { font-size: 18px; line-height: 1.55; color: #b9cdd6; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 30px; }
.hero .btn--ghost { color: #dbeaf0; border-color: rgba(255, 255, 255, .35); }
.hero .btn--ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .6); }
.hero-facts { display: flex; gap: 32px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 22px; }
.hero-facts b { display: block; font-size: 26px; font-weight: 700; color: #fff; letter-spacing: -.02em; }
.hero-facts span { font-size: 13px; color: #9fb6c1; }
.hero-art { align-self: center; }
.hero-art svg { width: 100%; height: auto; }
.hero-art figcaption { font-size: 12.5px; color: #8fa8b4; margin-top: 10px; text-align: center; }

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section--tight { padding: 44px 0; }
.section--white { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { display: flex; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.sec-head .hgroup { max-width: 760px; }
.sec-head h2 { margin: 0 0 6px; }
.sec-head p { margin: 0; color: var(--muted); font-size: 16px; }
.sec-head .more { margin-left: auto; white-space: nowrap; font-weight: 600; font-size: 15px; }
.kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 10px;
}

/* ---------- cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px;
  transition: .15s;
}
.card:hover { border-color: #b9c6cc; box-shadow: var(--shadow); }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 20px 20px;
  color: inherit;
  position: relative;
  transition: .15s;
}
.tile:hover { border-color: var(--brand); color: inherit; transform: translateY(-2px); }
.tile .tile-ico { width: 46px; height: 46px; }
.tile h3 { margin: 0; font-size: 17px; }
.tile p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.tile .tile-n { margin-top: auto; font-size: 12.5px; color: var(--muted-2); }

/* type chips */
.chips { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.chip {
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 14px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  color: var(--ink);
}
.chip b { font-size: 17px; letter-spacing: -.01em; }
.chip span { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.chip:hover { border-color: var(--brand); color: var(--ink); background: #f2f7f9; }

/* brand list */
.brands { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.brand-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r);
  background: #fff; color: var(--ink-2); font-weight: 600;
}
.brand-item em { font-style: normal; font-size: 12.5px; color: var(--muted-2); font-weight: 500; }
.brand-item:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.step { padding: 24px 22px; border-right: 1px solid var(--line-2); }
.step:last-child { border-right: 0; }
.step b { display: block; font-size: 13px; color: var(--accent); letter-spacing: .1em; margin-bottom: 8px; }
.step h3 { font-size: 16px; margin: 0 0 6px; }
.step p { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- product grid ---------- */
.plist { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pcard {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; color: inherit; transition: .15s;
}
.pcard:hover { border-color: #b9c6cc; box-shadow: var(--shadow); color: inherit; }
.pcard-img { position: relative; aspect-ratio: 3 / 2; background: #fff; display: flex; align-items: center; justify-content: center; padding: 10px; border-bottom: 1px solid var(--line-2); }
.pcard-img img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }
.pcard-img svg { width: 100%; height: auto; }
.pcard-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard-brand { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.pcard-name { font-weight: 600; font-size: 15px; line-height: 1.35; color: var(--ink); }
.pcard-spec { font-size: 13px; color: var(--muted); }
.pcard-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.price { font-weight: 700; font-size: 18px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price small { font-size: 12px; font-weight: 500; color: var(--muted); }
.price--ask { font-size: 14px; font-weight: 600; color: var(--warn); }
.badge { display: inline-block; padding: 2px 7px; border-radius: 3px; background: #eef2f4; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.badge--ok { background: #e6f4ec; color: var(--ok); }
.badge--ask { background: #fdf1e3; color: var(--warn); }

/* ---------- filters ---------- */
.filters {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px 16px; margin-bottom: 20px;
}
.filters .f-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.fgroup { display: flex; flex-wrap: wrap; gap: 6px; }
.fbtn {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  padding: 6px 11px; border-radius: 999px; font-size: 13.5px; cursor: pointer; font-family: inherit;
}
.fbtn:hover { border-color: var(--brand); color: var(--brand); }
.fbtn.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.filters .spacer { flex: 1; }
.fcount { font-size: 13.5px; color: var(--muted); }
.fsort { border: 1px solid var(--line); border-radius: var(--r); padding: 7px 10px; font: inherit; font-size: 13.5px; background: #fff; }

/* ---------- pagination ---------- */
.pager { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 32px 0 0; }
.pager a, .pager span {
  min-width: 38px; height: 38px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--r); background: #fff; color: var(--ink-2); font-size: 14px;
}
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager .is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager .dots { border: 0; background: none; }

/* ---------- product page ---------- */
.crumbs { font-size: 13px; color: var(--muted); padding: 18px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs span { color: var(--muted-2); margin: 0 6px; }

.p-top { display: grid; grid-template-columns: 1fr 400px; gap: 32px; align-items: start; padding: 18px 0 8px; }
.p-gallery { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: flex; align-items: center; justify-content: center; min-height: 420px; }
.p-gallery img { max-height: 420px; width: auto; }
.p-gallery.fallback { flex-direction: column; gap: 12px; }
.p-gallery .ph-note { font-size: 12.5px; color: var(--muted); text-align: center; max-width: 340px; }
.p-title { margin: 0 0 10px; }
.p-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.buy { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; position: sticky; top: 92px; }
.buy .price { font-size: 30px; }
.buy .buy-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.buy .buy-actions { display: grid; gap: 8px; margin: 16px 0; }
.buy .buy-notes { font-size: 13px; color: var(--muted); display: grid; gap: 6px; }
.buy .buy-notes li { margin: 0; }
.buy ul { list-style: none; padding: 0; }

.specs { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.specs tr:nth-child(odd) td { background: #fafbfa; }
.specs td { padding: 11px 16px; border-bottom: 1px solid var(--line-2); font-size: 14.5px; vertical-align: top; }
.specs tr:last-child td { border-bottom: 0; }
.specs td:first-child { color: var(--muted); width: 46%; }
.specs td:last-child { font-weight: 500; }

.p-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.scheme { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.scheme svg { width: 100%; height: auto; }
.scheme figcaption { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

.prose h2 { font-size: 24px; margin-top: 0; }
.prose h3 { font-size: 18px; margin-top: 26px; }
.prose p, .prose li { font-size: 16px; line-height: 1.7; color: var(--ink-2); }

.note {
  display: flex; gap: 12px;
  background: #fbf6ef; border: 1px solid #f0dfc4; border-left: 3px solid var(--warn);
  border-radius: var(--r); padding: 14px 16px; font-size: 14.5px; color: #6b4a13;
}
.note--info { background: #eef5f8; border-color: #cfe0e7; border-left-color: var(--brand); color: #23505f; }

/* ---------- misc blocks ---------- */
.cat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; color: inherit; display: flex; flex-direction: column; gap: 4px; }
.cat-card:hover { border-color: var(--brand); color: inherit; }
.cat-card b { font-size: 15.5px; }
.cat-card span { font-size: 12.5px; color: var(--muted); }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }

.cta-band { background: var(--brand); color: #eaf2f5; border-radius: var(--r); padding: 34px 36px; display: flex; align-items: center; gap: 32px; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; color: #b9cdd6; }
.cta-band .cta-actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.cta-band .btn--ghost { color: #eaf2f5; border-color: rgba(255, 255, 255, .4); }
.cta-band .btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* ---------- footer ---------- */
.foot { background: #0f1519; color: #9aa7ae; margin-top: 72px; font-size: 14px; }
.foot .wrap { padding-top: 52px; padding-bottom: 34px; }
.foot-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 32px; }
.foot h4 { color: #fff; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; font-weight: 700; }
.foot a { color: #b9c4ca; }
.foot a:hover { color: #fff; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: 0 0 8px; }
.foot .foot-logo { color: #fff; font-weight: 800; font-size: 20px; letter-spacing: -.02em; margin-bottom: 12px; }
.foot-bottom { border-top: 1px solid #232c31; margin-top: 36px; padding-top: 20px; display: flex; gap: 20px; flex-wrap: wrap; font-size: 12.5px; color: #6f7d84; }
.foot-bottom a { color: #6f7d84; }

/* ---------- search ---------- */
.search-box { display: flex; gap: 8px; margin: 20px 0 8px; }
.search-box input {
  flex: 1; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r);
  font: inherit; font-size: 16px; background: #fff;
}
.search-box input:focus { outline: 2px solid #bcd6e0; outline-offset: 1px; border-color: var(--brand); }
.search-hint { font-size: 13.5px; color: var(--muted); }
.sresults { display: grid; gap: 8px; margin-top: 16px; }
.sresult { display: flex; gap: 14px; align-items: baseline; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); color: inherit; }
.sresult:hover { border-color: var(--brand); color: inherit; }
.sresult b { font-weight: 600; }
.sresult span { font-size: 13px; color: var(--muted); margin-left: auto; white-space: nowrap; }

/* ---------- tables ---------- */
.tbl { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); font-size: 14.5px; }
.tbl th { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; background: #fafbfa; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); }
.tbl tr:last-child td { border-bottom: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .tiles, .plist, .brands { grid-template-columns: repeat(3, 1fr); }
  .chips { grid-template-columns: repeat(4, 1fr); }
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; padding-top: 44px; padding-bottom: 44px; }
  .hero-art { max-width: 460px; }
  .p-top { grid-template-columns: 1fr; }
  .buy { position: static; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step { border-bottom: 1px solid var(--line-2); }
  .cat-cards { grid-template-columns: repeat(2, 1fr); }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .head .burger { display: inline-flex; }
  .head .wrap { height: 62px; gap: 10px; }
  .head-phone { display: none; }
  .logo small { display: none; }
  .logo { font-size: 19px; }
  .p-cols { grid-template-columns: 1fr; }
  .tiles, .plist, .brands, .cat-cards { grid-template-columns: repeat(2, 1fr); }
  .chips { grid-template-columns: repeat(2, 1fr); }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 26px; }
  .cta-band .cta-actions { margin-left: 0; }
  .section { padding: 44px 0; }
  .topbar .wrap { gap: 12px; font-size: 12px; }
  .topbar .tb-hide { display: none; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .sec-head .more { margin-left: 0; }
  .p-gallery { min-height: 260px; padding: 14px; }
  .p-gallery img { max-height: 260px; }
  .specs td { padding: 9px 12px; font-size: 14px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .plist, .tiles, .cat-cards { grid-template-columns: 1fr; }
  .brands { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .price { font-size: 16px; }
  .hero-facts { gap: 20px; }
  .foot-cols { grid-template-columns: 1fr; }
}

/* mobile menu */
.mmenu { display: none; position: fixed; inset: 62px 0 auto; background: #fff; border-bottom: 1px solid var(--line); z-index: 39; padding: 14px 16px 20px; box-shadow: var(--shadow); }
.mmenu.is-open { display: block; }
.mmenu a { display: block; padding: 11px 4px; border-bottom: 1px solid var(--line-2); color: var(--ink); font-weight: 500; }

/* print */
@media print {
  .head, .topbar, .foot, .cta-band, .filters, .buy { display: none; }
}
