/* =========================
   HERO
   ========================= */

.hero {
  position: relative;
  padding: 168px 0 0;
  overflow: hidden;
}

.hero__container {
  position: relative;
  z-index: 2;
}

/* Main Grid */
.hero__main {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 50px;
  align-items: center;
}

/* Content */
.hero__content {
  display: flex;
  flex-direction: column;
  gap: 18px; /* было больше — сближаем блоки */
}

/* =========================
   TITLE
   ========================= */

.hero__title {
  margin: 0;
  font-size: 58px;
  font-weight: var(--font-black);
  line-height: 1.08;
  letter-spacing: -1.4px;
  color: var(--primary-dark);
  font-family: var(--font-display);
}

/* вторая строка — логическое продолжение заголовка */
.hero__title-fue {
  margin-top: 2px;              /* ⬅ минимальный отступ */
  font-size: 46px;              /* −14% от 58px */
  font-weight: var(--font-extrabold); /* ⬅ на 1 ступень ниже */
  line-height: 1.08;            /* одинаковый ритм с H1 */
  letter-spacing: -1px;
  font-family: var(--font-display);
  color: var(--primary-dark);

  background: linear-gradient(135deg, var(--primary), var(--accent-hover));
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Subtitle */
.hero__subtitle {
  margin: 6px 0 0; /* отделяем уже как следующий смысловой блок */
  font-size: var(--text-xl);
  line-height: 1.6;
  color: var(--text-soft);
}

.hero__subtitle strong {
  color: var(--primary);
  font-weight: var(--font-extrabold);
}

/* =========================
   HIGHLIGHTS
   ========================= */

.hero__highlights {
  display: flex;
  flex-direction: row-reverse;
  gap: 16px;
  margin-top: 12px;
}

.hero__highlight {
  flex: 1;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(31, 138, 112, 0.38),
    rgba(31, 138, 112, 0.22)
  );
  border: 1px solid rgba(31, 138, 112, 0.48);
  text-align: center;
}

.hero__highlight--narrow {
  flex: 0.82;
}

.hero__highlight-title {
  font-size: var(--text-xl);
  font-weight: var(--font-black);
  color: var(--primary-dark);
  font-family: var(--font-display);
  line-height: 1.05;
}

.hero__highlight-title--single,
.hero__highlight-sub--single {
  white-space: nowrap;
}

.hero__highlight-sub {
  margin-top: 6px;
  font-size: var(--text-sm);
  color: rgba(0, 0, 0, 0.72);
  font-weight: var(--font-semibold);
  line-height: 1.2;
}

/* =========================
   CTA
   ========================= */

.hero__cta {
  display: flex;
  margin-top: 10px;
}

.hero__cta--center {
  justify-content: center;
}

.hero__cta .btn {
  padding: 16px 30px;
  font-size: calc(var(--text-base) + 2px);
  border-radius: 999px;
}

/* =========================
   Visual
   ========================= */

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__image {
  width: 100%;
  background: #fff;
  border-radius: var(--radius-20);
  overflow: hidden;
  border: 2px solid rgba(31, 138, 112, 0.12);
  box-shadow:
    0 20px 60px rgba(27, 67, 50, 0.15),
    0 8px 24px rgba(17, 24, 39, 0.08);
}

.hero__image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 980px) {
  .hero {
    padding: 100px 0 0;
  }

  .hero__main {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__title {
    font-size: 42px;
  }

  .hero__title-fue {
    font-size: 36px;
  }

  .hero__highlights {
    flex-direction: column;
  }

  .hero__highlight--narrow {
    flex: 1;
  }
}

@media (max-width: 640px) {
  .hero__title {
    font-size: 36px;
  }

  .hero__title-fue {
    font-size: 31px;
  }

  .hero__subtitle {
    font-size: var(--text-base);
  }

  .hero__cta .btn {
    width: 100%;
  }
}
