/* ==========================================================================
   MFORN — Home (index.html only) — v7.1.1
   Стили подключаются ТОЛЬКО на главной. Не влияют на остальные страницы.
   ========================================================================== */

/* ==========================================================================
   v7.1.1 FIX-БЛОК — точечные правки по обратной связи
   ========================================================================== */

/* --- 1. Навбар: выравниваем "Каталог ▾" по вертикали с остальными --- */
.nav-links {
  align-items: center;
}
.nav-links .caret {
  display: inline-block;
  line-height: 1;
  vertical-align: middle;
  margin-left: 0.2em;
  font-size: 0.8em;
  transform: translateY(-1px);
}

/* --- 2. HERO: широкий заголовок с золотым "+" --- */
.hero-v4 .hero-content {
  max-width: 1100px !important;
}
.hero-title--wide {
  display: flex !important;
  flex-direction: column !important;
  align-items: center;
  gap: 0.4rem;
  margin: 1.4rem auto 1.8rem !important;
  font-size: clamp(2rem, 6.4vw, 5.6rem) !important;
  letter-spacing: -0.02em !important;
  line-height: 0.98 !important;
  text-wrap: balance;
}
.hero-title--wide .hero-line {
  display: block;
  white-space: nowrap;       /* "НОМЕРНЫЕ ПАРТИИ" не переносится */
}
.hero-title--wide .hero-plus {
  font-family: var(--font-display, 'Inter Tight', 'Manrope');
  font-weight: 300;
  font-size: 0.55em;
  line-height: 1;
  color: #C69E5A;
  letter-spacing: 0;
  margin: 0.1em 0 0.05em;
  opacity: 0.95;
  text-shadow: none;
  transform: translateY(-0.05em);
}

/* --- 3. Hero-scroll: чётко по центру независимо от других слоёв --- */
.hero-v4 .hero-scroll {
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  text-align: center;
}

/* ==========================================================================
   ОРИГИНАЛЬНЫЕ СТИЛИ v7.1
   ========================================================================== */

/* ---------- HERO: золотая кнопка ATELIER ---------- */
.btn-gold {
  background: #C69E5A !important;
  color: #0A0A0A !important;
  border: 1px solid #C69E5A !important;
}
.btn-gold:hover {
  background: #B88A3F !important;
  border-color: #B88A3F !important;
  color: #0A0A0A !important;
}

/* ---------- Подсветка «Atelier» в навбаре ---------- */
.nav-atelier-link {
  position: relative;
  letter-spacing: 0.04em;
}
.nav-atelier-link::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #C69E5A;
  margin-right: 0.4rem;
  vertical-align: middle;
  transform: translateY(-1px);
}

/* ==========================================================================
   БЛОК ATELIER на главной
   ========================================================================== */
.home-atelier {
  position: relative;
  background: #0A0A0A;
  color: #F4F1EA;
  overflow: hidden;
  padding: 6rem 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
}
.home-atelier-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(198, 158, 90, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(198, 158, 90, 0.06) 0%, transparent 45%);
  pointer-events: none;
}
.home-atelier::before {
  content: 'ATELIER';
  position: absolute;
  bottom: -2rem;
  right: -1rem;
  font-family: var(--font-display, 'Inter Tight');
  font-size: clamp(8rem, 18vw, 18rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  color: rgba(244, 241, 234, 0.025);
  z-index: 0;
  pointer-events: none;
  line-height: 0.9;
}
.home-atelier-inner {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* ── Левая колонка — текст ── */
.home-atelier-text { padding: 1rem 0; }
.ha-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.38em;
  font-weight: 700;
  color: #C69E5A;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.ha-collection {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: rgba(244, 241, 234, 0.55);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1.6rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid rgba(244, 241, 234, 0.08);
}
.ha-title {
  font-family: var(--font-display, 'Inter Tight');
  font-size: clamp(2.4rem, 5.5vw, 5.2rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #F4F1EA;
  margin: 0 0 1.8rem;
  text-transform: uppercase;
}
.ha-essay {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(244, 241, 234, 0.72);
  max-width: 480px;
  margin-bottom: 2.4rem;
}
.ha-stats {
  display: flex;
  gap: 3rem;
  margin-bottom: 2.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(244, 241, 234, 0.08);
}
.ha-stat-label {
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.45);
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.ha-stat-value {
  font-family: var(--font-display, 'Inter Tight');
  font-size: 1.4rem;
  font-weight: 700;
  color: #F4F1EA;
  letter-spacing: -0.01em;
}
.ha-stat-value--accent { color: #C69E5A; }
.ha-btn {
  display: inline-flex;
  align-items: center;
  padding: 1.1rem 2.4rem;
  background: #C69E5A;
  color: #0A0A0A;
  border: 1px solid #C69E5A;
  font-family: 'Inter', sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s ease;
}
.ha-btn:hover {
  background: #B88A3F;
  border-color: #B88A3F;
  transform: translateX(4px);
}

/* ── Правая колонка — превью карточки ── */
.home-atelier-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  background: #161616;
  border: 1px solid rgba(244, 241, 234, 0.10);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1), border-color 0.3s ease;
}
.home-atelier-card:hover {
  transform: translateY(-4px);
  border-color: #C69E5A;
}
.hac-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #161616;
  filter: brightness(0.92);
  transition: transform 0.7s cubic-bezier(0.22,1,0.36,1), filter 0.4s ease;
}
.home-atelier-card:hover .hac-img {
  transform: scale(1.05);
  filter: brightness(1);
}
.hac-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.20) 45%, rgba(0,0,0,0.90) 100%);
}
.hac-top {
  position: absolute;
  top: 1.4rem;
  left: 1.4rem;
  right: 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 2;
}
.hac-badge {
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #C69E5A;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  border: 1px solid #C69E5A;
  background: rgba(10, 10, 10, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hac-counter {
  font-family: var(--font-display, 'Inter Tight');
  font-size: 1.1rem;
  font-weight: 700;
  color: #F4F1EA;
}
.hac-bottom {
  position: absolute;
  bottom: 1.8rem;
  left: 1.8rem;
  right: 1.8rem;
  z-index: 2;
}
.hac-code {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: rgba(244, 241, 234, 0.62);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.hac-title {
  font-family: var(--font-display, 'Inter Tight');
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #F4F1EA;
  line-height: 1.1;
  margin-bottom: 0.6rem;
}
.hac-price {
  font-family: var(--font-display, 'Inter Tight');
  font-size: 1.1rem;
  font-weight: 600;
  color: #C69E5A;
}

/* ==========================================================================
   БАЗОВЫЙ ГАРДЕРОБ
   ========================================================================== */
.home-base {
  padding: 6rem 0 5rem;
  background: var(--bg, #EFEFED);
}
.home-base-intro {
  max-width: 560px;
  margin: 0 var(--gutter, 1.5rem) 3rem auto;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-soft, #2A2A2A);
  text-align: right;
  padding: 0 1rem;
}

/* ==========================================================================
   КАК МЫ ШЬЁМ
   ========================================================================== */
.home-process {
  padding: 6rem 0 5rem;
  background: var(--bg-alt, #E4E4E1);
  border-top: 1px solid var(--line, #D0D0CD);
  border-bottom: 1px solid var(--line, #D0D0CD);
}
.home-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 2rem;
  padding: 0 var(--gutter, 1.5rem);
}
.process-item {
  padding: 1.5rem 1.8rem;
  border-left: 1px solid var(--line, #D0D0CD);
  position: relative;
}
.process-item:last-child {
  border-right: 1px solid var(--line, #D0D0CD);
}
.process-num {
  font-family: var(--font-display, 'Inter Tight');
  font-size: 1rem;
  color: var(--muted, #757371);
  font-weight: 400;
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
}
.process-item h3 {
  font-family: var(--font-display, 'Inter Tight');
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ink, #0A0A0A);
  margin-bottom: 0.9rem;
  text-transform: uppercase;
}
.process-item p {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--ink-soft, #2A2A2A);
}

/* ==========================================================================
   ЦИФРЫ ДОВЕРИЯ
   ========================================================================== */
.home-stats {
  padding: 5rem 0;
  background: #0A0A0A;
  color: #F4F1EA;
}
.home-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 0 var(--gutter, 1.5rem);
}
.stat-item {
  text-align: center;
  padding: 1rem;
  border-right: 1px solid rgba(244, 241, 234, 0.10);
}
.stat-item:last-child { border-right: none; }
.stat-value {
  font-family: var(--font-display, 'Inter Tight');
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #F4F1EA;
  margin-bottom: 0.8rem;
}
.stat-value sup {
  font-size: 0.4em;
  vertical-align: super;
  color: #C69E5A;
  font-weight: 600;
  letter-spacing: 0;
  margin-left: 0.1em;
}
.stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.55);
  font-weight: 600;
}

/* ==========================================================================
   ЛУКБУК — placeholder
   ========================================================================== */
.home-lookbook {
  padding: 6rem 0 7rem;
  background: #141414;
  color: #F4F1EA;
}
.lb-placeholder {
  text-align: center;
  padding: 4rem 1rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}
.lb-line {
  width: 1px;
  height: 40px;
  background: rgba(244, 241, 234, 0.3);
}
.lb-text {
  font-size: 0.75rem;
  letter-spacing: 0.38em;
  color: rgba(244, 241, 234, 0.55);
  font-weight: 700;
}
.lb-sub {
  font-size: 0.85rem;
  color: rgba(244, 241, 234, 0.42);
  max-width: 420px;
}

/* ==========================================================================
   MOBILE
   ========================================================================== */
@media (max-width: 980px) {
  .home-atelier-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .home-atelier { padding: 4rem 0; }
  .home-process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-item:nth-child(2) { border-right: 1px solid var(--line, #D0D0CD); }
  .process-item:nth-child(3),
  .process-item:nth-child(4) { border-top: 1px solid var(--line, #D0D0CD); }
  .home-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3),
  .stat-item:nth-child(4) {
    border-top: 1px solid rgba(244, 241, 234, 0.10);
    margin-top: 1.5rem;
    padding-top: 1.5rem;
  }
  .ha-stats { gap: 2rem; }
  .home-base-intro { text-align: left; margin: 0 1.5rem 2rem; }

  /* HERO: уже на планшетах разрешаем переносы */
  .hero-title--wide .hero-line { white-space: normal; }
  .hero-title--wide { font-size: clamp(1.8rem, 8vw, 3.6rem) !important; }
  .hero-title--wide .hero-plus { font-size: 0.5em; }
}
@media (max-width: 600px) {
  .home-process-grid { grid-template-columns: 1fr; }
  .process-item { border-left: none; border-top: 1px solid var(--line, #D0D0CD); padding: 1.5rem 1rem; }
  .process-item:first-child { border-top: none; }
  .process-item:last-child { border-right: none; }
  .home-stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(244, 241, 234, 0.10); padding: 1.5rem 1rem; }
  .stat-item:last-child { border-bottom: none; }
  .stat-item:nth-child(2),
  .stat-item:nth-child(3),
  .stat-item:nth-child(4) { border-top: none; margin-top: 0; padding-top: 1.5rem; }

  /* HERO на мобиле */
  .hero-title--wide { font-size: clamp(1.6rem, 9vw, 2.6rem) !important; gap: 0.2rem; }
  .hero-title--wide .hero-plus { font-size: 0.45em; }
  .hero-actions .btn { padding: 0.9rem 1.4rem; font-size: 0.68rem; }

  /* Цены в превью базы на главной — мельче и легче (не product-detail-page) */
  #home-base-grid .price,
  #home-base-grid .price-now {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
  }
  #home-base-grid .price-old {
    font-size: 0.78rem !important;
  }
  #home-base-grid .product-info {
    padding: 0.8rem 0.6rem !important;
  }
  #home-base-grid .product-info h4 {
    font-size: 0.85rem !important;
    line-height: 1.25;
  }
  #home-base-grid .product-code {
    font-size: 0.65rem !important;
  }
}
