.hero{
  position: relative;
  overflow: hidden;
  min-height: clamp(560px, 92svh, 900px);
  background: linear-gradient(180deg, #ffffff 0%, #f6f7fb 100%);
  padding: clamp(18px, 3vw, 26px) 0;
}

.hero__bg{
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__bg-video{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__container{
  position: relative;
  z-index: 1;
  height: 100%;
}

.hero__inner{
  min-height: clamp(560px, 92svh, 900px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

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

.hero__content{
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-bottom: 6px;
}

.hero__row--1{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.logo__img{
  width: auto;
  height: clamp(34px, 4.2vw, 52px);
  max-width: min(220px, 38vw);
  object-fit: contain;
}

.hero-contacts{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-contacts__item{
  font-size: 14px;
  color: var(--muted);
  padding: 6px 8px;
  border-radius: 10px;
}

.hero-contacts__item--email{
  font-family: var(--font-family);
  font-weight: 300;
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 111%;
  text-transform: uppercase;
  text-align: right;
  color: var(--white);
}
.hero-contacts__item--phone{
  font-family: var(--font-family);
  font-weight: 600;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 111%;
  text-align: right;
  color: var(--white);
}

.hero-contacts__item:hover{
  color: var(--main-light);
}

.hero-contacts__btn {
    cursor: pointer;
    border: none;
    gap: 8px;
    display: flex;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 171%;
    color: var(--white);
    border-radius: 600px;
    padding: 8px 14px;
    width: 102px;
    height: 40px;
    background: rgba(255, 255, 255, 0.22);
    align-items: center;
    justify-content: center;
    transition: border-color .35s ease, background-color .35s ease;
}

.hero-contacts__btn:hover {
    border: 1px solid var(--main-light);
    background: rgba(255, 255, 255, 0);
}

.hero__row--2 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
}

.hero__row--2::before,
.hero__row--2::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 1px;
  background: rgba(255, 255, 255, 0.24);
}

.hero__row--2::before {
  top: 0;
}

.hero__row--2::after {
  bottom: 0;
}

.menu__list{
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 0;
}

.menu{
  position: relative;
  width: 100%;
  display: flex;
  justify-content: stretch;
}

.menu__toggle{
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.menu__burger{
  display: none;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  padding: 10px 12px;
  border-radius: 12px;
  color: white;
  background: transparent ;
}

.menu__burger-lines{
  width: 22px;
  height: 16px;
  position: relative;
}

.menu__burger-lines::before{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 1px;
  height: 2px;
  border-radius: 2px;
  background: white;
  box-shadow: 0 6px 0 white, 0 12px 0 white;
}

.menu__burger-label{
  font-size: 14px;
  font-weight: 700;
  color: white;
}

.menu__overlay{
  display: none;
}

.menu__close-item{
  display: none;
}

.menu__close{
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.menu__close::before,
.menu__close::after{
  content: "";
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-dark);
}

.menu__close::before{
  transform: rotate(45deg);
}

.menu__close::after{
  transform: rotate(-45deg);
}

.menu__link{
  font-family: var(--font-family);
  font-weight: 400;
  font-size: clamp(13px, 1vw, 15px);
  line-height: 160%;
  text-transform: uppercase;
  color: var(--white);
  flex: 1 1 0;
  text-align: center;
}

.menu__link:hover{
  color: var(--main-light);
}

.menu__sublist{
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
}

.menu__sublink{
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.35;
  color: var(--text-dark);
  text-decoration: none;
  display: block;
}

.menu__sub-toggle{
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  appearance: none;
}

.menu__sub-head{
  display: none;
}

.menu__sub-trigger{
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  min-height: 44px;
  cursor: pointer;
  border-radius: 12px;
  color: inherit;
}

.menu__sub-arrow{
  display: block;
  width: 8px;
  height: 8px;
  margin-top: -3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s ease, margin .2s ease;
}

@media (min-width: 769px){
  .menu__item--has-children .menu__sub-toggle,
  .menu__item--has-children .menu__sub-trigger{
    display: none;
  }

  .menu__item--has-children .menu__sub-head{
    display: contents;
  }

  .menu__item--has-children .menu__sublist{
    display: none !important;
  }
}

.hero__row--3{
  display: grid;
  /* Ограничиваем ширину треков, чтобы 2 карточки выглядели по центру */
  grid-template-columns: repeat(2, minmax(0, 560px));
  gap: 20px;
  justify-content: center;
  width: 100%;
  max-width: 1140px; /* 560 + 560 + gap(20) */
  margin: 0 auto;
  transform: translateY(-20%);
  align-items: baseline;
}

.hero-card{
  width: 100%;
  max-width: 560px;
  justify-self: center;
}

.hero-card__grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
}

.hero-card__title{
  font-family: var(--font-family);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 110%;
  color: var(--main-light);
}

.hero-card__title span{
  color: var(--white);
}

.hero-card__btn {
  border: none;
  border-radius: 600px;

  /* адаптивные отступы */
  padding: clamp(12px, 1vw, 16px) clamp(20px, 2vw, 32px);

  /* убираем жесткие width/height */
  min-height: clamp(44px, 5vw, 56px);
  width: fit-content;

  background: linear-gradient(116deg, #00ddce 0%, #01b6c0 57.69%, #017eac 100%);

  font-family: var(--font-family);
  font-weight: 600;

  /* адаптивный текст */
  font-size: clamp(12px, 0.9vw, 14px);
  line-height: 1.4;

  text-transform: uppercase;
  color: var(--white);

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

.hero-card__btn:hover {
  background: linear-gradient(116deg, #00ddce 0%, #01b6c0 26.84%, #017eac 56.97%);
}

.hero-card__right{
  color: var(--muted);
  font-size: 14px;
}

.hero-card__text {
  margin: 0;
  font-family: var(--font-family);
  font-weight: 300;
  font-size: 22px;
  line-height: 120%;
  color: var(--white);
}

.hero-card__text.hero-card__text--right {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.59);
  max-width: 358px;
}

.hero-card--right {
  width: max-content;
}

.hero__row--4{
  /* Блок снизу фиксируем через flex-рост среднему */
  margin-top: 0;
}

.bottom-block{
  display: flex;
      align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
}

.bottom-block__left{
  display: flex;
  align-items: center;
  gap: 14px;
}

.bottom-block__icon{
  color: var(--primary);
}

.bottom-block__text {
  margin: 0;
  font-family: var(--font-family);
  font-weight: 300;
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.2;
  color: var(--white);
}

.bottom-block__right {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 20px);
  flex-wrap: wrap; /* важно для мобилок */
}

.counter__value {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1.1;
  color: var(--white);
}

.bottom-block__subtext {
  margin: 0;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.3;
  color: var(--white);
}

@media (max-width: 1200px){
  .menu__list{
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .hero__row--3{
    grid-template-columns: 1fr;
  }
  .hero-card__grid{
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px){
  .hero{
    min-height: clamp(480px, 88svh, 760px);
  }
  .hero__inner{
    min-height: clamp(480px, 88svh, 760px);
  }
  .hero__row--1{
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-contacts{
    justify-content: flex-start;
  }
  .hero__row--2{
    flex-direction: column;
    align-items: flex-start;
  }

  .menu__burger{
    display: flex;
  }

  .menu__overlay{
    display: block;
    position: fixed;
    inset: 0;
    background: color-mix(in srgb, var(--main-dark) 52%, transparent);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    z-index: 25;
  }

  .menu__toggle:checked ~ .menu__overlay{
    opacity: 1;
    pointer-events: auto;
  }

  .menu__list{
    position: fixed;
    top: 0;
    left: 0;
    height: 100dvh;
    max-height: 100vh;
    width: min(90vw, 360px);
    background: var(--menu-mobile-bg);
    border: none;
    box-shadow: 8px 0 40px color-mix(in srgb, #000 35%, transparent);
    padding-top: calc(56px + 5vh);
    padding-bottom: clamp(16px, 4vh, 28px);
    padding-left: 20px;
    padding-right: 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(-105%);
    transition: transform .25s ease;
    z-index: 30;
  }

  .menu__toggle:checked ~ .menu__list{
    transform: translateX(0);
  }

  .menu__close-item{
    display: block;
    position: absolute;
    top: calc(12px + 2vh);
    right: 20px;
    padding: 0;
    margin: 0;
    list-style: none;
    z-index: 35;
  }

  .menu__link{
    flex: 0 0 auto;
    width: 100%;
    text-align: left;
    white-space: normal;
    font-size: 16px;
    padding: 12px 12px;
    border-radius: 14px;
    color: color-mix(in srgb, var(--white) 92%, var(--main-light));
  }

  .menu__link:hover,
  .menu__link:focus-visible{
    color: var(--main-light);
    background: color-mix(in srgb, var(--white) 10%, transparent);
    outline: none;
  }

  .menu__item--has-children .menu__sub-head{
    display: flex;
    align-items: stretch;
    gap: 6px;
    width: 100%;
  }

  .menu__item--has-children .menu__link--ancestor{
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }

  .menu__sub-trigger{
    border: none;
    color: color-mix(in srgb, var(--white) 90%, var(--main-light));
    align-self: center;
  }

  .menu__sub-toggle:checked ~ .menu__sub-head .menu__sub-arrow{
    transform: rotate(-135deg);
    margin-top: 2px;
  }

  .menu__sub-toggle:not(:checked) ~ .menu__sublist{
    display: none;
  }

  .menu__sub-toggle:checked ~ .menu__sublist{
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 0 8px 12px;
    margin: 0 0 8px;
    border: none;
  }

  .menu__sublink{
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 14px;
    color: color-mix(in srgb, var(--white) 78%, var(--main-light));
  }

  .menu__sublink:hover,
  .menu__sublink:focus-visible{
    color: var(--main-light);
    background: color-mix(in srgb, var(--white) 8%, transparent);
    outline: none;
  }

  .menu__close{
    border: none;
    background: transparent;
  }

  .menu__close::before,
  .menu__close::after{
    background: var(--white);
  }

  .hero__middle{
    align-items: flex-start;
  }

  /* На телефоне не поднимаем блок: меньше сдвиги относительно макета */
  .hero__row--3{
    transform: none;
  }
  .hero-card__grid{
    grid-template-columns: 1fr;
  }
  .bottom-block{
    flex-direction: column;
    align-items: flex-start;
  }
  .bottom-block__right{
    align-items: flex-start;
  }
}

