/* Homepage 1:1 peotek.ru
   --w = window upscale (hero, project slides)
   --u = grid scale (capped at 1200px artboard) */

body.page-home {
  --artboard-scale: var(--scale-desktop);
  --w: var(--artboard-scale);
  --u: calc(min(100vw, 1200px) / 1200);
  /* Hero is full-bleed under fixed header (live peotek.ru) */
  padding-top: 0;
}

/* Header: window scale inset. Hero text uses Live window-container fixed 100px (grid upscale). */
.page-home .header-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
  padding-left: calc(100 * var(--w));
  padding-right: calc(100 * var(--w));
}

.page-home .hero-slider__content {
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
  /* Absolute children use Live window left:100px — no extra padding here */
  padding-left: 0;
  padding-right: 0;
}

.page-home .hero-slider__nav {
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
  padding-left: calc(100 * var(--w));
  padding-right: calc(100 * var(--w));
}

/* Window-upscale sections: full bleed, 100px inset (Tilda artboard zoom) */
.page-home .home-products .container,
.page-home .home-cta .container,
.page-home .home-stats .container {
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
  padding-left: calc(100 * var(--w));
  padding-right: calc(100 * var(--w));
}

/* News: window scale like other home bands */
.page-home .home-news .container {
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
  padding-left: calc(100 * var(--w));
  padding-right: calc(100 * var(--w));
}

.page-home .home-products h2,
.page-home .home-products__title,
.page-home .home-stats__intro h2 {
  margin: 0 0 calc(24 * var(--w));
  /* Live @1440 shows 30px; our --w is 1.2, so base must be 25 */
  font-size: calc(25 * var(--w));
  line-height: calc(25 * var(--w));
  font-weight: 700;
  color: #050611;
}

/* Live parity: "О нас" heading is Semibold (600), not extra-bold (700). */
.page-home .home-stats__intro h2 {
  font-weight: 600;
}

/* ===== Header (window) ===== */
.page-home .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: calc(75 * var(--w));
  border-bottom: none;
  background: #fff;
  backdrop-filter: none;
  z-index: 50;
  overflow: visible;
}

.page-home .header-top {
  min-height: calc(32 * var(--w));
  background: #fafafa;
  border-bottom: none;
}

.page-home .header-top__inner {
  min-height: calc(32 * var(--w));
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: calc(11 * var(--w));
  box-sizing: border-box;
}

.page-home .header-top__contacts {
  display: flex;
  align-items: flex-start;
  gap: calc(8 * var(--w));
}

.page-home .header-contact,
.page-home .header-favorites {
  display: inline-flex;
  align-items: flex-start;
  gap: calc(6 * var(--w));
  font-size: calc(11 * var(--w));
  line-height: calc(12 * var(--w));
  color: #222328;
  min-height: calc(12 * var(--w));
}

.page-home .header-contact img,
.page-home .header-favorites img {
  width: calc(10 * var(--w));
  height: calc(10 * var(--w));
  flex: 0 0 auto;
  transform: none;
  filter: grayscale(1) brightness(0.55);
}

.page-home .header-contact__text,
.page-home .header-favorites__text {
  display: inline-block;
  margin-top: 1.2px;
  line-height: calc(12 * var(--w));
}

.page-home .header-favorites {
  position: relative;
  padding-right: calc(22 * var(--w));
  transform: translateX(-1.94px);
}

.page-home .header-favorites__badge {
  position: absolute;
  top: calc(-5 * var(--w));
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Live cart counter ≈ 22×19 @1440, pad 4×6, radius pill */
  min-width: calc(18 * var(--w));
  height: calc(16 * var(--w));
  padding: calc(3 * var(--w)) calc(5 * var(--w));
  border-radius: 999px;
  background: #d93434;
  color: #fff;
  box-sizing: border-box;
  font-size: calc(9 * var(--w));
  line-height: 1;
}

.page-home .header-main {
  border-top: none;
}

.page-home .header-main__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: calc(43 * var(--w));
  gap: calc(16 * var(--w));
}

.page-home .header-main__left {
  display: flex;
  align-items: center;
  gap: calc(10 * var(--w));
  justify-self: start;
  position: relative;
  z-index: 60;
}

.page-home .logo { justify-self: center; }

.page-home .header-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: calc(18 * var(--w));
  /* Tilda Zero: Roboto 11 Normal, #222328, lh 1.15 */
  font-size: calc(11 * var(--w));
  font-weight: 400;
  line-height: 1.15;
  color: #222328;
  white-space: nowrap;
  transform: translate(calc(14.2 * var(--w)), -1.2px);
}

.page-home .header-nav a {
  line-height: 1.15;
}

.page-home .header-nav a:hover { opacity: 0.5; }

.page-home .catalog-dropdown {
  position: relative;
}

.page-home .catalog-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: calc(25 * var(--w));
  height: calc(25 * var(--w));
  padding: 0 calc(8.5 * var(--w));
  font-size: calc(11 * var(--w));
  gap: calc(6 * var(--w));
  border: 1px solid #d93434;
  border-color: #d93434;
  background: transparent;
  color: #d93434;
  line-height: calc(12.1 * var(--w));
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

.page-home .catalog-button img {
  width: calc(12 * var(--w));
  height: calc(12 * var(--w));
  transition: filter 0.2s ease;
}

.page-home .catalog-dropdown:hover .catalog-button,
.page-home .catalog-dropdown.is-open .catalog-button,
.page-home .catalog-dropdown:focus-within .catalog-button {
  background: #d93434;
  color: #fff;
}

.page-home .catalog-dropdown:hover .catalog-button img,
.page-home .catalog-dropdown.is-open .catalog-button img,
.page-home .catalog-dropdown:focus-within .catalog-button img {
  filter: brightness(0) invert(1);
}

.page-home .catalog-panel {
  position: absolute;
  top: 100%;
  left: 0;
  width: calc(250 * var(--w));
  min-width: 250px;
  padding-top: calc(6 * var(--w));
  background: transparent;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(calc(-4 * var(--w)));
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 70;
}

.page-home .catalog-panel::after {
  content: '';
  position: absolute;
  inset: calc(6 * var(--w)) 0 0;
  background: #fff;
  box-shadow: 0 8px 28px rgba(5, 6, 17, 0.12);
  z-index: -1;
}

.page-home .catalog-dropdown:hover .catalog-panel,
.page-home .catalog-dropdown.is-open .catalog-panel,
.page-home .catalog-dropdown:focus-within .catalog-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.page-home .catalog-menu {
  list-style: none;
  margin: 0;
  padding: calc(8 * var(--w)) 0 0;
  position: relative;
  z-index: 1;
  background: #fff;
}

.page-home .catalog-menu__item {
  position: relative;
}

.page-home .catalog-menu__link {
  display: flex;
  align-items: center;
  gap: calc(10 * var(--w));
  min-height: calc(34 * var(--w));
  padding: calc(6 * var(--w)) calc(14 * var(--w));
  font-size: calc(11 * var(--w));
  line-height: 1.25;
  color: #222328;
  text-decoration: none;
}

.page-home .catalog-menu__link:hover,
.page-home .catalog-menu__item.has-flyout:hover > .catalog-menu__link,
.page-home .catalog-menu__item.has-flyout:focus-within > .catalog-menu__link {
  background: #f7f7f8;
}

.page-home .catalog-menu__icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: 0 0 auto;
}

.page-home .catalog-menu__text {
  flex: 1 1 auto;
}

.page-home .catalog-menu__arrow {
  width: calc(6 * var(--w));
  height: calc(6 * var(--w));
  border-right: 1.5px solid #222328;
  border-bottom: 1.5px solid #222328;
  transform: rotate(-45deg);
  flex: 0 0 auto;
  opacity: 0.7;
}

.page-home .catalog-flyout {
  position: absolute;
  top: 0;
  left: calc(100% - 2px);
  min-width: calc(220 * var(--w));
  background: #fff;
  box-shadow: 0 8px 28px rgba(5, 6, 17, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 71;
}

.page-home .catalog-menu__item.has-flyout:hover > .catalog-flyout,
.page-home .catalog-menu__item.has-flyout:focus-within > .catalog-flyout,
.page-home .catalog-menu__item.has-flyout.is-open > .catalog-flyout {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.page-home .catalog-flyout ul {
  list-style: none;
  margin: 0;
  padding: calc(8 * var(--w)) 0;
}

.page-home .catalog-flyout a {
  display: block;
  padding: calc(8 * var(--w)) calc(16 * var(--w));
  font-size: calc(11 * var(--w));
  color: #222328;
  text-decoration: none;
  white-space: nowrap;
}

.page-home .catalog-flyout a:hover {
  background: #f7f7f8;
}

.page-home .catalog-flyout__all a {
  font-weight: 500;
  color: #d93434;
}

.page-home .catalog-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  margin: calc(8 * var(--w)) calc(10 * var(--w)) calc(10 * var(--w));
  padding: 20px;
  min-height: 0;
  background-color: #d93434;
  background-image: url("../../images/catalog-cta-banner.svg");
  background-size: auto 100%;
  background-position: right -85px top;
  background-repeat: no-repeat;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
}

.page-home .catalog-cta__title {
  display: block;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
}

.page-home .catalog-cta__row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-top: 12px;
}

.page-home .catalog-cta__text {
  flex: 1;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  opacity: 1;
}

.page-home .catalog-cta__btn {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  background: url("../../images/tild6266-6530-4335-b633-623434616433__tag.svg") center / contain no-repeat;
}

.page-home .header-search {
  display: flex;
  align-items: stretch;
  align-self: center;
  flex: 0 0 auto;
  position: relative;
  width: calc(265 * var(--w));
  height: calc(25 * var(--w));
  min-height: calc(25 * var(--w));
  max-height: calc(25 * var(--w));
  padding: 0;
  border: 1px solid #d93434;
  background: #fff;
  box-sizing: border-box;
  overflow: visible;
  color: #505156;
}

.page-home .header-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  padding: 0 calc(34 * var(--w)) 0 calc(10 * var(--w));
  font-size: calc(11 * var(--w));
  line-height: calc(25 * var(--w));
  color: #505156;
  background: transparent;
  box-sizing: border-box;
}

.page-home .header-search button {
  position: absolute;
  top: -1px;
  right: -1px;
  bottom: -1px;
  z-index: 2;
  flex: none;
  width: calc(30 * var(--w) + 1px);
  height: auto;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  display: block;
  line-height: 0;
}

.page-home .header-search button img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: fill;
}

.page-home .logo img {
  width: calc(170 * var(--w));
  height: calc(29 * var(--w));
  object-fit: contain;
}

/* ===== Hero (window) ===== */
.hero-slider {
  position: relative;
  min-height: 100vh;
  color: #fff;
  overflow: hidden;
  background-color: #000;
  background-image: url("../../images/hero-poster.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-slider__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.hero-slider__shade {
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}

.hero-slider__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: calc(324 * var(--w));
  background: linear-gradient(0deg, rgba(4, 4, 29, 1) 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

.hero-slider__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  /* Live slide Zero Block: absolute tops (grid upscale), not flex-end */
  min-height: 0;
  height: 100%;
  display: block;
  box-sizing: border-box;
}

.hero-slider__nav {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: calc(40 * var(--w));
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Live peotek.ru first viewport currently has no visible hero dots/arrows
   (Zero Block slide). Keep controls in DOM for a11y/JS but do not paint them
   until Live restores matching chrome — tracked as LIVE_CHANGED_AFTER_IMPORT. */
.page-home .hero-slider__nav {
  opacity: 0;
  pointer-events: none;
}

.hero-slide {
  display: none !important;
  visibility: hidden;
  pointer-events: none;
  width: 100%;
  height: 100%;
}
.hero-slide.is-active {
  display: block !important;
  visibility: visible;
  pointer-events: auto;
  position: absolute;
  z-index: 2;
  /* Live window inset 100 @1200 → scales with --w */
  left: calc(100 * var(--w));
  right: calc(100 * var(--w));
  top: 0;
  bottom: 0;
  width: auto;
}

/* Live slide Zero Block (rec811450362): grid upscale, window container */
.hero-slide--split.is-active {
  display: block;
}

.hero-slide__main {
  position: static;
  max-width: calc(845 * var(--w));
}

.hero-slide--split .hero-slide__main { max-width: calc(845 * var(--w)); }

.hero-slide h1,
.hero-slide__title {
  position: absolute;
  /* Live artboard below header (~106@1200); title top 320, width 845 (rec FRP).
     Narrower width forced a 3rd line that collided with the note. */
  top: calc((106 + 320) * var(--w));
  left: 0;
  margin: 0;
  max-width: calc(845 * var(--w));
  width: calc(845 * var(--w));
  font-size: calc(35 * var(--w));
  line-height: 1.2;
  font-weight: 400;
  color: #fff;
}

/* Live secondary line (note OR text) — same slot on all hero Zero Blocks:
 * top 434 / left 380 / width 638. Old text@380 overlapped 2-line titles. */
.hero-slide__text,
.hero-slide__note {
  position: absolute;
  top: calc((106 + 434) * var(--w));
  left: calc(280 * var(--w));
  right: auto;
  bottom: auto;
  margin: 0;
  width: calc(638 * var(--w));
  max-width: calc(638 * var(--w));
  font-size: calc(13 * var(--w));
  line-height: 1.2;
  font-weight: 400;
  color: #fff;
  text-align: right;
  display: block;
  height: auto;
}

.button--hero {
  position: absolute;
  top: calc((106 + 429) * var(--w));
  left: 0;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(155 * var(--w));
  min-height: calc(40 * var(--w));
  height: calc(40 * var(--w));
  padding: 0 calc(8 * var(--w));
  font-size: calc(11 * var(--w));
  line-height: 1;
  gap: calc(3 * var(--w));
  border: 0;
  background: #d93434;
  color: #fff;
  box-sizing: border-box;
  pointer-events: auto;
  text-decoration: none;
}

.button--hero img {
  width: calc(11 * var(--w));
  height: calc(11 * var(--w));
  flex: 0 0 auto;
  filter: brightness(0) invert(1);
}

.hero-slider__dots { display: flex; gap: calc(8 * var(--w)); }

.hero-slider__dots button,
.hero-slider__arrows button {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.hero-slider__dots button {
  width: calc(8 * var(--w));
  height: calc(8 * var(--w));
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.hero-slider__dots button.is-active { background: #d93434; }

.hero-slider__arrows { display: flex; gap: calc(12 * var(--w)); }

.hero-slider__arrows button {
  width: calc(36 * var(--w));
  height: calc(36 * var(--w));
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: calc(18 * var(--w));
  line-height: 1;
}

/* ===== Products (window) ===== */
.home-products {
  /* Live rec922579474: padding-top:90px; padding-bottom:45px (record, not zoomed) */
  padding: 90px 0 45px;
  background: #fff;
}

.home-products h2,
.home-products__title { margin-bottom: calc(44 * var(--w)); }

.home-products__title {
  margin-top: 0;
  font-size: calc(25 * var(--w));
  line-height: calc(25 * var(--w));
  font-weight: 700;
  color: #050611;
}

.products-mosaic {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.products-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(17 * var(--w));
  margin-bottom: calc(36 * var(--w));
}

.products-row:last-child { margin-bottom: 0; }

.products-row--lead {
  grid-template-columns: minmax(0, 2.04fr) minmax(0, 1fr);
}

.pcard { position: relative; }

.pcard__visual {
  position: relative;
  height: calc(225 * var(--w));
  background: #f8f8f8;
  overflow: hidden;
}

.pcard__deco {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  /* Preserve SVG line geometry — never stretch (fill warps arcs on mobile) */
  object-fit: cover;
  object-position: left top;
  pointer-events: none;
  z-index: 0;
}

.pcard--feature .pcard__deco {
  /* Wide plate SVG (661×225): cover from top-left matches Live crop, keeps stroke curves */
  object-fit: cover;
  object-position: left top;
}

.pcard__media {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  /* No padding — % max-* on img is relative to the plate; padding+%height was letting tall art hit deco */
  padding: 0;
  mix-blend-mode: multiply;
}

.pcard__media img {
  width: auto;
  height: auto;
  /* Live plate 323×225; keep art clear of top-right deco arcs (pultrusion I-beam etc.) */
  max-width: 72%;
  max-height: 68%;
  object-fit: contain;
  border: 0;
  outline: 0;
  box-shadow: none;
  background: transparent;
}

.pcard--feature .pcard__media {
  padding: 0;
}

.pcard--feature .pcard__media img {
  max-width: 82%;
  max-height: 78%;
}

.pcard__body { padding: calc(18 * var(--w)) 0 0; }

.pcard__title {
  margin: 0 0 calc(12 * var(--w));
  /* Live: Roboto 15 Semibold, line 23 */
  font-size: calc(15 * var(--w));
  line-height: calc(23 * var(--w));
  font-weight: 600;
  color: #050611;
}

.pcard__title a {
  color: inherit;
  font-weight: inherit;
}

.pcard__links {
  display: flex;
  flex-wrap: wrap;
  gap: calc(6 * var(--w)) calc(8 * var(--w));
}

.pcard__links a {
  display: inline-flex;
  align-items: center;
  gap: calc(6 * var(--w));
  min-height: calc(22 * var(--w));
  padding: 0 calc(8 * var(--w));
  border: 1px solid #050611;
  font-size: calc(10 * var(--w));
  line-height: 1;
  color: #050611;
  background: #fff;
}

.pcard__links a i {
  font-style: normal;
  font-size: calc(11 * var(--w));
  line-height: 1;
}

.pcard__links a:hover {
  color: #d93434;
  border-color: #d93434;
}

.pcard__go {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(144 * var(--w));
  height: calc(55 * var(--w));
  padding: 0 calc(14 * var(--w)) 0 calc(40 * var(--w));
  border: 0;
  font-size: calc(12 * var(--w));
  font-weight: 400;
  line-height: 1;
  color: #fff;
  background: #d93434;
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
  /* Touch: always visible — hover hide only on fine pointers */
  opacity: 1;
  transform: none;
}

@media (hover: hover) and (pointer: fine) {
  .pcard__go {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .pcard__visual:hover .pcard__go,
  .pcard:focus-within .pcard__go {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== CTA banner (window, gallery 1000x344 @ left 100) ===== */
.home-cta {
  /* Live rec815333861: padding-top/bottom 30px (record), artboard window-upscaled */
  padding: 30px 0;
}

.home-cta__banner {
  position: relative;
  width: 100%;
  /* Live artboard height 350 × window zoom */
  height: calc(350 * var(--w));
  overflow: hidden;
  background: #fff;
  /* Live uses white SVG corner overlays — not a triangle clip-path */
  clip-path: none;
}

.home-cta__bg {
  display: block;
  /* Live gallery: top 2, left 100, 1000×344 on 1200 grid — fill banner after zoom */
  position: absolute;
  left: 0;
  top: calc(2 * var(--w));
  width: 100%;
  height: calc(344 * var(--w));
  max-width: none;
  object-fit: cover;
  object-position: center;
}

/* Live Rectangle_8.svg masks — desktop Live uses cover + rotate(180) on TR */
.home-cta__cut {
  display: block;
  position: absolute;
  z-index: 6;
  pointer-events: none;
  background: url("../../images/tild3931-6661-4237-b432-396232613037__rectangle_8.svg") center / cover no-repeat;
}

/* Live shape 839/0 264×76 on artboard; banner origin = artboard 100 → left 739.
 * Atom: transform rotate(180deg) / matrix(-1,0,0,-1). */
.home-cta__cut--tr {
  left: calc(739 * var(--w));
  top: 0;
  width: calc(264 * var(--w));
  height: calc(76 * var(--w));
  transform: rotate(180deg);
  transform-origin: center center;
}

/* Live shape 99/256 316×91 — no rotation */
.home-cta__cut--bl {
  left: calc(-1 * var(--w));
  top: calc(256 * var(--w));
  width: calc(316 * var(--w));
  height: calc(91 * var(--w));
  transform: none;
}

.home-cta__glass {
  position: absolute;
  z-index: 3;
  /* Live: left 150, top 52 on grid → relative to content origin (100 inset via container) */
  left: calc(50 * var(--w));
  top: calc(52 * var(--w));
  width: calc(311 * var(--w));
  height: calc(104 * var(--w));
  background: rgba(7, 8, 13, 0.3);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  pointer-events: none;
}

.home-cta__copy {
  position: absolute;
  z-index: 4;
  /* Live H2 left 170 top 72; P left 170 top 108 */
  left: calc(70 * var(--w));
  top: calc(72 * var(--w));
  width: calc(296 * var(--w));
  color: #fff;
}

.home-cta__copy h2 {
  margin: 0 0 calc(16 * var(--w));
  /* Live @1440 shows 20px; our --w is 1.2 -> base is ~16.6667 */
  font-size: calc(16.6667 * var(--w));
  line-height: 1;
  font-weight: 500;
  color: #fff;
}

.home-cta__copy p {
  margin: 0;
  max-width: calc(255 * var(--w));
  font-size: calc(11 * var(--w));
  line-height: 1.25;
  font-weight: 400;
  color: #fff;
}

.button--cta {
  position: absolute;
  z-index: 5;
  /* Live: left 873 top 280 → 773 from banner-left (artboard 100) */
  left: calc(773 * var(--w));
  top: calc(280 * var(--w));
  right: auto;
  bottom: auto;
  box-sizing: border-box;
  width: calc(227 * var(--w));
  min-height: calc(66 * var(--w));
  height: calc(66 * var(--w));
  /* Live .btn-corner-arrow-red @≥1199: clip 30% + text-indent 25px, padding-left 0 */
  padding: 0;
  font-size: calc(12 * var(--w));
  font-weight: 400;
  line-height: 1.55;
  border: 0;
  color: #fff;
  background: #d93434;
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
  text-indent: 25px;
  white-space: nowrap;
  justify-content: center;
  align-items: center;
  display: inline-flex;
}

.button--cta::after {
  content: " →";
  margin-left: 0;
  text-indent: 0;
}

.button--cta:hover {
  background: #c22e2e;
  color: #fff;
}

/* ===== Stats "О нас" (window) ===== */
.home-stats {
  /* Live rec815360727: padding-top:45px only */
  padding: 45px 0 0;
  background: #fff;
}

.home-stats__layout {
  position: relative;
  min-height: calc(420 * var(--w));
}

.home-stats__layout::before {
  content: "";
  position: absolute;
  left: calc(-100 * var(--w));
  right: calc(-100 * var(--w));
  top: calc(222 * var(--w));
  height: calc(187 * var(--w));
  background: url("../../images/tild3066-3563-4138-b365-373262343330__group.svg") center / cover no-repeat;
  pointer-events: none;
  opacity: 1;
}

.home-stats__intro {
  position: relative;
  z-index: 1;
  max-width: calc(593 * var(--w));
}

.home-stats__intro h2 { margin-bottom: calc(30 * var(--w)); }

.home-stats__intro p {
  margin: 0 0 calc(20 * var(--w));
  font-size: calc(11 * var(--w));
  line-height: 1.55;
  color: #050611;
}

.button--text {
  min-height: auto;
  padding: 0;
  border: 0;
  color: #d93434;
  font-size: calc(12 * var(--w));
  justify-content: flex-start;
  margin-bottom: calc(28 * var(--w));
}

.button--text:hover {
  background: transparent;
  color: #bf2e2e;
}

.home-stats__highlight {
  position: relative;
  z-index: 1;
  width: calc(550 * var(--w));
  max-width: 100%;
  height: calc(131 * var(--w));
  padding: calc(21 * var(--w)) calc(35 * var(--w)) 0;
  box-sizing: border-box;
  background: url("../../images/tild6636-3931-4633-b761-306439336432__number.svg") left top / auto 100% no-repeat;
  color: #fff;
}

.home-stats__highlight strong {
  display: block;
  /* Wide enough that "профилей в год" stays on one line after the forced break */
  max-width: calc(450 * var(--w));
  font-size: calc(25 * var(--w)); /* Live 30px @1440 */
  line-height: 1; /* Live --lh-px equals font-size */
  margin-bottom: calc(8 * var(--w));
  font-weight: 700;
  color: #fff;
  white-space: normal;
}

.home-stats__highlight span {
  display: block;
  font-size: calc(13.333 * var(--w)); /* Live ~16px @1440 */
  line-height: 1.2;
  color: #fff;
}

.home-stats__cascade {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  height: calc(380 * var(--w));
  pointer-events: none;
}

.home-stats__cascade .stat-card {
  position: absolute;
  width: calc(320 * var(--w));
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: auto;
}

/* Live rec815360727: left 794/744/694/644 on 1200 artboard → −100 content inset */
.home-stats__cascade .stat-card:nth-child(1) { top: calc(8 * var(--w)); left: calc(694 * var(--w)); }
.home-stats__cascade .stat-card:nth-child(2) { top: calc(105 * var(--w)); left: calc(644 * var(--w)); }
.home-stats__cascade .stat-card:nth-child(3) { top: calc(202 * var(--w)); left: calc(594 * var(--w)); }
.home-stats__cascade .stat-card:nth-child(4) { top: calc(299 * var(--w)); left: calc(544 * var(--w)); }

.stat-card strong {
  position: relative;
  z-index: 0;
  display: inline-block;
  font-size: calc(25 * var(--w));
  line-height: 1.1;
  margin-bottom: calc(6 * var(--w));
  color: #050611;
}

.stat-card strong::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(-8 * var(--w));
  width: calc(69 * var(--w));
  height: calc(20 * var(--w));
  background: url("../../images/tild3630-3738-4231-a363-363137306565__rectangle_7.svg") no-repeat center / contain;
  /* Behind digits, but inside strong's stacking context (not under section bg) */
  z-index: -1;
  pointer-events: none;
}

.stat-card span {
  display: block;
  font-size: calc(11 * var(--w));
  line-height: 1.35;
  color: #050611;
}

/* ===== Clients (window, artboard 140 + spacer to support) ===== */
.home-clients {
  position: relative;
  /* Live rec815385430: artboard 140 × window + padding-top 45px */
  height: calc(140 * var(--w));
  padding: 45px 0 0;
  overflow: hidden;
  background: #fff;
  box-sizing: content-box;
}

.home-clients__board {
  position: relative;
  height: 100%;
  width: 100%;
}

.home-clients h2 {
  position: absolute;
  top: 0;
  left: calc(100 * var(--w));
  margin: 0;
  font-size: calc(25 * var(--w));
  line-height: 1;
  font-weight: 600;
  color: #050611;
}

.clients-marquee {
  position: absolute;
  top: calc(67 * var(--w));
  left: 0;
  width: 100%;
  height: calc(53 * var(--w));
  overflow: hidden;
}

.clients-marquee__track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: clients-scroll 45s linear infinite;
}

.clients-marquee__track img {
  display: block;
  height: calc(53 * var(--w));
  width: auto;
  max-width: none;
  flex: 0 0 auto;
}

@keyframes clients-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-33.333%); }
}

/* ===== Support panel (window, artboard 600) ===== */
.home-support {
  position: relative;
  height: calc(600 * var(--w));
  /* live has ~114px air before projects band */
  margin-bottom: calc(95 * var(--w));
  padding: 0;
  background: #fff;
  overflow: hidden;
}

.home-support__board {
  position: relative;
  height: 100%;
  width: 100%;
}

.home-support__panel {
  position: absolute;
  top: calc(23 * var(--w));
  left: calc(100 * var(--w));
  width: calc(1000 * var(--w));
  height: calc(563 * var(--w));
  background: #f1f3f5;
  overflow: visible;
}

.home-support__pattern {
  position: absolute;
  left: 0;
  top: calc(262 * var(--w));
  width: calc(738 * var(--w));
  height: calc(302 * var(--w));
  z-index: 0;
  pointer-events: none;
  background: url("../../images/tild3030-3566-4335-b631-613232336138__pattern.svg") no-repeat;
  background-position: 0% -100.166%;
  background-size: 114.172% auto;
}

.home-support__corner {
  position: absolute;
  left: calc(676 * var(--w));
  top: calc(470 * var(--w));
  width: calc(324 * var(--w));
  height: calc(93 * var(--w));
  z-index: 1;
  pointer-events: none;
  background: url("../../images/tild3234-6432-4562-b964-653233303363__rectangle_8.svg") center / cover no-repeat;
}

.home-support__title {
  position: absolute;
  z-index: 2;
  top: calc(51 * var(--w));
  left: calc(50 * var(--w));
  width: calc(296 * var(--w));
  margin: 0;
  font-size: calc(25 * var(--w));
  line-height: 1;
  font-weight: 600;
  color: #050611;
}

.home-support__text {
  position: absolute;
  z-index: 2;
  top: calc(194 * var(--w));
  left: calc(50 * var(--w));
  width: calc(300 * var(--w));
  height: auto;
  margin: 0;
  overflow: visible;
  font-size: calc(11 * var(--w));
  line-height: 1.45;
  color: #505156;
}

/* Live: two body paragraphs separated by a blank line (<br><br>) */
.home-support__text p {
  margin: 0 0 calc(16 * var(--w));
}

.home-support__text p:last-child {
  margin-bottom: 0;
}

.home-support__btn {
  position: absolute;
  z-index: 2;
  top: calc(378 * var(--w));
  left: calc(50 * var(--w));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(131 * var(--w));
  height: calc(35 * var(--w));
  font-size: calc(10 * var(--w));
  line-height: 1;
  color: #d93434;
  background: transparent;
  border: 1px solid #d93434;
}

.home-support__btn:hover {
  background: #d93434;
  color: #fff;
}

.support-tabs {
  position: absolute;
  z-index: 3;
  top: calc(53 * var(--w));
  left: calc(410 * var(--w));
  display: flex;
  gap: calc(10 * var(--w));
  width: calc(540 * var(--w));
}

.support-tab {
  flex: 0 0 calc(100 * var(--w));
  width: calc(100 * var(--w));
  height: calc(50 * var(--w));
  padding: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-bottom-color 0.15s ease;
}

.support-tab img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Live: active tab = white plate + red underline (hover alone does not switch) */
.support-tab.is-active {
  background: #fff;
  border-bottom-color: #d93434;
}

.support-preview {
  position: absolute;
  z-index: 2;
  top: calc(120 * var(--w));
  left: calc(410 * var(--w));
  width: calc(550 * var(--w));
}

.support-preview__caption {
  margin: 0 0 calc(12 * var(--w));
  color: #050611;
}

.support-preview__lead {
  display: block;
  font-size: calc(13 * var(--w));
  font-weight: 600;
  line-height: 1.3;
}

.support-preview__title {
  display: block;
  margin-top: calc(2 * var(--w));
  font-size: calc(13 * var(--w));
  font-weight: 400;
  line-height: 1.3;
}

.support-preview__shots {
  position: relative;
  width: calc(550 * var(--w));
  height: calc(296 * var(--w));
  background: #fff;
  box-shadow: 0 calc(8 * var(--w)) calc(24 * var(--w)) rgba(5, 6, 17, 0.08);
  overflow: hidden;
}

.support-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.support-shot.is-active {
  opacity: 1;
  visibility: visible;
}

/* ===== Projects slider (window, artboard 563) ===== */
.home-projects {
  position: relative;
  overflow: hidden;
  background: #050611;
  height: calc(563 * var(--w));
  /* Live projects→certs: certs record padding-top 45px provides the gap */
  margin-bottom: 0;
}

.home-projects .projects-slider__track {
  display: flex;
  height: 100%;
  transition: transform 0.45s ease;
}

.project-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: calc(563 * var(--w));
  color: #fff;
  overflow: hidden;
}

.project-slide__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.project-slide__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 6, 17, 0.15) 0%, rgba(5, 6, 17, 0.62) 100%);
}

.project-slide__edge {
  position: absolute;
  left: 0;
  bottom: 0;
  width: calc(100 * var(--w));
  height: calc(246 * var(--w));
  background: linear-gradient(90deg, rgba(5, 6, 17, 0.45) 0%, rgba(5, 6, 17, 0) 100%);
  pointer-events: none;
}

.project-slide__title {
  position: absolute;
  z-index: 2;
  top: calc(390 * var(--w));
  left: calc(100 * var(--w));
  margin: 0;
  width: calc(598 * var(--w));
  font-size: calc(25 * var(--w));
  font-weight: 600;
  line-height: 1;
  color: #fff;
}

.project-slide__desc {
  position: absolute;
  z-index: 2;
  top: calc(452 * var(--w));
  left: calc(100 * var(--w));
  margin: 0;
  width: calc(786 * var(--w));
  font-size: calc(15 * var(--w));
  font-weight: 400;
  line-height: 1.25;
  color: #fff;
}

.project-slide__btn {
  position: absolute;
  z-index: 3;
  top: calc(431 * var(--w));
  left: calc(945 * var(--w));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(155 * var(--w));
  height: calc(40 * var(--w));
  padding: 0;
  font-size: calc(11 * var(--w));
  line-height: 1;
  color: #fff;
  background: #d93434;
  border: 0;
}

/* Live .tn-atom__button-text::after */
.project-slide__btn::after {
  content: ' →';
}

.project-slide__btn:hover { background: #c22e2e; }

/* Live .my-dots: left 21 / top 482, zoom×1.2 + scale .7 (center origin).
 * First bullet aligns with title (100×--w). Tuned to measured Live@1440. */
.projects-slider__nav {
  position: absolute;
  left: calc(21 * var(--w));
  top: calc(486 * var(--w));
  z-index: 4;
  margin: 0;
  padding: 0;
  /* Live html block 214×78 — width required for scale(center) shift */
  width: calc(214 * var(--w));
  height: calc(78 * var(--w));
  max-width: none;
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: calc(8 * var(--w));
}

.projects-slider__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  /* Live .my-dots { scale: .7 } */
  scale: 0.7;
  transform-origin: center center;
}

/* Pre-scale 24px → ~16.8 after scale .7 (Live bullet bbox @1440) */
.projects-slider__dots button {
  box-sizing: border-box;
  width: 24px;
  height: 24px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  padding: 0;
  opacity: 1;
}

.projects-slider__dots button.is-active {
  width: 24px;
  height: 24px;
  border: 2px solid #fff;
  background: #fff;
}

/* ===== Certs (window, artboard 390 — room for text + arrows) ===== */
.home-certs {
  position: relative;
  /* Live rec818608268: artboard 370 × window, padding 45/45 */
  height: calc(370 * var(--w));
  margin-bottom: 0;
  padding: 45px 0;
  background: #fff;
  overflow: hidden;
  box-sizing: content-box;
}

.home-certs__board {
  position: relative;
  height: 100%;
  width: 100%;
}

.home-certs__copy {
  position: absolute;
  left: calc(100 * var(--w));
  top: calc(40 * var(--w));
  width: calc(300 * var(--w));
  z-index: 2;
}

.home-certs__copy h2 {
  margin: 0 0 calc(18 * var(--w));
  font-size: calc(25 * var(--w));
  line-height: 1;
  font-weight: 600;
  color: #050611;
}

.home-certs__text {
  max-height: calc(210 * var(--w));
  overflow: hidden;
  font-size: calc(12 * var(--w));
  line-height: 1.45;
  color: #222328;
}

.home-certs__text p {
  margin: 0 0 calc(8 * var(--w));
}

.home-certs__text p:last-child { margin-bottom: 0; }

.home-certs__nav {
  position: absolute;
  left: calc(98 * var(--w));
  top: calc(340 * var(--w));
  z-index: 3;
  display: flex;
  gap: calc(14 * var(--w));
}

.home-certs__arrow {
  width: calc(36 * var(--w));
  height: calc(36 * var(--w));
  padding: 0;
  border: 0;
  background: #d93434;
  color: #fff;
  font-size: calc(18 * var(--w));
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-certs__arrow:hover { background: #c22e2e; }

.home-certs__viewport {
  position: absolute;
  left: calc(480 * var(--w));
  top: calc(21 * var(--w));
  right: 0;
  height: calc(329 * var(--w));
  overflow: hidden;
}

.home-certs__track {
  display: flex;
  align-items: center;
  gap: calc(20 * var(--w));
  height: 100%;
  transition: transform 0.7s ease;
  will-change: transform;
}

.certs-slide {
  position: relative;
  flex: 0 0 calc(214 * var(--w));
  width: calc(214 * var(--w));
  height: calc(313 * var(--w));
  background: #fff;
  box-shadow: 0 4px 18px rgba(5, 6, 17, 0.08);
  /* Live slick: inactive ~scale(0.9) + opacity 0.4 */
  transform: scale(0.9);
  opacity: 0.4;
  transform-origin: center center;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.certs-slide.is-active {
  /* Leftmost visible = larger & full brightness */
  transform: scale(1);
  opacity: 1;
  z-index: 1;
}

.certs-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(5, 6, 17, 0.06);
}

.certs-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}

/* ===== News (Live t-feed: filters + slider @ window scale) ===== */
.home-news {
  /* Live rec1936814821: padding-top:30px; padding-bottom:60px */
  padding: 30px 0 60px;
  background: #fff;
  overflow: visible;
}

.home-news h2 {
  margin: 0 0 calc(28 * var(--w));
  text-align: center;
  font-size: calc(28 * var(--w));
  line-height: calc(34 * var(--w));
  font-weight: 600;
  color: #050611;
  text-transform: none;
}

.home-news__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: calc(10 * var(--w));
  margin: 0 0 calc(36 * var(--w));
}

.home-news__filter {
  box-sizing: border-box;
  min-height: calc(32 * var(--w));
  padding: calc(7 * var(--w)) calc(16 * var(--w));
  border: 1px solid #bfbfbf;
  background: #fff;
  color: #333;
  font-size: calc(12 * var(--w));
  font-weight: 400;
  line-height: 1.3;
  cursor: pointer;
  border-radius: 0;
}

.home-news__filter:hover {
  border-color: #d93434;
  color: #d93434;
}

.home-news__filter.is-active {
  border-color: #d93434;
  color: #d93434;
}

.home-news__slider {
  position: relative;
}

.home-news__viewport {
  overflow: hidden;
  /* Live shows exactly 3 cols (331 design units each, incl. gutter) */
  width: calc(993 * var(--w));
  max-width: 100%;
}

.news-row {
  display: flex;
  gap: 0;
  width: max-content;
  min-height: calc(387 * var(--w));
  transition: transform 0.35s ease;
  will-change: transform;
}

.news-item {
  flex: 0 0 calc(331 * var(--w));
  width: calc(331 * var(--w));
  border: 0;
  padding: 0;
  min-height: 0;
  background: transparent;
}

.news-item[hidden] {
  display: none !important;
}

.news-item__media {
  display: block;
  width: calc(292 * var(--w));
  height: calc(224 * var(--w));
  margin: 0 0 calc(14 * var(--w));
  overflow: hidden;
  aspect-ratio: auto;
  background: #eef0f2;
}

.news-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-item time {
  display: block;
  margin-bottom: calc(6 * var(--w));
  font-size: calc(10 * var(--w));
  line-height: 1.4;
  color: #222328;
}

.news-item h3 {
  margin: 0 0 calc(8 * var(--w));
  width: calc(292 * var(--w));
  font-size: calc(13 * var(--w));
  line-height: 1.35;
  font-weight: 600;
  color: #050611;
}

.news-item h3 a {
  color: #050611;
}

.news-item h3 a:hover { color: #d93434; }

.news-item p {
  margin: 0;
  width: calc(292 * var(--w));
  font-size: calc(10 * var(--w));
  line-height: 1.55;
  color: #222328;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Live .t-slds__arrow-right: 35×35 red square */
.home-news__next {
  position: absolute;
  z-index: 3;
  top: calc(112 * var(--w));
  right: calc(-18 * var(--w));
  box-sizing: border-box;
  width: calc(29 * var(--w));
  height: calc(29 * var(--w));
  margin: 0;
  padding: 0;
  border: 0;
  background: #d93434;
  color: #fff;
  font-size: calc(22 * var(--w));
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.home-news__next:hover {
  background: #c22e2e;
}

.home-news__next:disabled,
.home-news__next[hidden] {
  display: none;
}

.home-news__next span {
  display: block;
  transform: translateY(-1px);
}

.home-news__more {
  text-align: center;
  /* Live .t-feed__buttons-wrapper margin-top: 30px (scales with window) */
  margin: calc(30 * var(--w)) 0 0;
}

/* Live t-btnflex: 16px / padding ~15×50 design, window-upscaled */
.home-news__more .button--outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 0;
  height: auto;
  padding: calc(15 * var(--w)) calc(50 * var(--w));
  font-size: calc(16 * var(--w));
  font-weight: 400;
  line-height: 1.4;
  color: #d93434;
  border: 1px solid #d93434;
  border-radius: 0;
  background: #fff;
  box-sizing: border-box;
}

.home-news__more .button--outline:hover {
  background: #d93434;
  color: #fff;
}

/* ===== Footer (window, artboard 200) ===== */
.page-home .site-footer {
  border-top: 1px solid #e8e8ea;
  background: #fff;
  padding: 0;
}

.page-home .footer-shell {
  display: flex;
  align-items: flex-start;
  box-sizing: border-box;
  width: 100%;
  min-height: calc(200 * var(--w));
  padding: calc(22 * var(--w)) calc(100 * var(--w)) calc(24 * var(--w));
  background: #fff;
}

.page-home .footer-brand {
  width: calc(172 * var(--w));
  margin-right: calc(28 * var(--w));
  flex: 0 0 auto;
}

.page-home .footer-company {
  width: calc(72 * var(--w));
  margin-right: calc(16 * var(--w));
  flex: 0 0 auto;
}

.page-home .footer-catalog {
  width: calc(420 * var(--w));
  flex: 0 0 auto;
}

.page-home .footer-contacts {
  width: calc(275 * var(--w));
  margin-left: auto;
  flex: 0 0 auto;
  display: grid;
  gap: calc(10 * var(--w));
  justify-items: start;
}

.page-home .footer-logo {
  display: block;
  width: calc(170 * var(--w));
  height: calc(30 * var(--w));
  margin-bottom: calc(9 * var(--w));
}

.page-home .footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.page-home .footer-copy {
  margin: 0 0 calc(13 * var(--w));
  font-size: calc(10 * var(--w));
  line-height: 1.15;
  color: #505156;
}

.page-home .footer-accent {
  display: block;
  margin: 0 0 calc(10 * var(--w));
  font-size: calc(9 * var(--w));
  line-height: 1.15;
  color: #d93434;
}

.page-home .footer-accent:hover { opacity: 0.5; }

.page-home .footer-title {
  margin: 0 0 calc(10 * var(--w));
  font-size: calc(10 * var(--w));
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #505156;
}

.page-home .footer-links {
  display: grid;
  align-content: start;
  gap: 12px;
  font-size: calc(9 * var(--w));
  line-height: 1.35;
  color: #050611;
}

.page-home .footer-links > li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .footer-links a {
  display: block;
  position: static;
  min-width: 0;
  overflow-wrap: anywhere;
}

.page-home .footer-links a:hover { opacity: 0.5; }

.page-home .footer-catalog__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: calc(10 * var(--w));
  align-items: start;
}

.page-home .footer-catalog__cols .footer-links {
  min-width: 0;
}

.page-home .footer-contact {
  display: grid;
  grid-template-columns: calc(10 * var(--w)) minmax(0, 1fr);
  gap: calc(5 * var(--w));
  align-items: start;
  font-size: calc(9 * var(--w));
  line-height: 1.15;
  color: #050611;
}

.page-home .footer-contact img {
  width: calc(10 * var(--w));
  height: calc(10 * var(--w));
  margin-top: calc(1 * var(--w));
}

.page-home .footer-contact--address {
  max-width: calc(275 * var(--w));
}

.page-home .footer-contact:hover { opacity: 0.5; }

.page-home .button--footer {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  margin-top: calc(10 * var(--w));
  width: calc(94 * var(--w));
  height: calc(20 * var(--w));
  min-height: calc(20 * var(--w));
  max-height: calc(20 * var(--w));
  padding: 1px 0 0;
  gap: 0;
  border: 1px solid #d93434;
  background: transparent;
  color: #d93434;
  font-size: calc(9 * var(--w));
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-indent: 0;
  clip-path: none;
}

.page-home .button--footer::before,
.page-home .button--footer::after {
  content: none;
  display: none;
}

.page-home .button--footer:hover {
  background: #d93434;
  color: #fff;
}

/* ===== Adaptive (Tilda breakpoint ≤1199) ===== */
.header-burger {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  justify-self: end;
}

.header-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #050611;
  transition: 0.2s ease;
}

@media (max-width: 1199px) {
  body.page-home {
    --artboard-scale: var(--scale-mobile);
    --w: var(--artboard-scale);
    --u: var(--scale-mobile);
    /* Live mobile hero is full-viewport with header overlay — do not push content down */
    padding-top: 0;
    font-size: 15px;
  }

  .page-home .header-shell,
  .page-home .hero-slider__content,
  .page-home .hero-slider__nav,
  .page-home .home-products .container,
  .page-home .home-cta .container,
  .page-home .home-stats .container,
  .page-home .home-news .container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: calc(16 * var(--w));
    padding-right: calc(16 * var(--w));
  }

  /* Header — match Live 80×scale board */
  .page-home .site-header {
    height: calc(80 * var(--w));
    box-shadow: 0 1px 0 #eee;
  }

  .page-home .header-top {
    min-height: calc(32 * var(--w));
    height: calc(32 * var(--w));
  }

  .page-home .header-top__inner {
    min-height: calc(32 * var(--w));
    height: calc(32 * var(--w));
    gap: 8px;
    padding-top: calc(8 * var(--w));
  }

  .page-home .header-top__contacts {
    gap: 12px;
    flex-wrap: nowrap;
  }

  .page-home .header-contact,
  .page-home .header-favorites {
    font-size: calc(12 * var(--w));
    line-height: calc(15 * var(--w));
  }

  .page-home .header-favorites span:not(.header-favorites__badge) {
    display: none;
  }

  .page-home .header-favorites {
    transform: none;
  }

  .page-home .header-main {
    height: calc(48 * var(--w));
  }

  .page-home .header-main__grid {
    grid-template-columns: auto 1fr auto;
    min-height: calc(48 * var(--w));
    height: calc(48 * var(--w));
    gap: 10px;
  }

  .page-home .header-main__left {
    order: 1;
  }

  .page-home .logo {
    order: 2;
    justify-self: center;
  }

  .page-home .logo img {
    width: calc(132 * var(--w));
    height: auto;
  }

  .page-home .header-search {
    display: none;
  }

  .page-home .catalog-button {
    min-height: calc(39 * var(--w));
    height: calc(39 * var(--w));
    font-size: calc(14 * var(--w));
    padding: 0 calc(12 * var(--w));
  }

  /* Mobile catalog drawer — keep aligned with chrome.css side panel */
  .page-home .catalog-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: calc(100vw - 12px);
    max-width: 400px;
    min-width: 0;
    height: 100%;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    padding-top: 0;
    background: #fff;
    box-shadow: 8px 0 28px rgba(5, 6, 17, 0.12);
    opacity: 1;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-105%);
    transition: transform 0.28s ease, visibility 0.28s;
    z-index: 76;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .page-home .catalog-panel::after {
    display: none;
  }

  .page-home .catalog-dropdown:hover .catalog-panel,
  .page-home .catalog-dropdown:focus-within .catalog-panel {
    opacity: 1;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-105%);
  }

  .page-home .catalog-dropdown.is-open .catalog-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }

  .page-home .catalog-menu {
    padding: 18px 0 0;
  }

  .page-home .catalog-menu__link {
    min-height: 0;
    padding: 0 26px;
    font-size: 18px;
    line-height: 1.35;
    gap: 12px;
  }

  .page-home .catalog-menu__icon {
    display: none;
  }

  .page-home .catalog-menu__item {
    margin-bottom: 15px;
  }

  .page-home .catalog-menu__item:last-child {
    margin-bottom: 0;
  }

  .page-home .catalog-menu__arrow {
    width: 7px;
    height: 7px;
    transform: rotate(45deg);
    margin-top: -4px;
  }

  .page-home .catalog-menu__item.is-open > .catalog-menu__link .catalog-menu__arrow {
    transform: rotate(225deg);
    margin-top: 2px;
  }

  .page-home .catalog-flyout {
    position: static;
    min-width: 0;
    box-shadow: none;
    background: #f7f7f8;
    margin: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
  }

  .page-home .catalog-menu__item.has-flyout.is-open > .catalog-flyout {
    display: block;
  }

  .page-home .catalog-flyout a {
    white-space: normal;
    padding: 10px 26px;
    font-size: 15px;
  }

  .page-home .catalog-cta {
    margin: 12px 10px 16px;
    padding: 20px;
    min-height: 0;
    background-size: auto 100%;
    background-position: right -85px top;
  }

  .page-home .catalog-cta__title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
  }

  .page-home .catalog-cta__row {
    margin-top: 12px;
    gap: 16px;
    align-items: flex-end;
  }

  .page-home .catalog-cta__text {
    flex: 6 1 0;
    min-width: 0;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
  }

  .page-home .catalog-cta__btn {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
  }

  .header-burger {
    display: inline-flex;
    order: 3;
  }

  .page-home .header-nav {
    position: fixed;
    top: calc(80 * var(--w));
    left: 0;
    right: 0;
    z-index: 60;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 24px;
    background: #fff;
    border-bottom: 1px solid #e4e7eb;
    box-shadow: 0 12px 30px rgba(5, 6, 17, 0.08);
    white-space: normal;
    justify-self: stretch;
  }

  .page-home .header-nav a {
    padding: 14px 20px;
    font-size: 15px;
    border-bottom: 1px solid #f0f0f0;
  }

  body.is-menu-open {
    overflow: hidden;
  }

  body.is-menu-open .header-nav {
    display: flex;
  }

  body.is-menu-open .header-burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  body.is-menu-open .header-burger span:nth-child(2) {
    opacity: 0;
  }

  body.is-menu-open .header-burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Hero — Live mobile Zero Block uses Tilda 320 artboard (data-*-res-320),
   * scaled to viewport: visual = design × (100vw/320). Do NOT use raw px or /390.
   * Tops are relative to the Zero Block under the fixed header (Live ~103px @412). */
  .hero-slider {
    --hero-m: calc(100vw / 320);
    --hero-pad-top: 103px; /* Live Zero Block offset under header @~412 */
    min-height: 100vh;
    min-height: 100dvh;
    /* Poster as CSS background under <video> reads as a second frame / seam. */
    background-image: none;
    background-color: #000;
  }

  /* Live shows the hero <video> on mobile (first frame / playback). Do not hide it. */
  .hero-slider__video {
    display: block !important;
    z-index: 0;
  }

  .hero-slider__shade {
    z-index: 1;
    background: transparent;
  }

  /* Live gradient sits over the lower video (dark at bottom → clear at top).
   * Old top:10 + fixed height ended mid-screen → bright “doubled” band below. */
  .hero-slider__panel {
    z-index: 1;
    left: 0;
    right: 0;
    top: calc(var(--hero-pad-top) + 186 * var(--hero-m));
    bottom: 0;
    height: auto;
    background: linear-gradient(0deg, rgb(4, 4, 29) 0%, rgba(0, 0, 0, 0) 100%);
  }

  .hero-slider__content {
    position: absolute;
    inset: 0;
    min-height: 0;
    height: 100%;
    display: block;
    padding: 0;
    overflow: hidden;
    z-index: 2;
  }

  .hero-slide:not(.is-active) {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .hero-slide.is-active {
    display: flex !important;
    flex-direction: column;
    justify-content: flex-end;
    visibility: visible !important;
    left: calc(10 * var(--hero-m));
    right: calc(10 * var(--hero-m));
    z-index: 2;
    padding-bottom: max(20px, env(safe-area-inset-bottom, 0px));
  }

  .hero-slide--split.is-active {
    display: flex !important;
  }

  .hero-slide__main,
  .hero-slide--split .hero-slide__main {
    max-width: none;
    display: contents;
  }

  .hero-slide__main h1,
  .hero-slide__main .hero-slide__title,
  .hero-slide.is-active .hero-slide__title {
    position: static;
    top: auto;
    left: auto;
    order: 1;
    width: 100%;
    max-width: none;
    font-size: calc(20 * var(--hero-m));
    line-height: 1.2;
    margin: 0 0 calc(12 * var(--hero-m));
  }

  .hero-slide__text,
  .hero-slide__note,
  .hero-slide.is-active .hero-slide__text,
  .hero-slide.is-active .hero-slide__note {
    position: static;
    top: auto;
    left: auto;
    order: 2;
    width: 100%;
    max-width: none;
    font-size: calc(13 * var(--hero-m));
    line-height: 1.2;
    text-align: left;
    margin: 0 0 calc(18 * var(--hero-m));
  }

  .button--hero {
    position: static;
    top: auto;
    left: auto;
    order: 3;
    width: 100%;
    min-height: calc(52 * var(--hero-m));
    height: calc(52 * var(--hero-m));
    font-size: calc(16 * var(--hero-m));
    margin: 0;
  }

  .hero-slider__nav {
    bottom: calc(20 * var(--hero-m));
    flex-wrap: wrap;
    gap: calc(16 * var(--hero-m));
    padding-left: calc(10 * var(--hero-m));
    padding-right: calc(10 * var(--hero-m));
  }

  /* Panel metrics set above — stretch to bottom; do not zero them out */

  .hero-slider {
    /* overridden below for Live fixed inter-board gaps */
    margin-bottom: 0;
  }

  /* Products — Live Zero Block 3960@320 */
  .home-products {
    padding: calc(40 * 100vw / 320) 0 calc(7 * 100vw / 320);
    min-height: calc(3960 * 100vw / 320);
    box-sizing: border-box;
    margin-bottom: 0;
  }

  .home-products h2,
  .home-products__title,
  .page-home .home-products h2,
  .page-home .home-products__title {
    font-size: calc(21 * 100vw / 320);
    margin-bottom: calc(20 * 100vw / 320);
  }

  .pcard__visual {
    /* Live catalog-like frame ~225@320 */
    height: calc(225 * 100vw / 320);
  }

  .products-row,
  .products-row--lead {
    grid-template-columns: 1fr;
    gap: calc(23 * 100vw / 320);
    margin-bottom: calc(30 * 100vw / 320);
  }

  .pcard__title {
    font-size: calc(13 * 100vw / 320);
  }

  .pcard__links a {
    min-height: calc(23 * 100vw / 320);
    font-size: calc(10 * 100vw / 320);
  }

  /* CTA — Live Zero Block #rec815333861 @320 artboard */
  .page-home .home-cta .container {
    padding-left: 0;
    padding-right: 0;
  }

  .home-cta {
    --cta-m: calc(100vw / 320);
    padding: 0;
    min-height: calc(340 * var(--cta-m));
    box-sizing: border-box;
    margin-bottom: 0;
  }

  .home-cta__banner {
    position: relative;
    height: calc(340 * var(--cta-m));
    min-height: calc(340 * var(--cta-m));
    clip-path: none;
    display: block;
    overflow: visible;
    background: #fff;
  }

  .home-cta__bg {
    position: absolute;
    /* inset must come before left/top — otherwise it zeroes the offsets */
    inset: auto;
    left: calc(10 * var(--cta-m));
    top: calc(29 * var(--cta-m));
    width: calc(300 * var(--cta-m));
    height: calc(280 * var(--cta-m));
    object-fit: cover;
    object-position: center;
  }

  .home-cta__cut {
    display: block;
  }

  /* Live mobile cut atoms: bg-size/position (not cover) — this is the «узор» */
  .home-cta__cut--tr {
    left: calc(119 * var(--cta-m));
    top: calc(-10 * var(--cta-m));
    width: calc(191 * var(--cta-m));
    height: calc(76 * var(--cta-m));
    transform: matrix(-1, 0, 0, -1, 0, 0);
    transform-origin: center center;
    background-size: 138.611%;
    background-position: 94.747% 0%;
  }

  .home-cta__cut--bl {
    left: calc(10 * var(--cta-m));
    top: calc(279 * var(--cta-m));
    width: calc(211 * var(--cta-m));
    height: calc(64 * var(--cta-m));
    transform: none;
    background-size: 106.164%;
    background-position: 99.946% 0%;
  }

  .home-cta__glass {
    display: block;
    left: calc(20 * var(--cta-m));
    top: calc(81 * var(--cta-m));
    width: calc(280 * var(--cta-m));
    height: calc(115 * var(--cta-m));
    background: rgba(7, 8, 13, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
  }

  .home-cta__copy {
    position: absolute;
    left: calc(45 * var(--cta-m));
    top: calc(106 * var(--cta-m));
    width: calc(225 * var(--cta-m));
    max-width: none;
    margin: 0;
    padding: 0;
    z-index: 4;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .home-cta__copy h2 {
    margin: 0 0 calc(19 * var(--cta-m));
    font-size: calc(16 * var(--cta-m));
    line-height: 1.2;
  }

  .home-cta__copy p {
    max-width: none;
    font-size: calc(12 * var(--cta-m));
    line-height: 1.25;
  }

  .button--cta {
    position: absolute;
    left: calc(20 * var(--cta-m));
    top: calc(218 * var(--cta-m));
    right: auto;
    bottom: auto;
    width: calc(144 * var(--cta-m));
    max-width: none;
    height: calc(39 * var(--cta-m));
    min-height: calc(39 * var(--cta-m));
    margin: 0;
    padding: 0;
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
    text-indent: calc(14 * var(--cta-m));
    font-size: calc(11 * var(--cta-m));
    justify-content: center;
  }

  /* Stats — Live 760@320 */
  .home-stats {
    padding: 0;
    min-height: calc(760 * 100vw / 320);
    box-sizing: border-box;
  }

  .home-stats__layout {
    min-height: calc(760 * 100vw / 320);
    display: flex;
    flex-direction: column;
    gap: calc(20 * 100vw / 320);
    box-sizing: border-box;
    padding: calc(33 * 100vw / 320) 0 0;
  }

  .home-stats__layout::before {
    /* Keep wavy designer lines behind stats (was display:none) */
    display: block;
    left: calc(-16 * 100vw / 320);
    right: calc(-16 * 100vw / 320);
    top: calc(380 * 100vw / 320);
    height: calc(220 * 100vw / 320);
    background-size: cover;
    opacity: 0.9;
  }

  .home-stats__intro {
    max-width: none;
  }

  .home-stats__intro h2,
  .page-home .home-stats__intro h2 {
    font-size: calc(21 * 100vw / 320);
  }

  .home-stats__intro p {
    /* Live mobile body ~14–15px — desktop 11*--w collapses to 11px @390 */
    font-size: calc(14 * 100vw / 320);
    line-height: 1.5;
  }

  .button--text {
    font-size: calc(14 * 100vw / 320);
  }

  .home-stats__highlight {
    position: static;
    width: 100%;
    height: calc(93 * 100vw / 320);
    min-height: calc(93 * 100vw / 320);
    padding: calc(16 * 100vw / 320) calc(13 * 100vw / 320) 0;
    /* Live plate: sized % + pos so the diagonal cut reads on the right */
    background-size: 239.669%;
    background-position: 34.487% 0%;
    background-repeat: no-repeat;
  }

  .home-stats__highlight strong {
    max-width: none;
    font-size: calc(18 * 100vw / 320);
    margin-bottom: calc(6 * 100vw / 320);
  }

  .home-stats__highlight span {
    font-size: calc(12 * 100vw / 320);
  }

  .home-stats__cascade {
    position: static;
    width: auto;
    height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: calc(18 * 100vw / 320);
  }

  .home-stats__cascade .stat-card {
    position: static;
    width: auto;
    left: auto;
    right: auto;
    top: auto;
  }

  .stat-card strong {
    /* Live numbers @390 ≈ 30px */
    font-size: calc(24.6 * 100vw / 320);
    line-height: 1.1;
    margin-bottom: calc(6 * 100vw / 320);
    z-index: 0;
  }

  .stat-card strong::before {
    /* Red trapezoid mark — behind digits, inside strong stacking context */
    z-index: -1;
    left: 0;
    top: calc(-6 * 100vw / 320);
    width: calc(69 * 100vw / 320);
    height: calc(20 * 100vw / 320);
    background-size: contain;
  }

  .stat-card span {
    font-size: calc(13 * 100vw / 320);
    line-height: 1.35;
  }

  /* Clients — Live 120@320 */
  .home-clients {
    height: calc(120 * 100vw / 320);
    min-height: calc(120 * 100vw / 320);
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
  }

  .home-clients h2 {
    position: static;
    left: auto;
    top: auto;
    margin: calc(16 * 100vw / 320) 0 calc(12 * 100vw / 320);
    padding: 0 calc(13 * 100vw / 320);
    font-size: calc(18 * 100vw / 320);
  }

  .clients-marquee {
    position: static;
    top: auto;
    height: calc(36 * 100vw / 320);
  }

  .clients-marquee__track img {
    height: calc(32 * 100vw / 320);
  }

  /* Support — show full copy + tabs; Live absolute board was 580@320 but
   * clamping text to 72@320 hid the second paragraph («не весь текст»). */
  .home-support {
    height: auto;
    min-height: calc(580 * 100vw / 320);
    max-height: none;
    overflow: visible;
    padding: calc(12 * 100vw / 320) 0;
    margin-bottom: calc(40 * 100vw / 320);
  }

  .home-support__board {
    height: auto;
    min-height: 0;
  }

  .home-support__panel {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    height: auto;
    min-height: 0;
    max-height: none;
    margin: 0 calc(13 * 100vw / 320);
    padding: calc(14 * 100vw / 320) calc(13 * 100vw / 320) calc(18 * 100vw / 320);
    overflow: visible;
    box-sizing: border-box;
  }

  .home-support__pattern {
    display: block;
    left: 0;
    top: calc(120 * 100vw / 320);
    width: 100%;
    height: calc(220 * 100vw / 320);
    background-position: 0% 0%;
    background-size: 160% auto;
    opacity: 0.9;
  }

  .home-support__corner {
    display: none;
  }

  .home-support__title,
  .home-support__text,
  .home-support__btn {
    position: static;
    left: auto;
    top: auto;
    width: auto;
    height: auto;
    display: block;
    margin: 0 0 calc(8 * 100vw / 320);
  }

  .home-support__title {
    font-size: calc(21 * 100vw / 320);
    line-height: 1.15;
    margin-bottom: calc(10 * 100vw / 320);
  }

  .home-support__text {
    font-size: calc(13 * 100vw / 320);
    line-height: 1.45;
    margin-bottom: calc(12 * 100vw / 320);
    max-height: none;
    overflow: visible;
  }

  .home-support__text p {
    margin: 0 0 calc(12 * 100vw / 320);
  }

  .home-support__btn {
    display: inline-flex;
    width: auto;
    min-width: calc(110 * 100vw / 320);
    height: calc(32 * 100vw / 320);
    margin-bottom: calc(14 * 100vw / 320);
    font-size: calc(12 * 100vw / 320);
  }

  .support-tabs {
    position: static;
    left: auto;
    top: auto;
    width: auto;
    display: flex;
    flex-wrap: wrap;
    gap: calc(8 * 100vw / 320);
    margin-bottom: calc(12 * 100vw / 320);
    overflow: visible;
  }

  .support-tab {
    flex: 0 0 calc(72 * 100vw / 320);
    min-width: calc(72 * 100vw / 320);
    max-width: calc(72 * 100vw / 320);
    height: calc(36 * 100vw / 320);
  }

  .support-preview {
    position: static;
    left: auto;
    top: auto;
    width: auto;
  }

  .support-preview__lead,
  .support-preview__title {
    font-size: calc(14 * 100vw / 320);
    line-height: 1.3;
  }

  .support-preview__caption {
    margin-bottom: calc(8 * 100vw / 320);
  }

  .support-preview__shots {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    max-height: none;
    overflow: hidden;
  }

  .support-shot {
    position: absolute;
  }

  /* Projects — Live artboard 563@320 (rec818220646) */
  .home-projects {
    --proj-m: calc(100vw / 320);
    height: calc(563 * var(--proj-m));
    overflow: hidden;
  }

  .project-slide {
    height: calc(563 * var(--proj-m));
    min-height: 0;
  }

  .project-slide__edge {
    width: calc(40 * var(--proj-m));
    height: calc(100 * var(--proj-m));
  }

  .project-slide__title {
    top: calc(359 * var(--proj-m));
    left: calc(10 * var(--proj-m));
    right: auto;
    bottom: auto;
    width: calc(267 * var(--proj-m));
    font-size: calc(30 * var(--proj-m));
    line-height: 1.05;
  }

  .project-slide__desc {
    top: calc(403 * var(--proj-m));
    left: calc(10 * var(--proj-m));
    right: auto;
    bottom: auto;
    width: calc(268 * var(--proj-m));
    font-size: calc(15 * var(--proj-m));
    line-height: 1.25;
  }

  .project-slide__btn {
    left: calc(10 * var(--proj-m));
    top: calc(502 * var(--proj-m));
    right: auto;
    bottom: auto;
    width: calc(140 * var(--proj-m));
    min-width: 0;
    height: calc(40 * var(--proj-m));
    min-height: calc(40 * var(--proj-m));
    padding: 0;
    font-size: calc(10 * var(--proj-m));
  }

  /* Live html dots block left 147 / top 512 @320 */
  .projects-slider__nav {
    left: calc(147 * var(--proj-m));
    top: calc(512 * var(--proj-m));
    right: auto;
    bottom: auto;
    width: calc(160 * var(--proj-m));
    height: calc(40 * var(--proj-m));
    padding-top: 0;
    justify-content: flex-start;
    transform: none;
  }

  .projects-slider__dots {
    transform: none;
    gap: calc(8 * var(--proj-m));
  }

  /* Certs — do not clamp copy (80@320 hid 2nd/3rd paragraphs) */
  .home-certs {
    height: auto;
    min-height: calc(594 * 100vw / 320);
    max-height: none;
    padding: 0;
    overflow: visible;
    box-sizing: border-box;
  }

  .home-certs__board {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: calc(16 * 100vw / 320);
    padding: calc(20 * 100vw / 320) calc(13 * 100vw / 320);
    box-sizing: border-box;
  }

  .home-certs__copy,
  .home-certs__nav,
  .home-certs__viewport {
    position: static;
    left: auto;
    top: auto;
    right: auto;
    width: auto;
    height: auto;
    max-height: none;
  }

  .home-certs__copy h2 {
    font-size: calc(21 * 100vw / 320);
    margin-bottom: calc(10 * 100vw / 320);
  }

  .home-certs__text {
    max-height: none;
    overflow: visible;
    font-size: calc(13 * 100vw / 320);
    line-height: 1.45;
  }

  .home-certs__text p {
    margin: 0 0 calc(10 * 100vw / 320);
  }

  .home-certs__nav {
    order: 3;
    gap: calc(10 * 100vw / 320);
  }

  .home-certs__arrow {
    width: calc(32 * 100vw / 320);
    height: calc(32 * 100vw / 320);
  }

  .home-certs__viewport {
    order: 2;
    overflow: hidden;
  }

  .certs-slide {
    flex: 0 0 calc(120 * 100vw / 320);
    width: calc(120 * 100vw / 320);
    height: calc(160 * 100vw / 320);
  }

  /* News — Live t-feed mobile: swipe/page one card at a time */
  .home-news {
    --news-m: calc(100vw / 320);
    padding: calc(24 * var(--news-m)) 0 calc(36 * var(--news-m));
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    box-sizing: border-box;
  }

  .home-news h2 {
    font-size: calc(22 * var(--news-m));
    line-height: 1.2;
    margin-bottom: calc(14 * var(--news-m));
  }

  .home-news__filters {
    gap: calc(8 * var(--news-m));
    margin-bottom: calc(20 * var(--news-m));
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .home-news__filters::-webkit-scrollbar {
    display: none;
  }

  .home-news__filter {
    flex: 0 0 auto;
    min-height: calc(28 * var(--news-m));
    padding: calc(5 * var(--news-m)) calc(10 * var(--news-m));
    font-size: calc(11 * var(--news-m));
  }

  .home-news__viewport {
    width: 100%;
    max-width: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Peek next card past container padding */
    margin-right: calc(-13 * var(--news-m));
    padding-right: calc(13 * var(--news-m));
  }

  .home-news__viewport::-webkit-scrollbar {
    display: none;
  }

  .news-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: max-content;
    gap: calc(14 * var(--news-m));
    min-height: 0;
    /* Native scroll owns motion on mobile — kill transform slider */
    transform: none !important;
    transition: none;
    will-change: auto;
  }

  .news-item {
    flex: 0 0 calc(240 * var(--news-m));
    width: calc(240 * var(--news-m));
    height: auto;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .news-item__media {
    width: 100%;
    height: calc(168 * var(--news-m));
    aspect-ratio: auto;
    margin-bottom: calc(10 * var(--news-m));
  }

  .news-item h3,
  .news-item p {
    width: 100%;
  }

  .news-item h3 {
    font-size: calc(13 * var(--news-m));
  }

  .news-item time,
  .news-item p {
    font-size: calc(11 * var(--news-m));
  }

  .home-news__next {
    top: calc(70 * var(--news-m));
    right: 0;
    width: calc(28 * var(--news-m));
    height: calc(28 * var(--news-m));
    font-size: calc(20 * var(--news-m));
  }

  .home-news__more {
    margin-top: calc(24 * var(--news-m));
  }

  /* Footer — defer to chrome.css Live @320 layout; reset desktop page-home widths */
  .page-home .site-footer {
    height: auto;
    --footer-m: calc(100vw / 320);
  }

  .page-home .footer-shell {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    width: 100%;
    padding: calc(15 * var(--footer-m)) calc(10 * var(--footer-m)) calc(30 * var(--footer-m));
    gap: calc(22 * var(--footer-m));
    row-gap: calc(22 * var(--footer-m));
  }

  .page-home .footer-brand,
  .page-home .footer-company,
  .page-home .footer-catalog,
  .page-home .footer-contacts {
    width: 100%;
    margin: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .page-home .footer-brand {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: calc(33 * var(--footer-m));
  }

  .page-home .footer-logo,
  .page-home .footer-logo img {
    width: calc(219 * var(--footer-m));
    height: calc(42 * var(--footer-m));
  }

  .page-home .footer-logo {
    flex: 0 0 100%;
    margin: 0 0 calc(15 * var(--footer-m));
  }

  .page-home .footer-copy {
    flex: 0 0 100%;
    margin: 0 0 calc(11 * var(--footer-m));
    font-size: calc(10 * var(--footer-m));
  }

  .page-home .footer-accent {
    display: inline-block;
    margin: 0;
    font-size: calc(9 * var(--footer-m));
  }

  .page-home .footer-accent--muted {
    color: #050611;
  }

  .page-home .footer-title {
    margin: 0 0 calc(15 * var(--footer-m));
    font-size: calc(13 * var(--footer-m));
  }

  .page-home .footer-company .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: calc(10 * var(--footer-m));
    row-gap: 10px;
    font-size: 11px;
    line-height: 1.35;
  }

  .page-home .footer-catalog__cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: calc(12 * var(--footer-m));
  }

  .page-home .footer-catalog__cols .footer-links {
    min-width: 0;
    gap: 12px;
    font-size: 11px;
    line-height: 1.35;
  }

  .page-home .footer-catalog__cols .footer-links a {
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: manual;
    line-height: 1.35;
  }

  .page-home .footer-contacts {
    gap: calc(12 * var(--footer-m));
    justify-items: start;
  }

  .page-home .footer-contact {
    grid-template-columns: calc(13 * var(--footer-m)) minmax(0, 1fr);
    font-size: calc(11 * var(--footer-m));
  }

  .page-home .footer-contact img {
    width: calc(13 * var(--footer-m));
    height: calc(12 * var(--footer-m));
  }

  .page-home .footer-contact--address {
    max-width: calc(300 * var(--footer-m));
  }

  .page-home .button--footer {
    width: calc(106 * var(--footer-m));
    min-height: calc(26 * var(--footer-m));
    height: calc(26 * var(--footer-m));
    max-height: none;
    font-size: calc(11 * var(--footer-m));
  }
}

/* Live inter-board gaps between Home Zero Blocks are near-FIXED px on tablet
 * (measured: hero→products 90, products→cta 75, cta→stats 75 @768–1024). */
@media (min-width: 600px) and (max-width: 1199px) {
  .hero-slider {
    margin-bottom: 90px;
  }

  .home-products {
    margin-bottom: 75px;
  }

  .home-cta {
    margin-bottom: 75px;
  }

  .home-stats {
    margin-bottom: 45px;
  }

  .home-clients {
    margin-bottom: 30px;
  }
}

/* Live @600 residual gap (~29px) before mid-tablet FIXED set */
@media (min-width: 600px) and (max-width: 767px) {
  .home-clients {
    margin-bottom: 59px;
  }
}

/* @900–1199: Live gaps slightly tighter than mid-tablet; trim FIXED margins */
@media (min-width: 900px) and (max-width: 1199px) {
  .hero-slider {
    margin-bottom: 55px;
  }

  .home-products,
  .home-cta {
    margin-bottom: 55px;
  }
}

/* @900 only: close remaining ~32px under (Live measured body Δ) */
@media (min-width: 900px) and (max-width: 999px) {
  .home-clients {
    margin-bottom: 62px;
  }
}

@media (max-width: 599px) {
  /* Live @390: hero→products 45 */
  .hero-slider {
    margin-bottom: 22px;
  }

  .home-products {
    margin-bottom: 0;
  }

  .home-cta {
    margin-bottom: 0;
  }

  .home-stats {
    margin-bottom: 45px;
  }

  .home-clients {
    margin-bottom: 30px;
  }

  /* Live mobile: "Перейти" button always visible on touch devices (no hover) */
  .pcard__go {
    opacity: 1;
    transform: translateY(0);
    width: calc(144 * 100vw / 320);
    height: calc(55 * 100vw / 320);
    font-size: calc(12 * 100vw / 320);
    font-weight: 600;
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
  }
}

/* Live t-feed news — no fixed min-height; content + filters define band */

@media (max-width: 760px) {
  .downloads-row {
    grid-template-columns: 1fr 1fr;
  }

  .home-stats__cascade {
    grid-template-columns: 1fr;
  }
}
