/* ========================== */
/* Стили видео в шапке */
#myVideo {
  position: relative;
  right: 0;
  bottom: 0;
  width: 100%;
}

/* ========================== */
/* Стили для поиска */
#searchFormMobile {
  display: none;
}

#loopS {
  position: relative;
  top: -33px;
  left: -16px;
  float: right;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

#loopS:hover {
  color: red;
}

@media (max-width: 1000px) {
  #searchFormMobile {
    display: block;
  }
  #searchFormMobile_f {
    margin-top: -15px;
    margin-left: -2px;
  }
  #searchForm {
    display: none;
  }
}

/* ========================== */
/* Стили ссылок */
a:hover {
  color: #ef3124;
}

/* ========================== */
/* Стили блока преимуществ */
.advantages-section {
  margin: 50px 20px;
  text-align: center;
}

.advantages-section h2 {
  color: #f54f29;
  margin-bottom: 40px;
  font-size: 1.5em;
  font-weight: 700;
}

.advantages-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  align-items: stretch;
}

.adv-card, .adv-card-link .adv-card {
  flex: 1 1 300px;
  max-width: 300px;
  background: #fff;
  border: 1px solid #f54f29;
  border-radius: 12px;
  padding: 25px 20px;
  text-align: center;
  /* убрал скрытие и смещение */
  opacity: 1;
  transform: none;
  transition: box-shadow 0.5s ease, background 0.5s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.adv-card:hover {
  transform: translateY(-8px) scale(1.06);
  box-shadow: 0 20px 45px rgba(0,0,0,0.3);
  background: #fff8f5;
}

.adv-card img {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
  filter: invert(41%) sepia(91%) saturate(4392%) hue-rotate(357deg) brightness(100%) contrast(101%);
  transition: transform 0.3s ease;
}

.adv-card:hover img {
  transform: translateY(-5px) scale(1.1);
}

.adv-card h3 {
  margin-bottom: 12px;
  color: #000;
  font-size: 18px;
}

.adv-card p {
  font-size: 15px;
  color: #333;
  line-height: 1.6;
  flex-grow: 1;
}

/* убрал .adv-card.visible, он больше не нужен */

/* Адаптив */
@media (max-width: 900px) {
  .adv-card, .adv-card-link .adv-card {
    flex: 1 1 45%;
    max-width: 45%;
  }
}

@media (max-width: 600px) {
  .adv-card, .adv-card-link .adv-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* ========================== */
/* Стили калькулятора лизинга */
#leasing-calculator {
  max-width: 500px;
  margin: 40px auto;
  padding: 32px 28px;
  background: linear-gradient(135deg, #ffffff, #fff8f5);
  border-radius: 20px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
  font-family: 'Inter', Arial, sans-serif;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#leasing-calculator:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}

#leasing-calculator h3 {
  text-align: center;
  font-weight: 600;
  font-size: 22px;
  color: #f54f29;
  margin-bottom: 24px;
}

#leasing-calculator select,
#leasing-calculator input,
#leasing-modal-content input {
  width: 100%;
  padding: 14px 18px;
  margin-bottom: 16px;
  border: 1px solid #f54f29;
  border-radius: 14px;
  font-size: 15px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
}

#leasing-calculator select:focus,
#leasing-calculator input:focus,
#leasing-modal-content input:focus {
  outline: none;
  border-color: #f54f29;
  box-shadow: 0 0 0 4px rgba(245, 79, 41, 0.15);
  background-color: #fff7f2;
}

#leasing-calculator button,
#leasing-modal-content button {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  background: linear-gradient(135deg, #f54f29, #d9441f);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

#leasing-calculator button:hover,
#leasing-modal-content button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  background: linear-gradient(135deg, #d9441f, #f54f29);
}

#leasing-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

#leasing-modal-content {
  max-width: 500px;
  margin: 8% auto;
  background: #fff;
  padding: 32px;
  border-radius: 20px;
  border: 2px solid #f54f29;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: modalShow 0.35s ease-out forwards;
}

#leasing-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 26px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

#leasing-modal-close:hover {
  transform: scale(1.2);
  color: #d9441f;
}

.small-note {
  font-size: 12px;
  color: #888;
  margin-top: 12px;
}

/* Анимация появления модального окна */
@keyframes modalShow {
  0% { transform: translateY(-30px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@media (max-width: 1000px) {
  #leasing-calculator {
    margin-left: 15px;
    margin-right: 15px;
  }
}

/* ========================== */
/* Стили cookie-баннера */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(46, 46, 46, 0.85);
  color: #fff;
  padding: 16px;
  z-index: 9999;
  display: none;
  font-size: 14px;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
}

.cookie-banner__inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cookie-button {
  background-color: #f54f29;
  color: white;
  padding: 10px 20px;
  border: none;
  font-weight: 500;
  cursor: pointer;
  width: fit-content;
  border-radius: 4px;
}

.cookie-banner a {
  color: #ffcc99;
  text-decoration: underline;
}

@media (min-width: 600px) {
  .cookie-banner__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
