:root {
  --bs-blue: var(--site-shell-accent);
  --bs-blue-dark: var(--site-shell-accent-strong);
  --bs-blue-light: var(--site-shell-accent-soft);
  --bs-yellow: #f6ae42;
  --bs-dark: #212529;
  --bs-white: #ffffff;
  --sp-bg: var(--site-shell-bg);
  --sp-paper: var(--site-shell-paper);
  --sp-paper-2: var(--site-shell-paper-2);
  --sp-border: var(--site-shell-border);
  --sp-text: var(--site-shell-text);
  --sp-muted: var(--site-shell-muted);
  --sp-accent: var(--bs-blue);
  --sp-accent-dark: var(--bs-blue-dark);
  --sp-shadow: var(--site-shadow-card);
  --sp-soft-shadow: var(--site-shadow-soft);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--sp-text);
  font-family: var(--site-font-sans);
  font-size: var(--site-font-size-base);
  line-height: var(--site-line-height-base);
  background:
    radial-gradient(1200px 500px at 10% -5%, rgba(34, 158, 217, 0.08), transparent 60%),
    radial-gradient(900px 420px at 100% 0%, rgba(86, 183, 255, 0.08), transparent 55%),
    var(--sp-bg);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.sp-page-bg {
  padding: 1rem;
}

.sp-page-shell {
  max-width: 1320px;
  margin: 0 auto;
}

.landing-wrap {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--site-radius-shell);
  background: linear-gradient(180deg, rgba(247, 250, 252, 0.92), rgba(240, 245, 248, 0.96));
  box-shadow: var(--sp-shadow);
}

.hero-cover {
  position: relative;
  height: 230px;
  background:
    linear-gradient(180deg, rgba(19, 107, 153, 0.12), rgba(19, 107, 153, 0.28)),
    url("images/brand/cover.jpg") center center / cover no-repeat;
  border-bottom: 1px solid var(--sp-border);
}

.hero-cover::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 16px;
  background: radial-gradient(15px 10px at 12px 0, transparent 10px, var(--sp-paper) 11px) repeat-x;
  background-size: 24px 16px;
  opacity: 0.98;
}

.page-pad {
  padding: 0 1rem 1.5rem;
}

.page-head {
  margin-top: 0;
  padding: 1.5rem 0 1rem;
}

.hero-cover,
.avatar-wrap {
  display: none;
}

.page-head-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.page-head-grid > :last-child {
  padding-top: 0;
}

.avatar-wrap {
  position: relative;
  margin-top: -42px;
}

.avatar-img {
  width: 92px;
  height: 92px;
  border: 4px solid var(--sp-paper);
  border-radius: 50%;
  object-fit: cover;
  background: #dbeaf4;
  box-shadow: 0 8px 18px rgba(19, 107, 153, 0.18);
}

.page-kicker {
  margin: 0;
  color: var(--sp-muted);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-title {
  margin: 0.5rem 0 0;
  font-size: var(--site-title-page);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--sp-text);
}

.page-title .accent {
  color: var(--sp-accent);
}

.page-subline {
  max-width: 58rem;
  margin: 0.95rem 0 0;
  color: #334a58;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 600;
}

.doc-meta {
  margin-top: 0.85rem;
  color: var(--sp-muted);
  font-size: 0.96rem;
}

.doc-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.4rem;
}

.doc-panel {
  display: grid;
  gap: 1rem;
}

.doc-panel[hidden] {
  display: none !important;
}

.doc-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(19, 107, 153, 0.1);
  border-radius: var(--site-radius-pill);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 4px 12px rgba(19, 107, 153, 0.04);
  color: #2f4b60;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.doc-pill:hover,
.doc-pill:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(34, 158, 217, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 16px rgba(19, 107, 153, 0.08);
}

.doc-pill.is-current {
  border-color: rgba(34, 158, 217, 0.18);
  background: linear-gradient(180deg, rgba(34, 158, 217, 0.12), rgba(34, 158, 217, 0.06));
  color: var(--sp-accent-dark);
}

.content-wrap {
  display: grid;
  gap: 1rem;
}

.content-card {
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--site-radius-card);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.2));
  box-shadow: var(--sp-soft-shadow);
}

.section-title {
  margin: 0;
  color: var(--sp-text);
  font-size: var(--site-title-section);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.section-title .accent {
  color: var(--sp-accent);
}

.lead-sp {
  margin: 1rem 0 0;
  color: var(--sp-muted);
  font-size: 1.03rem;
  line-height: 1.7;
}

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

.section-title + .doc-grid {
  margin-top: 1.25rem;
}

.doc-note {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(34, 158, 217, 0.12);
  border-radius: calc(var(--site-radius-card) - 0.35rem);
  background: rgba(255, 255, 255, 0.75);
  color: #324858;
}

.doc-note strong {
  color: var(--sp-text);
}

.doc-note.warm {
  border-color: rgba(246, 174, 66, 0.2);
  background: linear-gradient(180deg, rgba(255, 248, 237, 0.88), rgba(255, 243, 222, 0.78));
}

.doc-contact-note {
  margin-top: 1rem;
}

.doc-body {
  margin-top: 1rem;
}

.doc-body p {
  margin: 0 0 1rem;
  color: #334a58;
}

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

.doc-body strong {
  color: var(--sp-text);
}

.doc-list {
  margin: 0;
  padding-left: 1.2rem;
  color: #334a58;
}

.doc-list li + li {
  margin-top: 0.5rem;
}

.doc-table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
}

.doc-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.82);
  border-radius: var(--site-radius-control);
  overflow: hidden;
}

.doc-table th,
.doc-table td {
  padding: 0.95rem 1rem;
  vertical-align: top;
  border-bottom: 1px solid rgba(19, 107, 153, 0.08);
  text-align: left;
}

.doc-table th {
  color: var(--sp-text);
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(34, 158, 217, 0.08);
}

.doc-table td {
  color: #334a58;
}

.doc-table tr:last-child td {
  border-bottom: 0;
}

.doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1rem;
}

.sp-cookie-banner {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 28px);
  z-index: 10020;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.4rem;
  width: min(1380px, calc(100vw - 48px));
  padding: 1.15rem 1.25rem 1.15rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 2.2rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 20px 42px rgba(19, 107, 153, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transform: translateX(-50%) translateY(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.sp-cookie-banner.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.sp-cookie-banner__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 108px;
  height: 108px;
  min-width: 108px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffd18f 0%, #f5a93f 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.45),
    0 14px 28px rgba(245, 169, 63, 0.3);
  color: #6a3d05;
}

.sp-cookie-banner__icon img {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.sp-cookie-banner__content {
  min-width: 0;
  flex: 1 1 auto;
  color: #324858;
  font-size: 1.08rem;
  line-height: 1.6;
  font-weight: 500;
}

.sp-cookie-banner__title {
  display: block;
  margin-bottom: 0.35rem;
  color: #40576c;
  font-size: clamp(1.35rem, 1.05rem + 0.9vw, 2.05rem);
  font-weight: 800;
  line-height: 1.15;
}

.sp-cookie-banner__content a {
  color: var(--sp-accent-dark);
  text-decoration: none;
  border-bottom: 1px dashed rgba(34, 158, 217, 0.42);
}

.sp-cookie-banner__content a:hover,
.sp-cookie-banner__content a:focus-visible {
  color: var(--sp-accent);
  border-bottom-color: rgba(34, 158, 217, 0.7);
  outline: none;
}

.sp-cookie-banner__actions {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.sp-cookie-banner__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(180px, 18vw, 250px);
  min-width: 180px;
  min-height: 82px;
  padding: 0.9rem 1.7rem;
  border: 0;
  border-radius: var(--site-radius-pill);
  background: linear-gradient(180deg, #2fa9eb 0%, #1577cf 100%);
  box-shadow:
    0 14px 28px rgba(19, 107, 153, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-size: clamp(1.02rem, 0.94rem + 0.22vw, 1.2rem);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sp-cookie-banner__button:hover,
.sp-cookie-banner__button:focus-visible {
  transform: translateY(-1px);
  box-shadow:
    0 18px 30px rgba(19, 107, 153, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  outline: none;
}

.doc-link {
  color: var(--sp-accent-dark);
  text-decoration: none;
  border-bottom: 1px dashed rgba(34, 158, 217, 0.42);
}

.doc-link:hover,
.doc-link:focus-visible {
  color: var(--sp-accent);
  border-bottom-color: rgba(34, 158, 217, 0.72);
}

.footer-note {
  padding: 1.25rem 0.2rem 0;
  color: var(--sp-muted);
}

.footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--sp-muted);
  text-decoration: none;
  border-bottom: 1px dashed rgba(34, 158, 217, 0.35);
  transition: color 0.16s ease, border-color 0.16s ease;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--sp-accent-dark);
  border-bottom-color: rgba(34, 158, 217, 0.72);
}

.footer-brand {
  color: var(--sp-text);
  font-weight: 700;
}

@media (min-width: 768px) {
  .hero-cover {
    height: 300px;
  }

  .page-pad {
    padding: 0 1.5rem 1.75rem;
  }

  .page-head {
    padding-bottom: 1.25rem;
  }

  .content-card {
    padding: 1.6rem;
  }
}

@media (max-width: 991.98px) {
  .doc-nav,
  .doc-grid {
    grid-template-columns: 1fr;
  }

  .sp-cookie-banner {
    grid-template-columns: auto minmax(0, 1fr);
    width: calc(100vw - 28px);
    padding: 0.95rem;
    gap: 0.95rem 1rem;
    border-radius: 1.85rem;
  }

  .sp-cookie-banner__icon {
    width: 76px;
    height: 76px;
    min-width: 76px;
  }

  .sp-cookie-banner__icon img {
    width: 38px;
    height: 38px;
  }

  .sp-cookie-banner__content {
    font-size: 0.99rem;
    line-height: 1.48;
  }

  .sp-cookie-banner__title {
    font-size: 1.2rem;
  }

  .sp-cookie-banner__actions {
    grid-column: 1 / -1;
  }

  .sp-cookie-banner__button {
    width: 100%;
    min-width: 0;
    min-height: 58px;
    padding: 0.85rem 1.1rem;
    font-size: 1rem;
  }
}

@media (max-width: 575.98px) {
  .sp-page-bg {
    padding: 0.7rem;
  }

  .landing-wrap {
    border-radius: 1.25rem;
  }

  .page-pad {
    padding: 0 0.85rem 1rem;
  }

  .sp-cookie-banner {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
    width: calc(100vw - 20px);
    padding: 0.8rem;
    gap: 0.75rem 0.8rem;
    border-radius: 1.45rem;
  }

  .page-head-grid {
    grid-template-columns: 1fr;
  }

  .page-head-grid > :last-child {
    padding-top: 0;
  }

  .avatar-wrap {
    margin-top: -34px;
  }

  .avatar-img {
    width: 82px;
    height: 82px;
  }

  .sp-cookie-banner__icon {
    width: 58px;
    height: 58px;
    min-width: 58px;
  }

  .sp-cookie-banner__icon img {
    width: 30px;
    height: 30px;
  }

  .sp-cookie-banner__content {
    font-size: 0.92rem;
    line-height: 1.42;
  }

  .sp-cookie-banner__title {
    margin-bottom: 0.25rem;
    font-size: 1.04rem;
  }

  .sp-cookie-banner__button {
    min-height: 50px;
    padding: 0.78rem 0.95rem;
    font-size: 0.95rem;
  }

  .doc-table {
    min-width: 560px;
  }

  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}
