/*
Theme Name: Горная Автоматика
Theme URI: https://sait.smithacademy.online
Author: ТД «Горная Автоматика»
Description: Кастомная тема лендинга и каталога продукции с 3D-моделями (model-viewer).
Version: 1.0.7
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: gornaya-avtomatika
*/


/* ============================================================
   Шрифты: Open Sans (variable, локально)
   ============================================================ */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("assets/fonts/open-sans-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("assets/fonts/open-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ============================================================
   ГОРНАЯ АВТОМАТИКА — вёрстка по макету Figma (Desktop A)
   ============================================================ */

:root {
  --red: #d63943;
  --red-deep: #bd2933;
  --ink: #293136;
  --grey: #56606a;
  --muted: #8a939b;
  --bg: #efefed;
  --line: #dfe1e3;
  --white: #ffffff;
  --orange: #ed7a23;
  --pink: #fbe9ea;
  --radius: 16px;
  --shadow: 0 12px 30px rgba(45, 46, 50, .06);
  --font-main: "Segoe UI", Arial, Helvetica, sans-serif;
  --font-head: "Segoe UI", Arial, Helvetica, sans-serif;
  --icon-accent: #ef858a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 22px;
  color: var(--ink);
  background: #efefed;
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 760px) {
  body { font-size: 15px; line-height: 21px; }
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea { font: inherit; color: inherit; }

.container {
  width: min(1200px, 100% - 240px);
  margin-inline: auto;
}
@media (max-width: 1280px) {
  .container { width: min(1200px, 100% - 96px); }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 40px); }
}

.icon { width: 24px; height: 24px; flex: none; }
.icon--sm { width: 16px; height: 16px; }
.icon--red { color: var(--icon-accent); }

/* ---------- Утилиты ---------- */
.section-label {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--red);
}
.section-title {
  margin-top: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
  color: var(--ink);
}
.section-title--center { text-align: center; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.section-head--with-nav { margin-bottom: 24px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  font-weight: 600;
  transition: background-color .2s, transform .15s, box-shadow .2s;
}
.btn--red { background: #d63943; color: #fff; }
.btn--red:hover { background: #bd2933; }
.btn--lg { padding: 16px 32px; border-radius: 10px; font-size: 16px; }
.btn--block { width: 100%; padding: 15px 20px; font-size: 15px; border-radius: 10px; }

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 85px;
}
.header > .container { width: min(1400px, 100% - 40px); }
.logo { flex: none; display: flex; align-items: center; }
.logo img { width: 191px; height: auto; }

.nav { margin-inline: auto; }
.nav__list { display: flex; align-items: center; gap: 32px; }
.nav__link {
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav__link:hover { color: var(--red); }
.nav__link.is-active { color: var(--red); border-bottom-color: var(--red); }

.header__actions { display: flex; align-items: center; gap: 12px; }
.header__cta { padding: 11px 20px; font-size: 14px; }
.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--red);
}
.icon-btn .icon { width: 22px; height: 22px; }
.header__burger { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - 85px); /* первый экран за вычетом header (85) */
  background: #1c1d22;
}
.hero__video,
.hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero__video { object-fit: cover; }
.hero__overlay {
  background:
    linear-gradient(90deg, rgba(15, 16, 20, .82) 0%, rgba(15, 16, 20, .55) 42%, rgba(15, 16, 20, .28) 100%),
    linear-gradient(180deg, rgba(15, 16, 20, .28) 0%, rgba(15, 16, 20, 0) 20%, rgba(15, 16, 20, .18) 100%);
}
.hero > .container { position: relative; z-index: 1; }

/* Кнопка запуска видео, если автоплей заблокирован браузером */
.hero__play {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 160;
  display: none;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .55);
  background: rgba(226, 35, 35, .92);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
  transition: background-color .2s, transform .15s;
}
.hero__play .icon { width: 26px; height: 26px; margin-left: 3px; }
.hero__play:hover { background: #c81d1d; transform: scale(1.06); }
.hero__play.is-shown { display: inline-flex; animation: heroPlayIn .25s ease; }
.hero__play[hidden] { display: none; }
@keyframes heroPlayIn {
  from { opacity: 0; transform: scale(.85); }
  to   { opacity: 1; transform: scale(1); }
}

.hero__top {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 0 32px;
}
.hero__content { max-width: 620px; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 7px 15px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
}

.hero__title {
  margin-top: 18px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 44px;
  line-height: 1.14;
  letter-spacing: -.01em;
  color: #fff;
}

.hero__cta-row { margin-top: 28px; }

.hero__tags { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-weight: 500;
  font-size: 15px;
}

/* ---------- Категории под первым экраном ---------- */
.cats-section { padding: 72px 0 0; }
.cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cat-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 16px;
  padding: 16px 16px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(45, 46, 50, .14);
}
.cat-card__media {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg);
  aspect-ratio: 4 / 3;
}
.cat-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cat-card__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.2;
  color: var(--ink);
}

/* ============================================================
   BRANDS / SERVICES
   ============================================================ */
.brands { padding: 88px 0 80px; }
.brands .section-label { display: block; text-align: center; }
.brands .section-title { text-align: center; margin-top: 10px; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 208px);
  justify-content: center;
  gap: 32px;
  margin: 56px 0;
}
.stats__item { text-align: center; }
.stats__value {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
  color: var(--red);
}
.stats__caption {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  color: var(--grey);
}

.brands__row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 60px;
  align-items: center;
}
.brand-logo {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}
.brand-logo img {
  max-height: 74%;
  max-width: 78%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .85;
  transition: filter .2s, opacity .2s;
}
.brand-logo:hover img { filter: none; opacity: 1; }

/* ============================================================
   ENGINEERING / DISTRIBUTORS
   ============================================================ */
.engineering {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 80px 0 88px;
}
.eng-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.eng-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 40px 44px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.eng-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--red);
  color: #fff;
}
.eng-card__icon .icon { width: 28px; height: 28px; }
.eng-card__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
}
.eng-card__text {
  font-size: 14px;
  color: var(--grey);
  line-height: 1.55;
}

/* ============================================================
   PRODUCTS CAROUSEL
   ============================================================ */
.carousel-sec { padding: 88px 0; border-top: 1px solid var(--line); }
.carousel { position: relative; margin-top: 48px; }
.carousel__viewport { overflow: hidden; }
.carousel__track {
  display: flex;
  transition: transform .45s ease;
}
.carousel__slide { flex: 0 0 100%; }
.carousel__card {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  align-items: center;
  gap: 48px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 48px 72px;
}
.carousel__media img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}
.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
  padding: 0;
  transition: background .2s;
}
.dot.is-active { background: var(--red); }
.carousel__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 32px;
  color: var(--ink);
}
.carousel__desc { margin-top: 12px; font-size: 16px; color: var(--grey); }
.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .9);
  transition: background .2s, transform .15s;
}
.carousel__arrow:hover { background: #c81d1d; }
.carousel__arrow--prev { left: 0; }
.carousel__arrow--next { right: 0; }
.carousel__arrow .icon { width: 22px; height: 22px; }


/* ============================================================
   INFO LINKS (О заводе / Дополнительно)
   ============================================================ */
.links-sec {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 88px 0;
}
.links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.link-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: box-shadow .2s, transform .2s;
}
.link-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.link-card__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
}
.link-card__text { font-size: 13px; line-height: 1.55; color: var(--grey); }
.link-card__more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--red);
}
.link-card__more .icon { width: 15px; height: 15px; }

/* ============================================================
   PROMOTIONS
   ============================================================ */
.promo { padding: 88px 0; border-top: 1px solid var(--line); }
.promo__nav { display: flex; gap: 12px; padding-bottom: 14px; }
.nav-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  transition: background .2s, color .2s, border-color .2s;
}
.nav-arrow:hover { background: var(--red); border-color: var(--red); color: #fff; }
.nav-arrow .icon { width: 20px; height: 20px; }

.promo__grid {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.promo__grid::-webkit-scrollbar { display: none; }
.promo-card {
  flex: 0 0 calc((100% - 48px) / 3);
  scroll-snap-align: start;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: box-shadow .2s, transform .2s;
}
.promo-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.promo-card__media { position: relative; }
.promo-card__media img { width: 100%; height: 240px; object-fit: cover; }
.promo-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.promo-card__body { padding: 24px; }
.promo-card__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
  color: var(--ink);
}
.promo-card__text {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--grey);
}
.promo-card__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}
.price { font-family: var(--font-head); line-height: 1.2; }
.price--old { font-weight: 400; font-size: 14px; color: var(--muted); text-decoration: line-through; }
.price--new { font-weight: 700; font-size: 20px; color: var(--red); }

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 88px 0;
}
.about__grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 80px;
  align-items: center;
}
.about__title {
  margin-top: 14px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 36px;
  line-height: 1.2;
  color: var(--ink);
}
.about__text {
  margin-top: 24px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--grey);
}
.about__stats {
  display: flex;
  gap: 32px;
  margin-top: 44px;
}
.about-stat__value {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 40px;
  line-height: 1.1;
  color: var(--red);
}
.about-stat__label {
  display: block;
  margin-top: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.about__media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

/* ============================================================
   CTA / INQUIRY
   ============================================================ */
.inquiry { padding: 88px 0; border-top: 1px solid var(--line); }
.inquiry__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 80px;
  align-items: start;
}
.inquiry__title {
  margin-top: 14px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.25;
  color: var(--ink);
}
.inquiry__text {
  margin-top: 22px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--grey);
}

.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.form__field { display: flex; flex-direction: column; gap: 8px; }
.form__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--grey);
}
.form__input {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color .2s, background .2s;
}
.form__input:focus { border-color: var(--red); background: #fff; }
.form__textarea { resize: vertical; min-height: 96px; }
.form__input.is-invalid { border-color: var(--red); }
.form__note { font-size: 11px; color: var(--grey); }
.form.error .form__input { border-color: var(--red); }


/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--white); border-top: 1px solid var(--line); }
.footer__main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 60px;
  padding: 64px 0 48px;
}
.footer__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 20px;
}
.footer__list { display: flex; flex-direction: column; gap: 14px; }
.footer__list a { font-size: 14px; color: var(--grey); transition: color .2s; }
.footer__list a:hover { color: var(--red); }
.footer__list--contacts li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--grey);
}
.footer__list--contacts a { font-size: 14px; color: var(--ink); font-weight: 600; }
.footer__list--contacts a:hover { color: var(--red); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.footer__copy { font-size: 13px; color: var(--muted); }
.footer__socials { display: flex; gap: 12px; }
.footer__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--grey);
  transition: color .2s, background .2s;
}
.footer__socials .icon { width: 20px; height: 20px; }
.footer__socials a:hover { color: var(--red); }

/* ============================================================
   MOBILE NAV (бургер-меню)
   ============================================================ */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--white);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transform: translateX(100%);
  transition: transform .3s ease;
  overflow-y: auto;
}
.mobile-nav.is-open { transform: none; }
.mobile-nav__head { display: flex; align-items: center; justify-content: space-between; }
.mobile-nav__list { display: flex; flex-direction: column; gap: 8px; }
.mobile-nav__list a {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 24px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-nav__cta { margin-top: auto; }
body.no-scroll { overflow: hidden; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .brands__row { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .eng-grid, .links-grid { grid-template-columns: repeat(2, 1fr); }
  .promo-card { flex-basis: calc((100% - 24px) / 2); }
  .footer__main { grid-template-columns: 1fr 1fr; }
  .footer__col:last-child { grid-column: 1 / -1; }
}

@media (max-width: 992px) {
  .nav { display: none; }
  .header__burger { display: flex; }
  .header__cta { display: none; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .hero__top { padding-top: 48px; }
  .hero__title { font-size: 36px; }
  .inquiry__grid, .about__grid { grid-template-columns: 1fr; gap: 48px; }
  .carousel__card { grid-template-columns: 1fr; padding: 32px; }
}

@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .stats__value { font-size: 26px; }
  .stats__caption { font-size: 13px; }
  .brands__row { grid-template-columns: repeat(2, 1fr); }
  .cats { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .eng-grid, .links-grid { grid-template-columns: 1fr; }
  .promo-card { flex-basis: 100%; }
  .carousel__arrow { width: 44px; height: 44px; }
  .carousel__card { gap: 24px; }
  .footer__main { grid-template-columns: 1fr; gap: 36px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .hero__title { font-size: 30px; }
  .section-title { font-size: 26px; }
  .about__title { font-size: 28px; }
  .about__stats { flex-wrap: wrap; gap: 24px; }
  .about-stat__value { font-size: 32px; }
}

/* ============================================================
   КАТАЛОГ · СТРАНИЦА ПРОДУКТА · 3D
   ============================================================ */
.page-sec { padding: 72px 0 88px; }
.entry-content { font-size: 16px; line-height: 1.7; color: var(--grey); }
.entry-content h2, .entry-content h3 { color: var(--ink); margin: 28px 0 12px; font-family: var(--font-head); }
.entry-content p { margin-bottom: 14px; }
.entry-content ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.entry-content a { color: var(--red); }

.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs span { color: var(--ink); }

.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.product-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 20px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d9dae2; }
.product-card__media { position: relative; background: var(--bg); border-radius: 12px; overflow: hidden; }
.product-card__media img { width: 100%; height: 220px; object-fit: contain; padding: 12px; }
.product-card__3d {
  position: absolute; top: 10px; right: 10px;
  padding: 3px 9px; border-radius: 6px; background: var(--red); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
}
.product-card__title { font-family: var(--font-head); font-size: 19px; font-weight: 700; line-height: 1.25; }
.product-card__text { font-size: 14px; color: var(--grey); }

.catalog__pagination { margin-top: 40px; }
.catalog__pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.catalog__pagination a, .catalog__pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 10px; font-weight: 600;
}
.catalog__pagination .current { background: var(--red); border-color: var(--red); color: #fff; }

/* --- Страница товара (по макету клиента) --- */
[hidden] { display: none !important; }

.product-single__grid { display: grid; grid-template-columns: 500px 1fr; gap: 44px; align-items: start; }
.product-single__lead { margin-top: 16px; font-size: 16px; color: var(--grey); }

.product-media { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: start; }
.product-media__thumbs { display: flex; flex-direction: column; gap: 10px; }
.product-media__thumb { padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); transition: border-color .2s, box-shadow .2s; }
.product-media__thumb img { width: 100%; height: 66px; object-fit: contain; }
.product-media__thumb.is-active { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.product-media__thumb--3d { height: 66px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; letter-spacing: .04em; color: var(--red); }
.product-media__stage { display: flex; align-items: center; justify-content: center; min-height: 420px; padding: 16px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.product-media__stage img { width: auto; max-height: 420px; margin-inline: auto; }
.product-media__stage .model3d { height: 420px; }
.product-media__note { grid-column: 2; display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; font-size: 14px; color: var(--grey); }
.product-media--empty { grid-template-columns: 1fr; }
.product-media--empty .product-media__note { grid-column: 1; }
.product-media__placeholder { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px; color: var(--muted); font-size: 14px; text-align: center; }
.product-media__placeholder .icon { width: 48px; height: 48px; color: var(--line); }

.product-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.product-head__main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.product-head__ex { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 2px solid var(--red); border-radius: 8px; color: var(--red); font-weight: 700; }
.product-head__title { font-family: var(--font-head); font-size: 40px; font-weight: 800; line-height: 1.1; }
.product-head__marks { flex-basis: 100%; font-size: 14px; color: var(--grey); }
.product-head__article { font-size: 13px; color: var(--muted); }
.product-certs { display: flex; gap: 10px; min-width: 230px; max-width: 280px; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.product-certs__body { display: flex; flex-direction: column; gap: 2px; }
.product-certs__title { font-size: 13px; font-weight: 600; }
.product-certs__item { font-size: 13px; color: var(--grey); }

.product-options { display: flex; flex-direction: column; gap: 18px; margin-top: 26px; }
.product-opt__label { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.product-opt__num { color: var(--muted); }
.product-opt__list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.opt-btn { min-width: 88px; padding: 12px 18px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; font-weight: 600; transition: background-color .18s, border-color .18s, color .18s; }
.opt-btn:hover { border-color: var(--red); color: var(--red); }
.opt-btn.is-active { background: var(--red); border-color: var(--red); color: #fff; }

.product-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 26px; }
.product-quick li { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; background: var(--bg); border-radius: 12px; }
.product-quick__label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--grey); }
.product-quick__value { font-size: 17px; font-weight: 700; }

.product-buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.product-buy__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.product-buy__label { font-size: 15px; color: var(--grey); }
.product-buy__value { font-family: var(--font-head); font-size: 38px; font-weight: 800; line-height: 1; color: var(--red); }
.product-buy__note { flex-basis: 100%; font-size: 12px; color: var(--muted); }
.product-buy__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--outline { padding: 16px 26px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; font-size: 16px; }
.btn--outline:hover { border-color: var(--red); color: var(--red); }

.product-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.product-features li { display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: var(--grey); }

.product-tx { margin-top: 44px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.product-tx__head { font-family: var(--font-head); font-size: 20px; font-weight: 700; cursor: pointer; }
.product-tx__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 32px; margin-top: 20px; }
.product-tx__item { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 14px; }
.product-tx__item dt { color: var(--grey); }
.product-tx__item dd { font-weight: 600; }

.product-custom { display: grid; grid-template-columns: 1fr 1.2fr auto; align-items: center; gap: 24px; margin-top: 28px; padding: 24px; background: var(--bg); border-radius: var(--radius); }
.product-custom__head { display: flex; align-items: center; gap: 12px; }
.product-custom__title { font-family: var(--font-head); font-size: 20px; font-weight: 700; }
.product-custom__text { font-size: 14px; color: var(--grey); }
.product-custom__btn { white-space: nowrap; }

.model3d { width: 100%; height: 460px; background: #eceef5; border-radius: 12px; --poster-color: transparent; }
.model3d__hint { padding: 8px 12px; background: rgba(255,255,255,.9); border-radius: 8px; font-size: 13px; }

.specs { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 15px; }
.specs th, .specs td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.specs th { color: var(--grey); font-weight: 500; width: 52%; }
.specs td { color: var(--ink); font-weight: 600; }

.product-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.product-gallery img { width: 100%; height: 90px; object-fit: contain; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 6px; }

@media (max-width: 1200px) {
  .product-single__grid { grid-template-columns: 1fr; gap: 32px; }
  .product-media__stage { min-height: 360px; }
  .product-media__stage img { max-height: 360px; }
  .product-media__stage .model3d { height: 360px; }
}
@media (max-width: 992px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .model3d { height: 380px; }
  .product-quick, .product-features { grid-template-columns: repeat(2, 1fr); }
  .product-tx__grid { grid-template-columns: repeat(2, 1fr); }
  .product-custom { grid-template-columns: 1fr; }
  .product-head { flex-direction: column; }
}
@media (max-width: 720px) {
  .page-sec { padding: 48px 0 64px; }
  .products-grid { grid-template-columns: 1fr; }
  .model3d { height: 300px; }
  .product-gallery { grid-template-columns: repeat(3, 1fr); }
  .product-media { grid-template-columns: 1fr; }
  .product-media__thumbs { flex-direction: row; flex-wrap: wrap; }
  .product-media__thumb { width: 66px; }
  .product-media__thumb img { height: 56px; }
  .product-media__thumb--3d { width: 66px; height: 56px; }
  .product-media__note { grid-column: 1; }
  .product-head__title { font-size: 30px; }
  .product-quick, .product-features, .product-tx__grid { grid-template-columns: 1fr; }
  .product-buy { flex-direction: column; align-items: flex-start; }
  .product-buy__value { font-size: 32px; }
  .btn--outline { width: 100%; }
}


/* ============================================================
   Прелоадер: знак вращается поверх полупрозрачной дымки,
   затем дымка и знак плавно растворяются — сайт как обычно
   ============================================================ */
.ga-loader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .55);
  pointer-events: none;
  opacity: 1;
  transition: opacity .6s ease, visibility .6s ease;
  animation: ga-loader-hide 0.6s ease 5s forwards;
}
.ga-loader.is-hidden { opacity: 0; visibility: hidden; animation: none; }
.ga-loader__mark { position: relative; display: block; width: 128px; height: 128px; }
.ga-loader__gear { display: block; width: 100%; height: 100%; animation: ga-loader-spin 1.6s linear infinite; }
.ga-loader__core { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }

@keyframes ga-loader-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes ga-loader-hide { to { opacity: 0; visibility: hidden; } }

@media (max-width: 720px) {
  .ga-loader__mark { width: 96px; height: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  .ga-loader__gear { animation: none; }
}


