/*
 * файл: landing-modal.css
 * путь: c:\openserver\domains\start.voiceofgalaxies.ru\css\landing\landing-modal.css
 * назначение: оформление sci-fi модальных карточек landing
 */

.landing-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
}

.landing-modal[hidden] {
  display: none;
}

.landing-modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 35%, rgba(35, 125, 255, 0.18), transparent 34%),
    rgba(1, 6, 18, 0.84);
}

.landing-modal-panel {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 42% 1fr;
  width: min(900px, calc(100vw - 36px));
  max-height: min(760px, calc(100vh - 36px));
  margin: 6vh auto 0;
  overflow: hidden;
  border: 1px solid rgba(107, 213, 255, 0.62);
  border-radius: 24px;
  color: #eaf6ff;
  background:
    linear-gradient(135deg, rgba(8, 28, 62, 0.98), rgba(3, 10, 24, 0.98));
  box-shadow:
    0 0 70px rgba(32, 164, 255, 0.32),
    inset 0 0 34px rgba(95, 205, 255, 0.08);
}

.landing-modal-panel::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 3;
  border: 1px solid rgba(107, 213, 255, 0.22);
  border-radius: 18px;
  pointer-events: none;
}

.landing-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(107, 213, 255, 0.68);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(15, 42, 76, 0.96);
  box-shadow: 0 0 18px rgba(61, 184, 255, 0.28);
  font-size: 28px;
  line-height: 1;
}

.landing-modal-close:hover,
.landing-modal-close:focus-visible {
  background: rgba(28, 103, 170, 0.98);
  outline: none;
}

.landing-modal-image {
  position: relative;
  z-index: 2;
  min-height: 420px;
  background: #06162e;
}

.landing-modal-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 38%, rgba(3, 10, 24, 0.9)),
    linear-gradient(0deg, rgba(3, 10, 24, 0.76), transparent 48%);
  pointer-events: none;
}

.landing-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-modal-content {
  position: relative;
  z-index: 4;
  padding: 42px 42px 36px 24px;
}

.landing-modal-kicker {
  margin-bottom: 8px;
  color: #73d8ff;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.landing-modal-content h2 {
  margin: 0 48px 10px 0;
  color: #ffffff;
  font-size: clamp(26px, 3vw, 42px);
  letter-spacing: 1px;
  text-shadow: 0 0 18px rgba(89, 200, 255, 0.42);
}

.landing-modal-subtitle {
  margin: 0 0 18px;
  color: #b7e8ff;
  font-size: 18px;
  font-weight: 700;
}

.landing-modal-body {
  margin: 0;
  color: #c7ddf4;
  font-size: 15px;
  line-height: 1.65;
}

.landing-modal-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.landing-modal-feature {
  min-height: 58px;
  padding: 12px;
  border: 1px solid rgba(107, 213, 255, 0.34);
  border-radius: 14px;
  background: rgba(7, 29, 62, 0.72);
  color: #eaf6ff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  box-shadow: inset 0 0 16px rgba(69, 178, 255, 0.08);
}

.landing-modal-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 26px;
  padding: 0 24px;
  border: 1px solid rgba(125, 224, 255, 0.86);
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, #0a5cff, #00c2ff);
  box-shadow: 0 0 26px rgba(34, 191, 255, 0.36);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  text-decoration: none;
}

.landing-modal-action:hover,
.landing-modal-action:focus-visible {
  filter: brightness(1.14);
  outline: none;
}

@media (max-width: 760px) {
  .landing-modal-panel {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    margin: 0;
    border-radius: 0;
    overflow-y: auto;
  }

  .landing-modal-panel::before {
    inset: 8px;
    border-radius: 12px;
  }

  .landing-modal-image {
    min-height: 220px;
    max-height: 32vh;
  }

  .landing-modal-content {
    padding: 28px 20px 32px;
  }

  .landing-modal-features {
    grid-template-columns: 1fr;
  }
}