/* ============================================================================
   НОВАЯ ГЛАВНАЯ (редизайн) — home_v2. Прототип: docs/главная/homepage_redesign_v3.html
   ВСЁ заскоуплено под .ot-home → на других страницах и при выключенном флаге не влияет.
   НЕ содержит стилей карточки товара (.product-card и т.п.) — карусели хитов используют
   catalog.css (.ot-catalog), и баннеры-категории используют тему. Здесь только новые блоки.
   ВКЛ/ОТКАТ: см. docs/главная/HANDOFF.md
   ============================================================================ */

.ot-home {
  --bg: #f3f3f3;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --text-soft: #8a8a8a;
  --border: #e5e5e5;
  --border-soft: #efefef;
  --hover: #f5f5f5;
  --ai-accent: #1c3d6e;
  --ai-bg: #eef4ff;
  --tryon-accent: #1c3d6e;
  --tryon-bg: #eef4ff;
  --sale: #c63131;
  --sale-bg: #fde8e8;
  --in-stock: #1a7a3e;
  --popular-text: #8a5e15;

  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  /* отступ серым фоном перед футером (margin-bottom у .seo-block прозрачный — показывал бы белый <main>) */
  padding-bottom: 64px;
}
.ot-home *, .ot-home *::before, .ot-home *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
.ot-home a { color: inherit; text-decoration: none; }
.ot-home img { max-width: 100%; }

.ot-home .ot-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   1. HERO — примерка как герой
   ============================================ */
.ot-home .hero { background: #fff; overflow: hidden; }
.ot-home .hero-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
  min-height: 580px;
}
.ot-home .hero-text { padding: 60px 0; }
.ot-home .hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px;
  background: var(--tryon-bg); border-radius: 16px;
  font-size: 12.5px; color: var(--tryon-accent); font-weight: 500;
  margin-bottom: 22px;
}
.ot-home .hero-eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--tryon-accent); margin-left: 4px; }
.ot-home .hero h1 {
  font-size: 52px; font-weight: 700; line-height: 1.05; letter-spacing: -1.5px;
  margin: 0 0 22px; color: var(--text);
}
.ot-home .hero h1 .accent { display: inline-block; position: relative; color: var(--tryon-accent); }
.ot-home .hero-subtitle {
  font-size: 17px; color: var(--text-muted); line-height: 1.55; margin: 0 0 36px; max-width: 480px;
}
.ot-home .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.ot-home .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 32px; border-radius: 28px;
  font-family: inherit; font-size: 15px; font-weight: 500; line-height: 1.2;
  height: auto; min-height: 0;
  cursor: pointer; transition: background .1s, border-color .1s, transform .1s;
  border: 1px solid transparent; text-decoration: none;
}
.ot-home .btn:active { transform: translateY(1px); }
.ot-home .btn-primary { background: var(--text); color: #fff; border-color: var(--text); }
.ot-home .btn-primary:hover { background: #000; border-color: #000; color: #fff; }
.ot-home .btn-secondary { background: var(--tryon-bg); color: var(--tryon-accent); border-color: var(--tryon-accent); }
.ot-home .btn-secondary:hover { background: #dde8f7; color: var(--tryon-accent); }
.ot-home .btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.ot-home .hero-stats {
  display: flex; gap: 32px; margin-top: 44px; padding-top: 28px;
  border-top: 1px solid var(--border-soft);
}
.ot-home .hero-stat { display: flex; flex-direction: column; }
.ot-home .hero-stat-value { font-size: 22px; font-weight: 700; color: var(--text); letter-spacing: -0.5px; }
.ot-home .hero-stat-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* Правая часть — листалка бестселлеров */
.ot-home .hero-visual { position: relative; display: flex; flex-direction: column; gap: 12px; }
.ot-home .hero-showcase {
  position: relative; aspect-ratio: 5/5; border-radius: 24px; overflow: hidden;
  background: #f2f2f2;
}
.ot-home .hero-showcase-img {
  width: 100%; height: 100%; object-fit: contain; padding: 36px;
  transition: opacity .25s; mix-blend-mode: multiply;
}
.ot-home .hero-showcase-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: #cfcfcf;
}
.ot-home .hero-showcase-placeholder svg { width: 110px; height: 110px; opacity: .5; }

.ot-home .hero-nav {
  position: absolute; top: 50%; width: 44px; height: 44px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border: none; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--text);
  transform: translateY(-50%); transition: background .1s, transform .1s; z-index: 5;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
}
.ot-home .hero-nav:hover { background: #fff; transform: translateY(-50%) scale(1.05); }
.ot-home .hero-nav:active { transform: translateY(-50%) scale(.95); }
.ot-home .hero-nav.prev { left: 16px; }
.ot-home .hero-nav.next { right: 16px; }
.ot-home .hero-nav svg { width: 20px; height: 20px; }

.ot-home .hero-model-card {
  position: absolute; top: 16px; left: 16px;
  background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
  border-radius: 14px; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 4px;
  box-shadow: 0 6px 20px rgba(0,0,0,.12); max-width: 280px; z-index: 4;
}
.ot-home .hero-model-brand { font-size: 10px; color: var(--text-soft); text-transform: uppercase; letter-spacing: .5px; font-weight: 500; }
.ot-home .hero-model-name {
  font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.ot-home .hero-model-price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.ot-home .hero-model-price { font-size: 15px; font-weight: 700; color: var(--text); }
.ot-home .hero-model-price-old { font-size: 11.5px; color: var(--text-soft); text-decoration: line-through; }
.ot-home .hero-model-tryon {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 8px; padding: 9px 14px;
  background: var(--tryon-bg); color: var(--tryon-accent); border: 1px solid var(--tryon-accent);
  border-radius: 18px; font-size: 12.5px; font-weight: 600; cursor: pointer;
  font-family: inherit; text-decoration: none; transition: background .1s;
}
.ot-home .hero-model-tryon:hover { background: #dde8f7; }
.ot-home .hero-model-tryon svg { width: 13px; height: 13px; }

.ot-home .hero-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.ot-home .hero-thumb {
  aspect-ratio: 1/1; background: #f2f2f2; border-radius: 10px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; transition: border-color .1s, transform .1s; position: relative; padding: 0;
}
.ot-home .hero-thumb:hover { border-color: var(--border); }
.ot-home .hero-thumb.active { border-color: var(--text); }
.ot-home .hero-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8px; display: block; mix-blend-mode: multiply; }
.ot-home .hero-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #c0c0c0; }
.ot-home .hero-thumb-placeholder svg { width: 28px; height: 28px; }
.ot-home .hero-thumb-badge {
  position: absolute; top: 6px; left: 6px; font-size: 9px; font-weight: 600;
  padding: 2px 5px; border-radius: 3px; background: rgba(0,0,0,.7); color: #fff;
  text-transform: lowercase; letter-spacing: .3px; z-index: 2;
}
.ot-home .hero-thumb-badge.sale { background: var(--sale); }

/* ============================================
   2. TRUST-СТРИП
   ============================================ */
.ot-home .trust-strip { background: #fff; border-top: 1px solid var(--border-soft); }
.ot-home .trust-strip-inner {
  max-width: 1400px; margin: 0 auto; padding: 22px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.ot-home .trust-item-mini { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text); }
.ot-home .trust-item-mini strong { font-weight: 600; }
.ot-home .trust-item-mini-icon { color: var(--text-soft); flex-shrink: 0; display: inline-flex; }
.ot-home .trust-item-mini-icon svg { width: 16px; height: 16px; }
.ot-home .trust-stars-mini { color: #ffc933; font-size: 13px; letter-spacing: .5px; }
.ot-home .trust-item-mini a { color: var(--text-soft); border-bottom: 1px dashed var(--text-soft); margin-left: 4px; font-size: 12px; }
.ot-home .trust-item-mini a:hover { color: var(--text); }

/* ============================================
   3. БЫСТРЫЕ СЦЕНАРИИ
   ============================================ */
.ot-home .scenarios { background: #fff; padding: 48px 0 24px; }
.ot-home .scenarios-inner { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.ot-home .scenarios-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.ot-home .scenario-card {
  background: var(--bg); border-radius: 14px; padding: 20px 18px;
  display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--text);
  transition: background .15s, transform .15s; min-height: 122px; position: relative; overflow: hidden;
}
.ot-home .scenario-card:hover { background: #ebebeb; transform: translateY(-2px); }
.ot-home .scenario-card-icon { width: 32px; height: 32px; color: var(--text); }
.ot-home .scenario-card-icon svg { width: 100%; height: 100%; }
.ot-home .scenario-card-title { font-size: 14px; font-weight: 600; line-height: 1.3; margin: auto 0 0; }
.ot-home .scenario-card-meta { font-size: 11.5px; color: var(--text-muted); }
.ot-home .scenario-card.accent-ai { background: var(--ai-bg); color: var(--ai-accent); }
.ot-home .scenario-card.accent-ai:hover { background: #dde8f7; }
.ot-home .scenario-card.accent-ai .scenario-card-meta { color: var(--ai-accent); opacity: .75; }
.ot-home .scenario-card.accent-dark { background: var(--text); color: #fff; }
.ot-home .scenario-card.accent-dark:hover { background: #000; }
.ot-home .scenario-card.accent-dark .scenario-card-meta { color: rgba(255,255,255,.7); }

/* ============================================
   SECTION COMMON
   ============================================ */
.ot-home .section { padding: 64px 0; }
.ot-home .section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  margin-bottom: 32px; flex-wrap: wrap;
}
.ot-home .section-head h2 { font-size: 32px; font-weight: 700; margin: 0; letter-spacing: -0.7px; line-height: 1.1; }
.ot-home .section-head-sub { font-size: 14px; color: var(--text-muted); margin: 6px 0 0; }
.ot-home .section-head-link {
  color: var(--text); font-size: 14px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border-bottom: 1px solid var(--text);
}
.ot-home .section-head-link:hover { color: var(--text-muted); border-bottom-color: var(--text-muted); }

/* Категории = тематический блок .categories (видео-плитки) внутри новой секции.
   Сетку/размеры плиток задаёт тема (template_styles.css); тут только сбрасываем верхний отступ ul. */
.ot-home .home-categories .categories { margin-top: 0; }
/* Подписи плиток — ПЛАВНО масштабируются по ширине экрана (clamp + vw), как остальные блоки страницы.
   Тема держит жёсткие 30px на всех разрешениях → длинные подписи вылезали на мобиле.
   Верхний предел 30px = десктопное значение темы (на больших экранах вид не меняется),
   ниже — плавно уменьшается. Тему НЕ трогаем — переопределяем только внутри новой главной. */
.ot-home .home-categories .categories__item--video .categories__text,
.ot-home .home-categories .categories__item--novinki-slider .categories__text {
  /* calc-кривая: ~13px@440, ~20px@880, ~26px на десктопе. Без раннего упора в max,
     поэтому масштабируется даже на широких CSS-вьюпортах (low-DPR телефоны ~880px). */
  font-size: clamp(13px, calc(7px + 1.5vw), 26px);
}
.ot-home .home-categories .categories__text__inner {
  padding: clamp(12px, 2vw, 24px);
}

/* ============================================
   5. БРЕНД-СТРИП
   ============================================ */
.ot-home .brand-strip { background: #fff; padding: 48px 0; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.ot-home .brand-strip-inner { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.ot-home .brand-strip-title { font-size: 11px; color: var(--text-soft); text-transform: uppercase; letter-spacing: 1.2px; font-weight: 500; text-align: center; margin-bottom: 28px; }
.ot-home .brand-strip-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 24px; align-items: center; }
.ot-home .brand-logo {
  display: flex; align-items: center; justify-content: center; height: 40px;
  color: var(--text-muted); opacity: .65; transition: opacity .15s, color .15s;
}
.ot-home .brand-logo:hover { opacity: 1; color: var(--text); }
.ot-home .brand-logo img { max-height: 28px; max-width: 100%; width: auto; object-fit: contain; filter: grayscale(1); transition: filter .15s; }
.ot-home .brand-logo:hover img { filter: grayscale(0); }
.ot-home .brand-logo .brand-name-fallback {
  font-size: 13px; font-weight: 700; letter-spacing: -0.3px; text-transform: uppercase;
  font-family: Georgia, 'Times New Roman', serif; font-style: italic; text-align: center;
}

/* ============================================
   ХИТЫ-КАРУСЕЛЬ (компонент catalog.top) — обёртка-секция
   карточки стилизует catalog.css (.ot-catalog). Здесь только заголовок/контейнер.
   ============================================ */
.ot-home .home-hits { padding: 56px 0 24px; }
.ot-home .home-hits .catalog,
.ot-home .home-hits .container-fluid { background: transparent; }

/* ============================================
   7. ОТЗЫВЫ
   ============================================ */
.ot-home .highlights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ot-home .highlight-card { background: #fff; border-radius: 12px; padding: 28px 24px 24px; display: flex; flex-direction: column; gap: 12px; }
.ot-home .highlight-stars { color: #ffc933; font-size: 15px; letter-spacing: 1.5px; }
.ot-home .highlight-title { font-size: 16px; font-weight: 600; margin: 0; line-height: 1.3; }
.ot-home .highlight-quote { font-size: 13.5px; line-height: 1.55; color: var(--text-muted); margin: 0; flex: 1; font-style: italic; }
.ot-home .highlight-quote::before { content: "« "; color: var(--text-soft); }
.ot-home .highlight-quote::after { content: " »"; color: var(--text-soft); }
.ot-home .highlight-footer {
  font-size: 11.5px; color: var(--text-soft); margin-top: 6px; padding-top: 12px;
  border-top: 1px solid var(--border-soft); display: flex; align-items: center; gap: 6px;
}
.ot-home .yandex-icon {
  width: 14px; height: 14px; background: #ffcc00; border-radius: 3px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; color: #000; font-size: 9px; font-family: Arial, sans-serif; flex-shrink: 0;
}
.ot-home .highlights-cta { text-align: center; margin-top: 28px; }
.ot-home .highlights-cta a { color: var(--text); border-bottom: 1px solid var(--text); font-size: 14px; font-weight: 500; padding-bottom: 2px; }
.ot-home .highlights-cta a:hover { color: var(--text-muted); border-bottom-color: var(--text-muted); }

/* ============================================
   8. SEO-БЛОК
   ============================================ */
.ot-home .seo-block { background: #fff; border-radius: 16px; padding: 48px 56px; margin-bottom: 0; }
.ot-home .seo-block h2 { font-size: 24px; font-weight: 700; margin: 0 0 24px; letter-spacing: -0.4px; }
.ot-home .seo-block-content { columns: 2; column-gap: 48px; font-size: 14px; line-height: 1.65; color: var(--text-muted); }
.ot-home .seo-block-content p { margin: 0 0 14px; break-inside: avoid; }
.ot-home .seo-block-content strong { color: var(--text); font-weight: 600; }
.ot-home .seo-block-content a { color: var(--text); border-bottom: 1px solid var(--text-soft); }
.ot-home .seo-block-content a:hover { border-bottom-color: var(--text); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1199px) {
  .ot-home .hero h1 { font-size: 44px; }
  .ot-home .brand-strip-grid { grid-template-columns: repeat(6, 1fr); }
  .ot-home .scenarios-grid { grid-template-columns: repeat(6, 1fr); gap: 10px; }
  .ot-home .scenario-card { padding: 16px 14px; min-height: 108px; }
  .ot-home .scenario-card-title { font-size: 13.5px; }
}
@media (max-width: 999px) {
  .ot-home .hero-inner { grid-template-columns: 1fr; min-height: 0; }
  .ot-home .hero-text { padding: 48px 0 32px; }
  .ot-home .hero h1 { font-size: 40px; }
  .ot-home .brand-strip-grid { grid-template-columns: repeat(4, 1fr); gap: 24px 20px; }
  /* лого брендов крупнее на планшетах/широких мобильных вьюпортах (фолд/low-DPR ~880px).
     Плавно по ширине: ~66px@880, ~50px@600. Десктоп (≥1000px, 6–8 колонок) не трогаем. */
  .ot-home .brand-logo { height: clamp(56px, 9vw, 84px); }
  .ot-home .brand-logo img { max-height: clamp(46px, 7.5vw, 72px); }
  .ot-home .brand-logo .brand-name-fallback { font-size: 16px; }
  .ot-home .highlights-grid { grid-template-columns: 1fr 1fr; }
  .ot-home .highlight-card:nth-child(3) { display: none; }
  .ot-home .seo-block-content { columns: 1; }
  .ot-home .scenarios-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .ot-home .scenarios-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .ot-home .ot-container { padding: 0 16px; }
  .ot-home .hero-inner { padding: 0 16px; gap: 24px; }
  .ot-home .hero-text { padding: 32px 0 16px; }
  .ot-home .hero-eyebrow { font-size: 11.5px; padding: 5px 12px 5px 6px; margin-bottom: 16px; }
  .ot-home .hero h1 { font-size: 30px; letter-spacing: -0.8px; }
  .ot-home .hero-subtitle { font-size: 15px; margin-bottom: 24px; }
  .ot-home .hero-actions { gap: 8px; }
  .ot-home .btn { padding: 13px 22px; font-size: 14px; }
  .ot-home .hero-stats { gap: 18px; margin-top: 28px; padding-top: 20px; }
  .ot-home .hero-stat-value { font-size: 18px; }
  .ot-home .hero-stat-label { font-size: 11px; }
  .ot-home .hero-visual { gap: 8px; }
  .ot-home .hero-showcase { border-radius: 16px; aspect-ratio: 4/4; }
  .ot-home .hero-nav { width: 36px; height: 36px; }
  .ot-home .hero-nav svg { width: 16px; height: 16px; }
  .ot-home .hero-nav.prev { left: 10px; }
  .ot-home .hero-nav.next { right: 10px; }
  .ot-home .hero-model-card { top: 10px; left: 10px; padding: 9px 11px; max-width: 200px; }
  .ot-home .hero-model-name { font-size: 12px; }
  .ot-home .hero-model-price { font-size: 13px; }
  .ot-home .hero-model-tryon { font-size: 11.5px; padding: 7px 12px; margin-top: 6px; }
  .ot-home .hero-thumbs { gap: 6px; }

  .ot-home .trust-strip-inner { padding: 14px 16px; gap: 14px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .ot-home .trust-strip-inner::-webkit-scrollbar { display: none; }
  .ot-home .trust-item-mini { font-size: 12.5px; flex-shrink: 0; }

  .ot-home .section { padding: 40px 0; }
  .ot-home .section-head { margin-bottom: 20px; gap: 12px; }
  .ot-home .section-head h2 { font-size: 24px; letter-spacing: -0.5px; }
  .ot-home .section-head-sub { font-size: 13px; }
  .ot-home .section-head-link { font-size: 13px; }

  .ot-home .scenarios { padding: 32px 0 16px; }
  .ot-home .scenarios-inner { padding: 0 16px; }
  .ot-home .scenarios-grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 145px;
    overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; gap: 8px;
  }
  .ot-home .scenarios-grid::-webkit-scrollbar { display: none; }
  .ot-home .scenario-card { padding: 14px 14px; min-height: 96px; border-radius: 12px; }
  .ot-home .scenario-card-icon { width: 24px; height: 24px; }
  .ot-home .scenario-card-title { font-size: 13px; }
  .ot-home .scenario-card-meta { font-size: 10.5px; }

  .ot-home .brand-strip { padding: 32px 0; }
  .ot-home .brand-strip-inner { padding: 0 16px; }
  .ot-home .brand-strip-grid { grid-template-columns: repeat(3, 1fr); gap: 28px 18px; }
  .ot-home .brand-strip-title { font-size: 10.5px; margin-bottom: 24px; }
  /* размер лого задаёт fluid-правило из @media(max-width:999px) — оно действует и здесь (≤600 ⊂ ≤999) */

  .ot-home .highlights-grid { grid-template-columns: 1fr; }
  .ot-home .highlight-card:nth-child(3) { display: flex; }
  .ot-home .highlight-card { padding: 18px; }

  .ot-home { padding-bottom: 40px; }
  .ot-home .seo-block { padding: 24px 20px; border-radius: 12px; margin-bottom: 0; }
  .ot-home .seo-block h2 { font-size: 19px; margin-bottom: 16px; }
  .ot-home .seo-block-content { font-size: 13.5px; }
}
