/* NovoBricks · local production refresh
   Keeps the published V4 layout, while carrying over the latest display
   typography and the homepage material-index composition. */

:root {
  --refresh-ink: #0b1526;
  --refresh-paper: #f0eee9;
  --refresh-paper-hover: #e1e2dc;
  --refresh-line: rgba(11, 21, 38, 0.17);
  --refresh-orange: #f06422;
  --refresh-ease: cubic-bezier(.23, 1, .32, 1);
}

/* Display typography from the latest local concept. */
body h1,
body h2,
body h3,
body h4,
body h5,
body h6,
.h2,
.hero__h1,
.video__h2,
.cta__h2,
.v3-cathero__h1,
.v3-cat-hero__title,
.v3-sect__h2,
.v3-qz-title,
.v3-cart-drawer__title,
.v3-cart-checkout__title,
.v3-cart-checkout__ok-title,
.pmodal__name,
.pmodal__section-title,
.pmodal__related-card-name,
.v3-cat-card__name,
.v3-related-card__name,
body.inner-page .v3-cat-card__name,
body.inner-page .v3-related-card__name,
body.inner-page .pmodal__related-card-name,
.sqm-popup__title {
  font-family: "Oswald", Arial, sans-serif !important;
  font-weight: 600 !important;
  line-height: 1.02 !important;
  letter-spacing: -.022em !important;
  text-transform: uppercase !important;
  overflow-wrap: normal;
  overflow: visible;
  padding-bottom: .11em;
  text-wrap: balance;
}

.hero__h1 .ln {
  display: block;
  overflow: visible;
  padding: .02em .04em .09em 0;
}

body.inner-page #pmodal .pmodal__name,
body.inner-page #pmodal .pmodal__section-title,
body.inner-page #pmodal .pmodal__related-card-name {
  font-family: "Oswald", Arial, sans-serif !important;
  font-weight: 600 !important;
  line-height: 1.02 !important;
  letter-spacing: -.022em !important;
  text-transform: uppercase !important;
}

.hero__h1,
.v3-cathero__h1,
.v3-cat-hero__title {
  line-height: .94 !important;
}

/* Questions stay conversational instead of looking like display headlines. */
.faq__trig,
.faq__q {
  font-family: "Manrope", Arial, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -.02em !important;
  text-transform: none !important;
}

/* Homepage block 2 · editorial material index from the latest concept. */
#products {
  background: var(--refresh-paper) !important;
  color: var(--refresh-ink) !important;
  padding-block: clamp(56px, 6vw, 80px) !important;
}

#products .products-intro {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(280px, .55fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(34px, 5vw, 64px);
}

#products .products-intro__title {
  max-width: 850px;
  margin: 0;
  color: var(--refresh-ink);
  font: 600 clamp(42px, 6vw, 82px)/.94 "Oswald", Arial, sans-serif !important;
  letter-spacing: -.03em !important;
  text-transform: uppercase;
}

#products .products-intro__title span {
  color: var(--refresh-orange);
}

#products .products-intro__copy {
  max-width: 44ch;
  margin: 0;
  color: #596875;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.65;
}

#products .prod-grid {
  display: block !important;
  margin: 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--refresh-line) !important;
  background: transparent !important;
  overflow: visible !important;
}

#products .prod {
  position: relative !important;
  min-width: 0 !important;
  min-height: 260px !important;
  display: grid !important;
  grid-template-columns: 70px minmax(250px, .76fr) minmax(360px, 1.24fr) !important;
  gap: clamp(22px, 3vw, 42px) !important;
  align-items: center !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-bottom: 1px solid var(--refresh-line) !important;
  background: transparent !important;
  color: var(--refresh-ink) !important;
  isolation: isolate;
  transform: none !important;
}

#products .prod::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--refresh-paper-hover);
  transform: translateX(-101%);
  transition: transform 300ms var(--refresh-ease);
}

#products .prod__no {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  color: var(--refresh-orange);
  font: 600 13px/1 "Oswald", Arial, sans-serif;
  letter-spacing: .1em;
}

#products .prod__body {
  grid-column: 2;
  grid-row: 1;
  align-self: stretch;
  min-width: 0;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  padding: 34px 0 !important;
  background: transparent !important;
  color: var(--refresh-ink) !important;
}

#products .prod__name {
  margin: 0 !important;
  color: var(--refresh-ink) !important;
  font: 600 clamp(32px, 3.45vw, 52px)/.96 "Oswald", Arial, sans-serif !important;
  letter-spacing: -.025em !important;
  text-transform: uppercase !important;
}

#products .prod__desc {
  max-width: 34ch;
  margin: 18px 0 0 !important;
  color: #596875 !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
}

#products .prod__foot {
  margin-top: 26px !important;
  padding-top: 18px !important;
  border-top: 1px solid var(--refresh-line) !important;
}

#products .prod__price {
  color: var(--refresh-orange) !important;
  font-weight: 800 !important;
}

#products .prod__link {
  color: var(--refresh-ink) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}

#products .prod__img {
  position: relative !important;
  grid-column: 3;
  grid-row: 1;
  width: 100% !important;
  height: 250px !important;
  min-height: 250px !important;
  aspect-ratio: auto !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: transparent !important;
}

#products .prod__img::before,
#products .prod__img::after {
  display: none !important;
}

#products .prod__img img {
  position: absolute !important;
  inset: 14px !important;
  width: calc(100% - 28px) !important;
  height: calc(100% - 28px) !important;
  max-width: none !important;
  max-height: none !important;
  margin: auto !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  filter: none !important;
  transform: none !important;
  transition: transform 260ms var(--refresh-ease) !important;
}

#products .prod__img img[src*="главная/категории/"][src*="без-фона"] {
  width: 100% !important;
  height: 100% !important;
  padding: clamp(10px, 2vw, 24px) !important;
  object-fit: contain !important;
  object-position: center !important;
  mix-blend-mode: normal !important;
  filter: none !important;
}

#products .prod__img img[src*="товары/брусчатка-классика/"],
#products .prod__img img[src*="товары/облицовочный-кирпич/фасад-"] {
  padding: 0 !important;
  object-fit: contain !important;
}

body.inner-page .v3-cat-card[data-id="brus-80"] .v3-cat-card__img img,
body.inner-page .v3-cat-card[data-id="brus-80"] .nb-card-gallery__slide img {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  object-fit: cover !important;
}

/* The new Old City photography already includes its own art-directed
   background. Let it occupy the complete 4:3 card frame without an inset. */
body.inner-page .v3-cat-card[data-id="starygorod"] .v3-cat-card__img img,
body.inner-page .v3-cat-card[data-id="starygorod"] .nb-card-gallery__slide img {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  object-fit: cover !important;
}

/* The new curb palette is already composed as a complete 4:3 product shot. */
body.inner-page .v3-cat-card[data-id="bord-trot"] .v3-cat-card__img img,
body.inner-page .v3-cat-card[data-id="bord-trot"] .nb-card-gallery__slide img {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  object-fit: cover !important;
}

/* Mega-format renders fill the whole media frame — no inset border. */
body.inner-page .v3-cat-card[data-id="mega"] .v3-cat-card__img img,
body.inner-page .v3-cat-card[data-id="mega"] .nb-card-gallery__slide img {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  object-fit: cover !important;
}

/* New City (multiformat) tiles fill the frame too — no inset gutter. */
body.inner-page .v3-cat-card[data-id="multi"] .v3-cat-card__img img,
body.inner-page .v3-cat-card[data-id="multi"] .nb-card-gallery__slide img {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  object-fit: cover !important;
}
body.inner-page .v3-cat-card[data-id="multi"] .v3-cat-card__img {
  background: #fff !important;
}
/* ...but the colour/size scheme sheet is always shown in full, never cropped —
   including the pmodal thumbnail strip and the mobile gallery. High specificity
   beats the default `.pmodal-thumbs-swiper .swiper-slide img { cover }`. */
html body.inner-page .v3-cat-card .nb-card-gallery__slide img[src*="все-цвета"],
html body.inner-page .v3-cat-card .nb-card-gallery__slide img[src*="размеры"],
html body.inner-page #pmodal .pmodal-swiper .swiper-slide img[src*="все-цвета"],
html body.inner-page #pmodal .pmodal-swiper .swiper-slide img[src*="размеры"],
html body.inner-page #pmodal .pmodal-thumbs-swiper .swiper-slide img[src*="все-цвета"],
html body.inner-page #pmodal .pmodal-thumbs-swiper .swiper-slide img[src*="размеры"],
html body.inner-page #pmodal img[src*="все-цвета"],
html body.inner-page #pmodal img[src*="размеры"] {
  object-fit: contain !important;
  padding: 0 !important;
  background: #f2f2f2 !important;
}

@media (hover: hover) and (pointer: fine) {
  #products .prod:hover::before {
    transform: translateX(0);
  }

  #products .prod:hover .prod__img img {
    transform: translateY(-5px) rotate(-.6deg) !important;
  }

  #products .prod:hover .prod__link {
    color: var(--refresh-orange) !important;
  }
}

/* Product brick renders use their complete studio composition. */
img[src*="товары/облицовочный-кирпич/"] {
  object-position: center !important;
}

.v3-cat-card img[src*="товары/облицовочный-кирпич/"],
.pmodal img[src*="товары/облицовочный-кирпич/"],
.v3-cathero img[src*="товары/облицовочный-кирпич/"],
.v3-cat-hero img[src*="товары/облицовочный-кирпич/"] {
  object-fit: contain !important;
}

/* Brick catalogue photography is art-directed edge to edge. */
body.inner-page .v3-cat-card__img .nb-card-gallery__slide img[src*="brick-"],
body.inner-page #pmodal .pmodal-swiper > .swiper-wrapper > .swiper-slide img[src*="brick-"] {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
}

body.inner-page .v3-cat-card__dots {
  gap: 7px !important;
}

body.inner-page .v3-cat-card__dots .v3-cdot-more {
  margin-left: 4px !important;
}

body.inner-page #pmodal .pmodal-pagination {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

body.inner-page #pmodal .pmodal-pagination .swiper-pagination-bullet {
  margin: 0 !important;
}

@media (max-width: 820px) {
  body h1,
  body h2,
  body h3,
  body h4,
  body h5,
  body h6,
  .h2,
  .hero__h1,
  .video__h2,
  .cta__h2,
  .v3-cathero__h1,
  .v3-cat-hero__title,
  .v3-sect__h2 {
    line-height: 1.04 !important;
    padding-bottom: .08em;
  }

  #products .prod {
    min-height: 0 !important;
    grid-template-columns: 38px minmax(0, 1fr) !important;
    grid-template-rows: auto 190px !important;
    gap: 8px 16px !important;
    padding: 28px 0 22px !important;
  }

  #products {
    padding-block: 42px !important;
  }

  #products .products-intro {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 32px;
  }

  #products .products-intro__title {
    font-size: clamp(38px, 13vw, 56px) !important;
    line-height: .96 !important;
  }

  #products .prod__no {
    align-self: start;
    padding-top: 6px;
  }

  #products .prod__body {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    padding: 0 !important;
  }

  #products .prod__name {
    font-size: clamp(30px, 10vw, 42px) !important;
    line-height: .98 !important;
  }

  #products .prod__desc {
    margin-top: 12px !important;
    font-size: 14px !important;
  }

  #products .prod__foot {
    margin-top: 18px !important;
    padding-top: 14px !important;
  }

  #products .prod__img {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 190px !important;
    min-height: 190px !important;
  }

  #products .prod__img img {
    inset: 10px !important;
    width: calc(100% - 20px) !important;
    height: calc(100% - 20px) !important;
    max-width: none !important;
    max-height: none !important;
    padding: 0 !important;
  }

  #products .prod__img img[src*="товары/брусчатка-классика/"],
  #products .prod__img img[src*="товары/облицовочный-кирпич/фасад-"] {
    padding: 0 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #products .prod::before,
  #products .prod__img img {
    transition: none !important;
  }
}

/* Product photos: swipeable both before and after opening a card. */
.v3-cat-card__img {
  isolation: isolate;
}

body.inner-page .v3-cat-card__img {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 4 / 3 !important;
  flex: 0 0 auto !important;
}

.nb-card-gallery {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
  outline: none;
}

.nb-card-gallery.is-dragging {
  cursor: grabbing;
}

.nb-card-gallery__track {
  display: flex;
  width: 100%;
  height: 100%;
  transform: translate3d(0, 0, 0);
  transition: transform 380ms cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}

.nb-card-gallery__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
}

body.inner-page .v3-cat-card__img .nb-card-gallery__slide img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 18px !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
  filter: none !important;
  pointer-events: none;
}

body.inner-page .v3-cat-card__img .nb-card-gallery__slide--photo img {
  padding: 0 !important;
  object-fit: cover !important;
}

.v3-cat-card:hover .nb-card-gallery__slide img {
  transform: none !important;
  filter: none !important;
}

.v3-cat-card__badge {
  z-index: 8;
}

.v3-cat-card__overlay {
  pointer-events: none !important;
}

.nb-gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 10;
  width: 42px;
  height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 0;
  background: rgba(11, 21, 38, .38);
  color: #fff;
  box-shadow: none;
  opacity: .48;
  cursor: pointer;
  transform: translateY(-50%);
  transition: opacity 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.nb-gallery-arrow--prev {
  left: 9px;
}

.nb-gallery-arrow--next {
  right: 9px;
}

.nb-gallery-arrow svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nb-gallery-arrow:hover {
  opacity: .9;
  background: rgba(11, 21, 38, .72);
  border-color: rgba(255, 255, 255, .62);
}

.nb-gallery-arrow:focus-visible,
.nb-card-gallery:focus-visible {
  outline: 2px solid #ef6425;
  outline-offset: -3px;
}

.nb-gallery-count {
  position: absolute;
  z-index: 10;
  pointer-events: none;
  color: #fff;
  background: rgba(11, 21, 38, .34);
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 0;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .08em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.nb-gallery-count--card {
  right: 11px;
  bottom: 10px;
  padding: 6px 8px;
  opacity: .62;
}

body.inner-page #pmodal .pmodal-swiper {
  touch-action: pan-y;
  user-select: none;
}

body.inner-page #pmodal .pmodal__photos {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 4 / 3 !important;
  flex: 0 0 auto !important;
}

body.inner-page #pmodal .nb-gallery-arrow {
  width: 42px;
  height: 42px;
  opacity: .52;
}

body.inner-page #pmodal .nb-gallery-arrow--prev {
  left: 14px;
}

body.inner-page #pmodal .nb-gallery-arrow--next {
  right: 14px;
}

body.inner-page #pmodal .nb-gallery-count--modal {
  top: 14px;
  right: 14px;
  bottom: auto;
  padding: 7px 9px;
  opacity: .76;
}

/* Product detail gallery: a dominant 4:3 image, a compact filmstrip and an
   integrated delivery panel. The product render is never cropped; real object
   photographs fill the same fixed frame edge to edge. */
body.inner-page #pmodal .pmodal__photos,
body.inner-page #pmodal .pmodal-swiper,
body.inner-page #pmodal .pmodal-swiper > .swiper-wrapper,
body.inner-page #pmodal .pmodal-swiper > .swiper-wrapper > .swiper-slide {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 4 / 3 !important;
}

body.inner-page #pmodal .pmodal-swiper > .swiper-wrapper > .swiper-slide {
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: #f2efe8 !important;
}

body.inner-page #pmodal .pmodal-swiper > .swiper-wrapper > .nb-pmodal-slide--product img {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  background: transparent !important;
}

body.inner-page #pmodal .pmodal-swiper > .swiper-wrapper > .nb-pmodal-slide--scene {
  background: #ebe7de !important;
}

body.inner-page #pmodal .pmodal-swiper > .swiper-wrapper > .nb-pmodal-slide--scene img {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
  background: transparent !important;
}

body.inner-page #pmodal .pmodal-pagination {
  display: none !important;
}

body.inner-page #pmodal .pmodal__thumbs-wrap {
  position: relative;
  padding: 15px 18px 18px !important;
  border: 0 !important;
  background: #fffdf8 !important;
  overflow: hidden !important;
}

body.inner-page #pmodal .nb-gallery-rail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  color: #66717b;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
}

body.inner-page #pmodal .nb-gallery-rail-count {
  margin: 0;
  color: #ef6425;
  font: 600 11px/1 "Oswald", Arial, sans-serif;
  letter-spacing: .1em;
}

body.inner-page #pmodal .nb-gallery-rail-actions {
  position: static !important;
  display: grid !important;
  grid-template-columns: 38px 38px !important;
  grid-template-rows: 38px !important;
  align-items: center;
  gap: 5px;
  width: 81px;
  min-width: 81px;
  height: 38px;
}

body.inner-page #pmodal .nb-gallery-arrow--rail {
  position: static !important;
  inset: auto !important;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid rgba(16, 25, 35, .2);
  background: #f2efe8;
  color: #101923;
  opacity: 1;
  transform: none !important;
  box-shadow: none !important;
}

body.inner-page #pmodal .nb-gallery-rail-actions .nb-gallery-arrow--prev {
  grid-column: 1 !important;
  grid-row: 1 !important;
}

body.inner-page #pmodal .nb-gallery-rail-actions .nb-gallery-arrow--next {
  grid-column: 2 !important;
  grid-row: 1 !important;
}

body.inner-page #pmodal .nb-gallery-arrow--rail:hover {
  border-color: #ef6425;
  background: #ef6425;
  color: #fff;
}

body.inner-page #pmodal .pmodal-thumbs-swiper {
  height: 66px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  touch-action: pan-y !important;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}

body.inner-page #pmodal .pmodal-thumbs-swiper::-webkit-scrollbar {
  display: none;
}

body.inner-page #pmodal .pmodal-thumbs-swiper.is-dragging {
  cursor: grabbing;
  user-select: none;
}

body.inner-page #pmodal .pmodal-thumbs-swiper .swiper-wrapper {
  display: flex !important;
  width: max-content !important;
  min-width: 100% !important;
  gap: 10px !important;
  transform: none !important;
}

body.inner-page #pmodal .pmodal-thumbs-swiper .swiper-slide {
  position: relative;
  flex: 0 0 88px !important;
  width: 88px !important;
  height: 66px !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: #ebe7de !important;
  opacity: .52 !important;
  overflow: hidden !important;
  transition: opacity 180ms ease !important;
}

body.inner-page #pmodal .pmodal-thumbs-swiper .swiper-slide::after {
  display: none !important;
}

body.inner-page #pmodal .pmodal-thumbs-swiper .swiper-slide-thumb-active {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

body.inner-page #pmodal .pmodal-thumbs-swiper .swiper-slide img {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  object-fit: cover !important;
  background: transparent !important;
}

body.inner-page #pmodal .pmodal-thumbs-swiper .nb-pmodal-thumb--product img {
  object-fit: contain !important;
}

/* Desktop product card: delivery information finishes the visual column. */
#pmodal .pmodal__left .pmodal__info-block--under-photo {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 16px 0 0;
  padding: 14px 26px 18px;
  border: 0;
  background: #f2efe8;
  color: #101923;
}

#pmodal .pmodal__left .pmodal__info-block--under-photo .pmodal__section-title {
  grid-column: 1 / -1;
  margin: 0 0 8px;
  color: #101923 !important;
  font-size: 17px !important;
  letter-spacing: -.01em !important;
}

#pmodal .pmodal__left .pmodal__info-block--under-photo .pmodal__info-row {
  align-items: flex-start;
  gap: 11px;
  min-height: 40px;
  padding: 5px 14px 5px 0;
  border: 0 !important;
  color: #56636d !important;
  font-size: 12px !important;
  line-height: 1.45;
}

#pmodal .pmodal__left .pmodal__info-block--under-photo .pmodal__info-icon {
  width: 18px;
  height: 18px;
  color: #ef6425 !important;
}

#pmodal .pmodal__right .pmodal__info-block--details {
  display: none;
}

/* The product drawer has one consistent, square close control on every page. */
html body.inner-page #pmodal .pmodal__close,
html body.inner-page .pmodal .pmodal__close {
  position: fixed !important;
  top: 16px !important;
  right: 16px !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  border: 1px solid rgba(16, 25, 35, .16) !important;
  border-radius: 0 !important;
  clip-path: none !important;
  background: #fffdf8 !important;
  color: #101923 !important;
  box-shadow: none !important;
  z-index: 120 !important;
}

html body.inner-page #pmodal .pmodal__close:hover,
html body.inner-page .pmodal .pmodal__close:hover {
  border-color: #ef6425 !important;
  background: #ef6425 !important;
  color: #fff !important;
}

/* No accidental divider remains between the gallery and product details. */
html body.inner-page #pmodal .pmodal__left,
html body.inner-page #pmodal.pmodal--normalized .pmodal__left {
  border: 0 !important;
  border-right: 0 !important;
  box-shadow: none !important;
}

html body.inner-page #pmodal .pmodal__left::before,
html body.inner-page #pmodal .pmodal__left::after {
  display: none !important;
  content: none !important;
}

html body.inner-page #pmodal .pmodal__thumbs-wrap,
html body.inner-page #pmodal .pmodal__info-block,
html body.inner-page #pmodal .pmodal__info-row,
html body.inner-page #pmodal .pmodal__related > .pmodal__section-title {
  border: 0 !important;
}

/* The purchase action stays above a compact expandable specification. */
body.inner-page #pmodal .pmodal__actions {
  margin: 18px 0 12px !important;
}

body.inner-page #pmodal .pmodal__specs {
  margin: 0 0 20px !important;
  padding: 0 !important;
  background: transparent !important;
}

body.inner-page #pmodal .pmodal__specs-disclosure {
  margin: 0;
  background: #f2efe8;
}

body.inner-page #pmodal .pmodal__specs-disclosure > summary {
  min-height: 54px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  list-style: none;
  cursor: pointer;
  color: #101923;
  font: 600 13px/1 "Oswald", Arial, sans-serif;
  letter-spacing: .07em;
  text-transform: uppercase;
}

body.inner-page #pmodal .pmodal__specs-disclosure > summary::-webkit-details-marker {
  display: none;
}

body.inner-page #pmodal .pmodal__specs-disclosure-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

body.inner-page #pmodal .pmodal__specs-disclosure-icon::before,
body.inner-page #pmodal .pmodal__specs-disclosure-icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1.5px;
  content: "";
  background: #ef6425;
  transform: translate(-50%, -50%);
  transition: transform 180ms ease;
}

body.inner-page #pmodal .pmodal__specs-disclosure-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

body.inner-page #pmodal .pmodal__specs-disclosure[open] .pmodal__specs-disclosure-icon::after {
  transform: translate(-50%, -50%) rotate(0);
}

body.inner-page #pmodal .pmodal__specs-disclosure-body {
  padding: 4px 18px 16px;
}

body.inner-page #pmodal .pmodal__specs table {
  margin: 0 !important;
}

body.inner-page #pmodal .pmodal__specs tr {
  border: 0 !important;
}

body.inner-page #pmodal .pmodal__specs td {
  padding: 7px 0 !important;
  vertical-align: top;
}

/* All category-page controls inherit the flat homepage button language. */
body.inner-page .v3-btn,
body.inner-page .pmodal__contact-btn,
body.inner-page .v3-hdr__cta {
  min-height: 52px !important;
  height: 52px !important;
  padding: 0 26px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  border-width: 1px !important;
  border-style: solid !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: "Oswald", Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 120ms ease !important;
}

body.inner-page .v3-btn--accent,
body.inner-page .v3-hdr__cta {
  border-color: #ef6425 !important;
  background: #ef6425 !important;
  color: #fff !important;
}

body.inner-page .v3-btn--accent:hover,
body.inner-page .v3-hdr__cta:hover {
  border-color: #d95318 !important;
  background: #d95318 !important;
  color: #fff !important;
}

body.inner-page .v3-btn--outline,
body.inner-page .pmodal__contact-btn {
  border-color: rgba(16, 25, 35, .42) !important;
  background: transparent !important;
  color: #101923 !important;
}

body.inner-page .v3-btn--outline:hover,
body.inner-page .pmodal__contact-btn:hover {
  border-color: #101923 !important;
  background: #101923 !important;
  color: #fff !important;
}

body.inner-page .v3-cathero .v3-btn--outline,
body.inner-page .v3-cat-hero .v3-btn--outline,
body.inner-page .v3-sect--dark .v3-btn--outline {
  border-color: rgba(255, 255, 255, .5) !important;
  color: #fff !important;
}

body.inner-page .v3-cathero .v3-btn--outline:hover,
body.inner-page .v3-cat-hero .v3-btn--outline:hover,
body.inner-page .v3-sect--dark .v3-btn--outline:hover {
  border-color: #fff !important;
  background: #fff !important;
  color: #101923 !important;
}

body.inner-page .v3-btn:active,
body.inner-page .pmodal__contact-btn:active,
body.inner-page .v3-hdr__cta:active {
  transform: scale(.98) !important;
}

body.inner-page .v3-btn,
body.inner-page .v3-btn:hover,
body.inner-page .v3-btn:focus,
body.inner-page .v3-btn:active,
body.inner-page .v3-hdr__cta,
body.inner-page .pmodal__contact-btn,
body.inner-page a[class*="btn"],
body.inner-page button[class*="btn"] {
  box-shadow: none !important;
  filter: none !important;
  text-shadow: none !important;
}

body.inner-page .v3-btn::before,
body.inner-page .v3-btn::after,
body.inner-page a[class*="btn"]::before,
body.inner-page a[class*="btn"]::after,
body.inner-page button[class*="btn"]::before,
body.inner-page button[class*="btn"]::after {
  box-shadow: none !important;
  filter: none !important;
}

html body.inner-page .v3-sect .v3-sect__top-row > .v3-btn.v3-btn--outline,
html body.inner-page .v3-sect:not(.v3-sect--alt):not(.v3-sect--dark) .v3-btn--outline,
html body.inner-page .v3-colors-sect .v3-btn--outline,
html body.inner-page .v3-specs-sect .v3-btn--outline {
  box-shadow: none !important;
  filter: none !important;
  text-shadow: none !important;
}

body.inner-page #pmodal .pmodal__related > .pmodal__section-title {
  margin-bottom: 20px !important;
  color: #101923 !important;
  font: 600 clamp(25px, 2.8vw, 38px)/1 "Oswald", Arial, sans-serif !important;
  letter-spacing: -.025em !important;
  text-transform: uppercase !important;
}

/* Quantity is a second cart step, not an input competing with the product CTA. */
.nb-quantity-dialog {
  position: fixed;
  inset: 0;
  z-index: 22000;
  display: grid;
  place-items: center;
  padding: 20px;
  visibility: hidden;
  pointer-events: none;
}

.nb-quantity-dialog.is-open {
  visibility: visible;
  pointer-events: auto;
}

.nb-quantity-dialog__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(16, 25, 35, .46);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 220ms ease;
}

.nb-quantity-dialog.is-open .nb-quantity-dialog__backdrop {
  opacity: 1;
}

.nb-quantity-dialog__panel {
  position: relative;
  width: min(440px, 100%);
  padding: clamp(28px, 5vw, 42px);
  border-top: 4px solid #ef6425;
  background: #fffdf8;
  color: #101923;
  transform: translateY(14px);
  opacity: 0;
  transition: opacity 220ms ease, transform 280ms var(--refresh-ease);
}

.nb-quantity-dialog.is-open .nb-quantity-dialog__panel {
  transform: translateY(0);
  opacity: 1;
}

.nb-quantity-dialog__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(16, 25, 35, .18);
  background: transparent;
  color: #101923;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.nb-quantity-dialog__step {
  display: block;
  margin-bottom: 14px;
  color: #ef6425;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.nb-quantity-dialog__title {
  margin: 0 40px 12px 0;
  color: #101923;
  font: 600 clamp(28px, 4vw, 40px)/1 "Oswald", Arial, sans-serif !important;
  letter-spacing: -.025em !important;
  text-transform: uppercase;
}

.nb-quantity-dialog__copy {
  margin: 0 0 24px;
  color: #66717b;
  font-size: 13px;
  line-height: 1.55;
}

.nb-quantity-dialog__field {
  display: block;
  margin-bottom: 14px;
}

.nb-quantity-dialog__label {
  display: block;
  margin-bottom: 8px;
  color: #56636d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.nb-quantity-dialog__control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 58px;
  border: 1px solid rgba(16, 25, 35, .22);
  background: #f2efe8;
}

.nb-quantity-dialog__control input {
  min-width: 0;
  padding: 0 16px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #101923;
  font: 600 25px/1 "Oswald", Arial, sans-serif;
}

.nb-quantity-dialog__control input.is-error {
  box-shadow: inset 0 0 0 2px #ef6425;
}

.nb-quantity-dialog__control b {
  min-width: 60px;
  display: grid;
  place-items: center;
  padding: 0 14px;
  border-left: 1px solid rgba(16, 25, 35, .16);
  color: #101923;
  font-size: 13px;
}

.nb-quantity-dialog__submit {
  width: 100%;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid #ef6425;
  background: #ef6425;
  color: #fff;
  box-shadow: none;
  font: 600 13px/1 "Oswald", Arial, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (min-width: 761px) {
  body.inner-page #pmodal:not(.pmodal--normalized) .pmodal__panel {
    display: grid !important;
    grid-template-columns: minmax(0, 46%) minmax(0, 54%) !important;
    align-items: start !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  body.inner-page #pmodal:not(.pmodal--normalized) .pmodal__left {
    width: auto !important;
    overflow: visible !important;
  }

  body.inner-page #pmodal:not(.pmodal--normalized) .pmodal__right {
    width: auto !important;
    overflow: visible !important;
    padding-top: 0 !important;
  }

  body.inner-page #pmodal.pmodal--normalized .pmodal__scroll {
    align-items: start !important;
  }

  body.inner-page #pmodal.pmodal--normalized .pmodal__left {
    border-right: 0 !important;
  }

  body.inner-page #pmodal .pmodal__body {
    padding-top: 58px !important;
  }
}

@media (hover: none), (pointer: coarse) {
  .nb-gallery-arrow {
    opacity: .62;
  }
}

@media (max-width: 760px) {
  body.inner-page #pmodal .pmodal__left {
    height: auto !important;
  }

  body.inner-page .v3-cat-card__img .nb-card-gallery__slide img {
    padding: 12px !important;
  }

  .nb-gallery-arrow,
  body.inner-page #pmodal .nb-gallery-arrow {
    width: 40px;
    height: 42px;
  }

  body.inner-page #pmodal .nb-gallery-arrow--rail {
    width: 38px;
    height: 36px;
  }

  body.inner-page #pmodal .nb-gallery-arrow--prev {
    left: 8px;
  }

  body.inner-page #pmodal .nb-gallery-arrow--next {
    right: 8px;
  }

  body.inner-page #pmodal .nb-gallery-count--modal {
    top: 10px;
    right: 10px;
  }

  body.inner-page #pmodal .pmodal__photos,
  body.inner-page #pmodal .pmodal-swiper,
  body.inner-page #pmodal .pmodal-swiper > .swiper-wrapper,
  body.inner-page #pmodal .pmodal-swiper > .swiper-wrapper > .swiper-slide {
    height: auto !important;
    min-height: 0 !important;
    flex: 0 0 auto !important;
    aspect-ratio: 4 / 3 !important;
  }

  body.inner-page #pmodal .pmodal__thumbs-wrap {
    padding: 12px 12px 14px !important;
  }

  body.inner-page #pmodal .nb-gallery-rail-head {
    margin-bottom: 9px;
  }

  body.inner-page #pmodal .pmodal-thumbs-swiper {
    height: 57px !important;
  }

  body.inner-page #pmodal .pmodal-thumbs-swiper .swiper-slide {
    flex-basis: 76px !important;
    width: 76px !important;
    height: 57px !important;
  }

  #pmodal .pmodal__left .pmodal__info-block--under-photo {
    display: none;
  }

  #pmodal .pmodal__right .pmodal__info-block--details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin: 18px 0 0 !important;
    padding: 16px 18px !important;
    border: 0 !important;
    background: #f2efe8 !important;
    color: #101923 !important;
  }

  #pmodal .pmodal__right .pmodal__info-block--details .pmodal__section-title {
    margin: 0 0 8px !important;
    color: #101923 !important;
    font-size: 16px !important;
  }

  #pmodal .pmodal__right .pmodal__info-block--details .pmodal__info-row {
    min-height: 40px;
    padding: 6px 0;
    border: 0 !important;
    color: #56636d !important;
  }

  #pmodal .pmodal__right .pmodal__info-block--details .pmodal__info-icon {
    color: #ef6425 !important;
  }

  body.inner-page .v3-btn,
  body.inner-page .pmodal__contact-btn,
  body.inner-page .v3-hdr__cta {
    min-height: 50px !important;
    height: 50px !important;
    padding-inline: 20px !important;
  }
}

/* Premium dark surface used by every navy section. Wide linear transitions
   keep the surface deep and dimensional without visible spots or “smoke”. */
html body .calc-sect,
html body #process,
html body #reviews,
html body #contacts,
html body .ft,
html body.inner-page .v3-cathero,
html body.inner-page .v3-cat-hero,
html body.inner-page .v3-sect--alt,
html body.inner-page .v3-sect--dark,
html body.inner-page .v3-footer {
  background-color: #0a1523 !important;
  background-image:
    linear-gradient(104deg, transparent 0%, rgba(74, 110, 151, .055) 34%, rgba(105, 139, 178, .075) 49%, rgba(62, 98, 139, .04) 64%, transparent 100%),
    linear-gradient(118deg, #07111c 0%, #0a1828 27%, #10233a 49%, #0b1b2d 71%, #07121e 100%) !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}

html body.inner-page .v3-cathero::before,
html body.inner-page .v3-cat-hero::before {
  background-image: linear-gradient(90deg, rgba(5, 11, 18, .2), transparent 45%, rgba(5, 11, 18, .13)) !important;
}

/* Catalogue hero: a direct offer plus a compact custom-production proof point. */
html body.inner-page .v3-cat-hero__custom {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  width: min(100%, 560px);
  margin-top: 26px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .055);
  backdrop-filter: blur(8px);
}

html body.inner-page .v3-cat-hero__custom-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(239, 100, 37, .72);
  color: #ef6425;
  background: linear-gradient(145deg, rgba(239, 100, 37, .1), rgba(255, 255, 255, .025));
  box-shadow: inset 0 0 18px rgba(239, 100, 37, .045), 0 0 22px rgba(239, 100, 37, .07);
}

html body.inner-page .v3-cat-hero__custom-mark svg {
  width: 25px;
  height: 25px;
  overflow: visible;
}

html body.inner-page .v3-cat-hero__custom-mark path {
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

html body.inner-page .v3-cat-hero__custom-mark .v3-cat-hero__custom-spark {
  stroke: #fffdf8;
  stroke-width: 1.1;
  opacity: .72;
}

html body.inner-page .v3-cat-hero__custom strong {
  display: block;
  color: #fffdf8;
  font-size: 15px;
  line-height: 1.25;
}

html body.inner-page .v3-cat-hero__custom p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
  line-height: 1.45;
}

/* A compact custom-colour offer on the homepage, kept inside the product block. */
html body .custom-order-note {
  display: grid;
  grid-template-columns: minmax(190px, .65fr) minmax(280px, 1.25fr) auto;
  gap: 24px;
  align-items: center;
  margin-top: 22px;
  padding: 22px 24px;
  border: 1px solid rgba(11, 21, 38, .13);
  color: #0b1526;
  background: #fffdf8;
  text-decoration: none;
  transition: border-color .25s ease, background-color .25s ease;
}

html body .custom-order-note:hover,
html body .custom-order-note:focus-visible {
  border-color: rgba(239, 100, 37, .72);
  background: #fffaf2;
}

html body .custom-order-note__index {
  color: #ef6425;
  font-family: "Oswald", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
}

html body .custom-order-note strong {
  font-family: "Oswald", sans-serif;
  font-size: clamp(23px, 2.2vw, 34px);
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

html body .custom-order-note p {
  margin: 0;
  color: #596875;
  font-size: 14px;
  line-height: 1.5;
}

html body .custom-order-note__link {
  color: #0b1526;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .06em;
}

@media (max-width: 900px) {
  html body .custom-order-note {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  html body .custom-order-note p {
    grid-column: 1;
  }

  html body .custom-order-note__link {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 600px) {
  html body.inner-page .v3-cat-hero__custom {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    margin-top: 20px;
    padding: 15px;
  }

  html body.inner-page .v3-cat-hero__custom-mark {
    width: 36px;
    height: 36px;
    font-size: 11px;
  }

  html body .custom-order-note {
    display: block;
    margin-top: 14px;
    padding: 20px;
  }

  html body .custom-order-note strong,
  html body .custom-order-note p,
  html body .custom-order-note__link {
    display: block;
    margin-top: 12px;
  }
}

/* Homepage product rows: keep the action arrow inside the safe area and scale
   long category names down on narrow phones. */
html body #products .prod__link {
  padding-right: 9px;
  overflow: visible;
}

@media (max-width: 600px) {
  html body #products .prod {
    grid-template-columns: 34px minmax(0, 1fr) !important;
  }

  html body #products .prod__name {
    font-size: clamp(29px, 9vw, 35px) !important;
    line-height: 1.02 !important;
  }

  html body #products .prod__foot {
    gap: 10px !important;
  }

  html body #products .prod__link {
    flex: 0 0 auto;
    padding-right: 10px;
    font-size: 10px !important;
  }
}

/* Quiz helper copy remains readable, while a smaller stable canvas removes the
   large dead zone before the preliminary-calculation note. */
html body .calc-quiz .calc-step {
  min-height: 285px;
}

html body .calc-panel > small {
  margin-top: 0;
  font-size: 13px;
  line-height: 1.55;
}

html body .calc-choices button b {
  font-size: 14px;
}

html body .calc-choices button span {
  font-size: 12px;
}

@media (max-width: 760px) {
  html body .calc-quiz .calc-step {
    min-height: 390px;
  }

  html body .calc-choices button b {
    font-size: 15px;
  }

  html body .calc-choices button span {
    font-size: 13px;
  }
}

/* “Также производим” uses the same horizontal media ratio as catalogue cards.
   Product renders are contained, so long bricks and borders keep both ends. */
html body.inner-page .v3-related-card__img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #ece7dd !important;
}

html body.inner-page .v3-related-card__img img,
html body.inner-page .v3-related-card .v3-related-card__img img[src*="brick-"],
html body.inner-page .v3-related-card .v3-related-card__img img[src*="border-"] {
  width: 100% !important;
  height: 100% !important;
  padding: 12px !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
}

html body.inner-page .v3-related-card:hover .v3-related-card__img img,
html body.inner-page .v3-related-card:hover .v3-related-card__img img[src*="brick-"],
html body.inner-page .v3-related-card:hover .v3-related-card__img img[src*="border-"] {
  transform: scale(1.015) !important;
}

/* Catalogue hero: the same deep navy family as the calculator, but without
   extra overlay layers that produced visible light stripes. */
html body.inner-page .v3-cat-hero {
  color: #fffdf8 !important;
  background-color: #08131f !important;
  background-image: linear-gradient(118deg, #07111c 0%, #0a192a 34%, #10243b 58%, #0b1b2d 78%, #07121e 100%) !important;
}

html body.inner-page .v3-cat-hero::before {
  background: none !important;
}

html body.inner-page .v3-cat-hero .v3-bc,
html body.inner-page .v3-cat-hero .v3-bc a,
html body.inner-page .v3-cat-hero .v3-bc__cur,
html body.inner-page .v3-cat-hero__eyebrow {
  color: rgba(255, 255, 255, .62) !important;
}

html body.inner-page .v3-cat-hero__title {
  color: #fffdf8 !important;
}

html body.inner-page .v3-cat-hero__sub {
  color: rgba(255, 255, 255, .68) !important;
}

html body.inner-page .v3-cat-hero__custom {
  border-color: rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .055);
  backdrop-filter: blur(8px);
}

html body.inner-page .v3-cat-hero__custom strong {
  color: #fffdf8;
}

html body.inner-page .v3-cat-hero__custom p {
  color: rgba(255, 255, 255, .68);
}

html body.inner-page .v3-cat-hero__stage {
  border-color: rgba(255, 255, 255, .14) !important;
  background: rgba(255, 255, 255, .035) !important;
}

html body.inner-page .v3-cat-hero__stage-list {
  color: rgba(255, 255, 255, .5) !important;
}

/* Product gallery rail: arrows, thumbnails and swipe area share one compact
   horizontal line. The counter sits over the main image instead of adding a row. */
html body.inner-page #pmodal .pmodal__thumbs-wrap {
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  grid-template-rows: 60px;
  gap: 10px;
  align-items: center;
  padding: 10px 14px !important;
  overflow: visible !important;
}

html body.inner-page #pmodal .nb-gallery-rail-head,
html body.inner-page #pmodal .nb-gallery-rail-actions {
  display: contents !important;
}

html body.inner-page #pmodal .nb-gallery-rail-count {
  position: absolute;
  z-index: 12;
  left: 14px;
  top: -32px;
  min-width: 54px;
  margin: 0;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, .24);
  color: #fffdf8;
  background: rgba(11, 21, 38, .6);
  backdrop-filter: blur(7px);
  line-height: 1;
}

html body.inner-page #pmodal .pmodal-thumbs-swiper {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: 60px !important;
  min-width: 0;
}

html body.inner-page #pmodal .pmodal-thumbs-swiper .swiper-slide {
  flex-basis: 80px !important;
  width: 80px !important;
  height: 60px !important;
}

html body.inner-page #pmodal .nb-gallery-arrow--rail {
  align-self: center;
  width: 38px !important;
  height: 38px !important;
}

html body.inner-page #pmodal .nb-gallery-rail-actions .nb-gallery-arrow--prev {
  grid-column: 1 !important;
  grid-row: 1 !important;
}

html body.inner-page #pmodal .nb-gallery-rail-actions .nb-gallery-arrow--next {
  grid-column: 3 !important;
  grid-row: 1 !important;
}

@media (max-width: 600px) {
  html body.inner-page #pmodal .pmodal__thumbs-wrap {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    grid-template-rows: 54px;
    gap: 8px;
    padding: 8px 10px !important;
  }

  html body.inner-page #pmodal .pmodal-thumbs-swiper {
    height: 54px !important;
  }

  html body.inner-page #pmodal .pmodal-thumbs-swiper .swiper-slide {
    flex-basis: 72px !important;
    width: 72px !important;
    height: 54px !important;
  }

  html body.inner-page #pmodal .nb-gallery-arrow--rail {
    width: 34px !important;
    height: 34px !important;
  }

  html body.inner-page #pmodal .nb-gallery-rail-count {
    left: 10px;
    top: -30px;
    min-width: 50px;
    padding: 6px 8px;
  }
}

/* Final interaction pass: catalogue navigation always clears the fixed header. */
@media (min-width: 1101px) {
  html body.inner-page .v3-cat-filters {
    top: 112px !important;
    z-index: 190 !important;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  html body.inner-page .v3-cat-filters {
    top: 104px !important;
    z-index: 190 !important;
  }
}

@media (max-width: 760px) {
  html body.inner-page .v3-cat-filters {
    top: 82px !important;
    z-index: 190 !important;
  }
}

html body.inner-page #pmodal .pmodal__sizes-wrap,
html body.inner-page #pmodal .pmodal__sizes,
html body.inner-page #pmodal .pmodal__size {
  position: relative !important;
  z-index: 3 !important;
  pointer-events: auto !important;
}

html body.inner-page #pmodal .pmodal__size {
  cursor: pointer !important;
}

/* Homepage hero: one real scene instead of competing product cutouts. */
html body .hero__video-stage {
  position: relative !important;
  min-height: 520px;
  aspect-ratio: 1.18 / 1 !important;
  margin-right: 24px;
  isolation: isolate;
  overflow: hidden !important;
  background: #101923 !important;
}

html body .hero__video-stage::before {
  z-index: 5 !important;
  inset: 22px !important;
  border: 1px solid rgba(255, 255, 255, .28) !important;
}

html body .hero__video-stage::after {
  content: none !important;
}

html body .hero__video {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  filter: brightness(.92) saturate(1.05) contrast(1.04);
}

html body .hero__video-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 46%, rgba(9, 17, 25, .5) 100%),
    linear-gradient(90deg, rgba(9, 17, 25, .24), transparent 56%);
}

html body .hero__video-stage::selection {
  background: transparent;
}

html body .hero__video-meta {
  position: absolute;
  left: 46px;
  right: 90px;
  bottom: 46px;
  z-index: 6;
  display: grid;
  gap: 7px;
  color: #fff;
}

html body .hero__video-meta strong {
  max-width: 430px;
  font: 600 clamp(22px, 2.2vw, 34px)/1.05 'Oswald', Arial, sans-serif;
  letter-spacing: -.025em;
  text-transform: uppercase;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .62), 0 1px 3px rgba(0, 0, 0, .5);
}

html body .hero__video-meta > span:last-child {
  color: rgba(255, 255, 255, .7);
  font-size: 11px;
}

html body .hero__video-kicker,
html body .hero__video-index {
  color: #ff7a3d;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
}

html body .hero__video-index {
  position: absolute;
  top: 42px;
  left: 44px;
  z-index: 6;
  color: #fff;
}

html body .hero__video-toggle {
  position: absolute;
  right: 44px;
  bottom: 44px;
  z-index: 7;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 0;
  background: rgba(9, 17, 25, .38);
  color: #fff;
  font: 700 13px/1 'Manrope', Arial, sans-serif;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background .2s ease, border-color .2s ease;
}

html body .hero__video-toggle:hover {
  border-color: #ef6425;
  background: #ef6425;
}

/* Same three utility contacts as the catalogue. */
html body .v3-float {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 800;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

html body .v3-float__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 0;
  color: #fff;
  box-shadow: none;
  transition: transform .18s ease, filter .18s ease;
}

html body .v3-float__btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

html body .v3-float__btn--wa { background: #25d366; }
html body .v3-float__btn--tg { background: #229ed9; }
html body .v3-float__btn--ph { background: #ef6425; }

/* Stable quiz canvas and calm step transitions. */
html body .calc-quiz .calc-step {
  min-height: 330px;
}

html body .calc-quiz .calc-step.is-active {
  animation: nbCalcStepIn .32s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes nbCalcStepIn {
  from { opacity: 0; transform: translate3d(18px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@media (min-width: 761px) and (max-width: 1040px) {
  html body .hero__grid > div:first-child {
    position: relative !important;
    z-index: 4 !important;
  }

  html body .hero__video-stage {
    z-index: 1 !important;
    width: calc(100% - 36px) !important;
    min-height: 420px;
    margin: 0 24px 0 12px !important;
  }

  html body .hero__eyebrow::before,
  html body .hero__eyebrow::after {
    display: none !important;
  }
}

@media (min-width: 1041px) {
  html body .hero__video-stage {
    width: calc(100% - 48px) !important;
    justify-self: start !important;
    margin: 0 36px 0 12px !important;
  }
}

html body .hero__h1,
html body .hero__lede {
  margin-bottom: 26px !important;
}

html body .hero__btns {
  top: 0 !important;
}

@media (max-width: 760px) {
  html body .hero__video-stage {
    order: -1 !important;
    width: 100% !important;
    min-height: 0;
    height: clamp(260px, 72vw, 360px) !important;
    aspect-ratio: auto !important;
    margin: 0 !important;
    display: block !important;
  }

  html body .hero__video-stage::before {
    inset: 12px !important;
  }

  html body .hero__video-meta {
    left: 28px;
    right: 72px;
    bottom: 27px;
    gap: 4px;
  }

  html body .hero__video-meta strong {
    font-size: 22px;
  }

  html body .hero__video-index {
    top: 26px;
    left: 28px;
  }

  html body .hero__video-toggle {
    right: 26px;
    bottom: 26px;
    width: 38px;
    height: 38px;
  }

  html body .calc-quiz .calc-step {
    min-height: 455px;
  }

  html body .v3-float {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .calc-quiz .calc-step.is-active {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nb-card-gallery__track,
  .nb-gallery-arrow {
    transition: none !important;
  }
}

/* Catalog categories are separate controls, never one full-width white slab. */
html body.inner-page .v3-cat-filters {
  gap: 10px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

html body.inner-page .v3-cat-filters .v3-cat-filter {
  margin: 0 !important;
  border: 0 !important;
  background: #fffdf8 !important;
  color: #101923 !important;
  box-shadow: none !important;
}

html body.inner-page .v3-cat-filters .v3-cat-filter.active,
html body.inner-page .v3-cat-filters .v3-cat-filter:hover {
  background: #ef6425 !important;
  color: #fff !important;
}

@media (max-width: 760px) {
  html body.inner-page .v3-cat-filters {
    width: calc(100% + 18px) !important;
    margin-left: 0 !important;
    padding: 0 18px 8px 0 !important;
    gap: 8px !important;
  }

  html body.inner-page .v3-cat-filters .v3-cat-filter {
    min-width: max-content !important;
    min-height: 48px !important;
    padding: 0 20px !important;
  }
}

/* The first hero line owns its desktop layer and cannot be covered by the
   material stage on the right. */
@media (min-width: 1041px) {
  html body .hero__grid > div:first-child {
    position: relative !important;
    z-index: 4 !important;
    min-width: 0 !important;
  }

  html body .hero__h1 {
    max-width: 100% !important;
    font-size: clamp(60px, 6.7vw, 92px) !important;
    line-height: 1.06 !important;
  }

  html body .hero__h1 .ln {
    max-width: 100% !important;
    line-height: 1.06 !important;
  }

  html body .hero__material-stage {
    position: relative !important;
    z-index: 2 !important;
  }
}

/* Final display-type safety pass: generous leading keeps complete glyphs from
   touching. No masks or clipping are used, so descenders remain intact. */
body h1,
body h2,
body h3,
body h4,
body h5,
body h6,
body .h2,
body .video__h2,
body .cta__h2,
body.inner-page .v3-cathero__h1,
body.inner-page .v3-cat-hero__title,
body.inner-page .v3-sect__h2,
body.inner-page .pmodal__name,
body.inner-page .pmodal__section-title,
body.inner-page .v3-cat-card__name,
body.inner-page .v3-related-card__name {
  line-height: 1.09 !important;
  overflow: visible !important;
  clip-path: none !important;
  padding-bottom: .11em !important;
  text-box-trim: none;
}

html body #products .products-intro__title,
html body.inner-page .v3-qz-title,
html body.inner-page #pmodal .pmodal__name {
  line-height: 1.1 !important;
  overflow: visible !important;
  clip-path: none !important;
  padding-bottom: .11em !important;
}

body .hero__h1 .ln,
body.inner-page .v3-cathero__h1 .hero-title-line,
body.inner-page .v3-cathero__h1 .brick-title-line,
body.inner-page .v3-cat-hero__title > span {
  display: block !important;
  overflow: visible !important;
  clip-path: none !important;
  line-height: 1.08 !important;
  padding: 0 .06em .11em 0 !important;
  margin: 0 !important;
}

@media (max-width: 760px) {
  body h1,
  body h2,
  body h3,
  body h4,
  body h5,
  body h6,
  body .h2,
  body.inner-page .v3-cathero__h1,
  body.inner-page .v3-cat-hero__title,
  body.inner-page .v3-sect__h2,
  body.inner-page .pmodal__name {
    line-height: 1.1 !important;
  }

  body .hero__h1 .ln,
  body.inner-page .v3-cathero__h1 .hero-title-line,
  body.inner-page .v3-cathero__h1 .brick-title-line {
    line-height: 1.09 !important;
  }
}

html body #products .prod__img img[src*="главная/категории/облицовочный-кирпич"] {
  padding: 0 !important;
  object-fit: contain !important;
}

/* “Также производим”: media fills the complete card frame. */
html body.inner-page .v3-related-card__img {
  padding: 0 !important;
  overflow: hidden !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  background: #ece7dd !important;
}

html body.inner-page .v3-related-card__img img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
  background: transparent !important;
}

html body.inner-page .v3-related-card .v3-related-card__img img[src*="brick-"],
html body.inner-page .v3-related-card .v3-related-card__img img[src*="border-"] {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
  background: transparent !important;
  transform: none !important;
}

html body.inner-page .v3-related-card:hover .v3-related-card__img img[src*="brick-"],
html body.inner-page .v3-related-card:hover .v3-related-card__img img[src*="border-"] {
  transform: scale(1.025) !important;
}

/* Compact live border gallery. Portrait sidewalk photos are shown horizontally
   and fully, without cropping the product ends. */
html body.inner-page .border-live-gallery .v3-cat-gallery {
  grid-template-columns: 1.25fr repeat(3, minmax(0, 1fr)) !important;
  grid-template-rows: 210px 210px !important;
  gap: 8px !important;
  margin-top: 30px !important;
}

html body.inner-page .border-live-gallery .v3-cat-gal-item {
  min-width: 0;
  background: #e8e3da !important;
}

html body.inner-page .border-live-gallery .v3-cat-gal-item--main {
  grid-column: 1 !important;
  grid-row: 1 / 3 !important;
}

html body.inner-page .border-live-gallery .v3-cat-gal-item:nth-child(2) {
  grid-column: 2 / 5 !important;
  grid-row: 1 !important;
}

html body.inner-page .border-live-gallery .v3-cat-gal-item:nth-child(3) {
  grid-column: 2 !important;
  grid-row: 2 !important;
}

html body.inner-page .border-live-gallery .v3-cat-gal-item:nth-child(4) {
  grid-column: 3 !important;
  grid-row: 2 !important;
}

html body.inner-page .border-live-gallery .v3-cat-gal-item:nth-child(5) {
  grid-column: 4 !important;
  grid-row: 2 !important;
}

html body.inner-page .border-live-gallery .border-live-gallery__item--sidewalk img {
  position: absolute !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  left: 50% !important;
  width: 186px !important;
  height: 186px !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  transform: translate(-50%, -50%) rotate(90deg) !important;
}

html body.inner-page .border-live-gallery .border-live-gallery__item--sidewalk:hover img {
  transform: translate(-50%, -50%) rotate(90deg) scale(1.02) !important;
}

@media (max-width: 760px) {
  html body.inner-page .border-live-gallery .v3-cat-gallery {
    display: flex !important;
    gap: 8px !important;
    margin-top: 24px !important;
    padding-right: 18vw !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  html body.inner-page .border-live-gallery .v3-cat-gallery::-webkit-scrollbar {
    display: none;
  }

  html body.inner-page .border-live-gallery .v3-cat-gal-item,
  html body.inner-page .border-live-gallery .v3-cat-gal-item--main {
    flex: 0 0 82vw !important;
    width: 82vw !important;
    height: 190px !important;
    min-height: 190px !important;
    scroll-snap-align: start;
  }

  html body.inner-page .border-live-gallery .border-live-gallery__item--sidewalk img {
    width: 166px !important;
    height: 166px !important;
  }
}

/* Inner-page project calculator: a single, readable NovoBricks visual system. */
html body.inner-page .v3-modal {
  padding: 20px !important;
}

html body.inner-page .v3-modal__overlay {
  background: rgba(7, 14, 23, .78) !important;
  backdrop-filter: blur(10px) !important;
}

html body.inner-page .v3-modal__box--quiz {
  width: min(100%, 620px) !important;
  max-width: 620px !important;
  min-height: 500px !important;
  padding: 42px 44px 44px !important;
  overflow: hidden auto !important;
  border: 1px solid rgba(16, 25, 35, .14) !important;
  border-radius: 0 !important;
  background: #f4efe5 !important;
  color: #101923 !important;
  box-shadow: 0 34px 100px rgba(0, 0, 0, .34) !important;
}

html body.inner-page .v3-modal__close {
  top: 14px !important;
  right: 14px !important;
  width: 40px !important;
  height: 40px !important;
  border: 1px solid rgba(16, 25, 35, .22) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #101923 !important;
  font: 600 17px/1 'Manrope', Arial, sans-serif !important;
}

html body.inner-page .v3-modal__close:hover {
  border-color: #101923 !important;
  background: #101923 !important;
  color: #fff !important;
}

html body.inner-page .v3-qz-prog {
  height: 3px !important;
  margin: 0 58px 34px 0 !important;
  background: rgba(16, 25, 35, .13) !important;
}

html body.inner-page .v3-qz-prog__bar {
  background: #ef6425 !important;
  transition: width 380ms cubic-bezier(.2, .8, .2, 1) !important;
}

html body.inner-page .v3-qz-step.active {
  animation: nb-inner-quiz-in 320ms cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes nb-inner-quiz-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

html body.inner-page .v3-qz-eyebrow {
  margin-bottom: 12px !important;
  color: #ef6425 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: .11em !important;
}

html body.inner-page .v3-qz-title {
  max-width: 500px;
  margin-bottom: 26px !important;
  color: #101923 !important;
  font-family: 'Oswald', Arial, sans-serif !important;
  font-size: clamp(30px, 4.1vw, 44px) !important;
  font-weight: 600 !important;
  line-height: 1.04 !important;
  letter-spacing: -.025em !important;
  text-transform: uppercase !important;
}

html body.inner-page .v3-qz-choices {
  gap: 9px !important;
}

html body.inner-page .v3-qz-choice {
  min-height: 76px !important;
  padding: 14px 16px !important;
  border: 1px solid rgba(16, 25, 35, .16) !important;
  border-radius: 0 !important;
  background: rgba(255, 255, 255, .58) !important;
  color: #101923 !important;
}

html body.inner-page .v3-qz-choice:hover,
html body.inner-page .v3-qz-choice:focus-visible {
  border-color: #ef6425 !important;
  background: #fff !important;
  outline: none !important;
}

html body.inner-page .v3-qz-choice__ico {
  width: 46px !important;
  height: 46px !important;
  background: #101923 !important;
  color: #fff !important;
}

html body.inner-page .v3-qz-choice__name {
  color: #101923 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
}

html body.inner-page .v3-qz-choice__sub,
html body.inner-page .v3-qz-label,
html body.inner-page .v3-modal__box p {
  color: #59626a !important;
}

html body.inner-page .v3-qz-input,
html body.inner-page .v3-modal__box .v3-form input,
html body.inner-page .v3-modal__box .v3-form select,
html body.inner-page .v3-modal__box .v3-form textarea {
  min-height: 54px !important;
  border: 1px solid rgba(16, 25, 35, .2) !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #101923 !important;
  caret-color: #ef6425 !important;
  font: 600 16px/1.3 'Manrope', Arial, sans-serif !important;
  box-shadow: none !important;
}

html body.inner-page .v3-qz-input::placeholder,
html body.inner-page .v3-modal__box .v3-form input::placeholder,
html body.inner-page .v3-modal__box .v3-form textarea::placeholder {
  color: #7a8288 !important;
  opacity: 1 !important;
}

html body.inner-page .v3-qz-input:focus,
html body.inner-page .v3-modal__box .v3-form input:focus,
html body.inner-page .v3-modal__box .v3-form select:focus,
html body.inner-page .v3-modal__box .v3-form textarea:focus {
  border-color: #ef6425 !important;
  outline: 3px solid rgba(239, 100, 37, .14) !important;
  outline-offset: 0 !important;
}

@media (max-width: 580px) {
  html body.inner-page .v3-modal {
    align-items: flex-end !important;
    padding: 12px !important;
  }

  html body.inner-page .v3-modal__box--quiz {
    min-height: 0 !important;
    max-height: calc(100dvh - 24px) !important;
    padding: 28px 20px 24px !important;
  }

  html body.inner-page .v3-qz-prog {
    margin: 0 52px 26px 0 !important;
  }

  html body.inner-page .v3-qz-title {
    padding-right: 34px !important;
    font-size: clamp(28px, 9vw, 36px) !important;
  }

  html body.inner-page .v3-qz-choice {
    min-height: 68px !important;
    padding: 11px 12px !important;
  }

  html body.inner-page .v3-related-card__img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
  }
}

/* Spacious inner-page heroes and a larger, model-switching tile study. */
html body.inner-page .v3-cathero__product img,
html body.inner-page .v3-cathero__product-index,
html body.inner-page .v3-cathero__product-caption {
  transition: opacity 190ms ease, transform 360ms cubic-bezier(.2, .8, .2, 1) !important;
}

html body.inner-page .v3-cathero__product.is-switching img {
  opacity: 0 !important;
  transform: translateY(8px) scale(.98) !important;
}

html body.inner-page .v3-cathero__product.is-switching .v3-cathero__product-index,
html body.inner-page .v3-cathero__product.is-switching .v3-cathero__product-caption {
  opacity: 0 !important;
}

html body.inner-page .v3-cathero__product--link {
  color: inherit !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: border-color 220ms ease, background-color 220ms ease, transform 220ms cubic-bezier(.2, .8, .2, 1) !important;
}

html body.inner-page .v3-cathero__product--link:hover,
html body.inner-page .v3-cathero__product--link:focus-visible {
  border-color: rgba(239, 100, 37, .84) !important;
  background: rgba(255, 255, 255, .085) !important;
  outline: none !important;
  transform: translateY(-3px);
}

html body.inner-page .v3-cathero__product-action {
  position: absolute;
  z-index: 3;
  top: 24px;
  right: 26px;
  color: #fff;
  font: 800 10px/1.2 'Manrope', Arial, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}

html body.inner-page .v3-cathero__product--link:hover .v3-cathero__product-action,
html body.inner-page .v3-cathero__product--link:focus-visible .v3-cathero__product-action {
  color: #ff8650;
}

@media (min-width: 1041px) {
  html body.inner-page .v3-cathero > .v3-wrap,
  html body.inner-page .v3-cat-hero > .v3-wrap {
    min-height: 720px !important;
    padding-top: 132px !important;
    padding-bottom: 76px !important;
  }

  html body.inner-page .v3-cathero > .v3-wrap {
    grid-template-columns: minmax(0, 1fr) minmax(430px, .82fr) !important;
  }

  html body.inner-page .v3-cathero__product {
    width: min(100%, 520px) !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1 !important;
    justify-self: end !important;
    padding: 0 !important;
  }

  html body.inner-page .v3-cathero__product img {
    position: absolute !important;
    inset: 54px 24px 58px !important;
    width: calc(100% - 48px) !important;
    height: calc(100% - 112px) !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
  }

  html body.inner-page .v3-cat-hero__stage {
    width: min(100%, 520px) !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1 !important;
    justify-self: end !important;
    padding: 48px 24px 58px !important;
  }

  html body.inner-page .v3-cat-hero__composition {
    width: 100% !important;
    height: 100% !important;
  }

  html body.inner-page .v3-cat-hero__stage img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
  }
}

@media (min-width: 761px) and (max-width: 1040px) {
  html body.inner-page .v3-cathero > .v3-wrap,
  html body.inner-page .v3-cat-hero > .v3-wrap {
    min-height: 680px !important;
    padding-top: 118px !important;
    padding-bottom: 64px !important;
  }
}

@media (max-width: 760px) {
  html body.inner-page .v3-cathero > .v3-wrap,
  html body.inner-page .v3-cat-hero > .v3-wrap {
    padding-top: 52px !important;
    padding-bottom: 48px !important;
  }

  html body.inner-page .v3-cat-hero > .v3-wrap {
    padding-top: 88px !important;
  }

  html body.inner-page .v3-cathero__product {
    width: 100% !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1 !important;
    padding: 40px 16px 42px !important;
  }

  html body.inner-page .v3-cathero__product img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: contain !important;
  }

  html body.inner-page .v3-cat-hero__stage {
    width: 100% !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1 !important;
    padding: 42px 16px 48px !important;
  }

  html body.inner-page .v3-cat-hero__composition {
    width: 100% !important;
    height: 100% !important;
  }
}

/* Final narrow-screen safeguards live last so legacy embedded styles cannot
   reintroduce oversized type, quiz dead space or square related media. */
html body .calc-quiz .calc-step {
  min-height: 285px !important;
}

html body .calc-panel > small {
  margin-top: 0 !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
}

html body.inner-page .v3-related-card__img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3 !important;
}

html body.inner-page .v3-related-card__img img,
html body.inner-page .v3-related-card .v3-related-card__img img[src*="brick-"],
html body.inner-page .v3-related-card .v3-related-card__img img[src*="border-"] {
  width: 100% !important;
  height: 100% !important;
  padding: 12px !important;
  object-fit: contain !important;
}

@media (max-width: 760px) {
  html body .calc-quiz .calc-step {
    min-height: 390px !important;
  }

  html body .calc-choices button b {
    font-size: 15px !important;
  }

  html body .calc-choices button span {
    font-size: 13px !important;
  }

  html body #products .prod {
    grid-template-columns: 34px minmax(0, 1fr) !important;
  }

  html body #products .prod__name {
    font-size: clamp(29px, 9vw, 35px) !important;
    line-height: 1.02 !important;
  }

  html body #products .prod__foot {
    gap: 10px !important;
  }

  html body #products .prod__link {
    flex: 0 0 auto;
    padding-right: 10px !important;
    font-size: 10px !important;
  }

  html body.inner-page .v3-related-card__img {
    aspect-ratio: 4 / 3 !important;
  }
}

/* The live sidewalk-curb photos are portrait originals. Present them
   horizontally inside the shared 4:3 gallery frame without cropping. */
html body.inner-page #pmodal .nb-pmodal-slide--scene,
html body.inner-page #pmodal .pmodal-thumbs-swiper .swiper-slide {
  position: relative !important;
  overflow: hidden !important;
}

html body.inner-page #pmodal .pmodal-swiper > .swiper-wrapper > .nb-pmodal-slide--scene img[src*="товары/бордюр-тротуарный/объект-"],
html body.inner-page #pmodal .pmodal-thumbs-swiper img[src*="товары/бордюр-тротуарный/объект-"] {
  position: absolute !important;
  inset: auto !important;
  top: 50% !important;
  left: 50% !important;
  width: 75% !important;
  height: 133.333% !important;
  max-width: none !important;
  max-height: none !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: translate(-50%, -50%) rotate(90deg) !important;
  transform-origin: center !important;
  background: transparent !important;
}

/* Final structural safeguards: these rules intentionally live last so older
   experimental layers cannot break the production layout again. */
html body.inner-page .v3-cathero,
html body.inner-page .v3-cat-hero {
  background-color: #081423 !important;
  background-image:
    radial-gradient(circle at 78% 24%, rgba(49, 91, 144, .28) 0, rgba(49, 91, 144, 0) 34%),
    radial-gradient(circle at 18% 82%, rgba(16, 48, 84, .32) 0, rgba(16, 48, 84, 0) 38%),
    linear-gradient(118deg, #07111f 0%, #0d2038 48%, #081524 100%) !important;
  background-size: auto !important;
  background-position: center !important;
}

html body.inner-page .v3-cathero::before,
html body.inner-page .v3-cathero::after,
html body.inner-page .v3-cat-hero::before,
html body.inner-page .v3-cat-hero::after {
  display: none !important;
  content: none !important;
}

html body.inner-page .v3-cathero__overlay {
  display: none !important;
}

/* “Также производим”: preserve the original information card and let the
   product image use its complete frame without artificial padding. */
html body.inner-page .v3-related-card {
  display: grid !important;
  grid-template-columns: minmax(220px, .92fr) minmax(260px, 1.08fr) !important;
  min-height: 220px !important;
  overflow: hidden !important;
  color: #101923 !important;
  background: #fffdf8 !important;
  border: 1px solid rgba(16, 25, 35, .14) !important;
}

html body.inner-page .v3-related-card__img {
  width: 100% !important;
  height: 100% !important;
  min-height: 220px !important;
  aspect-ratio: auto !important;
  padding: 0 !important;
  background: #ece7dd !important;
}

html body.inner-page .v3-related-card__img img,
html body.inner-page .v3-related-card .v3-related-card__img img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  background: transparent !important;
  transform: none !important;
}

html body.inner-page .v3-related-card__body {
  display: flex !important;
  min-width: 0;
  padding: clamp(24px, 3vw, 38px) !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 10px !important;
  background: #fffdf8 !important;
}

html body.inner-page .v3-related-card__name {
  display: block !important;
  color: #101923 !important;
  font-size: clamp(24px, 2.2vw, 34px) !important;
  line-height: 1.04 !important;
}

html body.inner-page .v3-related-card__desc {
  display: block !important;
  color: #5b6670 !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
}

html body.inner-page .v3-related-card__link {
  display: inline-flex !important;
  width: fit-content;
  margin-top: 8px !important;
  color: #ef6425 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase;
}

/* The brick hero visual is now a self-explanatory product card. */
html body.inner-page .v3-cathero__product--brick.v3-cathero__product--link {
  display: flex !important;
  min-height: 520px !important;
  padding: 52px 28px 0 !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  border: 1px solid rgba(255, 255, 255, .24) !important;
  background: rgba(255, 255, 255, .065) !important;
}

html body.inner-page .v3-cathero__product--brick.v3-cathero__product--link::after {
  inset: 12px 12px 148px !important;
}

html body.inner-page .v3-cathero__product--brick .v3-cathero__product-image {
  width: 100% !important;
  height: 300px !important;
  margin: 0 auto !important;
  object-fit: contain !important;
}

html body.inner-page .v3-cathero__product-card-info {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 18px;
  margin: auto -28px 0;
  padding: 18px 24px 20px;
  color: #101923;
  background: #fffdf8;
  border-top: 3px solid #ef6425;
}

html body.inner-page .v3-cathero__product-card-info .v3-cathero__product-caption {
  position: static !important;
  grid-column: 1 / -1;
  color: #ef6425 !important;
}

html body.inner-page .v3-cathero__product-card-name {
  color: #101923;
  font-family: "Oswald", Arial, sans-serif;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.05;
  text-transform: uppercase;
}

html body.inner-page .v3-cathero__product-card-meta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #66717b;
  font-size: 13px;
}

html body.inner-page .v3-cathero__product-card-meta b {
  color: #101923;
  font-size: 18px;
  white-space: nowrap;
}

html body.inner-page .v3-cathero__product-card-link {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(16, 25, 35, .13);
  color: #101923;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  html body #products .custom-order-note {
    width: auto !important;
    margin: 14px 26px 0 0 !important;
    padding: 18px !important;
  }

  html body.inner-page .v3-related-card {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
  }

  html body.inner-page .v3-related-card__img {
    min-height: 0 !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
  }

  html body.inner-page .v3-related-card__body {
    padding: 18px 20px 20px !important;
  }

  html body.inner-page .v3-cathero__product--brick.v3-cathero__product--link {
    min-height: 500px !important;
    aspect-ratio: auto !important;
    padding: 48px 18px 0 !important;
  }

  html body.inner-page .v3-cathero__product--brick .v3-cathero__product-image {
    height: 280px !important;
  }

  html body.inner-page .v3-cathero__product-card-info {
    margin-inline: -18px;
    padding-inline: 18px;
  }
}

/* Homepage footer uses the same high-contrast palette as internal pages. */
html body .ft {
  color: #f7f2e9 !important;
  background: #101923 !important;
}

html body .ft__logo,
html body .ft__ct {
  color: #fff !important;
}

html body .ft__logo span {
  color: #ef6425 !important;
}

html body .ft__desc,
html body .ft__links a,
html body .ft__row,
html body .ft__row a {
  color: #c8d0d8 !important;
}

html body .ft__soc a {
  color: #fff !important;
  border-color: rgba(255, 255, 255, .28) !important;
}

html body .ft__bottom,
html body .ft__bottom a {
  color: #aeb9c3 !important;
  border-top-color: rgba(255, 255, 255, .18) !important;
}

.studio-motion-ready .motion-reveal,
.studio-motion-ready .motion-reveal.is-revealed {
  will-change: auto !important;
}

html body .nb-card-gallery__track {
  will-change: auto !important;
}

/* Lightweight, scroll-safe reveal choreography. Only compositor-friendly
   opacity and transform are animated; no filters or persistent GPU layers. */
.studio-motion-ready .motion-reveal {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition:
    opacity 480ms cubic-bezier(.22, 1, .36, 1) var(--motion-delay, 0ms),
    transform 560ms cubic-bezier(.22, 1, .36, 1) var(--motion-delay, 0ms) !important;
  will-change: auto !important;
}

.studio-motion-ready .motion-reveal--clip {
  transform: translate3d(-10px, 14px, 0);
}

.studio-motion-ready .motion-reveal--media {
  transform: translate3d(0, 14px, 0) scale(.992);
}

.studio-motion-ready .motion-reveal.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* Brick hero: one unambiguous catalogue-style product card. */
html body.inner-page .v3-cathero__content > .v3-cathero__ctas {
  margin-top: 30px !important;
}

html body.inner-page .v3-cathero__product--brick.v3-cathero__product--link {
  display: block !important;
  min-height: 0 !important;
  height: auto !important;
  aspect-ratio: auto !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  background: #fffdf8 !important;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .26) !important;
}

html body.inner-page .v3-cathero__product--brick.v3-cathero__product--link::after {
  display: none !important;
  content: none !important;
}

html body.inner-page .v3-cathero__product--brick .v3-cathero__product-image {
  position: static !important;
  inset: auto !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3 !important;
  margin: 0 !important;
  object-fit: cover !important;
  filter: none !important;
}

html body.inner-page .v3-cathero__product-card-info {
  margin: 0 !important;
  padding: 22px 24px 24px !important;
  border: 0 !important;
  background: #fffdf8 !important;
}

html body.inner-page .v3-cathero__product-card-info .v3-cathero__product-caption {
  font-size: 10px !important;
  letter-spacing: .14em !important;
}

html body.inner-page .v3-cathero__product-card-link {
  margin-top: 4px;
}

@media (min-width: 761px) and (max-width: 1240px) {
  html body.inner-page .v3-cathero__product--brick.v3-cathero__product--link {
    width: 430px !important;
    max-width: calc(100% - 68px) !important;
    margin-right: 68px !important;
    justify-self: end !important;
  }
}

@media (max-width: 760px) {
  .studio-motion-ready .motion-reveal {
    transform: translate3d(0, 12px, 0);
    transition-duration: 380ms, 440ms !important;
  }

  .studio-motion-ready .motion-reveal--clip {
    transform: translate3d(-7px, 10px, 0);
  }

  .studio-motion-ready .motion-reveal--media {
    transform: translate3d(0, 10px, 0) scale(.995);
  }

  .studio-motion-ready .motion-reveal.is-revealed {
    transform: translate3d(0, 0, 0) scale(1);
  }

  html body.inner-page .v3-cathero__product--brick.v3-cathero__product--link {
    min-height: 0 !important;
    padding: 0 !important;
  }

  html body.inner-page .v3-cathero__product--brick .v3-cathero__product-image {
    height: auto !important;
  }

  html body.inner-page .v3-cathero__product-card-info {
    margin: 0 !important;
    padding: 20px !important;
  }
}

/* Product imagery fills its media frame; no inset-looking gutters. */
html body.inner-page .v3-cat-card[data-id="brick"] .v3-cat-card__img {
  overflow: hidden !important;
}

html body.inner-page .v3-cat-card[data-id="brick"] .v3-cat-card__img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transform: scale(1.2) !important;
}

html body.inner-page .v3-cat-card[data-id="bord-dorozh"] .v3-cat-card__img {
  overflow: hidden !important;
}

html body.inner-page .v3-cat-card[data-id="bord-dorozh"] .v3-cat-card__img img {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  object-fit: cover !important;
  transform: scale(1.08) !important;
}

html body.inner-page .v3-related-card .v3-related-card__img img,
html body.inner-page .v3-related-card .v3-related-card__img img[src] {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  object-fit: cover !important;
  transform: none !important;
}

/* Quiz steps keep one visual footprint. On desktop the product-specific
   variants sit in a compact grid; on phones they stay comfortably tappable. */
@media (min-width: 761px) {
  html body .calc-quiz .calc-step {
    min-height: 312px !important;
  }

  html body #calcDynamicChoices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html body #calcDynamicChoices:has(button:nth-child(3)) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  html body #calcDynamicChoices button {
    min-height: 112px;
    padding: 15px;
  }
}

@media (max-width: 760px) {
  html body .calc-quiz .calc-step {
    min-height: 408px !important;
  }

  html body #calcDynamicChoices button {
    min-height: 62px;
    padding: 11px 14px;
  }

  html body #calcDynamicChoices + .calc-step__actions {
    margin-top: 12px;
  }
}

/* The full desktop header no longer survives into tablet widths where its
   phone and actions were clipped. All five pages use the same cart + burger
   arrangement and the same full-screen navigation. */
@media (max-width: 1040px) {
  html body .hdr .hdr__in {
    gap: 12px !important;
  }

  html body .hdr .hdr__act {
    margin-left: auto !important;
    gap: 12px !important;
  }

  html body .hdr .hdr__tel,
  html body .hdr .hdr__act .btn {
    display: none !important;
  }

  html body .hdr .burger {
    position: relative !important;
    z-index: 1000 !important;
    display: flex !important;
  }

  html body .hdr .nav {
    position: fixed !important;
    inset: 0 !important;
    z-index: 950 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    padding: clamp(96px, 12vw, 124px) 24px 32px !important;
    background: #fffdf8 !important;
    transform: translateX(100%) !important;
    visibility: hidden !important;
    pointer-events: none !important;
    overflow-y: auto !important;
    transition: transform .3s cubic-bezier(.2, .8, .2, 1), visibility .3s !important;
  }

  html body .hdr .nav.open {
    transform: translateX(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  html body .hdr .nav a {
    width: 100% !important;
    padding: 18px 0 !important;
    border-bottom: 1px solid rgba(16, 25, 35, .12) !important;
    color: #101923 !important;
    font-size: 14px !important;
    letter-spacing: .1em !important;
  }

  html body .hdr .nav a::after {
    display: none !important;
  }

  html body .hdr .nav .nav__phone {
    margin-top: 18px !important;
    border-bottom: 0 !important;
    color: #ef6425 !important;
  }
}

/* WhatsApp button inside the burger menu, right under the phone number.
   Outlined style: black border, no fill. */
html body .hdr .nav a.nav__wa {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100% !important;
  margin-top: 16px !important;
  margin-bottom: 20px !important;
  padding: 13px 18px !important;
  border: 1.5px solid #101923 !important;
  border-bottom: 1.5px solid #101923 !important;
  background: transparent !important;
  color: #101923 !important;
  font-family: 'Manrope', Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: .02em !important;
  text-decoration: none;
  transition: background .18s ease, color .18s ease;
}
html body .hdr .nav a.nav__wa:hover { background: #101923 !important; color: #fff !important; }
html body .hdr .nav a.nav__wa svg { flex-shrink: 0; }
@media (max-width: 1040px) { html body.inner-page .hdr .nav a.nav__wa { display: flex; } }
@media (max-width: 760px)  { html body:not(.inner-page) .hdr .nav a.nav__wa { display: flex; } }

/* Logo shown at the top-left inside the open burger menu (inner pages). */
html body .hdr .nav .nav__logo {
  display: none;
  font-family: 'Oswald', 'Manrope', Arial, sans-serif;
  font-weight: 800;
  font-size: 23px;
  letter-spacing: .02em;
  color: #101923 !important;
  text-transform: uppercase;
  border-bottom: 0 !important;
  padding: 0 0 24px !important;
  margin-bottom: 6px;
  width: 100% !important;
  text-decoration: none;
}
html body .hdr .nav .nav__logo span { color: #ef6425; }
html body .hdr .nav .nav__logo::after { display: none !important; }
@media (max-width: 1040px) {
  html body.inner-page .hdr .nav .nav__logo { display: block; }
  /* avoid a second logo in the top bar while the menu is open */
  html body.inner-page .hdr:has(.nav.open) .logo,
  html body.inner-page .hdr:has(.nav.active) .logo { opacity: 0 !important; pointer-events: none; }
}
/* Homepage (index4) — same logo inside the burger menu. */
@media (max-width: 760px) {
  html body:not(.inner-page) .hdr .nav .nav__logo { display: block; }
  html body:not(.inner-page) .hdr:has(.nav.open) .logo,
  html body:not(.inner-page) .hdr:has(.nav.active) .logo { opacity: 0 !important; pointer-events: none; }
}

/* Hero (first block) video — a tall portrait rectangle on mobile (override the fixed short height). */
@media (max-width: 900px) {
  html body .hero__visual.hero__video-stage {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 3 / 4 !important;
    max-height: none !important;
  }
}

/* Cart-count badge on the homepage header (index4 has no .inner-page class). */
html body:not(.inner-page) .hdr__cart { position: relative; }
html body:not(.inner-page) .hdr__cart .hdr__cart-count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ef6425;
  color: #fff;
  border-radius: 50%;
  font: 700 10px/1 'Manrope', Arial, sans-serif;
}

/* Inner-page section headings had no explicit size (browser default ~24px), so they looked
   smaller than the product-card titles. Bump them to a proper display size like the homepage. */
body.inner-page .v3-sect__h2,
body.inner-page .v3-sect__title {
  font-size: clamp(32px, 5vw, 56px) !important;
  line-height: 1.02 !important;
}
@media (max-width: 600px) {
  body.inner-page .v3-sect__h2,
  body.inner-page .v3-sect__title { font-size: clamp(28px, 8vw, 40px) !important; }
}

/* No scroll chaining: when a product card (pmodal) or the cart drawer is open,
   reaching its top/bottom must NOT scroll the page behind it. */
#pmodal .pmodal__panel,
#pmodal .pmodal__right,
#pmodal .pmodal__scroll,
.v3-cart-drawer,
.v3-cart-drawer__body,
.v3-cart-checkout-wrap {
  overscroll-behavior: contain !important;
}

/* Crop ~80px off the TOP of the hero video (unwanted info up there); keep the bottom fixed. */
html body .hero__video-stage .hero__video,
html body .hero__video {
  top: -80px !important;
  bottom: auto !important;
  height: calc(100% + 80px) !important;
}

/* Homepage header targets links via `#hdr .nav a` (ID, !important), which stripped the WhatsApp
   button's bottom border and broke its hover. Restore them with an even higher-specificity rule. */
html body #hdr .nav a.nav__wa {
  border: 1.5px solid #101923 !important;
  border-bottom: 1.5px solid #101923 !important;
  padding: 13px 18px !important;
  margin-bottom: 20px !important;
  color: #101923 !important;
  background: transparent !important;
}
html body #hdr .nav a.nav__wa:hover {
  background: #101923 !important;
  border-color: #101923 !important;
  color: #fff !important;
}

/* Mobile: tighten (but don't kill) the gap between the header/burger and the hero video —
   leave a small clean gap below the header's bottom border. */
@media (max-width: 760px) {
  html body .hero { padding-top: 80px !important; }
}

/* Mobile: 16px form fields so iOS Safari does NOT zoom/jump to the input on focus
   (the screen stays put; the keyboard just slides up). */
@media (max-width: 760px) {
  html body input,
  html body textarea,
  html body select {
    font-size: 16px !important;
  }
  /* leave room so a focused field scrolls clear of the top bar */
  html body input,
  html body textarea { scroll-margin-top: 90px; scroll-margin-bottom: 24px; }
}

/* Брусчатка Классика spec sheet has a warm off-white background (#faf8f6, sampled from the
   image itself) — match the letterbox to it exactly so the edges are invisible. */
html body.inner-page .v3-cat-card .nb-card-gallery__slide img[src*="брусчатка-классика/размеры"],
html body.inner-page #pmodal .pmodal-swiper .swiper-slide img[src*="брусчатка-классика/размеры"],
html body.inner-page #pmodal .pmodal-thumbs-swiper .swiper-slide img[src*="брусчатка-классика/размеры"],
html body.inner-page #pmodal img[src*="брусчатка-классика/размеры"] {
  background: #faf8f6 !important;
}

/* Match the other two spec sheets to their own sampled backgrounds too (no visible edges). */
html body.inner-page .v3-cat-card .nb-card-gallery__slide img[src*="старый-город/размеры"],
html body.inner-page #pmodal .pmodal-swiper .swiper-slide img[src*="старый-город/размеры"],
html body.inner-page #pmodal .pmodal-thumbs-swiper .swiper-slide img[src*="старый-город/размеры"],
html body.inner-page #pmodal img[src*="старый-город/размеры"] {
  background: #f1f1f1 !important;
}
html body.inner-page .v3-cat-card .nb-card-gallery__slide img[src*="мегаформат/размеры"],
html body.inner-page #pmodal .pmodal-swiper .swiper-slide img[src*="мегаформат/размеры"],
html body.inner-page #pmodal .pmodal-thumbs-swiper .swiper-slide img[src*="мегаформат/размеры"],
html body.inner-page #pmodal img[src*="мегаформат/размеры"] {
  background: #eeeeee !important;
}

/* New City layout variants (раскладка-1/2/3) are schematics — show in full, matched grey letterbox. */
html body.inner-page .v3-cat-card .nb-card-gallery__slide img[src*="новый-город/раскладка"],
html body.inner-page #pmodal .pmodal-swiper .swiper-slide img[src*="новый-город/раскладка"],
html body.inner-page #pmodal .pmodal-thumbs-swiper .swiper-slide img[src*="новый-город/раскладка"],
html body.inner-page #pmodal img[src*="новый-город/раскладка"] {
  object-fit: contain !important;
  padding: 0 !important;
  background: #e8e8e8 !important;
}

/* ── Реквизиты и юридические ссылки в подвале ─────────────────────────── */
html body .ft__legal{
  margin-top:34px;padding-top:22px;
  border-top:1px solid rgba(255,255,255,.12);
  display:flex;flex-direction:column;gap:6px;
}
html body .ft__legal-name{
  margin:0;font-size:13px;font-weight:700;letter-spacing:.01em;
  color:rgba(255,255,255,.78);
}
html body .ft__legal-addr{
  margin:0;font-size:12.5px;line-height:1.55;color:rgba(255,255,255,.45);
}
html body .ft__legal-links{
  margin:8px 0 0;display:flex;flex-wrap:wrap;gap:6px 22px;
}
html body .ft__legal-links a{
  font-size:12.5px;color:rgba(255,255,255,.62);text-decoration:none;
  border-bottom:1px solid rgba(255,255,255,.22);padding-bottom:1px;
  transition:color .2s,border-color .2s;
}
html body .ft__legal-links a:hover{color:#fff;border-color:#fff;}
@media(max-width:620px){
  html body .ft__legal{margin-top:26px;padding-top:18px;}
  html body .ft__legal-links{gap:6px 16px;}
}

/* Подпись про согласие под кнопками форм */
html body .form-consent{
  margin:12px 0 0;font-size:11.5px;line-height:1.5;color:var(--steel-d,#8b949c);
}
html body .form-consent a{color:inherit;text-decoration:underline;text-underline-offset:2px;}
html body .form-consent a:hover{color:#E63C00;}
