/* ============================================================
   HERO5 — стили сайта (пересобрано 27.09.2026, версия 2)

   Оригинальный css/main.css прошлого сайта HERO5.io в веб-архив не попал.
   Этот файл написан заново под реальную разметку index.html.
   Визуальные принципы бренда: тёмный фон, крупная типографика,
   золотые акценты #d3b682 / #DAA520 / #FFD700.
   ============================================================ */

:root {
  --bg: #0b0b0d;
  --bg-2: #131317;
  --bg-3: #1b1b21;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f2f2f4;
  --muted: #9c9ca8;
  --gold: #d3b682;
  --gold-2: #daa520;
  --gold-3: #ffd700;
  --radius: 16px;
  --radius-lg: 24px;
  --max: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--gold-3); }
button { font: inherit; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- типографика ---------- */
h1, h2, h3, h4 { margin: 0 0 16px; line-height: 1.16; font-weight: 700; letter-spacing: -0.02em; }
h1, .intro-content__title { font-size: clamp(34px, 6vw, 68px); }
h2, .title { font-size: clamp(26px, 4.2vw, 44px); }
h3 { font-size: clamp(18px, 2.2vw, 26px); }
h4 { font-size: 18px; }
p { margin: 0 0 14px; color: var(--muted); }
.gold, .text-gold { color: var(--gold-3); }
.black { color: #111; }
.gold-card { border-color: rgba(218, 165, 32, 0.45) !important; }
.orange-card { border-color: rgba(255, 160, 60, 0.35) !important; }

section { padding: clamp(44px, 7vw, 96px) 0; }

/* ---------- шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(11, 11, 13, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header .container { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.header nav { flex: 0 0 auto; }
.nav-list { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; }
.nav-link { color: var(--muted); font-size: 15px; white-space: nowrap; }
.nav-link:hover { color: var(--text); }

.header-logo { flex: 0 0 auto; margin: 0 auto; }
.header-logo img { height: 32px; width: auto; }

.header-right { flex: 0 0 auto; display: flex; align-items: center; gap: 14px; }
.header-social__media { display: flex; gap: 10px; }
.social-media img { width: 20px; height: 20px; opacity: 0.7; }
.social-media:hover img { opacity: 1; }
.right-box { display: flex; align-items: center; gap: 10px; }
.open-menu__btn { display: none; flex-direction: column; gap: 4px; background: none; border: 0; padding: 8px; cursor: pointer; }
.open-menu__btn .line { display: block; width: 20px; height: 2px; background: var(--muted); }

.header-right__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border: 1px solid transparent; border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #14100a !important; font-weight: 700; font-size: 15px; white-space: nowrap;
  cursor: pointer;
}
.header-right__btn img { width: 18px; height: 18px; filter: brightness(0.2); }
.header-right__btn:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(218, 165, 32, 0.26); }

/* ---------- hero ---------- */
.intro {
  position: relative; overflow: hidden;
  padding-top: clamp(56px, 9vw, 120px);
  background: radial-gradient(900px 420px at 50% -10%, rgba(211, 182, 130, 0.18), transparent 70%), var(--bg);
}
.intro-content { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.intro-content > img { height: 56px; width: auto; margin-bottom: 22px; }
.intro-content__title { margin-bottom: 18px; }

/* декоративные плашки hero */
.animation-elements { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.falling-element, .falling-image {
  position: absolute; opacity: 0.85;
  animation: h5-float 8s ease-in-out infinite;
}
/* ВАЖНО: .animation-img__card висит и на декоративных картинках, и на карточках
   контента (about-us). Абсолютное позиционирование здесь давало схлопнутый грид,
   поэтому карточки оставляем в потоке, а двигаем только их картинки. */
.animation-img__card { position: relative; }
.falling-element {
  padding: 6px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; white-space: nowrap;
  border: 1px solid var(--line);
}
.falling-element.black  { background: rgba(255,255,255,0.04); color: var(--text); }
.falling-element.white  { background: rgba(255,255,255,0.10); color: #fff; }
.falling-element.gold   { background: rgba(218,165,32,0.16);  color: var(--gold-3); border-color: rgba(218,165,32,0.4); }
.falling-element.orange { background: rgba(255,150,60,0.14);  color: #ffb570; border-color: rgba(255,160,60,0.32); }
.falling-image img, .animation-img__card img { width: 42px; opacity: 0.6; }

.falling-element:nth-child(1)  { top: 10%; left: 6%; }
.falling-element:nth-child(2)  { top: 24%; left: 22%; }
.falling-element:nth-child(3)  { top: 58%; left: 9%; }
.falling-element:nth-child(4)  { top: 76%; left: 26%; }
.falling-element:nth-child(5)  { top: 14%; right: 9%; }
.falling-element:nth-child(6)  { top: 34%; right: 20%; }
.falling-element:nth-child(7)  { top: 62%; right: 8%; }
.falling-element:nth-child(8)  { top: 80%; right: 24%; }
.falling-element:nth-child(9)  { top: 46%; left: 44%; }
.falling-element:nth-child(10) { top: 88%; left: 48%; }
.falling-element:nth-child(11) { top: 6%; left: 36%; }
.falling-element:nth-child(12) { top: 90%; right: 40%; }
.falling-element:nth-child(13) { top: 52%; left: 2%; }
.falling-element:nth-child(14) { top: 40%; right: 3%; }
@keyframes h5-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- секция "Hero5 — это" ---------- */
.about-us__title { text-align: center; margin-bottom: 34px; }
.about-us-content { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.about-us-cards {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.about-us__card {
  padding: 22px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--bg-2);
  max-width: none !important;
}
.about-us-card__duble { display: flex; gap: 18px; }
.about-us-card__duble > * { flex: 1 1 0; min-width: 0; }
.about-us-card__img { margin-bottom: 14px; }
.about-us-card__img img { width: 44px; height: 44px; }
.about-us-card__title { font-weight: 700; color: var(--text); font-size: 17px; }

/* ---------- финансовый статус ---------- */
.financial-status__content { max-width: 760px; margin-bottom: 34px; }
.financial-status__text { font-size: 17px; }
.swiper-btns { display: flex; gap: 10px; margin-top: 8px; }
.swiper-btn {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); cursor: pointer;
}
.swiper-btn img { width: 18px; opacity: 0.8; }

.financial-status__items {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin-bottom: 40px;
}
.financial-status__item {
  padding: 20px 14px; text-align: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
}
.financial-status__item-title { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.financial-status__item-price { font-size: 26px; font-weight: 800; color: var(--text); margin: 6px 0 4px; }
.financial-status__item-content { font-size: 12px; color: var(--muted); }

/* Шаги «как это работает» — горизонтальная карусель.
   Изначально 30 карточек выстраивались в ряд и растягивали страницу до 7000+ px,
   поэтому здесь ограниченный по ширине контейнер с прокруткой и стрелками. */
.financial-status__slider {
  display: flex; flex-wrap: nowrap; gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
  padding-bottom: 10px;
}
.financial-status__slider .swiper-slide {
  flex: 0 0 clamp(240px, 30vw, 320px); scroll-snap-align: start;
  padding: 0;
}
.financial-status__step-card {
  height: 100%; padding: 20px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2);
}
.financial-status__step-card__text { margin: 0; padding-left: 18px; list-style: disc; }
.financial-status__step-card__text li { margin-bottom: 7px; font-size: 14px; color: var(--muted); }
.financial-status__step-card__header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.financial-status__step-card__step { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.financial-status__step-card__icon img { width: 26px; height: 26px; }
.financial-status__step-card__title { font-weight: 700; color: var(--text); font-size: 17px; }
.financial-status__step-card__body { font-size: 14px; color: var(--muted); }
.financial-status__step-card__text { font-size: 14px; color: var(--muted); }

/* ---------- чем отличается ---------- */
.hero5-comparison .container { display: block; }
.hero5-comparison .title { max-width: 820px; }
.hero5-comparison__cards { display: grid; gap: 18px; margin-top: 28px; }
.hero5-comparison__duble-card {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.hero5-comparison__card {
  position: relative; overflow: hidden;
  padding: 24px; border: 1px solid var(--line);
  border-radius: var(--radius-lg); background: var(--bg-2);
  max-width: none !important;
}
.hero5-comparison__card-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.hero5-comparison__card-title { margin: 0; font-size: clamp(18px, 2vw, 23px); }
.hero5-comparison__card-info { font-size: 15px; color: var(--muted); margin: 0; }
.hero5-comparison__card-img-bg { position: absolute; right: 16px; bottom: 16px; width: 56px; opacity: 0.16; }
.hero5-comparison__card-img img { width: 40px; }
.hero5-comparison__card .plus-btn,
.plus-btn {
  margin-left: auto; width: 34px; height: 34px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 10px; background: transparent; cursor: pointer;
}
.plus-btn img { width: 16px; }
/* Блок событий — та же слайдер-разметка, поэтому тоже горизонтальная лента */
.hero5-comparison__soon-slider {
  display: flex; flex-wrap: nowrap; gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; padding-bottom: 10px;
}
.hero5-comparison__soon-slider .swiper-slide {
  flex: 0 0 clamp(280px, 42vw, 460px); scroll-snap-align: start;
  padding: 24px; border: 1px solid var(--line);
  border-radius: var(--radius-lg); background: var(--bg-2);
}
.hero5-comparison__soon-title { font-size: 19px; color: var(--gold-3); margin-bottom: 10px; }
.hero5-comparison__soon-text { font-size: 15px; color: var(--muted); }
.hero5-comparison__soon-soon {
  display: inline-block; margin-bottom: 12px; padding: 5px 12px;
  border: 1px solid rgba(218,165,32,0.45); border-radius: 999px;
  background: rgba(218,165,32,0.12); color: var(--gold-3);
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
/* кнопка-ссылка в блоке событий */
.orange-btn, .sale-btn, .hero5-comparison__soon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; margin-top: 8px;
  border: 1px solid transparent; border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #14100a !important; font-weight: 700; font-size: 15px;
}
.orange-btn:hover, .sale-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(218,165,32,0.26); }
.orange-btn img, .sale-btn img { width: 18px; height: 18px; filter: brightness(0.2); }
/* страховка: декоративные картинки не растягиваются на всю ширину */
.animation-img, .falling-image img, .hero5-comparison__card-img-bg, .hero5-comparison__card-img img {
  max-width: 64px; height: auto;
}

/* ---------- удобства приложения ---------- */
.application-conveniences__media-img { margin: 0 auto 30px; max-width: 280px; }
.application-conveniences .swiper-slide {
  padding: 22px; border: 1px solid var(--line);
  border-radius: var(--radius-lg); background: var(--bg-2); height: auto;
}
.test__title { font-size: 19px; font-weight: 700; color: var(--text); margin-bottom: 8px; }

/* ---------- отзывы и нетворкинг ---------- */
.business-networking { background: var(--bg-2); }
.business-networking__map { margin-bottom: 26px; }
.business-networking__users {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.business-networking__user {
  padding: 22px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--bg);
}
.business-networking__user-img { margin-bottom: 14px; }
.business-networking__user-img img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.business-networking__user-name { font-weight: 700; color: var(--text); }
.business-networking__user-status { font-size: 13px; color: var(--gold); margin-bottom: 10px; }
.business-networking__user-content { font-size: 14px; color: var(--muted); }
.business-networking__user-info { font-size: 14px; color: var(--muted); }
.business-networking__user-bottom { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }

/* карточки-переворот.
   Высота задаётся карточке: лицевые и обратные стороны лежат абсолютно,
   иначе грид схлопывается в нулевую высоту. */
.flip-card { perspective: 1000px; height: 320px; }
.flip-card__inner { position: relative; width: 100%; height: 100%; transition: transform 0.6s; transform-style: preserve-3d; }
.flip-card:hover .flip-card__inner { transform: rotateY(180deg); }
.flip-card__front, .flip-card__back {
  position: absolute; inset: 0; padding: 22px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg);
  backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden;
}
.flip-card__back { transform: rotateY(180deg); background: var(--bg-3); }
.flip-card__front-img img, .flip-card__back-img img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; margin-bottom: 12px; }
.flip-card__name, .flip-card__back-name { font-weight: 700; color: var(--text); }
.flip-card__status, .flip-card__back-status { font-size: 13px; color: var(--gold); margin-bottom: 8px; }
.flip-card__text, .flip-card__back-text { font-size: 14px; color: var(--muted); }
.flip-card__back-info { font-size: 14px; color: var(--muted); }
.flip-card__back-header, .flip-card__info, .flip-card__text-wrapper { margin-bottom: 8px; }
.mobile-info-block { display: none; }

/* ---------- слайдер Swiper ---------- */
.swiper { overflow: hidden; }
.swiper-wrapper { display: flex; }
.swiper-slide { flex: 0 0 auto; }
.swiper-container { position: relative; }
.swiper-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.swiper-pagination-bullet { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.25); display: inline-block; }
.swiper-pagination-bullet-active { background: var(--gold); }

/* ---------- подвал ---------- */
.footer { padding: 46px 0 34px; border-top: 1px solid var(--line); background: var(--bg); }
.footer .container { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.footer-list { display: flex; flex-wrap: wrap; gap: 18px; margin: 0; padding: 0; list-style: none; }
.footer-link, .footer-item a { color: var(--muted); font-size: 14px; }
.footer-social { display: flex; gap: 12px; }
.footer-social__icon img { width: 22px; height: 22px; opacity: 0.7; }

/* ---------- модалки ---------- */
.betatest__wrap, .betatest2__wrap, .dialog, .modal {
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: center; justify-content: center; padding: 20px;
  background: rgba(0, 0, 0, 0.74);
}
.betatest__wrap.is-open, .betatest2__wrap.is-open, .dialog.is-open, .modal.is-open { display: flex; }
.betatest__wrap > *, .betatest2__wrap > *, .dialog > *, .modal > * {
  width: 100%; max-width: 520px; padding: 26px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-2);
}

/* ---------- служебное ---------- */
[data-aos] { opacity: 1 !important; transform: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (max-width: 980px) {
  .header nav { display: none; }
  .open-menu__btn { display: flex; }
  .header-logo { margin: 0; }
  .header .container { justify-content: space-between; }
}
@media (max-width: 700px) {
  /* на узком экране шапка должна умещаться целиком */
  .header .container { gap: 8px; padding: 0 12px; }
  .header-logo img { height: 24px; }
  .header-social__media { display: none; }
  .header-right { gap: 8px; }
  .header-right__btn { padding: 0 12px; min-height: 38px; font-size: 13px; }
  .header-right__btn img { width: 15px; height: 15px; }
  .header-right__btn span { font-size: 13px; }
  .right-box { gap: 6px; }
  .about-us-card__duble { flex-direction: column; }
  .falling-element { display: none; }
  section { padding: 36px 0; }
  .intro-content__title { font-size: clamp(30px, 9vw, 42px); }
}
