/* ============================================================
   HERO MOBILE — премиум мобильная версия
   v10 FINAL — чистая, без наслоений
   ============================================================ */

/* ============================================================
   ПЛАНШЕТ (≤1100px)
   ============================================================ */
@media (max-width: 1100px) {
  .hero__top-actions {
    position: absolute;
    top: 32px;
    right: 32px;
    z-index: 10;
  }
  .hero__more {
    position: absolute;
    bottom: 45px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
  }
}

/* ============================================================
   МОБИЛЬНАЯ ВЕРСИЯ (≤768px)
   ============================================================ */
@media (max-width: 1024px) {

  :root { --hero-bottom-bar: 72px; }

  /* ── Секция ── */
  .hero {
    display: block;
    position: relative;
    min-height: 100dvh;
    height: 100dvh;
    overflow: hidden;
    background: #14140F;
  }

  /* ── ФОТО — фон ── */
  .hero__zone--photo {
    position: absolute;
    inset: 0;
    margin: 0;
    z-index: 1;
  }
  .hero__zone--photo,
  .hero__media,
  .hero__media img {
    object-position: center 35% !important;
    background-position: center 35% !important;
  }

  /* Сильный градиент снизу — фундамент под текст */
  .hero__zone--photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg,
        rgba(0,0,0,0.25) 0%,
        rgba(0,0,0,0) 25%,
        rgba(0,0,0,0) 45%,
        rgba(20,20,15,0.55) 65%,
        rgba(20,20,15,0.92) 100%);
    z-index: 2;
    pointer-events: none;
  }

  /* ── ВИДЕО — скрыто ── */
  .hero__zone--video { display: none !important; }
  .hero__more { display: none !important; }

  /* ── ТЕКСТ — поверх фото ── */
  .hero__zone--text {
    position: relative;
    z-index: 5;
    padding: 16px 20px calc(var(--hero-bottom-bar) + 20px);
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
  }

  /* ── ШАПКА ── */
  .hero__header { margin-bottom: 0; }

  .hero__menu-btn {
    color: #fff;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 16px;
  }
  .hero__menu-btn:hover { background: rgba(255,255,255,0.25); }
  .hero__menu-icon span { background: #fff; }
  .hero__menu-label { display: inline; color: #fff; font-size: 12px; }

  .hero__nav-btn {
    color: #fff;
    border-color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 13px;
    padding: 9px 18px;
  }
  .hero__nav-btn:hover { background: #fff; color: #14140F; }

  .hero__brand { display: none; }

  /* ── СЛАЙДЫ — контейнер ── */
  .hero__slides {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin: 0;
    min-height: 0;
    position: relative;
  }

  .hero__slide,
  .hero__slide.is-active {
    position: relative;
    inset: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  /* ── ЗАГОЛОВОК — без плашки, белый, с тенью ── */
  .hero__title {
    background: transparent;
    color: #fff;
    font-weight: 700;
    font-size: clamp(30px, 8.5vw, 40px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    padding: 0;
    margin: 0 0 10px;
    border-radius: 0;
    box-shadow: none;
    align-self: flex-start;
    text-shadow: 0 2px 16px rgba(0,0,0,0.5);
    max-width: 100%;
  }
  .hero__title span { display: block; }

  /* Лаймовый акцент на втором слове/em/strong */
  .hero__title em,
  .hero__title strong,
  .hero__title .accent {
    color: #C5F056;
    font-style: normal;
    font-weight: inherit;
  }

  /* ── ПОДЗАГОЛОВОК — строкой, без плашки ── */
  .hero__subtitle {
    display: block;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    color: rgba(255,255,255,0.88);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    padding: 0;
    margin: 0 0 18px;
    max-width: 100%;
    text-shadow: 0 1px 8px rgba(0,0,0,0.6);
    align-self: flex-start;
  }

  /* ── CTA — лайм, на всю ширину ── */
  .hero__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    align-self: stretch;
    margin: 0 0 16px;
    padding: 17px 28px;
    background: #C5F056;
    color: #14140F;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: 999px;
    box-shadow:
      0 10px 30px rgba(197,240,86,0.25),
      0 4px 12px rgba(0,0,0,0.3);
    transition: all .25s ease;
  }
  .hero__cta:hover {
    background: #B8E445;
    transform: translateY(-2px);
  }
  .hero__cta svg { color: #14140F; }

  /* ── НАВИГАЦИЯ СЛАЙДЕРА: стрелки + точки в одну линию ── */
  .hero__nav {
    position: static;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: none;
    gap: 16px;
    margin: 0 0 16px;
    padding: 0;
    flex: 0 0 auto;
  }

  .hero__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.08);
    color: #fff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 50%;
    flex-shrink: 0;
    transition: all .25s ease;
  }
  .hero__arrow:hover {
    background: #C5F056;
    border-color: #C5F056;
    color: #14140F;
  }

  .hero__dots {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
  }
  .hero__dot {
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.35);
    border-radius: 50%;
    transition: all .25s ease;
  }
  .hero__dot.is-active {
    width: 24px;
    border-radius: 999px;
    background: #C5F056;
  }

  /* ============================================================
     БЕЙДЖ OFFER — белая капсула + лайм-таблетка
     ============================================================ */
  .hero__media .hero__offer {
    position: absolute;
    top: 76px;
    bottom: auto;
    left: 16px;
    right: auto;
    width: auto;
    max-width: calc(100% - 32px);
    padding: 7px 14px 7px 7px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
  }
  .hero__media .hero__offer::before { display: none; }

  .hero__media:not(.is-active) .hero__offer { opacity: 0; }
  .hero__media.is-active .hero__offer {
    opacity: 1;
    pointer-events: auto;
  }

  .hero__offer-label {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    margin: 0;
    background: #C5F056;
    color: #14140F;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 999px;
    flex-shrink: 0;
    text-shadow: none;
    opacity: 1;
  }

  .hero__offer-value {
    font-size: 12px;
    font-weight: 600;
    color: #14140F;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: none;
  }

  /* ============================================================
     НИЖНЯЯ ПЛАШКА: телефон + лайм-кнопка звонка
     ============================================================ */
  .hero__top-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    height: var(--hero-bottom-bar);
    padding: 0 16px;
    background: rgba(20,20,15,0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 8;
    border-top: 1px solid rgba(255,255,255,0.06);
  }

  .hero__phone {
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    letter-spacing: 0.01em;
    text-shadow: none;
    white-space: nowrap;
  }

  .hero__call-btn {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
    font-size: 13px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 999px;
    white-space: nowrap;
    transition: all .25s ease;
  }
  .hero__call-btn:hover {
    background: #B8E445;
    transform: translateY(-2px);
  }
}

/* ============================================================
   МЕЛКАЯ МОБИЛКА (≤380px)
   ============================================================ */
@media (max-width: 380px) {
  .hero__title {
    font-size: clamp(26px, 7.5vw, 32px);
  }
  .hero__subtitle {
    font-size: 13px;
    margin-bottom: 14px;
  }
  .hero__cta {
    padding: 15px 24px;
    font-size: 15px;
  }
  .hero__arrow {
    width: 38px;
    height: 38px;
  }
  .hero__menu-btn,
  .hero__nav-btn {
    font-size: 12px;
    padding: 8px 14px;
  }
  .hero__phone { font-size: 14px; }
  .hero__call-btn { font-size: 12px; padding: 9px 16px; }
  .hero__media .hero__offer {
    top: 70px;
    padding: 6px 12px 6px 6px;
  }
  .hero__offer-label { font-size: 8.5px; padding: 3px 8px; }
  .hero__offer-value { font-size: 11px; }
}

/* ============================================================
   ФИКС СЛАЙДЕРА: все слайды одинаково спозиционированы
   ============================================================ */
@media (max-width: 1024px) {

  /* Контейнер — позиционирует слайды абсолютно */
  .hero__slides {
    position: relative !important;
    flex: 1 1 auto !important;
    display: block !important;
    min-height: 0 !important;
  }

  /* ВСЕ слайды — одинаково, друг над другом */
  .hero__slide {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    align-items: flex-start !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s ease;
    pointer-events: none;
  }

  /* Активный — виден */
  .hero__slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
  }
}

/* ============================================================
   SAFE-AREA для iPhone с челкой/Dynamic Island
   ============================================================ */
@media (max-width: 1024px) {
  .hero__zone--text {
    padding-top: calc(env(safe-area-inset-top, 0px) + 20px) !important;
  }
  .hero__top-actions {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
}

/* ============================================================
   ПЛАНШЕТЫ В ПОРТРЕТЕ (640–1024px) — больше воздуха
   ============================================================ */
@media (min-width: 640px) and (max-width: 1024px) {
  .hero__zone--text {
    padding: 
      calc(env(safe-area-inset-top, 0px) + 40px) 
      48px 
      calc(var(--hero-bottom-bar) + 40px) !important;
    gap: 28px;
  }
  .hero__title { font-size: clamp(48px, 7vw, 72px) !important; line-height: 1.05; }
  .hero__subtitle { font-size: 18px !important; max-width: 560px; }
  .hero__cta { 
    width: auto !important; 
    align-self: flex-start;
    padding: 22px 44px !important;
    font-size: 17px !important;
  }
  .hero__nav { max-width: 380px; }
  .hero__media .hero__offer { 
    top: 110px !important; 
    left: 48px !important; 
    font-size: 14px;
  }
  .hero__top-actions { padding: 0 36px env(safe-area-inset-bottom, 0px) !important; }
}

/* ============================================================
   КРУПНЫЕ МОБИЛКИ (430–639px) — iPhone Pro Max, Plus
   ============================================================ */
@media (min-width: 430px) and (max-width: 639px) {
  .hero__zone--text {
    padding: 
      calc(env(safe-area-inset-top, 0px) + 28px) 
      28px 
      calc(var(--hero-bottom-bar) + 28px) !important;
  }
  .hero__title { font-size: 40px !important; }
  .hero__subtitle { font-size: 15px !important; }
}
