:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-muted: #eef2f8;
  --text: #122033;
  --text-muted: #4d5e74;
  --brand: #0f5fb5;
  --brand-strong: #0b4f95;
  --accent: #0f8f87;
  --border: #d7dfec;
  --shadow: 0 20px 45px rgba(8, 28, 55, 0.12);
  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Source Sans 3', 'Noto Sans', sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 100% -5%, rgba(15, 143, 135, 0.11), transparent 60%),
    radial-gradient(900px 500px at -5% 10%, rgba(15, 95, 181, 0.16), transparent 58%),
    var(--bg);
  line-height: 1.6;
}

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

a {
  color: var(--brand);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand-strong);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
.btn:focus-visible,
.menu-toggle:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 2px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(246, 248, 251, 0.9);
  border-bottom: 1px solid rgba(22, 43, 70, 0.08);
}

.topbar,
.nav-wrap,
.section,
.quote-block,
.site-footer,
.page-hero__content,
.hero__content {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.4rem 0;
  font-size: 0.94rem;
  color: var(--text-muted);
}

.topbar p {
  margin: 0;
  font-weight: 600;
}

.topbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.topbar__actions a {
  text-decoration: none;
  font-weight: 600;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.3rem;
  padding: 0.85rem 0 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.brand span {
  display: grid;
  line-height: 1.2;
  min-width: 0;
}

.brand strong {
  font-family: 'Manrope', 'Source Sans 3', sans-serif;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand small {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.menu-toggle {
  display: none;
  width: 52px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.primary-nav li a {
  text-decoration: none;
  padding: 0.7rem 0.9rem;
  border-radius: 9px;
  color: var(--text);
  font-weight: 600;
}

.primary-nav li a:hover,
.primary-nav li a.is-active,
.primary-nav li a[aria-current='page'] {
  background: rgba(15, 95, 181, 0.12);
  color: #09345f;
}

.language-switcher {
  position: relative;
}

.language-switcher summary {
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  font-weight: 600;
  background: var(--surface);
}

.language-switcher summary::-webkit-details-marker {
  display: none;
}

.language-switcher ul {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  display: grid;
  min-width: 150px;
  overflow: hidden;
  z-index: 20;
}

.language-switcher li {
  list-style: none;
}

.language-switcher a {
  display: block;
  text-decoration: none;
  color: var(--text);
  padding: 0.55rem 0.8rem;
}

.language-switcher a:hover,
.language-switcher a[aria-current='true'] {
  background: rgba(15, 95, 181, 0.12);
}

main {
  padding-bottom: 2rem;
}

.hero,
.page-hero {
  position: relative;
  min-height: clamp(450px, 66vh, 670px);
  display: grid;
  align-items: center;
  overflow: clip;
  border-bottom: 1px solid rgba(22, 43, 70, 0.1);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(9, 20, 34, 0.8), rgba(9, 20, 34, 0.5)), var(--hero) center/cover;
}

.hero__content,
.page-hero__content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding-block: clamp(3rem, 7vw, 6.3rem);
  max-width: 880px;
}

.page-hero__content {
  max-width: 900px;
}

.eyebrow {
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-size: 0.9rem;
  font-weight: 700;
  color: #bfe0ff;
}

h1,
h2,
h3,
h4 {
  font-family: 'Manrope', 'Source Sans 3', sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.7rem;
}

h1 {
  font-size: clamp(1.95rem, 4vw, 3.45rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
}

h3 {
  font-size: clamp(1.15rem, 2.1vw, 1.5rem);
}

p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.hero__content p,
.page-hero__content p {
  color: rgba(242, 246, 252, 0.96);
  max-width: 70ch;
}

.checklist {
  margin: 1rem 0 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.checklist li {
  position: relative;
  padding-left: 1.55rem;
  color: #f1f6fe;
}

.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #9ee7c9;
  font-weight: 700;
}

.breadcrumbs {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.breadcrumbs a,
.breadcrumbs span {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: #fff;
  text-decoration: underline;
}

.section {
  padding: clamp(2.2rem, 4vw, 3.6rem) 0;
}

.section__head {
  margin-bottom: 1rem;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.cert-card,
.info-card,
.cert-side,
.cert-content section,
.quote-block,
.trust,
.final-cta,
.map-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(12, 27, 44, 0.07);
}

.cert-card,
.info-card,
.cert-side,
.cert-content section,
.map-card {
  padding: 1.1rem 1.2rem;
}

.cert-card {
  display: grid;
  gap: 0.45rem;
}

.cert-card h3 {
  margin: 0;
}

.cert-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.cert-card h3 a:hover {
  color: var(--brand);
}

.cert-card__badge {
  font-family: 'Manrope', 'Source Sans 3', sans-serif;
  width: fit-content;
  padding: 0.24rem 0.66rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #04456a;
  background: rgba(15, 143, 135, 0.17);
}

.text-link {
  width: fit-content;
  font-weight: 700;
}

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

.info-grid {
  display: grid;
  gap: 1rem;
}

.visual-block {
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 100%;
}

.visual-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.timeline li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem 0.9rem 3rem;
  position: relative;
}

.timeline li::before {
  counter-increment: timeline;
  content: counter(timeline);
  position: absolute;
  left: 0.95rem;
  top: 0.82rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  font-size: 0.83rem;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}

.timeline {
  counter-reset: timeline;
}

.quote-block {
  margin-top: 0.4rem;
  padding: 1.6rem;
  background:
    linear-gradient(150deg, rgba(15, 95, 181, 0.12), rgba(15, 143, 135, 0.11)),
    var(--surface);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  border: 1px solid transparent;
  font-weight: 700;
  line-height: 1.2;
  min-height: 44px;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-strong);
  color: #fff;
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--brand);
  color: var(--brand);
}

.btn-secondary:hover {
  background: rgba(15, 95, 181, 0.08);
  color: var(--brand-strong);
}

.trust {
  padding: 1.2rem;
}

.trust ul {
  margin: 0 0 1rem;
  padding-left: 1rem;
  display: grid;
  gap: 0.35rem;
}

.trust-links {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.trust-link-card {
  margin: 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 0.75rem 0.85rem;
}

.trust-link-card h3 {
  font-size: 1.02rem;
  margin-bottom: 0.35rem;
}

.trust-link-card h3 a {
  text-decoration: none;
  color: var(--text);
}

.trust-link-card h3 a:hover {
  color: var(--brand);
}

.trust-link-card p {
  margin: 0;
  font-size: 0.95rem;
}

.final-cta {
  padding: 1.2rem;
}

.page-main {
  padding-bottom: 2.5rem;
}

.section--cert-body {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.6fr);
  align-items: start;
}

.cert-side {
  position: sticky;
  top: 130px;
}

.cert-side img {
  border-radius: 12px;
  margin-bottom: 0.7rem;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.cert-side img.cert-side__image--contain {
  object-fit: contain;
  background: #fff;
  padding: 1rem;
  border: 1px solid rgba(4, 69, 106, 0.12);
}

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

.cert-content ul,
.cert-content ol,
.info-card ul,
.info-card ol,
.footer-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.5rem;
}

.timeline-note {
  font-weight: 600;
  color: #183c61;
}

.faq-list {
  display: grid;
  gap: 0.6rem;
}

.faq-list details {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  background: #fff;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-list p {
  margin: 0.6rem 0 0;
}

.registration-box {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem;
  background: rgba(15, 95, 181, 0.05);
  margin-top: 1rem;
}

.contact-layout iframe {
  width: 100%;
  min-height: 380px;
  border: 0;
  border-radius: 12px;
}

.site-footer {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.site-footer::before {
  content: '';
  display: block;
  border-top: 1px solid rgba(17, 37, 65, 0.12);
  margin-bottom: 1.2rem;
}

.footer-grid {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.4rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.3fr 1fr 1fr;
}

.footer-grid h2 {
  font-size: 1.15rem;
}

.footer-list {
  list-style: none;
  padding-left: 0;
}

.footer-list.compact {
  gap: 0.32rem;
}

.footer-registration {
  margin-top: 0.6rem;
  font-weight: 700;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  padding: 0.8rem 0.1rem;
}

.footer-bottom p {
  margin: 0;
}

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

.footer-bottom nav a {
  font-weight: 600;
}

.error-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  background: var(--bg);
}

.error-page main {
  text-align: center;
  padding: 1.5rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 480ms ease, transform 480ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .section--cert-body {
    grid-template-columns: 1fr;
  }

  .cert-side {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 767px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding-top: 0.35rem;
  }

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

  .primary-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    background: #f8fbff;
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav ul {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .primary-nav li a {
    display: block;
  }

  .language-switcher {
    width: 100%;
  }

  .language-switcher summary {
    width: fit-content;
  }

  .language-switcher ul {
    left: 0;
    right: auto;
  }

  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero,
  .page-hero {
    min-height: 470px;
  }

  .trust-links {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Accessibility widget placement preference */
[id*="sienna"],
[class*="sienna"],
[id*="accessibility-widget"],
[class*="accessibility-widget"] {
  left: 1rem;
  right: auto;
}
