/* ============================================================
   РИТЕКО — базовые стили и компоненты
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: min(calc(100% - 2 * var(--pad)), var(--container)); margin-inline: auto; }

/* ---------- Матовое стекло ---------- */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
}
.glass-strong { background: var(--glass-bg-strong); }

/* ---------- Типографика ---------- */
.label {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -.03em; line-height: 1.08; }
.h-display { font-size: var(--fs-display); }
.h2 { font-size: var(--fs-h2); }
.lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--ink-70); max-width: 62ch; margin: 18px 0 0; }
.num { font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-50); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  font-size: 15px; font-weight: 650; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; border: 0;
  transition: background .18s var(--ease), transform .18s var(--ease), border-color .18s;
}
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--ink-30);
}
.btn-ghost:hover { border-color: var(--ink); }

/* ---------- Шапка: плавающая стеклянная панель ---------- */
.hdr {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 300;
  padding-inline: var(--pad);
}
.hdr__bar {
  width: min(100%, var(--container)); margin-inline: auto;
  display: flex; align-items: center; gap: 28px;
  padding: 13px 16px 13px 26px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(242, 239, 233, .06), rgba(242, 239, 233, .02)), rgba(11, 10, 8, .62);
  -webkit-backdrop-filter: blur(26px) saturate(1.3);
  backdrop-filter: blur(26px) saturate(1.3);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
}
.hdr__logo { line-height: 0; }
.hdr__logo img { height: 38px; width: auto; }
.hdr__nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.hdr__nav a {
  position: relative;
  padding: 11px 14px; border-radius: 11px;
  font-size: 15px; font-weight: 550; letter-spacing: .01em;
  color: var(--ink-70); text-decoration: none; white-space: nowrap;
  transition: color .15s, background .15s;
}
.hdr__nav a:hover { color: var(--ink); background: rgba(242, 239, 233, .07); }
.hdr__nav a.is-active { color: var(--accent); }
.hdr__cta {
  margin-left: 8px; padding: 11px 20px; font-size: 13.5px;
  white-space: nowrap; flex-shrink: 0; line-height: 1.2;
}

/* узкий десктоп: меню компактнее, кнопка не вылезает из панели */
@media (max-width: 1180px) {
  .hdr__bar { gap: 14px; }
  .hdr__nav a { padding: 8px 9px; font-size: 13px; }
  .hdr__cta { padding: 8px 12px; font-size: 12px; }
}

/* бургер */
.hdr__burger {
  display: none; margin-left: auto;
  width: 44px; height: 44px; padding: 12px;
  background: none; border: 0; cursor: pointer;
}
.hdr__burger span { display: block; height: 2px; margin: 5px 0; background: var(--ink); border-radius: 2px; transition: transform .2s var(--ease), opacity .2s; }
body.menu-open .hdr__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .hdr__burger span:nth-child(2) { opacity: 0; }
body.menu-open .hdr__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* мобильное меню — стеклянный оверлей */
.mnav {
  position: fixed; inset: 0; z-index: 290;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 92px var(--pad) 26px;
  background:
    linear-gradient(180deg, rgba(242, 239, 233, .07), rgba(242, 239, 233, .03)),
    linear-gradient(180deg, rgba(11, 10, 8, .80), rgba(11, 10, 8, .66));
  -webkit-backdrop-filter: blur(30px) saturate(1.25);
  backdrop-filter: blur(30px) saturate(1.25);
  opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility .25s;
}
body.menu-open .mnav { opacity: 1; visibility: visible; }
.mnav a {
  display: block; padding: 9px 4px;
  font-size: 19px; font-weight: 500; letter-spacing: -.02em;
  text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--ink-30);
}
.mnav .btn { margin-top: 20px; padding: 12px 22px; font-size: 14px; display: flex; justify-content: center; align-items: center; text-align: center; }

/* шестерни-«редуктор» над ссылками: в потоке, сжимаются на низких экранах (25.08) */
.mnav-gears {
  position: static; flex: 1 1 auto; min-height: 80px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  pointer-events: none; overflow: hidden;
  opacity: 0; transform: translateY(-10px);
  transition: opacity .35s var(--ease) .14s, transform .35s var(--ease) .14s;
}
body.menu-open .mnav-gears { opacity: 1; transform: none; }
.mnav-gears__img {
  display: block; height: auto; flex: 0 1 auto;
  width: clamp(90px, min(52vw, 26vh), 200px);
}
.mnav-gears__cap {
  margin: 10px 0 14px; white-space: nowrap;
  font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-50);
}
.mnav-gears__cap::before {
  content: ""; display: inline-block; width: 16px; height: 2px;
  background: var(--accent); margin-right: 9px; vertical-align: 3px;
}

/* ---------- Герой ---------- */
.hero { position: relative; overflow: hidden; padding: 150px 0 70px; }
.hero__noise {
  position: absolute; inset: 0; opacity: .06; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='128' height='128' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px;
  align-items: stretch; margin-bottom: 28px;
}
.hero__inner {
  padding: 44px 48px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(242, 239, 233, .09), rgba(242, 239, 233, .045)), linear-gradient(180deg, rgba(11, 10, 8, .20), rgba(11, 10, 8, .10));
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: var(--glass-border); box-shadow: var(--glass-shadow);
}
/* Смеситель целиком — тонирование без матирования */
.hero__machine {
  margin: 0; display: flex; align-items: center; justify-content: center;
  padding: 28px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(242, 239, 233, .08), rgba(242, 239, 233, .03)), linear-gradient(180deg, rgba(11, 10, 8, .42), rgba(11, 10, 8, .28));
  border: var(--glass-border); box-shadow: var(--glass-shadow);
}
.hero__machine img {
  width: 100%; height: auto; display: block;
  filter: brightness(.92) drop-shadow(0 18px 34px rgba(0, 0, 0, .45));
}
.hero__chip {
  display: inline-block; margin-bottom: 22px; padding: 8px 16px;
  font-size: var(--fs-label); font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink);
  background: rgba(11, 10, 8, .4);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: var(--glass-border); border-radius: 999px;
}
.hero h1 { font-size: var(--fs-display); max-width: 14ch; }
.hero .lead { color: rgba(242, 239, 233, .82); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero__facts {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 8px 0;
  background: linear-gradient(180deg, rgba(242, 239, 233, .08), rgba(242, 239, 233, .04)), linear-gradient(180deg, rgba(11, 10, 8, .34), rgba(11, 10, 8, .22));
}
.fact { padding: 20px 28px; border-left: 1px solid var(--ink-30); }
.fact a { color: inherit; text-decoration: none; }
.fact a:hover { color: var(--accent); }
.fact:first-child { border-left: 0; }
.fact b { display: block; font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; letter-spacing: -.02em; }
.fact b.fit { font-size: clamp(16px, 1.45vw, 21px); padding-top: 5px; padding-bottom: 4px; }
.fact span { display: block; margin-top: 4px; font-size: 13px; color: var(--ink-50); }

/* ---------- Секции ---------- */
.sect { padding: var(--sect) 0; }
.sect + .sect { padding-top: 0; }
.sect__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(32px, 4vw, 56px); }
.sect__head h2 { max-width: 20ch; }
.sect__head .lead { margin: 12px 0 0; }

/* ---------- Направления ---------- */
.dirs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.dirs--3 { grid-template-columns: repeat(3, 1fr); }
.dir {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 340px; padding: 28px;
  text-decoration: none; color: var(--ink);
  border-radius: var(--radius);
  border: var(--glass-border);
  transition: transform .25s var(--ease), border-color .25s;
}
.dir:hover { transform: translateY(-3px); border-color: rgba(254, 80, 0, .45); }
.dir__img {
  position: absolute; inset: 0;
  background-color: rgba(11,10,8,.42);
  background-repeat: no-repeat; background-position: center 34%; background-size: contain;
  opacity: .95; transition: opacity .25s, filter .25s, transform .3s var(--ease);
  filter: brightness(.92) saturate(.98);
  /* 25.08: фото-вырезки на тёмном стекле */
}
.dir:hover .dir__img { opacity: 1; transform: scale(1.02); filter: brightness(1) saturate(1); }
.dir__img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,10,8,.18), rgba(11,10,8,.12) 45%, rgba(11,10,8,.88) 94%);
}
.dir__body { position: relative; text-shadow: 0 1px 14px rgba(11, 10, 8, .65), 0 0 3px rgba(11, 10, 8, .4); }
.dir__tag {
  display: inline-block; padding: 4px 10px; border-radius: 8px;
  font-size: 11px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  background: rgba(11, 10, 8, .5);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(242, 239, 233, .12);
}
.dir h3 { font-size: clamp(21px, 1.9vw, 26px); margin: 8px 0 6px; }
.dir p { margin: 0; font-size: 14px; color: var(--ink-70); max-width: 44ch; }
.dir__range { margin-top: 12px; font-size: 13px; color: var(--ink-50); }

/* ---------- Шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { padding: 30px 28px; counter-increment: step; }
.step::before {
  content: "0" counter(step);
  display: block; margin-bottom: 18px;
  font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--accent);
  font-feature-settings: "tnum";
}
.step h3 { font-size: var(--fs-h3); letter-spacing: -.02em; margin-bottom: 8px; }
.step p { margin: 0; font-size: 14px; color: var(--ink-70); }

/* ---------- Проекты ---------- */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project { overflow: hidden; padding: 0; text-decoration: none; }
.project img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.project__body { padding: 20px 22px 24px; }
.project__body b { display: block; font-size: 16px; letter-spacing: -.01em; }
.project__body span { display: block; margin-top: 4px; font-size: 13px; color: var(--ink-50); }

/* ---------- Почему мы ---------- */
.whys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.why { padding: 26px 24px; }
.why b { display: block; font-size: 16px; margin-bottom: 8px; letter-spacing: -.01em; }
.why p { margin: 0; font-size: 13.5px; color: var(--ink-70); line-height: 1.55; }

/* ---------- CTA / форма ---------- */
.cta-panel { padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.cta-panel h2 { margin-bottom: 12px; }
.cta-contacts { margin-top: 28px; display: grid; gap: 8px; font-size: 15px; }
.cta-contacts a { color: var(--ink); text-decoration: none; font-weight: 600; }
.cta-contacts a:hover { color: var(--accent); }

.form { display: grid; gap: 14px; }
.form input, .form textarea {
  width: 100%; padding: 15px 20px;
  font: inherit; font-size: 15px; color: var(--ink);
  background: rgba(11, 10, 8, .45);
  border: 1px solid var(--ink-30); border-radius: var(--radius-s);
  outline: none; transition: border-color .15s;
}
.form input:focus, .form textarea:focus { border-color: var(--accent); }
.form textarea { min-height: 110px; resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: var(--ink-50); }
.form__note { margin: 0; font-size: 12.5px; color: var(--ink-50); }
.form__note a { color: var(--ink-70); }

/* ---------- Подвал ---------- */
.ftr { border-top: 1px solid var(--ink-30); padding: 64px 0 36px; margin-top: var(--sect); background: linear-gradient(180deg, transparent, rgba(242,239,233,.02)); }
.ftr__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.ftr__logo img { height: 34px; width: auto; margin-bottom: 18px; }
.ftr__about { font-size: 13.5px; color: var(--ink-50); max-width: 32ch; line-height: 1.6; }
.ftr__req { margin-top: 18px; font-size: 12px; color: var(--ink-30); line-height: 1.6; }
.ftr h4 { margin: 0 0 16px; font-size: var(--fs-label); font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-50); }
.ftr__col a { display: block; padding: 5px 0; font-size: 14.5px; color: var(--ink-70); text-decoration: none; }
.ftr__col a:hover { color: var(--accent); }
.ftr__phone { font-size: 19px !important; font-weight: 650 !important; color: var(--ink) !important; }
.ftr__bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(242,239,233,.08); display: flex; justify-content: space-between; gap: 16px; font-size: 12.5px; color: var(--ink-30); }

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
  .dirs, .steps { grid-template-columns: 1fr 1fr; }
  .dirs--3 { grid-template-columns: 1fr 1fr; }
  .projects { grid-template-columns: 1fr 1fr; }
  .whys { grid-template-columns: 1fr 1fr; }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .cta-panel { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hdr__nav, .hdr__cta { display: none; }
  .hdr__burger { display: block; }
  .hdr__bar { padding: 10px 12px 10px 18px; }
  .hdr__logo img { height: 30px; }
  .hero { padding-top: 110px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__facts { grid-template-columns: 1fr 1fr; }
  .fact { border-left: 0; border-top: 1px solid var(--ink-30); padding: 20px; }
  .fact:nth-child(-n+2) { border-top: 0; }
  /* единый размер значений — ячейки симметричны, телефон не переносится */
  .fact b, .fact b.fit { font-size: clamp(13px, 3.9vw, 20px); padding: 0; white-space: nowrap; }
}
@media (max-width: 640px) {
  .deco-gear { opacity: .04; }
  .deco-gear--accent { opacity: .06; }
  .dirs, .dirs--3, .steps, .projects, .whys, .ftr__grid { grid-template-columns: 1fr; }
  .sect__head { flex-direction: column; align-items: center; text-align: center; }
  h1, .h2, .sect__head h2 { text-align: center; margin-inline: auto; }
  .label { text-align: center; }
  .hero__inner { padding: 28px 24px; text-align: center; }
  /* кнопки героя — две равные половины, симметрично */
  .hero__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero__actions .btn { width: 100%; padding: 14px 8px; font-size: 13.5px; line-height: 1.25; }
  .fact { text-align: center; padding: 18px 10px; }
  .fact span { margin-inline: auto; }
  .dir { min-height: 260px; }
  .ftr__bottom { flex-direction: column; }
}

/* ---------- Страница «Запчасти» ---------- */
/* компактный герой внутренней страницы */
.phero { position: relative; overflow: hidden; padding: 150px 0 0; }
.phero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px;
  align-items: stretch;
}
.phero__visual {
  margin: 0; display: flex; align-items: center; justify-content: center;
  padding: 28px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(242, 239, 233, .08), rgba(242, 239, 233, .03)), linear-gradient(180deg, rgba(11, 10, 8, .42), rgba(11, 10, 8, .28));
  border: var(--glass-border); box-shadow: var(--glass-shadow);
}
.phero__visual img {
  max-height: 320px; width: auto; max-width: 100%;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, .45));
}

/* категории запчастей: фото-вырезка на тонированном стекле */
.pcats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pcat {
  display: flex; flex-direction: column;
  padding: 20px; text-decoration: none; color: var(--ink);
  transition: transform .25s var(--ease), border-color .25s;
}
.pcat:hover { transform: translateY(-3px); border-color: rgba(254, 80, 0, .45); }
.pcat__img {
  display: flex; align-items: center; justify-content: center;
  height: 190px; margin-bottom: 20px; padding: 12px;
  border-radius: var(--radius-s);
  background: linear-gradient(180deg, rgba(242, 239, 233, .07), rgba(242, 239, 233, .03)), linear-gradient(180deg, rgba(11, 10, 8, .20), rgba(11, 10, 8, .10));
  border: 1px solid rgba(242, 239, 233, .08);
}
.pcat__img img {
  max-height: 100%; width: auto; max-width: 100%;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .45));
  transition: transform .3s var(--ease);
}
.pcat:hover .pcat__img img { transform: scale(1.04); }
.pcat__tag { font-size: 11px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.pcat h3 { font-size: 20px; margin: 8px 0 10px; letter-spacing: -.02em; }
.pcat ul { margin: 0; padding: 0; list-style: none; }
.pcat li {
  position: relative; padding: 5px 0 5px 18px;
  font-size: 14px; color: var(--ink-70);
}
.pcat li::before {
  content: ""; position: absolute; left: 0; top: 13px;
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--accent); opacity: .7;
}

/* ходовые позиции: компактная сетка */
.minis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mini {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 20px;
}
.mini__img {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 108px; height: 88px; padding: 8px;
  border-radius: var(--radius-s);
  background: linear-gradient(180deg, rgba(242, 239, 233, .06), rgba(242, 239, 233, .02)), linear-gradient(180deg, rgba(11, 10, 8, .20), rgba(11, 10, 8, .10));
  border: 1px solid rgba(242, 239, 233, .08);
}
.mini__img img { max-height: 100%; max-width: 100%; width: auto; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .4)); }
.mini b { display: block; font-size: 15px; letter-spacing: -.01em; }
.mini span { display: block; margin-top: 3px; font-size: 13px; color: var(--ink-50); }

/* плашка-подсказка про подбор по фото узла */
.hint {
  display: flex; align-items: center; gap: 22px;
  margin-top: 18px; padding: 22px 26px;
}
.hint__ico {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(254, 80, 0, .12); border: 1px solid rgba(254, 80, 0, .35);
}
.hint__ico svg { width: 22px; height: 22px; stroke: var(--accent); }
.hint p { margin: 0; font-size: 14.5px; color: var(--ink-70); }
.hint b { color: var(--ink); }
.hint a { color: var(--ink); font-weight: 600; }
.hint a:hover { color: var(--accent); }

/* ---------- Таблицы характеристик (страницы продукции) ---------- */
.spec { padding: 10px 0 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.spec table { width: 100%; min-width: 820px; border-collapse: collapse; }
.spec caption {
  text-align: left; padding: 14px 20px 6px;
  font-size: 12px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-50);
}
.spec th, .spec td { padding: 12px 14px; font-size: 14px; text-align: center; white-space: nowrap; }
.spec th:first-child, .spec td:first-of-type { padding-left: 20px; }
.spec th:last-child, .spec td:last-child { padding-right: 20px; }
.spec thead th {
  color: var(--accent); font-weight: 700; letter-spacing: .02em;
  border-bottom: 1px solid rgba(254, 80, 0, .35);
}
.spec tbody th {
  text-align: left; font-weight: 550; color: var(--ink-70); white-space: normal;
  border-bottom: 1px solid rgba(242, 239, 233, .08);
}
.spec tbody td {
  border-bottom: 1px solid rgba(242, 239, 233, .08);
  font-feature-settings: "tnum";
}
.spec tbody tr:last-child th, .spec tbody tr:last-child td { border-bottom: none; }
.spec tbody tr:hover th, .spec tbody tr:hover td { background: rgba(242, 239, 233, .045); }
/* первая колонка закреплена при горизонтальном скролле */
.spec thead th:first-child, .spec tbody th {
  position: sticky; left: 0; z-index: 1;
  background: #16130F;
}
.spec tbody tr:hover th { background: #1B1712; }
.spec__note { margin: 14px 4px 0; font-size: 13px; color: var(--ink-50); }

/* ---------- Опции с фото ---------- */
.opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.opt { overflow: hidden; padding: 0; }
.opt__img {
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(242, 239, 233, .07), rgba(242, 239, 233, .03)),
    linear-gradient(180deg, rgba(11, 10, 8, .42), rgba(11, 10, 8, .26));
  border-bottom: 1px solid rgba(242, 239, 233, .08);
}
.opt__img img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain;
  filter: brightness(.96) drop-shadow(0 14px 26px rgba(0, 0, 0, .5));
  transition: transform .3s var(--ease);
}
.opt:hover .opt__img img { transform: scale(1.03); }
.opt__body { padding: 20px 22px 22px; }
.opt__body b { display: block; font-size: 16px; letter-spacing: -.01em; margin-bottom: 6px; }
.opt__body p { margin: 0; font-size: 13.5px; color: var(--ink-70); line-height: 1.55; }

/* одиночная широкая карточка (например, шкаф управления) */
.opts--solo { grid-template-columns: 1fr; }
.opt--wide { display: grid; grid-template-columns: 1.05fr 1fr; }
.opt--wide .opt__img {
  aspect-ratio: auto; min-height: 340px;
  border-bottom: 0; border-right: 1px solid rgba(242, 239, 233, .08);
}
.opt--wide .opt__body { display: flex; flex-direction: column; justify-content: center; padding: 30px 34px; }
.opt--wide .opt__body b { font-size: 18px; margin-bottom: 10px; }
.opt--wide .opt__body p { font-size: 14.5px; line-height: 1.65; }

/* ---------- Аккордеон FAQ ---------- */
.acc { display: grid; gap: 12px; max-width: 900px; }
.acc__item { padding: 0; overflow: hidden; }
.acc__head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 21px 24px; background: none; border: 0; cursor: pointer;
  font: inherit; color: var(--ink); text-align: left;
  font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; line-height: 1.35;
  transition: color .25s;
}
.acc__head:hover { color: var(--accent); }
.acc__item.is-open .acc__head { color: var(--ink); }
.acc__ico {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(242, 239, 233, .16); color: var(--ink-70);
  transition: transform .35s var(--ease), background .3s, border-color .3s, color .3s;
}
.acc__ico svg { width: 13px; height: 13px; display: block; }
.acc__head:hover .acc__ico { border-color: var(--accent); color: var(--accent); }
.acc__item.is-open .acc__ico {
  transform: rotate(45deg);
  background: var(--accent); border-color: var(--accent); color: #0B0A08;
}
.acc__body { height: 0; overflow: hidden; transition: height .38s var(--ease); }
.acc__inner { min-height: 0; }
.acc__inner p {
  margin: 0; padding: 0 24px 22px; max-width: 72ch;
  font-size: 14.5px; line-height: 1.65; color: var(--ink-70);
}

/* ---------- Галерея ---------- */
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.shot { overflow: hidden; padding: 0; margin: 0; }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; filter: brightness(.94); }
.shot figcaption { padding: 14px 20px 16px; font-size: 13px; color: var(--ink-50); }

@media (max-width: 1024px) {
  .pcats { grid-template-columns: 1fr 1fr; }
  .minis { grid-template-columns: 1fr 1fr; }
  .opts { grid-template-columns: 1fr 1fr; }
  .opts--solo { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .phero { padding-top: 110px; }
  .phero__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pcats, .minis { grid-template-columns: 1fr; }
  .hint { flex-direction: column; align-items: flex-start; }
  .opts, .opts--solo, .shots { grid-template-columns: 1fr; }
  .acc__head { padding: 18px 20px; font-size: 15.5px; }
  .acc__inner p { padding: 0 20px 20px; }
  .opt--wide { grid-template-columns: 1fr; }
  .opt--wide .opt__img {
    aspect-ratio: 4 / 3; min-height: 0;
    border-right: 0; border-bottom: 1px solid rgba(242, 239, 233, .08);
  }
  .opt--wide .opt__body { padding: 22px 24px 24px; }
  .spec { margin-inline: -4px; }
}

/* ---------- Страница «Контакты» ---------- */
/* крупное значение внутри карточки контакта */
.why__val {
  display: inline-block; margin: 2px 0 8px;
  font-size: 17px; font-weight: 650; letter-spacing: -.01em;
  color: var(--ink); text-decoration: none;
}
a.why__val:hover { color: var(--accent); }

/* карта + боковая карточка маршрута */
.mapgrid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; align-items: stretch; }
.map { position: relative; overflow: hidden; padding: 0; min-height: 440px; }
.map iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  filter: saturate(.88) brightness(.96);
}
.map-side { padding: 30px 28px; display: flex; flex-direction: column; gap: 20px; }
.map-side h3 { font-size: 13px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.map-side p { margin: 0; font-size: 14.5px; color: var(--ink-70); line-height: 1.6; }
.map-side .btn { margin-top: auto; align-self: flex-start; }

/* реквизиты */
.reqs { padding: 12px 28px 16px; }
.reqs__row {
  display: grid; grid-template-columns: 230px 1fr; gap: 20px; align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px solid rgba(242, 239, 233, .08);
}
.reqs__row:last-child { border-bottom: 0; }
.reqs__row dt { font-size: 12.5px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-50); }
.reqs__row dd { margin: 0; font-size: 15px; color: var(--ink-70); line-height: 1.6; }

@media (max-width: 1024px) {
  .mapgrid { grid-template-columns: 1fr; }
  .map { min-height: 380px; }
}
@media (max-width: 640px) {
  .map { min-height: 300px; }
  .reqs__row { grid-template-columns: 1fr; gap: 5px; }
}

/* ---------- SEO-текстовый блок (низ страницы) ---------- */
.seo { max-width: 78ch; }
.seo h2 { font-size: clamp(20px, 2vw, 26px); margin-bottom: 18px; }
.seo p { margin: 0 0 14px; font-size: 15px; line-height: 1.75; color: var(--ink-50); }
.seo a { color: var(--ink-70); font-weight: 550; text-decoration-color: rgba(254, 80, 0, .45); text-underline-offset: 3px; }
.seo a:hover { color: var(--accent); }

/* ---------- Страница «Запчасти MPC»: паспорт-лист, схемы, редуктор ---------- */
/* белый лист чертежа из техпаспорта в герое */
.pdoc {
  margin: 0; display: flex; flex-direction: column; align-items: center;
  padding: 20px 20px 14px; border-radius: 18px;
  background: linear-gradient(180deg, #FCFAF6, #F1EDE5);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .5), 0 4px 14px rgba(0, 0, 0, .3);
}
.pdoc img { width: 100%; height: auto; max-height: 400px; object-fit: contain; }
.pdoc figcaption {
  margin-top: 12px; font-size: 11.5px; font-weight: 650; letter-spacing: .12em;
  text-transform: uppercase; color: #7A7266; text-align: center;
}

/* страницы-схемы из техпаспорта */
.docs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.doc { overflow: hidden; padding: 18px 18px 0; margin: 0; }
.doc img {
  width: 100%; height: auto; max-height: 470px; object-fit: contain; display: block;
  background: #F6F3ED; border-radius: var(--radius-s);
}
.doc figcaption { padding: 14px 6px 16px; font-size: 13px; color: var(--ink-50); }

/* планетарный привод: текст + схематичная анимация */
.redgrid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.redtxt p { margin: 0 0 18px; font-size: 15.5px; line-height: 1.7; color: var(--ink-70); }
.redtxt ul { margin: 0 0 26px; padding: 0; list-style: none; display: grid; gap: 14px; }
.redtxt li {
  position: relative; padding-left: 22px;
  font-size: 14.5px; line-height: 1.6; color: var(--ink-70);
}
.redtxt li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--accent); opacity: .8;
}
.redtxt li b { color: var(--ink); }

.planim { position: relative; width: 100%; max-width: 340px; margin-inline: auto; aspect-ratio: 1; }
.planim__ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 14px solid rgba(242, 239, 233, .13);
  box-shadow: inset 0 0 0 2px rgba(242, 239, 233, .08), 0 0 0 2px rgba(242, 239, 233, .05);
}
.planim__carrier { position: absolute; inset: 0; animation: gear-spin 36s linear infinite; }
.planim__planet {
  position: absolute; left: 50%; top: 50%; width: 27%; height: 27%; margin: -13.5%;
  transform: rotate(var(--a)) translateY(-108%);
}
.planim__planet i {
  display: block; width: 100%; height: 100%;
  -webkit-mask: url('../assets/img/gear.svg') center / contain no-repeat;
  mask: url('../assets/img/gear.svg') center / contain no-repeat;
  background: #C9C0B2;
  animation: gear-spin 8s linear infinite reverse;
}
.planim__sun {
  position: absolute; left: 50%; top: 50%; width: 36%; height: 36%; margin: -18%;
  -webkit-mask: url('../assets/img/gear.svg') center / contain no-repeat;
  mask: url('../assets/img/gear.svg') center / contain no-repeat;
  background: var(--accent);
  animation: gear-spin 12s linear infinite;
  filter: drop-shadow(0 10px 24px rgba(254, 80, 0, .35));
}

/* двухвальный привод MAO: схематичная анимация валов с лопастями */
.twin { width: 100%; max-width: 460px; margin-inline: auto; }
.twin svg { width: 100%; height: auto; display: block; overflow: visible; }
.twin__tub { fill: rgba(242, 239, 233, .03); stroke: rgba(242, 239, 233, .16); stroke-width: 2; }
.twin__shaft { transform-box: fill-box; transform-origin: center; will-change: transform; }
.twin__shaft--l { animation: twin-ccw 18s linear infinite; }
.twin__shaft--r { animation: twin-cw 18s linear infinite; }
.twin-arm { stroke: #C9C0B2; stroke-width: 7; stroke-linecap: round; }
.twin-paddle { fill: var(--accent); filter: drop-shadow(0 6px 12px rgba(254, 80, 0, .3)); }
.twin-hub { fill: #211D17; stroke: #C9C0B2; stroke-width: 5; }
.twin-dot { fill: var(--accent); }
@keyframes twin-cw { to { transform: rotate(360deg); } }
@keyframes twin-ccw { to { transform: rotate(-360deg); } }

@media (max-width: 860px) {
  .redgrid { grid-template-columns: 1fr; }
  .planim { max-width: 280px; }
}
@media (max-width: 640px) {
  .docs { grid-template-columns: 1fr; }
  .pdoc img { max-height: 340px; }
}

/* ---------- Декоративные шестерни на подложке ---------- */
.deco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.deco-gear {
  position: absolute;
  -webkit-mask: url('../assets/img/gear.svg') center / contain no-repeat;
  mask: url('../assets/img/gear.svg') center / contain no-repeat;
  background: var(--ink);
  opacity: .07;
  animation: gear-spin 90s linear infinite;
  will-change: transform;
}
.deco-gear--accent { background: var(--accent); opacity: .09; animation-duration: 120s; animation-direction: reverse; }
@keyframes gear-spin { to { rotate: 360deg; } }

/* ---------- Появление при скролле ---------- */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rv-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .deco-gear { animation: none; }
  .planim__carrier, .planim__sun, .planim__planet i { animation: none; }
  .twin__shaft--l, .twin__shaft--r { animation: none; }
  .rv { opacity: 1; transform: none; transition: none; }
}

/* ---------- Страница «Проекты и поставки» ---------- */
.pfilter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.pfilter button {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line, rgba(20,24,33,.14));
  background: rgba(255,255,255,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font: inherit; font-size: 14px; font-weight: 550; color: var(--ink-70); cursor: pointer;
  transition: border-color .25s, color .25s, background .25s;
}
.pfilter button:hover { color: var(--ink); border-color: rgba(20,24,33,.3); }
.pfilter button.is-on { background: var(--accent); color: #fff; border-color: var(--accent); }

.pyear { margin-top: 34px; }
.pyear:first-of-type { margin-top: 0; }
.pyear__cap {
  display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px;
}
.pyear__cap b { font-size: clamp(20px, 2vw, 26px); font-weight: 650; letter-spacing: -.01em; }
.pyear__cap span { font-size: 13px; color: var(--ink-70); }
.pyear__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.pcard { overflow: hidden; display: flex; flex-direction: column; }
.pcard__img { aspect-ratio: 16 / 10; background: rgba(20,24,33,.06) center / cover no-repeat; position: relative; }
.pcard__img--empty { display: grid; place-items: center; }
.pcard__img--empty svg { width: 54px; height: 54px; opacity: .16; animation: gear-spin 60s linear infinite; }
.pcard__body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.pcard__where { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.pcard__body h3 { margin: 0; font-size: 17.5px; font-weight: 650; letter-spacing: -.01em; }
.pcard__body p { margin: 0; font-size: 13.5px; color: var(--ink-70); }

@media (max-width: 1000px) { .pyear__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .pyear__grid { grid-template-columns: 1fr; } }

/* --- Юридика и антиспам (24.08) --- */
.hp { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form__consent { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-50); }
.form__consent input { flex: 0 0 auto; margin-top: 3px; width: 16px; height: 16px; accent-color: var(--accent, #FE5000); cursor: pointer; }
.form__consent a { color: var(--ink-70); text-decoration: underline; text-underline-offset: 2px; }
.form__consent a:hover { color: var(--accent, #FE5000); }
.ftr__hours { color: inherit; font-size: inherit; }

/* Страница политики */
.docpage { padding: 140px 0 90px; }
.docpage__inner { max-width: 820px; }
.docpage h2 { margin: 42px 0 14px; font-size: 22px; }
.docpage h3 { margin: 28px 0 10px; font-size: 17px; }
.docpage p, .docpage li { font-size: 15.5px; line-height: 1.65; color: var(--ink-70); }
.docpage ul, .docpage ol { margin: 10px 0 18px; padding-left: 22px; }
.docpage li { margin-bottom: 6px; }
.docpage .lead { font-size: 17px; }
.docpage a { color: var(--accent, #FE5000); }
.docpage table { width: 100%; border-collapse: collapse; margin: 14px 0 22px; font-size: 14.5px; }
.docpage td, .docpage th { padding: 10px 12px; border: 1px solid rgba(242,239,233,.14); text-align: left; vertical-align: top; }
.docpage th { color: var(--ink); font-weight: 600; }
@media (max-width: 640px) { .docpage { padding: 110px 0 60px; } }

/* Групповые строки в сводных таблицах спецификаций (25.08) */
.spec tr.spec__group th {
  background: rgba(254, 80, 0, .10); color: var(--accent, #FE5000);
  font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase;
  text-align: left; border-bottom: 1px solid rgba(242,239,233,.14);
}
.spec tr { scroll-margin-top: 90px; }
