@font-face {
    font-family: "Heebo";
    src: url('./fonts/Heebo-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Heebo";
    src: url('./fonts/Heebo-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Heebo";
    src: url('./fonts/Yantramanav-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/**
  Нормализация блочной модели
 */
*,
::before,
::after {
  box-sizing: border-box;
}

/**
  Убираем внутренние отступы слева тегам списков,
  у которых есть атрибут class
 */
:where(ul, ol):where([class]) {
  padding-left: 0;
}

/**
  Убираем внешние отступы body и двум другим тегам,
  у которых есть атрибут class
 */
body,
:where(blockquote, figure, fieldset):where([class]) {
  margin: 0;
}

/**
  Убираем внешние отступы вертикали нужным тегам,
  у которых есть атрибут class
 */
:where(
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  ul,
  ol,
  dl
):where([class]) {
  margin-block: 0;
}

:where(dd[class]) {
  margin-left: 0;
}

:where(fieldset[class]) {
  padding: 0;
  border: none;
}

/**
  Убираем стандартный маркер маркированному списку,
  у которого есть атрибут class
 */
:where(ul[class]) {
  list-style: none;
}

:where(address[class]) {
  font-style: normal;
}

/**
  Обнуляем вертикальные внешние отступы параграфа,
  объявляем локальную переменную для внешнего отступа вниз,
  чтобы избежать взаимодействие с более сложным селектором
 */
p {
  --paragraphMarginBottom: 24px;

  margin-block: 0;
}

/**
  Внешний отступ вниз для параграфа без атрибута class,
  который расположен не последним среди своих соседних элементов
 */
p:where(:not([class]):not(:last-child)) {
  margin-bottom: var(--paragraphMarginBottom);
}


/**
  Упрощаем работу с изображениями и видео
 */
img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

/**
  Наследуем свойства шрифт для полей ввода
 */
input,
textarea,
select,
button {
  font: inherit;
}

input[type="number"] {
  appearance: textfield;
}

select {
  appearance: none;
  background-image: none;
}

html {
  /**
    Пригодится в большинстве ситуаций
    (когда, например, нужно будет "прижать" футер к низу сайта)
   */
  height: 100%;
  /**
    Убираем скачок интерфейса по горизонтали
    при появлении / исчезновении скроллбара
   */
  scrollbar-gutter: stable;
  /**
    Плавный скролл
   */
  scroll-behavior: smooth;
}

body {
  /**
    Пригодится в большинстве ситуаций
    (когда, например, нужно будет "прижать" футер к низу сайта)
   */
  min-height: 100%;
  /**
    Унифицированный интерлиньяж
   */
  line-height: 1.5;
}

/**
  Нормализация высоты элемента ссылки при его инспектировании в DevTools
 */
a:where([class]) {
  display: inline-flex;
}

/**
  Курсор-рука при наведении на элемент
 */
button,
label {
  cursor: pointer;
}

/**
  Убирает серую подсветку при тапе на мобильных устройствах (iOS/Android)
 */
button {
  -webkit-tap-highlight-color: transparent;
}

/**
  Приводим к единому цвету svg-элементы
  (за исключением тех, у которых уже указан
  атрибут fill со значением 'none' или начинается с 'url')
 */
:where([fill]:not(
  [fill="none"],
  [fill^="url"]
)) {
  fill: currentColor;
}

/**
  Приводим к единому цвету svg-элементы
  (за исключением тех, у которых уже указан
  атрибут stroke со значением 'none')
 */
:where([stroke]:not(
  [stroke="none"],
  [stroke^="url"]
)) {
  stroke: currentColor;
}

/**
  Чиним баг задержки смены цвета при взаимодействии с svg-элементами
 */
svg * {
  transition-property: fill, stroke;
}

/**
  Приведение рамок таблиц в классический 'collapse' вид
 */
:where(table) {
  border-collapse: collapse;
  border-color: currentColor;
}

/**
  Удаляем все анимации и переходы для людей,
  которые предпочитают их не использовать
 */
@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:root{
    --color-dark: #000;
    --color-dark-alternate: #121619;
    --color-light: #fff;
    --color-dark-gray: #404040;
    --color-light-gray: #c4c4c4;
    --border-radius: 30px;
    --border: 1px solid var(--color-light);
    --font-family-base: "Heebo", sans-serif;
    --font-family-accent: "Yantramanav", sans-serif;
    --input-height: 54px;
    --container-width: 1300px;
    --container-padding-x: 15px;
    --transition-duration: .2s;
    --header-height: 90px;

}

body{
    font-family: var(--font-family-base);
    color: var(--color-light-gray);
    font-size: 16px;
    line-height: 1.75;
    background-color: var(--color-dark);
}

svg *[fill] {
  fill: currentColor;
}

svg *[stroke] {
  fill: currentColor;
}

a,button,textarea,svg *{
    transition-duration: var(--transition-duration);

}

a{
    color: var(--color-light);
    text-decoration: none;
}

a:hover{
    color: var(--color-light-gray);
}

p{
  margin-block: 0;
}

p:not(:last-child){
  margin-bottom: 24px;
}

.container{
    max-width: calc(var(--container-width) + var(--container-padding-x) * 2 );
    margin-inline: auto;
    padding-inline: var(--container-padding-x);
}

.container-wide{
  max-width: 1920px;
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  border: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
  clip-path: inset(100%) !important;
  clip: rect(0 0 0 0) !important;
  overflow: hidden !important;
}

h1, h2, h3, h4, h5, h6{
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-light);
}

.title-medium{
  font-size: clamp(20px, 2.08vw, 40px);
  line-height: 1.3;
}

.title-big{
  font-size: clamp(24px, 3.12vw, 60px);
}

.section-description{
  font-size: 20px;
  line-height: 1.65;
  text-transform: uppercase;
  color: var(--color-light);
  text-align: center;
}

.backdrop-title{
  position: relative;
  z-index: 2;
}

.backdrop-title.centered::after{
  top: -0.25em;
  left: 50%;
  translate: -50% 0;
}

.backdrop-title::before{
  content: "";
  display: block;
  position: absolute;
  right: calc(100% + 8px);
  width: 26px;
  aspect-ratio: 1;
  line-height: 1;
    background: url(./icons/plus.svg) center/contain no-repeat;
}

.backdrop-title::after{
  font-family: var(--font-family-accent);
  content: attr(data-title);
  position: absolute;
  z-index: -1;
  top: -0.3em;
  left: -0.6em;
  color: transparent;
  line-height: 1;
  font-size: 2.8em;
  -webkit-text-stroke: 1px var(--color-dark-gray);
}

.button{
    display: inline-flex;
    height: 38px;
    align-items: center;
    padding-inline: 26px;
    font-size: 12px;
    font-weight: 700;
    line-height: 2;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    background-color: var(--color-light);
    border: none;
    white-space: nowrap;
    border-radius: var(--border-radius);
}

.button.transparent{
  position: relative;
  height: var(--input-height);
  padding-inline: 31px 80px;
  background-color: transparent;
  border: var(--border);
  color: var(--color-light);  
}

.button.transparent::after{
  content: "";
  position: absolute;
  height: 100%;
  aspect-ratio: 1;
  background: url("./icons/arrow-top-right.svg") center/70% no-repeat;
  border: var(--border);
  border-radius: 50%;
  right: 0;
}

.button.transparent:hover{
  color: var(--color-dark);
}

.input{
  height: var(--input-height);
  padding-inline: 25px;
  width: 100%;
  background-color: transparent;
  border: var(--border);
  border-color: var(--color-dark-gray);
  border-radius: var(--border-radius);
  color: var(--color-light);
}

.button:hover{
    background-color: var(--color-light-gray);
}

header{
    display: flex;
    background-color: var(--color-dark-alternate);
    justify-content: space-between;
    align-items: center;
    column-gap: 20px;
    padding-inline: 32px;
}

.header-logo{
    flex-shrink: 0;
}

.header-menu-list{
    display: flex;
    column-gap: 50px;
    flex-wrap: wrap;
}

.header-menu-link{
    display: inline-flex;
    height: var(--header-height);
    align-items: center;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1.2px;
}

.header-actions{
    display: flex;
    column-gap: 40px;
}

.header-menu-link.is-current::after{
    content: "";
    width: 5px;
    aspect-ratio: 1;
    border-radius: 50%;
    background-color: currentColor;
    margin-left: 7px; 
}

.header-burger-button{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    aspect-ratio: 1;
    background-color: transparent;
    border: var(--border);
    border-radius: 50%;
}

.header-burger-button svg path {
    stroke: var(--color-light);
}

.banner{
    display: flex;
    justify-content: end;
    flex-direction: column;
    padding: 36px 70px;
    min-height: calc(100vh - var(--header-height));
    color:var(--color-light);
    background-color:var(--color-dark-alternate);
}

.banner-body{
    text-transform: uppercase;
}

.banner-info{
    display: flex;
    align-items: end;
    font-size: clamp(16px, 1.56vw, 30px);
    line-height: 1.27;
    font-weight: 700;
}

.banner-info::before{
    content: "";
    width: clamp(60px, 10.1vw, 194px);
    aspect-ratio: 1;
    margin-right: 30px;
    background: url("./icons/bold-arrow-down-right.png") center/contain no-repeat;
}

.banner-title{
    font-size: min(18.75vw, 360px);
    line-height: 1;
}

.banner-pagination-list{
    display: flex;
    justify-content: center;
}

.banner-pagination-item{
    display: flex;
}

.banner-pagination-button{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 7px;
    background-color: transparent;
    border: none;
}

.banner-pagination-button::after{
    content: "";
    width: 10px;
    aspect-ratio: 1;
    border:var(--border);
    border-radius: 50%;
    transition-duration: var(--transition-duration);
}

.banner-pagination-button.is-current::after{
    background-color: var(--color-light);
}

.banner-pagination-button:not(.is-current):hover::after{
    border-color: var(--color-light-gray);
}

.motivation-item:nth-child(even){
  background-color: var(--color-dark-alternate);
}

.motivation-item:nth-child(even) .motivation-card{
  flex-direction: row-reverse;
}

.motivation-card{
  display: flex;
  justify-content: start;
  align-items: center;
  column-gap: clamp(30px, 10.42vw, 200px);
}

.motivation-card-image{
  margin-block: -60px;
}

.motivation-card-body{
  padding-left: 35px;
}

.motivation-card-title:not(:last-child){
  margin-bottom: 14px;

}

.motivation-card-description{
  max-width: 400px;
}

.motivation-card-description:not(:last-child){
  margin-bottom: 73px;
}


.training-types{
  padding-inline: 50px;
  padding-top: 70px;
  padding-bottom: 120px;
  position: relative;
  background-color: var(--color-dark);
}

.training-type-list{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 60px;
}

.training-types-item{
  --trainingTypesItemBgIconSize: 80px;
  padding-top: var(--trainingTypesItemBgIconSize);
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 32px;
  /* background: url(./icons/transparent-wrrow-bottom-left.svg) 100% 0/var(--trainingTypesItemBgIconSize) no-repeat; */
}

.training-types-item-title{
  font-size: 16px;

}

.training-types-image {
  width: 150px;
  height: 140px;
  object-fit: contain;
}

.join-us-video-wrapper{
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 150px 30px;
  background: url('./images/join-us-bg.jpg') center/cover no-repeat var(--color-dark-alternate);
}

.join-us-video{
  width: 100%;
  max-width: 960px;
  height: auto;
}

.join-us-video-play-button{
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 200px;
  aspect-ratio: 1;
  column-gap: 4px;
  background-color: transparent;
  border: var(--border);
  border-radius: 50%;
  font-size: 24px;
  font-weight: 700;
  color: var(--color-light);
  text-shadow: 2px 2px 10px #232323;
  text-transform: uppercase;
}

.join-us-video-play-button::after{
  content: '';
  width: 26px;
  aspect-ratio: 1;
  background: url('./icons/arrow-top-right.svg') center/contain no-repeat;
  transition-duration: var(--transition-duration);
}

.join-us-video-play-button:hover::after{
  filter: invert();
}

.join-us-video-play-button:hover{
  color: var(--color-dark);
  text-shadow: 2px 2px 100px #888888;
  background-color: var(--color-light-gray);
}

.join-us-body{
  padding-bottom: 150px;
}

.join-us-title{
  position: relative;
  font-size: clamp(64px, 9.37vw, 180px);
  line-height: 1;
  margin-top: -0.4em;
  text-align: center;
}

.join-us-title::after{
  content: '';
  height: 0.7em;
  display: inline-block;
  background: url("icons/bold-arrow-down-right.png") center/contain no-repeat;
  scale: 1 -1;
  margin-left: 0.14em;
  aspect-ratio: 1;
}

.join-us-title:not(:last-child){
  margin-bottom: 130px;
}

.join-us-form-header{
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 7px;
  background-color: var(--color-dark);
}

.join-us-form-header:not(:last-child){
  margin-bottom: 52px;
}

.join-us-form-title{
  padding-bottom: 20px;
}

.join-us-form-body{
  display: flex;
  justify-content: center;
  column-gap: 20px;
}

.join-us-form-input{
  max-width: 400px;
}

.input::placeholder{
  color: var(--color-light-gray);
}

.input:hover{
  border-color: var(--color-light);
}

.input:focus{
  color: var(--color-dark);
  background-color: var(--color-light-gray);
  outline: none;
}

.location{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.location-map-image{
  height: auto;
}

.location-body{
  padding: 80px 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.location-title:not(:last-child){
  margin-bottom: 14px;
}

.location-description:not(:last-child){
  margin-bottom: 37px;
}

.location-description{
  max-width: 490px;
}



.family{
  background-color: var(--color-dark-alternate);
}

.family-header{
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 132px;
  row-gap: 7px;
  padding-bottom: 62px;
  text-align: center;
}

.family-body{
  display: flex;
  justify-content: center;
  column-gap: 26px;
  scroll-snap-type: x mandatory;
  overflow-x: scroll;
}

.family-image{
  scroll-snap-align: start;
}

.calculate{
  background-color: var(--color-dark-alternate);
  padding-block: 146px;
}

.calculate-inner{
  display: flex;
  align-items: center;
  column-gap: 36px;
}

.calculate-body{
  flex-grow: 1;
  max-width: 620px;
}

.calculate-title:not(:last-child){
  margin-bottom: 16px;
}

.calculate-description{
  max-width: 385px;
}

.calculate-form-body{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 30px;
}

.calculate-input.wide{
  grid-column: -1/1;
}

.calculate-form:not(:last-child){
  margin-bottom: 26px;
}

.calculate-description:not(:last-child){
  margin-bottom: 30px;
}

.calculate-table-wrapper{
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 610px;
}

.calculate-table-wrapper::before{
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: 100%;
  aspect-ratio: 1;
  background-color: var(--color-dark);
  border-radius: 50%;
}

.calculate-table{
  position: relative;
  border-collapse: collapse;
}

.calculate-table :is(td, th){
  padding-right: 30px;
}

.calculate-table :is(td, th):not(:first-child){
  padding-left: 30px;
}

.calculate-table :is(td, th):not(:last-child){
  border-right: 1px solid var(--color-light-gray);
}

.calculate-table tbody td {
  border-top: 1px solid var(--color-light-gray);
}

.calculate-table tbody tr:last-child td:first-child{
  position: relative;
}

.calculate-table tbody tr:last-child td:first-child::after{
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 70%;
  height: 1px;
  background-color: var(--color-light-gray);
}

.calculate-table th{
  padding-block: 20px;
  text-align: left;
  text-transform: uppercase;
  color: var(--color-light);
}

.calculate-table td{
  padding-block: 14px;
}

.calculate-table tfoot{
  color: var(--color-light);
}

.calculate-table tfoot td{
  padding-top: 33px;
  padding-bottom: 0;
}

.footer {
  --foterLogoWidth: 20.77%;
}

.footer-main{
  padding-top: 140px;
  padding-bottom: 160px;
}

.footer-header,
.footer-body {
  display: grid;
  column-gap: 62px;
}

.footer-header{
  background-color: var(--color-dark);
  grid-template-columns: var(--foterLogoWidth) auto;
}

.footer-logo-img{
  height: auto;
}

.footer-header:not(:last-child){
  margin-bottom: 60px;
  padding: 0;
}

.footer-description{
  text-align: left;
}

.footer-body{
  display: grid;
  grid-template-columns: var(--foterLogoWidth) repeat(3, 1fr);
}

.footer-column-title{
  font-size: clamp(18px, 1.15vw, 22px);
}

.footer-column-title:not(:last-child){
  margin-bottom: 15px;
}

.footer-column-title.has-arrow::after{
  content: "";
  content: '';
  height: 0.74em;
  display: inline-block;
  background: url("icons/bold-arrow-down-right.png") center/contain no-repeat;
  scale: -1 1;
  margin-left: 0.5em;
  aspect-ratio: 1;

}

.footer-schedule:not(:last-child){
  margin-bottom: 13px;
}

.footer-address:not(:last-child){
  margin-bottom: 35px;
}

.footer-subscribe{
  position: relative;
}

.footer-subscribe:not(:last-child){
  margin-bottom: 50px;
}

.footer-subscribe-input{
  padding-right: 70px;
}

.footer-subscribe-button{
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  aspect-ratio: 1;
  background: url("./icons/arrow-top-right.svg") center/70% no-repeat;
  border: var(--border);
  border-radius: 50%;
}

.footer-subscribe-button:hover{
  background-color: var(--color-light-gray);
}

.footer-soc1als-list{
  display: flex;
  column-gap: 18px;
}

.footer-soc1als-link{
  display: flex;
  width: 23px;
}


.footer-extra{
  padding-block: 15px;
  background-color: var(--color-dark-alternate);
}

.footer-copyright{
  font-size: 14px;
}

@media (max-width: 1919px){
  .motivation-card-image{
    margin-block: -20px;
  }
}

@media (max-width: 1280px){
  .training-type-list{
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px){
    .header{
        flex-wrap: wrap;
        padding-top: 20px;
        row-gap: 10px;
        padding-inline: 20px;
    }

    .header-menu{
        order: 1;
        flex-basis: 100%;
    }
    
    .header-menu-link{
        height: 50px;
    }

    .banner{
        row-gap: 20px;
    }

    .motivation-card{
      padding-block: 50px;
    }

    .motivation-card-image{
      max-width: 30%;
      height: auto;
      margin-block: 0;
    }

    .join-us-title:not(:last-child){
      margin-bottom: 80px;
    }

    .join-us-body{
      padding-bottom: 80px;
    }

    .location{
      display: flex;
      flex-direction: column-reverse;
    }

    .family-image{
      height: 360px;
}
    .calculate{
      padding-block: 100px;
    }

    .calculate-form-body{
      grid-template-columns: 1fr;
    }

    .calculate-inner{
      column-gap: 10px;
    }

    .calculate-button{
      width: 100%;
    }

    .calculate-table :is(td, th){
      padding-block: 10px;
    }

    .calculate-table tfoot td{
      padding-top: 10px;
    }

    .footer-main{
      padding-top: 80px;
      padding-bottom: 50px;
    }

    .footer-header{
      display: flex;
      flex-direction: column;
      justify-content: start;
      row-gap: 30px;
    }

    .footer-body{
      grid-template-columns: repeat(2, 1fr);
      row-gap: 30px;
    }
}

@media (max-width: 767px){  
    .header{
        padding-top: 10px;
    }

    .header-menu-list{
        column-gap: 24px;
    }

    .header-menu-link{
        height: 32px;
    }

    .banner{
        padding-inline: 15px;
    }

    .header-actions{
        column-gap: 15px;
    }

    .banner-info{
        margin-bottom: 5px;
    }

    .banner-info::before{
        margin-right: 10px;
    }

    .motivation-card{
      flex-direction: column-reverse;
      padding-block: 30px;
      row-gap: 30px;
    }

    .motivation-item:nth-child(even) .motivation-card{
      flex-direction: column-reverse;
    }

    .motivation-card-image{
      max-width: 60%;
    }

    .motivation-card-description:not(:last-child){
      max-width: 300px;
      margin-bottom: 16px;
    }

    .button{
        padding-inline: 18px;
    }

    .training-type-list{
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .training-types{
  margin-inline: auto;
  padding-top: 30px;
  padding-bottom: 60px;
  position: relative;
  background-color: var(--color-dark);
}

  .training-type-list{
    row-gap: 10px;
  }

  .training-types-item{
    padding-top: 30px;
    row-gap: 16px;
  }

  .training-types-image{
    max-width: 120px;
  }

  .join-us-video-play-button{
    width: 140px;
  }

  .join-us-title:not(:last-child){
      margin-bottom: 40px;
    }

    .section-description{
      font-size: 16px;
    }

    .join-us-form-body{
      flex-direction: column;
      row-gap: 20px;
      align-items: center;
    }

    .location-description:not(:last-child){
      margin-bottom: 20px;
    }

    .family-body{
      column-gap: 12px;
    }

    .family-header{
      padding-top: 80px;
      padding-bottom: 50px;
    }

    .family-image{
      height: 180px;
}
    .calculate-inner{
      flex-direction: column;
      row-gap: 30px;
    }

    .calculate{
      padding-block: 60px;
    }

    .calculate-table-wrapper::before{
      display: none;
    }

    .footer-header:not(:last-child){
      margin-bottom: 30px;
    }

    .footer-main{
      padding-top: 50px;
    }

    .footer-body{
      grid-template-columns: 1fr;
    }

    .footer-subscribe-button:not(:last-child){
      margin-bottom: 40px;
    }
}
