/**
 * TMC — главная страница (макет Figma / site/index.html)
 * Только для body.is-home-page. Подключается через HomePageAsset.
 */

/* Accessibility utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Legacy boxed layout reset */
.is-home-page .page-box,
.is-home-page .page-box-content,
.is-home-page .page-box-content > div,
.is-home-page .page-box-content > div > div {
    width: auto;
    max-width: none;
    padding: 0;
    margin: 0;
    background: transparent;
    box-shadow: none;
}

/* Auto-extracted from figma site/index.html, scoped to .is-home-page */
.is-home-page *, .is-home-page *::before, .is-home-page *::after { box-sizing: border-box; }
.is-home-page a { text-decoration: none; color: inherit; }
.is-home-page ul { list-style: none; }
.is-home-page button { border: none; background: none; cursor: pointer; font: inherit; }
.is-home-page img { display: block; max-width: 100%; }

/* Reset (замена Bootstrap normalize на главной) */
html:has(body.is-home-page),
body.is-home-page {
  margin: 0;
  padding: 0;
  overflow-x: clip;
  max-width: 100%;
}

body.is-home-page {
  min-height: 100vh;
  font-family: Inter, system-ui, sans-serif;
  background: #f6f7f9;
  color: #2b2b2b;
  font-size: 14px;
  line-height: 1.5;
  --primary: #0586ee;
  --text: #2b2b2b;
  --text-muted: #525252;
  --text-light: #8f8f8f;
  --bg: #f6f7f9;
  --white: #ffffff;
  --border: #e5e5e5;
  --accent: #e9bb05;
  --accent-soft: #fff8d4;
  --footer-bg: #f0f7ff;
  --about-bg: #d9e7fb;
  --services-bg: #f0f5fe;
  --search-bg: #f8fafd;
  --nav-text: #000000;
  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --hp-border-light: #e5e5e5;
  --hp-bg-soft: #f0f5fe;
  --hp-text: #2b2b2b;
  --hp-text-secondary: #525252;
  --hp-text-muted: #8f8f8f;
  --hp-nav-text-hover: #0586ee;
  --hp-blue: #0586ee;
  --hp-white: #ffffff;
  --hp-radius-xs: 4px;
}

.is-home-page ul,
.is-home-page ol {
  margin: 0;
  padding: 0;
}

.is-home-page form {
  margin: 0;
}

/* owl.carousel.min.css: display:none до init — на home показываем контент */
.is-home-page .owl-carousel {
  display: block;
  width: 100%;
}

/* Контейнер главной */
.is-home-page .container {
  width: 100%;
  max-width: min(1440px, calc(100% - 80px));
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

.is-home-page .header-top__inner,
.is-home-page .header-nav__inner {
  width: 100%;
}

    .is-home-page .page {
      overflow-x: clip;
    }

    .is-home-page .page > * + * { margin-top: 120px; }
    .is-home-page .page > .hero + * { margin-top: 100px; }

    /* ── Header ── */
    .is-home-page .header {
      background: var(--white);
      position: sticky;
      top: 0;
      z-index: 100;
      box-shadow: 0 1px 0 var(--border);
      width: 100%;
    }

    .is-home-page .header-top {
      padding: 12px 0;
    }

    .is-home-page .header-top__inner{
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, min(460px, 100%)) minmax(0, 1fr);
      align-items: center;
      gap: 24px;
      min-height: 55px;
    }

    .is-home-page .header-top .brand{
      justify-self: start;
    }

    .is-home-page .header-top__actions{
      display: flex;
      align-items: center;
      gap: 24px;
      justify-self: end;
      min-width: 0;
    }

    .is-home-page .brand{ display: flex; align-items: center; gap: 20px; }

    .is-home-page .header-top .brand{
      flex: 0 1 auto;
      min-width: 0;
    }
    .is-home-page .header-top .brand__text{
      min-width: 0;
      flex-shrink: 0;
    }
    .is-home-page .header-top .brand__title{
      line-height: 12px;
      text-transform: uppercase;
      white-space: nowrap;
      overflow: visible;
      margin: 0;
    }
    .is-home-page .header-top .brand__subtitle{
      line-height: 12px;
      color: #2b2b2b;
      white-space: nowrap;
      margin: 0;
    }

    .is-home-page .brand__logo{
      width: 90px;
      height: 55px;
      flex-shrink: 0;
      display: flex;
      align-items: center;
    }

    .is-home-page .brand__logo img{
      width: 90px;
      height: 55px;
      object-fit: contain;
    }

    .is-home-page .brand__text{ display: flex; flex-direction: column; gap: 8px; }
    .is-home-page .brand__title{ font-size: 14px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
    .is-home-page .brand__subtitle{ font-size: 12px; color: var(--text); }

    .is-home-page .header-search-wrap{
      justify-self: center;
      width: 100%;
      min-width: 0;
      max-width: 460px;
      height: 44px;
      border: 1px solid var(--border);
      border-radius: var(--radius-pill);
      padding: 0 16px;
      background: var(--search-bg);
      display: flex;
      align-items: center;
      gap: 8px;
      margin: 0;
      box-sizing: border-box;
    }
    .is-home-page .header-search-wrap img{ width: 16px; height: 16px; flex-shrink: 0; }

    .is-home-page .header-search{
      flex: 1;
      min-width: 0;
      height: 100%;
      border: 0;
      background: transparent;
      font-size: 14px;
      outline: none;
      color: var(--text);
      margin: 0;
      padding: 0;
      box-shadow: none;
      appearance: none;
      -webkit-appearance: none;
    }
    .is-home-page .header-search::placeholder{ color: var(--text-light); }

    .is-home-page .header-contacts{
      display: flex;
      align-items: center;
      gap: 24px;
      flex: 0 0 auto;
      flex-wrap: nowrap;
    }

    .is-home-page .contact{
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 14px;
      font-weight: 500;
      color: var(--text);
      text-decoration: none;
      white-space: nowrap;
    }
    .is-home-page .contact img{ width: 44px; height: 44px; flex-shrink: 0; }

    .is-home-page .header-nav{
      border-top: 1px solid var(--border);
      padding: 18px 0;
      overflow: hidden;
      max-height: 120px;
      opacity: 1;
      will-change: max-height, opacity;
      transition: max-height 0.18s ease-in, padding 0.18s ease-in, opacity 0.15s ease-in, border-color 0.18s ease-in;
    }
    .is-home-page .header--compact .header-nav{
      max-height: 0;
      padding-top: 0;
      padding-bottom: 0;
      opacity: 0;
      border-top-color: transparent;
    }

    .is-home-page .header-nav__inner{
      display: flex;
      align-items: center;
      gap: 30px;
    }

    .is-home-page .nav-item{
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 14px;
      font-weight: 500;
      color: var(--nav-text);
      cursor: pointer;
    }

    .is-home-page .nav-item__icon{ width: 24px; height: 24px; }
    .is-home-page .nav-item__arrow{ width: 18px; height: 18px; }
    .is-home-page .nav-item:hover{ color: var(--primary); }

    .is-home-page .header-burger{
      display: none;
      width: 40px;
      height: 40px;
      padding: 0;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .is-home-page .header-burger img{ width: 40px; height: 40px; display: block; }

    /* ── Section common ── */
    .is-home-page .section{ padding: 0; }
    .is-home-page .section--tight{ padding: 40px 0; }
    .is-home-page .section--blue{ background: var(--services-bg); padding: 120px 40px; }

    .is-home-page .section-head{
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 40px;
    }

    .is-home-page .section-title-group{
      display: flex;
      align-items: center;
      gap: 24px;
    }

    .is-home-page .section-line{
      display: block;
      width: 4px;
      height: 44px;
      background: var(--primary);
      border-radius: 2px;
      flex-shrink: 0;
    }

    .is-home-page .section-title{
      font-family: Manrope, Inter, system-ui, sans-serif;
      font-size: 36px;
      font-weight: 700;
      line-height: 44px;
      color: var(--text);
      margin: 0;
    }

    .is-home-page .section-subtitle{
      font-size: 16px;
      color: var(--text-muted);
      max-width: 440px;
      margin: 0;
    }

    .is-home-page .section-link{
      font-size: 16px;
      color: var(--primary);
      white-space: nowrap;
    }

    .is-home-page .section-mobile-cta{
      display: none;
    }

    .is-home-page .slider-nav{
      display: flex;
      align-items: center;
      gap: 24px;
      flex-shrink: 0;
    }

    .is-home-page .slider-nav__btn{
      width: 24px;
      height: 24px;
      display: grid;
      place-items: center;
      padding: 0;
      border: 0;
      background: transparent;
      cursor: pointer;
      line-height: 0;
      flex-shrink: 0;
    }

    .is-home-page .slider-nav__btn:hover{ opacity: 0.75; }

    .is-home-page .slider-nav__btn img{
      display: block;
      width: 24px;
      height: 24px;
    }

    /* ── Hero banner ── */
    .is-home-page .hero{
      position: relative;
    }

    .is-home-page .hero__media{
      position: relative;
      overflow: hidden;
      width: 100%;
      max-width: 1920px;
      margin-inline: auto;
    }

    .is-home-page .hero__bg{
      display: block;
      width: 100%;
      max-width: 1920px;
      height: auto;
      margin-inline: auto;
    }

    .is-home-page .cards-carousel{
      position: relative;
    }

    .is-home-page .section--novinki,
    .is-home-page .section:has(#popular-carousel){
      overflow: visible;
    }

    .is-home-page .cards-carousel__btn{
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 46px;
      height: 44px;
      padding: 0;
      border: 0;
      background: none;
      z-index: 2;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .is-home-page .cards-carousel__btn img{ width: 46px; height: 44px; display: block; }
    .is-home-page .cards-carousel__btn--left{ left: -28px; }
    .is-home-page .cards-carousel__btn--right{ right: -28px; }
    .is-home-page .cards-carousel__btn{
      opacity: 0;
      transition: opacity 0.25s ease;
    }
    .is-home-page .cards-carousel:hover .cards-carousel__btn{
      opacity: 1;
    }

    .is-home-page .hero__arr{
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 44px;
      height: 44px;
      padding: 0;
      border: 0;
      background: none;
      z-index: 4;
      cursor: pointer;
      opacity: 0;
      transition: opacity 0.25s ease;
    }
    .is-home-page .hero:hover .hero__arr{
      opacity: 1;
    }
    .is-home-page .hero__arr--left{ left: 40px; }
    .is-home-page .hero__arr--right{ right: 40px; }
    .is-home-page .hero__arr img{
      width: 44px;
      height: 44px;
      display: block;
      max-width: none;
    }

    /* ── Catalog cards ── */
    .is-home-page .catalog-grid{
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 20px;
    }

    .is-home-page .catalog-row{
      display: contents;
    }

    .is-home-page .catalog-card{
      background: var(--white);
      border-radius: var(--radius-lg);
      border: 1px solid var(--border);
      padding: 12px 12px 30px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      transition: box-shadow 0.2s ease, border-color 0.2s ease;
    }
    .is-home-page .catalog-card:hover{
      box-shadow: 0 8px 24px rgba(5, 134, 238, 0.18);
    }

    .is-home-page .catalog-card__img{
      width: 100%;
      aspect-ratio: 301 / 183;
      border-radius: var(--radius-md);
      border: 1px solid var(--border);
      overflow: hidden;
      background: var(--white);
      position: relative;
    }
    .is-home-page .catalog-card__img img{
      width: 100%;
      height: 100%;
      object-fit: contain;
      object-position: center;
    }

    @media (hover: hover) {
      .is-home-page .catalog-card--has-hover .catalog-card__img-default,
      .is-home-page .catalog-card--has-hover .catalog-card__img-hover {
        position: absolute;
        inset: 0;
        transition: opacity 0.3s ease;
      }
      .is-home-page .catalog-card--has-hover .catalog-card__img-hover {
        opacity: 0;
      }
      .is-home-page .catalog-card--has-hover:hover .catalog-card__img-default {
        opacity: 0;
      }
      .is-home-page .catalog-card--has-hover:hover .catalog-card__img-hover {
        opacity: 1;
      }
    }

    .is-home-page .catalog-card__body{
      display: flex;
      align-items: center;
      gap: 8px;
      min-height: 24px;
    }
    .is-home-page .catalog-card__body::before{
      content: '';
      display: block;
      width: 3px;
      height: 24px;
      background: var(--primary);
      border-radius: 2px;
      flex-shrink: 0;
    }
    .is-home-page .catalog-card__title{
      font-size: 14px;
      font-weight: 500;
      line-height: 1.4;
      color: var(--text);
    }

    /* ── Product / News / Новинки cards ── */
    .is-home-page .cards-grid{
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 20px;
    }

    .is-home-page .product-card{
      background: var(--white);
      border-radius: var(--radius-lg);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      padding-bottom: 20px;
      border: 1px solid var(--border);
      transition: box-shadow 0.2s ease, border-color 0.2s ease;
    }
    .is-home-page .product-card:hover{
      box-shadow: 0 8px 24px rgba(5, 134, 238, 0.18);
      border-color: var(--primary);
    }

    .is-home-page .product-card__ph{
      width: 100%;
      height: 240px;
      background: var(--white);
      position: relative;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .is-home-page .product-card__ph img{
      width: 100%;
      height: 100%;
      object-fit: contain;
      object-position: center;
    }

    .is-home-page .product-card__badge{
      position: absolute;
      top: 12px;
      left: 12px;
      background: var(--primary);
      color: var(--white);
      font-size: 12px;
      font-weight: 600;
      padding: 6px 10px;
      border-radius: var(--radius-sm);
    }

    .is-home-page .product-card__body{
      padding: 0 18px;
      display: flex;
      flex-direction: column;
      gap: 8px;
      flex: 1;
    }

    .is-home-page .product-card__name{
      font-size: 20px;
      font-weight: 700;
      color: var(--text);
      margin-top: 12px;
    }

    .is-home-page .product-card__desc{
      font-size: 16px;
      color: var(--text-muted);
      line-height: 1.4;
    }

    .is-home-page .product-card__footer{
      padding: 0 18px;
      margin-top: auto;
    }

    .is-home-page .product-card__line{
      width: 100%;
      height: 1px;
      margin-top: 12px;
      background: var(--border);
      transition: background 0.2s ease;
    }
    .is-home-page .product-card:hover .product-card__line{
      background: var(--primary);
    }

    .is-home-page .product-card__more{
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      padding: 12px 0;
      font-size: 14px;
      color: var(--primary);
    }
    .is-home-page .product-card__more img{
      display: block;
      width: 24px;
      height: 24px;
      max-width: 24px;
      max-height: 24px;
      flex-shrink: 0;
      object-fit: contain;
    }

    /* ── About ── */
    .is-home-page .about-section{
      padding: 0;
    }

    .is-home-page .about{
      background: var(--about-bg);
      border-radius: var(--radius-xl);
      border: 1px solid var(--border);
      padding: 80px 60px;
      display: flex;
      flex-wrap: wrap;
      gap: 98px;
      width: 100%;
      min-width: 0;
      box-sizing: border-box;
    }

    .is-home-page .about__content{
      display: flex;
      flex-direction: column;
      gap: 60px;
      flex: 1 1 400px;
      min-width: 0;
      max-width: 518px;
    }

    .is-home-page .about__text-block{ display: flex; flex-direction: column; gap: 18px; }

    .is-home-page .about__eyebrow{
      font-size: 16px;
      font-weight: 400;
      line-height: 24px;
      color: var(--primary);
      margin: 0;
    }

    .is-home-page .about__title{
      font-family: Manrope, Inter, system-ui, sans-serif;
      font-size: 40px;
      font-weight: 700;
      color: var(--text);
      line-height: 48px;
      margin: 0;
    }

    .is-home-page .about__title-accent{
      color: var(--primary);
    }

    .is-home-page .about__desc{
      font-size: 16px;
      color: var(--text-muted);
      line-height: 1.6;
      margin: 0;
    }

    .is-home-page .about__cta{
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .is-home-page .about__cta-link{
      font-size: 16px;
      color: var(--primary);
    }
    .is-home-page .about__cta img{ width: 18px; height: 18px; }

    .is-home-page .about__stats{
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 24px;
      flex: 1 1 400px;
      min-width: 0;
      align-content: start;
    }

    .is-home-page .stat-card{
      background: var(--white);
      border-radius: var(--radius-lg);
      padding: 24px;
      display: flex;
      flex-direction: column;
      gap: 18px;
      border: 1px solid transparent;
      transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
      cursor: default;
    }

    .is-home-page .stat-card:hover{
      border-color: var(--primary);
      box-shadow: 0 8px 24px rgba(5, 134, 238, 0.12);
      transform: translateY(-2px);
    }

    .is-home-page .stat-card__icon{
      width: 50px;
      height: 50px;
      flex-shrink: 0;
      transition: transform 0.2s ease;
    }

    .is-home-page .stat-card:hover .stat-card__icon{
      transform: rotate(-8deg);
    }

    .is-home-page .stat-card__value{
      font-size: 36px;
      font-weight: 700;
      color: var(--text);
      margin: 0;
    }

    .is-home-page .stat-card__label{
      font-size: 14px;
      color: var(--text-muted);
      margin: 0;
    }

    /* ── Services ── */
    .is-home-page .services-section{
      background: var(--services-bg);
      padding: 120px 40px;
    }

    .is-home-page .services-container{ max-width: 1440px; margin: 0 auto; }

    .is-home-page .services-head{
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 40px;
    }

    .is-home-page .services-board{
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 20px;
    }

    .is-home-page .services-row{
      display: contents;
    }

    .is-home-page .service-card{
      background: var(--white);
      border-radius: var(--radius-lg);
      padding: 24px;
      display: flex;
      flex-direction: column;
      gap: 0;
      min-height: 188px;
      box-sizing: border-box;
      border: 1px solid transparent;
      transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
      cursor: pointer;
      text-decoration: none;
      color: inherit;
    }
    .is-home-page .service-card:focus-visible{
      outline: 2px solid var(--primary);
      outline-offset: 2px;
    }

    .is-home-page .service-card:hover{
      border-color: var(--primary);
      box-shadow: 0 8px 24px rgba(5, 134, 238, 0.12);
      transform: translateY(-2px);
    }

    .is-home-page .service-card__icon{
      width: 50px;
      height: 50px;
      flex-shrink: 0;
      margin-bottom: 18px;
      transition: transform 0.2s ease;
    }

    .is-home-page .service-card:hover .service-card__icon{
      transform: rotate(-8deg);
    }

    .is-home-page .service-card__title{
      font-size: 20px;
      font-weight: 500;
      line-height: 28px;
      color: #000000;
      margin: 0 0 8px;
    }

    .is-home-page .service-card__desc{
      font-size: 14px;
      font-weight: 500;
      line-height: 20px;
      color: var(--text-light);
      margin: 0;
    }

    /* ── Logos row (brands / partners / clients) ── */
    .is-home-page .logos-section{ padding: 0; }

    .is-home-page .logos-head{
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 40px;
    }

    .is-home-page .logos-row:not(.owl-loaded){
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      gap: 20px;
    }

    .is-home-page #brands-carousel.owl-loaded,
    .is-home-page #partners-carousel.owl-loaded,
    .is-home-page #clients-carousel.owl-loaded{
      width: 100%;
      overflow: hidden;
    }

    /* Карточка логотипа: белый фон + рамка (как logo-*.svg 210×148 в макете) */
    .is-home-page .logo-card{
      min-width: 0;
      height: 148px;
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: var(--radius-xl);
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 12px 16px;
      box-sizing: border-box;
    }
    .is-home-page .logo-card a{
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: 100%;
    }
    .is-home-page .logo-card img{
      display: block;
      width: auto;
      max-width: 100%;
      height: auto;
      max-height: 100%;
      object-fit: contain;
    }
    /* 30% opacity для брендов и партнёров, заказчики — без эффекта */
    #brands-carousel .logo-card img,
    #partners-carousel .logo-card img{
      opacity: 0.3;
      transition: opacity 0.2s ease;
    }
    #brands-carousel .logo-card:hover img,
    #partners-carousel .logo-card:hover img{
      opacity: 1;
    }

    /* ── Promo / Акции ── */
    .is-home-page .promo-section{ padding: 0; }

    .is-home-page .promo-head{
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 60px;
    }

    .is-home-page .promo-grid{
      margin-bottom: 30px;
    }

    .is-home-page .promo-card{
      display: block;
      height: 420px;
      background: #2b2b2b;
      border-radius: var(--radius-xl);
      overflow: hidden;
    }

    .is-home-page .promo-card img{
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .is-home-page .promo-dots{
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 8px;
      padding: 4px 12px;
    }

    .is-home-page .promo-dots img{
      display: block;
      flex-shrink: 0;
    }

    /* ── Web portals ── */
    .is-home-page .portals-section{ padding: 0; overflow: visible; }

    .is-home-page .portals-carousel{
      position: relative;
      overflow: visible;
    }

    .is-home-page .portals-carousel:hover .cards-carousel__btn{
      opacity: 1;
    }

    .is-home-page .portals-grid{
      width: 100%;
    }

    .is-home-page .portal-card{
      width: 100%;
      height: 400px;
      border-radius: 32px;
      box-shadow: inset 0 0 0 1px #e5e5e5;
      overflow: hidden;
      position: relative;
      padding: 80px 24px 64px;
      display: flex;
      flex-direction: column;
      transition: box-shadow 0.2s ease;
    }
    .is-home-page .portal-card:hover{
      box-shadow: inset 0 0 0 1px #e5e5e5, 0 8px 24px rgba(5, 134, 238, 0.12);
    }

    .is-home-page .portal-card--grad1{
      background: linear-gradient(180deg, #31CED5 0%, #31CED5 35%, rgba(173, 173, 173, 0.24) 100%);
    }
    .is-home-page .portal-card--dark{ background: linear-gradient(to bottom, #000000 0%, #f4ca44 100%); }

    .is-home-page .portal-card--photo::before{
      content: '';
      position: absolute;
      inset: 0;
      border-radius: inherit;
      background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(102, 102, 102, 0) 100%);
      z-index: 1;
      pointer-events: none;
    }

    .is-home-page .portal-card__bg{
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      z-index: 0;
    }

    .is-home-page .portal-card__body{
      position: relative;
      z-index: 2;
      display: flex;
      flex-direction: column;
      gap: 30px;
      height: 100%;
      min-height: 0;
    }

    .is-home-page .portal-card__content{
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 80px;
      flex: 1;
      min-height: 0;
      overflow: hidden;
    }

    /* Owl Carousel: .owl-item img { width:100% } — переопределяем для логотипа */
    .is-home-page .owl-carousel .owl-item .portal-card__logo{
      height: 54px;
      width: auto;
      max-width: 100%;
      object-fit: contain;
      object-position: left center;
      flex-shrink: 0;
    }

    .is-home-page .portal-card__desc{
      font-size: 16px;
      font-weight: 400;
      line-height: 24px;
      color: #ffffff;
      margin: 0;
      display: -webkit-box;
      -webkit-line-clamp: 4;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .is-home-page .portal-card--photo .portal-card__desc{ color: #e5e5e5; }

    .is-home-page .portal-card__link{
      display: inline-flex;
      align-self: flex-start;
      align-items: center;
      gap: 8px;
      font-size: 14px;
      line-height: 20px;
      color: rgba(255, 255, 255, 0.8);
      font-weight: 500;
      flex-shrink: 0;
      text-decoration: none;
      padding: 12px 12px 12px 14px;
      margin-left: -14px;
      border-radius: 100px;
      background: transparent;
      transition: background 0.22s ease, color 0.22s ease, margin-left 0.22s ease;
    }
    .is-home-page .portal-card:hover .portal-card__link{
      color: #ffffff;
      background: rgba(0, 0, 0, 0.65);
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
      margin-left: 0;
    }
    .is-home-page .portal-card__link img{
      width: 16px;
      height: 16px;
      flex-shrink: 0;
      transition: width 0.22s ease, height 0.22s ease;
    }
    .is-home-page .portal-card:hover .portal-card__link img{
      width: 20px;
      height: 20px;
    }

    /* ── Footer ── */
    .is-home-page .footer{
      background: var(--footer-bg);
      box-shadow: inset 0 1px 0 var(--border);
      padding: 80px 0 40px;
      width: 100%;
      margin-top: 159px;
    }

    .is-home-page .footer__inner{
      width: 100%;
      max-width: min(1440px, calc(100% - 80px));
      margin-inline: auto;
      padding-inline: 0;
      display: flex;
      flex-direction: column;
      gap: 60px;
      box-sizing: border-box;
    }

    .is-home-page .footer-banner{
      background-color: #e9bb05;
      border-radius: 24px;
      padding: 12px 24px;
      min-height: 84px;
      display: flex;
      align-items: center;
      width: 100%;
      box-sizing: border-box;
    }

    .is-home-page .footer-banner__inner{
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 56px;
      width: 100%;
      min-height: 60px;
    }

    .is-home-page .footer-banner__left{
      display: flex;
      align-items: center;
      gap: 12px;
      flex: 1;
      min-width: 0;
    }

    .is-home-page .footer-banner__icon{
      width: 60px;
      height: 60px;
      flex-shrink: 0;
    }
    .is-home-page .footer-banner__icon img{ width: 60px; height: 60px; display: block; }

    .is-home-page .footer-banner__text{
      font-family: Manrope, Inter, system-ui, sans-serif;
      font-size: 24px;
      font-weight: 600;
      line-height: 40px;
      color: var(--white);
      min-width: 0;
      margin: 0;
    }

    .is-home-page .footer-banner__btn{
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      background: transparent;
      color: rgba(255, 255, 255, 0.8);
      font-size: 15px;
      font-weight: 500;
      line-height: 24px;
      padding: 12px 18px 12px 22px;
      border-radius: 100px;
      white-space: nowrap;
      flex-shrink: 0;
      text-decoration: none;
      transition: background 0.22s ease, color 0.22s ease;
    }
    .is-home-page .footer-banner__btn:hover{
      color: #ffffff;
      background: rgba(0, 0, 0, 0.65);
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
    }
    .is-home-page .footer-banner__btn img{
      width: 16px;
      height: 16px;
      flex-shrink: 0;
      transition: width 0.22s ease, height 0.22s ease;
    }
    .is-home-page .footer-banner__btn:hover img{
      width: 20px;
      height: 20px;
    }

    .is-home-page .footer-main{
      display: flex;
      flex-wrap: nowrap;
      gap: 95px;
      align-items: flex-start;
      min-width: 0;
    }

    .is-home-page .footer-left{
      display: flex;
      flex-direction: column;
      gap: 30px;
      flex: 0 0 clamp(280px, 30%, 460px);
      min-width: 0;
    }

    .is-home-page .footer-left .brand{
      width: fit-content;
      max-width: 100%;
      align-self: flex-start;
    }
    .is-home-page .footer-left .brand__text{ width: 229px; max-width: calc(100% - 110px); }
    .is-home-page .footer-left .brand__title{
      font-weight: 400;
      line-height: 12px;
      color: #2b2b2b;
      text-transform: uppercase;
      margin: 0;
    }
    .is-home-page .footer-left .brand__subtitle{
      line-height: 12px;
      color: #2b2b2b;
      margin: 0;
    }

    .is-home-page .footer-social{ display: flex; gap: 24px; }
    .is-home-page .footer-social a{ display: block; width: 40px; height: 40px; }
    .is-home-page .footer-social img{ width: 40px; height: 40px; }

    .is-home-page .footer-contacts{ display: flex; flex-direction: column; gap: 12px; font-style: normal; }

    .is-home-page .footer-contact{
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 16px;
      color: var(--text-muted);
    }
    .is-home-page .footer-contact img{ width: 24px; height: 24px; flex-shrink: 0; }

    .is-home-page .footer-desc{
      font-size: 14px;
      line-height: 1.5;
      color: var(--text-muted);
      margin: 0;
    }

    .is-home-page .footer-cols{
      display: flex;
      gap: 109px;
      flex: 1 1 0;
      min-width: 0;
      flex-wrap: nowrap;
      align-items: flex-start;
      justify-content: space-between;
    }

    .is-home-page .footer-col{
      display: flex;
      flex-direction: column;
      gap: 24px;
    }

    .is-home-page .footer-cols > .footer-col:first-child{ flex: 1 1 110px; min-width: 0; max-width: 140px; }
    .is-home-page .footer-cols > .footer-col:nth-child(2){ flex: 1 1 110px; min-width: 0; max-width: 140px; }

    .is-home-page .footer-col__title{
      margin: 0;
      font-size: 18px;
      font-weight: 500;
      line-height: 25px;
      color: #525252;
    }

    .is-home-page .footer-col ul{
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .is-home-page .footer-col li{ margin: 0; padding: 0; }

    .is-home-page .footer-col a{
      display: block;
      font-size: 16px;
      color: var(--text-muted);
      line-height: 24px;
    }
    .is-home-page .footer-col a:hover{ color: var(--primary); }

    .is-home-page .footer-col.subscribe{
      flex: 0 0 346px;
      max-width: 100%;
      min-width: 0;
      gap: 0;
    }

    .is-home-page .subscribe{ display: flex; flex-direction: column; gap: 8px; width: 100%; }
    .is-home-page .subscribe__body{ display: flex; flex-direction: column; gap: 24px; width: 100%; }
    .is-home-page .subscribe__intro{ display: flex; flex-direction: column; gap: 24px; }
    .is-home-page .subscribe__head{ display: flex; flex-direction: column; gap: 8px; }

    .is-home-page .subscribe__heading,
    .is-home-page .subscribe__text,
    .is-home-page .subscribe__disclaimer{
      margin: 0;
    }

    .is-home-page .subscribe__heading{ font-size: 20px; font-weight: 600; line-height: 28px; color: #2b2b2b; }
    .is-home-page .subscribe__text{ font-size: 14px; font-weight: 500; line-height: 20px; color: #2b2b2b; }

    /* Сброс стилей, которые инжектит popup.js от Unisender */
    .is-home-page #static-form-container{
      width: 100% !important;
      background-color: transparent !important;
      margin: 0 !important;
      border-radius: 0 !important;
      padding: 0 !important;
      box-shadow: none !important;
    }
    .is-home-page #static-form-container .error-block{
      display: none;
      font-size: 12px;
      color: #e53935;
      margin-top: 4px;
    }

    .is-home-page .subscribe__form{
      background: #ffffff;
      border-radius: 32px;
      padding: 5px 5px 5px 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      min-height: 48px;
      box-sizing: border-box;
    }

    .is-home-page .subscribe__input{
      flex: 1;
      min-width: 0;
      border: none;
      background: transparent;
      outline: none;
      font-size: 14px;
      line-height: 20px;
      color: #2b2b2b;
      margin: 0;
      padding: 0;
      box-shadow: none;
      appearance: none;
      -webkit-appearance: none;
    }
    .is-home-page .subscribe__input::placeholder{ color: #8f8f8f; }

    .is-home-page .subscribe__btn{
      display: flex;
      align-items: center;
      gap: 4px;
      flex-shrink: 0;
      height: 38px;
      padding: 10px 12px;
      background: #0586ee;
      color: #ffffff;
      border-radius: 32px;
      font-size: 12px;
      font-weight: 400;
      line-height: 16px;
      white-space: nowrap;
      box-sizing: border-box;
    }
    .is-home-page .subscribe__btn img{ width: 18px; height: 18px; }

    .is-home-page .subscribe__disclaimer{
      font-size: 12px;
      line-height: 16px;
      color: #525252;
    }
    .is-home-page .footer-col.subscribe .subscribe__disclaimer a{
      display: inline;
      font-size: inherit;
      line-height: inherit;
      color: #8f8f8f;
      text-decoration: underline;
      text-decoration-color: #8f8f8f;
      text-underline-offset: 2px;
    }
    .is-home-page .footer-col.subscribe .subscribe__disclaimer a:hover,
    .is-home-page .footer-col.subscribe .subscribe__disclaimer a:focus{
      color: #525252;
      text-decoration-color: #525252;
    }

    .is-home-page .footer-bottom{
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-top: 24px;
      border-top: 1px solid var(--border);
      font-size: 12px;
      line-height: 16px;
      color: var(--text-light);
      gap: 30px;
      flex-wrap: wrap;
    }

    .is-home-page .footer-bottom__copy{
      margin: 0;
      font-size: inherit;
      line-height: inherit;
      color: inherit;
    }

    .is-home-page .footer-bottom__links{
      display: flex;
      gap: 30px;
      flex-wrap: wrap;
      align-items: center;
    }

    .is-home-page .footer-bottom__links a{
      font-size: inherit;
      line-height: inherit;
      color: var(--text-light);
      text-decoration: none;
      white-space: nowrap;
    }

    .is-home-page .footer-bottom__links a[href*="dgsys.ru"]{ color: #FFCC00; }

    .is-home-page .footer-bottom__links a:hover{ color: var(--primary); }

    .is-home-page .footer-bottom__row-mobile,
    .is-home-page .footer-bottom__consent-mobile{ display: none; }

    /* ── Responsive ── */
    @media (max-width: 1400px) {
      .is-home-page .header-contacts .contact:first-child{ display: none; }
    }

    @media (max-width: 1200px) {
      /* catalog-grid: 4 колонки (3 ряда × 12 карточек) до tablet breakpoint 1024px */
      .is-home-page .cards-grid{ grid-template-columns: repeat(2, 1fr); }
    }

    /*
     * Footer: 3 уровня (figma-export)
     * ≥1443px — desktop row 460+807 (контент до 1440px)
     * 769–1442px — tablet row 287+cols (desktop ~1362px не влезает)
     * ≤768px — mobile column + grid (ниже)
     */
    @media (max-width: 1442px) {
      .is-home-page .footer-main{
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 23px;
        align-items: flex-start;
      }
      .is-home-page .footer-left{
        width: 287px;
        flex-shrink: 0;
        overflow: hidden;
      }
      /* brand: 12px чтобы влезало в 177px без переноса; line-height из базы (12px) */
      .is-home-page .footer-left .brand__text{ max-width: 197px; }
      .is-home-page .footer-left .brand__title{ font-size: 12px; }
      .is-home-page .footer-left .brand__subtitle{ font-size: 11px; }
      .is-home-page .footer-cols{
        flex: 1 1 0;
        width: auto;
        min-width: 0;
        max-width: none;
        gap: 24px;
        flex-wrap: nowrap;
        justify-content: space-between;
      }
      /* колонки с фиксированной шириной растягиваются через justify-content */
      .is-home-page .footer-cols > .footer-col:first-child,
      .is-home-page .footer-cols > .footer-col:nth-child(2){
        width: auto;
        min-width: 110px;
      }
      .is-home-page .footer-col.subscribe{
        flex: 0 0 346px;
        width: 346px;
        min-width: 0;
      }
    }

    /* Header-top: grid + полные контакты не помещаются примерно до 1320px */
    @media (max-width: 1320px) {
      .is-home-page .header-top{ padding: 20px 0; }
      .is-home-page .header-top__inner{
        display: flex;
        flex-wrap: nowrap;
        gap: 29px;
        min-height: 42px;
      }
      .is-home-page .header-top .brand{
        justify-self: auto;
        flex: 0 1 auto;
        min-width: 0;
      }
      .is-home-page .header-top__actions{
        gap: 36px;
        margin-left: auto;
        justify-self: auto;
        flex-shrink: 0;
      }
      .is-home-page .header-search-wrap{
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        max-width: 306px;
        justify-self: auto;
      }
      .is-home-page .header-contacts .contact:first-child{ display: none; }
      .is-home-page .header-contacts .contact span{ display: none; }
      .is-home-page .header-contacts{ gap: 0; }
      .is-home-page .brand{ gap: 12px; }
      .is-home-page .brand__logo{ width: 72px; height: 42px; }
      .is-home-page .brand__logo img{ width: 72px; height: 42px; }
      .is-home-page .header-top .brand__text{ width: auto; }
      .is-home-page .header-top .brand__title,
      .is-home-page .header-top .brand__subtitle{ font-size: 12px; line-height: 12px; }
    }

    /* Планшет — макет Main page 980 (figma-export-tablet) */
    @media (max-width: 1024px) {
      .is-home-page .container{ max-width: calc(100% - 80px); }

      .is-home-page .page > * + * { margin-top: 100px; }
      .is-home-page .page > .hero + * { margin-top: 80px; }
      .is-home-page .page > .logos-section + .about-section { margin-top: 60px; }

      /* Header ≤1024: бургер вместо nav (компактный header-top — см. max-width: 1320px) */
      .is-home-page .header-nav{ display: none; }
      .is-home-page .header-burger{ display: flex; }

      /* Hero — высота по изображению */

      /* Каталог: 4 строки × 3 карточки 287×261 */
      .is-home-page .catalog-grid{ grid-template-columns: repeat(3, 1fr); }

      /* Популярная / новости — owl, 3 карточки в ряд */
      .is-home-page .cards-grid:not(.owl-carousel){ grid-template-columns: repeat(3, 1fr); }

      /* Новинки: кнопки по бокам (position: absolute), ссылка убрана */
      .is-home-page .section--novinki .section-link{ display: none; }

      /* Бренды: заголовок + подзаголовок колонкой, лого 210×148, без стрелок */
      .is-home-page .logos-section:has(#brands-carousel) .logos-head{
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
      }
      .is-home-page .logos-section:has(#brands-carousel) .section-subtitle{ max-width: 498px; }
      .is-home-page .owl-carousel .logo-card{ height: 148px; }

      /* О нас: padding 60/30, gap 98, title 40px */
      .is-home-page .about{ flex-direction: row; padding: 60px 30px; gap: 98px; }
      .is-home-page .about__content{ width: auto; flex: 1; min-width: 0; max-width: 402px; }
      .is-home-page .about__title{ font-size: 40px; line-height: 48px; }
      .is-home-page .about__stats{
        width: auto;
        flex: 1;
        max-width: 412px;
        grid-template-columns: repeat(2, 1fr);
      }
      .is-home-page .stat-card__value{ font-size: 32px; }

      /* Услуги: шапка в строку, сетка 3+3+2 (287 / 440) */
      .is-home-page .services-section{ padding: 80px 40px; }
      .is-home-page .services-head{
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 24px;
        margin-bottom: 40px;
      }
      .is-home-page .services-head .section-subtitle{
        max-width: 440px;
        font-size: 16px;
        line-height: 24px;
      }
      .is-home-page .services-board{
        grid-template-columns: repeat(6, 1fr);
      }
      .is-home-page .services-row{ display: contents; }
      .is-home-page .services-row:first-child .service-card:nth-child(1){ grid-column: 1 / span 2; grid-row: 1; }
      .is-home-page .services-row:first-child .service-card:nth-child(2){ grid-column: 3 / span 2; grid-row: 1; }
      .is-home-page .services-row:first-child .service-card:nth-child(3){ grid-column: 5 / span 2; grid-row: 1; }
      .is-home-page .services-row:first-child .service-card:nth-child(4){ grid-column: 1 / span 2; grid-row: 2; }
      .is-home-page .services-row:last-child .service-card:nth-child(1){ grid-column: 3 / span 2; grid-row: 2; }
      .is-home-page .services-row:last-child .service-card:nth-child(2){ grid-column: 5 / span 2; grid-row: 2; }
      .is-home-page .services-row:last-child .service-card:nth-child(3){ grid-column: 1 / span 3; grid-row: 3; }
      .is-home-page .services-row:last-child .service-card:nth-child(4){ grid-column: 4 / span 3; grid-row: 3; }
      .is-home-page .service-card{ min-height: 188px; }

      /* Акции: карточки 350px */
      .is-home-page .promo-card{ height: 350px; }

      /* Порталы: карусель owl, 3 айтема */
      .is-home-page .portal-card{
        height: 297px;
        max-height: 297px;
        padding: 40px 16px 24px;
        border-radius: 18px;
        overflow: hidden;
      }
      .is-home-page .portal-card__body{ gap: 12px; min-height: 0; }
      .is-home-page .portal-card__content{ gap: 24px; min-height: 0; overflow: hidden; }
      .is-home-page .owl-carousel .owl-item .portal-card__logo{ height: 40px; width: auto; }
      .is-home-page .portal-card__desc{ font-size: 14px; line-height: 20px; }

      /* Footer: строка 287+637=947px не влезает в контейнер ≤1024px → колонка */
      .is-home-page .footer{ margin-top: 120px; padding: 80px 0 40px; }
      .is-home-page .footer__inner{ gap: 60px; }
      .is-home-page .footer-main{
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 40px;
      }
      .is-home-page .footer-left{
        width: 100%;
        max-width: 100%;
      }
      .is-home-page .footer-left .brand__text{ max-width: 237px; }
      .is-home-page .footer-left .brand__title{ font-size: 14px; }
      .is-home-page .footer-left .brand__subtitle{ font-size: 12px; }
      .is-home-page .footer-cols{
        width: 100%;
        flex: none;
        gap: 24px 40px;
        flex-wrap: wrap;
        justify-content: flex-start;
      }
      .is-home-page .footer-cols > .footer-col:first-child,
      .is-home-page .footer-cols > .footer-col:nth-child(2){
        width: auto;
        min-width: 100px;
      }
      .is-home-page .footer-col.subscribe{
        flex: 1 1 280px;
        max-width: 346px;
      }
      .is-home-page .footer-banner__inner{ flex-wrap: wrap; gap: 24px; }
      .is-home-page .footer-banner__text{ font-size: 18px; line-height: 28px; }

      .is-home-page .section-title{ font-size: 32px; line-height: 40px; }
      .is-home-page .section-line{ height: 40px; }
    }

    /* Мобильный — макет Main page 380 (figma-export-mobile) */
    @media (max-width: 768px) {
      .is-home-page .container{ max-width: calc(100% - 24px); }
      .is-home-page .page { overflow-x: clip; }

      .is-home-page .page > * + * { margin-top: 80px; }
      .is-home-page .page > .hero + * { margin-top: 80px; }
      .is-home-page .page > .logos-section + .about-section { margin-top: 80px; }

      /* Header 380×66: лого 72 + поиск + бургер, без текста бренда и телефона */
      .is-home-page .header-top{ padding: 12px 0; }
      .is-home-page .header-nav{ display: none; }
      .is-home-page .header-burger{ display: flex; }
      .is-home-page .header-top__inner{
        display: flex;
        flex-wrap: nowrap;
        gap: 12px;
        align-items: center;
        min-height: 42px;
      }
      .is-home-page .header-top__actions{
        flex-shrink: 0;
        gap: 0;
        min-width: 0;
        margin-left: 0;
        justify-self: auto;
      }
      .is-home-page .header-top .brand__text{ display: none; }
      .is-home-page .brand{ gap: 0; flex-shrink: 0; }
      .is-home-page .brand__logo{ width: 72px; height: 42px; }
      .is-home-page .brand__logo img{ width: 72px; height: 42px; }
      .is-home-page .header-contacts{ display: none; }
      .is-home-page .header-search-wrap{
        flex: 1;
        width: auto;
        min-width: 0;
        max-width: none;
        height: 36px;
        justify-self: auto;
      }

      /* Hero — высота по изображению */

      .is-home-page .hero__arr--left{ left: 12px; }
      .is-home-page .hero__arr--right{ right: 12px; }

      .is-home-page .section-title{ font-size: 28px; line-height: 40px; }
      .is-home-page .section-line{ height: 40px; }

      /* Шапка секции: только заголовок 356×50, ссылки — под каруселью */
      .is-home-page .section-head{
        align-items: center;
        margin-bottom: 40px;
      }
      .is-home-page .section-title-group{ gap: 18px; }
      .is-home-page .section-head .section-link{ display: none; }

      .is-home-page .section:has(#popular-carousel) .section-mobile-cta,
      .is-home-page .section:has(.catalog-grid) .section-mobile-cta{
        display: flex;
        align-items: center;
        justify-content: center;
        max-width: 100%;
        height: 57px;
        margin-top: 40px;
        margin-inline: auto;
        padding: 16px 24px;
        border-radius: 32px;
        background: var(--primary);
        color: var(--white);
        font-size: 18px;
        font-weight: 500;
        line-height: 25px;
      }

      .is-home-page .section:has(#popular-carousel) .section-mobile-cta{ width: 294px; }
      .is-home-page .section:has(.catalog-grid) .section-mobile-cta{ width: 231px; }

      /* Каталог: 3 ряда × 4 карточки с горизонтальным скроллом */
      .is-home-page .catalog-grid{
        display: flex;
        flex-direction: column;
        gap: 20px;
      }
      .is-home-page .catalog-row{
        display: flex;
        flex-wrap: nowrap;
        gap: 20px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
      }
      .is-home-page .catalog-row::-webkit-scrollbar{ display: none; }
      .is-home-page .catalog-card{
        flex: 0 0 287px;
        width: 287px;
        min-height: 261px;
        scroll-snap-align: start;
      }
      .is-home-page .catalog-card__img{
        aspect-ratio: auto;
        height: 183px;
      }

      .cards-grid:not(.owl-carousel){
        grid-template-columns: 1fr;
      }

      /* Услуги: 2 ряда × 4 карточки с горизонтальным скроллом */
      .is-home-page .services-section{ padding: 60px 12px; }
      .is-home-page .services-head{
        flex-direction: column;
        gap: 16px;
        margin-bottom: 40px;
      }
      .is-home-page .services-head .section-subtitle{
        max-width: none;
        font-size: 16px;
        line-height: 24px;
      }
      .is-home-page .services-board{
        display: flex;
        flex-direction: column;
        gap: 20px;
      }
      .is-home-page .services-row{
        display: flex;
        flex-wrap: nowrap;
        gap: 20px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
      }
      .is-home-page .services-row::-webkit-scrollbar{ display: none; }
      .is-home-page .service-card{
        flex: 0 0 287px;
        width: 287px;
        min-height: 188px;
        padding: 18px;
        scroll-snap-align: start;
        grid-column: unset;
        grid-row: unset;
      }
      .is-home-page .service-card__icon{ width: 50px; height: 50px; margin-bottom: 12px; }
      .is-home-page .service-card__title{ font-size: 20px; line-height: 28px; }
      .is-home-page .service-card__desc{ font-size: 14px; line-height: 20px; }

      /* О нас: колонка, stats 2×2 */
      .is-home-page .about{ flex-direction: column; padding: 40px 12px; gap: 40px; }
      .is-home-page .about__content{ width: 100%; max-width: none; }
      .is-home-page .about__title{ font-size: 32px; line-height: 40px; }
      .is-home-page .about__stats{
        width: 100%;
        max-width: none;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
      }
      .is-home-page .stat-card{ padding: 16px; gap: 12px; }
      .is-home-page .stat-card__value{ font-size: 32px; }

      /* Бренды / партнёры / заказчики: горизонтальный скролл 174×128 (без Owl) */
      .is-home-page .logos-section:has(#brands-carousel) .logos-head{
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
      }
      .is-home-page .logos-section .logos-head{ margin-bottom: 24px; }
      .is-home-page .logos-section .slider-nav{ display: none; }
      #brands-carousel:not(.owl-loaded),
      #partners-carousel:not(.owl-loaded),
      .is-home-page #clients-carousel:not(.owl-loaded){
        display: flex !important;
        flex-wrap: nowrap;
        gap: 8px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
      }
      #brands-carousel::-webkit-scrollbar,
      #partners-carousel::-webkit-scrollbar,
      .is-home-page #clients-carousel::-webkit-scrollbar{ display: none; }
      #brands-carousel .logo-card,
      #partners-carousel .logo-card,
      .is-home-page #clients-carousel .logo-card{
        flex: 0 0 174px;
        width: 174px;
        height: 128px;
        padding: 10px 12px;
        border-radius: 24px;
        scroll-snap-align: start;
      }

      /* Новинки: без кнопок карусели */
      .is-home-page .cards-carousel{
        display: block;
        padding-inline: 0;
      }
      .is-home-page .cards-carousel__btn{ display: none; }

      /* Акции */
      .is-home-page .promo-head{ margin-bottom: 40px; }
      .is-home-page .promo-card{ height: 280px; }

      /* Порталы: нативный scroll на мобиле с peek следующей карточки */
      .is-home-page .portals-section .section-title-group{ align-items: flex-start; }
      .is-home-page .portals-section .section-line{ height: 120px; }
      .is-home-page #portals-nav{ overflow: visible; padding: 0; }
      .is-home-page #portals-carousel{
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 12px;
        padding: 8px 0 8px;
      }
      .is-home-page #portals-carousel::-webkit-scrollbar{ display: none; }
      .is-home-page #portals-carousel .portal-card{
        flex: 0 0 calc(100% - 100px);
        min-width: 0;
      }
      .is-home-page .portal-card{
        height: 281px;
        max-height: 281px;
        padding: 40px 12px;
        border-radius: 18px;
        overflow: hidden;
      }
      .is-home-page .portal-card__body{ gap: 12px; min-height: 0; overflow: hidden; }
      .is-home-page .portal-card__content{ gap: 8px; min-height: 0; overflow: hidden; }
      .is-home-page .owl-carousel .owl-item .portal-card__logo{ height: 45px; width: auto; }
      .is-home-page .portal-card__desc{ font-size: 16px; line-height: 24px; }
      /* .is-home-page .portal-card__link-text{ display: none; } */

      /* Footer: всё в колонку, без DIGICOM-баннера (нет в figma-export-mobile) */
      .is-home-page .footer{ margin-top: 120px; padding: 60px 0 18px; }
      .is-home-page .footer__inner{ max-width: calc(100% - 24px); gap: 40px; }
      .is-home-page .footer-banner{ display: none; }
      .is-home-page .footer-main{ flex-direction: column; gap: 40px; }
      .is-home-page .footer-left{ width: 100%; gap: 24px; }
      .is-home-page .footer-left .brand{ order: 1; }
      .is-home-page .footer-desc{
        order: 2;
        font-size: 14px;
        font-weight: 500;
        line-height: 20px;
      }
      .is-home-page .footer-social{ order: 3; }
      .is-home-page .footer-social a{ width: 38px; height: 38px; }
      .is-home-page .footer-social img{ width: 38px; height: 38px; }
      .is-home-page .footer-contacts{
        order: 4;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 24px;
        width: 100%;
      }
      .is-home-page .footer-contact a{
        color: #525252;
        font-size: 16px;
        line-height: 24px;
      }
      .is-home-page .footer-cols{
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px 40px;
        width: 100%;
        flex: none;
      }
      .is-home-page .footer-col.subscribe{
        grid-column: 1 / -1;
        width: 100%;
        max-width: none;
        flex: none;
      }
      .is-home-page .footer-bottom{
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding-top: 12px;
      }

      .is-home-page .footer-bottom__links--desktop{ display: none; }

      .is-home-page .footer-bottom__row-mobile{
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 40px;
        width: 100%;
      }

      .is-home-page .footer-bottom__row-mobile a{
        font-size: 12px;
        line-height: 16px;
        color: var(--text-light);
        text-decoration: none;
      }

      .is-home-page .footer-bottom__consent-mobile{
        display: block;
        margin: 0;
        width: 100%;
        font-size: 12px;
        line-height: 16px;
        color: var(--text-light);
        text-decoration: none;
      }

      .is-home-page .footer-bottom__consent-mobile:hover{
        color: var(--primary);
      }
    }

    /* ── Owl Carousel overrides ── */
    /* Скрываем дефолтные кнопки и точки Owl — используем кастомные из макета */
    .is-home-page .owl-nav, .is-home-page .owl-dots{ display: none !important; }

    /* Hero carousel */
    .is-home-page #hero-carousel{
      width: 100%;
      position: relative;
      z-index: 1;
    }
    .is-home-page .hero__slide{
      position: relative;
      overflow: hidden;
    }

    .is-home-page .hero__slide img,
    .is-home-page .hero__slide a,
    .is-home-page .hero__slide > * {
      display: block;
      width: 100%;
      height: auto;
    }

    .is-home-page .hero__slide img {
      height: auto;
    }

    /* ── Hero picture (structured banners) ── */
    .is-home-page .hero__slide picture {
      display: block;
      width: 100%;
    }

    .is-home-page .hero__slide picture img.hero__bg {
      display: block;
      width: 100%;
      max-width: 1920px;
      height: auto;
      margin-inline: auto;
    }

    /* Link wrapper for clickable banners */
    .is-home-page .hero__slide-link {
      display: block;
      width: 100%;
    }

    .is-home-page .hero__slide-link picture {
      display: block;
      width: 100%;
    }

    /* Карточки / лого внутри Owl — занимают всю ячейку трека */
    .owl-carousel .product-card,
    .owl-carousel .logo-card,
    .is-home-page .owl-carousel .promo-card{ width: 100%; height: 420px; }

    .is-home-page .owl-carousel.promo-grid .owl-item{
      min-height: 420px;
    }

    /* Product carousels: одинаковая высота карточек в ряду (полный текст desc) */
    .is-home-page .owl-carousel.cards-grid .owl-stage{
      display: flex;
      align-items: stretch;
    }

    .is-home-page .owl-carousel.cards-grid .owl-item{
      display: flex;
      height: auto;
      align-items: stretch;
    }

    .is-home-page .owl-carousel.cards-grid .owl-item > .product-card{
      height: 100%;
    }

    .is-home-page .owl-carousel .owl-item .logo-card{
      width: 100%;
      height: 148px;
    }

    /* Owl по умолчанию тянет все img на 100% — переопределяем для карточек */
    .is-home-page .owl-carousel .owl-item .product-card__ph img{
      width: 100%;
      height: 100%;
      object-fit: contain;
      object-position: center;
    }
    .is-home-page #news-carousel.owl-carousel .owl-item .product-card__ph{
      align-items: flex-start;
      padding-top: 20px;
      box-sizing: border-box;
    }
    .is-home-page #news-carousel.owl-carousel .owl-item .product-card__ph img{
      height: auto;
      max-height: calc(100% - 20px);
      object-position: top center;
    }
    .is-home-page .owl-carousel .owl-item .product-card__more img{
      width: 24px;
      height: 24px;
      max-width: 24px;
      max-height: 24px;
      flex-shrink: 0;
      object-fit: contain;
      transition: filter 0.2s ease;
    }
    .is-home-page .owl-carousel .owl-item .product-card:hover .product-card__more img{
      filter: brightness(0) saturate(100%) invert(36%) sepia(89%) saturate(1800%) hue-rotate(198deg) brightness(103%);
    }
    .is-home-page .owl-carousel .owl-item .logo-card img{
      width: auto;
      max-width: 100%;
      height: auto;
      max-height: 100%;
      object-fit: contain;
    }

    .is-home-page .owl-carousel .owl-item .logo-card a{
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: 100%;
    }

    /* cards-grid и logos-row — убираем grid когда работает Owl */
    .owl-carousel.owl-loaded.cards-grid,
    .owl-carousel.owl-loaded.logos-row,
    .is-home-page .owl-carousel.owl-loaded.promo-grid{ display: block; }

    /* Owl обрезает трек на .owl-stage-outer; стрелки «Новинок» — за краем container (−28px) */
    .is-home-page .cards-carousel{ overflow: visible; }

    /* box-shadow fix: padding даёт место тени, margin компенсирует сдвиг */
    .is-home-page .owl-carousel.cards-grid .owl-stage-outer{
      margin: -20px;
      padding: 20px;
    }
    /* неактивные слайды скрыты — не «проглядывают» по краям */
    .is-home-page .owl-carousel.cards-grid .owl-item{
      opacity: 0;
      transition: opacity 0.2s;
    }
    .is-home-page .owl-carousel.cards-grid .owl-item.active{
      opacity: 1;
    }
  
/* ==========================================================================
   HomeMenuWidget — mega-menu в header-nav
   ========================================================================== */

.is-home-page .header-nav.home-nav {
    border-top: 1px solid var(--border);
    padding: 18px 0;
    background: var(--white);
    position: relative;
    z-index: 200;
    overflow: visible;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease, border-color 0.3s ease;
    max-height: 120px;
    opacity: 1;
}

.is-home-page .header--compact .header-nav.home-nav {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    border-top-color: transparent;
    overflow: hidden;
    pointer-events: none;
}

.is-home-page .header-nav.home-nav .header-nav__inner {
    position: relative;
    overflow: visible;
}

.is-home-page .home-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
}

.is-home-page .home-nav__item { flex: 0 1 auto; position: static; }

.is-home-page .home-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--nav-text);
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}

.is-home-page .home-nav__link:hover { color: var(--primary); opacity: 1; }

.is-home-page .home-nav__icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: block;
}

.is-home-page .home-nav__chevron {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: block;
}

.is-home-page .home-nav__chevron--desktop {
    margin-left: auto;
}

.is-home-page .home-nav__toggle img {
    width: 18px;
    height: 18px;
    display: block;
}

.is-home-page .home-nav__drawer-head { display: none; }
.is-home-page .home-nav__drawer-contacts { display: none; }

.is-home-page .home-nav-backdrop {
    display: none;
    pointer-events: none;
    visibility: hidden;
}

@media (max-width: 1024px) {
    .is-home-page.is-home-nav-open .home-nav-backdrop {
        display: block;
        pointer-events: auto;
        visibility: visible;
        position: fixed;
        inset: 0;
        z-index: 99;
        background: rgba(17, 24, 39, 0.45);
    }

    html:has(body.is-home-nav-open),
    body.is-home-page.is-home-nav-open {
        overflow: hidden;
        overscroll-behavior: none;
    }

    body.is-home-page.is-home-nav-open {
        position: fixed;
        width: 100%;
        left: 0;
        right: 0;
    }

    body.is-home-page.is-home-nav-open .header-nav.home-nav {
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
    }
}

/* ==========================================================================
   Mega-menu (HomeMenuWidget) — визуальный паритет с MenuWidget
   ========================================================================== */

.is-home-page .home-nav .header-nav__inner {
    position: relative;
    overflow: visible;
}

.is-home-page .home-nav__link-row {
    display: flex;
    align-items: center;
}

.is-home-page .home-nav__chevron {
    display: inline-block;
    width: 12px;
    font-size: 10px;
    color: var(--hp-text-muted);
    margin-left: 2px;
    text-align: center;
    transform-origin: 50% 50%;
    flex-shrink: 0;
    vertical-align: middle;
    transition: transform 0.2s, color 0.2s;
}

.is-home-page .home-nav__item--has-panel:hover .home-nav__chevron,
.is-home-page .home-nav .megamenu:hover .home-nav__chevron {
    color: var(--hp-nav-text-hover);
}

.is-home-page .home-nav__toggle {
    display: none;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    border-radius: var(--hp-radius-xs);
    color: var(--hp-white);
    cursor: pointer;
    margin-left: 4px;
}

.is-home-page .home-nav__toggle:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* Панель dropdown */
.is-home-page .home-mega__panel {
    display: none;
    background: #fff;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
    border-top: 2px solid #0586ee;
}

/* Mega «Продукция» — структура как .main-menu .megamenu */
.is-home-page .home-nav .megamenu {
    position: static;
}

.is-home-page .home-nav .megamenu .menu-wrapper {
    display: none;
    background: #fff;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
    border-top: 2px solid #0586ee;
    box-sizing: border-box;
    margin: 0;
}

@media (min-width: 1025px) {
    .is-home-page .home-mega__panel {
        position: absolute;
        top: 100%;
        z-index: 210;
    }

    .is-home-page .home-nav .megamenu .menu-wrapper {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: auto;
        z-index: 210;
        padding: 10px 15px 15px;
    }

    /* Невидимый «мост» — без разрыва между nav и панелью (hover не моргает) */
    .is-home-page .home-nav .megamenu .menu-wrapper::before {
        content: '';
        position: absolute;
        top: -6px;
        left: 0;
        right: 0;
        height: 6px;
    }

    .is-home-page .home-nav .megamenu:hover .menu-wrapper {
        display: block;
    }

    .is-home-page .home-nav__item--dropdown {
        position: relative;
    }

    .is-home-page .home-nav__item--dropdown .home-mega__panel {
        left: 0;
        min-width: 230px;
        padding: 0;
    }

    .is-home-page .home-nav__item--has-panel:hover .home-mega__panel {
        display: block;
    }

    .is-home-page .home-nav__item--has-panel:hover .home-nav__chevron,
    .is-home-page .home-nav .megamenu:hover .home-nav__chevron {
        transform: rotate(180deg);
        color: var(--hp-nav-text-hover);
    }
}

/* Dropdown (Решения, Системы, …) — как .main-menu ul ul */
.is-home-page .home-mega__submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 230px;
}

.is-home-page .home-mega__submenu li {
    display: block;
    height: auto;
    padding: 0;
}

.is-home-page .home-mega__submenu li a {
    display: block;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #ededed;
    padding: 7px 10px;
    text-decoration: none;
    white-space: nowrap;
}

.is-home-page .home-mega__submenu li:last-child a {
    border-bottom: none;
}

.is-home-page .home-mega__submenu li a:hover {
    background-color: #f5f5f5;
    color: #333;
}

/* Каталог — flyout как MenuWidget */
.is-home-page .home-nav .menu-catalog-children {
    display: none;
}

.is-home-page .home-nav .menu-wrapper h3 {
    border-bottom: 2px solid #ededed;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 4px;
    padding-bottom: 6px;
    text-transform: uppercase;
}

.is-home-page .home-nav .menu-wrapper h3 a {
    padding: 0;
    border: none;
    color: var(--hp-blue);
    text-decoration: none;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.is-home-page .home-nav .menu-catalog > ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.is-home-page .home-nav .menu-catalog > ul > li {
    display: block;
    position: relative;
}

.is-home-page .home-nav .menu-catalog ul li a {
    font-weight: 400;
    text-transform: none;
    padding: 5px;
    color: #333;
    text-decoration: none;
    display: block;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.35;
    opacity: 1;
}

/* 1-й уровень каталога (левая колонка) */
.is-home-page .home-nav .menu-catalog > ul > li > a {
    font-size: 15px;
    padding: 5px 8px 5px 5px;
}

.is-home-page .home-nav .menu-catalog > ul > li > a:hover {
    color: #333;
    opacity: 1;
    background-color: #f5f5f5;
}

.is-home-page .home-nav .menu-catalog ul ul a {
    font-size: 14px;
}

.is-home-page .home-nav .main-catalog-sub {
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
}

.is-home-page .home-nav .main-catalog-sub li {
    background: url(/views/tiandy/img/point_dis.gif) 6px 12px no-repeat;
    padding-left: 15px;
}

.is-home-page .home-nav .main-catalog-sub li a {
    padding: 2px 10px !important;
    background: #fff;
    font-size: 14px;
}

.is-home-page .home-nav .home-mega__group {
    margin-bottom: 5px;
}

@media (min-width: 1025px) {
    .is-home-page .home-nav .menu-catalog-children {
        background: #fff;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 295px;
        right: 0;
        width: auto;
        padding: 20px 20px 0;
        display: none;
        transition: all 0.3s ease;
        box-sizing: border-box;
        overflow-y: auto;
    }

    .is-home-page .home-nav .menu-catalog-children .home-mega__columns {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        min-height: 100%;
    }

    .is-home-page .home-nav .menu-catalog-children .home-mega__col {
        float: left;
        width: 50%;
        min-height: 1px;
        padding-left: 10px;
        padding-right: 10px;
        box-sizing: border-box;
    }

    .is-home-page .home-nav .menu-catalog-children .home-mega__columns::after {
        content: '';
        display: table;
        clear: both;
    }

    .is-home-page .home-nav .menu-catalog-children h3 a {
        color: var(--hp-blue);
        white-space: normal;
        font-size: 13px;
        font-weight: 600;
        line-height: 1.25;
        padding: 0;
    }

    .is-home-page .home-nav .menu-catalog-children h3 {
        padding: 0 0 6px !important;
        margin: 0 0 4px !important;
        border: 0 !important;
        border-bottom: 2px solid #ededed !important;
        font-size: 13px;
        line-height: 1.25;
    }

    .is-home-page .home-nav .megamenu .menu-wrapper.menu-catalog {
        width: 100%;
        height: calc(100vh - 90px);
        overflow-y: auto;
    }

    .is-home-page .home-nav .menu-catalog {
        z-index: 1010;
    }

    .is-home-page .home-nav .menu-catalog > ul {
        border-right: 1px solid #f0f0f0;
        padding-right: 9px !important;
        width: 295px;
        height: 100%;
        overflow-y: auto;
    }

    .is-home-page .home-nav .menu-catalog ul a {
        font-size: 15px;
        white-space: normal;
    }

    .is-home-page .home-nav .menu-catalog ul li,
    .is-home-page .home-nav .menu-catalog ul li a {
        position: initial;
    }

    .is-home-page .home-nav .menu-catalog > ul > li:hover .menu-catalog-children {
        display: block;
    }

    .is-home-page .home-nav .menu-catalog-children ul {
        margin: 0 !important;
    }

    .is-home-page .home-nav .menu-catalog-children li a {
        padding: 2px 10px !important;
    }
}

/* Drawer (≤1024): аккордеон вместо hover-flyout */
@media (max-width: 1024px) {
    .is-home-page .home-nav__chevron--desktop {
        display: none;
    }

    .is-home-page .home-nav__toggle {
        display: flex;
        flex-shrink: 0;
        align-items: center;
        justify-content: center;
        width: 48px;
        min-height: 52px;
        margin-left: 0;
        border-left: 1px solid var(--hp-border-light);
        border-radius: 0;
    }

    .is-home-page .home-nav__link-row {
        display: flex;
        align-items: stretch;
        width: 100%;
        border-bottom: 1px solid var(--hp-border-light);
    }

    .is-home-page .home-nav__link-row .home-nav__link {
        flex: 1 1 auto;
        display: flex;
        align-items: center;
        gap: 6px;
        min-width: 0;
        border-bottom: none;
        padding: 14px 16px;
        box-sizing: border-box;
    }

    .is-home-page .home-nav__link-row .home-nav__chevron {
        transition: transform 0.2s ease;
    }

    .is-home-page .home-nav__item--has-panel.is-open .home-nav__chevron,
    .is-home-page .home-nav .megamenu.is-open .home-nav__chevron {
        transform: rotate(180deg);
    }

    .is-home-page .home-nav .megamenu .menu-wrapper {
        display: none;
        position: static;
        border-top: none;
        box-shadow: none;
        background: var(--hp-bg-soft);
        padding: 0;
        min-height: 0;
    }

    .is-home-page .home-nav .megamenu.is-open .menu-wrapper {
        display: block;
    }

    .is-home-page .home-mega__panel {
        display: none;
        position: static;
        border-top: none;
        box-shadow: none;
        background: var(--hp-bg-soft);
        padding: 0;
    }

    .is-home-page .home-nav__item--has-panel.is-open .home-mega__panel {
        display: block;
    }

    .is-home-page .home-nav .menu-catalog {
        float: none;
        position: static;
    }

    .is-home-page .home-nav .menu-catalog > ul {
        width: auto;
        border-right: none;
        padding-right: 0 !important;
    }

    .is-home-page .home-nav .menu-catalog > ul > li > a {
        font-size: 14px !important;
        padding: 12px 20px !important;
        color: var(--hp-text);
        border-bottom: 1px solid var(--hp-border-light);
    }

    .is-home-page .home-nav .menu-catalog > ul > li > a:hover {
        background: var(--hp-bg-soft);
        color: var(--hp-nav-text-hover);
    }

    .is-home-page .home-nav .menu-catalog-children {
        display: none !important;
        position: static;
        width: auto;
        top: auto;
        bottom: auto;
        left: auto;
        right: auto;
        padding: 4px 0 8px;
        background: var(--hp-bg-soft);
        overflow: visible;
    }

    .is-home-page .home-nav .menu-catalog > ul > li.is-open > .menu-catalog-children {
        display: block !important;
    }

    .is-home-page .home-nav .menu-catalog-children .home-mega__columns {
        min-height: 0;
        margin: 0;
    }

    .is-home-page .home-nav .menu-catalog-children .home-mega__col {
        float: none;
        width: 100%;
        padding: 0;
    }

    .is-home-page .home-nav .menu-catalog-children .home-mega__group {
        margin-bottom: 8px;
        padding: 0 12px 0 20px;
    }

    .is-home-page .home-nav .menu-catalog-children h3 {
        font-size: 12px !important;
        line-height: 1.3;
        margin: 0 0 4px !important;
        padding: 0 0 4px !important;
        border-bottom: 1px solid var(--hp-border-light) !important;
        text-transform: none;
    }

    .is-home-page .home-nav .menu-catalog-children h3 a {
        color: var(--hp-text) !important;
        font-size: 12px !important;
        font-weight: 600;
        padding: 4px 0 !important;
    }

    .is-home-page .home-nav .menu-catalog-children .main-catalog-sub {
        margin: 0 0 8px;
        padding: 0 0 0 8px;
    }

    .is-home-page .home-nav .menu-catalog-children .main-catalog-sub li a {
        font-size: 13px !important;
        color: var(--hp-text-secondary) !important;
        padding: 6px 0 !important;
        border-bottom: none;
        background: transparent !important;
    }

    .is-home-page .home-nav .menu-catalog-children .main-catalog-sub li {
        background: none;
        padding-left: 0;
    }

    .is-home-page .home-mega__submenu li a {
        padding: 10px 28px;
        font-size: 13px;
        color: var(--text-muted);
        border-bottom: 1px solid var(--border);
        background: transparent;
        white-space: normal;
    }

    .is-home-page .home-mega__submenu li a:hover {
        background: var(--hp-bg-soft);
        color: var(--hp-nav-text-hover);
    }

    .is-home-page .home-nav__toggle {
        background: #e8f4fd;
        color: var(--nav-text);
    }

    .is-home-page .home-nav__toggle:hover {
        background: #dceefc;
        color: var(--primary);
    }
}

/* Mobile drawer для HomeMenuWidget */
@media (max-width: 1024px) {
    .is-home-page .header-nav.home-nav {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        z-index: 999;
        width: 100vw;
        height: 100vh;
        max-height: none;
        overflow-x: hidden;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.2s ease;
        background: var(--white);
        box-shadow: -2px 0 12px rgba(17, 24, 39, 0.12);
        border-top: none;
        padding: 0;
        opacity: 1;
        pointer-events: none;
    }

    .is-home-page .header--compact .header-nav.home-nav {
        max-height: none;
        padding: 0;
        opacity: 1;
        overflow-x: hidden;
        overflow-y: auto;
        border-top-color: transparent;
    }

    .is-home-page.is-home-nav-open .header-nav.home-nav {
        display: flex;
        flex-direction: column;
        transform: translateX(0);
        z-index: 1001;
        pointer-events: auto;
    }

    .is-home-page .home-nav__drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 16px 12px;
        border-bottom: 1px solid var(--border);
        flex-shrink: 0;
    }

    .is-home-page .home-nav__drawer-close {
        position: static;
        flex-shrink: 0;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 50%;
        background: transparent;
        color: var(--text);
        cursor: pointer;
        padding: 0;
    }

    .is-home-page .home-nav > .container {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
        width: 100%;
        max-width: none;
        padding: 0;
    }

    .is-home-page .home-nav .header-nav__inner {
        flex: 0 0 auto;
    }

    .is-home-page .home-nav__drawer-contacts {
        display: block;
        padding: 20px 16px 40px;
        border-top: 1px solid var(--border);
        margin-top: auto;
        flex-shrink: 0;
    }

    .is-home-page .home-nav__drawer-contacts-title {
        font-size: 13px;
        font-weight: 600;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.04em;
        margin: 0 0 12px;
    }

    .is-home-page .home-nav__drawer-contacts-list {
        list-style: none;
        margin: 0 0 16px;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .is-home-page .home-nav__drawer-contacts-list li {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
    }

    .is-home-page .home-nav__drawer-contacts-list li svg {
        flex-shrink: 0;
        color: var(--text-muted);
        width: 20px;
        height: 20px;
    }

    .is-home-page .home-nav__drawer-contacts-list a {
        color: var(--text);
        text-decoration: none;
    }

    .is-home-page .home-nav__drawer-contacts-list a:hover {
        color: var(--primary);
    }

    .is-home-page .home-nav__drawer-social {
        display: flex;
        gap: 12px;
    }

    .is-home-page .home-nav__drawer-social a {
        display: block;
        width: 32px;
        height: 32px;
    }

    .is-home-page .home-nav__drawer-social img {
        width: 32px;
        height: 32px;
        display: block;
    }

    .is-home-page .home-nav .header-nav__inner .home-nav__list {
        width: 100%;
    }

    .is-home-page .home-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0 0 24px;
    }

    .is-home-page .home-nav__item {
        width: 100%;
    }

    .is-home-page .home-nav__list {
        flex-wrap: nowrap;
    }

    .is-home-page .home-nav__item {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .is-home-page .home-nav__link-row {
        flex-wrap: nowrap;
        min-width: 0;
    }

    .is-home-page .home-nav__link-row .home-nav__link {
        display: flex;
        flex: 1 1 auto;
        min-width: 0;
        box-sizing: border-box;
        white-space: normal;
    }

    .is-home-page .home-nav__item > .home-nav__link {
        display: flex;
        width: 100%;
        box-sizing: border-box;
        white-space: normal;
        padding: 14px 16px;
    }
}

.is-home-page .header-burger {
    border: 0;
    background: transparent;
    padding: 0;
}

.is-home-page .header-burger img {
    display: block;
}

.is-home-page .brand__logo {
    text-decoration: none;
}

.is-home-page .alert {
    margin: 0;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 14px;
}

.is-home-page .alert-success {
    color: #155724;
    background: #d4edda;
    border-color: #c3e6cb;
}

.is-home-page .alert-danger,
.is-home-page .alert-error {
    color: #721c24;
    background: #f8d7da;
    border-color: #f5c6cb;
}

.is-home-page .alert-warning {
    color: #856404;
    background: #fff3cd;
    border-color: #ffeeba;
}

.is-home-page .alert-info {
    color: #0c5460;
    background: #d1ecf1;
    border-color: #bee5eb;
}

.is-home-page .page > .home-alert-wrap {
    margin-top: 24px;
}

.is-home-page .home-alert-wrap:empty {
    display: none;
    margin: 0;
    padding: 0;
}

/* ── Внутренние страницы: восстановить Bootstrap-контейнеры в контентной области ── */
body.is-home-page.boxed {
    background: #fff;
}

.is-home-page.boxed main.page-content.inner-page {
    background: #fff;
    flex: 1 0 auto;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 24px 0 0;
    box-sizing: border-box;
}

/* Один горизонтальный контейнер — как у header/footer, без двойных отступов */
.is-home-page.boxed .inner-page > .container.page-wrapper {
    max-width: min(1440px, calc(100% - 80px));
    padding-left: 0;
    padding-right: 0;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    box-sizing: border-box;
}

/* Те же боковые поля, что у header/footer на планшете и мобиле */
@media (max-width: 1024px) {
    .is-home-page.boxed .inner-page > .container.page-wrapper {
        max-width: calc(100% - 80px);
    }
}

@media (max-width: 768px) {
    .is-home-page.boxed main.page-content.inner-page {
        padding-top: 16px;
    }

    .is-home-page.boxed .inner-page > .container.page-wrapper {
        max-width: calc(100% - 24px);
    }

    /* Bootstrap row/col дают +15px — убираем лишний inset на мобиле */
    .is-home-page.boxed .inner-page > .container.page-wrapper > .row {
        margin-left: 0;
        margin-right: 0;
    }

    .is-home-page.boxed .inner-page > .container.page-wrapper > .row > [class*="col-"] {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Пустая левая колонка (нет пунктов меню) — контент на всю ширину */
.is-home-page.boxed .inner-page > .container.page-wrapper > .row > .col-md-3.left-bar:not(:has(a)) {
    display: none;
}

.is-home-page.boxed .inner-page > .container.page-wrapper > .row > .col-md-3.left-bar:not(:has(a)) + .content {
    width: 100%;
    float: left;
}

/* Предотвратить выход контента за пределы колонок */
.is-home-page.boxed .inner-page [class*="col-"] {
    min-width: 0;
}

.is-home-page.boxed .inner-page img {
    max-width: 100%;
    height: auto;
}

.is-home-page.boxed .inner-page table {
    max-width: 100%;
    word-break: break-word;
}

/* Убрать большие отступы главной между секциями */
.is-home-page.boxed .inner-page > * + * { margin-top: 0; }

/* Хлебные крошки на внутренних страницах */
.is-home-page.boxed .inner-page .breadcrumb {
    margin-top: 0;
    margin-bottom: 0;
    padding: 14px 0;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    list-style: none;
}

/* Контентная область внутренних страниц — явно белый фон */
.is-home-page.boxed .inner-page .content {
    background: #fff;
    padding-top: 0;
    padding-bottom: 0;
}

/* Не даём legacy extra.css (margin: 0 -18px) ломать сетку на узких экранах */
@media (max-width: 500px) {
    .is-home-page.boxed .inner-page .breadcrumb,
    .is-home-page.boxed .inner-page .content {
        margin-left: 0;
        margin-right: 0;
    }
}

.is-home-page.boxed .inner-page .page-header {
    margin-top: 0;
}

/* Каталог: сетка карточек и подкатегорий на всю ширину content */
.is-home-page.boxed .inner-page .catalog-category__grid,
.is-home-page.boxed .inner-page .catalog-products__grid {
    display: grid;
    gap: 20px;
    width: 100%;
    margin: 0;
}

.is-home-page.boxed .inner-page .catalog-category__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.is-home-page.boxed .inner-page .catalog-products__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.is-home-page.boxed .inner-page .catalog-category__item,
.is-home-page.boxed .inner-page .catalog-products__item {
    min-width: 0;
}

.is-home-page.boxed .inner-page .catalog-category__item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
}

.is-home-page.boxed .inner-page .catalog-category__image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.is-home-page.boxed .inner-page .catalog-category__image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.is-home-page.boxed .inner-page .catalog-category__image--placeholder {
    pointer-events: none;
}

.is-home-page.boxed .inner-page .catalog-category__title {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 600;
}

.is-home-page.boxed .inner-page .catalog-category__title a {
    color: #2b2b2b;
    text-decoration: none;
}

.is-home-page.boxed .inner-page .catalog-category__title a:hover {
    color: #0586ee;
}

.is-home-page.boxed .inner-page .catalog-category__description {
    color: #525252;
    font-size: 14px;
    line-height: 1.5;
}

.is-home-page.boxed .inner-page .catalog-category__description.is-collapsible {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
}

.is-home-page.boxed .inner-page .catalog-category__description-text {
    min-width: 0;
    width: 100%;
}

.is-home-page.boxed .inner-page .catalog-category__description.is-collapsed .catalog-category__description-text {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.is-home-page.boxed .inner-page .catalog-category__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
    color: #0586ee;
    cursor: pointer;
}

.is-home-page.boxed .inner-page .catalog-category__more[hidden] {
    display: none;
}

.is-home-page.boxed .inner-page .catalog-category__more:hover,
.is-home-page.boxed .inner-page .catalog-category__more:focus-visible {
    color: #046fcc;
}

.is-home-page.boxed .inner-page .catalog-category__more-chevron {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.is-home-page.boxed .inner-page .catalog-category__description.is-expanded .catalog-category__more-chevron {
    transform: rotate(180deg);
}

.is-home-page.boxed .inner-page .catalog-category__children {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
}

.is-home-page.boxed .inner-page .catalog-category__children li {
    margin: 0 0 6px;
    padding: 0;
    line-height: 1.4;
    list-style: disc;
}

.is-home-page.boxed .inner-page .catalog-category__children a {
    color: #525252;
    text-decoration: none;
}

.is-home-page.boxed .inner-page .catalog-category__children a:hover {
    color: #0586ee;
}

.is-home-page.boxed .inner-page .catalog-products .default,
.is-home-page.boxed .inner-page .catalog-products .catalog-products__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.is-home-page.boxed .inner-page .catalog-products .catalog-products__link:hover,
.is-home-page.boxed .inner-page .catalog-products .catalog-products__link:focus {
    border-color: #0586ee;
    box-shadow: 0 2px 8px rgba(5, 134, 238, 0.12);
    color: inherit;
    text-decoration: none;
}

.is-home-page.boxed .inner-page .catalog-products .default .image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    margin: 0;
    padding: 12px;
    box-sizing: border-box;
    box-shadow: none;
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
}

.is-home-page.boxed .inner-page .catalog-products .default .image img {
    display: block;
    max-width: 100%;
    max-height: 196px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.is-home-page.boxed .inner-page .catalog-products .default .description {
    flex: 1 1 auto;
    padding: 12px 14px;
}

.is-home-page.boxed .inner-page .catalog-products .catalog-products__title {
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    color: #2b2b2b;
}

.is-home-page.boxed .inner-page .catalog-products .catalog-products__link:hover .catalog-products__title {
    color: #0586ee;
}

.is-home-page.boxed .inner-page .catalog-products .default .description span {
    color: #818181;
}

@media (max-width: 991px) {
    .is-home-page.boxed .inner-page .catalog-category__grid,
    .is-home-page.boxed .inner-page .catalog-products__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .is-home-page.boxed .inner-page .catalog-category__grid,
    .is-home-page.boxed .inner-page .catalog-products__grid {
        grid-template-columns: 1fr;
    }
}

/* Footer: убрать большой margin-top главной на внутренних */
.is-home-page.boxed .footer { margin-top: 0; }

/* Вкладки товара: активная без жирного (main.min.css ставит 700) */
.is-home-page.boxed .inner-page .nav-tabs > li.active > a,
.is-home-page.boxed .inner-page .nav-tabs > li.active > a:focus,
.is-home-page.boxed .inner-page .nav-tabs > li.active > a:hover {
    font-weight: 500;
}

/* ── Восстановление списков на внутренних страницах ──────────────────────────
   Глобальный reset .is-home-page ul обнуляет list-style/padding.
   Маркеры через ::before — не обрезаются min-width:0 на .col-* и overflow.
   ──────────────────────────────────────────────────────────────────────────── */

.is-home-page.boxed .inner-page .content,
.is-home-page.boxed .inner-page .content .push-down-30,
.is-home-page.boxed .inner-page .tab-content,
.is-home-page.boxed .inner-page .tab-pane,
.is-home-page.boxed .inner-page .mainpage,
.is-home-page.boxed .inner-page .news-view,
.is-home-page.boxed .inner-page .desc,
.is-home-page.boxed .inner-page .category-description {
    overflow: visible;
}

.is-home-page.boxed .inner-page .news-view table td {
    overflow: visible;
    vertical-align: top;
}

/* Контейнеры списков */
.is-home-page.boxed .inner-page .tab-content ul:not(.nav):not(.breadcrumb):not(.pagination),
.is-home-page.boxed .inner-page .tab-pane ul,
.is-home-page.boxed .inner-page .mainpage ul,
.is-home-page.boxed .inner-page .news-view ul,
.is-home-page.boxed .inner-page .col-md-9.content ul:not(.nav):not(.breadcrumb):not(.pagination):not(.catalog-category__children),
.is-home-page.boxed .inner-page .apps-list ul,
.is-home-page.boxed .inner-page .desc ul,
.is-home-page.boxed .inner-page .category-description ul {
    list-style: none;
    padding-left: 0;
    margin: 0 0 12px;
}

/* Нумерованные списки */
.is-home-page.boxed .inner-page .tab-content ol,
.is-home-page.boxed .inner-page .tab-pane ol,
.is-home-page.boxed .inner-page .mainpage ol,
.is-home-page.boxed .inner-page .news-view ol,
.is-home-page.boxed .inner-page .col-md-9.content ol:not(.breadcrumb),
.is-home-page.boxed .inner-page .desc ol,
.is-home-page.boxed .inner-page .category-description ol {
    list-style-type: decimal;
    list-style-position: inside;
    padding-left: 0;
    margin: 0 0 12px 1.2em;
}

/* Вложенные списки */
.is-home-page.boxed .inner-page .tab-content ul ul,
.is-home-page.boxed .inner-page .tab-pane ul ul,
.is-home-page.boxed .inner-page .mainpage ul ul,
.is-home-page.boxed .inner-page .news-view ul ul,
.is-home-page.boxed .inner-page .col-md-9.content ul ul,
.is-home-page.boxed .inner-page .desc ul ul,
.is-home-page.boxed .inner-page .category-description ul ul,
.is-home-page.boxed .inner-page .tab-content ol ol,
.is-home-page.boxed .inner-page .tab-pane ol ol,
.is-home-page.boxed .inner-page .mainpage ol ol,
.is-home-page.boxed .inner-page .news-view ol ol,
.is-home-page.boxed .inner-page .col-md-9.content ol ol,
.is-home-page.boxed .inner-page .desc ol ol,
.is-home-page.boxed .inner-page .category-description ol ol {
    margin-top: 4px;
    margin-bottom: 0;
}

/* Маркеры li — контент */
.is-home-page.boxed .inner-page .tab-content ul:not(.nav):not(.breadcrumb):not(.pagination) > li,
.is-home-page.boxed .inner-page .tab-pane ul > li,
.is-home-page.boxed .inner-page .mainpage ul > li,
.is-home-page.boxed .inner-page .news-view ul > li,
.is-home-page.boxed .inner-page .col-md-9.content ul:not(.nav):not(.breadcrumb):not(.pagination):not(.catalog-category__children) > li,
.is-home-page.boxed .inner-page .apps-list ul > li,
.is-home-page.boxed .inner-page .desc ul > li,
.is-home-page.boxed .inner-page .category-description ul > li,
.is-home-page.boxed .inner-page .tab-content ul ul > li,
.is-home-page.boxed .inner-page .tab-pane ul ul > li,
.is-home-page.boxed .inner-page .mainpage ul ul > li,
.is-home-page.boxed .inner-page .news-view ul ul > li,
.is-home-page.boxed .inner-page .col-md-9.content ul ul > li,
.is-home-page.boxed .inner-page .desc ul ul > li,
.is-home-page.boxed .inner-page .category-description ul ul > li {
    display: block;
    list-style: none;
    position: relative;
    padding: 1px 0 1px 16px;
    line-height: 20px;
}

.is-home-page.boxed .inner-page .tab-content ul:not(.nav):not(.breadcrumb):not(.pagination) > li::before,
.is-home-page.boxed .inner-page .tab-pane ul > li::before,
.is-home-page.boxed .inner-page .mainpage ul > li::before,
.is-home-page.boxed .inner-page .news-view ul > li::before,
.is-home-page.boxed .inner-page .col-md-9.content ul:not(.nav):not(.breadcrumb):not(.pagination):not(.catalog-category__children) > li::before,
.is-home-page.boxed .inner-page .apps-list ul > li::before,
.is-home-page.boxed .inner-page .desc ul > li::before,
.is-home-page.boxed .inner-page .category-description ul > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 6px;
    height: 6px;
    margin-top: -3px;
    border-radius: 50%;
    background-color: #0586ee;
}

.is-home-page.boxed .inner-page .tab-content ul ul > li::before,
.is-home-page.boxed .inner-page .tab-pane ul ul > li::before,
.is-home-page.boxed .inner-page .mainpage ul ul > li::before,
.is-home-page.boxed .inner-page .news-view ul ul > li::before,
.is-home-page.boxed .inner-page .col-md-9.content ul ul > li::before,
.is-home-page.boxed .inner-page .desc ul ul > li::before,
.is-home-page.boxed .inner-page .category-description ul ul > li::before {
    background-color: #818181;
}

/* Маркеры li — сайдбар */
.is-home-page.boxed .inner-page .left-bar ul > li {
    display: block;
    list-style: none;
    position: relative;
    padding-left: 16px;
    line-height: 20px;
}

.is-home-page.boxed .inner-page .left-bar ul > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 6px;
    height: 6px;
    margin-top: -3px;
    border-radius: 50%;
    background-color: #818181;
}

/* Навигационные списки — без маркеров (не переопределять) */
.is-home-page.boxed .inner-page .nav li,
.is-home-page.boxed .inner-page .breadcrumb li,
.is-home-page.boxed .inner-page .pagination li {
    display: list-item;
    list-style: none;
    padding: 0;
}

/* Фото товара: блок и изображение на всю ширину колонки контента */
.is-home-page.boxed .inner-page .image-wrapper {
    width: 100%;
    min-height: 0;
}

.is-home-page.boxed .inner-page .image-wrapper.overlay-fade-in.photo-box {
    display: block;
    min-height: 220px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.is-home-page.boxed .inner-page .image-wrapper > a {
    display: block;
    width: 100%;
    position: relative;
}

.is-home-page.boxed .inner-page .image-wrapper.overlay-fade-in.photo-box > a {
    min-height: 220px;
}

.is-home-page.boxed .inner-page .image-wrapper.overlay-fade-in.photo-box > a > img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    transition: transform 0.2s ease;
}

.is-home-page.boxed .inner-page .image-wrapper.overlay-fade-in.photo-box .image-overlay-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    background-color: rgba(43, 43, 43, 0.35);
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.is-home-page.boxed .inner-page .image-wrapper.overlay-fade-in.photo-box:hover .image-overlay-content,
.is-home-page.boxed .inner-page .image-wrapper.overlay-fade-in.photo-box:focus-within .image-overlay-content {
    opacity: 1;
}

.is-home-page.boxed .inner-page .image-wrapper.overlay-fade-in.photo-box:hover > a > img,
.is-home-page.boxed .inner-page .image-wrapper.overlay-fade-in.photo-box:focus-within > a > img {
    transform: scale(1.02);
}

.is-home-page.boxed .inner-page .image-wrapper.overlay-fade-in.photo-box .photo-box__zoom-icon {
    position: static;
    top: auto;
    left: auto;
    width: 40px;
    height: 40px;
    margin: 0;
    transform: none;
    color: #fff;
    opacity: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.is-home-page.boxed .inner-page .product-intro {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px 30px;
    width: 100%;
    max-width: 100%;
}

.is-home-page.boxed .inner-page .product-intro__media {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
    min-width: 0;
}

/* Фото в шапке карточки товара — не выше 420px, пропорции сохраняются */
.is-home-page.boxed .inner-page .product-intro .image-wrapper.overlay-fade-in.photo-box {
    max-height: 420px;
}

.is-home-page.boxed .inner-page .product-intro .image-wrapper.overlay-fade-in.photo-box > a {
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 420px;
    min-height: 0;
}

.is-home-page.boxed .inner-page .product-intro .image-wrapper.overlay-fade-in.photo-box > a > img {
    width: auto;
    max-width: 100%;
    max-height: 420px;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

.is-home-page.boxed .inner-page .product-intro__body {
    flex: 1 1 0;
    min-width: 0;
    color: #525252;
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 767px) {
    .is-home-page.boxed .inner-page .product-intro__media,
    .is-home-page.boxed .inner-page .product-intro__body {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* Страница решения: контент и боковая колонка */
.is-home-page.boxed .inner-page .app-detail__content,
.is-home-page.boxed .inner-page .app-detail__sidebar {
    min-width: 0;
}

.is-home-page.boxed .inner-page .app-detail__sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.is-home-page.boxed .inner-page .app-sidebar-card {
    padding: 16px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
}

.is-home-page.boxed .inner-page .app-sidebar-card__title {
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 600;
    color: #2b2b2b;
}

.is-home-page.boxed .inner-page .app-sidebar-card__scheme {
    border-radius: 8px;
    overflow: hidden;
}

.is-home-page.boxed .inner-page .app-sidebar-card__hint {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.4;
    color: #818181;
    text-align: center;
}

.is-home-page.boxed .inner-page .app-sidebar-products {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.is-home-page.boxed .inner-page .app-sidebar-product {
    margin: 0;
    padding: 0;
    list-style: none;
}

.is-home-page.boxed .inner-page .app-sidebar-product__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    color: #2b2b2b;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.is-home-page.boxed .inner-page .app-sidebar-product__link:hover,
.is-home-page.boxed .inner-page .app-sidebar-product__link:focus {
    border-color: #0586ee;
    box-shadow: 0 2px 8px rgba(5, 134, 238, 0.12);
    color: #0586ee;
}

.is-home-page.boxed .inner-page .app-sidebar-product__image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 120px;
}

.is-home-page.boxed .inner-page .app-sidebar-product__image img {
    max-width: 160px;
    max-height: 160px;
    width: auto;
    height: auto;
}

.is-home-page.boxed .inner-page .app-sidebar-product__title {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
    text-align: center;
}

/* Аккордеон: шаблоны «Клиенты»/«Партнёры» и panel-group в HTML контента CMS */
.is-home-page.boxed .inner-page .content-accordion,
.is-home-page.boxed .inner-page .mainpage .panel-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
}

.is-home-page.boxed .inner-page .content-accordion .panel,
.is-home-page.boxed .inner-page .mainpage .panel-group .panel {
    margin: 0;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
}

.is-home-page.boxed .inner-page .content-accordion .panel + .panel,
.is-home-page.boxed .inner-page .mainpage .panel-group .panel + .panel {
    margin-top: 0;
}

.is-home-page.boxed .inner-page .content-accordion .panel-heading,
.is-home-page.boxed .inner-page .mainpage .panel-group .panel-heading {
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 8px 8px 0 0;
}

.is-home-page.boxed .inner-page .content-accordion .panel-heading + .panel-collapse > .panel-body,
.is-home-page.boxed .inner-page .mainpage .panel-group .panel-heading + .panel-collapse > .panel-body {
    border-top: 1px solid #e5e5e5;
}

.is-home-page.boxed .inner-page .content-accordion .panel-title,
.is-home-page.boxed .inner-page .mainpage .panel-group .panel-title {
    margin: 0;
    font-size: 16px;
    line-height: 1.3;
}

.is-home-page.boxed .inner-page .content-accordion .panel-title > a,
.is-home-page.boxed .inner-page .mainpage .panel-group .panel-title > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    color: #2b2b2b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease;
}

.is-home-page.boxed .inner-page .content-accordion .panel-title > a:hover,
.is-home-page.boxed .inner-page .content-accordion .panel-title > a:focus,
.is-home-page.boxed .inner-page .mainpage .panel-group .panel-title > a:hover,
.is-home-page.boxed .inner-page .mainpage .panel-group .panel-title > a:focus {
    color: #0586ee;
    background: transparent;
}

.is-home-page.boxed .inner-page .content-accordion .panel-title > a:not(.collapsed),
.is-home-page.boxed .inner-page .mainpage .panel-group .panel-title > a:not(.collapsed) {
    color: #0586ee;
}

.is-home-page.boxed .inner-page .content-accordion__toggle {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
}

.is-home-page.boxed .inner-page .content-accordion__chevron {
    display: block;
    transition: transform 0.2s ease;
}

.is-home-page.boxed .inner-page .content-accordion .panel-title > a:not(.collapsed) .content-accordion__chevron {
    transform: rotate(180deg);
}

/* Legacy Bootstrap-разметка в контенте CMS (glyphicon вместо nav-arrow) */
.is-home-page.boxed .inner-page .mainpage .panel-group:not(.content-accordion) .panel-title a small {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
}

.is-home-page.boxed .inner-page .mainpage .panel-group:not(.content-accordion) .panel-title a .glyphicon {
    display: none;
}

.is-home-page.boxed .inner-page .mainpage .panel-group:not(.content-accordion) .panel-title a small::after {
    content: "";
    width: 18px;
    height: 18px;
    background: url(/img/home/nav-arrow.svg) no-repeat center / contain;
    transition: transform 0.2s ease;
}

.is-home-page.boxed .inner-page .mainpage .panel-group:not(.content-accordion) .panel-title > a:not(.collapsed) small::after {
    transform: rotate(180deg);
}

.is-home-page.boxed .inner-page .content-accordion .panel-body,
.is-home-page.boxed .inner-page .mainpage .panel-group .panel-body {
    padding: 16px;
    color: #525252;
    font-size: 14px;
    line-height: 1.5;
}

.is-home-page.boxed .inner-page .content-accordion__entry {
    margin: 0;
}

.is-home-page.boxed .inner-page .content-accordion__entry + .content-accordion__entry,
.is-home-page.boxed .inner-page .mainpage .panel-group .panel-body h4:not(:first-child) {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.is-home-page.boxed .inner-page .content-accordion__entry-title,
.is-home-page.boxed .inner-page .mainpage .panel-group .panel-body h4 {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 600;
    color: #2b2b2b;
}

.is-home-page.boxed .inner-page .content-accordion__entry-row,
.is-home-page.boxed .inner-page .mainpage .panel-group .panel-body > div {
    margin: 0 0 8px;
}

.is-home-page.boxed .inner-page .content-accordion__entry-row:last-child,
.is-home-page.boxed .inner-page .mainpage .panel-group .panel-body > div:last-child {
    margin-bottom: 0;
}

.is-home-page.boxed .inner-page .content-accordion__entry-row strong,
.is-home-page.boxed .inner-page .mainpage .panel-group .panel-body b,
.is-home-page.boxed .inner-page .mainpage .panel-group .panel-body strong {
    color: #2b2b2b;
    font-weight: 600;
}

.is-home-page.boxed .inner-page .content-accordion .panel-body a,
.is-home-page.boxed .inner-page .mainpage .panel-group .panel-body a {
    color: #0586ee;
}

.is-home-page.boxed .inner-page .content-accordion .panel-body a:hover,
.is-home-page.boxed .inner-page .content-accordion .panel-body a:focus,
.is-home-page.boxed .inner-page .mainpage .panel-group .panel-body a:hover,
.is-home-page.boxed .inner-page .mainpage .panel-group .panel-body a:focus {
    color: #046fcc;
}

@media (max-width: 767px) {
    .is-home-page.boxed .inner-page .content-accordion .panel-title > a,
    .is-home-page.boxed .inner-page .mainpage .panel-group .panel-title > a {
        padding: 14px;
        font-size: 15px;
    }

    .is-home-page.boxed .inner-page .content-accordion .panel-body,
    .is-home-page.boxed .inner-page .mainpage .panel-group .panel-body {
        padding: 14px;
    }
}

