.subpage {
  --page-muted: #afb0bf;
  --page-lime: #b0ff00;
  --page-line: #30303b;
  --page-card: #16161f;
  --page-surface: #111118;
  --page-purple: #c285ff;
  color: #f5f4fb;
  min-height: 65vh;
  padding: 1.8rem 0 clamp(3.5rem, 8vw, 7rem);
}

.subpage-container {
  min-width: 0;
}

.subpage-head {
  position: relative;
  isolation: isolate;
  border: 1px solid var(--page-line);
  border-radius: 1.45rem;
  overflow: hidden;
  padding: clamp(1.3rem, 4.2vw, 3.6rem);
  margin: 0 0 clamp(1.5rem, 3.5vw, 2.8rem);
  background: linear-gradient(118deg, #14131e 45%, #211334 82%, #242d13);
}

.subpage-head::after {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: min(54%, 560px);
  background:
    radial-gradient(ellipse at right bottom, #9f6df126, transparent 68%),
    repeating-linear-gradient(132deg, transparent 0 68px, #fff1 69px 70px, transparent 71px 128px);
  mask-image: linear-gradient(to left, #000, transparent);
  content: "";
  pointer-events: none;
}

.breadcrumbs {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: clamp(1rem, 3vw, 2.2rem);
  color: var(--page-muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  color: var(--page-lime);
}

.breadcrumbs [aria-current] {
  color: #f5f4fb;
}

.page-kicker {
  margin: 0 0 0.45rem;
  color: var(--page-lime);
  font-size: 0.875rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.page-heading {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.15rem, 7vw, 4.65rem);
  font-weight: 830;
  letter-spacing: -0.055em;
  line-height: 1.05;
  text-wrap: balance;
}

.page-intro {
  max-width: 39rem;
  margin: 1.1rem 0 0;
  color: var(--page-muted);
  font-size: clamp(1rem, 2vw, 1.14rem);
  line-height: 1.55;
}

.page-toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 0.85rem;
  padding: max(1rem, 2vw);
  border: 1px solid var(--page-line);
  border-radius: 1rem;
  background: var(--page-surface);
}

.page-toolbar-single {
  grid-template-columns: minmax(0, 18rem);
  margin-bottom: 1.4rem;
}

.page-toolbar label {
  display: grid;
  gap: 0.45rem;
  color: #eeedf5;
  font-size: 0.875rem;
  font-weight: 650;
}

.page-toolbar select {
  min-width: 0;
  width: 100%;
  min-height: 2.9rem;
  padding: 0.68rem 2.4rem 0.68rem 0.85rem;
  border: 1px solid var(--page-line);
  border-radius: 0.55rem;
  background: var(--page-card);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23afafbe' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  color: #f6f5fb;
  font: inherit;
  appearance: none;
}

.page-toolbar select:focus-visible,
.page-reset:focus-visible {
  outline: 2px solid var(--page-lime);
  outline-offset: 2px;
}

.page-reset {
  min-height: 2.9rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--page-line);
  border-radius: 0.55rem;
  background: transparent;
  color: var(--page-muted);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}

.page-reset:hover {
  color: #f6f5fb;
  border-color: var(--page-muted);
}

.page-result {
  margin: 1.25rem 0;
  color: var(--page-muted);
  min-height: 1.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.page-note {
  margin: 1.45rem 0 0;
  color: var(--page-muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.page-section {
  margin-top: clamp(2.2rem, 5.2vw, 4.75rem);
}

.page-section h2 {
  margin: 0 0 1.2rem;
  font-size: clamp(1.45rem, 4vw, 2.35rem);
  letter-spacing: -0.04em;
  line-height: 1.14;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.05rem;
}

.legal-grid {
  display: grid;
  grid-template-columns: minmax(11.75rem, 15rem) minmax(0, 1fr);
  gap: clamp(1.1rem, 3.2vw, 2.6rem);
  align-items: start;
}

.legal-nav {
  display: grid;
  gap: 0.2rem;
  padding: 0.55rem;
  border: 1px solid var(--page-line);
  border-radius: 0.9rem;
  background: var(--page-surface);
}

.legal-nav a {
  display: block;
  min-height: 2.75rem;
  padding: 0.75rem 0.65rem;
  border-radius: 0.55rem;
  color: var(--page-muted);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.legal-nav a:hover {
  color: #f5f4fb;
  background: #252333;
}

.legal-nav [aria-current] {
  background: #b0ff0014;
  color: var(--page-lime);
}

.prose {
  width: 100%;
  border: 1px solid var(--page-line);
  border-radius: 0.9rem;
  padding: clamp(1.2rem, 4vw, 2.9rem);
  background: var(--page-surface);
  line-height: 1.65;
}

.prose h2 {
  margin: 1.8rem 0 0.5rem;
  font-size: clamp(1.23rem, 2.5vw, 1.6rem);
  line-height: 1.25;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  max-width: 70ch;
  margin: 0 0 0.75rem;
  color: var(--page-muted);
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose a {
  color: var(--page-lime);
  text-underline-offset: 0.2em;
}

.contact-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.contact-actions .button:not([hidden]) {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid #b0ff0060;
  border-radius: 0.6rem;
  background: #b0ff0010;
  color: var(--page-lime);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.contact-actions .button:hover {
  background: var(--page-lime);
  color: #11150a;
}

.section-empty {
  grid-column: 1 / -1;
  padding: 1.5rem;
  border: 1px dashed var(--page-line);
  border-radius: 0.9rem;
  color: var(--page-muted);
  text-align: center;
}

@media (max-width: 760px) {
  .page-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-toolbar-single {
    grid-template-columns: minmax(0, 1fr);
  }
  .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .legal-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .legal-nav {
    display: flex;
    flex-wrap: wrap;
  }
}

@media (max-width: 420px) {
  .content-grid,
  .page-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }
}

.product-crumbs {
  margin-top: 0.3rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.15rem, 4.3vw, 4.5rem);
  padding: clamp(1.15rem, 4.3vw, 3.5rem);
  border: 1px solid var(--page-line);
  border-radius: 1.45rem;
  background: linear-gradient(120deg, var(--page-surface), #151422);
}

.detail-media {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 0.9rem;
  background: #1b1928;
}

.detail-image {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.detail-media .offer-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
}

.detail-body {
  min-width: 0;
}

.detail-body h1 {
  margin: 0.68rem 0;
  font-size: clamp(2rem, 4.3vw, 3.5rem);
  font-weight: 830;
  letter-spacing: -0.06em;
  line-height: 1.08;
  text-wrap: balance;
}

.detail-body .offer-description {
  margin-bottom: 1.15rem;
  color: var(--page-muted);
  font-size: 1rem;
  line-height: 1.5;
}

.detail-body .offer-price {
  font-size: clamp(1.45rem, 3.2vw, 2.3rem);
}

.detail-body .offer-actions {
  margin-top: 1.1rem;
}

.detail-body .offer-validity,
.detail-note {
  margin-top: 0.75rem;
  color: var(--page-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.course-card,
.coupon-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--page-line);
  border-radius: 1rem;
  background: var(--page-card);
}

.course-card .offer-body,
.coupon-card .offer-body {
  flex: 1;
}

.course-image,
.course-placeholder {
  width: 100%;
  aspect-ratio: 2 / 1;
}

.course-image {
  display: block;
  object-fit: cover;
}

.course-placeholder {
  display: grid;
  place-items: center;
  border-bottom: 1px solid #67409775;
  background: radial-gradient(ellipse at center, #a855f740, transparent 75%), linear-gradient(135deg, #261538, #171626);
  color: var(--page-purple);
}

.course-placeholder svg {
  width: 3.25rem;
  height: 3.25rem;
}

.course-availability {
  color: var(--page-muted);
  font-size: 0.875rem;
}

.coupon-card {
  gap: 0.75rem;
  padding: 1.15rem;
}

.coupon-card .offer-title,
.course-card .offer-title {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.25;
}

.coupon-card .offer-description,
.course-card .offer-description {
  color: var(--page-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.coupon-info {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding-left: 1.15rem;
  color: var(--page-muted);
  font-size: 0.875rem;
}

.coupon-code {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.coupon-code code {
  padding: 0.35rem 0.55rem;
  border-radius: 0.3rem;
  background: #312044;
  color: #ebd3ff;
  overflow-wrap: anywhere;
}

.coupon-copy {
  min-height: 2.55rem;
  padding: 0.38rem 0.65rem;
  border: 1px solid #b0ff0060;
  border-radius: 0.5rem;
  background: #b0ff0010;
  color: var(--page-lime);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}

.coupon-copy:hover:not(:disabled) {
  background: var(--page-lime);
  color: #11150a;
}

.subpage .empty-state {
  display: grid;
  justify-items: center;
  grid-column: 1 / -1;
  gap: 0.65rem;
  padding: clamp(1.4rem, 5vw, 3rem) 1.2rem;
  border: 1px dashed var(--page-line);
  border-radius: 0.9rem;
  background: var(--page-surface);
  text-align: center;
}

.subpage .empty-state .empty-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.65rem;
  background: #2a1e3b;
  color: var(--page-purple);
}

.subpage .empty-state h2,
.subpage .empty-state p {
  margin: 0;
}

.subpage .empty-state h2 {
  font-size: 1.23rem;
}

.subpage .empty-state p {
  max-width: 42ch;
  color: var(--page-muted);
  line-height: 1.55;
}

@media (max-width: 760px) {
  .detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.desktop-nav [aria-current="location"],
.mobile-nav [aria-current="location"] {
  color: var(--lime);
}

.subpage .category-name {
  overflow-wrap: anywhere;
}

.detail-body .offer-actions {
  flex-wrap: wrap;
  align-items: stretch;
}

.detail-body .offer-favorite {
  position: static;
  width: 2.8125rem;
  height: auto;
  min-height: 2.8125rem;
}

.detail-body .offer-validity,
.coupon-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.detail-body .offer-validity svg,
.coupon-copy svg {
  flex: none;
  width: 1rem;
  height: 1rem;
}

.detail-body .coupon-code {
  margin-top: 0.85rem;
}

@media (max-width: 400px) {
  .subpage .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.prose p a {
  text-decoration: underline;
  text-decoration-thickness: 0.07em;
}
