/* «Где купить»: вместо широких кнопок — графитовый кружок со стрелкой (09.11.2026, выбор владельца «В», кружок тёмный).
   Отдельным файлом, потому что styles.css правила другая сессия; при случае перенести в конец styles.css. */
html body .bc__btn, html body .ph__b {
  display: flex; align-items: center; justify-content: center; gap: 0;
  width: 44px; min-width: 0; height: 44px; min-height: 0; padding: 0; margin: 0;
  border-radius: 999px; font-size: 0;
}
html body .bc__btn .btn__arrow { display: none; }
html body .bc__btn::after, html body .ph__b::after {
  content: ""; width: 20px; height: 20px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
html body .ph { grid-template-columns: 56px minmax(0, 1fr) 44px; }
html body .ph img { grid-column: 1; grid-row: 1; }
html body .ph__n { grid-column: 2; grid-row: 1; }
html body .ph__b { grid-column: 3; grid-row: 1; align-self: center; justify-self: end; }

@media (max-width: 1023px) {
  html body .bc__card { grid-template-columns: 56px minmax(0, 1fr) 44px; row-gap: 2px; }
  html body .bc__card header img { grid-column: 1; grid-row: 1 / 3; align-self: center; }
  html body .bc__card header span:not(.bc__tag) { grid-column: 2; grid-row: 1; align-self: end; }
  html body .bc__card .bc__price { grid-column: 2; grid-row: 2; align-self: start; justify-self: start; margin: 0; text-align: left; }
  html body .bc__card .bc__btn { grid-column: 3; grid-row: 1 / 3; align-self: center; justify-self: end; }
}
@media (min-width: 1024px) {
  html body .bc__card { position: relative; }
  html body .bc__price:has(+ .bc__btn) { margin-bottom: 0; }
  html body .bc__card .bc__btn { position: absolute; right: 24px; bottom: 24px; }
}

/* «В аптеках» — последним пунктом, под витринами (09.11.2026) */
html body .buy__card > .buy__pharm { margin-top: 12px; }
@media (min-width: 1024px) { html body .buy__card > .buy__pharm { margin-top: 20px; } }
@media (min-width: 1024px) { html body .ph { grid-template-columns: 40px minmax(0, 1fr) 44px; column-gap: 12px; padding: 16px 26px; } }

/* Первый экран: вместо «3 исследования спрея» — журнал, отдельной строкой (владелец 09.11.2026). Числа журнала не писать (G-88) */
html body .hero__trust--3 { flex-wrap: wrap; row-gap: 18px; }
html body .hero__trust--3 .hero__stat--j { flex: 0 0 100%; padding: 0; border-left: 0; white-space: normal; }
html body .hero__trust--3 .hero__stat--j b { display: block; font-size: 17px; line-height: 1.3; letter-spacing: 0; }
@media (min-width: 1024px) { html body .hero__trust--3 .hero__stat--j b { font-size: 20px; } }

/* «Где купить» на компьютере: аптеки четвёртой плашкой в ряд с витринами (09.11.2026). .bc растворён в сетку .buy__card, разметка не менялась */
@media (min-width: 1200px) {
  html body .buy__card.has-bc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 20px; }
  html body .buy__card.has-bc > * { grid-column: 1 / -1; }
  html body .buy__card.has-bc .bc { display: contents; }
  html body .buy__card.has-bc > .bc__card, html body .buy__card.has-bc .bc > .bc__card { grid-column: auto; }
  html body .buy__card.has-bc > .buy__pharm { grid-column: auto; display: flex; align-self: stretch; margin-top: 0; }
  html body .buy__card.has-bc > .buy__pharm .ph { position: relative; flex: 1; display: flex; align-self: stretch; align-items: flex-start; gap: 12px; height: auto; padding: 26px; }
  html body .buy__card.has-bc > .buy__pharm .ph__n { font-size: 18px; line-height: 1.3; padding-top: 8px; }
  html body .buy__card.has-bc > .buy__pharm .ph__b { position: absolute; right: 26px; bottom: 26px; }
  /* «Дешевле» — на рамке карточки: в узкой плашке рядом с названием не помещается */
  html body .bc__card { position: relative; }
  html body .bc__card .bc__tag { position: absolute; top: 0; right: 24px; transform: translateY(-50%); margin: 0; padding: 4px 10px; background: var(--accent); color: #fff; }
}

/* «Преимущества» на компьютере: одна панель в два столбца, значок слева, тонкие линии (выбор владельца «Б», 09.11.2026) */
@media (min-width: 1024px) {
  html body #when .ben { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; padding: 12px 40px; }
  html body #when .ben__row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; align-items: center; min-height: 112px; padding: 20px 0; }
  html body #when .ben__row:nth-child(even) { padding-left: 40px; border-left: 1px solid var(--line, rgba(27, 36, 48, .1)); }
  html body #when .ben__row:nth-child(odd) { padding-right: 40px; }
  html body #when .ben__row:nth-child(n+3) { border-top: 1px solid var(--line, rgba(27, 36, 48, .1)); }
  html body #when .ben__ico, html body #when .ben__ico svg { width: 64px; height: 64px; }
  html body #when .ben__ico { border-radius: 18px; }
  html body #when .ben__text { font-size: 18px; line-height: 1.4; text-wrap: pretty; }
}

/* «Все преимущества и области применения»: та же структура, что у панели выше — строки, линии, один левый край (09.11.2026) */
@media (min-width: 768px) {
  html body #when .use-list { gap: 0; padding: 0 28px; }
  html body #when .use-row { padding: 18px 0; border-top: 1px solid var(--line, rgba(27, 36, 48, .1)); }
  html body #when .use-row:nth-child(odd) { padding-right: 40px; }
  html body #when .use-row:nth-child(even) { padding-left: 40px; border-left: 1px solid var(--line, rgba(27, 36, 48, .1)); }
  html body #when .use-row .ben__text { text-wrap: pretty; }
  html body #when .use-more .composition__note { margin: 0; padding: 18px 28px 26px; border-top: 0; }
}

/* Галочки списка «Все преимущества» — тёмные в сером кружке, как плитки значков (09.11.2026) */
html body .use-ok { width: 24px; height: 24px; border-radius: 50%; background: #E6E9EE; color: #2B2F36; }
html body .use-ok svg { width: 16px; height: 16px; stroke-width: 2; }

/* «Преимущества» на телефоне: строки с линиями, значок меньше (выбор владельца «А», 09.11.2026) */
@media (max-width: 767px) {
  html body #when .ben { gap: 0; padding: 6px 20px; }
  html body #when .ben__row { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px 0; }
  html body #when .ben__row + .ben__row { border-top: 1px solid var(--line, rgba(27, 36, 48, .1)); }
  html body #when .ben__ico, html body #when .ben__ico svg { width: 44px; height: 44px; }
  html body #when .ben__ico { border-radius: 13px; }
  html body #when .ben__text { font-size: 16px; line-height: 1.4; align-self: center; text-wrap: pretty; }
  html body #when .use-list { gap: 0; padding: 0 20px 4px; }
  html body #when .use-row { grid-template-columns: 24px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--line, rgba(27, 36, 48, .1)); }
  html body #when .use-row .ben__text { line-height: 1.4; }
  html body #when .use-more .composition__note { margin: 0; padding: 12px 20px 20px; }
}

/* «Теория»: фон как у «Других продуктов», сетка и кольца окуляра, спокойное движение (выбор владельца «В», 09.11.2026). Слои — hero-gen/theory/recolor/layers.py */
#theory .how__art { position: relative; background: #E6E9ED url("assets/img/theory-bg.jpg") center / cover no-repeat; }
#theory .how__art picture { position: relative; z-index: 1; }
#theory .how__art img { background: none; }
#theory .how__n { z-index: 3; }
#theory .how__tag { z-index: 2; background: #2B2F36; color: #fff; }
#theory .how__tag::after, #theory .how__line { background: #2B2F36; }
#theory .how__line { z-index: 2; }
.how__fx { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.how__fx i { position: absolute; display: block; }
.how__r1, .how__r2 { left: 50%; top: 50%; background: center / contain no-repeat; will-change: transform; }
.how__r1 { width: 77%; aspect-ratio: 1; margin: -38.5% 0 0 -38.5%; background-image: url("assets/img/theory-ring-1.svg"); animation: thSpin 60s linear infinite; }
.how__r2 { width: 53.34%; aspect-ratio: 1; margin: -26.67% 0 0 -26.67%; background-image: url("assets/img/theory-ring-2.svg"); animation: thSpin 38s linear infinite reverse; }
#theory .how__art img { animation: thBreath 6s ease-in-out infinite alternate; transform-origin: 50% 50%; will-change: transform; }
#theory .how__card:nth-child(2) .how__art img { animation-delay: -2s; }
#theory .how__card:nth-child(3) .how__art img { animation-delay: -4s; }
#theory .how__card:nth-child(4) .how__art img { animation-delay: -6s; }
@keyframes thSpin { to { transform: rotate(360deg); } }
@keyframes thBreath { from { transform: translateY(3px) scale(.994); } to { transform: translateY(-3px) scale(1.012); } }
#theory .how__art img.how__flow { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; aspect-ratio: auto; object-fit: fill; animation: none; will-change: auto; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .how__r1, .how__r2, #theory .how__art img { animation: none; } #theory .how__art img.how__flow { display: none; } }

/* «Теория»: выноски шагов 3 и 4 — точка на объекте, линия, подпись (09.11.2026) */
.how__pin { position: absolute; z-index: 2; box-sizing: border-box; width: 10px; height: 10px; margin: -5px 0 0 -5px; border: 2px solid #2B2F36; border-radius: 50%; background: #fff; }
.how__tag.how__tag--side { transform: translateY(-50%); }
.how__tag.how__tag--b { transform: translate(-50%, -50%); }
.how__tag.how__tag--side::after, .how__tag.how__tag--b::after { display: none; }
.how__tag--inf { --x: 70%; }
@media (min-width: 768px) { .how__tag--inf { --x: 57%; } }
