

/* Блок рейтинга в шапке (интегрировано ) */
.header__rating {
  margin-right: 40px;
}

.rating-block {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: "Gilroy", sans-serif;
}

.rating-block__top {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.rating-block__score {
  font-size: 18px;
  font-weight: 700;
  color: #070707;
  line-height: 1.2;
}

.rating-block__stars {
  height: 13px;
  width: auto;
}

.rating-block__platforms {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: 5px;
}

.rating-block__platform-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  transition: transform 0.2s;
}

.rating-block__platform-icon:hover {
  transform: scale(1.1);
}

.rating-block__bottom {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rating-block__link {
  font-size: 14px;
  color: #373737;
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.4;
}

.rating-block__link:hover {
  color: #2dadbc;
}

.rating-block__link span {
  font-weight: 700;
  color: #2dadbc;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Адаптив для мобильных устройств */
@media (max-width: 991px) {
  .header__rating {
    margin-right: 0;
    width: 100%;
    margin-top: 15px;
    margin-bottom: 10px;
}

.rating-block__top {
    justify-content: center;
}

.rating-block__bottom {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.rating-block__link {
    font-size: 13px;
}
}

@media (max-width: 575px) {
  .rating-block__score {
    font-size: 16px;
}

.rating-block__platform-icon {
    width: 16px;
    height: 16px;
}

.rating-block__link {
    font-size: 12px;
}

.rating-block__bottom {
    gap: 10px;
}
}

.d-992, .d-1200 {
    display: none;
}


@media (min-width: 1200px) and (max-width: 1920px) {
    .d-1200 {
        display: block;
    }   
    /* Уменьшаем размер самого логотипа */
.header__logo img {
    width: 260px !important;
    height: auto;
}

  /* Уменьшаем правый отступ логотипа */
  .header__logo {
    margin-right: 15px ;
}

}

@media (min-width: 992px) and (max-width: 1199px) {
    .d-992 {
        display: block;
    }
    /* Уменьшаем правый отступ логотипа */
  .header__logo {
    margin-right: 5px ;
}

/* Оптимизация шапки для десктопа (992px - 1920px) — всё в одну строку */
@media (min-width: 992px) and (max-width: 1920px) {




/* Уменьшаем шрифт в блоке с адресом */
.header__address p {
    font-size: 14px !important;
}

/* Уменьшаем шрифт в блоке с графиком работы */
.header__worktime p {
    font-size: 14px !important;
}

/* Уменьшаем правый отступ блока с рейтингом */
.header__rating {
    margin-right: 20px !important;
}

/* Опционально: немного уменьшаем внутренние отступы кнопки «Оставить заявку» */
.header__call-btn {
    padding: 12px 20px !important;
}
}


/* Оптимизация header__bottom для 992px – 1199px */
@media (min-width: 992px) and (max-width: 1199px) {
  /* Уменьшаем отступы между пунктами меню и немного уменьшаем шрифт */
  .header__menu-item {
    margin-right: 15px !important;
    font-size: 14px !important;
}

/* Уменьшаем размер шрифта номера телефона */
.header__phone {
    font-size: 20px !important;
}

/* Уменьшаем иконки соцсетей и отступы между ними */
.socials a {
    width: 24px !important;
    height: 24px !important;
    margin-right: 2px !important;
}

/* Уменьшаем левый отступ у блока с телефоном (если нужно) */
.header__phone {
    margin-left: 5px !important;
}


.header__worktime, .header__address, .header__rating {
    margin-right: 0!important;
}

.header__rating {
    margin-right: 0!important;

}

.header__logo img {
    width: 195px;
    height: auto;
}
}
