:root {
  --bg: #0b0c0f;
  --card: #121318;
  --ink: #e8e8ea;
  --muted: #a9acb3;
  --accent: #c9a862;
  --ring: rgba(201, 168, 98, 0.45);
  --radius: 14px;
  --max-width: min(1200px, 94vw);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at top right, rgba(201, 168, 98, 0.07), transparent 55%),
    var(--bg);
}

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

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

header {
  backdrop-filter: blur(12px);
  background: rgba(11, 12, 15, 0.7);
  border-bottom: 1px solid rgba(232, 232, 234, 0.06);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  margin: 0 auto;
  max-width: var(--max-width);
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem clamp(1rem, 4vw, 1.5rem);
}

.header-inner nav {
  justify-self: center;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(232, 232, 234, 0.14);
  background: rgba(18, 19, 24, 0.6);
  overflow: hidden;
  justify-self: end;
}

.lang-option {
  appearance: none;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-option:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.lang-option.is-active,
.lang-option:hover {
  color: var(--ink);
  background: rgba(201, 168, 98, 0.18);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "Space Grotesk", "Inter", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--muted);
}

.brand img {
  width: 44px;
  height: auto;
  border-radius: 8px;
}

nav ul {
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

nav a {
  padding: 0.45rem 0.85rem;
  border-radius: calc(var(--radius) / 1.8);
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s ease, background 0.2s ease;
}

nav a[aria-current="page"],
nav a:hover {
  color: var(--ink);
  background: rgba(201, 168, 98, 0.08);
}

main {
  flex: 1;
}

section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 1.5rem);
}

main,
.hero,
.card,
.notice,
.form-grid,
label,
.meta,
.table,
.table th,
.table td {
  text-align: center;
}

.table {
  margin: 0 auto;
}

.card ul,
.card ol,
.notice ul,
.notice ol {
  list-style-position: inside;
  padding-left: 0;
  margin-left: 0;
  text-align: center;
}

.card ul li,
.card ol li,
.notice ul li,
.notice ol li {
  display: block;
  text-align: center;
}

.hero {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-centered {
  justify-items: center;
  text-align: center;
  justify-content: center;
  grid-template-columns: minmax(0, 1fr);
}

.hero-centered > * {
  width: 100%;
  max-width: clamp(18rem, 80vw, 36rem);
  margin: 0 auto;
}

.hero-centered .card-eyebrow {
  justify-content: center;
  margin-inline: auto;
}

.hero-centered .buttons {
  justify-content: center;
}

.hero-centered .notice {
  text-align: center;
  width: 100%;
  max-width: 520px;
}

.hero h1 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(2.2rem, 5vw, 3rem);
  margin: 0 0 1rem;
}

.hero p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 auto 2rem;
  max-width: 68ch;
}

.hero-centered .notice p {
  margin: 0;
  max-width: none;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-solid {
  background: linear-gradient(135deg, rgba(201, 168, 98, 0.25), rgba(201, 168, 98, 0.65));
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(201, 168, 98, 0.18);
}

.btn-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(201, 168, 98, 0.24);
}

.btn-outline {
  border-color: rgba(232, 232, 234, 0.18);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: rgba(201, 168, 98, 0.45);
}

.cards-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2rem);
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid rgba(232, 232, 234, 0.06);
  box-shadow: 0 24px 60px rgba(5, 5, 8, 0.55);
  position: relative;
  text-align: center;
}

.card.featured {
  border-color: rgba(201, 168, 98, 0.25);
  background: linear-gradient(160deg, rgba(201, 168, 98, 0.12), rgba(11, 12, 15, 0.95));
}

.card-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.card h2 {
  margin: 0 0 0.75rem;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.card p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  line-height: 1.7;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  justify-content: center;
  text-align: center;
}

.tag {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(232, 232, 234, 0.06);
  border: 1px solid rgba(232, 232, 234, 0.08);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  text-align: center;
}

.card-actions .btn-link {
  background: transparent;
  border: none;
  color: var(--accent);
  font-weight: 600;
  padding: 0;
  cursor: pointer;
}

.card-actions .btn-link:hover {
  text-decoration: underline;
}

.details-content {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(232, 232, 234, 0.08);
  text-align: center;
}

.details-content ul {
  margin: 0.75rem 0 0;
  padding-left: 0;
  color: var(--muted);
  line-height: 1.6;
  text-align: center;
}

.dialog {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid rgba(201, 168, 98, 0.25);
  padding: clamp(1.5rem, 4vw, 2rem);
  color: var(--ink);
  width: min(520px, 92vw);
}

.dialog::backdrop {
  background: rgba(0, 0, 0, 0.65);
}

footer {
  margin-top: auto;
  border-top: 1px solid rgba(232, 232, 234, 0.06);
  background: rgba(11, 12, 15, 0.85);
}

footer .footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem clamp(1rem, 4vw, 1.5rem);
  display: grid;
  gap: 1.5rem;
  color: var(--muted);
}

footer nav ul {
  gap: 0.75rem;
}

small {
  color: rgba(232, 232, 234, 0.45);
}

.grid-2 {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.consultancy-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.consultancy-card h3 {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.course-ticker {
  margin-top: 1.5rem;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius);
  border: 1px dashed rgba(201, 168, 98, 0.6);
  color: var(--accent);
  font-weight: 600;
  background: rgba(201, 168, 98, 0.12);
  display: inline-flex;
  justify-content: center;
  width: 100%;
}

.course-ticker[data-status="full"] {
  border-color: rgba(111, 240, 196, 0.75);
  color: #a8ffd8;
  background: rgba(111, 240, 196, 0.12);
}

@media (min-width: 768px) {
  .hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-centered {
    grid-template-columns: repeat(2, minmax(22rem, 32vw));
    justify-content: center;
  }

  .hero-centered > * {
    max-width: clamp(22rem, 32vw, 36rem);
  }

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

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

  .cards-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .card {
    grid-column: span 6;
  }

  .card.featured {
    grid-column: 3 / span 8;
  }
}

@media (max-width: 640px) {
  .header-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1rem;
  }

  .language-toggle {
    justify-self: center;
  }
}

.form-grid {
  display: grid;
  gap: 1.25rem;
}

.form-alert {
  border-radius: var(--radius);
  border: 1px solid rgba(201, 168, 98, 0.4);
  background: rgba(201, 168, 98, 0.15);
  padding: 0.85rem 1rem;
  font-weight: 600;
  text-align: left;
}

.form-alert[data-state="error"] {
  border-color: rgba(255, 107, 107, 0.6);
  background: rgba(255, 107, 107, 0.12);
  color: #ffdede;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-weight: 600;
}

input,
textarea,
select {
  background: rgba(232, 232, 234, 0.04);
  border: 1px solid rgba(232, 232, 234, 0.1);
  border-radius: calc(var(--radius) / 1.5);
  padding: 0.75rem 1rem;
  color: var(--ink);
  font-size: 1rem;
}

textarea {
  min-height: 160px;
  resize: vertical;
}

select {
  cursor: pointer;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--ring);
}

.notice {
  background: rgba(201, 168, 98, 0.12);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  border: 1px solid rgba(201, 168, 98, 0.25);
  color: var(--accent);
}

.table {
  width: 100%;
  border-collapse: collapse;
  color: var(--muted);
}

.table th,
.table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(232, 232, 234, 0.06);
  text-align: center;
}

.table th {
  color: var(--ink);
  font-weight: 600;
}

.highlight {
  color: var(--accent);
}

.subtitle {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 56ch;
  margin-inline: auto;
  text-align: center;
}

.card .subtitle {
  margin: 0 auto 1.25rem;
  text-align: center;
}

.details-summary {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--accent);
}

.details-summary svg {
  width: 1rem;
  height: 1rem;
}

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

.details-summary::after {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-left: 0.2rem;
}

details[open] .details-summary::after {
  transform: rotate(-135deg);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
  justify-content: center;
}

.meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

main > section:first-of-type {
  padding-top: clamp(4rem, 8vw, 6rem);
}

@media (max-width: 640px) {
  nav ul {
    width: 100%;
    justify-content: flex-start;
  }

  nav {
    width: 100%;
  }

  .header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
  }
}


/* --- MiulusTek: hero centering hardening (2025-10-07) --- */
.hero.hero-centered {
  justify-items: center;
  text-align: center;
}
.hero.hero-centered > * {
  margin-inline: auto;
}
.hero.hero-centered p.subtitle {
  margin-left: auto;
  margin-right: auto;
}
