/* ===========================================================
   STEEL RANK — v2 (real photos & brand logo)
   Layered on top of styles.css — only overrides/additions
   =========================================================== */

/* ---------- Brand logo (PNG instead of constructed mark) ---------- */
.logo--brand {
  align-items: center;
  gap: 0;
}
.logo__img {
  display: block;
  height: 44px;
  width: auto;
  object-fit: contain;
}
@media (max-width: 480px) {
  .logo__img { height: 36px; }
}

/* ---------- HERO v2 — двух-колоночный с фото ---------- */
.hero--v2 { padding-bottom: 120px; }
.hero__inner--v2 {
  max-width: 1240px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 70px;
  align-items: center;
  text-align: left;
}
.hero__inner--v2 .hero__badge { margin-bottom: 26px; }
.hero__inner--v2 .hero__title { text-align: left; }
.hero__inner--v2 .hero__cta { justify-content: flex-start; margin-bottom: 44px; }
.hero__lead--left { text-align: left; margin: 0 0 36px; max-width: none; }

.hero__stats--v2 {
  margin: 0;
  max-width: 560px;
  text-align: left;
}
.hero__stats--v2 li { align-items: flex-start; text-align: left; }

/* Right column: photo + dashboard cards */
.hero__col-media {
  position: relative;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__photo {
  position: relative;
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--c-line);
  background: #fff;
  transform: rotate(-1deg);
}
.hero__photo img {
  width: 100%;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.hero__photo-tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero__dash {
  position: absolute;
  width: 230px;
  background: #fff;
  border-radius: 16px;
  padding: 10px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--c-line);
  overflow: hidden;
  z-index: 2;
}
.hero__dash img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  object-position: top left;
  border-radius: 8px;
  display: block;
}
.hero__dash-cap {
  font-size: 11px;
  color: var(--c-mute);
  font-weight: 600;
  margin-top: 8px;
  padding: 0 4px 4px;
  line-height: 1.35;
}
.hero__dash--left {
  left: -40px;
  bottom: 30px;
  --rot: -5deg;
  transform: rotate(var(--rot));
  animation: dashFloatA 7s ease-in-out infinite;
}
.hero__dash--right {
  right: -50px;
  top: -90px;
  --rot: 4deg;
  transform: rotate(var(--rot));
  animation: dashFloatB 6s ease-in-out infinite;
}

@keyframes dashFloatA {
  0%, 100% { transform: rotate(var(--rot)) translateY(0); }
  50%      { transform: rotate(calc(var(--rot) - 1deg)) translateY(-10px); }
}
@keyframes dashFloatB {
  0%, 100% { transform: rotate(var(--rot)) translateY(0); }
  50%      { transform: rotate(calc(var(--rot) + 1deg)) translateY(-12px); }
}

/* Photo subtle breathing */
.hero__photo {
  animation: photoBreathe 9s ease-in-out infinite;
}
@keyframes photoBreathe {
  0%, 100% { transform: rotate(-1deg) translateY(0); }
  50%      { transform: rotate(-1deg) translateY(-6px); }
}

/* Photo tag pulse */
.hero__photo-tag .dot--green {
  animation: pulseDot 1.8s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(168, 220, 42, 0.6); }
  50%      { box-shadow: 0 0 0 8px rgba(168, 220, 42, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__dash--left, .hero__dash--right, .hero__photo, .hero__photo-tag .dot--green { animation: none; }
}

/* ---------- PROCESS — visual photo replacement ---------- */
.process-step__visual--photo {
  padding: 0;
  background: linear-gradient(135deg, rgba(34,197,255,0.10) 0%, rgba(196,245,66,0.05) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}
.process-step__visual--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.process-step__visual--photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(11,18,32,0.4));
  pointer-events: none;
}
.process-step__visual--light {
  background: #fff;
}
.process-step__visual--light img {
  object-fit: contain;
  padding: 20px;
}
.process-step__visual--light::after { display: none; }

/* ---------- CTA banner — real cert image ---------- */
.cta-banner__cert--photo {
  display: flex;
  justify-content: center;
  align-items: center;
}
.cta-banner__cert--photo img {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
  display: block;
}
@media (max-width: 820px) {
  .cta-banner__cert--photo img { transform: none; max-width: 320px; }
}

/* ---------- CONTROL — real team photo ---------- */
.control__media--photo {
  background: #000;
  padding: 0;
}
.control__media--photo::before { display: none; }
.control__media--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.control__media--photo .control__media-overlay { display: none; }
.control__media--photo .control__media-stats {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: auto;
  flex-wrap: wrap;
}

/* ---------- AI section v2 ---------- */
.ai__head--v2 {
  position: relative;
  padding-top: 0;
}
.ai__hero-mascot {
  width: 180px;
  height: 180px;
  margin: 0 auto 20px;
  position: relative;
  filter: drop-shadow(0 20px 40px rgba(34,197,255,0.4));
  animation: floatY 5s ease-in-out infinite;
}
.ai__hero-mascot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.ai__phones {
  position: relative;
  height: 540px;
  margin: 60px auto 0;
  max-width: 760px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}
.ai__phone {
  position: absolute;
  height: 100%;
  width: auto;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.5));
  transition: transform 600ms cubic-bezier(.2,.7,.2,1);
}
.ai__phone--left {
  left: 12%;
  transform: rotate(-8deg) translateY(20px);
}
.ai__phone--right {
  right: 12%;
  transform: rotate(8deg) translateY(-10px);
}
.ai__phones:hover .ai__phone--left { transform: rotate(-10deg) translateY(0); }
.ai__phones:hover .ai__phone--right { transform: rotate(10deg) translateY(-30px); }

.ai__grid--v2 { margin-top: -60px; position: relative; z-index: 2; }

/* AI cards — photo poster variant */
.ai-card--photo .ai-card__poster {
  margin-top: auto;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0,0,0,0.2);
  position: relative;
  aspect-ratio: 16/10;
}
.ai-card--photo .ai-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms cubic-bezier(.2,.7,.2,1);
}
.ai-card--photo:hover .ai-card__poster img { transform: scale(1.04); }

.ai-card__poster--wide { aspect-ratio: 21/9; }

/* AI compare — real photos */
.ai-card__compare-half--photo {
  position: relative;
  background: #1B2438;
  overflow: hidden;
}
.ai-card__compare-half--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ai-card__compare-half--photo:first-child img {
  filter: grayscale(0.3) brightness(0.85) contrast(0.95);
}
.ai-card__compare-half--photo .ai-card__compare-label {
  z-index: 2;
}

.ai-card--photo {
  display: flex;
  flex-direction: column;
}
.ai-card--photo h3 { font-size: 20px; }
.ai-card--photo .ai-card__compare { height: 180px; margin-top: auto; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .hero__inner--v2 {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }
  .hero__inner--v2 .hero__title { text-align: center; }
  .hero__inner--v2 .hero__cta { justify-content: center; }
  .hero__lead--left { text-align: center; margin-left: auto; margin-right: auto; max-width: 640px; }
  .hero__stats--v2 { margin: 0 auto; }
  .hero__col-media { max-width: 560px; margin: 0 auto; }

  .ai__phones { height: 420px; max-width: 600px; }
  .ai__phone--left { left: 8%; }
  .ai__phone--right { right: 8%; }
}

@media (max-width: 820px) {
  html, body { overflow-x: clip; max-width: 100%; }

  .hero--v2 { padding-bottom: 70px; }
  .hero__col-media { aspect-ratio: auto; width: 100%; }
  .hero__photo {
    max-width: 100%;
    transform: none !important;
    animation: none !important;
  }
  .hero__title-accent { transform: none; }
  .hero__dash { display: none; }

  .control__media--photo { height: 280px; }
  .control__media--photo .control__media-stats { bottom: 14px; left: 14px; gap: 10px; }
  .control__media--photo .control__media-stats > div { padding: 10px 14px; }

  .ai__hero-mascot { width: 140px; height: 140px; }

  .ai__phones {
    height: auto;
    flex-direction: row;
    gap: 12px;
    padding: 0 10px;
  }
  .ai__phone {
    position: relative;
    height: 360px;
    transform: none !important;
  }
  .ai__phone--left, .ai__phone--right { left: auto; right: auto; }

  .ai__grid--v2 { margin-top: 30px; }

  .ai-card--photo .ai-card__compare { height: 160px; }
}

@media (max-width: 480px) {
  .ai__phones { height: auto; }
  .ai__phone { height: 280px; }
  .ai-card--photo h3 { font-size: 18px; }
}
