/* WV-0138: Shop subdomain design system — 1:1 parity with Nuxt storefront-shops.
 *
 * Consolidates `<style scoped>` blocks from:
 *   apps/storefront-shops/layouts/default.vue (header, footer, cookie banner)
 *   apps/storefront-shops/pages/index.vue (hero, offers grid, toolbar, actions)
 *   apps/storefront-shops/pages/offers/[id].vue (offer detail, gallery container, sticky CTA)
 *   apps/storefront-shops/components/OfferCardPublic.vue
 *   apps/storefront-shops/components/InquiryForm.vue
 *   apps/storefront-shops/components/ImageGallery.vue
 *   apps/storefront-shops/components/ShopCaseStudies.vue
 *   apps/storefront-shops/components/ShopRichContent.vue
 *   apps/storefront-shops/components/ShopReviews.vue
 *   apps/storefront-shops/components/TrustBadge.vue
 *   apps/storefront-shops/components/ListersAvatars.vue + ListersModal.vue
 *   apps/storefront-shops/components/RecommendationBanner.vue
 *
 * Tokens imported from packages/shared-ui/assets/tokens.css (copied to
 * _global/static/tokens.css by baker bakeShopGlobalAssets).
 */

@import url("/static/tokens.css");

/* ============================================================
 * WV-0396 — дизайн-язык «dro» (палитра лендинга recca.ru).
 *
 * Оверрайд поверх shared tokens.css: файл грузится ТОЛЬКО shop-layout'ом
 * (*.recca.ru), поэтому :root-переопределение безопасно и перекрашивает
 * все carried-over блоки (кнопки, trust, хедер) без правки разметки.
 *
 * Блок --sfc-* — самодостаточная копия
 * apps/storefront/components/storefront/storefront-tokens.css (Vue-эталон,
 * утверждён владельцем 2026-08-02). При правке дизайна сначала меняется
 * Vue-набор, потом синхронизируется этот блок — см. docs/qa/storefront-redesign.md.
 * ============================================================ */

:root {
  --color-primary: #d71900;
  --color-primary-dark: #b81500;
  --color-primary-light: #ff6f21;
  --color-primary-gradient: linear-gradient(135deg, #d71900 0%, #ff1f1c 50%, #ff6f21 100%);

  --sfc-deep: #d71900;
  --sfc-bright: #ff1f1c;
  --sfc-warm: #ff6f21;
  --sfc-on: #ffffff;
  --sfc-cream: #fff1ea;
  --sfc-ink: #0a0a0a;
  --sfc-ink-2: #161616;
  --sfc-mute: #6b6b6b;
  --sfc-line: #e8dfd9;
  --sfc-bg: #ffffff;
  --sfc-card: #ffffff;

  --sfc-grad: linear-gradient(135deg, #d71900 0%, #ff1f1c 50%, #ff6f21 100%);

  --sfc-radius: 16px;
  --sfc-radius-sm: 10px;
  --sfc-shadow: 0 1px 2px rgba(10, 10, 10, 0.05), 0 8px 24px rgba(10, 10, 10, 0.06);
}

/* ============================================================
 * Reset + base
 * ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--color-text-primary);
  background: var(--color-bg-page);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button {
  font-family: inherit;
  cursor: pointer;
}

input, select, textarea {
  font-family: inherit;
}

/* ============================================================
 * Layout (header, content, footer)
 * ============================================================ */

.layout-shop {
  min-height: 100vh;
  background: var(--color-bg-page);
  display: flex;
  flex-direction: column;
}

.shop-header {
  background: var(--color-bg-card);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-3) var(--space-6);
  position: sticky;
  top: 0;
  z-index: 50;
}

.shop-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.shop-header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--color-primary);
}

.shop-header__shop-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.shop-header__shop-icon--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-gradient);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
}

.shop-header__brand {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

.shop-header__nav {
  display: flex;
  gap: var(--space-4);
  margin-left: var(--space-4);
}

.shop-header__link {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  transition: color var(--transition-fast);
}

.shop-header__link:hover {
  color: var(--color-primary);
}

/* App-entry buttons (Войти / Создать витрину) — link into app.recca.ru */
.shop-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
}

.shop-header__login {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.shop-header__login:hover {
  border-color: var(--color-text-primary);
}

.shop-header__cta {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  border: 1px solid #1a1a1a;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: #fff;
  background: #1a1a1a;
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.shop-header__cta:hover {
  background: #333;
  border-color: #333;
}

.shop-content {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-6);
}

.shop-footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-8) var(--space-6);
  background: var(--color-bg-card);
}

.shop-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.shop-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
  font-size: var(--text-base);
  justify-content: center;
}

.shop-footer__text {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  margin: 0 0 var(--space-4) 0;
}

.shop-footer__socials {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.shop-footer__social-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.shop-footer__social-link:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.shop-footer__legal {
  text-align: center;
  color: var(--color-text-tertiary);
  font-size: var(--text-xs);
  line-height: 1.5;
}

.shop-footer__operator {
  text-align: center;
  color: var(--color-text-tertiary);
  font-size: var(--text-xs);
  line-height: 1.5;
  margin-top: var(--space-1);
}

.shop-footer__operator a {
  color: var(--color-text-secondary);
  text-decoration: underline;
}

/* ============================================================
 * Legal document (per-shop personal-data policy)
 * ============================================================ */

.legal-doc {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--space-6) 0 var(--space-8);
}

.legal-doc__back {
  margin-bottom: var(--space-4);
}

.legal-doc__back a {
  color: var(--color-primary);
  font-size: var(--text-sm);
}

.legal-doc__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-4);
  line-height: 1.25;
}

.legal-doc__lead {
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0 0 var(--space-6);
}

.legal-doc__section {
  margin-bottom: var(--space-5);
}

.legal-doc__section h2 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-2);
}

.legal-doc__section p,
.legal-doc__section li {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.legal-doc__section ul {
  margin: 0;
  padding-left: var(--space-5);
}

.legal-doc a {
  color: var(--color-primary);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-3) var(--space-4);
}

.cookie-banner__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
}

.cookie-banner__text {
  flex: 1;
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.cookie-banner__text a {
  color: var(--color-primary);
  text-decoration: underline;
}

.cookie-banner__btn {
  flex-shrink: 0;
  padding: var(--space-2) var(--space-5);
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.cookie-banner__btn:hover {
  opacity: 0.9;
}

/* The cookie banner is position:fixed at the viewport bottom. On short shop
   pages it covered the last offer row — reserve space at the page bottom while
   the banner is visible so nothing important sits underneath it. */
body.layout-shop:has(.cookie-banner:not([hidden])) {
  padding-bottom: 96px;
}

/* ============================================================
 * WV-0396 — карточка компании (порт Vue-эталона Storefront*.vue).
 * Хром страницы: секции, айбро, тайтлы, кнопки, карточка.
 * ============================================================ */

.shop-home {
  min-height: 60vh;
}

.sfc-root {
  font-family: 'Geist', var(--font-sans);
  color: var(--sfc-ink);
}

.sfc-page {
  max-width: 980px;
  margin: 0 auto;
}

.sfc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sfc-bright);
  background: rgba(255, 31, 28, 0.08);
  padding: 5px 11px;
  border-radius: 6px;
}

.sfc-h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--sfc-ink);
  margin: 0;
}

.sfc-section {
  padding: 28px 0;
  border-top: 1px solid var(--sfc-line);
}

.sfc-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.sfc-section__title-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.sfc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.sfc-btn--primary {
  background: var(--sfc-grad);
  color: var(--sfc-on);
  box-shadow: 0 6px 18px rgba(215, 25, 0, 0.25);
}

.sfc-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(215, 25, 0, 0.32);
}

.sfc-btn--ghost {
  background: transparent;
  color: var(--sfc-ink);
  border: 1.5px solid var(--sfc-line);
}

.sfc-btn--ghost:hover {
  border-color: var(--sfc-ink);
}

.sfc-card {
  background: var(--sfc-card);
  border: 1px solid var(--sfc-line);
  border-radius: var(--sfc-radius);
  box-shadow: var(--sfc-shadow);
}

/* ── Cover: обложка 16:9 + логотип 1:1, свисающий с обложки ─────────── */

.sfc-cover {
  position: relative;
  margin-bottom: 54px;
}

.sfc-cover__banner {
  width: 100%;
  border-radius: var(--sfc-radius);
  overflow: hidden;
  position: relative;
  background: var(--sfc-cream);
}

.sfc-cover__banner--empty {
  background: var(--sfc-grad);
}

.sfc-cover__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sfc-cover__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(64px, 12vw, 140px);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.28);
  letter-spacing: -0.04em;
  user-select: none;
}

/* Мягкий низ, чтобы логотип читался на пёстрой обложке. */
.sfc-cover__scrim {
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;
  background: linear-gradient(180deg, transparent, rgba(10, 10, 10, 0.28));
  pointer-events: none;
}

.sfc-cover__logo {
  position: absolute;
  left: 24px;
  bottom: -44px;
  width: 96px;
  border-radius: 20px;
  overflow: hidden;
  border: 4px solid var(--sfc-bg);
  background: var(--sfc-grad);
  box-shadow: var(--sfc-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sfc-cover__logo-letter {
  font-size: 40px;
  font-weight: 900;
  color: var(--sfc-on);
  user-select: none;
}

/* ── Identity: имя, статы, trust, действия ──────────────────────────── */

.sfc-identity {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 8px;
}

.sfc-identity__main {
  flex: 1 1 420px;
  min-width: 0;
}

.sfc-identity__name {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px 0;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--sfc-ink);
}

.sfc-identity__verified {
  color: var(--sfc-bright);
  flex-shrink: 0;
}

.sfc-identity__desc {
  margin: 0 0 10px 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--sfc-ink-2);
  max-width: 60ch;
}

.sfc-identity__geo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sfc-mute);
  font-size: 14px;
  margin-bottom: 14px;
}

.sfc-identity__stats {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

.sfc-identity__stat {
  display: flex;
  flex-direction: column;
}

.sfc-identity__stat-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--sfc-ink);
  letter-spacing: -0.02em;
}

.sfc-identity__stat-lbl {
  font-size: 13px;
  color: var(--sfc-mute);
}

.sfc-identity__trust {
  margin-top: 14px;
}

.sfc-identity__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  flex: 0 0 auto;
}

/* Section headings */
.section-title {
  margin: 0 0 var(--space-6) 0;
  font-size: var(--text-xl);
  color: var(--color-text-primary);
  font-weight: var(--font-weight-semibold);
}

/* ============================================================
 * Trust Badge
 * ============================================================ */

.trust,
.shop-trust {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.trust__level {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.trust__rings { flex-shrink: 0; }

.trust__level-text {
  font-size: 10px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-tertiary);
}

.trust__items {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  flex: 1;
}

.trust__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.trust__icon { flex-shrink: 0; color: var(--color-text-tertiary); }

.shop-trust__rating,
.shop-trust__reviews,
.shop-trust__recommenders {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.shop-trust__rating {
  color: #f59e0b;
  font-weight: var(--font-weight-semibold);
}

/* ============================================================
 * WV-0396 — Процесс работы (нумерованные шаги) + FAQ и сертификаты
 * ============================================================ */

.sfc-process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.sfc-process__step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--sfc-line);
  border-radius: var(--sfc-radius);
  background: var(--sfc-card);
}

.sfc-process__num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sfc-grad);
  color: var(--sfc-on);
  font-weight: 800;
  font-size: 14px;
}

.sfc-process__text {
  margin: 4px 0 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--sfc-ink-2);
  white-space: pre-line;
}

.sfc-faq {
  border: 1px solid var(--sfc-line);
  border-radius: var(--sfc-radius-sm);
  margin-bottom: 8px;
  background: var(--sfc-card);
}

.sfc-faq__q {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 15px;
  color: var(--sfc-ink);
  list-style: none;
  user-select: none;
}

.sfc-faq__q::-webkit-details-marker {
  display: none;
}

.sfc-faq__q::after {
  content: '+';
  float: right;
  color: var(--sfc-bright);
  font-weight: 800;
}

.sfc-faq[open] .sfc-faq__q::after {
  content: '–';
}

.sfc-faq__a {
  margin: 0;
  padding: 0 16px 14px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--sfc-ink-2);
  white-space: pre-line;
}

.sfc-certs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.sfc-certs__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sfc-deep);
  background: rgba(255, 31, 28, 0.07);
  border-radius: 999px;
  padding: 6px 12px;
}

.sfc-certs__img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: cover;
}

/* Портфолио (rich_content.portfolio) — галерея примеров работ внутри
   секции «Кейсы» (решение П-5, docs/qa/storefront-redesign.md). */
.sfc-portfolio {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.sfc-portfolio__item {
  margin: 0;
  border: 1px solid var(--sfc-line);
  border-radius: var(--sfc-radius);
  overflow: hidden;
  background: var(--sfc-card);
}

.sfc-portfolio__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.sfc-portfolio__caption {
  padding: 8px 12px;
  font-size: 13px;
  color: var(--sfc-mute);
}

/* ============================================================
 * Case Studies — грид секции «Кейсы» (карточки cs-card общие с pub)
 * ============================================================ */

.sfc-cases {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.cs-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-component);
  border: 1px solid var(--color-border);
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.cs-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.cs-card__image {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.cs-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cs-card__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-hover);
  color: var(--color-text-tertiary);
}

.cs-card__body {
  padding: var(--space-3) var(--space-4) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.cs-card__title {
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin: 0;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.cs-card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.cs-card__meta {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  margin-top: var(--space-1);
}

/* ============================================================
 * Shop Actions — кнопка-паттерн страниц оффера/лида (shop-offer.html,
 * shop-lead.html). Контейнер .shop-actions умер вместе со старым hero
 * (WV-0396: вторичные действия живут в sfc-identity__actions).
 * ============================================================ */

.shop-action-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  color: #fff;
  background: #1a1a1a;
}

.shop-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  background: #333;
}

.shop-action-btn__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ============================================================
 * Offers toolbar + sf-chips + grid
 * ============================================================ */

.offers-section {
  margin-bottom: var(--space-8);
}

.sf-chips {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-2);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.sf-chips::-webkit-scrollbar { display: none; }

.sf-chip {
  padding: 6px 14px;
  border: 1.5px solid var(--sfc-line);
  border-radius: 999px;
  background: var(--sfc-bg);
  color: var(--sfc-ink-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.sf-chip:hover {
  border-color: var(--sfc-ink);
  color: var(--sfc-ink);
}

.sf-chip--active,
.sf-chip[aria-pressed="true"] {
  background: var(--sfc-ink);
  color: var(--sfc-on);
  border-color: var(--sfc-ink);
}

/* ----- Storefront groups (multi-witrine visual separation, WV-0138 QA) --- */
.offers-section--grouped { margin-top: var(--space-4); }

.storefront-group {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
}
.storefront-group:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }

.storefront-group__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.storefront-group__title {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  margin: 0;
  line-height: 1.2;
}
.storefront-group__title a {
  color: inherit;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition-fast);
}
.storefront-group__title a:hover { border-color: var(--color-primary); }

.storefront-group__count {
  background: var(--color-bg-card);
  color: var(--color-text-secondary);
  padding: 2px var(--space-2);
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
}

.storefront-group__lead {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  margin: 0 0 var(--space-3);
  line-height: 1.5;
}

.storefront-group__empty {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  padding: var(--space-4);
  text-align: center;
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
}

/* Chip-driven filtering: hide groups that don't match the active chip. */
.offers-section--grouped[data-active-storefront]:not([data-active-storefront=""]) .storefront-group {
  display: none;
}
.offers-section--grouped[data-active-storefront]:not([data-active-storefront=""]) .storefront-group.is-active {
  display: block;
}

/* Тулбар офферов (поиск + сортировка) в шапке секции «Услуги и цены». */
.sfc-offers__tools {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.sfc-offers__search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--sfc-line);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--sfc-mute);
  background: var(--sfc-bg);
}

.sfc-offers__search input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: var(--sfc-ink);
  width: 150px;
}

.sfc-offers__sort {
  border: 1.5px solid var(--sfc-line);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--sfc-ink);
  background: var(--sfc-bg);
  cursor: pointer;
  appearance: auto;
}

.offers-grid,

.storefront-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-4);
}

/* Карусель услуг на карточке компании: горизонтальный рэйл со scroll-snap
   (тот же приём, что в Vue-эталоне; прогрессивно — без JS просто скроллится).
   Класс добавляется РЯДОМ с .offers-grid, чтобы shop.js и структурные тесты
   продолжали видеть привычный контейнер data-offers-grid. */
.sfc-offers__rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(230px, 28vw, 290px);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* Снап останавливается на границе карточки С УЧЁТОМ отступа рэйла —
     иначе после листания первая карточка подрезана. */
  scroll-padding-left: 4px;
  padding: 4px;
  scrollbar-width: thin;
  grid-template-columns: none;
}

.sfc-offers__rail > * {
  scroll-snap-align: start;
}

/* WV-0453 — стрелки листания. Обёртку и сами кнопки ставит shop.js: без
   скриптов листать нечем, значит и кнопки рисовать незачем. Паритет с
   кабинетом — StorefrontOfferCarousel.vue. */
.sfc-offers__rail-wrap {
  position: relative;
  margin: 0 -4px;
}

.sfc-offers__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--sfc-line, #e8dfd9);
  border-radius: 999px;
  background: var(--sfc-bg, #fff);
  color: var(--sfc-ink, #0a0a0a);
  box-shadow: 0 2px 10px rgba(10, 10, 10, 0.12);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.sfc-offers__nav:hover {
  color: var(--sfc-bright, #ff1f1c);
  border-color: var(--sfc-bright, #ff1f1c);
}

.sfc-offers__nav:active {
  transform: translateY(-50%) scale(0.94);
}

.sfc-offers__nav[hidden] {
  display: none;
}

.sfc-offers__nav--left {
  left: -6px;
}

.sfc-offers__nav--right {
  right: -6px;
}

/* На узком экране листают пальцем — кнопки уступают место карточкам. */
@media (max-width: 640px) {
  .sfc-offers__nav {
    display: none;
  }
}

/* Load more */
.load-more {
  display: flex;
  justify-content: center;
  padding: var(--space-6) 0;
}

.load-more__btn {
  padding: var(--space-3) var(--space-8);
  background: var(--color-bg-card);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.load-more__btn:hover:not(:disabled) {
  background: var(--color-primary);
  color: #fff;
}

.load-more__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Empty states */
.empty-state {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.empty-state p {
  margin: 0;
  color: var(--color-text-secondary);
}

/* ============================================================
 * Offer Card (the single most important shared pattern)
 * ============================================================ */

.offer-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: all var(--transition-base);
  display: block;
  color: inherit;
}

.offer-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.offer-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.offer-card__image-wrap {
  width: 100%;
  /* Square — offer cover images are uploaded/cropped to 1:1 */
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  background: var(--color-bg-component);
}

.offer-card__image,
.offer-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.offer-card:hover .offer-card__image,
.offer-card:hover .offer-card__img {
  transform: scale(1.05);
}

.offer-card__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-component);
  color: var(--color-text-tertiary);
}

.offer-card__photo-count {
  position: absolute;
  bottom: var(--space-2);
  right: var(--space-2);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: var(--text-xs);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 3px;
}

.offer-card__body {
  padding: var(--space-3) var(--space-4) var(--space-4);
}

.offer-card__price {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
}

.offer-card__bonus {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 2px var(--space-2);
  margin-bottom: var(--space-1);
  background: var(--color-bg-component);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
}

.offer-card__title {
  margin: 0 0 var(--space-2) 0;
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.offer-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.offer-card__date {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
}

.offer-card__bonus {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  color: #16a34a;
  background: rgba(34, 197, 94, 0.1);
  padding: 1px var(--space-2);
  border-radius: var(--radius-sm);
}

.offer-card__shop-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
  text-decoration: none;
  color: var(--color-text-secondary);
  font-size: var(--text-xs);
  transition: color var(--transition-fast);
}

.offer-card__shop-link:hover {
  color: var(--color-primary);
}

.offer-card__shop-logo {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.offer-card__shop-logo--initial {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-gradient);
  color: #fff;
  font-size: 10px;
  font-weight: var(--font-weight-semibold);
}

.offer-card__shop-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.offer-card__repost-badge,
.offer-card__collab-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  margin-top: var(--space-1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.offer-card__repost-badge { color: var(--color-text-tertiary); }
.offer-card__collab-badge { color: var(--color-text-secondary); }

/* WV-0177b §2.7 — joint-offer / repost shop branding strip rendered
   ABOVE the offer title. Distinct from the legacy *-badge above which
   sits below the meta row; the strip surfaces the collaboration up
   front so customers see the shop-to-shop relationship before reading. */
.offer-card__collab-strip,
.offer-card__repost-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 8px;
  margin-bottom: var(--space-2);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  line-height: 1.3;
}
.offer-card__collab-strip {
  background: rgba(99, 102, 241, 0.08);
  color: var(--color-primary, #4f46e5);
}
.offer-card__repost-strip {
  background: var(--color-bg-component, #f5f5f5);
  color: var(--color-text-secondary);
}
.offer-card__collab-icon,
.offer-card__repost-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.offer-card__collab-label,
.offer-card__repost-label {
  font-weight: var(--font-weight-medium, 500);
}
.offer-card__collab-shop {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.offer-card__collab-logo {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.offer-card__collab-logo--initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 9px;
  font-weight: var(--font-weight-semibold);
}
.offer-card__collab-name {
  font-weight: var(--font-weight-semibold, 600);
}

.offer-card-animated {
  animation: card-fade-in 0.3s ease-out both;
}

@keyframes card-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
 * Offer Detail Page
 * ============================================================ */

.offer-detail,
.offer-detail-page {
  max-width: 1080px;
  margin: 0 auto;
}

.offer-detail__title,
.offer-hero h1 {
  margin: 0 0 var(--space-3) 0;
  font-size: var(--text-2xl);
  color: var(--color-text-primary);
  font-weight: var(--font-weight-semibold);
}

.offer-detail__price,
.offer-price {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

.offer-detail__description,
.offer-description {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
  white-space: pre-wrap;
}

.offer-detail__inquiry {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.offer-detail__back,
.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  color: var(--color-primary);
  text-decoration: none;
  margin-bottom: var(--space-4);
}

.offer-detail__back:hover,
.back-link:hover {
  text-decoration: underline;
}

.shop-info-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  padding: var(--space-3);
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text-primary);
  font-weight: var(--font-weight-medium);
}

.cross-sell {
  margin-top: var(--space-8);
}

/* ============================================================
 * Offer detail — two-column layout + sticky sidecard
 * ============================================================ */

.offer-detail__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--space-6);
  align-items: start;
}

.offer-detail__main {
  min-width: 0;
}

.offer-detail__aside {
  min-width: 0;
}

.offer-sidecard {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}

.offer-sidecard__shop {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text-primary);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.offer-sidecard__shop-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
}

.offer-sidecard__shop-logo--initial {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: var(--font-weight-semibold);
  font-size: var(--text-lg);
}

.offer-sidecard__shop-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.offer-sidecard__shop-name {
  font-weight: var(--font-weight-semibold);
  font-size: var(--text-base);
  color: var(--color-text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.offer-sidecard__shop-link-hint {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
}

.offer-sidecard__shop:hover .offer-sidecard__shop-link-hint {
  color: var(--color-primary);
}

.offer-sidecard__price {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text-primary);
}

.offer-sidecard__bonus {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-3);
  background: var(--color-bg-component);
  border-radius: var(--radius-md);
}

.offer-sidecard__bonus-label {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
}

.offer-sidecard__bonus-value {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text-primary);
}

.offer-sidecard__cta {
  width: 100%;
  justify-content: center;
}

.offer-sidecard__note {
  margin: 0;
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
}

/* WV-0295: CPQ live configurator (ref-pricing.js mounts .recca-configurator
   right after .offer-sidecard__price). Without these rules the axis fields fell
   back to raw browser defaults — misaligned labels, uneven input widths. */
.recca-configurator {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-1);
}

.recca-cfg-field {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: var(--space-3);
}

.recca-cfg-field > label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.2;
}

.recca-cfg-field input,
.recca-cfg-field select {
  width: 100%;
  box-sizing: border-box;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  color: var(--color-text-primary);
  font-size: var(--text-base);
  font-family: inherit;
}

.recca-cfg-field input:focus,
.recca-cfg-field select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.recca-cfg-field input[type="checkbox"] {
  width: auto;
  justify-self: start;
}

.recca-configurator__total {
  margin-top: var(--space-1);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.recca-configurator__total strong {
  display: block;
  margin-top: 2px;
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text-primary);
}

/* WV-0295: placeholder when an offer has no photo (e.g. bulk-imported price
   tables) — avoids a blank gap in the main column. */
.offer-noimg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 240px;
  width: 100%;
  margin-bottom: var(--space-6);
  background: var(--color-bg-component);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-text-tertiary);
}

.offer-noimg__icon {
  font-size: 2.75rem;
  line-height: 1;
  opacity: 0.55;
}

.offer-noimg__text {
  font-size: var(--text-sm);
}

/* ============================================================
 * Image Gallery + Fullscreen Lightbox
 * ============================================================ */

.gallery-container {
  margin-bottom: var(--space-6);
}

.gallery {
  width: 100%;
}

.gallery__main {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  background: var(--color-bg-component);
  border-radius: var(--radius-lg);
  touch-action: pan-x pinch-zoom;
  overscroll-behavior: contain;
}

.gallery__main-img,
.gallery__main > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery__counter {
  position: absolute;
  bottom: var(--space-2);
  right: var(--space-2);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: var(--text-xs);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--transition-fast);
  color: var(--color-text-primary);
  box-shadow: var(--shadow-sm);
}

.gallery__main:hover .gallery__arrow {
  opacity: 1;
}

.gallery__arrow--left { left: var(--space-2); }
.gallery__arrow--right { right: var(--space-2); }

.gallery__thumbs {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.gallery__thumb {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  background-size: cover;
  background-position: center;
  transition: border-color var(--transition-fast);
}

.gallery__thumb--active {
  border-color: var(--color-primary);
}

.gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Fullscreen / Lightbox */
.gallery-fs,
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-fs__img,
.gallery-lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  touch-action: pan-x pinch-zoom;
}

.gallery-fs__close,
.gallery-lightbox__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  transition: background var(--transition-fast);
}

.gallery-fs__close:hover,
.gallery-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.gallery-fs__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: background var(--transition-fast);
}

.gallery-fs__arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

.gallery-fs__arrow--left { left: var(--space-4); }
.gallery-fs__arrow--right { right: var(--space-4); }

.gallery-fs__counter {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
}

/* ============================================================
 * Inquiry Form (modal overlay)
 * ============================================================ */

.inquiry-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: var(--space-4);
}

.inquiry-overlay[hidden] { display: none; }

.inquiry-form {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}

.inquiry-form__title {
  margin: 0 0 var(--space-2) 0;
  font-size: var(--text-xl);
  color: var(--color-text-primary);
  font-weight: var(--font-weight-semibold);
}

.inquiry-form__subtitle {
  margin: 0 0 var(--space-4) 0;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.inquiry-hp,
.inquiry-form__honeypot {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  pointer-events: none !important;
}

.inquiry-form__phone-row {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.inquiry-form__region {
  flex-shrink: 0;
  width: 80px;
  padding: var(--space-3) var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-input);
  background: var(--color-bg-card);
  color: var(--color-text-primary);
  cursor: pointer;
  appearance: auto;
}

.inquiry-form__input {
  display: block;
  width: 100%;
  padding: var(--space-3);
  margin-bottom: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-input);
  background: var(--color-bg-card);
  color: var(--color-text-primary);
  box-sizing: border-box;
}

.inquiry-form__input--phone {
  margin-bottom: 0;
  flex: 1;
  min-width: 0;
}

.inquiry-form__textarea {
  resize: vertical;
  min-height: 60px;
  max-height: 150px;
  font-family: inherit;
}

.inquiry-form__input:focus,
.inquiry-form__region:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.inquiry-form__consent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  line-height: 1.4;
  cursor: pointer;
}

.inquiry-form__consent a {
  color: var(--color-primary);
  text-decoration: underline;
}

.inquiry-form__error {
  color: #ef4444;
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
}

.inquiry-form__success,
.inquiry-form__ok {
  color: #22c55e;
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
}

.inquiry-form--sent .inquiry-form__title,
.inquiry-form--sent .inquiry-form__subtitle,
.inquiry-form--sent .inquiry-form__input,
.inquiry-form--sent .inquiry-form__actions { display: none; }

.inquiry-form__actions {
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
}

.inquiry-form__btn {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
}

.inquiry-form__btn--cancel {
  background: var(--color-bg-component);
  color: var(--color-text-secondary);
}

.inquiry-form__btn--cancel:hover {
  background: var(--color-bg-hover);
}

.inquiry-form__btn--submit {
  background: var(--color-primary);
  color: #fff;
}

.inquiry-form__btn--submit:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
}

.inquiry-form__btn--submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.inquiry-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: inquiry-spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

@keyframes inquiry-spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
 * Reviews (list + cards + comments)
 * ============================================================ */

.shop-reviews {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-6);
}

.reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.reviews-title,
.shop-reviews__title {
  margin: 0;
  font-size: var(--text-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

.reviews-stats {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.reviews-stats__percent {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: #22c55e;
}

.reviews-stats__label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.reviews-stats__count {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

.reviews-list,
.shop-reviews__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: 0;
  list-style: none;
  margin: 0;
}

.shop-reviews__empty {
  color: var(--color-text-tertiary);
  text-align: center;
  padding: var(--space-8);
  margin: 0;
}

/* WV-0396 — на карточке компании отзывы лежат гридом карточек (Vue-эталон),
   на странице /reviews/ остаётся вертикальный список. */
.sfc-section .reviews-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.sfc-section .review-card {
  border: 1px solid var(--sfc-line);
  border-radius: var(--sfc-radius);
  box-shadow: var(--sfc-shadow);
  background: var(--sfc-card);
}

.sfc-recommenders {
  margin-top: 22px;
}

.sfc-recommenders__title {
  margin: 0 0 12px 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--sfc-ink);
}

/* ── Contacts: карточка «Связаться с нами» + CTA ────────────────────── */

.sfc-contacts {
  display: flex;
  gap: 28px;
  padding: 24px;
  justify-content: space-between;
  flex-wrap: wrap;
  background:
    linear-gradient(0deg, rgba(255, 241, 234, 0.55), rgba(255, 241, 234, 0.55)),
    var(--sfc-card);
}

.sfc-contacts__info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  min-width: 240px;
}

.sfc-contacts__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sfc-contacts__list li {
  display: flex;
  gap: 12px;
  font-size: 15px;
  color: var(--sfc-ink-2);
}

.sfc-contacts__list a {
  color: var(--sfc-deep);
  text-decoration: none;
  font-weight: 600;
}

.sfc-contacts__label {
  color: var(--sfc-mute);
  min-width: 76px;
  font-size: 14px;
}

.sfc-contacts__empty {
  color: var(--sfc-mute);
}

.sfc-contacts__cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  max-width: 300px;
}

.sfc-contacts__cta-lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--sfc-ink-2);
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  background: var(--color-bg-component);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.review-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.review-card__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: var(--font-weight-semibold);
  font-size: var(--text-sm);
  flex-shrink: 0;
}

.review-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.review-card__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.review-card__name,
.review-card__author {
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  font-size: var(--text-sm);
}

.review-card__date {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
}

.review-card__rating {
  color: #f59e0b;
  font-weight: var(--font-weight-semibold);
  font-size: var(--text-sm);
}

.review-card__sentiment {
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
}

.review-card__sentiment--positive {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}

.review-card__sentiment--negative {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.review-card__text,
.review-card__comment {
  color: var(--color-text-secondary);
  line-height: 1.6;
  font-size: var(--text-sm);
  margin: 0;
}

.review-card__disputed {
  font-size: var(--text-xs);
  color: #f59e0b;
  margin-top: var(--space-1);
}

.review-comments__toggle {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: var(--text-xs);
  cursor: pointer;
  padding: var(--space-1) 0;
  margin-top: var(--space-2);
}

.comment-form--stub {
  padding: var(--space-3);
  background: var(--color-bg-hover);
  color: var(--color-text-tertiary);
  font-size: var(--text-sm);
  border-radius: var(--radius-md);
  text-align: center;
}


/* ============================================================
 * Case Study Detail + Lead Page + Storefront
 * ============================================================ */

.case-study,
.case-study-detail {
  max-width: 800px;
  margin: 0 auto;
}

.case-banner {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
  display: block;
}

.case-study__title,
.case-title {
  margin: 0 0 var(--space-2) 0;
  font-size: var(--text-2xl);
  color: var(--color-text-primary);
  font-weight: var(--font-weight-semibold);
}

.case-meta {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

.case-study__body,
.case-body {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  line-height: 1.7;
  color: var(--color-text-secondary);
  white-space: pre-wrap;
  margin-bottom: var(--space-6);
}

.case-study__back,
.case-study-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--color-primary);
  text-decoration: none;
  font-size: var(--text-sm);
}

/* Storefront */
.storefront,
.storefront-page,
.storefront-public {
  max-width: 1200px;
  margin: 0 auto;
}

.storefront__title,
.storefront-title {
  margin: 0 0 var(--space-2) 0;
  font-size: var(--text-2xl);
  color: var(--color-text-primary);
  font-weight: var(--font-weight-semibold);
}

.storefront__lead,
.storefront-description {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-6);
}

/* Lead page */
.lead-page,
.lead-page-detail {
  max-width: 700px;
  margin: 0 auto;
}

.lead-banner {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
}

.lead-page__title,
.lead-title {
  margin: 0 0 var(--space-3) 0;
  font-size: var(--text-2xl);
  color: var(--color-text-primary);
  font-weight: var(--font-weight-semibold);
}

.lead-page__body,
.lead-description {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
  white-space: pre-wrap;
}

.lead-page__inquiry,
.lead-form {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
 * Recommendation Banner
 * ============================================================ */

.rec-banner {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-6);
}

.rec-banner__header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.rec-banner__label {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

.rec-banner__from {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.rec-banner__avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}

.rec-banner__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rec-banner__avatar--placeholder {
  background: var(--color-primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
}

.rec-banner__name {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

.rec-banner__stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-2);
}

.rec-banner__star { fill: var(--color-border); }
.rec-banner__star--filled { fill: #f59e0b; }

.rec-banner__text {
  margin: 0 0 var(--space-3) 0;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ============================================================
 * Mobile + responsive
 * ============================================================ */

@media (max-width: 768px) {
  .shop-content { padding: var(--space-4); }
  .shop-header { padding: var(--space-3) var(--space-4); }
  .shop-footer { padding: var(--space-6) var(--space-4); }

  /* Offer detail collapses to one column; sidecard flows below описание */
  .offer-detail__layout {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
  .offer-sidecard {
    position: static;
  }

  /* Header: drop the secondary nav (logo = home), keep app-entry buttons */
  .shop-header__nav { display: none; }
  .shop-header__actions { gap: var(--space-2); }
  .shop-header__cta { padding: var(--space-2) var(--space-3); }

  .cookie-banner__inner {
    flex-direction: column;
    gap: var(--space-3);
  }

  .cookie-banner__btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .shop-header__brand {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .shop-header__login,
  .shop-header__cta {
    padding: var(--space-1) var(--space-2);
    font-size: var(--text-xs);
  }
}

@media (max-width: 640px) {
  /* WV-0396 — мобильная карточка компании (паритет с Vue-эталоном). */
  .sfc-cover__logo {
    width: 72px;
    left: 16px;
    bottom: -32px;
    border-radius: 16px;
  }
  .sfc-cover {
    margin-bottom: 44px;
  }
  .sfc-identity__actions {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }
  .sfc-offers__search input {
    width: 120px;
  }

  .offers-grid,

  .storefront-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
  }
  /* Рэйл остаётся горизонтальной каруселью и на мобиле. */
  .sfc-offers__rail {
    grid-template-columns: none;
    grid-auto-columns: clamp(200px, 62vw, 250px);
    gap: 12px;
  }
  .shop-action-btn { justify-content: center; }

  .shop-reviews { padding: var(--space-4); }

  .sfc-cases { grid-template-columns: 1fr; }
  .sfc-portfolio { grid-template-columns: repeat(2, 1fr); }

  .gallery__arrow,
  .gallery-fs__arrow { width: 36px; height: 36px; }
  .gallery__arrow { display: none; }
  .gallery__thumb { width: 48px; height: 48px; }

  .inquiry-form { max-width: 100%; }

  .trust,
  .shop-trust {
    flex-direction: column;
    gap: var(--space-3);
  }

}

@media (max-width: 400px) {
  .offers-grid,

  .storefront-grid {
    grid-template-columns: 1fr;
  }
  /* Рэйл-карусель карточки компании не схлопывается в одну колонку. */
  .sfc-offers__rail {
    grid-template-columns: none;
  }
}

/* ---------------------------------------------------------------------------
   WV-0318 — webinar (time-bound) offer affordances. Reuses the design tokens
   already used by the price/bonus blocks so webinar cards match the existing
   shop visual language. All rules are scoped to webinar-only elements so
   non-webinar offers are visually untouched.
   --------------------------------------------------------------------------- */
.offer-card__webinar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
  font-size: var(--text-xs);
}

.offer-card__webinar-date {
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
}

.offer-card__countdown {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
}

.offer-card__live,
.offer-sidecard__live,
.offer-detail-page__live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: #dc2626;
  letter-spacing: 0.02em;
}

.offer-card__seats {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  color: #16a34a;
  background: rgba(34, 197, 94, 0.1);
  padding: 1px var(--space-2);
  border-radius: var(--radius-sm);
}

.offer-card__seats--out,
.offer-sidecard__seats--out,
.offer-detail-page__seats--out,
.price__seats--out {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.1);
}

/* Sidecard (shop-offer.html) + detail header (offer.html) webinar blocks. */
.offer-sidecard__webinar,
.offer-detail-page__webinar {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--color-bg-component);
  border-radius: var(--radius-md);
}

.offer-sidecard__webinar-date,
.offer-detail-page__webinar-date {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text-primary);
}

.offer-sidecard__countdown {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.offer-sidecard__seats,
.offer-detail-page__seats {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: #16a34a;
}

/* SSI price fragment (_offer-price.html) webinar affordance. */
.price--webinar {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}

.price__register {
  font-weight: 700;
  color: var(--color-text-primary);
}

.price__seats {
  font-size: var(--text-xs);
  color: #16a34a;
}

/* Disabled CTA (sold-out webinar) on the pub offer page. */
.home-cta__btn--disabled {
  opacity: 0.6;
  pointer-events: none;
}

/* ---------------------------------------------------------------------------
   WV-0318 Iteration 2 — dedicated webinar registration LANDING (shop-offer.html
   when Preset=="webinar"). Single-column event landing (hero → details strip →
   program → speaker → organizer) + a sticky registration card on desktop.
   All classes are webinar-landing-scoped (.webinar-*) so non-webinar offers are
   visually untouched. Reuses the existing design tokens (var(--…)).
   --------------------------------------------------------------------------- */
.webinar-landing {
  max-width: 1080px;
  margin: 0 auto;
}

/* Hero — banner cover + format badge + title + date/countdown + organizer. */
.webinar-hero {
  margin-bottom: var(--space-6);
}

.webinar-hero__cover {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-5);
  background: var(--color-bg-component);
}

.webinar-hero__cover-img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.webinar-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill, 999px);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(59, 130, 246, 0.1);
  margin-bottom: var(--space-3);
}

.webinar-hero__badge--live {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.1);
}

.webinar-hero__badge--past {
  color: var(--color-text-tertiary);
  background: var(--color-bg-component);
}

.webinar-hero__title {
  margin: 0 0 var(--space-3) 0;
  font-size: var(--text-3xl);
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-text-primary);
}

.webinar-hero__when {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2) var(--space-4);
  margin-bottom: var(--space-4);
}

.webinar-hero__date {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text-primary);
}

.webinar-hero__countdown {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.webinar-hero__organizer {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.webinar-hero__organizer-logo {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
}

.webinar-hero__organizer-logo--initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: var(--font-weight-semibold);
  font-size: var(--text-sm);
}

/* Two-column layout: program/speaker/organizer on the left, sticky register
   card on the right. Collapses to one column under 1024px (register card on
   top via source order override below). */
.webinar-landing__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--space-6);
  align-items: start;
}

.webinar-landing__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.webinar-landing__aside {
  min-width: 0;
}

/* Event-details strip — icon row (date · format · duration). */
.webinar-details {
  list-style: none;
  margin: 0;
  padding: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.webinar-details__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.webinar-details__icon {
  font-size: var(--text-base);
  line-height: 1;
}

/* Generic section (program / speaker / organizer). */
.webinar-section {
  margin: 0;
}

.webinar-section__title {
  margin: 0 0 var(--space-3) 0;
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text-primary);
}

.webinar-section__body {
  margin: 0;
}

/* Speaker bio card. */
.webinar-speaker__card {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-4);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.webinar-speaker__photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.webinar-speaker__photo--initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: var(--font-weight-semibold);
  font-size: var(--text-2xl);
}

.webinar-speaker__text {
  min-width: 0;
}

.webinar-speaker__name {
  display: block;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
}

.webinar-speaker__bio {
  margin: 0;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text-secondary);
  white-space: pre-wrap;
}

/* Organizer card (links to shop home). */
.webinar-organizer__card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--color-text-primary);
}

.webinar-organizer__card:hover {
  box-shadow: var(--shadow-md);
}

.webinar-organizer__logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
}

.webinar-organizer__logo--initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: var(--font-weight-semibold);
  font-size: var(--text-lg);
}

.webinar-organizer__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.webinar-organizer__name {
  font-weight: var(--font-weight-semibold);
  font-size: var(--text-base);
}

.webinar-organizer__hint {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
}

.webinar-organizer__card:hover .webinar-organizer__hint {
  color: var(--color-primary);
}

/* Registration card — sticky on desktop, prominent. */
.webinar-register {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.webinar-register__when {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text-primary);
}

.webinar-register__countdown {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.webinar-register__seats {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: #16a34a;
  background: rgba(34, 197, 94, 0.1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  align-self: flex-start;
}

.webinar-register__seats--out {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.1);
}

.webinar-register__btn {
  width: 100%;
  justify-content: center;
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-base);
}

.webinar-register__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.webinar-register__note {
  margin: 0;
  font-size: var(--text-xs);
  line-height: 1.5;
  color: var(--color-text-tertiary);
}

/* Mobile / tablet: single column. Register card flows to the TOP (right under
   the hero) so the primary CTA is reachable without scrolling past the program,
   and it stops being sticky. */
@media (max-width: 1023px) {
  .webinar-landing__layout {
    grid-template-columns: 1fr;
  }
  .webinar-landing__aside {
    order: -1;
  }
  .webinar-register {
    position: static;
  }
}

@media (max-width: 640px) {
  .webinar-hero__title {
    font-size: var(--text-2xl);
  }
  .webinar-hero__cover-img {
    max-height: 220px;
  }
  .webinar-speaker__card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   WV-0492 — секция офферов сети (партнёрская программа на витрине).

   Собственная вёрстка на токенах витрины, а НЕ импорт карточки маркетплейса:
   её стили живут инлайном в cpa-layout.html вместе с чужой палитрой
   (--cpa-accent и родня). Общее у двух карточек — данные и словарь, а не
   пиксели; совпадение словаря сторожит go-тест WV0492.
   ───────────────────────────────────────────────────────────────────────── */
.netoffers-section__hint {
  font-size: var(--text-sm, 13px);
  color: var(--sfc-mute);
}

.netoffers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.netoffer-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  background: var(--sfc-card);
  border: 1px solid var(--sfc-line);
  border-radius: var(--sfc-radius);
  box-shadow: var(--sfc-shadow);
}

.netoffer-card__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.netoffer-card__reward {
  font-size: 20px;
  font-weight: 800;
  color: var(--sfc-deep);
  line-height: 1.1;
}

.netoffer-card__reward small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--sfc-mute);
  letter-spacing: 0.02em;
}

.netoffer-card__model {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--sfc-cream);
  color: var(--sfc-deep);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.netoffer-card__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--sfc-ink);
}

.netoffer-card__advertiser {
  font-size: 12px;
  font-weight: 600;
  color: var(--sfc-mute);
}

.netoffer-card__rank {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-height: 22px;
}

.netoffer-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.netoffer-card__badge--approval {
  background: #e8f7ee;
  color: #137a3c;
}

.netoffer-card__badge--new {
  background: var(--sfc-cream);
  color: var(--sfc-warm);
}

.netoffer-card__vol {
  font-size: 11px;
  font-weight: 600;
  color: var(--sfc-mute);
}

.netoffer-card__meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
}

.netoffer-card__pill {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--sfc-line);
  font-size: 11px;
  font-weight: 600;
  color: var(--sfc-mute);
}

.netoffers-section__cta {
  margin-top: 18px;
}

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