/* Store-owned refinements on top of the approved v59 prototype (loaded last, survive re-imports). */

/* 1. PDRN face-care cards use the same grid and card size as the vitamin cards. */
.catalog-panel[data-panel="face"] { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.catalog-panel[data-panel="face"] .card { position: relative; display: flex; flex-direction: column; height: 560px; min-height: 0; border-radius: 28px; }
.catalog-panel[data-panel="face"] .visual { height: 350px; min-height: 350px; flex: none; }
.catalog-panel[data-panel="face"] .card-info { flex: 1; display: grid; grid-template-columns: 1fr auto; grid-template-rows: 1fr auto; column-gap: 16px; row-gap: 0; align-items: center; padding: 26px 28px 28px; }
.catalog-panel[data-panel="face"] .card-info > div { grid-column: 1 / -1; align-self: start; }
.catalog-panel[data-panel="face"] .step { position: absolute; z-index: 5; top: 22px; left: 28px; margin: 0; }
.catalog-panel[data-panel="face"] .card h3 { margin: 0 0 10px; font: 300 clamp(22px, 2vw, 32px)/1.08 Onest, Manrope, Arial, sans-serif; letter-spacing: -.04em; }
.catalog-panel[data-panel="face"] .card p { margin: 0; font-size: 14px; line-height: 1.55; }
.catalog-panel[data-panel="face"] .price { margin: 24px 0 0; font-size: 18px; font-weight: 600; }
.catalog-panel[data-panel="face"] .add-to-cart.category-add { grid-column: auto; margin: 24px 0 0; height: auto; min-height: 44px; padding: 0 19px; font: 500 13px Manrope, Arial, sans-serif; justify-self: end; }
@media (max-width: 900px) { .catalog-panel[data-panel="face"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .catalog-panel[data-panel="face"] { grid-template-columns: 1fr; }
  .catalog-panel[data-panel="face"] .card { height: auto; min-height: 500px; }
  .catalog-panel[data-panel="face"] .visual { height: 330px; min-height: 330px; }
}

/* 2. Phone layout: section headings and their intros are centred for easier reading. */
@media (max-width: 700px) {
  .direction-intro, .direction-intro h2, .direction-intro p,
  .bundle-cards__heading,
  .ai-copy, .ai-copy h2, .ai-copy p,
  .program-copy, .program-copy h2, .program-copy p,
  .journal-head, .journal-head h2, .journal-head p,
  .support-intro, .support-intro h2, .support-intro p,
  .founder-label, #founder-title, .founder-copy > div:first-child, .founder-copy > div:first-child p, .founder-credentials { text-align: center; }
  .direction-intro p, .ai-copy p, .program-copy p, .journal-head p, .support-intro p, .founder-copy > div:first-child p { margin-inline: auto; }
  .ai-story summary { justify-content: center; }
  .program-copy { align-items: center; }
  .program-copy a, .program-copy button { margin-inline: auto; }
  .founder-credentials { justify-content: center; }
}
/* Keep every PDRN bottle fully visible in the shorter, vitamin-sized photo area. */
.catalog-panel[data-panel="face"] .card { --pack-size: 92% !important; --pack-bottom: 2% !important; }
@media (max-width: 700px) {
  .founder-credentials { display: flex; flex-direction: column; align-items: center; gap: 10px; }
  .founder-credentials { padding-left: 0; }
  .founder-credentials::before { position: static; display: block; width: 32px; margin-bottom: 4px; }
}
/* 3. Deodorant card matches the vitamin cards on phones too. */
@media (max-width: 620px) {
  .catalog-panel[data-panel="body"] .category-product { min-height: 500px; }
  .catalog-panel[data-panel="body"] .category-product-visual { height: 330px; min-height: 330px; }
}
/* 4. Previous price (sale) next to the current price. */
.category-old-price { margin-left: 8px; font-size: .78em; font-weight: 400; color: var(--muted, #667382); text-decoration: line-through; white-space: nowrap; }
/* 5. Product card: long information as an accordion under the price. */
.product-page__benefits { margin-top: 36px; border-top: 1px solid var(--line, #dde5ee); }
.pp-acc { border-bottom: 1px solid var(--line, #dde5ee); }
.pp-acc summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 2px; cursor: pointer; list-style: none; font: 500 16px/1.35 Onest, Manrope, Arial, sans-serif; color: var(--ink, #25282d); }
.pp-acc summary::-webkit-details-marker { display: none; }
.pp-acc summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: color-mix(in srgb, var(--product-accent, #79a3d9) 12%, #fff); background-image: linear-gradient(var(--product-accent, #314966), var(--product-accent, #314966)), linear-gradient(var(--product-accent, #314966), var(--product-accent, #314966)); background-size: 12px 1.5px, 1.5px 12px; background-position: center; background-repeat: no-repeat; transition: transform .3s cubic-bezier(.16,1,.3,1); }
.pp-acc[open] summary::after { background-size: 12px 1.5px, 0 0; transform: rotate(180deg); }
.pp-acc summary:focus-visible { outline: 2px solid var(--deep-blue, #314966); outline-offset: 4px; border-radius: 6px; }
.pp-acc__body { padding: 0 2px 24px; color: var(--muted, #667382); font-size: 14px; line-height: 1.6; display: grid; gap: 12px; animation: pp-open .35s ease; }
.pp-acc__body p { margin: 0; color: inherit; font-size: inherit; }
.pp-acc__body .pp-lead { color: var(--ink, #25282d); font-weight: 600; margin-top: 4px; }
.pp-acc__body .pp-note { font-size: 13px; }
.pp-acc__body .pp-note b { color: var(--ink, #25282d); font-weight: 600; }
.pp-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.pp-list li { position: relative; padding-left: 20px; }
.pp-list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--product-accent, #79a3d9); }
.pp-dose { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.pp-dose th, .pp-dose td { padding: 9px 0; border-bottom: 1px dashed var(--line, #dde5ee); text-align: left; font-weight: 400; vertical-align: top; }
.pp-dose th { color: var(--ink, #25282d); padding-right: 16px; }
.pp-dose td { text-align: right; white-space: nowrap; color: var(--ink, #25282d); font-weight: 600; }
.pp-chips { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.pp-chips li { padding: 7px 13px; border-radius: 100px; background: color-mix(in srgb, var(--product-accent, #79a3d9) 10%, #fff); color: var(--ink, #25282d); font-size: 13px; line-height: 1.35; }
.pp-specs { margin: 0; display: grid; }
.pp-specs div { display: grid; grid-template-columns: minmax(110px, .8fr) minmax(0, 1.4fr); gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line, #dde5ee); }
.pp-specs dt { color: var(--muted, #667382); }
.pp-specs dd { margin: 0; color: var(--ink, #25282d); }
@keyframes pp-open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pp-acc__body { animation: none; } .pp-acc summary::after { transition: none; } }
@media (max-width: 620px) { .pp-specs div { grid-template-columns: 1fr; gap: 2px; } .pp-dose td { white-space: normal; } }
.pp-list li b { color: var(--ink, #25282d); font-weight: 600; }

/* Quantity stepper that replaces "В корзину" once the product is in the cart. */
.qty-stepper { display: inline-flex; align-items: center; justify-content: space-between; box-sizing: border-box; min-width: 132px; min-height: 44px; padding: 0 6px; border-radius: 100px; background: var(--deep-blue, #314966); color: #fff; font: 600 15px/1 Onest, Manrope, Arial, sans-serif; font-variant-numeric: tabular-nums; }
.qty-stepper button { all: unset; box-sizing: border-box; width: 38px; height: 38px; display: grid; place-items: center; font-size: 20px; line-height: 1; cursor: pointer; border-radius: 50%; }
.qty-stepper button:hover { background: rgba(255,255,255,.16); }
.qty-stepper button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.qty-stepper span { min-width: 24px; text-align: center; }
/* Cards in one row: price and "В корзину" always sit on the same line, whatever the title length. */
.category-product-copy { flex: 1 1 auto; display: flex; flex-direction: column; }
.category-product-copy > footer { margin-top: auto; padding-top: 24px; }
.catalog-panel-inner { align-items: stretch; }
/* Product card header: the same logo as on the home page (vector contours, solid ink). */
.product-page__brand { position: relative; display: block; width: clamp(150px, 15vw, 200px); aspect-ratio: 1103.08 / 158; height: auto; font-size: 0; line-height: 0; color: transparent; }
.product-page__brand i { display: none; }
.product-page__brand::before { content: ""; position: absolute; inset: 0; background: var(--ink, #25282d); -webkit-mask: url("/assets/brand-logo-v40.svg") center / contain no-repeat; mask: url("/assets/brand-logo-v40.svg") center / contain no-repeat; }
/* The brand name above the hero heading duplicates the logo in the header. */
.hero h1::before { content: none !important; display: none !important; }

/* Account entry in the header. */
.account-link { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--line, #dde5ee); border-radius: 100px; background: rgba(255,255,255,.7); color: var(--ink, #25282d); font-size: 13px; text-decoration: none; white-space: nowrap; }
.account-link:hover { background: #fff; }
.account-link:focus-visible { outline: 2px solid var(--deep-blue, #314966); outline-offset: 3px; }
@media (max-width: 820px) { .account-link { margin-left: auto; } .account-link + .cart-trigger { margin-left: 0; } .menu-trigger { margin-left: 0; } }

/* Mobile: header fits one row, heading is calmer, the three-step line reads top to bottom. */
.direction-flow i { font-style: normal; }
@media (max-width: 620px) {
  .brand img { width: clamp(116px, 32vw, 136px); }
  .nav, .nav.scrolled { gap: 6px; }
  .account-link { min-height: 44px; padding: 0 11px; font-size: 13px; }
  .nav .menu-trigger { min-width: 48px; padding-inline: 8px; }
  .nav .cart-trigger { width: 58px; }
  .products .section-head.direction-intro { text-align: center; }
  .products .direction-intro > div { justify-items: center; width: 100%; }
  .products .direction-intro h2 { text-align: center; font-size: clamp(22px, 6.2vw, 28px); font-weight: 600; line-height: 1.12; letter-spacing: -.02em; }
  section.products { padding-top: 28px; }
  .products .section-head.direction-intro { margin-bottom: 28px; }
  .products .direction-intro p.direction-flow { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 0; text-align: center; margin-top: 12px; font-size: 16px; line-height: 1.35; }
  .products .direction-intro p.direction-flow span { max-width: 100%; }
  .products .direction-intro p.direction-flow i { transform: rotate(90deg); line-height: 1; font-size: 13px; opacity: .55; margin: 1px 0; }
}

/* Desktop: the "Личный помощник" card starts at the top of the block, level with the heading. */
@media (min-width: 901px) {
  /* Heading spans the block; below it a text column and a compact card of the same height.
     Text: thesis at the card's top edge, the story set off by a thin rule at its bottom edge. */
  .ai-shell { align-items: stretch; row-gap: 44px; }
  .ai-copy { display: contents; }
  .ai-copy h2 { grid-column: 1 / -1; }
  .ai-left { grid-column: 1; grid-row: 2; display: flex; flex-direction: column; justify-content: space-between; gap: 36px; }
  .ai-left .ai-thesis { margin: 0; }
  .ai-left .ai-body { margin: 0; max-width: 640px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.2); }
  .ai-left .ai-body p { font-size: 18px; line-height: 1.65; }
  .ai-assistant { grid-column: 2; grid-row: 2; padding: 34px 40px; }
}
}

@media (max-width: 620px) { .product-page__brand { width: clamp(116px, 32vw, 136px); } }

/* Catalogue page: only the product sections, all visible, with a quick jump menu. */
body.catalog-page main > *:not(#products), body.catalog-page .support { display: none !important; }
body.catalog-page #products { padding-top: calc(var(--announcement-height, 0px) + var(--navigation-height, 72px) + 28px); }
body.catalog-page .category-switch-hint, body.catalog-page .category-switcher { display: none; }
body.catalog-page .products .section-head.direction-intro { margin-bottom: 8px; }
.catalog-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.catalog-jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 1px solid var(--line, #dde5ee); border-radius: 100px; background: #fff; color: var(--ink, #25282d); text-decoration: none; font-size: 15px; }
.catalog-jump a:hover { background: var(--powder-blue, #e5eef8); }
.products.catalog-group-section { padding: clamp(28px, 4vw, 56px) clamp(16px, 3vw, 48px); margin-top: 32px; border-radius: 28px; scroll-margin-top: calc(var(--announcement-height, 0px) + var(--navigation-height, 72px) + 12px); }
.catalog-group-title { margin: 0 0 28px; font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -.03em; line-height: 1.05; text-align: left; }
@media (max-width: 620px) {
  body.catalog-page .products .direction-intro h2 { font-size: clamp(30px, 9vw, 38px); }
  .catalog-jump { gap: 8px; }
  .catalog-jump a { flex: 1 1 auto; justify-content: center; min-height: 40px; padding: 0 14px; font-size: 14px; }
  .products.catalog-group-section { margin-top: 20px; border-radius: 22px; padding: 24px 14px; }
}

/* Programme blocks: links look like the former buttons. */
a.program-action { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
/* Support: the e-mail link is a button, same size as the VK one. */
.support-secondary.support-button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border: 1px solid var(--brand-blue, #243d50); border-radius: 100px; background: transparent; color: var(--deep-blue, #243d50); text-decoration: none; font-size: 14px; transition: background .25s, color .25s; }
.support-secondary.support-button:hover { background: var(--deep-blue, #243d50); color: #fff; }
@media (max-width: 900px) { .support-secondary.support-button { border-radius: 16px; } }

/* Third tile next to the two ready-made sets: fills the row and leads to the vitamin selection. */
.bundle-help { display: none; }
@media (min-width: 901px) {
  .bundle-help { display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; height: 560px; padding: 28px; border-radius: 28px; background: var(--powder-blue, #c9d7ee); color: var(--ink, #25282d); box-sizing: border-box; }
  .bundle-help span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--deep-blue, #314966); }
  .bundle-help h4 { margin: 0; font: 300 clamp(26px, 2.2vw, 34px)/1.08 Onest, Manrope, Arial, sans-serif; letter-spacing: -.02em; }
  .bundle-help p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--deep-blue, #314966); }
  .bundle-help__link { align-self: flex-start; display: inline-flex; align-items: center; min-height: 48px; margin-top: 8px; padding: 0 24px; border-radius: 100px; background: var(--deep-blue, #314966); color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; }
  .bundle-help__link:hover { background: #25282d; }
}

/* Wide screens: four products in a row. Ready-made sets are ordinary cards of the same grid, so no row is left with a gap. */
@media (min-width: 701px) {
  .bundle-cards { display: contents; }
  .bundle-cards__heading { display: none; }
  .bundle-help { display: none; }
}
@media (min-width: 1201px) {
  .catalog-panel-inner, .catalog-panel[data-panel="face"] { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .category-product-copy, .catalog-panel[data-panel="face"] .card-info { padding: 22px 20px 22px; }
  .category-product h3, .catalog-panel[data-panel="face"] .card h3 { font-size: clamp(20px, 1.55vw, 24px); }
  .category-product p, .catalog-panel[data-panel="face"] .card p { font-size: 13px; }
  .bundle-card__info { padding: 22px 20px; }
}

/* One title size for sets and single products; footer (price + button) always sits on the card's bottom edge. */
@media (min-width: 701px) {
  .bundle-card__info h4, .category-product h3, .catalog-panel[data-panel="face"] .card h3 { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.12; margin-bottom: 8px; max-width: none; }
  .bundle-card__info h4 { margin: 0 0 8px; }
  .bundle-card__info p, .category-product p { font-size: 13px; line-height: 1.5; }
  .bundle-card__info { padding: 22px 20px; }
  .bundle-card__info .bundle-card__purchase { margin-top: auto; padding-top: 14px; }
}

/* The three-bottle set photo is already framed: show it whole. */
.bundle-card--focus .bundle-card__photo img { transform: scale(1.28); }

/* Long set names/compositions never push the price row out of the card. */
@media (min-width: 701px) {
  .bundle-card__info p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .bundle-card__meta { display: none; }
  .bundle-card__info h4 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.24em; }
}

/* The note under the hero capsule is removed from the first screen. */
.hero-capsule-note { display: none !important; }

/* Catalogue page: small title, category chips pinned under the header while scrolling, products right below. */
body.catalog-page .products .section-head.direction-intro, body.catalog-page .products .direction-intro > div { display: contents; }
body.catalog-page .products .direction-intro h2 { max-width: none; margin: 0 0 14px; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.1; letter-spacing: -.02em; text-align: left; font-weight: 500; }
body.catalog-page #products { padding-top: calc(var(--announcement-height, 0px) + var(--navigation-height, 72px) + 20px); }
body.catalog-page .catalog-jump { position: sticky; top: calc(var(--announcement-height, 0px) + var(--navigation-height, 72px)); z-index: 20; justify-content: flex-start; margin: 0 calc(-1 * clamp(16px, 4vw, 4vw)); padding: 10px clamp(16px, 4vw, 4vw); background: rgba(248, 248, 246, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line, #dde5ee); }
body.catalog-page .catalog-jump a[aria-current="true"] { background: var(--deep-blue, #314966); border-color: var(--deep-blue, #314966); color: #fff; }
body.catalog-page .products.catalog-group-section { margin-top: 20px; scroll-margin-top: calc(var(--announcement-height, 0px) + var(--navigation-height, 72px) + 76px); }
@media (max-width: 620px) { body.catalog-page .catalog-jump { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } body.catalog-page .catalog-jump a { flex: none; } }

/* Add-to-cart confirmation: a floating card with a clear way to the cart. */
.toast.toast--cart { display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 24px); padding: 8px 8px 8px 12px; border-radius: 100px; background: rgba(32, 33, 37, .96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 18px 50px rgba(20, 24, 32, .28); font-size: 14px; pointer-events: none; }
.toast.toast--cart.show { pointer-events: auto; }
.toast__check { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #9bb7e6; color: #202125; }
.toast__check svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.toast__text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast__go { all: unset; box-sizing: border-box; flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 18px; border-radius: 100px; background: #fff; color: #202125; font: 600 13px Manrope, Arial, sans-serif; cursor: pointer; transition: background .2s, transform .2s; }
.toast__go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.toast__go:hover { background: #dfe9f8; }
.toast__go:hover svg { transform: translateX(3px); }
.toast__go:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 520px) { .toast.toast--cart { bottom: 14px; width: calc(100vw - 24px); justify-content: space-between; } .toast__text { font-size: 13px; } }
/* Product page: price, a compact stepper and the cart button share one row. */
.product-page__purchase { flex-wrap: wrap; row-gap: 14px; }
.product-page__price { white-space: nowrap; }
.product-page__purchase .qty-stepper { flex: none; width: auto; min-width: 128px !important; max-width: 160px; height: 48px !important; margin: 0; }
.product-page__purchase .qty-cart { all: unset; box-sizing: border-box; flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 1px solid #202125; border-radius: 100px; font: 600 14px Manrope, Arial, sans-serif; color: #202125; cursor: pointer; transition: background .2s, color .2s; }
.product-page__purchase .qty-cart:hover { background: #202125; color: #fff; }
.product-page__purchase .qty-cart:focus-visible { outline: 2px solid #202125; outline-offset: 3px; }
@media (max-width: 520px) { .product-page__purchase .qty-cart { flex: 1 1 100%; justify-content: center; } }

/* The buy button and the − 1 + stepper that replaces it are exactly the same size, so nothing shifts when it swaps. */
.category-add, .bundle-card__add, .catalog-panel[data-panel="face"] .add-to-cart.category-add,
.category-product .qty-stepper, .bundle-card .qty-stepper, .card .qty-stepper {
  box-sizing: border-box !important; width: 124px !important; min-width: 124px !important; max-width: 124px !important; height: 44px !important; min-height: 44px !important; padding: 0 !important; flex: none !important;
}
.category-add, .bundle-card__add { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; font-size: 13px; }
.category-product .qty-stepper, .bundle-card .qty-stepper, .card .qty-stepper { padding: 0 4px !important; }
.product-page__add, .product-page__purchase .qty-stepper {
  box-sizing: border-box !important; width: 176px !important; min-width: 176px !important; max-width: 176px !important; height: 50px !important; min-height: 50px !important; flex: none !important; margin: 0;
}
.product-page__add { padding: 0 !important; display: inline-flex; align-items: center; justify-content: center; }
.product-page__purchase .qty-stepper { padding: 0 6px !important; }
.product-page__purchase .qty-cart { min-height: 50px; }

/* Larger logo in the header. */
.nav .brand img { width: clamp(190px, 15vw, 240px); height: auto; }
.nav.scrolled .brand img { width: clamp(170px, 13vw, 210px); }
@media (max-width: 820px) { .nav .brand img, .nav.scrolled .brand img { width: clamp(140px, 36vw, 170px); } }
@media (max-width: 430px) { .nav .brand img, .nav.scrolled .brand img { width: 128px; } }

/* Cart panel and the add-to-cart toast sit above the full-screen product page (z-index 120). */
.cart-overlay { z-index: 140 !important; }
.toast, .toast.toast--cart { z-index: 150 !important; }

/* All delivery is free: said under the price in the product card. */
.product-page__purchase::after { content: 'Бесплатная доставка в пункты выдачи Ozon'; flex-basis: 100%; order: 9; color: #314966; font: 600 13px/1.3 Manrope, Arial, sans-serif; }

/* Reviews section on the home page. */
.drb-reviews { padding: 72px 4vw 80px; background: #fff; }
.drb-reviews > * { max-width: 1440px; margin-inline: auto; }
.drb-reviews__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.drb-reviews__head h2 { margin: 0 0 10px; font: 500 clamp(34px, 4vw, 60px)/1 Manrope, Arial, sans-serif; letter-spacing: -.04em; color: #202125; }
.drb-reviews__head p { margin: 0; color: #5a5e66; font: 500 16px/1.4 Manrope, Arial, sans-serif; }
.drb-reviews__all { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 100px; background: #314966; color: #fff; font: 600 14px Manrope, Arial, sans-serif; text-decoration: none; }
.drb-reviews__all:hover { background: #22364e; }
.drb-reviews__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.drb-reviews__stats a { display: grid; gap: 4px; padding: 18px 20px; border-radius: 22px; background: #f6f6f3; color: #202125; text-decoration: none; font-family: Manrope, Arial, sans-serif; }
.drb-reviews__stats strong { font-size: 30px; letter-spacing: -.03em; }
.drb-reviews__stats span { font-weight: 600; font-size: 14px; }
.drb-reviews__stats small { color: #6b6f76; font-size: 13px; }
.drb-reviews__track { align-items: start; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 340px); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.drb-reviews__track:focus-visible { outline: 2px solid #314966; outline-offset: 4px; }
.drb-review { scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; padding: 22px; border: 1px solid #e6e6e1; border-radius: 22px; background: #fff; font-family: Manrope, Arial, sans-serif; }
.drb-review p { margin: 0; flex: 1; color: #2b2d31; font-size: 15px; line-height: 1.55; }
.drb-review__by { display: grid; gap: 3px; font-size: 13px; color: #202125; }
.drb-review__by span { color: #6b6f76; }
.drb-review__stars { color: #e3a33b; letter-spacing: 2px; font-size: 15px; }
.drb-review__stars i { color: #d9d9d4; font-style: normal; }
@media (max-width: 760px) {
  .drb-reviews { padding: 52px 20px 56px; }
  .drb-reviews__head { flex-direction: column; align-items: flex-start; }
  .drb-reviews__stats { grid-template-columns: 1fr; }
  .drb-reviews__stats { gap: 8px; }
  .drb-reviews__stats a { grid-template-columns: auto 1fr; align-items: baseline; column-gap: 12px; padding: 12px 16px; border-radius: 16px; }
  .drb-reviews__stats strong { font-size: 24px; }
  .drb-reviews__stats strong { grid-row: span 2; }
  .drb-reviews__track { grid-auto-columns: 82%; }
}

/* Reviews inside the product card. */
.drb-pp-reviews { display: grid; gap: 12px; margin-top: 30px; padding-top: 26px; border-top: 1px solid #e6e6e1; }
.drb-pp-reviews h2 { margin: 0; font: 600 20px/1.2 Manrope, Arial, sans-serif; letter-spacing: -.02em; }
.drb-pp-reviews .drb-review { padding: 18px; border-radius: 18px; }
.drb-pp-reviews > a { color: #314966; font: 600 14px Manrope, Arial, sans-serif; text-decoration: none; }
.drb-pp-reviews > a:hover { text-decoration: underline; }
.drb-pp-reviews--short { border-top: 0; padding-top: 0; margin-top: 18px; }
.drb-pp-reviews--short strong { color: #e3a33b; margin-right: 4px; }

/* Shared footer: documents row (lib/site-chrome.mjs). */
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; max-width: 1440px; margin: 34px auto 0; padding-top: 22px; border-top: 1px solid rgba(37,40,45,.12); font-size: 13px; }
.footer-legal a { opacity: .72; }
.footer-legal a:hover { opacity: 1; }
.footer-bottom { flex-wrap: wrap; gap: 6px 24px; }

/* Bundle of one product (e.g. Collagen × 3): its single photo fills the visual instead of a small tile. */
.product-page__bundle-visual:has(> span:only-child) { grid-template-columns: 1fr; width: min(80%, 620px); }
.product-page__bundle-visual > span:only-child { aspect-ratio: 853 / 1280; border-radius: 26px; }
.product-page__bundle-visual > span:only-child img { transform: none !important; object-fit: cover; }
@media (max-width: 760px) { .product-page__bundle-visual:has(> span:only-child) { width: min(70%, 320px); } }

/* Product card gallery (drb-gallery.js). */
.drb-thumbs { position: absolute; z-index: 4; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 7px; border-radius: 22px; background: rgba(255,255,255,.86); backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(28,30,34,.12); }
.drb-thumbs button { width: 52px; height: 68px; padding: 0; border: 2px solid transparent; border-radius: 14px; overflow: hidden; background: #f1f1f1; cursor: pointer; transition: border-color .2s, opacity .2s; opacity: .72; }
.drb-thumbs button[aria-current="true"] { border-color: #314966; opacity: 1; }
.drb-thumbs button:hover { opacity: 1; }
.drb-thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.drb-thumbs .drb-thumbs__arrow { width: 32px; height: 32px; border-radius: 50%; background: transparent; opacity: 1; font: 500 24px/1 Manrope, Arial, sans-serif; color: #314966; }
.drb-thumbs .drb-thumbs__arrow:hover { background: #eef1f5; }
/* Gallery photos have a #f2f2f2 studio background: the panel takes the same colour, so the photo blends in without a frame. */
.product-page.drb-has-gallery:not(.drb-gallery-tail) .product-page__visual { background: #f2f2f2 !important; }
.product-page.drb-gallery-photo .product-page__visual > img, .product-page.drb-bundle-gallery .product-page__visual > img { width: 100% !important; height: calc(100% - 120px) !important; max-height: none; align-self: start; justify-self: center; margin-top: 12px; object-fit: contain !important; border-radius: 0; filter: none !important; scale: 1 !important; transform: none !important; box-shadow: none; }
@media (max-width: 760px) {
  .drb-thumbs { bottom: 10px; gap: 5px; padding: 5px; border-radius: 16px; }
  .drb-thumbs button { width: 38px; height: 50px; border-radius: 10px; }
  .drb-thumbs .drb-thumbs__arrow { display: none; }
  .product-page.drb-gallery-photo .product-page__visual > img, .product-page.drb-bundle-gallery .product-page__visual > img { height: calc(100% - 74px) !important; margin-top: 0; }
}
/* Catalogue cards with a studio photo: the photo's own #f2f2f2 background fills the card. */
.category-product-visual--studio { background: #f2f2f2 !important; }
.category-product-visual--studio img { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; margin: 0 !important; padding: 0 !important; object-fit: cover !important; object-position: center 50% !important; filter: none !important; transform: scale(1) !important; background: none !important; box-shadow: none !important; border-radius: 0 !important; }
.category-product:hover .category-product-visual--studio img { transform: scale(1.04) !important; }

/* One photo background for all supplements (the studio grey #f2f2f2): their catalogue cards, bundles and product pages. */
.category-product-visual--supplement, .bundle-card__photo, .product-page.drb-supplement .product-page__visual { background: #f2f2f2 !important; }
.product-page.drb-supplement { --product-bg: #f2f2f2; }

/* Face care cards: no "01 / CLEAN"-style step labels. */
.card .card-info .step { display: none !important; }

/* Bundle photos: images are prepared on the same #f2f2f2 canvas (1180×1000) with padding, so show them whole — no zoom, no blend. */
.bundle-card__photo { background: #f2f2f2 !important; }
.bundle-card__photo img, .bundle-card--focus .bundle-card__photo img { width: 100% !important; height: 100% !important; object-fit: contain !important; transform: none !important; mix-blend-mode: normal !important; }

/* Bundle card sections: products inside, intake plan, per-product blocks (drb-bridge.js bundleSections). */
.pp-kit { display: grid; gap: 10px; }
.pp-kit__item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px; border: 1px solid var(--line, #e3e9f0); border-radius: 18px; background: #fff; cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease; }
.pp-kit__item:hover { border-color: #79a3d9; box-shadow: 0 8px 20px rgba(49,73,102,.07); }
.pp-kit__item:focus-visible { outline: 3px solid #79a3d9; outline-offset: 2px; }
.pp-kit__photo { position: relative; width: 96px; aspect-ratio: 1; border-radius: 12px; background: #f2f2f2; overflow: hidden; }
.pp-kit__photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pp-kit__n { position: absolute; right: 6px; bottom: 6px; padding: 2px 8px; border-radius: 100px; background: #314966; color: #fff; font-size: 12px; font-weight: 600; }
.pp-kit__text { min-width: 0; display: grid; gap: 3px; }
.pp-kit__text b { color: var(--ink, #25282d); font-weight: 600; font-size: 15px; line-height: 1.3; }
.pp-kit__text small { color: var(--muted, #667382); font-size: 12px; }
.pp-kit__text p { margin: 2px 0 0; font-size: 13px; line-height: 1.45; }
.pp-kit__more { margin-top: 4px; color: #314966; font-size: 13px; font-weight: 600; }
.pp-kit-part + .pp-kit-part { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line, #e3e9f0); }
.pp-kit-part h4 { margin: 0 0 8px; color: var(--ink, #25282d); font-size: 15px; font-weight: 600; }
.pp-plan { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; counter-reset: plan; }
.pp-plan li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: start; padding: 12px; border-radius: 16px; background: #f7f8fa; }
.pp-plan__photo { width: 56px; aspect-ratio: 1; border-radius: 10px; background: #f2f2f2; overflow: hidden; }
.pp-plan__photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pp-plan b { color: var(--ink, #25282d); font-weight: 600; }
.pp-plan p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; }
.pp-plan__course { display: inline-block; margin-top: 8px; padding: 4px 10px; border-radius: 100px; background: #e8f0f9; color: #314966; font-size: 12px; font-weight: 600; }
@media (max-width: 620px) { .pp-kit__item { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; } .pp-kit__photo { width: 76px; } }

/* Cart drawer quantity: bigger round − / + buttons and count. */
.cart-drawer .qty { gap: 10px; align-items: center; }
.cart-drawer .qty button { width: 38px; height: 38px; display: inline-grid; place-items: center; padding: 0; border: 1px solid #c9d5e3; border-radius: 50%; background: #fff; color: var(--ink, #25282d); font-size: 22px; font-weight: 500; line-height: 1; cursor: pointer; }
.cart-drawer .qty button:hover { border-color: #314966; background: #f4f7fb; }
.cart-drawer .qty span { min-width: 26px; text-align: center; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 620px) { .cart-drawer .qty button { width: 44px; height: 44px; font-size: 24px; } }

/* Mobile header: the account button lives in the menu panel ("Личный кабинет"), not in the top bar. */
@media (max-width: 820px) { .nav .account-link { display: none !important; } .nav .menu-trigger { margin-left: auto !important; } }
.journal .article-card h3 a { color: inherit; text-decoration: none; }
.journal a.article-open { display: inline-flex; align-items: center; text-decoration: none; }
.journal-all { display: inline-block; margin-top: 14px; color: #314966; font-weight: 600; text-decoration: none; }
.journal-all:hover { text-decoration: underline; }

/* Product card on phones: the round "back to catalogue" button stays on screen while the card scrolls. */
@media (max-width: 620px) { .product-page.is-open .product-page__mobile-back { position: fixed; z-index: 130; } }
/* Tablets: the "Назад к каталогу" row sticks to the top of the card content. */
@media (min-width: 621px) and (max-width: 900px) { .product-page__top { position: sticky; top: 0; z-index: 5; margin-inline: -16px; padding: 10px 16px; background: rgba(250,250,248,.94); backdrop-filter: blur(8px); } }

/* Catalogue tabs on phones: three equal buttons in one row, nothing cut off. */
@media (max-width: 620px) {
  .catalog-jump { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px !important; overflow: visible !important; padding-inline: 16px !important; }
  .catalog-jump a { justify-content: center; text-align: center; min-width: 0 !important; min-height: 48px; padding: 6px 8px !important; font-size: 13px !important; line-height: 1.2; white-space: normal !important; }
}

/* Cart drawer: a bundle is one card (its products stay separate lines for Ozon and the receipt). */
.cart-line--bundle .cart-thumb { object-fit: cover; background: #f2f2f2; }
.cart-line-tag { display: inline-block; margin-bottom: 4px; padding: 2px 8px; border-radius: 100px; background: #e8f0f9; color: #314966; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.cart-line-parts { margin: 2px 0 4px; font-size: 12px; line-height: 1.35; color: var(--muted, #667382); }

/* Phones: the cart button is an icon with the count (the word "Корзина" overflowed it on the catalogue page). */
@media (max-width: 820px) { .nav .cart-trigger-label { display: none !important; } }

/* Face/body cards have the «Товар / Нанесение» switch at the bottom of the photo: keep the thumbnails above it. */
.product-page__visual:has(> .product-page__gallery:not([hidden])) .drb-thumbs { bottom: 96px; }
@media (max-width: 620px) { .product-page__visual:has(> .product-page__gallery:not([hidden])) .drb-thumbs { bottom: 80px; } }

/* Bundle card: the set photo and each product inside, swiped like a product gallery (drb-gallery.js). */
.product-page.drb-bundle-gallery .product-page__bundle-visual { display: none !important; }
.product-page.drb-bundle-gallery .product-page__visual > img { opacity: 1 !important; }

/* Bundle price: the regular price of its products crossed out above the bundle price; −15% badge. */
.bundle-card__purchase b:has(.bundle-old) { display: flex; flex-direction: column; align-items: flex-start; }
.bundle-card__purchase .bundle-old { order: -1; font-size: .5em; font-weight: 500; color: #8b8f96; margin-bottom: 2px; }
.bundle-card__photo { position: relative; }
.bundle-card__badge { position: absolute; z-index: 3; top: 14px; left: 14px; background: #314966; color: #fff; font: 800 13px/1 Manrope, Arial, sans-serif; padding: 7px 10px; border-radius: 999px; pointer-events: none; }

.catalog-bundle-section .catalog-jump { margin-bottom: 20px; }

.category-product[data-handle="pdrn-set"] .category-product-visual img {
  object-fit: contain;
  object-position: center;
}
.product-page.is-open .product-page__visual > img[src$="/pdrn-set-v2.svg"] {
  inset: 0;
  width: 96%;
  height: 92%;
  margin: auto;
  scale: 1;
  transform: none;
  filter: none;
  object-position: center;
}

.category-card-badge {
  position: absolute;
  z-index: 2;
  inset: 14px auto auto 14px;
  padding: 8px 13px;
  border-radius: 999px;
  font: 800 13px/1 Manrope, Arial, sans-serif;
}
.category-card-badge--new { background: #FFD259; color: #382709; }
.category-card-badge--value { background: #8C4560; color: #FFF; }
