/* ===== Mini-normalize для FITNESS PARTY (hero) ===== */

/* Базовый box-sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* * {
  outline: 1px solid red;
} */

/* Обнуляем отступы, базовые настройки */
html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  width: 100%;
  overflow-x: clip;
  scroll-padding-top: 100px;
}

html {
  scrollbar-gutter: stable both-edges;

}

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Regular.woff2") format("woff2"),
    url("../fonts/Inter-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-VariableFont_wght.woff2") format("woff2"),
    url("../fonts/Montserrat-VariableFont_wght.woff") format("woff");
  font-weight: 100 900;
  /* диапазон для variable */
  font-style: normal;
  font-display: swap;
}

/* Базовое тело */
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.1;
  font-weight: 400;
}

/* Заголовки и параграфы — без дефолтных отступов */
h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

/* Списки — без маркеров и отступов */
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Ссылки — без подчёркивания и дефолтного цвета */
a {
  color: inherit;
  text-decoration: none;
}

/* Кнопки — чистые, без рамок/фона браузера */
button {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

/* Картинки — адаптивно и без «дырок» */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Базовый фокус, потом можно переопределить под дизайн */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid currentColor;
}

:root {
  --c-dark: rgba(33, 36, 42, 1);
  --c-pink: rgba(255, 53, 189, 1);
  --c-bg-dark: rgba(30, 37, 47, 1);

  --pad-in: 50px;
  --pad-bl: 80px;
}

.fm-50 {
  font-family: "Montserrat", sans-serif;
  font-size: 50px;
  font-weight: 500;
}

.fm-22 {
  font-family: "Montserrat", sans-serif;
  font-size: 22px;
}

.fm-28 {
  font-family: "Montserrat", sans-serif;
  font-size: 28px;
  font-weight: 500;
}

.fi-22 {
  font-size: 22px;
}

.fi-18 {
  font-size: 18px;
}

.u-only-1023,
.u-only-767 {
  display: none;
}

.u-hide-1023,
.u-hide-767 {
  display: block;
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--c-bg-dark);
}

.nav-mobile--open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-mobile__inner {
  position: relative;
  background: var(--c-bg-dark);
  color: #fff;
  padding: 15px var(--pad-in);
  display: flex;
  flex-direction: column;
  gap: 25px;
  width: 100%;
  justify-content: flex-start;
  margin-bottom: auto;
}

.nav-mobile__list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: center;
}

.nav-mobile__close {
  position: relative;
 align-self: center;

  width: 25px;
  height: 25px;

  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.nav-mobile__close-line {
  position: absolute;
  left: 50%; /* Изменяем с left: 0 на left: 50% */
  top: 50%;
  
  width: 35px; /* Оставляем правильную ширину 35px */
  height: 3px;
  
  background: var(--c-pink);
  transform-origin: center;
  /* Добавляем смещение назад на половину ширины */
  transform: translate(-50%, -50%);
}

.nav-mobile__close-line:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.nav-mobile__close-line:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.nav-mobile__phone {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 42px;
  min-width: 290px;
  max-width: 395px;
  margin:12px auto;
  background: linear-gradient(90deg, #AA39C2 -26.9%, #FF66C4 49.23%);
  border-radius: 22px;

}

.nav-mobile__messengers {
  display: flex;
  gap: 25px;
  justify-content: center;
  align-items: center;
}

.nav-mobile__icon {
  width: 42px;
  height: 42px;
}

.container {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding-inline: var(--pad-in);
}

.header {
  position: fixed;
  top: 13px;
  left: 0;
  width: 100%;
  z-index: 99;
}

.header__fixed {
  display: flex;
  justify-content: center;
  width: 100%;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;

  width: 100%;
  max-width: calc( 1920px - var(--pad-in) * 2);
  margin-inline: var(--pad-in);
  padding-inline: 20px;
  height: 80px;

  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(50px);
  border-radius: 50px;
  color: #fff;
  transition: background-color 0.25s ease, backdrop-filter 0.25s ease;
}

.header__inner.is-out-hero {
  background-color: #2F394F;
}


.header .nav__list {
  display: flex;
  gap: 25px;
}

.nav__link {
  transition: color 0.3s ease;
}

.nav__link:hover {
  color: var(--c-pink);
}

.hero__container {
  position: relative;
  display: flex;
  flex-direction: column;
  background-image: url("../img/bg-hero.png");
  background-size: cover;
  background-position:  center bottom -35px;
  height: 100vh;
  min-height: 500px;
  color: #fff;
  background-color: var(--c-dark);
}

.hero__main {
  margin-block: auto;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.hero__title {
  max-width: 640px;
}

.hero__text {
  max-width: 551px;
}

/* ===========================
   BASE BUTTON
   =========================== */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  width: fit-content;
  padding: 10px 25px;

  border-radius: 50px;
  border: none;

  color: #fff;
  text-decoration: none;

  overflow: hidden;
  cursor: pointer;

  transition: background 0.4s ease, color 0.3s ease;
}

/* Текст — на всякий случай, если захотим модифицировать отдельно */
.btn__text {
  display: inline-block;
}

/* Декор справа */
.btn__decor {
  position: relative;
  width: 35px;
  height: 35px;
  flex-shrink: 0;
}

.btn__circle {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.41);
  transition: box-shadow 0.3s ease;
}

/* ===========================
   VARIANT: PRIMARY GRADIENT
   =========================== */

.btn--primary {
  background: linear-gradient(90deg, #aa39c2 -26.9%, #ff66c4 49.23%);
}

.btn--primary:hover {
  background: linear-gradient(90.01deg, #ff66c4 39.55%, #aa39c2 75.23%);
}

.btn--primary:hover .btn__circle {
  box-shadow: inset 0px 4px 4px rgba(0, 0, 0, 0.25);
}

/* ===========================
   MOD: SHINE (AUTO, EVERY 5s)
   =========================== */

.btn--shine::before {
  content: "";
  position: absolute;
  top: 0;
  height: 100%;
  width: 80px;

  background: linear-gradient(120deg,
      rgba(255, 255, 255, 0) 30%,
      rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0) 70%);

  left: -150px;
  opacity: 0.5;

  animation: btnShine 5s ease-out infinite;
  pointer-events: none;
}

@keyframes btnShine {
  0% {
    left: -150px;
  }

  10% {
    left: 110%;
  }

  100% {
    left: 110%;
  }
}

.hero-messengers {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: var(--pad-in);
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.hero-messengers__icon {
  width: 42px;
  height: 42px;
}

.hero-messengers__item {
  transition: transform 0.3s ease;
}

.hero-messengers__item:hover {
  transform: scale(1.05);
}

/* ===========================
   DOT ICON (общий компонент)
   =========================== */

/* Контейнер 55×55 */
.dot-icon {
  position: relative;
  width: 55px;
  height: 55px;
  flex-shrink: 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Пульсация, если нужна */
.dot-icon--pulse {
  animation: dotPulse 3s ease-out infinite;
}

/* Внутренний круг 35×35 с градиентом */
.dot-icon__circle {
  position: relative;
  z-index: 2;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(170, 57, 194, 0.9) 2%,
      rgba(170, 57, 194, 0.8) 7%,
      rgba(170, 57, 194, 0.7) 10%,
      rgba(170, 57, 194, 0.6) 12%,
      rgba(255, 255, 255, 0.41) 100%);
  transition: background 0.3s ease;
}

.hero-actions__item:hover .dot-icon__circle {
  background: #fff;
}

/* Кольцо */
.dot-icon__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.35);
  z-index: 1;
}

/* Пульсация: кольцо загорается -> весь dot-icon пульсирует -> кольцо гаснет */
@keyframes dotPulse {

  /* базовое состояние */
  0% {
    transform: scale(1);
    opacity: 1;
  }

  0%,
  12% {
    /* кольцо 0.35 */
    /* (через альфу цвета бордера) */
  }

  /* кольцо включается ДО пульса */
  12% {
    opacity: 1;
  }

  18% {
    opacity: 1;
  }

  /* пульсация точки (в этот период кольцо должно быть 1) */
  18% {
    transform: scale(1);
  }

  26% {
    transform: scale(1.05);
  }

  34% {
    transform: scale(1);
  }

  /* кольцо гаснет ПОСЛЕ пульса */
  42% {
    transform: scale(1);
  }

  /* пауза до следующего цикла */
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* управление кольцом через ту же анимацию (один timeline) */
.dot-icon--pulse .dot-icon__ring {
  animation: ringInSameTimeline 3s ease-out infinite;
}

@keyframes ringInSameTimeline {

  0%,
  12% {
    border-color: rgba(255, 255, 255, 0.35);
  }

  18%,
  34% {
    border-color: rgba(255, 255, 255, 1);
  }

  42%,
  100% {
    border-color: rgba(255, 255, 255, 0.35);
  }
}

.hero-actions {
  position: absolute;
  left: 50%;
  bottom: 38px;
  transform: translateX(-50%);
  /* центрируем сам блок */

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding-inline: var(--pad-in);
  width: 100%;
  /* ширина по контенту */
}

.hero-actions__item {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
}





@media (max-width: 1599px) {}

@media (max-width: 1439px) {}

@media (max-width: 1279px) {
  .logo__icon {
    width: 181px;
    height: auto;
  }

  .nav__list.fi-18 {
    font-size: 16px;
  }

  .dot-icon {
    width: 50px;
    height: 50px;
  }

  .dot-icon__circle {
    width: 30px;
    height: 30px;
  }

  .hero__title {
    width: 360px;
  }

  .hero__text {
    width: 360px;
  }

  .hero-actions.fi-22 {
    font-size: 18px;
  }
 
}

@media (max-width: 1023px) {
  :root {
    --pad-in: 15px;
    --pad-bl: 50px;
  }

  .u-hide-1023 {
    display: none;
  }

  .u-only-1023 {
    display: flex;
  }

  .burger {
    flex-direction: column;
    gap: 12.5px;
    justify-content: center;
    align-items: center;
  }

  .burger__line {
    width: 30px;
    height: 2px;
    background-color: var(--c-pink);
  }

  .hero__container {
    background-position: 15% 50%;
  }

  .dot-icon {
    width: 40px;
    height: 40px;
  }

  .dot-icon__circle {
    width: 24px;
    height: 24px;
  }

  .hero-actions.fi-22 {
    font-size: 16px;
  }

  .hero-actions__item {
    gap: 5px;
  }

  .btn__text.fm-22 {
    font-size: 18px;
  }

}

@media (max-width: 767px) {
   :root {
    --pad-bl: 25px;
  }
  .u-hide-767 {
    display: none;
  }

  .u-only-767 {
    display: flex;
  }

  .btn__text.fm-22 {
    font-size: 16px;
  }
/* =========================
   HERO (<=767): фон + bg-position 0 130px + высота картинки = 1.10 * vw
   Заголовок сверху, текст/кнопка/actions — под картинкой
   ========================= */

.section-hero .hero__container {
  background-color: rgba(30, 37, 47, 1);

  /* картинка та же, просто смещаем */
  --hero-bg-top: 130px;
  --hero-img-h: calc(100vw * 1.1);

  background-image: url("../img/bg-hero-pad.png");
  background-repeat: no-repeat;

  /* высоту задаём, ширина — авто (по пропорциям), справа обрежется */
  background-size: auto var(--hero-img-h);
  background-position: 0 var(--hero-bg-top);

  height: auto;

  display: flex;
  flex-direction: column;
}

/* hero__main: обычный поток, БЕЗ padding-top */
.section-hero .hero__main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

/* заголовок остаётся сверху */
.section-hero .hero__title {
  position: absolute;
  top: 113px;
  left: 50%;
  transform: translateX(-50%);

  margin: 0;
  text-align: center;
  font-size: 27px;
  max-width: 330px;

  z-index: 2;
  pointer-events: none;
}


/* уводим вниз ТОЛЬКО контент после заголовка */
.section-hero .hero__text {
  margin: 0;
  margin-top: calc(var(--hero-bg-top) + var(--hero-img-h) + 24px);
  text-align: center;
  max-width: 560px;
  padding-inline: var(--pad-in);
}

/* кнопка под текстом */
.section-hero .hero__btn {
  margin: 0 auto;
  text-align: center;
}

/* actions под hero__main (они у тебя отдельным блоком) */
.section-hero .hero-actions {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 5px;

  margin-top: 25px;
  margin-bottom: 15px;

    left: auto;
  bottom: auto;
  transform: none;
}
.hero-actions__item {
  flex-direction: column;
  gap: 5px;
  align-items: center;
  text-align: center;
}


}

@media (max-width: 424px) {
  .section-hero .hero-actions {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;

  margin-top: 22px;
  margin-bottom: 15px;

    left: auto;
  bottom: auto;
  transform: none;
}
.hero-actions__item {
  flex-direction: row;
  gap: 5px;
  align-items: center;
  text-align: start;
}
}

@media (max-width: 379px) {
  .header__inner {
    height: 60px;
  }

  .logo__icon {
    width: 150px;
    height: auto;
  }
  .section-hero .hero__container {
  --hero-bg-top: 110px;
  }
  .section-hero .hero__title {
  top: 90px;
  font-size: 22px;
  }
  .section-hero .hero__text {
 font-size: 16px;
  padding-inline: var(--pad-in);
  max-width: 290px;
}
}
