
:root {
  --bg: #081120;
  --bg-soft: #f3f7fb;
  --bg-soft-2: #eef4fb;
  --surface-solid: #ffffff;
  --surface-dark: rgba(255, 255, 255, 0.06);
  --text: #0f172a;
  --text-light: #e2e8f0;
  --muted: #5f6f85;
  --line: rgba(148, 163, 184, 0.20);
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #0f766e;
  --shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 18px 48px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 30px 70px rgba(2, 6, 23, 0.30);
  --radius: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.narrow {
  width: min(calc(100% - 2rem), 840px);
}

.section {
  padding: 5.75rem 0;
}

.section-soft {
  background: linear-gradient(180deg, #f8fbff 0%, var(--bg-soft) 100%);
}

.section-tag,
.eyebrow,
.mini-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--primary);
}

.section-tag::before,
.eyebrow::before,
.mini-tag::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.08);
}

h1,
h2,
h3 {
  margin: 0 0 1rem;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(2.7rem, 4.5vw, 4.8rem);
  color: #ffffff;
  max-width: 11ch;
}

h2 {
  font-size: clamp(2rem, 3vw, 3.2rem);
  max-width: 15ch;
}

h3 {
  font-size: 1.28rem;
}

p {
  margin: 0 0 1rem;
}

strong {
  font-weight: 800;
}

.lead,
.section-intro,
.legal-intro {
  font-size: 1.08rem;
}

.lead {
  max-width: 700px;
  color: rgba(226, 232, 240, 0.92);
}

.section-intro {
  max-width: 820px;
  color: var(--muted);
  margin-bottom: 1.75rem;
}



.skip-link {
  position: fixed;
  top: 0.9rem;
  left: 1rem;
  z-index: 80;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: #ffffff;
  color: var(--text);
  font-weight: 800;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

main[id],
section[id],
article[id] {
  scroll-margin-top: 108px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(8, 17, 32, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-wrap {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: #ffffff;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), #3b82f6 70%, var(--accent));
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.28);
}

.brand-text {
  font-size: 1rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.nav a {
  color: rgba(255, 255, 255, 0.84);
  font-weight: 600;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: #ffffff;
}

.nav-cta {
  padding: 0.8rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  width: 48px;
  height: 48px;
  margin-left: auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.is-menu-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.is-menu-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-menu-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.28), transparent 34%),
    radial-gradient(circle at 90% 30%, rgba(15, 118, 110, 0.20), transparent 24%),
    linear-gradient(180deg, #0b1327 0%, #081120 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent 25%, rgba(255,255,255,0.01));
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -14% -120px auto;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15), transparent 68%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.9fr);
  gap: 2rem;
  align-items: center;
  min-height: calc(100vh - 80px);
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.95rem 1.35rem;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn:focus-visible,
.nav-cta:focus-visible,
.footer-links a:focus-visible,
.footer-brand:focus-visible,
.footer-contact a:focus-visible,
summary:focus-visible,
.back-to-top:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.6);
  outline-offset: 3px;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(180deg, #2f6df4 0%, var(--primary-dark) 100%);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 32px rgba(29, 78, 216, 0.26);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 18px 34px rgba(29, 78, 216, 0.30);
}

.btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.24);
}

.btn-full {
  width: 100%;
}

.hero-points {
  padding: 0;
  margin: 1.5rem 0 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-points li {
  padding: 0.72rem 0.98rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-light);
  font-size: 0.95rem;
}

.hero-card,
.card,
.timeline-item,
details {
  background: var(--surface-solid);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(226, 232, 240, 0.85);
}

.card,
.timeline-item,
details,
.hero-card {
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.card:hover,
.timeline-item:hover,
details:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(191, 219, 254, 0.95);
}

.hero-card {
  padding: 2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255,255,255,0.07) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
}

.hero-card h2,
.hero-card p,
.hero-card dt,
.hero-card dd {
  color: #ffffff;
}


.hero-card dl {
  margin: 1.5rem 0 0;
}

.hero-card dl > div {
  padding: 0.95rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.hero-card dt {
  font-size: 0.9rem;
  opacity: 0.72;
}

.hero-card dd {
  margin: 0.35rem 0 0;
  font-weight: 700;
}

.profile-portrait-wrap {
  max-width: 248px;
  margin: 0 auto 1.35rem;
  padding: 0.4rem;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.20) 0%, rgba(255,255,255,0.08) 100%);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.profile-portrait {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 22px;
  background: #0b1327;
}

.cards {
  display: grid;
  gap: 1.25rem;
}

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

.card {
  padding: 1.7rem;
}



.four-cols {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.location-grid .card,
.service-grid .service-card,
.method-note .card {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.service-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.25rem;
}

.service-card h3 {
  max-width: 22ch;
}

.method-note {
  margin-top: 1.25rem;
}

.card p:last-child,
.timeline-item p:last-child,
.legal-card p:last-child {
  margin-bottom: 0;
}

.split-block {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.accent-card {
  background: linear-gradient(180deg, #eff6ff 0%, #f8fbff 100%);
  border-color: rgba(37, 99, 235, 0.16);
}

.check-list,
.plain-list,
.legal-list {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.check-list li,
.plain-list li,
.legal-list li {
  margin-bottom: 0.7rem;
}


.cert-list {
  gap: 1rem;
}

.cert-list-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 1.35rem;
  align-items: start;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.cert-year {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0.75rem 1rem;
  border-radius: 18px;
  background: #eff6ff;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cert-content {
  min-width: 0;
}
.cert-badge-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.cert-badge {
  width: 100%;
  max-width: 96px;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.cert-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.55rem;
}

.cert-head h3 {
  margin-bottom: 0;
  max-width: 42ch;
}

.cert-kind {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: #eef2ff;
  border: 1px solid rgba(99, 102, 241, 0.14);
  color: #3730a3;
  font-size: 0.84rem;
  font-weight: 800;
}

.cert-kind-training {
  background: #ecfeff;
  border-color: rgba(8, 145, 178, 0.14);
  color: #155e75;
}

.cert-org {
  margin-bottom: 0.7rem;
  color: var(--muted);
  font-weight: 700;
}

.cert-inline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.cert-inline-meta span {
  padding: 0.6rem 0.8rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.96);
  color: #334155;
  font-size: 0.9rem;
  font-weight: 700;
}

.method-grid .card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.step-card {
  padding-top: 4.15rem;
}

.step-index {
  position: absolute;
  top: 1.35rem;
  left: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 34px;
  padding: 0 0.8rem;
  border-radius: 999px;
  background: #e8f0fe;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 800;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  padding: 1.6rem;
  position: relative;
}

.timeline-date {
  display: inline-block;
  margin-bottom: 0.7rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--primary);
  font-weight: 800;
  font-size: 0.85rem;
}

.timeline-role {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.timeline-item h3 {
  margin-bottom: 0.85rem;
}

.timeline-list {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: #334155;
}

.timeline-list li {
  margin-bottom: 0.55rem;
}

.timeline-intro {
  max-width: 860px;
  margin-bottom: 1.4rem;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.chips span {
  padding: 0.85rem 1rem;
  border: 1px solid #dbe4f0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  font-weight: 700;
  color: #1e293b;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.faq-section details {
  padding: 1.15rem 1.25rem;
  margin-bottom: 1rem;
}

.faq-section summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-section summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--primary);
  line-height: 1;
}

.faq-section details[open] summary::after {
  content: "−";
}

.faq-section summary::-webkit-details-marker {
  display: none;
}

.faq-section details p {
  margin-top: 1rem;
  color: var(--muted);
}

.contact-section {
  background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 1.5rem;
  align-items: stretch;
}

.contact-card {
  padding: 1.8rem;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.contact-card p:first-child {
  font-size: 1.1rem;
}

.contact-card p a[href^="mailto:"] {
  color: var(--primary);
  font-weight: 800;
}

.contact-card .btn[href^="mailto:"] {
  color: #ffffff;
}


.form-status {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.95rem;
  align-items: start;
  margin: 0 0 1rem;
  padding: 1rem 1.05rem;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.06);
  animation: statusReveal 0.28s ease;
}

.form-status-icon {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  font-weight: 900;
  font-size: 1rem;
  flex-shrink: 0;
}

.form-status-body {
  min-width: 0;
}

.form-status-title,
.form-status-text {
  margin: 0;
}

.form-status-title {
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.18rem;
}

.form-status-text {
  color: inherit;
  line-height: 1.55;
}

.form-status a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.14em;
  font-weight: 800;
}

.form-status.is-success {
  background: linear-gradient(180deg, #ecfdf5 0%, #f7fff9 100%);
  border-color: rgba(16, 185, 129, 0.28);
  color: #166534;
}

.form-status.is-success .form-status-icon {
  background: rgba(16, 185, 129, 0.14);
  color: #15803d;
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.16);
}

.form-status.is-error {
  background: linear-gradient(180deg, #fff1f2 0%, #fff8f8 100%);
  border-color: rgba(239, 68, 68, 0.22);
  color: #991b1b;
}

.form-status.is-error .form-status-icon {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
  box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.14);
}

@keyframes statusReveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-form {
  display: grid;
  gap: 0.95rem;
  margin-top: 1.25rem;
}

.form-row {
  display: grid;
  gap: 0.45rem;
}

.form-row label {
  font-weight: 800;
  color: #0f172a;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  background: #ffffff;
  color: #0f172a;
  padding: 0.9rem 1rem;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-row textarea {
  min-height: 150px;
  resize: vertical;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: #7b8798;
}

.form-row input:hover,
.form-row textarea:hover {
  border-color: rgba(37, 99, 235, 0.25);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.65);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
  background: #ffffff;
}

.contact-form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.form-note a {
  color: var(--primary-dark);
  font-weight: 700;
}

.legal-main {
  background: #ffffff;
}

.legal-hero {
  background: linear-gradient(180deg, #0b1327 0%, #081120 100%);
  color: #ffffff;
}

.legal-title {
  color: #ffffff;
  max-width: none;
}

.legal-intro {
  max-width: 760px;
  color: rgba(226, 232, 240, 0.9);
}

.legal-section {
  padding-top: 3.5rem;
}

.legal-stack {
  display: grid;
  gap: 1rem;
}

.legal-card h2 {
  font-size: 1.35rem;
  max-width: none;
}

.legal-card a,
.footer-bottom a,
.footer-contact a {
  color: var(--primary);
}

.site-footer {
  padding: 0;
  background: linear-gradient(180deg, #091222 0%, #07101d 100%);
  color: rgba(226, 232, 240, 0.82);
  border-top: 1px solid rgba(148, 163, 184, 0.10);
}

.footer-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(260px, 0.9fr);
  gap: 1.5rem;
  padding: 2.5rem 0 1.5rem;
  align-items: start;
}

.footer-column {
  min-width: 0;
}

.footer-branding {
  display: grid;
  gap: 0.55rem;
}

.footer-brand {
  font-size: 1.08rem;
  font-weight: 800;
  color: #ffffff;
}

.footer-description,
.footer-contact p {
  margin: 0;
  color: rgba(226, 232, 240, 0.66);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.7rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-links a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(148, 163, 184, 0.24);
  transform: translateY(-1px);
}

.footer-contact {
  display: grid;
  gap: 0.55rem;
  justify-items: start;
}

.footer-contact a {
  color: #ffffff;
  font-weight: 700;
}

.footer-bottom {
  padding: 1rem 0 2.2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.10);
  color: rgba(226, 232, 240, 0.60);
  font-size: 0.95rem;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 980px) {
  .hero-grid,
  .three-cols,
  .four-cols,
  .split-block,
  .service-grid,
  .cert-grid,
  .contact-grid,
  .footer-shell {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    padding: 4rem 0 2rem;
  }

  .nav-wrap {
    padding: 0.9rem 0;
    align-items: flex-start;
  }

  .nav {
    justify-content: flex-end;
  }

  h2 {
    max-width: none;
  }

  .cert-meta {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 4.25rem 0;
  }

  .back-to-top {
    right: 0.9rem;
    bottom: 0.9rem;
    padding: 0.82rem;
  }

  .back-to-top span:last-child {
    display: none;
  }

  .nav-wrap {
    flex-wrap: wrap;
    align-items: center;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    width: 100%;
    margin-top: 0.9rem;
    padding: 0.6rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 18px;
    background: rgba(8, 17, 32, 0.96);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.34);
  }

  .site-header.is-menu-open .nav {
    display: flex;
  }

  .nav a {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 0.8rem 0.95rem;
    border-radius: 12px;
  }

  .nav-cta {
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 1.9rem;
  }

  .hero-card,
  .card,
  .timeline-item,
  .faq-section details,
  .cert-meta > div {
    border-radius: 20px;
  }
}


/* Legal pages refinement */
body.legal-page {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.06), transparent 28%),
    linear-gradient(180deg, #f7faff 0%, #ffffff 26%);
}

.legal-page .legal-main {
  background: transparent;
}

.legal-page .legal-hero {
  position: relative;
  overflow: hidden;
  padding: 4.75rem 0 3.2rem;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.22), transparent 26%),
    radial-gradient(circle at 88% 18%, rgba(15, 118, 110, 0.18), transparent 20%),
    linear-gradient(180deg, #0b1327 0%, #081120 100%);
}

.legal-page .legal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent 30%);
  pointer-events: none;
}

.legal-page .legal-hero .container {
  position: relative;
  z-index: 1;
}

.legal-page .legal-title {
  margin-bottom: 1rem;
  font-size: clamp(2.4rem, 4vw, 4rem);
}

.legal-page .legal-intro {
  margin-bottom: 0;
  max-width: 780px;
}

.legal-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.legal-summary-card {
  padding: 1.15rem 1.2rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.16);
}

.legal-summary-card span {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(191, 219, 254, 0.95);
}

.legal-summary-card strong,
.legal-summary-card a,
.legal-summary-card p {
  color: #ffffff;
}

.legal-summary-card p {
  margin: 0;
}

.legal-shell {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 1.4rem;
  align-items: start;
}

.legal-aside {
  position: sticky;
  top: 106px;
}

.legal-panel {
  padding: 1.3rem;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: var(--shadow-sm);
}

.legal-panel + .legal-panel {
  margin-top: 1rem;
}

.legal-panel-title {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.legal-toc {
  display: grid;
  gap: 0.5rem;
}

.legal-toc a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 42px;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  color: #1e293b;
  font-weight: 700;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.legal-toc a::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.10);
  flex: 0 0 auto;
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.legal-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

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

.legal-page .legal-card {
  padding: 1.55rem 1.6rem;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: var(--shadow-sm);
}

.legal-page .legal-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.legal-card-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.legal-card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 46px;
  padding: 0 0.8rem;
  border-radius: 16px;
  background: linear-gradient(180deg, #e8f0fe 0%, #dbeafe 100%);
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.legal-card-head h2 {
  margin: 0;
  font-size: 1.26rem;
  line-height: 1.2;
}

.legal-meta {
  display: grid;
  gap: 0.9rem;
}

.legal-meta-row {
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
  gap: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(226, 232, 240, 0.85);
}

.legal-meta-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.legal-meta-row dt {
  font-weight: 800;
  color: #334155;
}

.legal-meta-row dd {
  margin: 0;
  color: #0f172a;
}

.legal-highlight {
  margin-top: 1rem;
  padding: 1rem 1.05rem;
  border-radius: 16px;
  background: linear-gradient(180deg, #eff6ff 0%, #f8fbff 100%);
  border: 1px solid rgba(37, 99, 235, 0.14);
}

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

.legal-page .legal-list {
  margin-top: 0.75rem;
}

.legal-page .legal-list li {
  margin-bottom: 0.8rem;
  color: #334155;
}

.legal-page .legal-card > p,
.legal-page .legal-card > ul,
.legal-page .legal-card > dl,
.legal-page .legal-card > div {
  max-width: 860px;
}

.legal-page .legal-card a {
  color: var(--primary-dark);
  font-weight: 700;
}

.legal-page .site-footer {
  margin-top: 2rem;
}

.legal-page .footer-bottom {
  justify-content: center;
}

@media (max-width: 980px) {
  .legal-summary,
  .legal-shell {
    grid-template-columns: 1fr;
  }

  .legal-aside {
    position: static;
  }
}

@media (max-width: 720px) {
  .legal-page .legal-hero {
    padding: 3.8rem 0 2.7rem;
  }

  .legal-card-head {
    flex-direction: column;
  }

  .legal-meta-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .legal-summary-card,
  .legal-panel,
  .legal-page .legal-card,
  .cert-meta > div {
    border-radius: 18px;
  }
}


.back-to-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.78rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(11, 19, 39, 0.92);
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 18px 34px rgba(2, 6, 23, 0.24);
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  transform: translateY(-2px);
  background: rgba(15, 23, 42, 0.98);
  border-color: rgba(191, 219, 254, 0.34);
  box-shadow: 0 22px 42px rgba(2, 6, 23, 0.30);
}

.back-to-top span:first-child {
  font-size: 1rem;
  line-height: 1;
}


@media (max-width: 720px) {
  .back-to-top {
    right: 0.9rem;
    bottom: 0.9rem;
    padding: 0.82rem;
  }

  .back-to-top span:last-child {
    display: none;
  }
}

@media (max-width: 820px) {
  .cert-list-item {
    grid-template-columns: 1fr;
  }

  .cert-year {
    justify-self: start;
  }

  .cert-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .cert-head h3 {
    max-width: none;
  }

  .cert-badge-row {
    grid-template-columns: 1fr;
  }

  .cert-badge {
    max-width: 82px;
  }
}


.contact-return-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: linear-gradient(180deg, #0b1327 0%, #081120 100%);
}

.contact-return-shell {
  width: min(100%, 760px);
}

.contact-return-card {
  padding: 2rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 30px 70px rgba(2, 6, 23, 0.30);
  text-align: center;
}

.contact-return-title {
  color: var(--text);
  max-width: none;
}

.contact-return-text,
.contact-return-note {
  color: var(--muted);
}

.contact-return-actions {
  margin: 1.5rem 0 1rem;
  display: flex;
  justify-content: center;
}

.contact-return-card.is-success {
  border: 1px solid rgba(15, 118, 110, 0.24);
}

.contact-return-card.is-error {
  border: 1px solid rgba(239, 68, 68, 0.18);
}


/* Dedicated service landing page */
.service-summary .legal-summary-card {
  min-height: 124px;
}

.service-mini-grid {
  margin-top: 1rem;
}

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

.service-mini-card {
  padding: 1.2rem 1.2rem 1.15rem;
  border-radius: 18px;
  box-shadow: none;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.service-mini-card h3 {
  margin-bottom: 0.55rem;
  font-size: 1.02rem;
}

.compact-list li {
  margin-bottom: 0.5rem;
}

.service-audience-grid {
  margin-top: 0.35rem;
}

.service-chips {
  margin-top: 1rem;
}

.service-method-grid {
  margin-top: 0.4rem;
}

.service-page .legal-card details {
  padding: 1rem 1.05rem;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(226, 232, 240, 0.95);
}

.service-page .legal-card details + details {
  margin-top: 0.8rem;
}

.service-page .legal-card summary {
  cursor: pointer;
  font-weight: 800;
  color: #0f172a;
}

.service-page-cta {
  margin-top: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.3rem 1.4rem;
  border-radius: 22px;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fbff 52%, #eefcfb 100%);
  border: 1px solid rgba(96, 165, 250, 0.22);
}

.service-page-cta h3 {
  margin-bottom: 0.35rem;
}

.service-page-cta p:last-child {
  margin-bottom: 0;
}

.service-page-cta-inline {
  margin-top: 1rem;
}

.service-page .service-page-cta .btn,
.service-page .service-page-cta .btn:visited,
.legal-page .service-page-cta .btn,
.legal-page .service-page-cta .btn:visited {
  color: #ffffff;
}

@media (max-width: 860px) {
  .two-cols {
    grid-template-columns: 1fr;
  }

  .service-page-cta {
    flex-direction: column;
    align-items: stretch;
  }
}
