/* typography.css — Apple-style */

/* ─── HERO ──────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 44px;
  position: relative;
  overflow: hidden;
}

.hero .section-label {
  color: var(--apple-blue);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(64px, 11vw, 140px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.92;
  color: #1d1d1f;
  margin: 16px 0 24px;
}

.hero-sub {
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 400;
  color: #6e6e73;
  line-height: 1.5;
  margin-bottom: 36px;
}

/* ПАЛВИНИ — в правый нижний угол героя */
.hero-brand {
  position: absolute;
  bottom: 44px;
  right: 44px;
  font-size: clamp(10px, 1.2vw, 16px);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.18);
  pointer-events: none;
  user-select: none;
}

.hero-sub {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 400;
  color: #6e6e73;
  line-height: 1.4;
  margin-bottom: 36px;
  max-width: 600px;
}

.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Факты в hero */
.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #e5e5ea;
  border-radius: 16px;
  overflow: hidden;
  margin-top: 48px;
  width: 100%;
  max-width: 680px;
  text-align: left;
}

.hero-fact {
  background: #fff;
  padding: 28px 24px;
}

.hero-fact-num {
  display: block;
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--apple-blue);
}

.hero-fact-unit {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #1d1d1f;
  margin: 4px 0 8px;
}

.hero-fact-desc {
  font-size: 13px;
  color: #6e6e73;
  line-height: 1.5;
  margin: 0;
}

/* Подсказка скролла — едва видна на светлом */
.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-scroll-hint span {
  display: block;
  width: 1.5px;
  height: 36px;
  background: rgba(0,0,0,0.12);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.hero-scroll-hint span::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  right: 0;
  height: 100%;
  background: rgba(0,0,0,0.4);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { top: -100%; }
  100% { top: 100%; }
}

/* ─── ФАКТЫ ─────────────────────────────────────────────── */
.facts-section {
  padding: 80px 44px;
  background: #fff;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: #e5e5ea;
  border-radius: 20px;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
}

.fact-card {
  background: #fff;
  padding: 56px 44px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fact-number {
  font-size: 72px;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  color: #1d1d1f;
}

.fact-unit {
  font-size: 20px;
  font-weight: 500;
  color: #1d1d1f;
  letter-spacing: -0.02em;
}

.fact-desc {
  font-size: 15px;
  color: #6e6e73;
  margin-top: 8px;
  line-height: 1.5;
}

/* ─── ПРОМО КОНФИГУРАТОР ────────────────────────────────── */
.promo-section {
  padding: 120px 0;
  background: #f5f5f7;
}

.promo-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Карточка-мок конфигуратора — светлая */
.promo-mock {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.mock-step {
  font-size: 14px;
  color: #6e6e73;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f3;
}

.mock-step.active {
  color: #1d1d1f;
  font-weight: 500;
}

.mock-price {
  font-size: 20px;
  color: #1d1d1f;
  margin-top: 8px;
}

/* ─── КАТАЛОГ ПРОМО ─────────────────────────────────────── */
.catalog-promo {
  padding: 100px 44px;
  background: #fff;
}

.catalog-promo-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

/* ─── КАТАЛОГ — горизонтальный скролл карточек ────────── */
.zip-gallery-section {
  padding: 120px 0 0;
  background: #fff;
  overflow: hidden;
}

.zip-gallery-head {
  padding: 0 44px 56px;
  max-width: 1200px;
  margin: 0 auto;
}

.zip-gallery-track-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  padding-bottom: 120px;
}
.zip-gallery-track-wrap::-webkit-scrollbar { display: none; }
.zip-gallery-track-wrap.is-grabbing { cursor: grabbing; }

.zip-gallery-track {
  display: flex;
  gap: 12px;
  padding: 0 44px;
  width: max-content;
  scroll-snap-type: x mandatory;
}

/* ─── Карточка ────────────────────────────────────────── */
.zip-card {
  flex-shrink: 0;
  width: 300px;
  height: 500px;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 28px 24px;
  position: relative;
  text-decoration: none;
  scroll-snap-align: start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.zip-card:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.18); }

.zip-card--dark  { background: #111; }
.zip-card--blue  { background: #1a2b4a; }
.zip-card--gray  { background: #2c2c2e; }
.zip-card--light { background: #f5f5f7; }

.zip-card__meta { position: relative; z-index: 2; }

.zip-card__label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.zip-card--dark  .zip-card__label,
.zip-card--blue  .zip-card__label,
.zip-card--gray  .zip-card__label { color: rgba(255,255,255,0.55); }
.zip-card--light .zip-card__label { color: var(--apple-blue); }

.zip-card__title {
  font-size: clamp(22px, 2.4vw, 26px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0;
}
.zip-card--dark  .zip-card__title,
.zip-card--blue  .zip-card__title,
.zip-card--gray  .zip-card__title { color: #fff; }
.zip-card--light .zip-card__title { color: #1d1d1f; }

.zip-card__img {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 62%;
  height: 68%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.zip-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  border-radius: 0;
  filter: drop-shadow(0 16px 32px rgba(0,0,0,0.35));
}

.zip-card__plus {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
  color: rgba(255,255,255,0.7);
  z-index: 3;
}
.zip-card--light .zip-card__plus {
  border-color: rgba(0,0,0,0.2);
  color: rgba(0,0,0,0.4);
}

/* ─── КОНТАКТЫ ──────────────────────────────────────────── */
.contacts-section {
  padding: 120px 44px;
  background: #f5f5f7;
}

.contacts-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 60px;
}

/* ─── CTA ────────────────────────────────────────────────── */
.cta-section { padding: 120px 44px; text-align: center; background: #f5f5f7; }
.cta-inner { max-width: 1200px; margin: 0 auto; }
.cta-inner .section-subtitle { margin: 0 auto 40px; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .promo-inner,
  .catalog-promo-inner,
  .contacts-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .promo-preview { order: -1; }
}

@media (max-width: 768px) {
  .hero { padding: 0 20px; }
  .hero-title { font-size: clamp(52px, 16vw, 100px); }
  .hero-brand { display: none; }
  .hero-facts { max-width: 100%; }
  .hero-fact { padding: 20px 16px; }
  .hero-fact-num { font-size: 40px; }
  .facts-section { padding: 80px 20px; }
  .fact-card { padding: 36px 24px; }
  .fact-number { font-size: 56px; }

  .promo-section { padding: 80px 0; }
  .zip-gallery-section { padding: 80px 0 0; }
  .zip-gallery-track-wrap { padding-bottom: 80px; }
  .zip-gallery-head { padding: 0 20px 40px; }
  .zip-gallery-track { padding: 0 20px; }
  .zip-card { width: 240px; height: 400px; }

  .contacts-section { padding: 80px 20px; }
  .cta-section { padding: 80px 20px; }

  .catalog-promo { padding: 80px 20px; }
  .catalog-promo-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 480px) {
  .hero-facts { grid-template-columns: 1fr; }
  .hero-fact { padding: 20px 20px; border-bottom: 1px solid #e5e5ea; }
  .hero-fact:last-child { border-bottom: none; }

  .promo-section { padding: 60px 0; }
  .zip-gallery-section { padding: 60px 0 0; }
  .zip-gallery-track-wrap { padding-bottom: 60px; }
  .zip-card { width: 200px; height: 340px; padding: 20px; }
  .zip-card__title { font-size: 18px; }

  .contacts-section { padding: 60px 20px; }
}

