.hero {

  min-height: 100vh;
  padding-top: 80px;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;

}

.hero__inner {

  display: grid;
  grid-template-columns: 220px 1fr 480px;
  grid-template-rows: auto auto auto;
  gap: 24px 48px;
  align-items: start;
  padding: var(--space-12) 0 var(--space-12);

}

/* Левая колонка — мета */
.hero__meta {

  grid-column: 1;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 8px;

}

.hero__meta .section-label {

  margin-bottom: 0;

}

.hero__meta-stats {

  display: flex;
  flex-direction: column;
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);

}

.hero__meta-stat {

  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;

}

.hero__meta-divider {

  height: 1px;
  background: var(--color-border);

}

.hero__meta-num {
font-family: var(--font-heading);
  
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--color-text);
  line-height: 1;
}

.hero__meta-label {
font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-subtle);
}

/* Центральный заголовок */
.hero__title-wrap {

  grid-column: 2;
  grid-row: 1;
  min-height: clamp(5.5rem, 10vw, 10rem);

}

.hero__title {

  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 0;

}

.hero__title-line {

  display: block;
  overflow: hidden;
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;

}

.hero__title-line--regular {

  color: var(--color-text);

}

/* Акцентная деталь: контурная строка */
.hero__title-line--outlined {

  color: transparent;
  -webkit-text-stroke: 2px var(--color-text);

}

.hero__title-line--accent {

  color: var(--color-gold);
  font-style: italic;

}

/* Описание + кнопки */
.hero__content {

  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 480px;

}

.hero__description {
color: var(--color-text-muted);
  line-height: 1.65;
}

.hero__actions {

  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 0;

}

.hero__btn-calc {
padding: 16px 32px;
}

/* Правая колонка — визуал */
.hero__visual {

  grid-column: 3;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  gap: 16px;

}

/* Журнальная галерея — автоперелистывание фото */
.hero__magazine {

  width: 100%;
  aspect-ratio: 3 / 2;
  --hero-flip-duration: 780ms;
  --hero-flip-ease: cubic-bezier(0.45, 0.05, 0.35, 1);
  --hero-gallery-interval: 5000ms;

}

.hero__magazine-frame {

  background: #1A1814;
  border-radius: 20px;
  padding: 8px;
  position: relative;
  overflow: hidden;
  box-shadow:
    var(--shadow-xl),
    0 0 60px rgba(201, 152, 42, 0.08);
  width: 100%;
  height: 100%;
  min-height: 200px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    border-color 300ms var(--ease-out),
    box-shadow 300ms var(--ease-out),
    transform 300ms var(--ease-out);

}

.hero__magazine-frame:hover {

  border-color: rgba(201, 152, 42, 0.25);
  box-shadow:
    var(--shadow-xl),
    0 0 48px rgba(201, 152, 42, 0.15),
    0 0 80px rgba(201, 152, 42, 0.06);
  transform: scale(1.01);

}

/* Декоративная стопка страниц за активным слайдом */
.hero__magazine-stack {

  position: absolute;
  inset: 8px;
  z-index: 0;
  pointer-events: none;

}

.hero__magazine-stack-page {

  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: var(--color-light-secondary);
  border: 1px solid rgba(28, 26, 23, 0.08);
  transform-origin: bottom right;

}

.hero__magazine-stack-page--1 {

  transform: rotate(-2deg) translate(-4px, 4px);
  opacity: 0.5;

}

.hero__magazine-stack-page--2 {

  transform: rotate(-4deg) translate(-8px, 8px);
  opacity: 0.3;

}

/* Viewport с 3D-перспективой для flip */
.hero__magazine-viewport {

  position: absolute;
  inset: 8px;
  perspective: 1400px;
  transform-style: preserve-3d;
  z-index: 1;

}

.hero__magazine-slide {

  position: absolute;
  inset: 0;
  margin: 0;
  padding: 4px;
  background: var(--color-light);
  border-radius: 12px;
  border: 1px solid rgba(28, 26, 23, 0.04);
  box-shadow: 0 2px 12px rgba(28, 26, 23, 0.08);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: rotateY(72deg) translateX(4%);
  transform-origin: left center;
  backface-visibility: hidden;
  transition:
    opacity var(--hero-flip-duration) var(--hero-flip-ease),
    transform var(--hero-flip-duration) var(--hero-flip-ease),
    filter var(--hero-flip-duration) var(--hero-flip-ease),
    box-shadow var(--hero-flip-duration) var(--hero-flip-ease),
    visibility var(--hero-flip-duration);
  pointer-events: none;

}

.hero__magazine-slide picture {

  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 0;
  width: 100%;
  border-radius: 6px;
  background: var(--color-light-secondary);
  overflow: hidden;

}

.hero__magazine-slide img {

  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 6px;

}

.hero__magazine-slide.is-placeholder img {

  opacity: 0;
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;

}

.hero__magazine-slide.is-placeholder::before {

  content: '';
  flex: 1;
  min-height: 120px;
  border-radius: 6px;
  background: linear-gradient(145deg, var(--color-dark-secondary) 0%, var(--color-dark) 100%);

}

/* Состояния анимации перелистывания */
.hero__magazine-slide.is-active {

  opacity: 1;
  visibility: visible;
  transform: rotateY(0deg) translateX(0);
  filter: brightness(1);
  z-index: 3;
  pointer-events: auto;

}

.hero__magazine-slide.is-exiting {

  opacity: 0;
  visibility: visible;
  transform: rotateY(-78deg) translateX(-6%);
  filter: brightness(0.92);
  box-shadow: -8px 4px 24px rgba(0, 0, 0, 0.25);
  z-index: 2;
  pointer-events: none;

}

.hero__magazine-slide.is-entering {

  opacity: 1;
  visibility: visible;
  transform: rotateY(72deg) translateX(4%);
  filter: brightness(1);
  z-index: 4;
  pointer-events: none;

}

/* Счётчик страниц — glassmorphism */
.hero__magazine-page {

  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 5;
  pointer-events: none;

}

.hero__magazine-page-glass {

  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.05em;
  background: rgba(28, 26, 23, 0.52);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);

}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {

  .hero__magazine-page-glass {
    background: rgba(28, 26, 23, 0.85);
  }

}

.hero__magazine-page-current {

  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  color: var(--color-gold);

}

.hero__magazine-page-current.is-ticking {

  animation: heroPagePulse 200ms var(--ease-out);

}

@keyframes heroPagePulse {

  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(0.94); }

}

.hero__magazine-page-sep,
.hero__magazine-page-total {

  font-size: var(--text-xs);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.55);

}

/* Прогресс автоплея */
.hero__magazine-progress {

  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  height: 2px;
  z-index: 6;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  overflow: hidden;
  pointer-events: none;

}

.hero__magazine-progress-bar {

  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left center;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
  animation: heroMagazineProgress var(--hero-gallery-interval) linear forwards;

}

.hero__magazine.is-paused .hero__magazine-progress-bar {

  animation-play-state: paused;

}

@keyframes heroMagazineProgress {

  from { transform: scaleX(0); }
  to { transform: scaleX(1); }

}

/* Главная карточка — инфографика типов подсветки */
.hero__preview-card {

  background: #1A1814;
  border-radius: 20px;
  padding: 12px;
  position: relative;
  overflow: hidden;
  box-shadow:
    var(--shadow-xl),
    0 0 60px rgba(201, 152, 42, 0.08);
  aspect-ratio: 3 / 2;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    border-color 300ms var(--ease-out),
    box-shadow 300ms var(--ease-out),
    transform 300ms var(--ease-out);

}

.hero__lighting-guide::after {

  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 12px;
  background: radial-gradient(
    ellipse at center,
    transparent 55%,
    rgba(10, 10, 15, 0.35) 100%
  );
  pointer-events: none;
  z-index: 1;

}

.hero__preview-card:hover {

  border-color: rgba(201, 152, 42, 0.25);
  box-shadow:
    var(--shadow-xl),
    0 0 48px rgba(201, 152, 42, 0.15),
    0 0 80px rgba(201, 152, 42, 0.06);
  transform: scale(1.01);

}

.hero__lighting-guide__img {

  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  position: relative;
  z-index: 0;

}

.hero__preview-card.is-visible {

  opacity: 1;
  transform: scale(1);

}

.hero__visual--animate .hero__preview-card:not(.is-visible) {

  opacity: 0;
  transform: scale(0.97);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);

}

/* Бейдж «Онлайн-расчёт бесплатно» */
.hero__preview-badge {
position: absolute;
  top: 16px;
  right: 16px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.02em;
}

.hero__preview-badge-dot {

  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ADE80;
  flex-shrink: 0;
  animation: heroBadgePulse 2s ease-in-out infinite;

}

@keyframes heroBadgePulse {

  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }

}

/* Маленькие bento-карточки */
.hero__bento-small {

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;

}

.hero__bento-card {

  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);

}

.hero__bento-card.is-visible {

  opacity: 1;
  transform: translateY(0);

}

.hero__visual--animate .hero__bento-card:not(.is-visible) {

  opacity: 0;
  transform: translateY(16px);

}

.hero__bento-card--gold {

  background: var(--color-light);
  border: 1px solid var(--color-border-accent);

}

.hero__bento-card--gold svg {

  color: var(--color-gold);

}

.hero__bento-card--dark {

  background: var(--color-dark);
  border: 1px solid transparent;

}

.hero__bento-card--dark svg {

  color: rgba(255, 255, 255, 0.6);

}

.hero__bento-title {
font-family: var(--font-heading);
  
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
}

.hero__bento-card--dark .hero__bento-title {

  color: var(--color-text-inverse);

}

.hero__bento-subtitle {
color: var(--color-text-muted);
  line-height: 1.3;
}

.hero__bento-card--dark .hero__bento-subtitle {

  color: rgba(255, 255, 255, 0.45);

}

.hero__bento-num {
font-family: var(--font-heading);
  font-weight: 900;
  font-size: var(--text-xl);
  color: var(--color-text);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero__bento-card--dark .hero__bento-num {

  color: var(--color-text-inverse);

}

.hero__bento-text {
font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  line-height: 1.3;
}

.hero__bento-card--dark .hero__bento-text {

  color: rgba(255, 255, 255, 0.45);

}

/* Trust-панель: bento + теги */
.hero__trust-panel {

  display: flex;
  flex-direction: column;
  gap: 16px;

}

.hero__trust-panel__divider {

  display: none;

}

.hero__tag-row {

  display: flex;
  flex-wrap: wrap;
  gap: 8px;

}

/* Пилюли под виджетом */
.hero__pills {

  display: flex;
  gap: 8px;
  flex-wrap: wrap;

}

.hero__pill {
display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  
  font-weight: 500;
  background: rgba(28, 26, 23, 0.06);
  border: 1px solid rgba(28, 26, 23, 0.12);
  color: #4A4540;
  transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
}

.hero__pill.is-visible {

  opacity: 1;
  transform: translateY(0);

}

.hero__visual--animate .hero__pill:not(.is-visible) {

  opacity: 0;
  transform: translateY(8px);

}

.hero__pill svg {

  flex-shrink: 0;
  color: var(--color-text-muted);

}

/* Бегущая строка */
.hero__ticker {

  border-top: 1px solid color-mix(in srgb, var(--color-border) 60%, transparent);
  background: color-mix(in srgb, var(--color-white) 35%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 14px 0;
  overflow: hidden;

}

.hero__ticker-track {

  display: flex;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
  animation: heroTickerScroll var(--ticker-duration, 48s) linear infinite;
  width: max-content;

}

.hero__ticker-track span:not(.hero__ticker-sep) {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero__ticker-sep {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  letter-spacing: 0;
  user-select: none;
  flex-shrink: 0;
}

@keyframes heroTickerScroll {

  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }

}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

  .hero__ticker-track {
    animation: none;
  }

  .hero__preview-badge-dot {
    animation: none;
  }

  .hero__magazine-frame:hover {
    transform: none;
  }

  .hero__magazine-slide {
    transition: none;
  }

  .hero__magazine-slide:not(.is-active) {
    display: none;
  }

  .hero__magazine-progress {
    display: none;
  }

  .hero__magazine-page-current.is-ticking {
    animation: none;
  }

  .hero__visual--animate .hero__preview-card:not(.is-visible),
  .hero__visual--animate .hero__bento-card:not(.is-visible),
  .hero__visual--animate .hero__pill:not(.is-visible) {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__preview-card:hover {
    transform: none;
  }

}



/* Tablet typography + polish (layout in responsive.css) */
@media (min-width: 768px) and (max-width: 1199px) {
  .hero__btn-calc { font-size: 0.875rem; letter-spacing: 0.04em; }
  .hero__preview-badge { font-size: var(--text-xs); }
  .hero__bento-title { font-size: var(--text-base); }
  .hero__bento-subtitle { font-size: var(--text-sm); }
  .hero__pill { font-size: var(--text-sm); }

  .hero__meta .section-label {
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
  }

  .hero__title-line--accent {
    padding-inline-end: 0.05em;
    overflow: visible;
  }

  .hero__actions .btn-ghost {
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
  }

  .hero__trust-panel__divider {
    display: block;
    height: 1px;
    margin: 2px 0;
    opacity: 0.4;
    background: linear-gradient(
      90deg,
      transparent,
      var(--color-gold) 30%,
      var(--color-gold-light) 50%,
      var(--color-gold) 70%,
      transparent
    );
  }

  .hero__bento-card--gold {
    box-shadow: var(--shadow-gold);
  }

  .hero__bento-card--dark {
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .hero__trust-panel .hero__tag-row .tag-gold {
    color: var(--color-gold-dark);
    background: var(--color-gold-dim);
  }

  .hero__trust-panel .hero__tag-row .tag:not(.tag-gold) {
    background: var(--color-surface-muted);
    border-color: var(--color-border-strong);
    color: var(--color-text);
  }

  .hero__ticker {
    padding: 12px 0;
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0%,
      #000 5%,
      #000 95%,
      transparent 100%
    );
    mask-image: linear-gradient(
      90deg,
      transparent 0%,
      #000 5%,
      #000 95%,
      transparent 100%
    );
  }
}

@media (min-width: 1200px) {
  .hero__title-line { font-size: clamp(2.75rem, 5.5vw, 5.25rem); }
  .hero__meta-num { font-size: 28px; }
  .hero__meta-label { font-size: 11px; }
  .hero__description { font-size: 17px; }
  .hero__btn-calc { font-size: 14px; }
  .hero__preview-badge { font-size: var(--text-xs); }
  .hero__bento-title { font-size: var(--text-base); }
  .hero__bento-subtitle { font-size: var(--text-sm); }
  .hero__pill { font-size: var(--text-sm); }
}
