﻿/* ==================== HERO SPLIT (APPLE PRO) ==================== */
.hero-split {
  position: relative;
  min-height: auto;
  display: flex;
  overflow: hidden;
  padding-top: clamp(120px, 15vw, 160px);
  padding-bottom: 40px;
}

.hero-split__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-split__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(12px);
  transform: scale(1.05);
}



.hero-split__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: stretch;
}

@media (min-width: 992px) {
  .hero-split__container {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
  }
}

/* Content (Left) */
.hero-split__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: center;
  padding-bottom: clamp(60px, 8vw, 80px);
}

/* Badge removed */

.hero-split__title {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-white);
  margin-bottom: 24px;
}
.hero-split__title span {
  background: linear-gradient(135deg, #fff 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding-bottom: 4px;
}
.hero-split__title,
.hero-split__subtitle {
  opacity: 0;
  animation: fadeRight 0.8s ease forwards;
  animation-delay: 0.1s;
}

.hero-split__subtitle {
  font-size: clamp(16px, 1.5vw, 20px);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: 40px;
  animation-delay: 0.2s;
}

.hero-split__actions {
  display: flex;
  gap: 16px;
  margin-bottom: clamp(40px, 6vw, 64px);
  opacity: 0;
  animation: fadeRight 0.8s ease forwards;
  animation-delay: 0.3s;
}

/* Trust Indicators */
.hero-split__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 40px);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 32px;
  opacity: 0;
  animation: fadeRight 0.8s ease forwards;
  animation-delay: 0.4s;
  width: 100%;
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.trust-val {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  color: var(--color-accent);
  line-height: 1;
}
.trust-lbl {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.3;
}

@keyframes fadeRight {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Image Slider (Right) */
.hero-split__slider {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: fadeLeft 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.2s;
  min-height: 400px;
}

@media (min-width: 992px) {
  .hero-split__slider {
    min-height: 500px;
  }
}

@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Glow removed */

.hero-split__slider .slider-img {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform-origin: bottom center;
  transform: translateX(-50%) scale(1.12);
  width: auto;
  max-width: 100%;
  height: 95%;
  object-fit: contain;
  object-position: bottom center;
  opacity: 0;
  transition: none;
  z-index: 1;
}
.hero-split__slider .slider-img.active {
  opacity: 1;
  transform: translateX(-50%) scale(1.15);
  z-index: 2;
  transition: opacity 0.65s ease, transform 0.65s ease;
}

/* ====== HERO SLIDER WRAPPER & INDICATORS ====== */
.hero-split__slider-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  opacity: 0;
  animation: fadeLeft 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.2s;
  min-height: 400px;
}

@media (min-width: 992px) {
  .hero-split__slider-wrapper {
    min-height: 500px;
  }
}

/* Override: slider no longer needs its own animation (wrapper handles it) */
.hero-split__slider {
  animation: none !important;
  opacity: 1 !important;
  position: relative;
  width: 100%;
  flex: 1;
}

/* Indicators */
.hero-slider-indicators {
  display: flex;
  flex-direction: column;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  padding: 0;
  gap: 16px;
  z-index: 5;
  justify-content: center;
}

@media (min-width: 992px) {
  .hero-slider-indicators {
    right: -24px;
  }
}

.hero-indicator {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-indicator:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.2);
}

.hero-indicator.active {
  background: var(--color-white);
  transform: scale(1);
}

/* SVG Progress Ring */
.hero-indicator .progress-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 38px;
  height: 38px;
  margin-top: -19px;
  margin-left: -19px;
  transform: rotate(-90deg);
  transform-origin: center center;
  opacity: 0;
  pointer-events: none;
}

.hero-indicator .progress-ring__circle {
  fill: transparent;
  stroke: var(--color-white);
  stroke-width: 2.5;
  stroke-dasharray: 69; /* 2 * PI * 11 ≈ 69.11 */
  stroke-dashoffset: 69;
  stroke-linecap: round;
}

.hero-indicator.active .progress-ring {
  opacity: 1;
}

.hero-indicator.active .progress-ring__circle {
  animation: progressFill 4s linear forwards;
}

@keyframes progressFill {
  0% { stroke-dashoffset: 69; }
  100% { stroke-dashoffset: 0; }
}



/* ==================== HERO PREMIUM BACKGROUND ==================== */

/* Базовый контейнер фона */
.hero-bg-premium {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background-color: var(--color-bg-dark); /* #0D1B2A */
}

/* Многослойный градиент: глубокий тёмно-синий + оттенок бирюзы */
.hero-bg__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 110%, rgba(169, 210, 211, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 0% 20%, rgba(11, 30, 55, 0.9) 0%, transparent 70%),
    linear-gradient(160deg, #0b1e37 0%, #0D1B2A 45%, #091525 100%);
}

/* Тонкая сетка (dot grid) */
.hero-bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(169, 210, 211, 0.18) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.55;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 30%, transparent 100%);
}

/* Фирменный элемент — правый верхний угол (teal) */
.hero-bg__shape {
  position: absolute;
  pointer-events: none;
}

.hero-bg__shape--tr {
  top: -80px;
  right: -80px;
  width: clamp(320px, 38vw, 560px);
  opacity: 0.13;
  transform: rotate(25deg);
  animation: heroBgShapeFloat 12s ease-in-out infinite alternate;
}

/* Фирменный элемент — левый нижний угол (white) */
.hero-bg__shape--bl {
  bottom: -100px;
  left: -60px;
  width: clamp(220px, 26vw, 380px);
  opacity: 0.06;
  transform: rotate(-15deg) scaleX(-1);
  animation: heroBgShapeFloat 16s ease-in-out infinite alternate-reverse;
}

.hero-bg__shape img {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes heroBgShapeFloat {
  0%   { transform: rotate(25deg) translateY(0px); }
  100% { transform: rotate(30deg) translateY(-20px); }
}

/* Свечение: бирюзовое в правом нижнем углу */
.hero-bg__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}

.hero-bg__glow--teal {
  width: clamp(300px, 40vw, 600px);
  height: clamp(200px, 28vw, 400px);
  bottom: -60px;
  right: 5%;
  background: radial-gradient(ellipse, rgba(169, 210, 211, 0.18) 0%, transparent 70%);
  animation: heroBgGlowPulse 8s ease-in-out infinite alternate;
}

.hero-bg__glow--navy {
  width: clamp(250px, 35vw, 500px);
  height: clamp(200px, 28vw, 380px);
  top: -80px;
  left: -5%;
  background: radial-gradient(ellipse, rgba(23, 37, 53, 0.7) 0%, transparent 70%);
}

@keyframes heroBgGlowPulse {
  0%   { opacity: 0.7; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.1); }
}

/* Плавающие точки (floating particles) */
.hero-bg__dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--color-accent);
}

.hero-dot--1 {
  width: 5px; height: 5px;
  top: 18%; left: 12%;
  opacity: 0.35;
  animation: heroDotFloat 7s ease-in-out infinite;
}
.hero-dot--2 {
  width: 3px; height: 3px;
  top: 35%; left: 30%;
  opacity: 0.2;
  animation: heroDotFloat 11s ease-in-out infinite reverse;
}
.hero-dot--3 {
  width: 6px; height: 6px;
  top: 65%; left: 20%;
  opacity: 0.25;
  animation: heroDotFloat 9s ease-in-out infinite 2s;
}
.hero-dot--4 {
  width: 4px; height: 4px;
  top: 25%; right: 20%;
  opacity: 0.3;
  animation: heroDotFloat 13s ease-in-out infinite 1s;
}
.hero-dot--5 {
  width: 3px; height: 3px;
  top: 75%; right: 35%;
  opacity: 0.2;
  animation: heroDotFloat 10s ease-in-out infinite 3s reverse;
}

@keyframes heroDotFloat {
  0%, 100% { transform: translateY(0) translateX(0); }
  33%       { transform: translateY(-14px) translateX(6px); }
  66%       { transform: translateY(8px) translateX(-8px); }
}

