/* Site fixes, November 2026 (drb-fixes.js). */

/* No visible scroll bars (page and horizontal sliders); scrolling itself works as before. */
html { scrollbar-width: none; }
::-webkit-scrollbar { width: 0; height: 0; background: transparent; }
.drb-reviews__track, .article-grid, .jc-track, .drb-upsell__track { scrollbar-width: none; }

/* Running line on top: no pause button. */
.announcement__pause { display: none !important; }
.announcement__window { margin-right: 0 !important; }

/* Logo: the same size on every page; larger on phones. */
@media (max-width: 820px) { .nav .brand img, .nav.scrolled .brand img { width: 190px !important; } }
@media (max-width: 360px) { .nav .brand img, .nav.scrolled .brand img { width: 160px !important; } }

/* Product card spacing on phones. */
@media (max-width: 620px) {
  .product-page__body { margin-top: 28px; }
  .bundle-card__info p { font-size: 14px !important; }
}

/* Product card on phones: compact buy bar (price, sale line and button in two short rows). */
@media (max-width: 900px) {
  .product-page__purchase { flex-wrap: nowrap !important; align-items: center !important; row-gap: 6px !important; padding-top: 10px !important; padding-bottom: calc(10px + env(safe-area-inset-bottom)) !important; }
  .product-page__purchase::after { display: none; }
  .product-page__price { flex: 1 1 0 !important; min-width: 0; width: auto !important; font-size: 20px !important; display: flex !important; flex-wrap: wrap; align-items: baseline; column-gap: 8px; }
  .product-page__price .bf-line { margin: 2px 0 0 !important; font-size: 11px !important; flex-basis: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .product-page__price .bf-line span { padding: 2px 8px !important; }
  .product-page__price s { font-size: 14px; }
  .product-page__add, .product-page__purchase .qty-stepper { width: 150px !important; min-width: 150px !important; max-width: 150px !important; height: 48px !important; min-height: 48px !important; }
  .product-page__content { padding-bottom: calc(110px + env(safe-area-inset-bottom)) !important; }
  .pp-acc { scroll-margin-top: 80px; }
}

/* "Давайте разберёмся вместе": centred. */
.support-intro { text-align: center; margin-inline: auto; display: flex; flex-direction: column; align-items: center; }
.support-intro p { margin-inline: auto; }
.support-actions { justify-content: center; }

/* Reviews: cards of the same size, whole card opens the review on the marketplace. */
.drb-reviews__track { align-items: stretch !important; }
.drb-review { height: 100%; box-sizing: border-box; color: inherit; text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.drb-reviews__track .drb-review { min-height: 300px; }
.drb-reviews__track .drb-review p { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.drb-review:hover { border-color: #c9d3de; box-shadow: 0 10px 28px rgba(37, 40, 45, .06); }
.drb-review__go { color: #314966 !important; font-weight: 600; margin-top: 4px; }
.drb-pp-markets { display: flex; flex-wrap: wrap; gap: 8px; }
.drb-pp-markets a { padding: 8px 12px; border: 1px solid #e6e6e1; border-radius: 999px; color: #25282d; text-decoration: none; font: 500 13px Manrope, Arial, sans-serif; }
.drb-pp-markets a b { color: #e3a33b; }

/* Home: compact "Статьи". */
.journal.journal--compact { padding: 56px 4vw; background: #f4f6f8; }
.jc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.jc-head h2 { margin: 0; font: 500 clamp(26px, 3vw, 38px)/1.1 Manrope, Arial, sans-serif; letter-spacing: -.02em; color: #202125; }
.jc-head a { color: #314966; font: 600 14px Manrope, Arial, sans-serif; text-decoration: none; white-space: nowrap; }
.jc-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 280px); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
.jc-card { scroll-snap-align: start; display: grid; align-content: space-between; gap: 18px; min-height: 150px; padding: 18px 20px; border-radius: 20px; background: #fff; border: 1px solid #e3e8ee; color: #202125; text-decoration: none; font-family: Manrope, Arial, sans-serif; }
.jc-card span { color: #667382; font-size: 12px; letter-spacing: .04em; }
.jc-card b { font-size: 17px; font-weight: 600; line-height: 1.3; }
.jc-card:hover { border-color: #b9c8d8; }
@media (max-width: 620px) { .journal.journal--compact { padding: 40px 16px; } .jc-track { grid-auto-columns: 74%; } }

/* Product card: "Может пригодиться" slider. */
.drb-upsell { margin-top: 30px; padding-top: 24px; border-top: 1px solid #e6e6e1; font-family: Manrope, Arial, sans-serif; }
.drb-upsell__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.drb-upsell__head h2 { margin: 0; font-size: 20px; font-weight: 600; color: #202125; }
.drb-upsell__nav { display: flex; gap: 6px; }
.drb-upsell__nav button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #dde5ee; background: #fff; font-size: 20px; line-height: 1; cursor: pointer; color: #314966; }
.drb-upsell__track { display: grid; grid-auto-flow: column; grid-auto-columns: 168px; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
.drb-upsell__card { scroll-snap-align: start; display: grid; grid-template-rows: auto 1fr auto; gap: 8px; padding: 8px 8px 10px; border: 1px solid #e6e6e1; border-radius: 18px; background: #fff; cursor: pointer; }
.drb-upsell__photo { position: relative; aspect-ratio: 1; border-radius: 12px; background: #f2f2f2; overflow: hidden; }
.drb-upsell__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.drb-upsell__photo span { position: absolute; top: 6px; left: 6px; background: #0b0b0c; color: #ffd23f; font-size: 11px; font-weight: 800; padding: 4px 7px; border-radius: 999px; }
.drb-upsell__card b { font-size: 13px; font-weight: 600; line-height: 1.3; color: #202125; padding: 0 2px; }
.drb-upsell__buy { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 0 2px; }
.drb-upsell__price { font-size: 14px; font-weight: 700; color: #202125; display: grid; }
.drb-upsell__price s { font-size: 11px; font-weight: 500; color: #8b8f96; }
.drb-upsell__add { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #314966; color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
@media (max-width: 620px) { .drb-upsell__nav { display: none; } .drb-upsell__track { grid-auto-columns: 46%; } }

/* Footer: four columns, no duplicated links. */
.footer-grid.footer-grid--v2 { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)) !important; }
@media (max-width: 1050px) { .footer-grid.footer-grid--v2 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 620px) { .footer-grid.footer-grid--v2 { grid-template-columns: 1fr 1fr !important; } .footer-grid.footer-grid--v2 .footer-identity { grid-column: 1 / -1; } }

/* Home: "Один подход / Три направления заботы" — smaller heading. */
body:not(.catalog-page) .products .direction-intro h2 { font-size: clamp(28px, 3vw, 44px) !important; line-height: 1.08 !important; letter-spacing: -.02em !important; }
@media (max-width: 620px) { body:not(.catalog-page) .products .direction-intro h2 { font-size: clamp(20px, 5.4vw, 24px) !important; } }

/* Grid photos browsed in place (drb-fixes.js): dots; photos other than the first fill the frame like a studio shot. */
.drb-swipe { position: relative; touch-action: pan-y; }
.drb-swipe__dots { position: absolute; z-index: 4; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.drb-swipe__dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(37, 40, 45, .22); transition: background .2s, width .2s; }
.drb-swipe__dots i.on { width: 16px; border-radius: 4px; background: #314966; }
.drb-swipe--alt img { transform: none !important; }

/* Product card on phones: gallery photos end above the thumbnails strip (were cut off by it at the bottom). */
@media (max-width: 900px) {
  .product-page.drb-gallery-photo .product-page__visual > img, .product-page.drb-bundle-gallery .product-page__visual > img { height: calc(100% - 122px) !important; margin-top: 12px !important; }
}
/* Bundles: no "Готовый набор" line above the title. */
.product-page.drb-is-bundle .product-page__category { display: none !important; }

/* Grid cards: show the whole photo (no cut at the bottom); the photo background matches the card. */
.category-product-visual--studio img, .drb-swipe--alt img { object-fit: contain !important; }
.category-product:hover .category-product-visual--studio img { transform: scale(1.02) !important; }

/* Keep titles consistent across individual products and sets. */
.category-product h3,
.catalog-panel[data-panel="face"] .card h3,
.bundle-card__info h4 {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.2;
}

.bundle-card__info h4 {
  min-height: 2.4em;
}

.product-page h1 {
  font-size: clamp(34px, 3.6vw, 58px);
  line-height: 1.08;
}

@media (max-width: 620px) {
  .product-page h1 {
    font-size: clamp(25px, 7vw, 30px);
    letter-spacing: -.02em;
  }
}

/* Club introduction above the two programme cards. */
.club-home {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(22px, 4vw, 58px);
  padding: clamp(24px, 4.8vw, 64px);
  border-radius: 28px;
  background: #e7f0fb;
  color: #25282d;
}
.club-home h2 {
  margin: 0;
  font: 500 clamp(28px, 4vw, 56px)/1.1 Onest, Manrope, sans-serif;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.club-home p {
  max-width: 48ch;
  margin: 14px 0 22px;
  color: #314966;
  line-height: 1.6;
}
.club-home .club-home__action {
  min-height: 44px;
  gap: 12px;
  padding-inline: 22px;
  background: #314966;
  border-color: #314966;
  color: #fff;
}
.club-home .club-home__action:hover { background: #253b56; }
.club-home__benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  gap: 14px;
}
.club-home__benefits > div {
  border-top: 1px solid #a9bfd9;
  padding-top: 14px;
}
.club-home__benefits dt {
  font: 500 clamp(29px, 4.1vw, 58px)/1 Onest, Manrope, sans-serif;
  color: #314966;
}
.club-home__benefits dd { margin: 8px 0 0; line-height: 1.45; }
@media (max-width: 720px) {
  .club-home { grid-template-columns: 1fr; border-radius: 24px; }
  .club-home__benefits dd { font-size: 14px; }
}
