/* INNER PAGE HERO */

.page-hero {
  position: relative;

  min-height: 560px;

  display: flex;
  align-items: center;

  overflow: hidden;

  background: var(--black);
}

.page-hero-bg {
  position: absolute;
  inset: 0;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  transform: scale(1.02);

  z-index: 0;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      180deg,
      rgba(0, 74, 138, 0.28) 0%,
      rgba(0, 0, 0, 0.50) 55%,
      rgba(0, 0, 0, 0.82) 100%
    ),
    linear-gradient(
      90deg,
      rgba(0, 74, 138, 0.48),
      rgba(46, 204, 113, 0.12)
    );

  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;

  padding-top: 90px;

  color: var(--white);
}

.page-hero-content h1 {
  max-width: 820px;

  margin-bottom: 30px;

  font-size: 68px;
  line-height: 1.08;
  font-weight: 700;

  text-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
}

.page-hero-content p:not(.subtitle) {
  max-width: 720px;

  margin-bottom: 36px;

  color: rgba(255, 255, 255, 0.9);

  font-size: 20px;
  line-height: 1.7;
}

.page-hero-buttons {
  display: flex;
  gap: 20px;
}

/* APARTMENTS PAGE */

.section-head-wide {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: 60px;
  align-items: end;
}

.section-description {
  color: var(--text-soft);

  font-size: 18px;
  line-height: 1.7;
}

.apartments-catalog {
  background: var(--bg);
}

.apartments-list {
  display: grid;
  gap: 35px;
}

.apartment-list-card {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);

  background: var(--surface);

  border: 1px solid rgba(0, 110, 183, 0.08);
  border-radius: var(--radius);

  overflow: hidden;

  box-shadow: var(--shadow);

  transition: var(--transition);
}

.apartment-list-card:hover {
  transform: translateY(-6px);

  box-shadow: var(--shadow-hover);
}

.apartment-list-image {
  position: relative;

  min-height: 360px;

  display: block;

  overflow: hidden;

  text-decoration: none;

  background: linear-gradient(
    135deg,
    var(--primary-light),
    var(--green-light)
  );
}

.apartment-list-bg {
  position: absolute;
  inset: 0;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  transform: scale(1.01);

  transition: 0.5s ease;
}

.apartment-list-card:hover .apartment-list-bg {
  transform: scale(1.05);
}

.apartment-list-bg::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.08),
      rgba(0, 0, 0, 0.32)
    );
}

.apartment-label {
  position: absolute;
  left: 24px;
  bottom: 24px;

  z-index: 2;

  display: inline-flex;

  padding: 9px 16px;

  border-radius: 50px;

  background: var(--accent);

  color: var(--black);

  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.apartment-list-content {
  padding: 42px;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.apartment-list-top {
  display: flex;
  justify-content: space-between;
  gap: 30px;

  margin-bottom: 24px;
}

.apartment-city {
  margin-bottom: 10px;

  color: var(--primary-light);

  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.apartment-list-content h3 {
  font-size: 34px;
  line-height: 1.15;
}

.apartment-list-content h3 a {
  color: var(--text);

  text-decoration: none;

  transition: var(--transition);
}

.apartment-list-content h3 a:hover {
  color: var(--primary);
}

.apartment-price {
  flex: none;

  color: var(--accent);

  font-size: 26px;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.apartment-price span {
  display: block;

  margin-top: 3px;

  color: var(--text-soft);

  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.apartment-text {
  margin-bottom: 26px;

  color: var(--text-soft);

  font-size: 18px;
  line-height: 1.7;
}

.apartment-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;

  margin: 0 0 32px;
  padding: 0;

  list-style: none;
}

.apartment-features li {
  padding: 8px 14px;

  border-radius: 50px;

  background: rgba(52, 152, 219, 0.1);

  color: var(--primary);

  font-size: 14px;
  font-weight: 700;
}

.apartment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.btn-outline {
  color: var(--primary);

  border: 2px solid rgba(0, 74, 138, 0.25);

  background: transparent;
}

.btn-outline:hover {
  color: var(--white);

  border-color: var(--primary);

  background: var(--primary);
}

/* BENEFITS */

.apartments-benefits {
  background: var(--bg-blue);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}

.benefit-card {
  padding: 38px;

  background: var(--surface);

  border: 1px solid rgba(0, 110, 183, 0.08);
  border-radius: var(--radius);

  box-shadow: var(--shadow);
}

.benefit-card h3 {
  margin-bottom: 16px;

  color: var(--primary);

  font-size: 26px;
  line-height: 1.2;
}

.benefit-card p {
  color: var(--text-soft);

  font-size: 17px;
  line-height: 1.7;
}

/* INNER PAGE RESPONSIVE */

@media (max-width: 992px) {

  .page-hero-content h1 {
    font-size: 52px;
  }

  .section-head-wide,
  .apartment-list-card,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .apartment-list-image {
    min-height: 320px;
  }

  .apartment-price {
    text-align: left;
  }

}

@media (max-width: 768px) {

  .page-hero {
    min-height: 520px;
  }

  .page-hero-content {
    padding-top: 80px;
  }

  .page-hero-content h1 {
    font-size: 40px;
  }

  .page-hero-content p:not(.subtitle) {
    font-size: 17px;
  }

  .page-hero-buttons,
  .apartment-actions {
    flex-direction: column;
  }

  .apartment-list-content {
    padding: 28px;
  }

  .apartment-list-top {
    flex-direction: column;
  }

  .apartment-list-content h3 {
    font-size: 28px;
  }

  .benefit-card {
    padding: 28px;
  }

}

@media (max-width: 480px) {

  .page-hero-content h1 {
    font-size: 34px;
  }

  .apartment-list-image {
    min-height: 250px;
  }

}
