body {
  /* font-family: "Roboto", sans-serif; */
  font-family: 'Inter', sans-serif;

  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  background-color: #000;
  color: #fff;
}

*,
*:after,
*:before {
  box-sizing: border-box;
}

p {
  margin: 0;
}

a {
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
}

.section {
  padding: 40px 0;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}

.header {
  width: 100%;
  margin-bottom: 40px;
  background: #0e0e0e;
}

.logo__img {
  height: 80px;
}

.header_inner {
  display: flex;
  align-items: center;
  max-width: 1200px;
  height: 100px;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
}

.header__logo--text {
  color: #fff;
  font-size: 15px;
  font-weight: 400;
}

.name__orange {
  color: #fff;
  display: flex;
  align-items: center;
  padding: 2px;
  margin-right: 4px;
  letter-spacing: 1px;
}

.name__black {
  background-color: #fba504;
  display: flex;
  align-items: center;
  color: #000;
}

.header__info {
  line-height: 1;
  display: flex;
  align-items: center;
}

.header__phones {
  display: flex;
  flex-direction: column;
  font-size: 18px;
  color: #fff;

  margin-left: 12px;
}

.phone__link {
  text-decoration: none;
  color: #ddd;
  margin-bottom: 5px;
}

.phone__link:last-child {
  margin-bottom: 0;
}

.phone__link--model {
  text-decoration: underline;
}

.header__icons {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none; /* Убираем подчеркивание */
  padding: 0; /* Убираем отступы */
  margin: 0; /* Убираем внешние отступы */
  margin-right: 7px;
}

/* Стили для SVG */
.header__icons svg {
  width: 42px;
  height: 42px;
  display: block;
}

.header__icons.header__icons--vk svg{
  width: 52px;
  height: 52px;
}

/* Cards */
.block__card {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.card {
  width: 24%; /* Адаптивная ширина */
  min-width: 250px;
  max-width: 400px;
  background: #0e0e0e;
  border-radius: 5px;
  border: 1px solid #0e0e0e;
  overflow: hidden;
  text-align: center;
  transition: all .2s linear;
  margin-bottom: 15px;

 /* Добавляем для мобильных */
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.card:last-child {
  margin-right: 0;
}

.card__img {
  display: block;
  width: 100%;
  height: auto;
}

.card__bg_info > div {
  width: 100%;
  max-height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.card__bg_info p {
  margin-bottom: 4px;
}

.card__bg {
  position: relative;
  display: block;
  width: 100%;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.card__bg_info {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  font-size: 13px;
  line-height: 1.2;
  text-align: left;
  color: #fff;
  background: rgba(0, 0, 0, 0.9);

  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease-in-out;
  z-index: 1;

  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: opacity;
}

/* Десктоп hover */
@media (hover: hover) and (pointer: fine) {
    .card__bg:hover .card__bg_info {
        opacity: 1;
        pointer-events: auto;
    }
}

/* Мобильные: через .active */
@media (hover: none), (hover: on-demand), (pointer: coarse) {
    .card__bg.active .card__bg_info {
        opacity: 1;
        pointer-events: auto;
        z-index: 2; /* поверх родителя */
    }
}






/* .card:hover {
  box-shadow: none;
  border: 1px solid #fba504;
} */

.card img {
  width: 100%;
  height: auto;
}

.card__content {
  margin: 5px;
  font-size: 14px;
  border-radius: 5px;
  font-weight: 600;
  /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); */
  /* border: 1px solid #dddddd; */
}


/* .card__info {
  text-align: center;
  padding: 7px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  flex-wrap: wrap;
}

.card__info-block {
  display: flex;
  flex-wrap: wrap;
  padding: 5px;
  margin: 3px;
  border-radius: 5px;
  border: 1px solid #dddddd;
  line-height: 1;

} */

.card__info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  color: #ddd;
}

.card__info-block {
  display: flex;
  align-items: center;
  border-radius: 5px;
  padding: 3px 5px;
  margin: 3px;
  border: 1px solid #dddddd;
  white-space: nowrap; /* Предотвращает перенос текста */
  width: max-content; /* Ширина зависит от содержимого */
}

.card__info-block--name {
  text-decoration: none;
  color: #dddddd;
  text-align: left;
}

.card__title {
  font-weight: bold;
  text-decoration: none;
  font-size: 15px;
  color: #ddd;

  padding: 8px 8px 0;
  margin-bottom: 5px;
  display: -webkit-box;
  line-clamp: 1;
  -webkit-line-clamp: 1; /* Ограничение в 2 строки */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3; /* Подгоняем высоту под 2 строки */
}

.card__text {
  font-size: 13px;
}

/*# sourceMappingURL=style.css.map */

.btn__block {
  margin: 0 10px 10px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.btn__block--buy {
  display: flex;
  align-items: flex-end;
  font-weight: bold;
}

.btn__block--price {
  font-size: 22px;
  line-height: 1;
  margin-right: 5px;
}

.btn__block--day {
  font-size: 15px;
  line-height: 1.2;
  color: #555;
}

.card__btn {
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 700;
  color: #000;
  border: 1px solid #12202f;
  background: #fba504;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
}

.card__btn:hover {
  color: #fff;
  background-color: #e09400;
}


/* MODELS */
.popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background-color: rgba(0, 0, 0, 0.8);
  overflow-y: auto;
  padding: 20px;
  text-align: center;
}

.popup .phone__link {
  margin: 0;
  color: #fff;
  font-weight: 600;
}

.popup_dialog {
  display: inline-block;
  vertical-align: middle;
  max-width: 100%;
}

.popup::before {
  content: '';
  display: inline-block;
  height: 100%;
  vertical-align: middle;
}

.popup_content {
  display: inline-block;
  vertical-align: middle;
  background-color: #0e0e0e;
  max-width: 500px;
  padding: 10px;
  border-radius: 10px;
  position: relative;
  text-align: left;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.popup_form {
  padding: 23px;
  text-align: center;
}

.popup_close {
  position: absolute;
  top: -25px;
  right: -25px;
  font-size: 30px;
  color: #ffffff;
  border: none;
  background: transparent;
  cursor: pointer;
}

@media (max-width: 600px) {
  .header_inner {
    flex-direction: column;
    align-items: center;
    height: auto;
    padding: 7px 0;
  }

  .header__info {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
  }

  .phone__link {
    margin-right: 15px;
  }

  .header__phones {
    font-size: 16px;
    margin-left: 10px;
  }

  .header__icons svg {
    width: 35px;
    height: 35px;
    display: block;
  }
  
  .header__icons.header__icons--vk svg{
    width: 47px;
    height: 47px;
  }

  .popup_content {
    max-width: 400px;
  }

  .popup_form {
    padding: 7px;
  }
}

@media (max-width: 460px) {
  .popup_content {
    max-width: 250px;
  }
}

.site-footer {
  margin-top: 40px;
  padding: 30px 0;
  background: #0e0e0e;
  border-top: 1px solid #1e1e1e;
  font-size: 14px;
  color: #aaa;
}

.site-footer__grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer__title {
  font-weight: 700;
  font-size: 15px;
  color: #ddd;
  margin-bottom: 10px;
}

.site-footer__contacts {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 5px;
  line-height: 1.5;
}

.site-footer__contacts a {
  color: #aaa;
  transition: color 0.2s;
}

.site-footer__contacts a:hover {
  color: #fba504;
}

.site-footer__socials {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
}

.site-footer__socials a {
  color: #aaa;
  transition: color 0.2s;
}

.site-footer__socials a:hover {
  color: #fba504;
}

@media (max-width: 600px) {
  .site-footer__grid {
    flex-direction: column;
  }

  .site-footer__socials {
    text-align: left;
    flex-direction: row;
    gap: 15px;
  }
}

/* -------- SEO additions -------- */
.page-title {
  font-size: 26px;
  text-align: center;
  margin: 25px 0 10px 0;
  font-weight: 700;
  color: #fff;
}