/* Native multisite links retain the language menu's original button geometry. */
body .header-v2 .hv2-lang-menu:not([hidden]) { display: block; }
body .header-v2 .hv2-lang-menu a { display:flex; align-items:center; justify-content:space-between; width:100%; min-height:40px; padding:0 12px; border-radius:9px; color:var(--hv-ink); font-size:14px; text-align:left; }
body .header-v2 .hv2-lang-menu a:hover, body .header-v2 .hv2-lang-menu a:focus-visible { background:var(--hv-paper); outline:none; }
body .header-v2 .hv2-lang-menu a.is-active { color:var(--hv-green); font-weight:600; }
body .footer-brand-copy { white-space:pre-line; }
body .footer-item4 .footer-menu + .footer-head { margin-top:20px; }
.site-error { padding-top:48px; padding-bottom:64px; min-height:40vh; }
/* Мобильная шапка */
.mobile-catalog-button, .mobile-catalog-panel { display: none; }
@media (max-width: 767px) {
  body, body.common-home { padding-top: 0 !important; }
  .header-wrap { position: relative !important; height: 150px; z-index: 100; }
  body #header.header-v2 { position: fixed !important; top: 0; left: 0; right: 0; height: 150px; background: #fff; box-shadow: none; transition: box-shadow .22s ease; }
  body #header.header-v2.mobile-scrolled { box-shadow: 0 3px 12px #00302418; }
  body .header-v2 .header-bottom { grid-template-columns: minmax(0,1fr) 44px 44px 44px !important; grid-template-rows: 56px 44px !important; gap: 0 0 !important; padding: 0 0 6px !important; }
  body .header-v2 .header-bottom > .hv2-cat { display: none !important; }
  body .header-v2 .logo-desktop img { height: 32px !important; width: 32px !important; }
  body .header-v2 .logo-desktop a { gap: 5px; }
  body .header-v2 .hv2-brand { display: block !important; }
  body .header-v2 .hv2-brand b { font-size: 17px; }
  body .header-v2 .hv2-action, body .header-v2 #cart .cart-btn, body .header-v2 .openMenu { width: 44px !important; height: 44px !important; }
  body .header-v2 #search { grid-column: 1 / 4; grid-row: 2; min-width: 0; width: auto; height: 44px; margin-right: 8px !important; transition: opacity .2s, transform .22s, visibility .22s; }
  body .header-v2 #search .search-input { height: 44px !important; font-size: 14px !important; padding-left: 40px !important; padding-right: 8px !important; }
  body .header-v2 .mobile-catalog-button { display: flex; grid-column: 4; grid-row: 2; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 14px; background: #003024; color: white; transition: opacity .2s, transform .22s, visibility .22s; }
  body .header-v2 .hv2-quick { height: 44px; overflow: hidden; transition: opacity .2s, transform .22s, visibility .22s; }
  body .header-v2 .hv2-quick-row { height: 44px; padding: 2px 15px 4px !important; align-items: center; }
  body .header-v2 .hv2-quick-row a { padding-top: 7px; padding-bottom: 7px; }
  body #header.mobile-collapsed { background: linear-gradient(#fff 0 56px, transparent 56px); box-shadow: none; pointer-events: none; }
  body #header.mobile-collapsed .header-bottom_wrap { background: transparent; }
  body #header.mobile-collapsed .header-bottom > :not(#search):not(.mobile-catalog-button) { pointer-events: auto; position: relative; z-index: 1; }
  body .mobile-collapsed #search, body .mobile-collapsed .mobile-catalog-button, body .mobile-collapsed .hv2-quick { opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden; }
  body .header-v2 .header-bottom_wrap { height: 106px; }
  
  body .header-v2 .mobile-catalog-panel:not([hidden]) { display: block; }
  body .header-v2 .mobile-catalog-panel { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100dvh - 150px); overflow-y: auto; overscroll-behavior: contain; padding: 12px 15px 20px; background: #fff; border-top: 1px solid #e4e8e3; border-radius: 0 0 18px 18px; box-shadow: 0 15px 30px #00302424; }
  body .header-v2 .mobile-catalog-tabs { display: flex; padding: 4px; gap: 4px; border-radius: 14px; background: #f3f0ea; margin-bottom: 12px; }
  body .header-v2 .mobile-catalog-tabs button { flex: 1; min-width: 0; min-height: 44px; padding: 6px; border: 0; border-radius: 11px; background: transparent; color: #003024; font-size: 14px; }
  body .header-v2 .mobile-catalog-tabs [aria-selected=true] { background: #003024; color: white; }
  body .header-v2 .mobile-catalog-panel .catalog-panel.catalog-mega { position: static !important; width: 100% !important; max-width: none; max-height: none; margin: 0; padding: 16px 16px 20px; border: 1px solid #e4e8e3; border-radius: 16px; box-shadow: none; overflow: visible; }
  body .header-v2 .mobile-catalog-panel .catalog-panel[hidden] { display: none !important; }
  body .header-v2 .mobile-catalog-panel .mega-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; }
  body .header-v2 .mobile-catalog-panel .mega-promos { display: grid; grid-template-columns: minmax(0,1fr); }
  body .header-v2 .mobile-catalog-panel .hv2-promo-card img, body .header-v2 .mobile-catalog-panel .mega-promo img { max-height: 90px; width: auto; object-fit: contain; }
  body .header-v2 .mobile-catalog-panel .mega-heading { flex-wrap: wrap; gap: 8px; }
  body .header-v2.mobile-nav-open .header-top_wrap { max-height: calc(100dvh - 150px) !important; }
  body .fixed-links { z-index: 101; top: auto; bottom: max(16px, env(safe-area-inset-bottom)); }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  body #header.header-v2, body .header-v2 .header-bottom_wrap, body .header-v2 #search, body .header-v2 .mobile-catalog-button, body .header-v2 .hv2-quick { transition: none; }
}

/* Мобилка: плавающие WhatsApp/телефон не перекрывают открытый каталог и бургер-меню */
@media (max-width: 767px) {
  body:has(.mobile-catalog-panel:not([hidden])) .fixed-links,
  body:has(#header.mobile-nav-open) .fixed-links { opacity: 0; pointer-events: none; transition: opacity .2s; }
}

/* Подвал: колонки ссылок — аккордеон на мобилке (for_claude/12), на десктопе как в вёрстке */
#footer .footer-acc__toggle, #footer .footer-menu .footer-acc__all { display: none; }
@media (min-width: 768px) {
  #footer .footer-item4 .footer-acc + .footer-acc { margin-top: 20px; }
}
@media (max-width: 767px) {
  #footer .footer-center { display: block; padding-top: 4px; }
  #footer .footer-center .footer-item { width: 100%; max-width: none; margin: 0; padding: 0; }
  #footer .footer-acc { border-bottom: 1px solid #e0ddd2; }
  #footer .footer-acc__head { display: none; }
  #footer .footer-acc__toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin: 0;
    padding: 18px 0; background: none; border: 0; font: inherit; font-size: 17px; font-weight: 600; color: #003024; text-align: left; cursor: pointer; }
  #footer .footer-acc__toggle svg { display: block !important; flex: none; width: 20px; height: 20px; color: #667360; transition: transform .3s ease; }
  #footer .footer-acc.is-open .footer-acc__toggle svg { transform: rotate(180deg); }
  #footer .footer-acc .footer-menu { columns: auto !important; column-count: auto !important; display: block; max-height: 0; overflow: hidden; opacity: 0; visibility: hidden;
    transition: max-height .3s ease, opacity .3s ease, visibility .3s; }
  #footer .footer-acc.is-open .footer-menu { opacity: 1; visibility: visible; }
  #footer .footer-acc .footer-menu a { display: block; }
  #footer .footer-acc .footer-menu a:last-child { margin-bottom: 16px; }
  #footer .footer-menu .footer-acc__all { display: block; color: #003024 !important; font-weight: 600; }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  #footer .footer-acc .footer-menu, #footer .footer-acc__toggle svg { transition: none; }
}

/* Мобилка: аккуратность */
@media (max-width: 767px) {





  /* 1. Фото занимает только остаток первого экрана; текст и обе кнопки сохраняются. */
  body .catalog-main .category-heading.catalog-presentation { min-height: 0; }
  body .catalog-presentation > div:first-child { padding: 16px 0; }
  body .catalog-presentation-photo { height: var(--mobile-hero-art, 100px); min-height: 0; object-fit: cover; }
  body .catalog-presentation::after { height: var(--mobile-hero-art, 100px); }
  body .catalog-presentation .page-actions { margin-top: 16px; gap: 10px; }
  body.pv2 .story-hero { min-height: 0; margin-bottom: 36px !important; }
  body.pv2 .story-hero-copy { padding: 24px 20px !important; }
  body.pv2 .story-hero .page-actions { margin-top: 18px; gap: 10px; }
  body.pv2 .pv2-hero { gap: 16px; padding: 20px 18px; }
  body.pv2 .pv2-facts { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  body.pv2 .pv2-facts li { min-width: 0; padding: 12px; gap: 4px; }
  body.pv2 .pv2-facts b { font-size: 20px; overflow-wrap: anywhere; }
  body.pv2 .pv2-facts span { font-size: 12px; line-height: 1.3; }
  body.page-energy .en-hero-copy { padding: 24px 20px 16px; }
  body.page-energy .en-hero .category-intro { margin-bottom: 18px !important; }
  body.page-energy .en-facts { display: none; }
  body.page-energy .en-hero-art { height: var(--mobile-hero-art, 100px); min-height: 0; overflow: hidden; }
  body.page-energy .en-can { height: 100%; bottom: 0; }
  body .home-v2 .hv-hero { min-height: 0; height: calc(100svh - 158px); max-height: 520px; }
  /* 2. Единый ритм секций и компактные преимущества 2 × 2. */
  body .home-v2 .hv-brands, body .home-v2 .hv-cats,
  body .home-v2 .produc-flex_feat, body .home-v2 .hv-promo,
  body .home-v2 .hv-videos, body .home-v2 .hv-features { margin-bottom: 36px !important; }
  body .home-v2 .hv-sec--sub { margin-top: 0; }
  body .home-v2 .hv-features { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  body .home-v2 .hv-feature { padding: 16px 12px; gap: 12px; min-height: 0; }
  body .home-v2 .hv-feature-icon { width: 40px; height: 40px; border-radius: 12px; }
  body .home-v2 .hv-feature-icon svg { width: 24px; height: 24px; }
  body .home-v2 .hv-feature h3 { font-size: 16px; line-height: 1.2; }
  body .home-v2 .hv-feature p { font-size: 12px; line-height: 1.45; }
  /* 3. Связанные товары и плавающие контакты над панелью покупки. */
  body:has(.detail-sticky-buy.is-visible) .fixed-links { bottom: calc(var(--mobile-buy-height, 74px) + 12px); }
  body .detail-related, body .related-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  body .detail-related .catalog-card { min-width: 0; min-height: 0; padding-bottom: 16px; }
  body .detail-related .catalog-product-name { padding: 0 10px; font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; min-height: 3.9em; }
  body .detail-related .catalog-price { padding: 0 10px; margin-top: 12px; font-size: 16px; }
  /* 4. Корзина: читаемые названия и интервалы формы. */
  body .cart-line h2, body .cart-line h2 a { font-size: 17px !important; line-height: 1.3 !important; margin: 0 0 12px; }
  body .cart-line > div { min-width: 0; }
  body .cart-summary .cart-whatsapp + p { margin-top: 16px; }
  body #cart-order-form { gap: 14px; }
  body #cart-order-form input, body #cart-order-form textarea { box-sizing: border-box; font-size: 16px; }
  /* 5–6. Неразрывные телефоны и одинаковый нижний отступ. */
  body a[href^="tel:"], body .mobile-phone { white-space: nowrap; }
  body main.page-main, body main.catalog-main { padding-bottom: 40px !important; }
  body main > :last-child { margin-bottom: 0 !important; }
  body.pv2 .page-tile { min-height: 0; }

  /* Город: отдельная фотография также занимает только остаток экрана. */
  body:not(.pv2) .story-hero { min-height: 0; margin-bottom: 36px; }
  body:not(.pv2) .story-hero-copy { padding: 20px 18px; }
  body:not(.pv2) .story-hero > img { height: var(--mobile-hero-art, 80px); min-height: 0; width: 100%; object-fit: cover; }
  body .detail-related .catalog-product-photo { height: 150px; min-height: 0; }
  body .detail-related .catalog-product-photo img { height: 100%; object-fit: contain; }

  /* Кнопки в одном ряду одинаковой высоты; длинные KZ-подписи переносятся внутри. */
  body .catalog-main .category-heading.catalog-presentation { gap: 0; }
  body .catalog-presentation .catalog-presentation-model { display: none; }
  body .catalog-presentation .page-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  body .catalog-presentation .page-actions > a { min-width: 0; min-height: 48px; height: auto; padding: 8px !important; line-height: 1.25; text-align: center; justify-content: center; white-space: normal; }
  body .detail-sticky-buy { box-sizing: border-box; max-width: 100%; gap: 10px !important; }
  body .detail-sticky-buy > span { min-width: 0; white-space: nowrap; font-size: 18px; }
  body .detail-sticky-buy .page-primary { flex-shrink: 0; padding: 12px 16px; }

  body.page-energy .en-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-bottom: 0; }
  body.page-energy .en-actions .en-btn { min-width: 0; height: auto; min-height: 48px; padding: 8px; line-height: 1.25; text-align: center; white-space: normal; }
  body .catalog-presentation h1 { margin-bottom: 14px !important; }

  /* 6. Старый margin подвала добавлял ещё 50px поверх отступов main. */
  body #footer { margin-top: 0; }
  body.pv2 main.page-main > :last-child { margin-bottom: 0 !important; }

  /* 7. Внутренние секции текстовых страниц: ровный мобильный ритм. */
  body.pv2 main.page-main > :is(.page-section,.page-band,.page-three-col,.school-gallery):not(:last-child) { margin-bottom: 36px !important; }
  body .policy-content > :last-child { margin-bottom: 0; }

  /* Вложенная карусель имела собственные 36px: вместе с секцией получалось 72px. */
  body .home-v2 .hv-brands > .store-carousel,
  body .home-v2 .produc-flex_feat > .store-carousel { margin-bottom: 0 !important; }
  body .catalog-main .catalog-product-name { min-height: 0; }

  /* Заголовок и ссылка раздела не сдавливают друг друга на узком экране, особенно KZ. */
  body .page-section-head { flex-wrap: wrap; align-items: flex-start; gap: 12px; }
  body .page-section-head > :is(h2,h3) { flex-basis: 100%; margin-bottom: 0 !important; }
  body .page-section-head > a { flex-shrink: 0; }

  /* У связанных карточек убираем двойной боковой padding: модель помещается в три строки. */
  body .detail-related .catalog-card { padding: 0 0 14px; }
  body .detail-related .catalog-product-name { font-size: clamp(12px, 3.5vw, 14px); }

  body .detail-related .catalog-product-name { text-wrap: wrap; }

  body .detail-page > section:last-of-type,
  body.page-energy main.catalog-main > .category-guide.en-guide:last-child { margin-bottom: 0 !important; }

  body .detail-related .catalog-product-name { padding-right: 4px; padding-left: 4px; }
}

@media (max-width: 560px) and (max-height: 650px) {





  body .catalog-main .catalog-presentation h1 { font-size: 28px; }
  body .catalog-presentation .category-intro { font-size: 14px; line-height: 1.4; }
  body .catalog-presentation-model { display: none; }
  body.pv2 .story-hero h1, body.pv2 .pv2-hero h1 { font-size: 30px !important; }
  body.pv2 .story-hero-copy { padding: 18px 16px !important; }
  body.pv2 .story-hero .page-lead, body.pv2 .pv2-hero .page-lead { font-size: 14px !important; line-height: 1.4; }
  body.pv2 .story-hero .page-actions { margin-top: 12px; }
  body.pv2 .pv2-hero { padding: 16px; gap: 12px; }
  body.pv2 .pv2-facts li { padding: 8px; }
  body.pv2 .pv2-facts b { font-size: 17px; }
  body.page-energy .en-hero-art { display: none; }
  body.page-energy .en-hero-copy { padding: 20px 16px; }

  body:not(.pv2) .story-hero h1 { font-size: 28px !important; line-height: 1.15; }
  body:not(.pv2) .story-hero-copy { padding: 16px; }
  body:not(.pv2) .story-hero .page-eyebrow { display: none; }
  body:not(.pv2) .story-hero .page-lead { font-size: 14px; line-height: 1.4; }
  body:not(.pv2) .story-hero .page-actions { margin-top: 12px; }

  body .catalog-presentation > div:first-child { padding-top: 10px; padding-bottom: 10px; }
  body .catalog-presentation .page-actions { margin-top: 12px; }
  body.page-energy .en-hero .category-intro { font-size: 14px !important; line-height: 1.4 !important; }

  body.pv2 .pv2-hero .pv2-facts span { display: none; }
  body.pv2 .pv2-hero h1 { margin-bottom: 12px !important; }
  body.page-energy .en-hero h1 { margin-bottom: 14px !important; }
  body.page-energy .en-hero-copy { padding: 16px; }
}

@media (max-width: 560px) {




  body .catalog-main .seo-text h2,
  body .catalog-main .category-editorial h2 { font-size: 24px !important; line-height: 1.2 !important; }
  body.page-energy .catalog-main :is(.en-seo,.en-stories) > h2 { font-size: 24px !important; line-height: 1.1 !important; }

  /* Длинные названия товара не занимают по пять строк крупным десктопным кеглем. */
  body .detail-page .detail-summary h1 { font-size: clamp(24px, 7vw, 28px); line-height: 1.15; }
}
/* ПЛАВНОСТЬ: постоянный резерв шапки, доступная внутренняя прокрутка панелей. */
@media (max-width:767px) {
  body .header-v2 .header-top_wrap {
    display:block !important; position:absolute !important; top:150px !important;
    left:0 !important; right:0 !important; width:auto !important;
    max-height:calc(100dvh - 150px) !important; overflow-y:auto !important;
    overscroll-behavior:contain; box-sizing:border-box; padding:0 !important;
    background:#fff !important; z-index:10; border-radius:0 0 20px 20px;
  }
  body .header-v2 .header-top_wrap[hidden] { display:none !important; }
  body .header-v2 .header-top { display:flex !important; flex-direction:column !important; align-items:stretch !important; padding:6px 15px 18px !important; }
  body .header-v2 .header-top > .mobile-header-section { display:block !important; }
  body .header-v2 #mainnav { display:block !important; position:static !important; }
  body .header-v2 .mobile-catalog-panel { box-sizing:border-box; }
  body .header-v2 .mobile-catalog-panel[hidden], body #catalog-filters[hidden] { display:none !important; }
}
details > summary::after { transition:transform .28s ease; }
body.page-energy .en-faq details[data-smooth-open=false] > summary::after { transform:rotate(0deg) !important; }
@media(min-width:993px) { .filter-group[data-smooth-open=false] summary::after { transform:translateY(-70%) rotate(45deg) !important; } }
[aria-expanded] svg { transition:transform .25s ease; }
.hv2-lang-btn[aria-expanded=true] svg:last-child { transform:rotate(180deg); }
@media (prefers-reduced-motion:reduce) {
  details > summary::after, [aria-expanded] svg { transition:none !important; }
}
/* Плюс остаётся одним символом и поворачивается вместо мгновенной замены на минус. */
body .category-faq summary::after,
body .page-main details > summary::after { content:'+' !important; transform:rotate(0deg); transition:transform .28s ease; }
body .category-faq details[data-smooth-open=true] > summary::after,
body .page-main details[data-smooth-open=true] > summary::after { transform:rotate(45deg); }
body .category-faq details[data-smooth-open=false] > summary::after,
body .page-main details[data-smooth-open=false] > summary::after { transform:rotate(0deg); }
@media (prefers-reduced-motion:reduce) {
  body .category-faq summary::after, body .page-main details > summary::after { transition:none; }
}

/* Мобилка: тень свёрнутой шапки — под видимой панелью (56px), а не по низу полного блока 150px */
@media (max-width: 767px) {
  body #header.header-v2.mobile-scrolled.mobile-collapsed { box-shadow: none; }
  body #header.header-v2::after { content: ''; position: absolute; left: 0; right: 0; top: 56px; height: 12px; pointer-events: none;
    background: linear-gradient(#0030241f, #00302400); opacity: 0; transition: opacity .22s ease; }
  body #header.header-v2.mobile-collapsed::after { opacity: 1; }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  body #header.header-v2::after { transition: none; }
}
@media (max-width: 767px) {
  /* в свёрнутой шапке кнопки получают position:relative — у бургера из вёрстки есть top, он сдвигал кнопку вниз */
  body #header.mobile-collapsed .header-bottom > .openMenu { top: auto; bottom: auto; }
}

/* Живой поиск в шапке */
body .header-v2 #search-autocomplite.live-search {
  position: absolute;
  z-index: 40;
  inset: calc(100% + 8px) 0 auto;
  width: 100%;
  height: auto;
  max-height: min(460px, var(--live-search-space, 50vh));
  margin: 0;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  color: var(--hv-ink, #003024);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0,30,22,.18);
  animation: live-search-appear .18s ease-out;
}
body .header-v2 #search-autocomplite.live-search[hidden] { display: none; }
.live-search-product, .live-search-all, .live-search-empty {
  padding: 8px 14px;
  color: inherit;
  font-size: 14px;
  line-height: 1.3;
}
.live-search-product, .live-search-all {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #eeeae2;
  text-decoration: none;
}
.live-search-product img {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.live-search-name { display: block; overflow-wrap: anywhere; }
.live-search-name mark {
  padding: 0;
  color: inherit;
  background: #e2eee5;
  font-weight: 700;
}
.live-search-prices {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 3px;
  font-weight: 700;
}
.live-search-prices s { color: #626a65; font-weight: 400; }
.live-search-all {
  position: sticky;
  bottom: 0;
  min-height: 44px;
  justify-content: center;
  border: 0;
  border-top: 1px solid #eeeae2;
  color: var(--hv-green, #003024);
  background: #fff;
  font-weight: 700;
}
.live-search-empty { text-align: center; }
.live-search [role="option"]:hover,
.live-search [aria-selected="true"] {
  color: var(--hv-green, #003024);
  background: #f3f0ea;
  text-decoration: none;
}
@keyframes live-search-appear {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  body .header-v2 #search-autocomplite.live-search { animation: none; }
}

/* Бренды — алфавитный указатель */
.brands-alphabet {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 24px 0 32px;
}
.brands-alphabet > span {
    flex-basis: 100%;
    font-weight: 600;
}
.brands-alphabet a,
.brands-grid a {
    border: 1px solid #ddd8d1;
    border-radius: 12px;
    background: #fff;
    color: inherit;
    text-decoration: none;
}
.brands-alphabet a {
    display: grid;
    place-items: center;
    min-width: 36px;
    min-height: 36px;
}
.brands-group h2 {
    margin: 0 0 12px;
    scroll-margin-top: 180px;
}
.brands-group {
    margin-bottom: 24px;
}
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 145px), 1fr));
    gap: 12px;
    padding: 0;
    margin: 0;
    max-width: 850px;
    list-style: none;
}
.brands-grid a {
    display: flex;
    min-height: 80px;
    height: 100%;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    font-weight: 600;
}
.brands-grid img {
    width: 54px;
    height: 34px;
    object-fit: contain;
}
.brands-grid span {
    min-width: 0;
    overflow-wrap: anywhere;
}
.brands-alphabet a:hover,
.brands-grid a:hover {
    background: #f8f5f0;
    border-color: #a99d8d;
}

/* Описания товаров */
.detail-page .detail-original-desc--single {
  grid-template-columns: minmax(0, 1fr);
}
.detail-page .detail-original-desc h2 {
  margin-bottom: 16px;
}
.detail-page .detail-spec-section .spec-table {
  width: 100%;
  table-layout: fixed;
}
.detail-page .detail-spec-section .spec-table :is(th, td) {
  overflow-wrap: anywhere;
}

/* Города — офисы, карта и витрина */
.city-page .city-banner { min-height: 0; }
.city-page .city-banner .hv-slide-copy { padding-block: 24px; }
.city-page .city-intro p + p { margin-top: .7em; }
.city-page .contact-layout { margin-block: 24px; }
.city-page .contact-map iframe {
  display: block;
  width: 100%;
  height: clamp(320px, 45vw, 520px);
  border: 1px solid #e4e9e3;
  border-radius: 20px;
}
.city-page .city-showcase,
.city-page .city-order { margin-block: 38px; }
.city-page .city-showcase > h2,
.city-page .city-order > h2 { margin-bottom: 18px; }
.city-page .city-order .page-three-col { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.city-page .city-order img,
.city-page .city-seo-image {
  display: block;
  width: min(100%, 560px);
  margin-block: 16px;
  border-radius: 16px;
}
.city-page .brand_item img { object-fit: contain; }
@media (max-width: 991px) {
  .city-page .city-order .page-three-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  body .city-page .city-banner { height: 285px; }
  body:not(.pv2) .city-page .story-hero > img { display: block; height: 180px; }
  body .city-page .city-banner .hv-slide-copy { justify-content: center; }
  .city-page .city-banner .hv-slide-title { font-size: clamp(27px, 8vw, 36px); }
  .city-page .city-banner .hv-slide::before { background: linear-gradient(90deg, #04100be8, #04100b55); }
  .city-page .city-order .page-three-col { grid-template-columns: 1fr; }
}

/* Школа бариста */
body.pv2-school .school-gallery-title {
  margin-bottom: 20px;
}
body.pv2-school .school-enrollment {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  scroll-margin-top: 185px;
}
.school-enrollment address,
#school-enrollment-form {
  display: grid;
  gap: 12px;
}
.school-enrollment address {
  margin: 22px 0 0;
  font-style: normal;
  justify-items: start;
}
#school-enrollment-form label {
  display: grid;
  gap: 6px;
  color: #fff;
}
#school-enrollment-form input,
#school-enrollment-form select {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #d8d3ca;
  border-radius: 8px;
  background: #fff;
  color: #172c24;
}
#school-enrollment-form .page-actions {
  margin-top: 0;
}
#schoolForm_forms_flash:empty {
  display: none;
}
.school-form-notice {
  padding: 12px 16px;
  border-radius: 8px;
}
.school-form-notice.is-error { background: #ffebe8; color: #81241b; }
.school-form-notice.is-success { background: #e0f5e8; color: #194d32; }
.school-form-notice ul { margin: 6px 0 0; padding-left: 20px; }

@media (max-width: 767px) {
  body.pv2-school .school-enrollment {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    scroll-margin-top: 160px;
  }
}

/* Личный кабинет и оформление заказа */
.account-page { padding-bottom: 64px; }
.account-layout { display: grid; grid-template-columns: minmax(170px, 235px) minmax(0, 1fr); gap: 24px; align-items: start; }
.account-nav, .account-panel { border: 1px solid #e3dbd0; border-radius: 16px; background: #fff; padding: clamp(16px, 3vw, 32px); min-width: 0; }
.account-nav { display: grid; gap: 10px; }
.account-nav a, .account-links a { text-decoration: underline; text-underline-offset: 3px; }
.account-nav [aria-current="page"] { font-weight: 700; }
.account-nav button, .account-text-button { padding: 0; border: 0; background: transparent; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.account-auth { max-width: 530px; margin-inline: auto; }
.account-panel h1, .account-panel h2, .account-panel h3 { margin-top: 0; }
.account-form, #cart-address-fields { display: grid; gap: 12px; }
.account-form > label { display: grid; gap: 5px; }
.account-form input:not([type="checkbox"], [type="hidden"]), #cart-order-form select { width: 100%; min-width: 0; min-height: 42px; border: 1px solid #d9d4cc; background: #fff; border-radius: 8px; padding: 9px; font: inherit; color: inherit; }
.account-form .page-primary { justify-self: start; border: 0; cursor: pointer; }
.account-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; }
.account-address, .account-order { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid #e3dbd0; }
.account-address > form + form { margin-top: 12px; }
.account-order pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.account-favorite { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 18px; padding-block: 12px; border-bottom: 1px solid #e3dbd0; }
.account-form .account-consent, #cart-order-form .account-consent { display: flex; align-items: flex-start; gap: 9px; }
.account-consent input[type="checkbox"], #cart-order-form .account-consent input[type="checkbox"] { width: auto; flex: none; margin-top: 4px; }
#cart-order-form [hidden] { display: none; }
#cart-order-form p { margin: 0; }
.account-form [data-validate-error]:empty { display: none; }
@media (max-width: 767px) {
  .account-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .account-nav { display: flex; flex-wrap: wrap; column-gap: 16px; }
  .account-page { padding-bottom: 32px; }
}

/* Формы заявок и отзывы о товарах */
.extra-callback-trigger, .extra-review-links button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #126247;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.extra-callback-trigger { font-size: 12px; white-space: nowrap; }
.extra-review-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0; }
.extra-review-links a { color: #126247; text-decoration: underline; }
.extra-product-request { margin-top: 8px; }
.extra-reviews { scroll-margin-top: 170px; }
.extra-review { padding: 16px; margin: 12px 0; border: 1px solid #dce6e1; border-radius: 12px; }
.extra-review p { white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 0; }
.extra-form-dialog {
  width: min(470px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  border: 1px solid #dce6e1;
  border-radius: 18px;
  padding: 0;
  margin: auto;
  color: #17332a;
  background: #fff;
  box-shadow: 0 16px 54px #001e2233;
}
.extra-form-dialog::backdrop { background: #102c256e; }
.extra-form-dialog[open] { animation: extra-form-enter .2s ease-out both; }
@keyframes extra-form-enter { from { opacity: 0; transform: translateY(10px); } }
.extra-form-card { position: relative; padding: clamp(18px, 5vw, 30px); }
.extra-form-card h2 { margin: 0 30px 14px 0; font-size: clamp(20px, 5vw, 25px); }
.extra-form-close {
  position: absolute; right: 10px; top: 10px;
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: #eef5f1; color: inherit; font-size: 24px; cursor: pointer;
}
.extra-form-card form { display: grid; gap: 12px; }
.extra-form-card [data-extra-flash]:empty { display: none; }
.extra-form-card label { display: grid; gap: 4px; }
.extra-form-card input:not([type=radio]), .extra-form-card textarea {
  width: 100%; padding: 9px 12px; border: 1px solid #baccc3; border-radius: 9px;
  color: inherit; font: inherit; font-size: 16px;
}
.extra-form-card textarea { resize: vertical; }
.extra-form-card fieldset { border: 0; margin: 0; padding: 0; }
.extra-form-card legend { margin: 0 0 3px; border: 0; font: inherit; color: inherit; }
.extra-form-stars { display: flex; gap: 4px; }
.extra-form-stars label { position: relative; display: block; cursor: pointer; }
.extra-form-stars input { position: absolute; inset: 0; opacity: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.extra-form-stars span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 6px; color: #52635b; font-size: 28px; }
.extra-form-stars label:has(:checked) span,
.extra-form-stars label:has(~ label :checked) span { color: #a66006; }
.extra-form-stars input:focus-visible + span { outline: 2px solid #126247; }
.extra-form-flash { padding: 10px 12px; border-radius: 8px; }
.extra-form-flash--danger { background: #ffece8; color: #8b251a; }
.extra-form-flash--success { background: #e9f6ed; color: #175b37; }
@media (prefers-reduced-motion: reduce) { .extra-form-dialog[open] { animation: none; } }
