.card-page {
  padding: 180px 60px 40px 60px;
  background-color: rgba(5, 10, 30, 0.9);
  color: white;
  font-family: 'Arial', sans-serif;
}

.header-alt {
 background-color: rgba(10, 10, 10, 0.5);
}

.mb-head-alt {
 background-color: rgba(10, 10, 10, 0.5);
}

.card-container {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.card-gallery {
  flex: 1;
}

.main-image {
  width: 100%;
  height: 450px; /* фиксированная высота */
  object-fit: cover;
  border-radius: 12px;
}

.thumbs {
  margin-top: 10px;
}

.thumb {
  width: 100px;
  height: 75px; /* фиксированная высота */
  object-fit: cover;
  opacity: 0.5;
  cursor: pointer;
  margin-right: 5px;
  border-radius: 6px;
}

.thumb.selected {
  opacity: 1;
  border: 2px solid gold;
}

.card-info {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  padding: 5px 30px 5px 30px; /* top, right, bottom, left */
  border-radius: 12px;
  font-size: 20px;
}

.card-info h1,
.card-info h2 {
  margin-bottom: 10px;
  color: gold;
}

.breadcrumbs {
  font-size: 16px;
  color: #aaa;
  margin-bottom: 20px;
}

.status {
  margin-top: 10px;
  color: lightgreen;
}

.status .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: limegreen;
  border-radius: 50%;
  margin-right: 8px;
}

.rent-box {
  display: flex;
  border: 1px solid #f6d847;
  margin-top: 20px;
  width: fit-content;
  font-family: 'Arial', sans-serif;
}

.rent-btn {
  background-color: #f6d847;
  color: black;
  border: none;
  padding: 20px 40px;
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
}

.rent-btn:hover {
  transform: scale(1.05);
  background-color: #eac821;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.phonee {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  padding: 20px 30px;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; /* <--- вот эта строка выравнивает по центру */
  text-align: center;
}

.phonee b {
  font-size: 20px;
}

.features {

  margin-top: 20px;
  list-style: none;
  padding: 0;
}

.features li::before {
  content: "✔";
  color: gold;
  margin-right: 10px;
}

.features li {
  line-height: 1.8; /* или например 24px — подбери под размер шрифта */
}

.card-description {
  margin-top: 40px;
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 12px;
}

.card-description p {
  margin-bottom: 20px;
}

.card-description table {
  width: 100%;
  border-collapse: collapse;
  background-color: rgba(5, 10, 30, 0.9);
  color: white;
}

.card-description td {
  border: 1px solid #444;
  padding: 10px;
}

@media (max-width: 768px) {
  .card-page {
    padding: 120px 20px 40px;
  }

  .card-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .card-gallery .main-image {
    width: 100%;
    height: auto;
  }

  .thumbs {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
  }

  .thumb {
    width: 70px;
  }

  .card-info {
    position: static;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
  }

  .card-info h1 {
    font-size: 20px;
    margin-top: 0;
  }

  .card-info p,
  .card-info li {
    font-size: 14px;
    line-height: 1.6;
  }

  .rent-box {
    flex-direction: column;
    width: 100%;
  }

  .rent-btn {
    width: 100%;
    font-size: 16px;
    padding: 15px;
  }

  .phonee {
    padding: 15px;
    font-size: 14px;
  }

  .phonee b {
    font-size: 16px;
  }

  .card-description {
    margin-top: 30px;
  }

  .card-description p {
    font-size: 14px;
    line-height: 1.6;
  }

  .card-description table {
    font-size: 13px;
  }

  .header{
    display: none; /* скрываем десктопную шапку и футер на мобилках */
  }

  .mobile-header,
  .mobile-menu,
  .footer-wrapper {
    display: block;
  }
}


@media (max-width: 768px) {
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background-color: #000;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
  }

  .mobile-logo {
    height: 40px;
    width: auto;
  }

  .mobile-info {
    flex-grow: 1;
    text-align: center;
    font-size: 12px;
    line-height: 1.2;
    color: white;
  }

  .mobile-phone {
    font-size: 14px;
    color: #4da6ff;
    font-weight: bold;
  }

  .mobile-btns {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .mobile-zayavka {
    padding: 8px 12px;
    font-size: 13px;
    font-weight: bold;
    background-color: #f6d847;
    color: black;
    border-radius: 20px;
    text-decoration: none;
  }

  .mobile-whatsapp {
    background: url('/static/img/whatsapp-icon.png') no-repeat center center;
    background-size: contain;
    width: 24px;
    height: 24px;
    display: inline-block;
  }

  .hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  .hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: white;
  }
}