/* SAPSAN v14 — точная оболочка опубликованного макета. */
:root {
  --v14-ink: #071412;
  --v14-cream: #e9e7e1;
  --v14-paper: #f7f6f2;
  --v14-red: #f03738;
  --v14-line: rgba(7, 20, 18, .18);
}

html { scroll-behavior: smooth; }
body.store-v14 {
  margin: 0;
  overflow-x: hidden;
  background: var(--v14-paper);
  color: var(--v14-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.store-v14 a { color: inherit; text-decoration: none; }
.store-v14 button, .store-v14 a { font-family: inherit; }
.store-v14 img { display: block; max-width: 100%; }

.announcement {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 7px 4vw;
  background: var(--v14-red);
  color: #fff;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.announcement p { margin: 0; }
.announcement a { display: flex; gap: 8px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.8); }

.siteHeader {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  height: 82px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 3.4vw;
  background: var(--v14-ink);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.22);
  transition: background-color .2s ease, box-shadow .2s ease, backdrop-filter .2s ease;
}
.home-grind .siteHeader { margin-bottom: -82px; background: transparent; }
.siteHeader.is-scrolled { background: rgba(7,20,18,.96); box-shadow: 0 10px 32px rgba(0,0,0,.16); backdrop-filter: blur(14px); }
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 79;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  background: var(--v14-ink);
  color: #fff;
  box-shadow: 0 10px 28px rgba(3,9,20,.2);
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, background-color .2s ease;
}
.back-to-top.has-chat { right: 156px; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top:hover { background: var(--v14-red); }
.v14Logo, .footerLogo { color: #fff; font-size: 27px; font-weight: 800; letter-spacing: -.055em; }
.v14Logo span { margin-left: 3px; font-size: 8px; vertical-align: top; }
.mainNav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 44px); }
.mainNav a { position: relative; color: #fff; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.mainNav a::after { content: ""; position: absolute; left: 0; bottom: -7px; width: 100%; height: 1px; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.mainNav a:hover::after { transform: scaleX(1); }
.headerActions { justify-self: end; display: flex; align-items: center; gap: 14px; }
.iconButton, .menuButton, .favoriteButton {
  position: relative;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.iconButton svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.favoriteButton { font-size: 20px; }
.favoriteButton b { position: absolute; top: -2px; right: -5px; min-width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; background: var(--v14-red); color: #fff; font-size: 9px; }
.cartLink { border: 0; background: transparent; color: #fff; cursor: pointer; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.cartLink b { display: inline-grid; place-items: center; min-width: 23px; height: 23px; margin-left: 5px; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; font-size: 10px; }
.menuButton { display: none; font-size: 22px; }
.v14-mobile-only { display: none; }
.siteHeader .search-panel { position: absolute; top: 82px; left: 0; width: 100%; margin: 0; background: var(--v14-ink); border-color: rgba(255,255,255,.16); }

/* Главная страница: значения идентичны опубликованному макету. */
.home-grind .v13-hero { min-height: min(850px, calc(100vh - 34px)); padding: 164px 5vw 74px; }
.home-grind .v13-hero-image { background-position: 68% 19%; filter: contrast(1.04) saturate(.76); transform: scale(1.01); }
.home-grind .v13-hero-shade { background: rgba(1,12,10,.45); }
.home-grind .v13-hero h1 { max-width: 1000px; font-size: clamp(74px,11.2vw,172px) !important; line-height: .82; }
.home-grind .v13-lead { max-width: 550px; margin-top: 28px; font-size: clamp(16px,1.35vw,20px); line-height: 1.55; }
.home-grind .v13-actions { margin-top: 34px; }
.home-grind .v13-hero-note { right: 4vw; bottom: 62px; }
.v13-scroll-cue { position: absolute; z-index: 2; right: 4vw; top: 145px; display: flex; gap: 12px; color: #fff; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; writing-mode: vertical-rl; }

.home-grind .v13-category-card { min-height: 510px; }
.home-grind .v13-editorial { min-height: 860px; }
.home-grind .v13-product-rail { grid-auto-columns: minmax(300px,29vw); gap: 16px; }
.home-grind .v13-products .product-card { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.home-grind .v13-products .product-image { height: 520px; border-radius: 0; background: #e7e5df; }
.home-grind .v13-products .product-image img { transition: transform .35s ease; }
.home-grind .v13-products .product-card:hover .product-image img { transform: scale(1.018); }
.home-grind .v13-products .product-body { padding: 20px 2px; }
.home-grind .v13-products .product-body > small { color: rgba(7,20,18,.55); font-size: 11px; }
.home-grind .v13-products .product-body h3 { margin: 7px 0 10px; font-size: 19px; letter-spacing: -.03em; }
.home-grind .v13-products .product-body > p { margin: 0 0 10px; color: rgba(7,20,18,.55); font-size: 11px; }
.home-grind .v13-products .product-rating { min-height: 18px; margin: 0 0 12px; font-size: 10px; }
.home-grind .v13-products .product-bottom { border-top: 1px solid var(--v14-line); padding-top: 15px; }
.home-grind .v13-products .product-bottom a { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }

/* Внутренние страницы продолжают тот же визуальный язык. */
.store-v14:not(.home-grind) main { min-height: 55vh; }
.store-v14:not(.home-grind) .page-hero { background: var(--v14-cream); }
.store-v14:not(.home-grind) .page-hero h1,
.store-v14:not(.home-grind) .section-title,
.store-v14:not(.home-grind) .product-info h1 {
  color: var(--v14-ink);
  font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  font-weight: 750;
  letter-spacing: -.06em;
  line-height: .88;
  text-transform: uppercase;
}
.store-v14:not(.home-grind) .primary-button { border-radius: 0; background: var(--v14-red); }
.store-v14:not(.home-grind) .secondary-button { border-radius: 0; }
.store-v14:not(.home-grind) .product-card,
.store-v14:not(.home-grind) .panel,
.store-v14:not(.home-grind) .policy-card { border-radius: 0; box-shadow: none; }

.v14Footer { padding: 80px 5vw 26px; background: var(--v14-ink); color: #fff; }
.footerTop { display: grid; grid-template-columns: 2fr repeat(3,1fr); gap: 6vw; padding-bottom: 76px; }
.footerTop > div { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; }
.footerTop > div:first-child p { max-width: 300px; color: rgba(255,255,255,.55); line-height: 1.6; }
.footerTop h3 { margin: 2px 0 13px; color: rgba(255,255,255,.45); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.footerTop a, .footerTop span { color: #fff; font-size: 13px; }
.footerBottom { display: grid; grid-template-columns: 1fr auto auto 1fr; gap: 30px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.45); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.footerBottom a { color: inherit; }
.footerBottom span:last-child { text-align: right; }

/* Корзина визуально совпадает с большим выезжающим блоком макета. */
.store-v14 .drawer-panel { width: min(580px,100%); padding: 0; border-radius: 0; background: var(--v14-paper); color: var(--v14-ink); }
.store-v14 .drawer-head { padding: 34px 36px 26px; border-bottom: 1px solid var(--v14-line); }
.store-v14 .drawer-head small { color: rgba(7,20,18,.5); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.store-v14 .drawer-head h2 { margin: 8px 0 0; font-size: 34px; letter-spacing: -.05em; }
.store-v14 .drawer-items { padding: 10px 36px; }
.store-v14 .drawer-items > article { border-bottom: 1px solid var(--v14-line); }
.store-v14 .drawer-total { margin: 0; padding: 24px 36px 10px; border-top: 1px solid var(--v14-line); }
.store-v14 .drawer-panel > .primary-button { margin: 8px 36px 30px; width: calc(100% - 72px); min-height: 58px; border-radius: 0; background: var(--v14-red); }

@media (max-width: 1100px) {
  .siteHeader { grid-template-columns: 1fr auto; }
  .mainNav { position: absolute; top: 82px; left: 0; width: 100%; display: none; flex-direction: column; align-items: flex-start; gap: 0; padding: 20px 4vw; background: var(--v14-ink); }
  .mainNav.open { display: flex; }
  .mainNav a { width: 100%; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .mainNav a::after { display: none; }
  .menuButton { display: grid; }
  .v14-mobile-only { display: block; }
  .footerTop { grid-template-columns: 1.6fr repeat(3,1fr); gap: 3vw; }
}

@media (max-width: 760px) {
  .announcement { min-height: 30px; font-size: 9px; }
  .announcement a { display: none; }
  .siteHeader { height: 68px; padding: 0 18px; }
  .home-grind .siteHeader { margin-bottom: -68px; }
  .v14Logo { font-size: 23px; }
  .siteHeader .iconButton, .favoriteButton { display: none; }
  .cartLink { font-size: 0; }
  .cartLink b { font-size: 10px; }
  .mainNav { top: 68px; padding-inline: 20px; }
  .siteHeader .search-panel { top: 68px; }
  .home-grind .v13-hero { min-height: 780px; padding: 130px 20px 44px; }
  .home-grind .v13-hero-image { background-position: 57% center; }
  .home-grind .v13-hero h1 { font-size: clamp(65px,21vw,96px) !important; }
  .v13-scroll-cue { display: none; }
  .home-grind .v13-products .product-image { height: 470px; }
  .v14Footer { padding: 64px 20px 24px; }
  .footerTop { grid-template-columns: 1fr 1fr; gap: 45px 24px; }
  .footerTop > div:first-child { grid-column: 1 / -1; }
  .footerBottom { grid-template-columns: 1fr; gap: 12px; }
  .footerBottom span:last-child { text-align: left; }
  .store-v14 .drawer-head, .store-v14 .drawer-items { padding-left: 20px; padding-right: 20px; }
  .store-v14 .drawer-total { padding-left: 20px; padding-right: 20px; }
  .store-v14 .drawer-panel > .primary-button { margin-inline: 20px; width: calc(100% - 40px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Исправление невидимого текста и стрелок */
.store-v14 .v13-button,
.store-v14 .v13-button *,
.store-v14 .v13-catalog-link,
.store-v14 .v13-catalog-link *,
.store-v14 .product-bottom > a,
.store-v14 button.primary-button,
.store-v14 a.primary-button {
  visibility: visible !important;
  opacity: 1 !important;
  text-indent: 0 !important;
}

.store-v14 .v13-button {
  position: relative !important;
  z-index: 3 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-width: 190px;
  min-height: 54px;
  font-size: 11px !important;
  line-height: 1.2 !important;
  white-space: nowrap;
}

.store-v14 .v13-button span,
.store-v14 .v13-catalog-link b {
  display: inline-block !important;
  font-size: 18px !important;
  line-height: 1 !important;
}

.store-v14 a.v13-button-red,
.store-v14 button.primary-button,
.store-v14 a.primary-button,
.store-v14 .product-bottom > a {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.store-v14 button.primary-button,
.store-v14 a.primary-button,
.store-v14 .product-bottom > a {
  position: relative !important;
  z-index: 2 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: var(--v14-red) !important;
  text-indent: 0 !important;
}

.store-v14 a.v13-button-dark {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.store-v14 a.v13-button-light {
  color: #071412 !important;
  -webkit-text-fill-color: #071412 !important;
}

.store-v14 a.v13-catalog-link {
  color: #071412 !important;
  -webkit-text-fill-color: #071412 !important;
}

.store-v14 .v13-button span,
.store-v14 .v13-catalog-link b {
  color: currentColor !important;
  -webkit-text-fill-color: currentColor !important;
}

.store-v14 a.v13-button-red:hover {
  color: #071412 !important;
  -webkit-text-fill-color: #071412 !important;
}

.store-v14 a.v13-button-light:hover,
.store-v14 a.v13-button-dark:hover {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.accountButton {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, .55);
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.accountButton:hover {
  background: #fff;
  color: #071412 !important;
  -webkit-text-fill-color: #071412 !important;
}

@media (max-width: 760px) {
  .accountButton {
    display: none;
  }
}

/* Оптовым клиентам: редакционная партнёрская страница без публичного прайса. */
.wholesale-page main { background: var(--v14-paper); }
.wholesale-page .wholesale-hero {
  padding: clamp(76px, 10vw, 150px) 0 clamp(72px, 9vw, 130px);
  background: var(--v14-cream);
  border-bottom: 1px solid var(--v14-line);
}
.wholesale-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .45fr);
  gap: clamp(54px, 9vw, 140px);
  align-items: end;
}
.wholesale-kicker,
.wholesale-section-number,
.wholesale-contact-label {
  display: block;
  margin-bottom: 24px;
  color: var(--v14-red);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.wholesale-hero h1 {
  max-width: 920px;
  margin: 0;
  color: var(--v14-ink);
  font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(62px, 9vw, 142px);
  font-weight: 750;
  letter-spacing: -.075em;
  line-height: .82;
}
.wholesale-hero-copy > p {
  max-width: 720px;
  margin: 38px 0 0;
  color: rgba(7, 20, 18, .67);
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.55;
}
.wholesale-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; margin-top: 40px; }
.wholesale-text-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.wholesale-text-link span { font-size: 18px; line-height: 1; }
.wholesale-hero-note { padding: 28px 0 4px; border-top: 1px solid var(--v14-ink); }
.wholesale-hero-note > span { color: rgba(7, 20, 18, .5); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.wholesale-hero-note strong { display: block; margin: 12px 0 18px; font-size: clamp(24px, 2.5vw, 38px); letter-spacing: -.045em; }
.wholesale-hero-note p { margin: 0; color: rgba(7, 20, 18, .62); line-height: 1.65; }

.wholesale-editorial { padding: clamp(80px, 11vw, 160px) 0; }
.wholesale-editorial-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(50px, 10vw, 160px); }
.wholesale-editorial h2,
.wholesale-section-head h2,
.wholesale-process-copy > h2,
.wholesale-contact-card h2,
.wholesale-final h2 {
  margin: 0;
  font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(46px, 6vw, 88px);
  font-weight: 750;
  letter-spacing: -.065em;
  line-height: .92;
}
.wholesale-prose { max-width: 760px; }
.wholesale-prose p { margin: 0 0 25px; color: rgba(7, 20, 18, .64); font-size: 16px; line-height: 1.75; }
.wholesale-prose .wholesale-lead { color: var(--v14-ink); font-size: clamp(21px, 2vw, 30px); letter-spacing: -.025em; line-height: 1.45; }

.wholesale-partners { padding: clamp(80px, 10vw, 145px) 0; background: var(--v14-ink); color: #fff; }
.wholesale-section-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: end; margin-bottom: 68px; }
.wholesale-section-head h2 { color: #fff; }
.wholesale-section-head > p { max-width: 430px; margin: 0 0 8px; color: rgba(255, 255, 255, .56); font-size: 16px; line-height: 1.65; }
.wholesale-partner-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(255, 255, 255, .22); }
.wholesale-partner-grid article { min-height: 275px; padding: 28px 28px 20px 0; border-right: 1px solid rgba(255, 255, 255, .22); }
.wholesale-partner-grid article + article { padding-left: 28px; }
.wholesale-partner-grid article:last-child { border-right: 0; }
.wholesale-partner-grid article > span { color: var(--v14-red); font-size: 10px; letter-spacing: .14em; }
.wholesale-partner-grid h3 { margin: 90px 0 14px; font-size: 22px; letter-spacing: -.035em; }
.wholesale-partner-grid p { margin: 0; color: rgba(255, 255, 255, .52); font-size: 13px; line-height: 1.65; }

.wholesale-process { padding: clamp(80px, 11vw, 160px) 0; }
.wholesale-process-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(55px, 10vw, 150px); align-items: start; }
.wholesale-steps { margin: 58px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--v14-line); }
.wholesale-steps li { display: grid; grid-template-columns: 42px 1fr; gap: 22px; padding: 25px 0; border-bottom: 1px solid var(--v14-line); }
.wholesale-steps li > span { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--v14-ink); border-radius: 50%; font-size: 11px; }
.wholesale-steps strong { display: block; margin-bottom: 8px; font-size: 17px; }
.wholesale-steps p { margin: 0; color: rgba(7, 20, 18, .58); font-size: 14px; line-height: 1.6; }
.wholesale-contact-card { padding: clamp(34px, 4.5vw, 64px); background: var(--v14-cream); }
.wholesale-contact-card h2 { font-size: clamp(42px, 4.4vw, 66px); }
.wholesale-contact-card > p { margin: 28px 0 35px; color: rgba(7, 20, 18, .62); line-height: 1.7; }
.wholesale-contact-list { margin-bottom: 28px; border-top: 1px solid var(--v14-line); }
.wholesale-contact-list a { display: block; padding: 20px 0; border-bottom: 1px solid var(--v14-line); }
.wholesale-contact-list span { display: block; margin-bottom: 7px; color: rgba(7, 20, 18, .48); font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }
.wholesale-contact-list strong { font-size: clamp(18px, 2vw, 25px); font-weight: 650; }

.wholesale-final { padding: clamp(76px, 9vw, 128px) 0; background: var(--v14-red); color: #fff; }
.wholesale-final-row { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(50px, 9vw, 135px); align-items: end; }
.wholesale-final h2 { max-width: 800px; color: #fff; font-size: clamp(52px, 7.5vw, 112px); }
.wholesale-final p { margin: 0 0 30px; color: rgba(255, 255, 255, .78); line-height: 1.7; }
.wholesale-final a { display: inline-flex; gap: 18px; align-items: center; padding-bottom: 6px; border-bottom: 1px solid #fff; font-size: 11px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.wholesale-final a span { font-size: 18px; }

@media (max-width: 980px) {
  .wholesale-hero-grid,
  .wholesale-editorial-grid,
  .wholesale-process-grid { grid-template-columns: 1fr; }
  .wholesale-hero-note { max-width: 520px; }
  .wholesale-section-head,
  .wholesale-final-row { grid-template-columns: 1fr; }
  .wholesale-partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wholesale-partner-grid article:nth-child(2) { border-right: 0; }
  .wholesale-partner-grid article:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .22); }
  .wholesale-partner-grid article:nth-child(3) { padding-left: 0; }
}

@media (max-width: 640px) {
  .wholesale-page .wholesale-hero { padding-top: 64px; }
  .wholesale-hero h1 { font-size: clamp(56px, 19vw, 82px); }
  .wholesale-hero-copy > p { margin-top: 28px; }
  .wholesale-actions { align-items: stretch; flex-direction: column; gap: 22px; }
  .wholesale-actions .primary-button { width: 100%; }
  .wholesale-text-link { align-self: flex-start; }
  .wholesale-partner-grid { grid-template-columns: 1fr; }
  .wholesale-partner-grid article,
  .wholesale-partner-grid article + article { min-height: 0; padding: 25px 0; border-right: 0; border-top: 1px solid rgba(255, 255, 255, .22); }
  .wholesale-partner-grid article:first-child { border-top: 0; }
  .wholesale-partner-grid h3 { margin-top: 36px; }
  .wholesale-contact-card { margin-inline: -14px; }
}

/* Недоступный вариант товара нельзя добавить в корзину. */
.store-v14 button.primary-button:disabled,
.store-v14 button.primary-button[aria-disabled="true"] {
  background: #a5aaa7 !important;
  border-color: #a5aaa7 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  cursor: not-allowed !important;
  opacity: 1 !important;
  box-shadow: none !important;
}

.store-v14 button.primary-button:disabled:hover,
.store-v14 button.primary-button[aria-disabled="true"]:hover {
  background: #a5aaa7 !important;
}

/* Пошаговый сценарий помощника и уведомление о конфиденциальности. */
.chat-messages .bot { white-space: pre-line; }
.chat-consent {
  margin: 0;
  padding: 0 12px 11px;
  color: #667085;
  background: #fff;
  font-size: 9px;
  line-height: 1.35;
}
.chat-consent a { text-decoration: underline; }
.v14Logo {
  display: inline-flex;
  align-items: center;
  height: 48px;
}

.v14Logo img {
  display: block;
  width: auto;
  height: 38px;
  max-width: 180px;
  object-fit: contain;
}

@media (max-width: 760px) {
  .v14Logo {
    height: 40px;
  }

  .v14Logo img {
    height: 30px;
    max-width: 135px;
  }
}

form.panel > .form-grid {
  margin-bottom: 16px;
}

.page-hero h1 {
  text-transform: none;
}

/* Компактный блок «Ранее вы смотрели» */
.recently-viewed {
  padding-top: 48px !important;
  padding-bottom: 48px !important;
}

.recently-viewed .section-head {
  margin-bottom: 24px;
}

.recently-viewed .section-title {
  margin: 0;
  font-size: clamp(36px, 3.5vw, 56px) !important;
}

.recently-viewed .product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.recently-viewed .product-image {
  height: 260px !important;
}

.recently-viewed .product-body {
  padding: 15px;
}

.recently-viewed .product-body h3 {
  min-height: 42px;
  font-size: 17px;
}

.recently-viewed .product-bottom {
  margin-top: 12px;
  padding-top: 12px;
}

@media (max-width: 980px) {
  .recently-viewed .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .recently-viewed .product-grid {
    grid-template-columns: 1fr;
  }

  .recently-viewed .product-image {
    height: 340px !important;
  }
}

/* Уменьшаем верхний отступ на странице каталога */
body.catalog-page .page-hero {
  padding-top: 60px !important;
}

/* Миниатюры фотографий товара в один ряд */
.store-v14 .product-gallery-thumbs {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin-top: 12px !important;
}

.store-v14 .product-gallery-thumb {
  display: block !important;
  width: 100% !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 2px solid transparent !important;
  background: #e8e7e2 !important;
  cursor: pointer;
}

.store-v14 .product-gallery-thumb.is-active {
  border-color: #f33439 !important;
}

.store-v14 .product-gallery-thumb img {
  display: block !important;
  width: 100% !important;
  height: 120px !important;
  object-fit: contain !important;
  background: #e8e7e2;
}

/* Телефон */
@media (max-width: 640px) {
  .store-v14 .product-gallery-thumbs {
    display: flex !important;
    overflow-x: auto;
    gap: 8px !important;
  }

  .store-v14 .product-gallery-thumb {
    flex: 0 0 74px !important;
  }

  .store-v14 .product-gallery-thumb img {
    height: 90px !important;
  }
}

/* Очень компактный раздел отзывов */
.store-v14 .reviews-section {
  padding: 20px 0 !important;
}

.store-v14 .reviews-section .section-head {
  margin-bottom: 10px !important;
}

.store-v14 .reviews-section .section-title {
  margin: 0 !important;
  font-size: 36px !important;
  line-height: 1.1 !important;
}

.store-v14 .reviews-section .panel {
  padding: 15px !important;
}

@media (max-width: 640px) {
  .store-v14 .reviews-section {
    padding: 15px 0 !important;
  }

  .store-v14 .reviews-section .section-title {
    font-size: 28px !important;
  }
}

/* Очень компактный блок «Ранее вы смотрели» */
.store-v14 .recently-viewed {
  padding: 20px 0 !important;
}

.store-v14 .recently-viewed .section-head {
  margin-bottom: 14px !important;
}

.store-v14 .recently-viewed .section-title {
  margin: 0 !important;
  font-size: 36px !important;
  line-height: 1.1 !important;
}

.store-v14 .recently-viewed .product-grid {
  gap: 14px !important;
}

.store-v14 .recently-viewed .product-image {
  height: 210px !important;
}

.store-v14 .recently-viewed .product-body {
  padding: 12px !important;
}

.store-v14 .recently-viewed .product-body h3 {
  min-height: 38px !important;
  font-size: 15px !important;
}

.store-v14 .recently-viewed .product-bottom {
  margin-top: 8px !important;
  padding-top: 8px !important;
}

@media (max-width: 640px) {
  .back-to-top { right: 12px; bottom: 12px; width: 38px; height: 38px; }
  .back-to-top.has-chat { right: 142px; }

  .store-v14 .recently-viewed {
    padding: 15px 0 !important;
  }

  .store-v14 .recently-viewed .section-title {
    font-size: 28px !important;
  }

  .store-v14 .recently-viewed .product-image {
    height: 260px !important;
  }
}
