.subpage-hero {
  padding: 84px 0 46px;
}

.subpage-hero .section-heading {
  max-width: 820px;
  margin-bottom: 0;
}

.subpage-hero h1 {
  max-width: 22ch;
  font-size: var(--heading-page);
}

.subpage-lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.8vw, 1.16rem);
}

.page-grid,
.placeholder-grid,
.offer-grid {
  display: grid;
  gap: var(--gap-grid);
}

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

.page-card,
.placeholder-card,
.offer-card {
  min-width: 0;
  padding: var(--card-pad);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, rgba(19, 34, 56, 0.84), rgba(15, 23, 42, 0.82)),
    rgba(15, 23, 42, 0.82);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.28);
}

.page-card h2,
.placeholder-card h2,
.offer-card h2 {
  font-size: 1.15rem;
}

.page-card p,
.placeholder-card p,
.offer-card p,
.page-card li,
.placeholder-card li,
.offer-card li {
  color: var(--muted);
}

.page-card ul,
.placeholder-card ul,
.offer-card ul {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding-left: 1.1rem;
}

.subpage-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.static-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.static-form label {
  display: grid;
  gap: 8px;
  color: var(--text-soft);
  font-weight: 800;
}

.static-form .full {
  grid-column: 1 / -1;
}

.static-form input,
.static-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  color: var(--text);
  background: rgba(3, 7, 18, 0.56);
  font: inherit;
  font-size: 16px;
}

.static-form textarea {
  resize: vertical;
}

.static-form input:focus,
.static-form textarea:focus {
  border-color: rgba(183, 140, 255, 0.54);
  outline: 3px solid rgba(139, 75, 220, 0.18);
}

.static-form--premium {
  gap: 18px;
  padding: 28px;
}

.static-form--premium label {
  font-size: 0.92rem;
}

.static-form--premium .label-optional {
  color: var(--muted);
  font-weight: 600;
}

.static-form--premium input,
.static-form--premium textarea {
  min-height: 50px;
  padding: 13px 15px;
}

.static-form--premium textarea {
  min-height: 132px;
}

@media (max-width: 820px) {
  .page-grid,
  .placeholder-grid,
  .offer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .page-grid,
  .placeholder-grid,
  .offer-grid,
  .static-form {
    grid-template-columns: 1fr;
  }

  .static-form--premium {
    padding: 22px;
  }
}

.page-card,
.placeholder-card,
.offer-card,
.static-form {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 320ms ease,
    box-shadow 320ms ease,
    background 320ms ease;
}

.page-card::before,
.placeholder-card::before,
.offer-card::before,
.static-form::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 0%, rgba(183, 140, 255, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(183, 140, 255, 0.08), transparent 44%);
  opacity: 0;
  transition: opacity 320ms ease;
}

.page-card > *,
.placeholder-card > *,
.offer-card > *,
.static-form > * {
  position: relative;
  z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
  .page-card:hover,
  .placeholder-card:hover,
  .offer-card:hover,
  .static-form:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(183, 140, 255, 0.48);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.44), 0 0 52px rgba(139, 75, 220, 0.2);
  }

  .page-card:hover::before,
  .placeholder-card:hover::before,
  .offer-card:hover::before,
  .static-form:hover::before {
    opacity: 1;
  }
}

@media (hover: hover) and (pointer: fine) {
  .page-card:hover,
  .placeholder-card:hover,
  .offer-card:hover {
    transform: translateY(-8px) scale(1.012);
    border-color: rgba(183, 140, 255, 0.62);
    box-shadow: 0 30px 96px rgba(0, 0, 0, 0.48), 0 0 62px rgba(139, 75, 220, 0.24);
  }

  .placeholder-card:hover .card-icon {
    animation: icon-soft-pulse 1.25s ease-in-out infinite;
    transform: translateY(-1px) rotate(-2deg);
  }

  .static-form:hover {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 36px rgba(139, 75, 220, 0.11);
  }
}

@media (hover: hover) and (pointer: fine) {
  .page-card:hover,
  .placeholder-card:hover,
  .offer-card:hover {
    transform: translateY(-5px);
    border-color: rgba(183, 140, 255, 0.48);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.38), 0 0 36px rgba(139, 75, 220, 0.16);
  }
}

.page-title,
.page-lead {
  transform: translateZ(0);
}

body.js-enabled .page-hero .eyebrow,
body.js-enabled .page-title,
body.js-enabled .page-lead,
body.js-enabled .subpage-cta {
  opacity: 0;
  filter: blur(4px);
  transform: translateY(16px);
  transition:
    opacity 640ms ease,
    filter 640ms ease,
    transform 640ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.page-loaded .page-hero.is-visible .eyebrow,
body.page-loaded .page-hero.is-visible .page-title,
body.page-loaded .page-hero.is-visible .page-lead,
body.page-loaded .page-hero.is-visible .subpage-cta,
body.page-loaded .section-reveal.is-visible .page-hero .eyebrow,
body.page-loaded .section-reveal.is-visible .page-hero .page-title,
body.page-loaded .section-reveal.is-visible .page-hero .page-lead,
body.page-loaded .section-reveal.is-visible .page-hero .subpage-cta,
body.page-loaded .page-hero .reveal-child .eyebrow,
body.page-loaded .page-hero .reveal-child .page-title,
body.page-loaded .page-hero .reveal-child .page-lead,
body.page-loaded .page-hero .reveal-child .subpage-cta {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

body.page-loaded .page-hero .page-title {
  transition-delay: 80ms;
}

body.page-loaded .page-hero .page-lead {
  transition-delay: 160ms;
}

body.page-loaded .page-hero .subpage-cta {
  transition-delay: 240ms;
}

@media (prefers-reduced-motion: reduce) {
  .page-hero .eyebrow,
  .page-title,
  .page-lead,
  .subpage-cta {
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
  }
}

body.js-enabled .page-hero .eyebrow,
body.js-enabled .page-title,
body.js-enabled .page-lead,
body.js-enabled .subpage-cta {
  filter: none;
  transform: translateY(12px);
  transition:
    opacity 460ms ease,
    transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .page-hero .eyebrow,
  .page-title,
  .page-lead,
  .subpage-cta {
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
  }
}

.subpage-hero {
  scroll-snap-align: none !important;
  scroll-snap-stop: normal !important;
}

.page-section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.subpage-hero {
  padding-top: clamp(48px, 6vw, 68px);
  padding-bottom: clamp(28px, 4vw, 40px);
}

.page-grid {
  gap: clamp(14px, 2vw, 18px);
}

.page-card {
  padding: clamp(18px, 3vw, 22px);
}

@media (max-width: 768px) {
  .page-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .subpage-hero {
    padding-top: 42px;
    padding-bottom: 28px;
  }

  .page-card {
    padding: 18px;
  }
}

@media (max-width: 430px) {
  .page-section {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .subpage-hero {
    padding-top: 36px;
    padding-bottom: 22px;
  }
}

.page-section,
.subpage-hero {
  height: auto !important;
  max-height: none !important;
  overflow-x: visible;
  overflow-y: visible !important;
  scroll-snap-align: none !important;
  scroll-snap-stop: normal !important;
}

.page-card,
.placeholder-card,
.offer-card,
.static-form {
  background:
    var(--card-bg-dark-gradient),
    var(--card-bg-dark);
}

@media (hover: hover) and (pointer: fine) {
  .page-card:hover {
    border-color: rgba(216, 180, 254, 0.34);
    background:
      radial-gradient(circle at 22% 0%, rgba(168, 85, 247, 0.13), transparent 38%),
      rgba(255, 255, 255, 0.055);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.3), 0 0 34px rgba(139, 75, 220, 0.12);
    transform: translateY(-6px);
  }
}

.static-form input:hover,
.static-form textarea:hover {
  border-color: rgba(183, 140, 255, 0.3);
}

.static-form input:focus-visible,
.static-form textarea:focus-visible {
  outline: 3px solid rgba(183, 140, 255, 0.34);
  outline-offset: 2px;
  border-color: rgba(216, 180, 254, 0.52);
  box-shadow: 0 0 0 6px rgba(139, 75, 220, 0.1);
}

.static-form input::placeholder,
.static-form textarea::placeholder {
  color: rgba(203, 213, 225, 0.62);
}

@media (max-width: 768px) {
  .page-card,
  .static-form {
    max-width: 100%;
  }

  .page-section,
  .subpage-hero {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .page-title,
  .subpage-hero h1 {
    max-width: 100%;
    font-size: clamp(2.18rem, 8.4vw, 3.35rem);
    line-height: 1.04;
    text-wrap: balance;
  }

  .page-lead,
  .subpage-lead {
    max-width: 100%;
    font-size: 0.98rem;
    line-height: 1.58;
  }

  .page-grid,
  .placeholder-grid,
  .offer-grid,
  .static-form {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .page-card,
  .placeholder-card,
  .offer-card {
    width: 100%;
    padding: 20px;
    transform: none;
  }

  .page-card.is-tapped,
  .placeholder-card.is-tapped,
  .offer-card.is-tapped {
    border-color: rgba(216, 180, 254, 0.42);
    background:
      radial-gradient(circle at 18% 0%, rgba(168, 85, 247, 0.18), transparent 42%),
      rgba(255, 255, 255, 0.065);
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.34), 0 0 30px rgba(139, 75, 220, 0.16);
    transform: translateY(-3px) scale(1.006);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
  }

  .static-form--premium {
    padding: 20px;
  }

  .static-form label {
    min-width: 0;
  }

  .static-form input,
  .static-form textarea {
    width: 100%;
    min-width: 0;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .page-section,
  .subpage-hero {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .page-title,
  .subpage-hero h1 {
    font-size: clamp(2rem, 10.6vw, 2.72rem);
    line-height: 1.06;
  }

  .page-lead,
  .subpage-lead {
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .page-card,
  .placeholder-card,
  .offer-card,
  .static-form--premium {
    padding: 18px;
    border-radius: 18px;
  }
}

@media (max-width: 390px) {
  .page-title,
  .subpage-hero h1 {
    font-size: clamp(1.82rem, 10vw, 2.34rem);
  }
}

.page-section,
.subpage-hero {
  background-color: transparent;
}

@keyframes icon-soft-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(183, 140, 255, 0);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(183, 140, 255, 0.08);
  }
}
