/* PROM.TECH — industrial landing (demo30-inspired) */
:root {
  --red: #e31e24;
  --red-dark: #c4181e;
  --dark: #121418;
  --dark-2: #1a1d24;
  --dark-3: #232833;
  --text: #1c1f26;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f5f6f8;
  --white: #fff;
  --wrapper: 81.7708vw;
  --radius: 6px;
  --shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  --font: "Manrope", system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 1000;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  transform: translateY(-160%);
  transition: transform .2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, textarea { font: inherit; }
h1, h2, h3, p { margin: 0; }

.wrapper,
.container {
  width: var(--wrapper);
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius);
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.btn:hover { background: var(--red-dark); transform: translateY(-1px); }

.btn--outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.7);
  color: var(--white);
}

.btn--outline:hover {
  background: rgba(255,255,255,.1);
  border-color: #fff;
}

.btn--ghost-dark {
  background: transparent;
  border: 1.5px solid var(--line);
  color: var(--text);
}

.btn--ghost-dark:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.section {
  padding: 80px 0;
}

.section--alt { background: var(--bg); }

.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section__title {
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-wrap: balance;
}

.section__lead {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Header */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  color: #fff;
}

.site-header--inner {
  position: relative;
  color: var(--text);
  background: #f5f8f9;
  border-bottom: 1px solid var(--line);
}

.site-header--inner .logo__mark { color: var(--text); }
.site-header--inner .logo__tag { opacity: .7; color: var(--muted); }
.site-header--inner .topbar__addr { opacity: 1; color: var(--muted); }
.site-header--inner .topbar__price {
  border-color: var(--red);
  color: var(--red);
}
.site-header--inner .topbar__online-label { color: var(--muted); }
.site-header--inner .messenger {
  background: var(--dark);
  color: #fff;
}
.site-header--inner .topbar__phone a { color: var(--text); }
.site-header--inner .nav {
  border-top-color: var(--line);
}
.site-header--inner .nav__list a { color: var(--text); }
.site-header--inner .nav__list a.is-active,
.site-header--inner .nav__link.is-active,
.site-header--inner .nav-dropdown.is-active > .nav-dropdown__trigger { color: var(--red); }
.site-header--inner .burger {
  border-color: var(--line);
  color: var(--text);
}

.topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  color: #fff;
}

.topbar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 16px 0 12px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo__mark {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo__mark span { color: var(--red); }

.logo__tag {
  font-size: 11px;
  line-height: 1.35;
  opacity: .85;
  max-width: 160px;
}

.topbar__addr {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  opacity: .9;
  flex-shrink: 1;
  min-width: 0;
}

.topbar__addr svg { color: var(--red); flex-shrink: 0; }

.topbar__price {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  white-space: nowrap;
}

.topbar__online {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  flex-shrink: 0;
}

.topbar__online-label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar__online-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(227,30,36,.25);
}

.topbar__messengers {
  display: flex;
  gap: 6px;
}

.messenger {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  font-size: 11px;
  font-weight: 700;
}

.topbar__phone {
  text-align: right;
  flex-shrink: 0;
  white-space: nowrap;
}

.topbar__phone a {
  display: block;
  font-size: 18px;
  font-weight: 800;
}

.topbar__phone .callback {
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
}

.nav {
  border-top: 1px solid rgba(255,255,255,.2);
}

.nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  padding: 14px 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav__list a,
.nav__link {
  color: inherit;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  transition: color .2s, background .2s;
}

.nav__list a:hover,
.nav__link:hover { color: var(--red); }

.nav__list a.is-active,
.nav__link.is-active,
.nav-dropdown.is-active > .nav-dropdown__trigger {
  color: var(--red);
}

/* Nav dropdown (shadcn-style) */
.nav-dropdown {
  position: relative;
}

.nav-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 8px;
  transition: color .2s, background .2s;
}

.nav-dropdown__trigger:hover,
.nav-dropdown.is-open > .nav-dropdown__trigger {
  color: var(--red);
}

.nav-dropdown__chevron {
  transition: transform .25s cubic-bezier(.4,0,.2,1);
  opacity: .7;
}

.nav-dropdown.is-open .nav-dropdown__chevron {
  transform: rotate(180deg);
}

.nav-dropdown__panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(.96);
  transform-origin: top left;
  pointer-events: none;
  transition:
    opacity .2s cubic-bezier(.4,0,.2,1),
    transform .2s cubic-bezier(.4,0,.2,1),
    visibility .2s;
}

.nav-dropdown.is-open .nav-dropdown__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.nav-dropdown__list {
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow:
    0 4px 6px -1px rgba(0,0,0,.08),
    0 10px 24px -4px rgba(0,0,0,.12);
}

.site-header:not(.site-header--inner) .nav-dropdown__list {
  background: rgba(18,20,24,.98);
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}

.nav-dropdown__link {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  text-decoration: none;
  transition: background .15s, color .15s;
}

.site-header:not(.site-header--inner) .nav-dropdown__link {
  color: rgba(255,255,255,.9);
}

.nav-dropdown__link:hover,
.nav-dropdown__link.is-active {
  background: rgba(227,30,36,.08);
  color: var(--red);
}

.site-header:not(.site-header--inner) .nav-dropdown__link:hover,
.site-header:not(.site-header--inner) .nav-dropdown__link.is-active {
  background: rgba(255,255,255,.08);
  color: #fff;
}

.site-header--inner .nav-dropdown__trigger:hover {
  background: rgba(0,0,0,.04);
}

/* About page blocks */
.about-intro__grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  align-items: start;
}

.about-intro__lead {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.about-intro__stats {
  display: grid;
  gap: 20px;
}

.about-intro__stats strong {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}

.about-intro__stats span {
  font-size: 14px;
  color: var(--muted);
}

.scroll-row__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.scroll-row__hint {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.scroll-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.scroll-row::-webkit-scrollbar { height: 6px; }
.scroll-row::-webkit-scrollbar-thumb { background: #d0d5dd; border-radius: 999px; }

.value-card,
.team-card,
.geo-card,
.partner-card {
  flex: 0 0 min(320px, 85vw);
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}

.pb-section--alt .value-card,
.pb-section--alt .team-card,
.pb-section--alt .geo-card,
.pb-section--alt .partner-card {
  background: #fff;
}

.value-card__num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 12px;
}

.value-card h3,
.geo-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.value-card p,
.geo-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.team-card__photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dfe5ec, #b8c4d0);
  margin-bottom: 14px;
}

.team-card strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.team-card span {
  font-size: 13px;
  color: var(--muted);
}

.partner-card {
  display: grid;
  place-items: center;
  min-height: 100px;
  font-weight: 800;
  font-size: 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.thank-page .btn { margin-top: 16px; }

.quiz-form {
  display: grid;
  gap: 14px;
  max-width: 480px;
  margin-top: 20px;
}

.field-label {
  display: block;
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.field-label + .field {
  margin-bottom: 12px;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 8px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

/* Hero */
/* ── Hero base ─────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(105deg, rgba(10,12,16,.82) 0%, rgba(10,12,16,.55) 55%, rgba(10,12,16,.35) 100%),
    url("https://images.unsplash.com/photo-1565043589221-1a6fd9ae45c7?auto=format&fit=crop&w=1920&q=80") center/cover no-repeat;
}

/* wrapper becomes a two-column row inside 3d hero */
.hero--3d .wrapper.hero__content {
  display: flex;
  align-items: center;
  width: var(--wrapper);
  max-width: none;
  padding: 124px 0 72px;
  margin-inline: auto;
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
}

.hero--3d .hero__text {
  max-width: 46%;
  position: relative;
  z-index: 2;
}

.hero--3d .hero__title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

/* fallback for non-3d hero */
.hero__content {
  padding: 160px 0 80px;
  max-width: 760px;
  position: relative;
  z-index: 1;
}

.hero__title {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero__title span {
  display: block;
  font-weight: 600;
  opacity: .92;
  font-size: 0.82em;
  margin-bottom: 6px;
}

.hero__cta { margin-top: 28px; }

/* ── Hero 3D variant ────────────────────────────────────────── */
.hero--3d {
  background: #05080e;
  overflow: hidden;
  isolation: isolate;
}

/* Subtle vignette overlay */
.hero--3d .hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,8,14,.45) 0%, transparent 25%, transparent 75%, rgba(5,8,14,.55) 100%);
  pointer-events: none;
}

/* Canvas container — full hero, machine still positioned in scene to the right */
.hero__canvas-wrap {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  pointer-events: none;
}

.hero__canvas-wrap #hero-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Eyebrow label */
.hero__eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(136,170,255,.75);
  margin-bottom: 14px;
}

/* Bottom-right telemetry label */
.hero__scan-label {
  position: absolute;
  bottom: 28px;
  right: 32px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,26,26,.7);
  animation: blink 2.2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* Red bottom accent line */
.hero--3d::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #ff1a1a 40%, #ff1a1a 60%, transparent 100%);
  opacity: .7;
}

/* Promotions */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.promo-card {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  border-radius: 12px;
  padding: 28px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--dark-2) center/cover no-repeat;
  box-shadow: var(--shadow);
}

.promo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.78));
}

.promo-card > * { position: relative; z-index: 1; }

.promo-card:nth-child(1) {
  background-image:
    linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.75)),
    url("https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?auto=format&fit=crop&w=800&q=70");
}
.promo-card:nth-child(2) {
  background-image:
    linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.75)),
    url("https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&w=800&q=70");
}
.promo-card:nth-child(3) {
  background-image:
    linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.75)),
    url("https://images.unsplash.com/photo-1581092160562-40aa08e78837?auto=format&fit=crop&w=800&q=70");
}

.promo-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 10px;
}

.promo-card p {
  font-size: 14px;
  opacity: .9;
  margin-bottom: 16px;
}

.promo-card .link {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,.5);
  align-self: flex-start;
}

.promo-card__badge {
  position: absolute !important;
  top: 20px;
  left: 20px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.promo-card__badge--ended {
  background: rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .85);
}

.promo-card--ended {
  filter: grayscale(1);
  opacity: .72;
  pointer-events: none;
}

.promo-card--ended::before {
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.88));
}

.promo-card--ended::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: repeating-linear-gradient(
    -35deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, .035) 10px,
    rgba(255, 255, 255, .035) 12px
  );
  pointer-events: none;
}

.promo-card__ended-note {
  align-self: flex-start;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, .65);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.promo-countdown {
  margin: 0 0 16px;
}

.promo-countdown__label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  opacity: .8;
}

.promo-countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  max-width: 260px;
}

.promo-countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  border-radius: 8px;
  background: rgba(0, 0, 0, .35);
  border: 1px solid rgba(255, 255, 255, .12);
}

.promo-countdown__unit strong {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.promo-countdown__unit span {
  font-size: 10px;
  font-weight: 600;
  text-transform: lowercase;
  opacity: .7;
}

.promo-countdown.is-finished .promo-countdown__label {
  color: #ffb4b4;
}

/* Categories */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.cat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}

.cat-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.cat-card__img {
  aspect-ratio: 16/10;
  background-color: #eef0f3;
  overflow: hidden;
}

.cat-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cat-card:nth-child(1) .cat-card__img:not(:has(img)) { background-image: url("../images/catalog/metal-1.svg"); }
.cat-card:nth-child(2) .cat-card__img:not(:has(img)) { background-image: url("../images/catalog/wood-1.svg"); }
.cat-card:nth-child(3) .cat-card__img:not(:has(img)) { background-image: url("../images/catalog/furniture-1.svg"); }
.cat-card:nth-child(4) .cat-card__img:not(:has(img)) { background-image: url("../images/catalog/extra-1.svg"); }
.cat-card:nth-child(5) .cat-card__img:not(:has(img)) { background-image: url("../images/catalog/glass-1.svg"); }
.cat-card:nth-child(6) .cat-card__img:not(:has(img)) { background-image: url("../images/catalog/parts-1.svg"); }

.cat-card__body { padding: 20px; }

.cat-card__title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.cat-card__list {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--muted);
}

.cat-card__list li::before {
  content: "• ";
  color: var(--red);
}

.cat-card__link {
  color: var(--red);
  font-weight: 700;
  font-size: 14px;
}

/* Stock products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.product-grid--portfolio {
  grid-template-columns: repeat(3, 1fr);
}

.stock-carousel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.stock-carousel__head .section__title {
  margin: 0;
  text-align: left;
}

.stock-carousel__viewport {
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.stock-carousel__viewport.is-dragging {
  cursor: grabbing;
}

.stock-carousel__viewport.is-dragging a,
.stock-carousel__viewport.is-dragging img {
  pointer-events: none;
}

.stock-carousel__track {
  display: flex;
  gap: 18px;
  transition: transform .45s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

.stock-carousel__slide {
  flex: 0 0 calc((100% - 36px) / 3 - 28px);
  min-width: 0;
}

.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.product-card__media {
  position: relative;
  aspect-ratio: 1.1;
  background-color: #eef0f3;
  overflow: hidden;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.product-card__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.product-card__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: auto;
}

.product-card__price strong {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--red);
}

.product-card__price s {
  color: var(--muted);
  font-size: 13px;
}

.product-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.product-card__actions .btn {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 14px;
  font-size: 13px;
}

.btn--buy {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.btn--buy:hover {
  background: #c4191f;
  border-color: #c4191f;
}

/* Product page */
.product-page {
  padding-top: 0;
}

.product-page__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 48px;
}

.product-page__main-img {
  aspect-ratio: 4/3;
  border-radius: 12px;
  background-color: #eef0f3;
  border: 1px solid var(--line);
  overflow: hidden;
}

.product-page__main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-page__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.product-page__thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  border: 2px solid transparent;
  background-color: #eef0f3;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  transition: border-color .2s;
}

.product-page__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-page__thumb.is-active,
.product-page__thumb:hover {
  border-color: var(--red);
}

.product-page__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}

.product-page__price strong {
  font-size: 2rem;
  font-weight: 800;
  color: var(--red);
}

.product-page__price s {
  color: var(--muted);
  font-size: 1.1rem;
}

.product-page__badge {
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

.product-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.product-page__specs h2 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.product-page__note {
  padding: 16px 18px;
  background: #f8f9fb;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
  color: var(--muted);
}

.product-page__note p {
  margin: 0;
}

.product-page__specs-short {
  margin-top: 20px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.product-page__specs-short-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 14px;
}

.product-page__specs-list {
  margin: 0;
  max-height: 220px;
  overflow: hidden;
  position: relative;
}

.product-page__specs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.45;
}

.product-page__specs-row:first-child {
  padding-top: 0;
}

.product-page__specs-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.product-page__specs-row dt {
  margin: 0;
  font-weight: 600;
  color: var(--text);
}

.product-page__specs-row dd {
  margin: 0;
  color: var(--muted);
  text-align: right;
}

.product-page__specs-short.is-overflow .product-page__specs-list::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
  pointer-events: none;
}

.product-page__specs-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 700;
}

.product-page__specs-more[hidden] {
  display: none !important;
}

.product-page__specs-more::after {
  content: '↓';
  font-size: 12px;
}

#product-specs-full {
  scroll-margin-top: 24px;
}

.product-page__extra {
  display: grid;
  gap: 40px;
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.product-page__block-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.product-page__block-lead {
  margin: -8px 0 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.product-page__prose p {
  margin: 0 0 14px;
  line-height: 1.7;
  color: var(--text);
}

.product-page__prose p:last-child {
  margin-bottom: 0;
}

.product-specs-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.product-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.product-specs-table th,
.product-specs-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.product-specs-table tr:last-child th,
.product-specs-table tr:last-child td {
  border-bottom: none;
}

.product-specs-table th {
  width: 42%;
  font-weight: 700;
  color: var(--text);
  background: #f8f9fb;
}

.product-specs-table td {
  color: var(--muted);
}

.product-page__question .pb-lead {
  max-width: 560px;
  padding: 24px;
  background: #f8f9fb;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.product-page__question .pb-lead h3 {
  display: none;
}

.product-page__question .pb-lead .field {
  width: 100%;
  margin-bottom: 12px;
}

.product-page__question .pb-lead textarea.field {
  min-height: 110px;
  resize: vertical;
}

.product-page__docs {
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.product-page__docs-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.product-docs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.product-doc {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, box-shadow .2s;
}

.product-doc:hover {
  border-color: var(--red);
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

.product-doc__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-doc__label {
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 900px) {
  .product-page__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .product-docs {
    grid-template-columns: 1fr;
  }
}

/* Trust */
.trust {
  background:
    linear-gradient(180deg, rgba(18,20,24,.92), rgba(18,20,24,.95)),
    url("https://images.unsplash.com/photo-1581092918056-0c4c3acd3789?auto=format&fit=crop&w=1600&q=70") center/cover;
  color: #fff;
}

.trust .section__title { color: #fff; }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.trust-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 24px;
}

.trust-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--red);
  margin-bottom: 16px;
  font-size: 20px;
}

.trust-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 8px;
  white-space: pre-line;
}

.trust-card p {
  font-size: 14px;
  opacity: .85;
  line-height: 1.5;
}

/* Geography */
.geo {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 32px;
  align-items: center;
}

.geo__map {
  min-height: 420px;
  height: 420px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
  background: #0f1115;
}

.geo__map .maplibregl-ctrl-attrib {
  font-size: 10px;
  background: rgba(15, 17, 21, 0.75);
  color: rgba(255, 255, 255, 0.55);
}

.geo__map .maplibregl-ctrl-group button {
  background: rgba(15, 17, 21, 0.9);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}

.geo-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  pointer-events: none;
}

.geo-marker__dot {
  display: block;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.geo-marker--hub .geo-marker__dot {
  width: 14px;
  height: 14px;
  background: var(--red);
}

.geo-marker--city .geo-marker__dot {
  width: 10px;
  height: 10px;
  background: var(--red);
}

.geo-marker--abroad .geo-marker__dot {
  width: 8px;
  height: 8px;
  background: #3b82f6;
}

.geo-marker__label {
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(15, 17, 21, 0.82);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}

.geo-marker--hub .geo-marker__label {
  font-size: 11px;
}

.geo__list {
  display: grid;
  gap: 16px;
}

.geo__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}

.geo__item h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.geo__item p { font-size: 14px; color: var(--muted); }

/* Warehouse cards + Yandex maps */
.warehouse-grid {
  display: grid;
  gap: 28px;
}

.warehouse-card {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(280px, 1.1fr);
  gap: 24px;
  align-items: stretch;
}

.warehouse-card .contacts__card {
  height: 100%;
  margin: 0;
}

.warehouse-card__title {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: #fff;
}

.warehouse-card .contacts__subtitle {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, .65);
  font-size: 14px;
}

.warehouse-card__actions {
  margin: 22px 0 0;
}

.warehouse-card__map {
  min-height: 320px;
  height: 100%;
}

.warehouse-card__map iframe,
.contacts__map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}

@media (max-width: 900px) {
  .warehouse-card {
    grid-template-columns: 1fr;
  }
  .warehouse-card__map,
  .warehouse-card__map iframe {
    min-height: 260px;
  }
}

/* Credit CTA */
.credit {
  background: var(--dark);
  color: #fff;
}

.credit__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.credit__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 14px;
}

.credit__text {
  opacity: .85;
  margin-bottom: 20px;
}

.credit__phone {
  font-size: 1.5rem;
  font-weight: 800;
}

.credit__form {
  background: #fff;
  color: var(--text);
  border-radius: 14px;
  padding: 28px;
  display: grid;
  gap: 12px;
}

.credit__form h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.credit__form ul {
  display: grid;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--muted);
}

.credit__form ul li::before {
  content: "✓ ";
  color: var(--red);
  font-weight: 700;
}

.field {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.field:focus {
  outline: 2px solid rgba(227,30,36,.25);
  border-color: var(--red);
}

.consent {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

/* Services 2 */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
}

.service-card__num {
  color: var(--red);
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 12px;
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.35;
}

.service-card p {
  font-size: 14px;
  color: var(--muted);
  flex: 1;
}

.service-card a {
  margin-top: 16px;
  color: var(--red);
  font-weight: 700;
  font-size: 14px;
}

/* Custom product spotlight */
.spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.spotlight__media {
  min-height: 420px;
  background:
    url("https://images.unsplash.com/photo-1581092160562-40aa08e78837?auto=format&fit=crop&w=900&q=70") center/cover;
}

.spotlight__body { padding: 36px; }

.spotlight__badge {
  display: inline-block;
  background: rgba(227,30,36,.1);
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.spotlight__title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.spotlight__specs {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--muted);
}

.spotlight__specs li {
  padding-left: 14px;
  position: relative;
}

.spotlight__specs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

.spotlight__price {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.spotlight__price span {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.spotlight__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Download catalog */
.download {
  background: var(--dark-2);
  color: #fff;
  border-radius: 16px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  align-items: center;
}

.download__title {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
}

.download__meta {
  font-size: 13px;
  opacity: .7;
}

.download__form {
  display: grid;
  gap: 10px;
}

.download__form .btn { width: 100%; }

/* FAQ */
.faq {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.faq-item__q {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  background: transparent;
  border: none;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.faq-item__q::after {
  content: "+";
  color: var(--red);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.faq-item.is-open .faq-item__q::after { content: "−"; }

.faq-item__a {
  display: none;
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.faq-item.is-open .faq-item__a { display: block; }

/* News */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.news-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.news-card__img {
  aspect-ratio: 16/10;
  background: var(--dark-3) center/cover;
}

.news-card:nth-child(1) .news-card__img { background-image: url("https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&w=700&q=70"); }
.news-card:nth-child(2) .news-card__img { background-image: url("https://images.unsplash.com/photo-1540575467063-178a50c2df87?auto=format&fit=crop&w=700&q=70"); }
.news-card:nth-child(3) .news-card__img { background-image: url("https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&w=700&q=70"); }

.news-card__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.news-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
}

.news-card a {
  margin-top: auto;
  color: var(--red);
  font-weight: 700;
  font-size: 14px;
}

.news-more {
  text-align: center;
  margin-top: 28px;
}

/* About */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.about__list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.about__list li {
  padding-left: 18px;
  position: relative;
  font-size: 14px;
  color: var(--muted);
}

.about__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

.about__list strong {
  display: block;
  color: var(--text);
  margin-bottom: 2px;
}

/* Contacts */
.contacts {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 24px;
}

.contacts__card {
  background: var(--dark);
  color: #fff;
  border-radius: 16px;
  padding: 32px;
}

.contacts__card h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.contacts__rows {
  display: grid;
  gap: 16px;
  font-size: 14px;
}

.contacts__rows strong {
  display: block;
  font-size: 12px;
  opacity: .65;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.contacts__map {
  min-height: 360px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #e8eaed;
  overflow: hidden;
}

.contacts__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

/* Contacts tabs */
.contacts-tabs {
  display: grid;
  gap: 20px;
}

.contacts-tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contacts-tabs__btn {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 10px 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}

.contacts-tabs__btn:hover {
  border-color: #c5cad3;
}

.contacts-tabs__btn.is-active {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
}

.contacts-panel {
  display: none;
}

.contacts-panel.is-active {
  display: block;
}

.contacts-panel .contacts__card h2 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.contacts-panel .contacts__subtitle {
  font-size: 13px;
  color: rgba(255,255,255,.65);
  margin-bottom: 18px;
}

/* Footer */
.site-footer {
  background: #0d0f13;
  color: rgba(255,255,255,.78);
  padding: 0 0 28px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.9fr;
  gap: 40px;
  padding: 48px 0 36px;
}

.site-footer__brand-col {
  display: grid;
  gap: 20px;
  align-content: start;
}

.site-footer__brand {
  display: grid;
  gap: 10px;
  max-width: 320px;
}

.site-footer__brand .logo__mark {
  color: #fff;
  font-size: 22px;
}

.site-footer__slogan {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255,255,255,.65);
}

.site-footer__contacts {
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,.6);
}

.site-footer__contacts a {
  color: #fff;
  font-weight: 600;
}

.site-footer__phone {
  font-size: 18px;
}

.site-footer__nav-title {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 14px;
}

.site-footer__nav-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
  font-size: 14px;
}

.site-footer__nav-links a:hover {
  color: #fff;
}

.site-footer__cta-col {
  display: grid;
  gap: 12px;
  align-content: start;
}

.site-footer__cta-col p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,.6);
}

.site-footer__btn {
  justify-self: start;
  padding: 12px 22px;
  font-size: 14px;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 13px;
  color: rgba(255,255,255,.5);
}

.site-footer__legal a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer__legal a:hover {
  color: #fff;
}

.site-footer__copy {
  font-size: 13px;
  color: rgba(255,255,255,.4);
}

/* Legacy aliases */
.site-footer__inner,
.site-footer__menu {
  display: contents;
}

/* Inner pages */
.page-hero {
  background: #111318;
  color: #fff;
  padding: 40px 0 48px;
}

/* Photo cover (portfolio hero + stats) */
.page-cover {
  position: relative;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  min-height: min(72vh, 640px);
  display: flex;
  flex-direction: column;
}

.page-cover__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #111318;
}

.page-cover__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}

.page-cover--mono .page-cover__media img {
  filter: grayscale(1) contrast(1.08) brightness(0.55);
}

.page-cover--mono::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10, 12, 16, .55) 0%, rgba(10, 12, 16, .28) 42%, rgba(10, 12, 16, .45) 100%);
  pointer-events: none;
}

.page-hero--on-cover {
  position: relative;
  z-index: 2;
  background: transparent;
  padding: 40px 0 28px;
}

.page-hero--on-cover .breadcrumbs {
  margin-bottom: 28px;
}

.pb-stats--on-cover {
  position: relative;
  z-index: 2;
  background: transparent !important;
  padding: 0 0 40px;
  margin-top: auto;
  border: 0;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,.55);
  margin-bottom: 18px;
  list-style: none;
  padding: 0;
}

.breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.breadcrumbs a:hover { color: #fff; }

.breadcrumbs span[aria-hidden] { opacity: .4; }

.breadcrumbs [aria-current="page"] {
  color: rgba(255,255,255,.85);
}

/* Legacy ol markup (if cached / plugins) */
.breadcrumbs ol,
.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "|";
  opacity: .4;
  margin-right: 0;
}

.page-hero__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.page-hero__lead {
  margin-top: 12px;
  max-width: 720px;
  color: rgba(255,255,255,.72);
  font-size: 15px;
  line-height: 1.65;
}

.page-content {
  padding: 56px 0 72px;
}

.page-content--dark {
  background: #111318;
  color: #fff;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
}

.pagination[hidden] {
  display: none;
}

.pagination__btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}

.pagination__btn:hover:not(:disabled):not(.is-active) {
  border-color: var(--red);
  color: var(--red);
}

.pagination__btn.is-active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  cursor: default;
}

.pagination__btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.seo-text {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  max-width: 820px;
}

.seo-text h2 {
  margin: 0 0 16px;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 800;
}

.seo-text p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

.seo-text p:last-child {
  margin-bottom: 0;
}

.content-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.content-card {
  position: relative;
  min-height: 280px;
  border-radius: 12px;
  overflow: hidden;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background: var(--dark-2) center/cover no-repeat;
}

.content-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.78));
}

.content-card > * { position: relative; z-index: 1; }

.content-card h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.content-card p {
  font-size: 14px;
  opacity: .9;
  margin-bottom: 16px;
}

.prose {
  max-width: 860px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.prose h2 {
  color: var(--text);
  font-size: 1.35rem;
  margin: 28px 0 12px;
}

.prose ul {
  margin: 12px 0;
  padding-left: 18px;
  list-style: disc;
}

.prose li { margin: 6px 0; }

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* Rich page blocks */
.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.page-hero--promo .pb-promo-badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.pb-stats {
  background: var(--dark);
  color: #fff;
  padding: 32px 0;
}

.pb-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pb-stats__item {
  text-align: center;
}

.pb-stats__item strong {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pb-stats__item span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: rgba(255,255,255,.65);
}

.pb-section {
  padding: 56px 0;
}

.pb-section--alt {
  background: #f4f5f7;
}

.pb-section__title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.pb-steps {
  list-style: none;
  display: grid;
  gap: 16px;
  counter-reset: step;
}

.pb-steps__item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.pb-section--alt .pb-steps__item { background: #fff; }

.pb-steps__num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--dark);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
}

.pb-steps__item h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.pb-steps__item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.pb-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.pb-features__card {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.pb-section--alt .pb-features__card { background: #fff; }

.pb-features__icon {
  display: block;
  font-size: 22px;
  margin-bottom: 10px;
}

.pb-features__card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pb-features__card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.pb-checklist {
  list-style: none;
  display: grid;
  gap: 10px;
}

.pb-checklist li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  line-height: 1.55;
}

.pb-checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.pb-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.pb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.pb-table th,
.pb-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.pb-table th {
  background: #f8f9fb;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
}

.pb-table tr:last-child td { border-bottom: 0; }

.pb-faq {
  max-width: 900px;
  margin: 0;
}

.pb-quote {
  margin: 0;
  padding: 28px 32px;
  background: var(--dark);
  color: #fff;
  border-radius: 16px;
  border-left: 4px solid var(--accent);
}

.pb-quote p {
  font-size: 17px;
  line-height: 1.65;
  font-style: italic;
  margin: 0 0 12px;
}

.pb-quote cite {
  font-size: 14px;
  color: rgba(255,255,255,.65);
  font-style: normal;
}

.pb-timeline {
  list-style: none;
  display: grid;
  gap: 0;
  border-left: 2px solid var(--line);
  margin-left: 8px;
  padding-left: 24px;
}

.pb-timeline li {
  position: relative;
  padding-bottom: 22px;
}

.pb-timeline li::before {
  content: '';
  position: absolute;
  left: -31px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--line);
}

.pb-timeline__date {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 4px;
}

.pb-timeline li strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.pb-timeline li p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

.pb-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.pb-cards__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.pb-cards__item--img {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: stretch;
}

.pb-cards__media {
  min-height: 100%;
  background-color: #eef0f3;
}

.pb-cards__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 120px;
}

.pb-cards__body {
  padding: 22px;
}

.pb-section--alt .pb-cards__item { background: #fff; }

.pb-cards__item h3,
.pb-cards__body h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pb-cards__item p,
.pb-cards__body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 12px;
}

.pb-product-grid { margin-top: 0; }

.pb-two-col {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 32px;
  align-items: start;
}

.pb-lead {
  display: grid;
  gap: 12px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.pb-lead h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
}

.pb-lead textarea.field {
  min-height: 88px;
  resize: vertical;
}

.page-end {
  background: #f4f5f7;
  padding: 28px 0 40px;
}

.page-end--minimal {
  padding: 20px 0 32px;
}

.page-end__inner {
  display: grid;
  gap: 18px;
}

.page-end__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s, gap 0.2s;
}

.page-end__back:hover {
  color: var(--dark);
  gap: 10px;
}

.page-end__back svg {
  flex-shrink: 0;
}

.page-end__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding: 28px 32px;
  background: #fff;
  border: 1px solid #e8eaee;
  border-left: 4px solid var(--accent);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
}

.page-end__content h2 {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--dark);
}

.page-end__content p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 520px;
}

.page-end__aside {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-end__phone {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  white-space: nowrap;
}

.page-end__phone:hover {
  color: var(--accent);
}

/* Legacy — keep for cached HTML until regen */
.pb-cta {
  background: var(--dark);
  color: #fff;
  padding: 48px 0;
}

.pb-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.pb-cta h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.pb-cta p {
  color: rgba(255,255,255,.7);
  font-size: 15px;
  max-width: 560px;
  margin: 0;
}

.pb-back {
  padding: 24px 0 48px;
}

.pb-article-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

.pb-toc {
  padding: 20px 24px;
  background: #f4f5f7;
  border-radius: 14px;
  margin-bottom: 28px;
}

.pb-toc strong {
  display: block;
  font-size: 14px;
  margin-bottom: 10px;
}

.pb-toc ol {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.8;
}

.pb-toc a:hover { color: var(--accent); }

.pb-article { max-width: 800px; }

.pb-cert {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.pb-cert__preview {
  min-height: 360px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, #f8f9fb 0%, #e8eaed 100%),
    url("https://images.unsplash.com/photo-1450101499163-c8848c66ca85?auto=format&fit=crop&w=600&q=70") center/cover;
}

.pb-programs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pb-programs__card {
  position: relative;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.pb-programs__tag {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.pb-programs__card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  padding-right: 48px;
}

.pb-programs__card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 14px;
}

.pb-programs__card ul {
  list-style: none;
  font-size: 13px;
  line-height: 1.7;
}

.pb-calc {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 16px;
}

.pb-calc h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
}

.pb-calc__field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.pb-calc__result {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.pb-calc__result strong {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
}

@media (max-width: 1024px) {
  .pb-stats__grid,
  .pb-programs { grid-template-columns: repeat(2, 1fr); }
  .pb-two-col,
  .pb-cert { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .pb-stats__grid,
  .pb-features,
  .pb-cards,
  .pb-programs { grid-template-columns: 1fr; }
  .pb-cta__inner,
  .page-end__card { flex-direction: column; align-items: flex-start; }
  .site-footer__top { grid-template-columns: 1fr; gap: 28px; }
  .site-footer__nav-links { grid-template-columns: 1fr; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}

.legal-doc {
  max-width: 860px;
}

.legal-doc h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text);
}

.legal-doc h2 {
  font-size: 1.15rem;
  margin: 24px 0 10px;
  color: var(--text);
}

.legal-doc p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--red);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(227,30,36,.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  z-index: 50;
}

.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile */
@media (max-width: 1100px) {
  .wrapper,
  .container { width: min(92vw, 100% - 32px); }

  .promo-grid,
  .cat-grid,
  .trust-grid,
  .service-grid,
  .news-grid,
  .content-card-grid { grid-template-columns: repeat(2, 1fr); }

  .product-grid { grid-template-columns: repeat(2, 1fr); }

  .product-grid--portfolio { grid-template-columns: repeat(2, 1fr); }

  .stock-carousel__slide {
    flex: 0 0 calc((100% - 18px) / 2 - 24px);
  }

  .geo,
  .credit__grid,
  .spotlight,
  .download,
  .about,
  .contacts { grid-template-columns: 1fr; }

  .topbar__price,
  .topbar__online { display: none; }
}

@media (min-width: 1101px) {
  .topbar__row {
    flex-wrap: nowrap;
    gap: 16px 28px;
  }
}

@media (max-width: 768px) {
  .wrapper,
  .container { width: 86.25vw; }

  .burger { display: grid; place-items: center; margin-left: auto; }

  .nav {
    display: none;
    background: rgba(10,12,16,.96);
    border-top: 1px solid rgba(255,255,255,.15);
  }

  .site-header--inner .nav {
    background: #f5f8f9;
    border-top-color: var(--line);
  }

  .nav.is-open { display: block; }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    padding: 16px 0 24px;
    gap: 4px;
  }

  .nav-dropdown__panel {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    display: none;
    padding-left: 12px;
  }

  .nav-dropdown.is-open .nav-dropdown__panel {
    display: block;
    animation: nav-dropdown-in .2s ease-out;
  }

  .nav-dropdown__list {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 4px 0 8px;
  }

  .site-header--inner .nav-dropdown__link {
    color: var(--text);
  }

  .nav-dropdown__trigger {
    width: 100%;
    justify-content: space-between;
    text-align: left;
  }

  .nav__link {
    display: block;
    padding: 10px 10px;
  }

  @keyframes nav-dropdown-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .about-intro__grid { grid-template-columns: 1fr; }

  .topbar__addr { display: none; }

  .topbar__row { padding-bottom: 8px; }

  .hero__content { padding-top: 120px; }

  .promo-grid,
  .cat-grid,
  .trust-grid,
  .service-grid,
  .news-grid,
  .product-grid,
  .product-grid--portfolio,
  .content-card-grid { grid-template-columns: 1fr; }

  .stock-carousel__head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .stock-carousel__slide {
    flex: 0 0 calc(100% - 28px);
  }

  .section { padding: 56px 0; }

  .download { padding: 24px; }

  .site-footer__top,
  .site-footer__bottom {
    gap: 16px;
  }
}

/* Feedback modal */
body.feedback-modal-open { overflow: hidden; }

.feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.feedback-modal::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.feedback-modal[hidden] { display: none; }

.feedback-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 16, 0.72);
  backdrop-filter: blur(4px);
}

.feedback-modal__dialog {
  position: relative;
  width: min(100%, 480px);
  overflow: visible;
  background: #fff;
  border-radius: 16px;
  padding: 24px 24px 20px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
  margin: auto;
}

@media (prefers-reduced-motion: no-preference) {
  .feedback-modal__dialog {
    animation: feedbackModalIn 0.28s ease;
  }
}

@keyframes feedbackModalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.feedback-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--bg);
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.feedback-modal__close:hover {
  background: var(--line);
  color: var(--text);
}

.feedback-modal__head {
  padding-right: 36px;
  margin-bottom: 16px;
}

.feedback-modal__head h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--dark);
}

.feedback-modal__text {
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

.feedback-modal__fields {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.feedback-modal__field {
  display: grid;
  gap: 6px;
}

.feedback-modal__field > span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.feedback-modal__field .field {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.2s;
}

.feedback-modal__field .field:focus-visible {
  outline: 2px solid rgba(227, 30, 36, 0.45);
  outline-offset: 2px;
  border-color: var(--red);
}

.feedback-modal__field textarea.field {
  resize: none;
  min-height: 64px;
  overflow-y: hidden;
}

.feedback-modal__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  margin-bottom: 12px;
  cursor: pointer;
}

.feedback-modal__consent input {
  margin-top: 2px;
  flex-shrink: 0;
}

.feedback-modal__consent a {
  color: var(--red);
  text-decoration: underline;
}

.feedback-modal__submit {
  width: 100%;
}

.feedback-modal__success {
  text-align: center;
  padding: 12px 0 8px;
}

.feedback-modal__success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(227, 30, 36, 0.1);
  color: var(--red);
  font-size: 28px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.feedback-modal__success h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.feedback-modal__success p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.55;
}

/* Gallery4 carousel (shadcn-style) */
.gallery4 {
  --gallery4-scale: 0.6;
  --gallery4-gap: 12px;
  --gallery4-slide-size: calc(88% * var(--gallery4-scale));
}

.gallery4__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.gallery4__title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  margin: 0 0 8px;
}

.gallery4__desc {
  margin: 0;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.gallery4__nav {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.gallery4__btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s, opacity .2s;
}

.gallery4__btn:hover:not(:disabled) {
  border-color: var(--red);
  color: var(--red);
}

.gallery4__btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.gallery4__viewport {
  overflow: hidden;
  margin: 0 -4px;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.gallery4__viewport.is-dragging {
  cursor: grabbing;
}

.gallery4__viewport.is-dragging a,
.gallery4__viewport.is-dragging img {
  pointer-events: none;
}

.gallery4__track {
  display: flex;
  gap: var(--gallery4-gap);
  transition: transform .45s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

.gallery4__slide {
  flex: 0 0 calc(var(--gallery4-slide-size) - var(--gallery4-gap) / 2);
  min-width: 0;
  max-width: 520px;
}

.gallery4__card {
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 24px rgba(15, 23, 42, .06);
  transition: box-shadow .25s, border-color .25s;
}

.gallery4__slide.is-active .gallery4__card {
  border-color: rgba(227, 30, 36, .25);
  box-shadow: 0 12px 40px rgba(15, 23, 42, .1);
}

.gallery4__media {
  aspect-ratio: 16 / 10;
  background: #eef0f3;
  overflow: hidden;
}

.gallery4__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.gallery4--mono .gallery4__media {
  background: #1a1d24;
}

.gallery4--mono .gallery4__media img {
  filter: grayscale(1) contrast(1.05) brightness(0.92);
}

.gallery4__slide.is-active .gallery4__media img {
  transform: scale(1.02);
}

.gallery4__body {
  padding: 14px 16px 16px;
}

.gallery4__slide-title {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 6px;
  line-height: 1.35;
}

.gallery4__slide-desc {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.gallery4__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
  text-decoration: none;
  transition: gap .2s;
}

.gallery4__link:hover {
  gap: 10px;
}

.gallery4__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.gallery4__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #d0d5dd;
  cursor: pointer;
  transition: width .25s, background .25s;
}

.gallery4__dot.is-active {
  width: 24px;
  background: var(--red);
}

@media (max-width: 768px) {
  .gallery4__head {
    flex-direction: column;
    align-items: stretch;
  }

  .gallery4__nav {
    justify-content: flex-end;
  }

  .gallery4__slide {
    flex: 0 0 calc((100% - 32px) * var(--gallery4-scale));
    max-width: none;
  }
}
