:root {
  --bg-start: #17181d;
  --bg-end: #242733;
  --card: rgba(16, 18, 24, 0.85);
  --card-border: rgba(255, 255, 255, 0.12);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.68);
  --muted-2: rgba(255, 255, 255, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 20%, rgba(95, 130, 255, 0.22), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(40, 207, 255, 0.2), transparent 40%),
    linear-gradient(160deg, var(--bg-start), var(--bg-end));
}

a[x-apple-data-detectors],
a[x-apple-data-detectors]:hover,
a[x-apple-data-detectors]:active,
a[x-apple-data-detectors]:visited {
  color: inherit !important;
  text-decoration: none !important;
  font-size: inherit !important;
  font-family: inherit !important;
  font-weight: inherit !important;
}

.toc-fab {
  position: fixed;
  left: 12px;
  bottom: 16px;
  z-index: 1200;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(16, 18, 24, 0.92);
  color: #fff;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.scroll-top {
  position: fixed;
  right: 12px;
  bottom: 16px;
  z-index: 1200;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(16, 18, 24, 0.92);
  color: #fff;
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(6px);
}

.scroll-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.offer-page {
  padding: 28px 16px 46px;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
  padding-bottom: max(46px, env(safe-area-inset-bottom));
}

.offer-shell {
  width: min(1220px, 100%);
  margin: 0 auto;
  border: 1px solid var(--card-border);
  border-radius: 26px;
  background: var(--card);
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  padding: clamp(20px, 3vw, 38px);
}

.offer-hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.logo {
  width: clamp(132px, 22vw, 220px);
  height: auto;
  margin-bottom: 16px;
  display: block;
}

.logo-link {
  display: inline-block;
  margin: 0 auto;
  border-radius: 14px;
  line-height: 0;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
  transform-origin: center center;
}

.logo-link:hover {
  transform: translateY(-2px) scale(1.01);
  opacity: 0.96;
  text-decoration: none;
}

h1 {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 36px);
  letter-spacing: 0.02em;
  text-align: center;
}

.hero-subtitle {
  margin: 10px auto 0;
  max-width: 840px;
  color: var(--muted);
  font-size: clamp(13px, 1.45vw, 17px);
  line-height: 1.45;
}

.hero-meta {
  margin-top: 10px;
  color: var(--muted-2);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.highlights {
  margin: 0 auto 14px;
}

.highlights h2 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.highlights-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.highlight-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 12px 12px;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.highlight-card .label {
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.3;
}

.highlight-card strong {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.offer-layout {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: start;
  margin-top: -12px;
}

.toc-sticky {
  position: static;
  top: auto;
  z-index: 20;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 10px 10px;
  background: rgba(255, 255, 255, 0.02);
  width: min(330px, 100%);
  max-height: none;
  overflow: visible;
  will-change: transform;
  transition: none;
}

.toc-sticky h3 {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.offer-toc nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.offer-toc a {
  color: rgba(255, 255, 255, 0.74);
  text-decoration: none;
  font-size: 14px;
  border-radius: 10px;
  padding: 7px 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.offer-toc a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.offer-toc a.active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.offer-content {
  max-width: 100%;
  min-width: 0;
}

.doc-section {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  padding: 22px 22px 24px;
  margin-bottom: 16px;
}

.doc-section h2 {
  margin: 0 0 16px;
  font-size: clamp(22px, 2.3vw, 30px);
  line-height: 1.2;
}

.doc-section p {
  margin: 0 0 12px;
  line-height: 1.86;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.doc-section ol {
  margin: 0;
  padding-left: 24px;
}

.doc-section li {
  margin: 0 0 14px;
  line-height: 1.88;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.doc-section li::marker {
  color: var(--muted-2);
  font-weight: 600;
}

.site-footer {
  text-align: center;
  padding: 16px 10px 24px;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-footer strong {
  font-size: 16px;
  letter-spacing: 0.03em;
}

.site-footer span {
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 1080px) {
  .offer-layout {
    margin-top: 0;
  }

  .toc-sticky {
    position: static;
    top: auto;
    max-height: none;
    overflow: visible;
  }

  .highlights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .offer-layout { gap: 10px; }

  .offer-content {
    max-width: 100%;
  }

  .toc-sticky { width: min(330px, 100%); }

  .offer-toc nav {
    flex-direction: column;
    flex-wrap: nowrap;
    overflow: visible;
    gap: 4px;
    padding-bottom: 0;
  }

  .offer-toc a {
    white-space: normal;
    border: 0;
    background: transparent;
  }
}

@media (min-width: 900px) {
  .offer-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    margin-top: 0;
  }

  .offer-toc {
    width: 100%;
  }

  .toc-sticky {
    position: static;
    top: auto;
    width: 100%;
    max-height: none;
    overflow: visible;
    align-self: flex-start;
  }

  .offer-content {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .offer-page {
    padding: 14px 10px 30px;
  }

  .toc-fab,
  .scroll-top {
    bottom: max(12px, env(safe-area-inset-bottom));
  }

  .scroll-top {
    width: 46px;
    height: 46px;
    right: 10px;
    font-size: 20px;
    line-height: 46px;
    border-width: 1px;
  }

  .offer-shell {
    border-radius: 20px;
    padding: 16px;
  }

  h1 { font-size: clamp(28px, 9vw, 38px); }

  .hero-subtitle { font-size: 15px; line-height: 1.46; }

  .hero-meta {
    font-size: 12px;
  }

  .highlights-grid { grid-template-columns: 1fr 1fr; }

  .highlight-card { min-height: 62px; padding: 9px 10px 10px; }

  .highlight-card strong { font-size: 15px; }

  .offer-layout {
    align-items: stretch;
  }

  .offer-toc {
    width: 100%;
  }

  .toc-sticky { padding: 10px 8px; width: 100%; }

  .offer-toc nav {
    width: 100%;
    gap: 8px;
  }

  .offer-toc a {
    display: block;
    width: 100%;
    font-size: 14px;
    line-height: 1.35;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    white-space: normal;
  }

  .offer-toc a:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .offer-toc a.active {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.25);
  }

  .doc-section {
    padding: 16px 14px 18px;
    margin-bottom: 12px;
  }

  .doc-section h2 {
    margin-bottom: 12px;
    font-size: clamp(20px, 6.4vw, 26px);
  }

  .doc-section ol {
    padding-left: 20px;
  }

  .doc-section p,
  .doc-section li {
    font-size: 15px;
    line-height: 1.76;
    margin-bottom: 10px;
  }
}

@media (max-width: 380px) {
  .offer-page {
    padding: 10px 8px 24px;
    padding-left: max(8px, env(safe-area-inset-left));
    padding-right: max(8px, env(safe-area-inset-right));
  }

  .offer-shell {
    border-radius: 16px;
    padding: 12px;
  }

  .doc-section {
    padding: 14px 12px 16px;
  }

  .scroll-top {
    width: 44px;
    height: 44px;
    right: 8px;
    font-size: 18px;
    line-height: 44px;
  }
}
