/* ==================== ОСНОВНЫЕ СТИЛИ БЛОКА УСЛОВИЯ АРЕНДЫ ==================== */
.terms-section {
  width: 100%;
  margin-top: 100px;
  margin-bottom: 0;
  position: relative;
  background-color: #ffffff;
  padding: 0 10px;
}

.terms-container {
  position: relative;
  width: 100%;
  max-width: 1880px;
  margin: 0 auto;
}


.terms-image {
  position: relative;
  width: 100%;
  max-width: 1880px;
  height: 346px;
  background-image: url('../img/terms.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 24px;
  margin: 0 auto;
}

.terms-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 24px;
}

.terms-title {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  z-index: 2;
  text-align: center;
  width: 100%;
  font-family: Onest;
  font-size: 40px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.terms-cards {
  position: relative;
  max-width: 1290px;
  margin: -150px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  z-index: 3;
  padding: 0 20px;
}

.terms-card {
  flex: 1;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 30px 20px;
  pointer-events: auto;
  transition: transform 0.2s;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 232px;
}
/*
.terms-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}
*/
.terms-card img {
  width: 100px;
  height: 100px;
  aspect-ratio: 1/1;
}

.terms-card p {
  margin-top: 20px;
  color: var(--Heading, #24272C);
  text-align: center;
  font-family: Onest;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}


.terms-conditions h3{
margin-bottom:20px;
}

.terms-conditions {
position: relative;
  max-width: 1290px;
  margin: 100px auto 0;
  display: block;
  z-index: 3;
  padding: 0 20px;
}
/* ==================== АДАПТИВНЫЕ СТИЛИ БЛОКА УСЛОВИЯ АРЕНДЫ ==================== */

/* Для экранов 1400px - уменьшаем отступы */
@media (max-width: 1400px) {
  .terms-cards {
    max-width: 1100px;
    gap: 25px;
    margin-top: -135px;
  }
  
  .terms-card {
    padding: 25px 15px;
    min-height: 210px;
  }
  
  .terms-card img {
    width: 85px;
    height: 85px;
  }
  
  .terms-card p {
    font-size: 18px;
  }
}

/* Для экранов 1280px - отступы 10px, плашки выше */
@media (max-width: 1280px) {
  .terms-section {
    padding: 0 20px;
  }
  
  .terms-image {
    max-width: 1240px;
    height: 300px;
  }
  
  .terms-title {
    font-size: 32px;
    top: 60px;
  }
  
  .terms-cards {
    max-width: 1087px; /*1100px;*/
    gap: 20px;
    margin-top: -120px;
    padding: 0 10px;
  }
  
  .terms-card {
    padding: 20px 15px;
    min-height: 200px;
  }
  
  .terms-card img {
    width: 75px;
    height: 75px;
  }
  
  .terms-card p {
    font-size: 16px;
    margin-top: 12px;
  }
}

/* Для экранов 1024px - переходим на 2 ряда */
@media (max-width: 1024px) {
  .terms-cards {
    flex-wrap: wrap;
    justify-content: center;
    margin-top: -100px;
  }
  
  .terms-card {
    flex: 0 1 calc(50% - 20px);
    min-width: 220px;
    min-height: 210px;
  }
  
  .terms-image {
    height: 280px;
  }
}




/* Для экранов до 768px - мобильные устройства */
@media (max-width: 768px) {
  .terms-section {
    margin-top: 60px;
    padding: 0 15px;
  }
  
  .terms-image {
    height: 511px;
    border-radius: 20px;
  }
  
  .terms-title {
    position: relative;
    top: 0;
    font-size: 28px;
    margin-top: -462px;
    margin-bottom: 35px;
    padding: 0 15px;
    color: white;
    text-align: center;
    z-index: 2;
  }
  
  .terms-cards {
    flex-wrap: wrap;
    justify-content: center;
    margin-top: -20px;
    gap: 15px;
    padding: 0 10px;
    position: relative;
    z-index: 2;
  }
  
  .terms-card {
    flex: 0 1 calc(50% - 15px);
    min-width: 160px;
    padding: 20px 15px;
    min-height: 180px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .terms-card img {
    width: 60px;
    height: 60px;
  }
  
  .terms-card p {
    font-size: 14px;
    margin-top: 10px;
  }
}