/* =========================================================
   Fixed Page Common
========================================================= */

/* 1. page layout
========================================================= */
.page-layout {
  position: relative;
  z-index: 1;
}

.page-container {
  width: min(100% - 40px, 1120px);
  margin: 0 auto;
}

.page-section {
  position: relative;
  padding: 88px 0;
}

.page-section--narrow {
  padding: 72px 0;
}

.page-section--wide {
  padding: 112px 0;
}

/* 2. hero
========================================================= */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 88px;
  background:
    radial-gradient(circle at 20% 20%, rgba(106, 168, 255, 0.16) 0%, rgba(106, 168, 255, 0) 34%),
    radial-gradient(circle at 80% 25%, rgba(143, 192, 255, 0.12) 0%, rgba(143, 192, 255, 0) 30%),
    linear-gradient(135deg, #0f1c33 0%, #142844 50%, #0c172a 100%);
}

.page-hero__inner {
  max-width: 760px;
}

.page-hero__label {
  margin: 0 0 18px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6aa8ff;
}

.page-hero__title {
  margin: 0;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.page-hero__lead {
  margin: 24px 0 0;
  font-size: 1.02rem;
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.82);
}

/* 3. section heading
========================================================= */
.section-heading {
  margin: 0 0 42px;
}

.section-heading__label {
  margin: 0 0 14px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6aa8ff;
}

.section-heading__title {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.section-heading__lead {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: 1rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.78);
}

/* 4. common text
========================================================= */
.page-intro {
  max-width: 760px;
  margin: 0;
  font-size: 1rem;
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.8);
}

.page-note {
  margin: 20px 0 0;
  font-size: 0.92rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.64);
}

/* 5. grid
========================================================= */
.page-grid {
  display: grid;
  gap: 24px;
}

.page-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* 6. cards
========================================================= */
.page-card {
  height: 100%;
  padding: 32px 28px;
  border: 1px solid rgba(106, 168, 255, 0.16);
  border-radius: 24px;
  background: rgba(10, 18, 40, 0.72);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
}

.page-card__label {
  display: inline-block;
  margin: 0 0 16px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8fc0ff;
}

.page-card__title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.45;
  color: #ffffff;
}

.page-card__text {
  margin: 18px 0 0;
  font-size: 0.98rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.76);
}

.page-card__list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.page-card__list li {
  position: relative;
  margin: 0;
  padding-left: 1.2em;
  font-size: 0.97rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.76);
}

.page-card__list li + li {
  margin-top: 10px;
}

.page-card__list li::before {
  content: "";
  position: absolute;
  top: 0.8em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6aa8ff;
  transform: translateY(-50%);
}

/* 7. buttons
========================================================= */
.page-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.page-button:hover {
  transform: translateY(-2px);
}

.page-button--primary {
  background: linear-gradient(135deg, #6aa8ff 0%, #3d7cff 100%);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(61, 124, 255, 0.32);
}

.page-button--primary:hover {
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(61, 124, 255, 0.4);
}

.page-button--secondary {
  border: 1px solid rgba(106, 168, 255, 0.34);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
}

.page-button--secondary:hover {
  color: #ffffff;
  border-color: rgba(106, 168, 255, 0.56);
  background: rgba(255, 255, 255, 0.08);
}

/* 8. cta
========================================================= */
.page-cta {
  padding: 96px 0 112px;
}

.page-cta__inner {
  padding: 48px 40px;
  border: 1px solid rgba(106, 168, 255, 0.18);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(18, 30, 68, 0.9) 0%, rgba(10, 18, 40, 0.92) 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
  text-align: center;
}

.page-cta__label {
  margin: 0 0 14px;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6aa8ff;
}

.page-cta__title {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
}

.page-cta__text {
  max-width: 760px;
  margin: 18px auto 0;
  font-size: 1rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.78);
}

.page-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
}

/* 9. back to top
========================================================= */
.page-top-link {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(106, 168, 255, 0.22);
  border-radius: 50%;
  background: rgba(10, 18, 40, 0.82);
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
  text-decoration: none;
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.page-top-link:hover {
  transform: translateY(-3px);
  color: #ffffff;
  border-color: rgba(106, 168, 255, 0.46);
  background: rgba(18, 30, 68, 0.96);
  box-shadow: 0 22px 36px rgba(0, 0, 0, 0.28);
}

/* 10. responsive
========================================================= */
@media (max-width: 1024px) {
  .page-section {
    padding: 80px 0;
  }

  .page-section--narrow {
    padding: 64px 0;
  }

  .page-section--wide {
    padding: 96px 0;
  }

  .page-hero {
    padding: 96px 0 80px;
  }

  .page-cta {
    padding: 88px 0 104px;
  }

  .page-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .page-container {
    width: min(100% - 28px, 1120px);
  }

  .page-section,
  .page-section--narrow,
  .page-section--wide {
    padding: 64px 0;
  }

  .page-hero {
    padding: 84px 0 64px;
  }

  .page-hero__label,
  .section-heading__label,
  .page-cta__label {
    letter-spacing: 0.12em;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .page-grid--2,
  .page-grid--3 {
    grid-template-columns: 1fr;
  }

  .page-card {
    padding: 28px 22px;
    border-radius: 20px;
  }

  .page-cta {
    padding: 72px 0 88px;
  }

  .page-cta__inner {
    padding: 36px 22px;
    border-radius: 24px;
  }

  .page-button {
    width: 100%;
  }

  .page-cta__actions {
    flex-direction: column;
  }

  .page-top-link {
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
  }
}