/* ===============================
   HERO SECTION STYLES
   =============================== */

/* Общие правила доступности */
.hero__cta-btn,
.calculator-submit,
.header__callback-btn,
.footer__callback-btn {
  min-height: 48px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #0579c3 100%);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.hero__cta-btn:focus-visible {
  outline: var(--focus-outline-white);
  outline-offset: var(--focus-offset-sm);
  box-shadow: var(--focus-box-shadow);
}

/* ===============================
   ОСНОВНЫЕ СТИЛИ HERO
   =============================== */

.hero {
  display: flex;
  align-items: center;
  position: relative;
  padding: 5vw 0 8vw 0;
  min-height: 50vh;
  contain: layout;
  background-color: #f6fafb;
}

@media (min-width: 768px) {
  .hero {
    background-image: url('../img/fon.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
}

.hero__container {
  width: 80vw;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero__content {
  width: 50vw;
  display: flex;
  flex-direction: column;
  gap: 2.5vw;
}

/* ===============================
   ЗАГОЛОВОК
   =============================== */

.hero__title {
  font-size: 4vw;
  font-weight: 900;
  line-height: 1.15;
  color: var(--color-text);
  margin: 0 0 2.3vw 0;
}

/* ===============================
   ПОДЗАГОЛОВОК С ТОЧКАМИ
   =============================== */

.hero__subtitle {
  display: flex;
  align-items: flex-start;
  gap: 1vw;
  margin-bottom: 0.9vw;
}

.hero__subtitle-dots {
  display: flex;
  flex-direction: row;
  gap: 0.3vw;
  margin-top: 0.5vw;
}

.hero__dot {
  width: 0.4vw;
  height: 0.4vw;
  background-color: transparent;
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  display: block;
  min-width: 6px;
  min-height: 6px;
}

.hero__subtitle-text {
  font-size: 1.3vw;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text);
  margin: 0;
}

.hero__accent {
  color: var(--color-primary);
  font-weight: 700;
  position: relative;
}

.hero__accent::after {
  content: '';
  position: absolute;
  bottom: -0.1vw;
  left: 0;
  width: 100%;
  height: 0.1vw;
  background-image: repeating-linear-gradient(
    to right,
    var(--color-primary) 0,
    var(--color-primary) 0.3vw,
    transparent 0.3vw,
    transparent 0.6vw
  );
}

/* ===============================
   БЛОК С ПРЕИМУЩЕСТВАМИ
   =============================== */

.hero__offers {
  display: flex;
  flex-direction: row;
  gap: 2vw;
  margin-bottom: 2vw;
}

.hero__offer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1vw;
  flex: 1;
  text-align: left;
}

.hero__offer-icon {
  width: 2vw;
  height: 2vw;
  color: var(--color-primary);
  flex-shrink: 0;
  filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.3));
  min-width: 20px;
  min-height: 20px;
}

.hero__offer-icon-img {
  width: 100%;
  height: 100%;
  display: block;
}

.hero__offer-text {
  font-size: 1vw;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.4;
  max-width: 12vw;
  text-align: left;
}

/* ===============================
   КНОПКА CTA
   =============================== */

.hero__cta-btn {
  width: 25vw;
  height: 5.2vw;
  background-color: var(--color-primary);
  color: white;
  border: none;
  border-radius: 0.8vw;
  font-size: 1.1vw;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1vw;
  padding: 0 2vw;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.hero__cta-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 70%
  );
  transform: translateX(-100%) translateY(-100%);
  transition: transform 0.6s ease;
}

.hero__cta-btn:hover,
.hero__cta-btn:focus {
  background-color: var(--color-primary-hover);
  transform: translateY(-0.2vw);
  box-shadow: 0 0.8vw 2vw rgba(255, 140, 0, 0.4);
}

.hero__cta-btn:hover::before,
.hero__cta-btn:focus::before {
  transform: translateX(100%) translateY(100%);
}

.hero__cta-icon {
  width: 1.25vw;
  height: 1.25vw;
  flex-shrink: 0;
  min-width: 16px;
  min-height: 16px;
}

.hero__cta-text {
  line-height: 1.2;
  text-align: center;
}
/* ===============================
   АДАПТИВНОСТЬ
   =============================== */

/* Планшеты и маленькие десктопы */
@media (max-width: 1200px) {
    .hero__container {
      width: 85vw;
    }

    .hero__content {
      width: 55vw;
    }

    .hero__title {
      font-size: 5vw;
    }
  }

/* Планшеты */
@media (max-width: 768px) {
    .hero {
      padding: 8vw 0;
      background-attachment: scroll;
    }

    .hero__container {
      width: 90vw;
    }

    .hero__content {
      width: 85vw;
      gap: 4vw;
    }

    .hero__title {
      font-size: 8vw;
      margin-bottom: 4vw;
    }

    .hero__subtitle {
      gap: 2vw;
      margin-bottom: 2vw;
    }

    .hero__subtitle-dots {
      gap: 0.8vw;
      margin-top: 1vw;
    }

    .hero__dot {
      width: 1vw;
      height: 1vw;
      border-width: 3px;
    }

    .hero__subtitle-text {
      font-size: 3vw;
    }

    .hero__offers {
      flex-direction: column;
      gap: 3vw;
      margin-bottom: 4vw;
    }

    .hero__offer {
      flex-direction: row;
      gap: 2vw;
    }

    .hero__offer-icon {
      width: 3vw;
      height: 3vw;
      min-width: 12px;
      min-height: 12px;
    }

    .hero__offer-text {
      font-size: 2.5vw;
      max-width: none;
    }

    .hero__cta-btn {
      width: 60vw;
      height: 12vw;
      font-size: 2.5vw;
      gap: 2vw;
      border-radius: 2vw;
    }

    .hero__cta-icon {
      width: 3vw;
      height: 3vw;
      min-width: 12px;
      min-height: 12px;
    }
  }

/* Телефоны */
@media (max-width: 480px) {
    .hero {
      padding: 10vw 0;
    }

    .hero__container {
      width: 95vw;
    }

    .hero__content {
      width: 90vw;
      gap: 5vw;
    }

    .hero__title {
      font-size: 9vw;
      margin-bottom: 5vw;
      line-height: 1.05;
    }

    .hero__subtitle {
      gap: 2.5vw;
      margin-bottom: 2.5vw;
    }

    .hero__subtitle-dots {
      gap: 1vw;
      margin-top: 1.2vw;
    }

    .hero__dot {
      width: 1.2vw;
      height: 1.2vw;
      border-width: 3px;
      min-width: 4px;
      min-height: 4px;
    }

    .hero__subtitle-text {
      font-size: 3.5vw;
      line-height: 1.25;
    }

    .hero__offers {
      gap: 4vw;
      margin-bottom: 5vw;
    }

    .hero__offer {
      gap: 2.5vw;
    }

    .hero__offer-icon {
      width: 4vw;
      height: 4vw;
      min-width: 16px;
      min-height: 16px;
    }

    .hero__offer-text {
      font-size: 3vw;
    }

    .hero__cta-btn {
      width: 70vw;
      height: 14vw;
      font-size: 3vw;
      gap: 2.5vw;
      border-radius: 2.5vw;
      min-height: 44px;
    }

    .hero__cta-icon {
      width: 4vw;
      height: 4vw;
      min-width: 16px;
      min-height: 16px;
    }
  }

/* Маленькие телефоны */
@media (max-width: 360px) {
    .hero {
      padding: 8vw 0;
    }

    .hero__content {
      width: 95vw;
    }

    .hero__title {
      line-height: 1.1;
    }

    .hero__subtitle-text {
      font-size: 3.8vw;
    }

    .hero__offers {
      gap: 5vw;
    }

    .hero__offer-text {
      font-size: 3.5vw;
    }

    .hero__cta-btn {
      width: 80vw;
      height: 16vw;
      font-size: 3.5vw;
      gap: 3vw;
      border-radius: 3vw;
      min-height: 48px;
      padding: 3vw 4vw;
      -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
    }

    .hero__cta-icon {
      width: 5vw;
      height: 5vw;
      min-width: 18px;
      min-height: 18px;
    }
  }