/* layout-fixes.css — некритичные правки (critical inline: layout-fixes-critical.tpl) */

/* Mobile main hero / benefits — декоративные стили (геометрия в inline critical) */
@media (max-width: 993px) {
  .header.header-mobile,
  .header.header-mobile *,
  .mobile-main-hero,
  .mobile-main-hero *,
  .mobile-main-benefits,
  .mobile-main-benefits *,
  .bottom-nav,
  .bottom-nav * {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
    font-synthesis: none;
  }
  .mobile-main-benefits {
    box-sizing: border-box;
    padding: 12px 10px 10px;
    border-radius: 18px;
    background: transparent;
    border: none;
    box-shadow: none;
  }
  .mobile-main-hero__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    isolation: isolate;
    box-shadow: 0 10px 28px rgba(28, 58, 47, 0.18);
    border: none;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  }
  .mobile-main-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: transparent;
    pointer-events: none;
  }
  .mobile-main-hero__content {
    position: absolute;
    inset: 0;
    z-index: 2;
    color: #24362e;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
    align-items: flex-start;
    box-sizing: border-box;
  }
  .mobile-main-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(239, 247, 236, 0.95);
    color: #4f6e60;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
  }
  .mobile-main-hero__badge-icon { color: #6d927d; font-size: 15px; line-height: 1; }
  .mobile-main-hero__title {
    margin: 0;
    color: #2f4f45;
    font-size: 21px;
    line-height: 1.08;
    min-height: calc(21px * 1.08 * 2);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-align: left !important;
  }
  .mobile-main-hero__subtitle {
    margin: 0;
    font-size: 11px;
    line-height: 1.25;
    min-height: calc(11px * 1.25 * 2);
    color: #4f6379;
    font-weight: 500;
  }
  .mobile-main-hero__actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: min(360px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    align-self: flex-start;
    margin-top: auto;
    margin-bottom: 0;
    padding-top: 20px;
    box-sizing: border-box;
  }
  .mobile-main-hero__catalog-btn {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 42%;
    min-width: 112px;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    min-height: 36px;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 999px;
    text-decoration: none !important;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.15;
    border: none;
    white-space: nowrap;
    background: linear-gradient(135deg, #4f866e 0%, #3e735d 100%);
    box-shadow: 0 8px 20px rgba(34, 78, 58, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }
  .mobile-main-hero__catalog-text { font-size: 14px; line-height: 1.15; color: #fff; font-weight: 700; }
  .mobile-main-hero__catalog-arrow { display: inline-flex; color: #fff; font-size: 22px; font-weight: 700; line-height: 1; }
  .mobile-main-hero__tg-btn {
    display: inline-flex;
    flex: 1 1 auto;
    min-width: 0;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 5px 9px;
    border-radius: 999px;
    text-decoration: none !important;
    color: #fff !important;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.15;
    white-space: nowrap;
    background: linear-gradient(135deg, #2aabee 0%, #229ed9 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(34, 158, 217, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  }
  .mobile-main-hero__tg-btn svg { width: 18px; height: 18px; flex: 0 0 18px; opacity: 0.98; display: block; }
}
@media (max-width: 767px) {
  .mobile-main-hero__subtitle {
    display: none;
  }
  .mobile-main-hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: min(220px, calc(100vw - 24px));
    gap: 6px;
    margin-top: 28px;
    margin-bottom: 0;
  }
  .mobile-main-hero__catalog-btn,
  .mobile-main-hero__tg-btn {
    width: 100%;
    flex: none;
  }
  .mobile-main-benefits__title {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.08;
    min-height: calc(22px * 1.08 * 3);
    color: #1a3248;
    text-align: center;
    font-weight: 700;
  }
  .mobile-main-benefits__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    min-height: 220px;
  }
  .mobile-main-benefits__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 108px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e3eaf3;
    padding: 10px 10px 12px;
    box-shadow: 0 8px 22px rgba(2, 8, 23, 0.05);
  }
  .mobile-main-benefits__thumb {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 12px;
    background: #f6faf8;
  }
  .mobile-main-benefits__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
  .mobile-main-benefits__text strong {
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
    color: #1a3248;
    min-height: calc(13px * 1.2 * 2);
  }
  .mobile-main-benefits__text span {
    font-size: 11px;
    line-height: 1.25;
    font-weight: 600;
    color: #4f6379;
    min-height: calc(11px * 1.25 * 2);
  }
}
@media (max-width: 360px) {
  .mobile-main-hero__content { padding: 9px 10px; gap: 4px; }
  .mobile-main-hero__badge { font-size: 11px; padding: 5px 9px; }
  .mobile-main-hero__title { font-size: 19px; min-height: calc(19px * 1.06 * 2); }
  .mobile-main-hero__subtitle { display: none; }
  .mobile-main-hero__actions { width: min(210px, calc(100vw - 20px)); gap: 5px; margin-top: 22px; }
  .mobile-main-hero__catalog-btn { min-width: 104px; min-height: 34px; padding: 5px 10px; font-size: 13px; }
  .mobile-main-hero__catalog-text { font-size: 13px; }
  .mobile-main-hero__catalog-arrow { font-size: 20px; }
  .mobile-main-hero__tg-btn { min-height: 32px; padding: 4px 8px; font-size: 10px; gap: 4px; }
  .mobile-main-hero__tg-btn svg { width: 16px; height: 16px; flex-basis: 16px; }
}

@font-face {
  font-family: 'Montserrat Fallback';
  src: local('Arial');
  ascent-override: 92%;
  descent-override: 20%;
  line-gap-override: 0%;
  size-adjust: 104%;
}
@font-face {
  font-family: 'Roboto Fallback';
  src: local('Arial');
  ascent-override: 92%;
  descent-override: 20%;
  line-gap-override: 0%;
  size-adjust: 100%;
}
@font-face {
  font-family: 'Manrope Fallback';
  src: local('Arial');
  ascent-override: 92%;
  descent-override: 24%;
  line-gap-override: 0%;
  size-adjust: 103%;
}

body.page_index {
  min-height: 100vh;
  background-color: #f4f7fb;
}

.top-menu { min-height: 61px; }

@media (max-width: 767px) {
  .bottom-nav {
    padding: 8px calc(12px + 84px) max(8px, env(safe-area-inset-bottom)) 12px;
    justify-content: space-around;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.16);
  }
  .bottom-nav .bn-btn {
    display: inline-flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #2f3b45;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 8px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
  }
  .bottom-nav .bn-btn svg { width: 22px; height: 22px; }
  .bottom-nav .bn-btn span { line-height: 1; }
  .bottom-nav .bn-btn .bn-badge {
    position: absolute;
    top: 2px;
    right: 10px;
    background: #60967d;
    color: #fff;
    border-radius: 10px;
    padding: 0 6px;
    font-size: 11px;
    line-height: 16px;
    height: 16px;
  }
  .bottom-nav .bn-btn.active,
  .bottom-nav .bn-btn:active {
    background: #60967d;
    color: #ffffff;
    border-color: #60967d;
  }
}
@media (min-width: 768px) {
  .bottom-nav { display: none !important; }
}

@media (min-width: 769px) {
  .mobile-main-hero,
  .mobile-main-benefits { display: none !important; }
}

@media (min-width: 994px) {
  .header.header-mobile,
  .header.header-mobile .mobile-search-panel {
    display: none !important;
  }
}
@media (max-width: 993px) {
  .header.header-mobile .mobile-search-panel { display: none !important; }
  .header.header-mobile.mobile-search-open .mobile-search-panel {
    display: block !important;
    visibility: visible;
    opacity: 1;
    padding: 0 12px 10px;
  }
}

    /* Hero (главная) */
    .hero-home .hero-grid {
      display: flex;
      gap: 32px;
      align-items: stretch;
    }
    .hero-home .hero-left {
      flex: 1 1 48%;
      display: flex;
      flex-direction: column;
      gap: 16px;
      align-items: flex-start;
      text-align: left;
      height: 100%;
      min-height: 100%;
      padding: 24px 28px 24px 92px;
      border-radius: 24px;
      position: relative;
      overflow: hidden;
      isolation: isolate;
      color: #1f2d26;
      box-shadow: 0 18px 36px rgba(23, 34, 29, 0.22);
    }
    .hero-home .hero-home__bg-picture {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      margin: 0;
      padding: 0;
      z-index: 0;
      pointer-events: none;
      display: block;
    }
    .hero-home .hero-home__bg-img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      z-index: 0;
      pointer-events: none;
    }
    .hero-home .hero-left > :not(.hero-home__bg-picture) {
      position: relative;
      z-index: 1;
    }
    .hero-home {
      --hero-cards-offset: 0px;
    }
    .hero-home .hero-right {
      display: none !important;
    }
    .hero-home .hero-left {
      flex: 1 1 100% !important;
      max-width: 100% !important;
    }
    /* Десктоп: баннер hero на всю ширину окна (не ограничивать Bootstrap .container) */
    @media (min-width: 994px) {
      body.page_index .hero-wrap.hero-home {
        height: clamp(240px, 28vw, 360px);
        min-height: 240px;
        max-height: 360px;
      }
      body.page_index .hero-wrap.hero-home > .container {
        max-width: none !important;
        width: 100%;
        height: 100%;
        padding-left: 0 !important;
        padding-right: 0 !important;
      }
      body.page_index .hero-wrap.hero-home .hero-grid {
        height: 100%;
      }
      body.page_index .hero-wrap.hero-home .hero-left {
        border-radius: 0;
        box-shadow: 0 14px 36px rgba(23, 34, 29, 0.14);
        gap: 8px;
        padding-top: 18px;
        padding-bottom: 18px;
      }
      body.page_index .hero-wrap.hero-home .hero-title {
        font-size: clamp(30px, 3.6vw, 44px);
        line-height: 1.05;
        margin-top: 8px;
      }
      body.page_index .hero-wrap.hero-home .hero-subtitle {
        font-size: 15px;
        line-height: 1.25;
        margin-top: 2px;
      }
      body.page_index .hero-wrap.hero-home .hero-actions {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        margin-top: 34px;
      }
      body.page_index .hero-wrap.hero-home .hero-main-cta,
      body.page_index .hero-wrap.hero-home .hero-tg-cta {
        margin-left: 0;
        min-height: 42px;
        padding: 8px 18px;
        font-size: 15px;
        line-height: 1.15;
        white-space: nowrap;
      }
      body.page_index .hero-wrap.hero-home .hero-main-cta::after {
        font-size: 24px;
        margin-left: 8px;
      }
      body.page_index .hero-wrap.hero-home .hero-tg-cta svg {
        width: 18px;
        height: 18px;
      }
    }
    .hero-home .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 14px;
      border-radius: 999px;
      background: rgba(239, 247, 236, 0.95);
      color: #4f6e60;
      font-size: 14px;
      font-weight: 700;
      width: fit-content;
      font-family: 'Manrope', 'Manrope Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;
    }
    .hero-home .hero-badge-icon {
      color: #6d927d;
      font-size: 15px;
      line-height: 1;
    }
    .hero-home .hero-title {
      font-size: 50px;
      line-height: 1.15;
      margin: 18px 0 0;
      color: #2f4f45;
      font-family: 'Manrope', 'Manrope Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;
      font-weight: 800;
      letter-spacing: -0.02em;
    }
    .hero-home .hero-subtitle {
      font-size: 20px;
      color: #4f6379;
      max-width: 560px;
      text-align: left;
      font-family: 'Manrope', 'Manrope Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;
      font-weight: 500;
      margin-top: 8px;
    }
    .hero-home .hero-actions {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 12px;
      margin-top: 28px;
    }
    .hero-home .hero-main-cta {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      margin-left: 76px;
      min-height: 62px;
      max-width: min(520px, 100%);
      padding: 14px 26px;
      border-radius: 999px;
      text-decoration: none !important;
      color: #ffffff !important;
      background: linear-gradient(135deg, #4f866e 0%, #3e735d 100%) !important;
      border: 0 !important;
      font-size: 20px;
      font-weight: 700;
      line-height: 1.25;
      text-align: center;
      white-space: normal;
      font-family: 'Manrope', 'Manrope Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;
      box-shadow:
        0 8px 20px rgba(34, 78, 58, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    }
    .hero-home .hero-main-cta::after {
      content: "\203A";
      position: static;
      transform: none;
      width: auto;
      height: auto;
      margin-left: 10px;
      border-radius: 50%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: transparent;
      color: #ffffff;
      font-size: 34px;
      font-weight: 300;
      line-height: 1;
    }
    .hero-home .hero-tg-cta {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      margin-left: 76px;
      min-height: 42px;
      padding: 7px 18px;
      border-radius: 999px;
      text-decoration: none !important;
      color: #ffffff !important;
      background: linear-gradient(135deg, #2aabee 0%, #229ed9 100%) !important;
      border: 0 !important;
      font-size: 14px;
      font-weight: 600;
      line-height: 1.2;
      white-space: nowrap;
      font-family: 'Manrope', 'Manrope Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;
      box-shadow:
        0 4px 12px rgba(34, 158, 217, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
      transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    }
    .hero-home .hero-tg-cta:hover {
      color: #ffffff !important;
      transform: translateY(-1px);
      box-shadow:
        0 7px 20px rgba(34, 158, 217, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
      filter: brightness(1.03);
    }
    .hero-home .hero-tg-cta svg {
      flex-shrink: 0;
      width: 18px;
      height: 18px;
      opacity: 0.98;
    }
    .hero-home .hero-benefits {
      list-style: none;
      padding: 0;
      margin: 0;
      color: #2e3c35;
      display: grid;
      gap: 8px;
      justify-items: center;
      margin-top: -14px;
    }
    .hero-home .hero-benefits li::before {
      content: "✔";
      color: #3f7b64;
      margin-right: 8px;
    }
    .hero-home .hero-stats {
      display: flex;
      gap: 14px;
      flex-wrap: wrap;
      justify-content: center;
      width: 100%;
      max-width: 1180px;
      margin-top: -42px;
      margin-left: auto;
      margin-right: auto;
    }
    .hero-home .hero-stat {
      background: #ffffff;
      border: 1px solid #e5edf2;
      border-radius: 18px;
      padding: 14px 16px;
      min-width: 240px;
      flex: 1 1 248px;
      display: flex;
      align-items: flex-start;
      gap: 14px;
      box-shadow: 0 10px 28px rgba(15, 35, 52, 0.06);
    }
    .hero-home .hero-stat-thumb {
      width: 72px;
      height: 72px;
      object-fit: contain;
      flex: 0 0 72px;
      border-radius: 14px;
      background: #f7faf9;
    }
    .hero-home .hero-stat-body {
      display: flex;
      flex-direction: column;
      gap: 6px;
      min-width: 0;
    }
    .hero-home .hero-stat-value {
      font-size: 15px;
      font-weight: 800;
      color: #1a3248;
      line-height: 1.2;
      font-family: Montserrat, serif;
    }
    .hero-home .hero-stat-text {
      font-size: 13px;
      color: #4f6379;
      line-height: 1.35;
      font-weight: 500;
    }
    .hero-card-grid {
      width: 100%;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      grid-template-rows: repeat(2, minmax(0, 1fr));
      gap: 18px;
      height: 100%;
    }
    .hero-card {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      background: linear-gradient(135deg, #e9f5ee 0%, #d7eadf 100%);
      border: 1px solid #dfeee6;
      border-radius: 18px;
      padding: 38px 32px;
      color: #24362e;
      text-decoration: none;
      box-shadow: 0 8px 24px rgba(58, 96, 80, 0.12);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .hero-card.has-banner {
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      position: relative;
      overflow: hidden;
      background-image: var(--card-bg);
    }
    .hero-card.has-media {
      background-image: none !important;
    }
    .hero-card-media {
      position: absolute;
      inset: 0;
      z-index: 0;
      display: block;
      overflow: hidden;
      border-radius: 18px;
    }
    .hero-card-media img {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
    }
    .hero-card.has-banner .hero-card-body {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 2;
      color: #ffffff;
      background: transparent;
      padding: 12px 16px;
      border-radius: 0 0 18px 18px;
    }
    .hero-card.has-banner .hero-card-title,
    .hero-card.has-banner .hero-card-text {
      color: #ffffff;
      text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.7),
        0 0 16px rgba(0, 0, 0, 0.5);
      -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.6);
    }
    .hero-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 28px rgba(58, 96, 80, 0.16);
    }
    .hero-card-title {
      font-weight: 700;
      font-size: 24px;
      margin-bottom: 6px;
    }
    .hero-card-text {
      font-size: 17px;
      color: #4a5a52;
    }
    .hero-card-icon {
      width: 72px;
      height: 72px;
      border-radius: 12px;
      background: #e2f1ea;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 72px;
    }
    .hero-card .hero-card-icon {
      display: none;
    }
    .hero-card.with-icon .hero-card-icon {
      display: inline-flex;
    }
    .hero-card-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }
    .popular-bouquets {
      position: relative;
      margin-top: 28px;
    }
    .mobile-sub-menu.mobile-sub-menu-inline {
      margin: 0 0 6px;
      width: 100%;
    }
    .mobile-sub-menu.mobile-sub-menu-inline ul {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0;
      margin: 0;
      padding: 0;
      list-style: none;
      border-top: 1px solid #e6eaee;
      border-bottom: 1px solid #e6eaee;
    }
    .mobile-sub-menu.mobile-sub-menu-inline li {
      width: 100%;
    }
    .mobile-sub-menu.mobile-sub-menu-inline a {
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 54px;
      padding: 10px 8px;
      border-right: 1px solid #e6eaee;
      text-decoration: none;
      color: #2f3b45;
      background: #ffffff;
      font-size: 20px;
      font-weight: 400;
      line-height: 1.2;
    }
    .mobile-sub-menu.mobile-sub-menu-inline li:last-child a {
      border-right: none;
    }
    .hero-pill {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 8px 16px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.82);
      color: #1f2d26;
      text-decoration: none;
      font-weight: 600;
      box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
      border: 1px solid rgba(0, 0, 0, 0.06);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .hero-pill:hover {
      transform: translateY(-1px);
      box-shadow: 0 10px 18px rgba(0, 0, 0, 0.16);
    }
    @media (max-width: 1024px) {
      .hero-home .hero-title {
        font-size: 34px;
      }
    }
    @media (max-width: 900px) {
      .hero-home .hero-grid {
        flex-direction: column;
      }
      .hero-home .hero-left {
        order: 1;
      }
      .hero-home .hero-right {
        order: 2;
        padding-top: 0;
      }
      .hero-card-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: none;
        height: auto;
      }
    }
    @media (max-width: 640px) {
      .hero-card-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        height: auto;
      }
      .hero-card.has-banner {
        background-image: var(--card-bg-mobile, var(--card-bg));
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
      }
      .hero-card.has-media {
        background-image: none !important;
      }
      .hero-card-media img {
        object-fit: contain;
      }
      .popular-bouquets {
        margin-top: 12px;
      }
      .hero-home .hero-title {
        font-size: 28px;
      }
    }
    
    /* Резервируем место для основных контейнеров (не пустой .container.hero-home под скрытым hero на главной) */
    .container {
      min-height: 50px;
    }
    .container.hero-home {
      min-height: 0 !important;
    }

    /* Нижний SEO-блок: визуально «справка», не маркетинговый CTA */
    .home-seo-note-wrap {
      margin-top: 40px;
      margin-bottom: 24px;
    }
    .home-seo-note {
      margin: 0;
      padding: 20px 22px 22px;
      background: #eef1f6;
      border: 1px solid #dfe6ef;
      border-radius: 14px;
      text-align: left;
    }
    .home-seo-note__eyebrow {
      margin: 0 0 10px;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #8b95a8;
    }
    .home-seo-note__title {
      margin: 0 0 14px;
      font-size: 18px;
      font-weight: 600;
      line-height: 1.35;
      color: #5c6578;
    }
    .home-seo-note__body {
      margin: 0;
      max-width: 900px;
      color: #6b7280;
      font-size: 14px;
      line-height: 1.65;
    }
    .home-seo-note__body p {
      margin: 0 0 12px;
    }
    .home-seo-note__body p:last-child {
      margin-bottom: 0;
    }
    
  /* Центрирование H1 и H2 */
  h1.cta-title {
    text-align: center;
  }
  .container h2 {
    text-align: center;
  }
  .gb-block h2 {
    text-align: center;
  }
  /* Кнопка "Смотреть все" в заголовках каруселей всегда справа */
  .container > div[style*="justify-content:space-between"] > a[href*="/catalog"] {
    margin-left: auto !important;
    white-space: nowrap;
  }
  /* Единый уровень цены: названия карточек максимум в 2 строки (запас по высоте — без наезда на цену) */
  .catalog .product .item_wrap .name {
    min-height: 52px !important;
  }
  .catalog .product .item_wrap .name a {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis;
    max-height: none !important;
  }
  /* Варианты: компактный блок слева внизу на фото (не тянуть на 100% как основная ссылка на фото) */
  .catalog .product .image_wrap .product-model-range--on-image {
    position: absolute;
    left: 0 !important;
    right: 0 !important;
    bottom: 8px !important;
    top: auto !important;
    z-index: 8;
    display: flex !important;
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
    margin: 0;
    padding: 4px 6px 5px !important;
    box-sizing: border-box;
    border: 0;
    border-radius: 10px;
    background: transparent;
    overflow: visible !important;
    text-decoration: none !important;
    color: inherit !important;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .catalog .product .image_wrap .product-model-range__bar {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
  .catalog .product .image_wrap .product-model-range__hint {
    flex: 0 0 auto;
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
    color: #3d5c4f;
    line-height: 1.15;
    white-space: nowrap;
    padding: 3px 6px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(96, 150, 125, 0.35);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
  }
  .catalog .product .image_wrap .product-model-range__thumbs {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
    min-width: 0;
    flex: 1 1 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    box-sizing: border-box;
    padding: 1px 3px 1px 1px;
  }
  /* одна строка превью + scroll; при переносе на 2 строки полоска разной высоты ломала выравнивание карточек */
  @media (max-width: 767px) {
    .catalog .product .image_wrap .product-model-range__bar {
      flex-wrap: nowrap;
      align-items: center;
      min-width: 0;
    }
    .catalog .product .image_wrap .product-model-range__thumbs {
      flex: 1 1 0;
      min-width: 0;
      overflow-x: auto;
      overflow-y: hidden;
      -webkit-overflow-scrolling: touch;
      justify-content: flex-start;
    }
  }
  .catalog .product .image_wrap .product-model-range__thumbs::-webkit-scrollbar {
    display: none;
  }
  .catalog .product .image_wrap .product-model-range__thumb {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid #fff;
    background: #f0f4f2;
    box-sizing: border-box;
    box-shadow: 0 1px 5px rgba(15, 23, 42, 0.12);
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  }
  .catalog .product .image_wrap .product-model-range--on-image:hover .product-model-range__thumb {
    border-color: #60967d;
    box-shadow: 0 2px 8px rgba(96, 150, 125, 0.25);
  }
  .catalog .product .image_wrap .product-model-range__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    vertical-align: top;
  }
  .catalog .product .image_wrap .product-model-range__thumb-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 7px;
    font-weight: 700;
    color: #1e293b;
    background: rgba(255, 255, 255, 0.92);
    padding: 1px;
    text-align: center;
    line-height: 1.05;
    word-break: break-word;
  }
  .catalog .product .image_wrap .product-model-range__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 26px;
    height: 28px;
    padding: 0 5px;
    border-radius: 6px;
    color: #3d5c4f;
    font-weight: 700;
    font-size: 11px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(96, 150, 125, 0.35);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
  }
  /* Каталог: кнопка "В корзину" всегда под ценой, без наезда */
  .catalog .product .item_wrap {
    padding-bottom: 24px !important;
  }
  .catalog .product .item_wrap .row.action {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    margin-top: 12px !important;
  }
  /* После resize с десктопа: панель без стилей чипов — скрываем на узкой ширине */
  @media (max-width: 768px) {
    .desktop-filter-bar-wrap {
      display: none !important;
    }
  }
  /* Desktop filter bar */
  @media (min-width: 769px) {
    body.desktop-filter-bar-active .page_catalog .catalog-filter-section,
    body.desktop-filter-bar-active .page_catalog .row.catalog_filters {
      display: none !important;
    }
    .mobile-filter-stack {
      display: none !important;
    }
    .desktop-filter-bar-wrap {
      margin: 6px 0 22px;
      padding: 16px 18px 18px;
      background: #fff;
      border: 1px solid rgba(96, 150, 125, 0.14);
      border-radius: 16px;
      box-shadow: 0 2px 14px rgba(15, 23, 42, 0.05);
      box-sizing: border-box;
    }
    .desktop-filter-bar__head {
      margin-bottom: 14px;
      padding-bottom: 14px;
      border-bottom: 1px solid rgba(96, 150, 125, 0.12);
    }
    .desktop-filter-bar__title {
      margin: 0 0 6px 0;
      font-size: 17px;
      font-weight: 700;
      color: #0f172a;
      line-height: 1.25;
    }
    .desktop-filter-bar__hint {
      margin: 0;
      font-size: 13px;
      line-height: 1.45;
      color: #64748b;
      max-width: 52rem;
    }
    .desktop-filter-bar {
      display: flex;
      flex-wrap: wrap;
      align-items: stretch;
      gap: 10px;
      margin: 0;
    }
    .desktop-filter-chip {
      position: relative;
    }
    .desktop-filter-chip__btn {
      min-height: 52px;
      min-width: 148px;
      max-width: 220px;
      border: 1px solid #e2e8e2;
      border-radius: 12px;
      background: linear-gradient(180deg, #fff 0%, #fafcfa 100%);
      color: #202521;
      line-height: 1;
      font-weight: 500;
      display: inline-flex;
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      padding: 8px 10px 8px 14px;
      cursor: pointer;
      transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
      text-align: left;
    }
    .desktop-filter-chip__text {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 3px;
      min-width: 0;
      flex: 1 1 auto;
    }
    .desktop-filter-chip__k {
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      color: #64748b;
      line-height: 1.15;
    }
    .desktop-filter-chip__v {
      font-size: 14px;
      font-weight: 600;
      color: #1e293b;
      line-height: 1.2;
      max-width: 168px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .desktop-filter-chip__btn:hover {
      border-color: #b8cfc0;
      box-shadow: 0 4px 14px rgba(96, 150, 125, 0.12);
      background: #fff;
    }
    .desktop-filter-chip__btn:focus {
      outline: none;
      border-color: #60967d;
      box-shadow: 0 0 0 3px rgba(96, 150, 125, 0.2);
    }
    .desktop-filter-chip__btn::after {
      content: "\2304";
      font-size: 15px;
      line-height: 1;
      color: #7f847c;
      flex-shrink: 0;
      margin-top: 2px;
    }
    .desktop-filter-chip__menu {
      position: absolute;
      top: calc(100% + 8px);
      left: 0;
      min-width: 260px;
      max-height: 360px;
      overflow: auto;
      background: #fff;
      border: 1px solid #e8ece7;
      border-radius: 12px;
      box-shadow: 0 16px 32px rgba(0, 0, 0, 0.14);
      padding: 6px;
      z-index: 2500;
      display: none;
    }
    .desktop-filter-chip.is-open .desktop-filter-chip__menu {
      display: block;
    }
    .desktop-filter-chip__item {
      width: 100%;
      text-align: left;
      border: 0;
      border-radius: 8px;
      background: transparent;
      color: #242a26;
      font-size: 15px;
      line-height: 1.25;
      padding: 10px 12px;
      cursor: pointer;
      display: block;
    }
    .desktop-filter-chip__item:hover {
      background: #f3f6f2;
    }
    .desktop-filter-chip__item.is-selected {
      background: #eaf3ee;
      color: #2f6b4f;
      font-weight: 600;
    }
  }
  .page_catalog .catalog-page-h1,
  .catalog-page-h1 {
    margin: 14px 0 16px;
    font-size: 32px;
    line-height: 1.2;
    text-align: center;
  }
  /* Мобильные фильтры каталога в стиле bottom-sheet/chips */
  @media (max-width: 768px) {
    .page_catalog .catalog-page-h1,
    .catalog-page-h1 {
      font-size: 24px;
    }
    .page_catalog .row.catalog_filters,
    .row.catalog_filters {
      margin: 0 0 16px !important;
      padding: 0 !important;
      background: transparent !important;
      border: 0 !important;
      box-shadow: none !important;
      gap: 10px !important;
    }
    .page_catalog .catalog_filters .col-sm-12,
    .page_catalog .catalog_filters .col-md-10,
    .page_catalog .catalog_filters .col-lg-10,
    .page_catalog .catalog_filters .col-sm-6,
    .page_catalog .catalog_filters .col-md-2,
    .page_catalog .catalog_filters .col-lg-2,
    .catalog_filters .col-sm-12,
    .catalog_filters .col-md-10,
    .catalog_filters .col-lg-10,
    .catalog_filters .col-sm-6,
    .catalog_filters .col-md-2,
    .catalog_filters .col-lg-2 {
      width: 100% !important;
      max-width: 100% !important;
      flex: 0 0 100% !important;
      padding: 0 !important;
    }
    .page_catalog .catalog_filters .by_currency,
    .catalog_filters .by_currency {
      display: flex !important;
      flex-wrap: nowrap !important;
      align-items: center !important;
      gap: 8px !important;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      padding: 2px 2px 6px;
      margin: 0 !important;
      scrollbar-width: none;
    }
    .page_catalog .catalog_filters .by_currency::-webkit-scrollbar,
    .catalog_filters .by_currency::-webkit-scrollbar {
      display: none;
    }
    .page_catalog .catalog_filters .by_currency > a,
    .catalog_filters .by_currency > a {
      flex: 0 0 auto;
      display: inline-flex !important;
      align-items: center;
      justify-content: center;
      min-height: 44px;
      padding: 10px 16px !important;
      border-radius: 14px !important;
      border: 1px solid #e5e7e2 !important;
      background: #f5f6f3 !important;
      color: #2d2f2b !important;
      font-size: 17px !important;
      line-height: 1 !important;
      font-weight: 500 !important;
      white-space: nowrap;
      text-decoration: none !important;
      box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
    }
    .page_catalog .catalog_filters .by_currency > a.active,
    .catalog_filters .by_currency > a.active {
      background: #60967d !important;
      border-color: #60967d !important;
      color: #fff !important;
    }
    .page_catalog .catalog_filters .by_currency > a.reset,
    .catalog_filters .by_currency > a.reset {
      border-style: solid !important;
      background: #fff !important;
      color: #7b8077 !important;
      margin-left: 0 !important;
    }
    .page_catalog .catalog_filters .sorting,
    .catalog_filters .sorting {
      margin-left: 0 !important;
    }
    .page_catalog .catalog_filters .sorting select,
    .page_catalog .catalog_filters .sorting .form-control,
    .page_catalog .catalog_filters .sorting .form-select,
    .catalog_filters .sorting select,
    .catalog_filters .sorting .form-control,
    .catalog_filters .sorting .form-select {
      min-height: 46px;
      border-radius: 14px !important;
      border: 1px solid #e5e7e2 !important;
      background: #f5f6f3 !important;
      color: #2d2f2b !important;
      font-size: 16px !important;
      font-weight: 500 !important;
      padding: 10px 14px !important;
      box-shadow: none !important;
    }
    .page_catalog .catalog_filters .by_currency,
    .page_catalog .catalog_filters .sorting,
    .catalog_filters .by_currency,
    .catalog_filters .sorting {
      display: none !important;
    }
    .page_catalog .catalog-filter-section,
    .catalog-filter-section {
      display: none !important;
    }
    .mobile-filter-stack {
      margin: 0 0 14px;
    }
    .mobile-filter-stack__intro {
      margin-bottom: 10px;
    }
    .mobile-filter-stack__title {
      margin: 0 0 4px 0;
      font-size: 16px;
      font-weight: 700;
      color: #0f172a;
      line-height: 1.25;
    }
    .mobile-filter-stack__hint {
      margin: 0;
      font-size: 12px;
      line-height: 1.4;
      color: #64748b;
    }
    .mobile-filter-fields {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin: 0;
    }
    .mobile-filter-field {
      flex: 1 1 calc(50% - 5px);
      min-height: 56px;
      border: 1px solid #dce5df;
      border-radius: 14px;
      background: linear-gradient(180deg, #fff 0%, #f8faf8 100%);
      color: #2d2f2b;
      font-size: 14px;
      font-weight: 500;
      display: inline-flex;
      flex-direction: column;
      align-items: stretch;
      justify-content: center;
      gap: 4px;
      padding: 10px 30px 10px 14px;
      box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
      position: relative;
    }
    .mobile-filter-field__k {
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      color: #64748b;
      line-height: 1.15;
    }
    .mobile-filter-field__v {
      font-size: 15px;
      font-weight: 600;
      color: #1e293b;
      line-height: 1.2;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .mobile-filter-field::after {
      content: "\2304";
      position: absolute;
      right: 12px;
      top: 50%;
      transform: translateY(-55%);
      font-size: 16px;
      line-height: 1;
      color: #7f847c;
    }
    .mobile-filter-sheet-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.32);
      z-index: 3500;
      opacity: 0;
      pointer-events: none;
      transition: opacity .2s ease;
    }
    .mobile-filter-sheet-overlay.is-open {
      opacity: 1;
      pointer-events: auto;
    }
    .mobile-filter-sheet {
      position: fixed;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 3600;
      background: #fff;
      border-radius: 20px 20px 0 0;
      padding: 14px 14px 16px;
      transform: translateY(105%);
      transition: transform .24s ease;
      box-shadow: 0 -14px 38px rgba(0, 0, 0, 0.2);
      max-height: min(72vh, 560px);
      overflow: auto;
    }
    .mobile-filter-sheet.is-open {
      transform: translateY(0);
    }
    .mobile-filter-sheet__head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 10px;
    }
    .mobile-filter-sheet__title {
      font-size: 30px;
      font-weight: 700;
      line-height: 1.05;
      color: #1f2521;
      margin: 0;
    }
    .mobile-filter-sheet__close {
      width: 34px;
      height: 34px;
      border: 0;
      border-radius: 10px;
      background: #f1f3ef;
      color: #6f746c;
      font-size: 22px;
      line-height: 1;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    .mobile-filter-sheet__list {
      display: grid;
      grid-template-columns: 1fr;
      gap: 8px;
      margin: 8px 0 14px;
    }
    .mobile-filter-sheet__item {
      width: 100%;
      border: 1px solid #eceee9;
      border-radius: 12px;
      background: #fff;
      padding: 10px 12px;
      font-size: 20px;
      color: #2b312d;
      display: inline-flex;
      align-items: center;
      gap: 12px;
      text-align: left;
    }
    .mobile-filter-sheet__item-dot {
      width: 20px;
      height: 20px;
      border-radius: 6px;
      border: 2px solid #cdd3cb;
      flex: 0 0 20px;
      position: relative;
    }
    .mobile-filter-sheet__item.is-selected .mobile-filter-sheet__item-dot {
      border-color: #60967d;
      background: #60967d;
    }
    .mobile-filter-sheet__item.is-selected .mobile-filter-sheet__item-dot::after {
      content: "";
      position: absolute;
      inset: 4px;
      border-radius: 2px;
      background: #fff;
    }
    .mobile-filter-sheet__actions {
      display: flex;
      gap: 10px;
      margin-top: 8px;
    }
    .mobile-filter-sheet__btn {
      flex: 1 1 0;
      min-height: 48px;
      border-radius: 16px;
      border: 1px solid #e5e7e2;
      font-size: 17px;
      font-weight: 600;
      background: #f5f6f3;
      color: #6e736b;
    }
    .mobile-filter-sheet__btn--apply {
      background: #60967d;
      color: #fff;
      border-color: #60967d;
    }
    body.mobile-filter-sheet-open {
      overflow: hidden;
    }
  }
  @media (max-width: 993px) {
    .carousel-view-all-bottom {
      display: flex;
      justify-content: center;
      margin: -8px 0 30px;
      padding: 0 12px;
    }
    .carousel-view-all-bottom .carousel-view-all-bottom-btn {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: flex-start;
      min-height: 56px;
      min-width: 236px;
      padding: 10px 82px 10px 22px;
      border-radius: 999px;
      text-decoration: none !important;
      color: #2f6b4f !important;
      background: #ffffff !important;
      border: 0 !important;
      font-size: 19px;
      font-weight: 600;
      line-height: 1;
      white-space: nowrap;
      box-shadow: 0 14px 28px rgba(27, 14, 19, 0.09);
    }
    .carousel-view-all-bottom .carousel-view-all-bottom-btn::after {
      content: "\2192";
      position: absolute;
      right: 8px;
      top: 50%;
      transform: translateY(-50%);
      width: 42px;
      height: 42px;
      border-radius: 50%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: #e9f3ef;
      color: #2f6b4f;
      font-size: 34px;
      font-weight: 300;
      line-height: 1;
    }
  }
  /* Два ровных столбца для меню футера */
  footer .f_menu {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
  }
  footer .f_menu_col {
    flex: 1 1 50%;
    min-width: 0;
  }
  footer .f_menu_col a {
    display: block;
    width: 100%;
  }
  /* Мобильный bottom-nav: повышаем контраст активной вкладки (AA) */
  @media (max-width: 993px) {
    .bottom-nav .bn-btn.active {
      background: #2f6b4f !important;
      border-color: #24533d !important;
      color: #ffffff !important;
    }
    .bottom-nav .bn-btn.active span {
      color: #ffffff !important;
    }
    .bottom-nav .bn-btn.active svg * {
      fill: currentColor !important;
      stroke: currentColor !important;
    }
  }
  /* Контраст футера и cookie-кнопки (Lighthouse color-contrast) */
  footer {
    background: #3f6a4c !important;
    color: #fff !important;
  }
  footer a,
  footer span,
  footer label,
  footer .copyright div,
  footer .contacts > span,
  footer .f_menu a,
  footer .contacts .address a,
  footer .contacts .mail > a {
    color: #fff !important;
  }
  footer .contacts .address a,
  footer .f_menu a {
    text-decoration-color: rgba(255, 255, 255, 0.9);
    text-underline-offset: 2px;
  }
  #cookie-banner button#cookie-accept {
    background: #1f6f43 !important;
    color: #fff !important;
    border: 1px solid #155332 !important;
    font-weight: 700 !important;
  }
  #cookie-banner button#cookie-accept:hover {
    background: #195c38 !important;
  }
  /* Скрываем H3 в FAQ и стилизуем div как заголовки */
  #home-faq-accordion h3.accordion-header,
  #home-faq-accordion h3 {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0 !important;
  }
  #home-faq-accordion div.accordion-header {
    display: block;
    font-size: 18px;
    font-weight: 600;
  }
  #home-faq-accordion .accordion-button.faq-static-open {
    cursor: default;
    pointer-events: none;
  }
  #home-faq-accordion .accordion-button.faq-static-open::after {
    display: none !important;
  }

  /* Главная: обычная плитка популярных товаров без каруселей */
  .main-products-grid {
    margin: 0 auto 28px;
  }
  .main-products-grid .row.catalog {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  .main-products-grid .row.catalog::after {
    display: none !important;
  }
  .main-products-grid .row.catalog > [class*="col-"] {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    padding: 0 !important;
    display: flex;
    box-sizing: border-box;
  }
  .main-products-grid .row.catalog > [class*="col-"] .product {
    display: flex;
    width: 100%;
    height: 100%;
  }
  .main-products-grid .row.catalog > [class*="col-"] .product .body_wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
  }
  .main-products-grid .row.catalog > [class*="col-"] .product .image_wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
  }
  .main-products-grid .row.catalog > [class*="col-"] .product .image_wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .main-products-grid .row.catalog > [class*="col-"] .product .item_wrap {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
  }
  .main-products-grid .row.catalog > [class*="col-"] .product .row.action {
    margin-top: auto;
  }
  .main-popular-catalog-cta {
    margin: -4px auto 32px;
    text-align: center;
  }
  .main-popular-catalog-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 34px;
    border-radius: 999px;
    background: #60967d;
    color: #fff !important;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    box-shadow: 0 12px 24px rgba(96, 150, 125, 0.2);
  }
  .main-popular-catalog-cta__btn:hover {
    background: #4f826b;
    color: #fff !important;
  }
  .main-benefits-stats {
    margin-top: 0;
  }
  .main-benefits-stats__title {
    margin: 0 0 18px;
    color: #1a3248;
    font-size: 30px;
    line-height: 1.18;
    font-weight: 700;
    text-align: center;
  }
  .main-benefits-stats .hero-stats {
    margin-top: 0;
  }
  @media (max-width: 993px) {
    .main-benefits-stats {
      display: none !important;
    }
    .main-popular-catalog-cta {
      margin: 8px auto 54px;
    }
    .mobile-main-benefits {
      margin-top: 0 !important;
    }
  }
  @media (max-width: 991px) and (min-width: 768px) {
    .main-products-grid .row.catalog {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
      padding: 0 12px !important;
    }
  }
  @media (max-width: 767px) {
    .main-products-grid {
      margin-bottom: 20px;
    }
    .main-products-grid .row.catalog {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      padding: 0 12px !important;
    }
    .main-popular-catalog-cta {
      margin: 8px auto 54px;
    }
    .main-popular-catalog-cta__btn {
      min-width: 190px;
      min-height: 52px;
      font-size: 18px;
    }
  }

  /* Карусели главной: ширина карточки как в каталоге (lg — 4 в ряд, md — 3, xs — 2) + прокрутка на широких экранах */
  .main_carousel .row.catalog,
  .main-carousel .row.catalog {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    gap: 16px;
    -webkit-overflow-scrolling: auto;
    scroll-snap-type: none;
    overscroll-behavior-x: contain;
    align-items: stretch;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .main_carousel,
  .main-carousel {
    position: relative !important;
    overflow: visible !important;
  }
  .carousel-nav {
    position: absolute;
    top: 120px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    color: #60967d;
    font-size: 22px;
    font-weight: 700;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    z-index: 9999;
    opacity: 0.95;
  }
  .carousel-nav.prev {
    left: 150px;
  }
  .carousel-nav.next {
    right: 150px;
  }
  .header.header-mobile {
    position: relative;
  }
  .header.header-mobile .mobile-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px 6px;
  }
  .header.header-mobile .mobile-menu-trigger {
    flex: 0 0 auto;
  }
  .header.header-mobile .mobile-menu-trigger button {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid #e6eaee;
    background: #ffffff;
    color: #2f3b45;
    font-size: 26px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .header.header-mobile .mobile-logo {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .header.header-mobile .mobile-logo img {
    max-width: 150px;
    height: auto;
  }
  .header.header-mobile .mobile-header-end {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .header.header-mobile .mobile-search-trigger {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border-radius: 10px;
    border: 1px solid #e6eaee;
    background: #ffffff;
    color: #2f3b45;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .header.header-mobile .mobile-search-trigger:active {
    background: #f4f7f6;
  }
  .header.header-mobile.mobile-search-open .mobile-search-trigger {
    background: #eef5f2;
    border-color: #c5ddd2;
  }
  .header.header-mobile .mobile-basket {
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e9f3ef;
  }
  .header.header-mobile .mobile-basket .badge {
    position: absolute;
    top: -6px;
    right: -6px;
    font-size: 11px;
  }
  .header.header-mobile .mobile-search-panel {
    display: none !important;
    padding: 0 12px 10px;
  }
  .header.header-mobile.mobile-search-open .mobile-search-panel {
    display: block !important;
  }
  .main_carousel .row.catalog::after,
  .main-carousel .row.catalog::after {
    content: "";
    flex: 0 0 24px;
  }
  .main_carousel .row.catalog > [class*="col-"],
  .main-carousel .row.catalog > [class*="col-"] {
    flex: 0 0 calc((100% - 48px) / 4) !important;
    max-width: calc((100% - 48px) / 4) !important;
    width: calc((100% - 48px) / 4) !important;
    min-width: calc((100% - 48px) / 4) !important;
    scroll-snap-align: none;
    float: none !important;
    display: flex;
    box-sizing: border-box;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .main_carousel .row.catalog > [class*="col-"] .product,
  .main-carousel .row.catalog > [class*="col-"] .product {
    display: flex;
    width: 100%;
    height: 100%;
  }
  .main_carousel .row.catalog > [class*="col-"] .product .body_wrap,
  .main-carousel .row.catalog > [class*="col-"] .product .body_wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
  }
  .main_carousel .row.catalog > [class*="col-"] .product .image_wrap,
  .main-carousel .row.catalog > [class*="col-"] .product .image_wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
  }
  .main_carousel .row.catalog > [class*="col-"] .product .image_wrap img,
  .main-carousel .row.catalog > [class*="col-"] .product .image_wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .main_carousel .row.catalog > [class*="col-"] .product .item_wrap,
  .main-carousel .row.catalog > [class*="col-"] .product .item_wrap {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
  }
  .main_carousel .row.catalog > [class*="col-"] .product .row.action,
  .main-carousel .row.catalog > [class*="col-"] .product .row.action {
    margin-top: auto;
  }
  .main_carousel > .container {
    max-width: 1600px;
  }
  /* Адаптивные стили для SEO-блока */
  @media (max-width: 991px) and (min-width: 768px) {
    .main_carousel .row.catalog,
    .main-carousel .row.catalog {
      display: flex !important;
      flex-direction: row !important;
      flex-wrap: wrap !important;
      overflow-x: visible !important;
      gap: 12px;
      padding: 0 12px !important;
    }
    .main_carousel .row.catalog > [class*="col-"],
    .main-carousel .row.catalog > [class*="col-"] {
      flex: 0 0 calc((100% - 24px) / 3) !important;
      max-width: calc((100% - 24px) / 3) !important;
      width: calc((100% - 24px) / 3) !important;
      min-width: calc((100% - 24px) / 3) !important;
      box-sizing: border-box !important;
      transform: scale(1);
    }
    .carousel-nav {
      display: none !important;
    }
  }

  /* Главная (≤993px): фон страницы (оформление слайда — в критическом CSS в head) */
  @media (max-width: 993px) {
    body.page_index {
      background-color: #f4f7fb;
    }
  }

  /* Mobile refresh: cleaner modern UI */
  @media (max-width: 768px) {
    body {
      background: #f4f7fb;
    }
    /* Геометрия блока преимуществ — только в критическом CSS в head; здесь не дублируем. */
    /* Desktop hero на мобильных скрыт — только коллапс, без поздних стилей внутренних блоков */
    .hero-wrap.hero-home {
      display: none !important;
      visibility: hidden !important;
      height: 0 !important;
      min-height: 0 !important;
      max-height: 0 !important;
      margin: 0 !important;
      padding: 0 !important;
      overflow: hidden !important;
      pointer-events: none !important;
    }
    main#main-content > .container.hero-home {
      display: none !important;
      visibility: hidden !important;
      height: 0 !important;
      min-height: 0 !important;
      max-height: 0 !important;
      margin: 0 !important;
      padding: 0 !important;
      overflow: hidden !important;
      pointer-events: none !important;
    }
    .popular-bouquets {
      margin-top: 14px !important;
      padding: 0 12px !important;
    }
    .popular-bouquets > div {
      background: #ffffff;
      border: 1px solid #e3eaf3;
      border-radius: 14px;
      box-shadow: 0 8px 22px rgba(2, 8, 23, 0.06);
      padding: 10px 12px;
      margin-bottom: 10px !important;
    }
    .popular-bouquets .carousel-section-title {
      font-size: 22px !important;
      line-height: 1.15 !important;
      color: #102235 !important;
    }
    .popular-bouquets a[href$="/catalog"] {
      border-radius: 12px !important;
      background: #f2f6fb !important;
      border: 1px solid #d9e4f0 !important;
      color: #17324a !important;
      font-size: 13px !important;
      padding: 7px 11px !important;
    }
    .home-seo-note-wrap {
      margin-top: 28px !important;
      margin-bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    }
    .home-seo-note {
      padding: 14px 14px 16px !important;
      border-radius: 12px !important;
    }
    .home-seo-note__title {
      font-size: 16px !important;
    }
    .home-seo-note__body {
      font-size: 13px !important;
    }
    /* backdrop-filter на sticky при скролле даёт сильный дребезг WebKit — только непрозрачный фон */
    .header.header-mobile {
      position: sticky;
      top: 0;
      z-index: 1200;
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
      background: #ffffff !important;
      border-bottom: 1px solid #e8edf4;
    }
    .header.header-mobile .mobile-header-row {
      padding: 10px 12px 8px !important;
      gap: 10px !important;
    }
    .header.header-mobile .mobile-menu-trigger button {
      border-radius: 12px !important;
      border: 1px solid #dde5ef !important;
      box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
    }
    .header.header-mobile .mobile-search-trigger {
      width: 42px !important;
      height: 42px !important;
      border-radius: 12px !important;
      border: 1px solid #dde5ef !important;
      box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
    }
    .header.header-mobile .mobile-basket {
      width: 42px !important;
      height: 42px !important;
      border-radius: 12px !important;
      background: #eef5f2 !important;
      border: 1px solid #dce9e2;
    }
    .header.header-mobile .mobile-search-panel {
      padding: 0 12px 10px !important;
    }
    .header.header-mobile .search-modern .search-input-wrapper {
      border-radius: 14px !important;
      border: 1px solid #e0e8f1 !important;
      box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06) !important;
      background: #fff !important;
    }

    /* Только карусели на главной — не список каталога (.page_catalog .catalog …) */
    .main-carousel .catalog .product,
    .main_carousel .catalog .product {
      border-radius: 16px !important;
      border: 1px solid #e5ebf3 !important;
      box-shadow: 0 8px 24px rgba(2, 8, 23, 0.08) !important;
      background: #fff !important;
      overflow: hidden;
      /* Снимаем blur из style.css — иначе WebKit крутит дорогой композит при скролле */
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
      transition: none !important;
    }
    .main-carousel .catalog .product .image_wrap,
    .main_carousel .catalog .product .image_wrap {
      border-radius: 0 !important;
      overflow: hidden;
    }
    .catalog .product .image_wrap .product-model-range--on-image {
      left: 0 !important;
      right: 0 !important;
      bottom: 6px !important;
      top: auto !important;
      width: 100% !important;
      max-width: none !important;
      border-radius: 9px;
      padding: 3px 5px 4px !important;
      box-sizing: border-box;
    }
    .catalog .product .image_wrap .product-model-range__thumb {
      width: 26px;
      height: 26px;
    }
    .catalog .product .image_wrap .product-model-range__more {
      height: 26px;
      min-width: 26px;
      width: auto;
      padding: 0 4px;
    }
    .main-carousel .catalog .product .item_wrap,
    .main_carousel .catalog .product .item_wrap {
      padding: 10px 12px 12px !important;
    }
    .main-carousel .catalog .product .item_wrap .name a,
    .main_carousel .catalog .product .item_wrap .name a {
      font-size: 14px !important;
      line-height: 1.35 !important;
      color: #102235 !important;
      font-weight: 600 !important;
      min-height: 38px;
      max-height: 38px;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .main-carousel .catalog .product .item_wrap .price,
    .main-carousel .catalog .product .item_wrap .price-below-name,
    .main_carousel .catalog .product .item_wrap .price,
    .main_carousel .catalog .product .item_wrap .price-below-name {
      margin-bottom: 12px !important;
    }
    .main-carousel .catalog .product .item_wrap .price .big,
    .main-carousel .catalog .product .item_wrap .price-below-name .big,
    .main_carousel .catalog .product .item_wrap .price .big,
    .main_carousel .catalog .product .item_wrap .price-below-name .big {
      font-size: 20px !important;
    }
    .main-carousel .catalog .product .item_wrap .buy,
    .main_carousel .catalog .product .item_wrap .buy {
      min-height: 38px;
      border-radius: 12px !important;
      border: 1px solid #4a7c59 !important;
      font-weight: 700 !important;
      letter-spacing: 0.01em !important;
    }
    .main_carousel .row.catalog,
    .main-carousel .row.catalog {
      flex-wrap: wrap !important;
      overflow-x: visible !important;
      gap: 10px !important;
      padding: 0 12px 6px !important;
    }
    .main_carousel .row.catalog > [class*="col-"],
    .main-carousel .row.catalog > [class*="col-"] {
      flex: 0 0 calc(50% - 5px) !important;
      max-width: calc(50% - 5px) !important;
      width: calc(50% - 5px) !important;
      min-width: calc(50% - 5px) !important;
    }

    .bottom-nav {
      border-top: 1px solid #dfe7f0 !important;
      box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.12) !important;
      background: #ffffff !important;
      contain: layout;
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
    }
    .bottom-nav .bn-btn {
      border-radius: 12px !important;
      border-color: #e3e9f2 !important;
      min-width: 62px;
    }
    .bottom-nav .bn-btn.active {
      background: linear-gradient(135deg, #60967d 0%, #4a7c59 100%) !important;
      border-color: #4a7c59 !important;
      box-shadow: 0 8px 18px rgba(74, 124, 89, 0.32) !important;
    }

    /* Мобилка: без стрелок карусели на главной — «Выбор размера» остаётся на превью (скролл миниатюр в style/index CSS) */
    .carousel-nav {
      display: none !important;
      visibility: hidden !important;
      pointer-events: none !important;
    }
  }
