:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-alt: #e9eef3;
  --text: #1b2a38;
  --muted: #5a6b7b;
  --primary: #0f3554;
  --primary-strong: #0a2941;
  --accent: #a57d3a;
  --border: #d3dde7;
  --shadow: 0 14px 30px rgba(10, 35, 58, 0.08);
  --radius: 14px;
  --container: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 0%, #dce6ef 0, transparent 34%),
    radial-gradient(circle at 100% 8%, #e6ddd0 0, transparent 26%), var(--bg);
  line-height: 1.6;
}

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

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

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

.section {
  padding: 4.5rem 0;
}

.section-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.section-text {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(8px);
  background: rgba(244, 246, 248, 0.92);
  border-bottom: 1px solid rgba(15, 53, 84, 0.1);
}

.header-row {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-left: auto;
}

.brand {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--primary);
  font-size: 1.2rem;
}

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

.main-nav a {
  font-size: 0.95rem;
  color: var(--muted);
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition:
    border-color 180ms ease,
    color 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a[aria-current="page"] {
  color: var(--primary);
  border-color: rgba(15, 53, 84, 0.35);
}

.main-nav a.nav-cv {
  color: var(--primary);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--primary);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.lang-select {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  background: var(--surface);
  color: var(--primary);
  font-weight: 600;
}

.hero {
  padding: 5.5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2rem;
}

.kicker {
  margin: 0 0 0.85rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.1;
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
}

.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  margin-top: 1.6rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.15rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

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

.button-primary {
  background: var(--primary);
  color: #ffffff;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--primary-strong);
}

.button-ghost {
  border-color: var(--border);
  color: var(--primary);
  background: var(--surface);
}

.hero-media {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 53, 84, 0.16);
  animation: fade-up 0.7s ease both;
}

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

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.95rem;
  text-align: center;
}

.stat-card strong {
  display: block;
  color: var(--primary);
  font-size: 1.25rem;
}

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

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

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

.portfolio-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.portfolio-card .button {
  margin-top: auto;
  align-self: flex-start;
}

.portfolio-meta {
  margin: 0;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 600;
}

.course-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.course-card .button {
  margin-top: auto;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  animation: fade-up 0.65s ease both;
}

.card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.12rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.topic-list {
  margin: 0.9rem 0 0;
  padding-left: 1.1rem;
}

.syllabus-list {
  margin-top: 1.1rem;
}

.syllabus-list a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(15, 53, 84, 0.35);
}

.topic-list li {
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.knowledge-notes {
  margin-top: 1.2rem;
  border: 1px dashed #b7c6d6;
  background: #f8fbfe;
  border-radius: 12px;
  padding: 1rem 1.1rem;
}

.knowledge-notes h3 {
  margin: 0 0 0.4rem;
}

.knowledge-notes p {
  margin: 0;
  color: var(--muted);
}

.knowledge-notes ul {
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
}

.knowledge-notes a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(15, 53, 84, 0.35);
}

.process-list {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.process-item {
  background: linear-gradient(180deg, #ffffff 0%, #eef3f7 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
}

.process-item span {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: var(--accent);
  font-weight: 700;
}

.tags {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 600;
}

.highlight {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1rem;
}

.highlight .text {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.highlight ul {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
}

.highlight li {
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.notice {
  margin-top: 1rem;
  border-left: 4px solid var(--accent);
  padding: 0.65rem 0.85rem;
  background: #f8f4ec;
  color: #4e3b1f;
}

.cta {
  border-radius: 16px;
  background: linear-gradient(135deg, #0f3554 0%, #1d557f 100%);
  color: #ffffff;
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.cta p {
  margin: 0.4rem 0 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.cta .button {
  background: #ffffff;
  color: var(--primary);
}

.support-grid {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}

.donation-card {
  border-color: #9fb5ca;
  background: linear-gradient(180deg, #ffffff 0%, #f3f8fd 100%);
}

.payment-details {
  margin: 1rem 0 0;
  display: grid;
  gap: 0.6rem;
}

.payment-details div {
  display: grid;
  gap: 0.2rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(15, 53, 84, 0.12);
}

.payment-details dt {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.payment-details dd {
  margin: 0;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.donation-note ul {
  margin: 0.7rem 0 0;
  padding-left: 1.1rem;
}

.donation-note li {
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.team-grid {
  margin-top: 2rem;
}

.team-card {
  padding: 0;
  overflow: hidden;
  text-align: center;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 38px rgba(10, 35, 58, 0.14);
}

.team-photo {
  position: relative;
  aspect-ratio: 5 / 6;
  background: #c8d5e1;
  overflow: hidden;
}

.team-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  transform: scale(1.04);
  transition: transform 380ms ease;
}

.team-card:hover .team-photo img {
  transform: scale(1.1);
}

.team-body {
  padding: 1.15rem 1.2rem 1.35rem;
}

.team-body h3 {
  margin: 0 0 0.2rem;
}

.team-role {
  margin: 0;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.94rem;
}

.delivery-grid {
  margin-top: 2rem;
}

.delivery-card span {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: var(--accent);
  font-weight: 700;
}

.page-inner .section {
  padding-top: 2.4rem;
}

.inner-card h1 {
  margin: 0 0 0.8rem;
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
}

.inner-card p + p {
  margin-top: 0.85rem;
}

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid rgba(15, 53, 84, 0.15);
  padding: 2.4rem 0 1.6rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1.2fr;
  gap: 2rem 1.5rem;
}

.footer-col h3 {
  margin: 0 0 0.75rem;
  color: var(--primary);
  font-size: 0.95rem;
}

.footer-col p,
.footer-col ul {
  margin: 0;
}

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

.footer-col li {
  margin: 0.35rem 0;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--primary);
}

.footer-copy {
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(15, 53, 84, 0.1);
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: fade-up 0.6s ease forwards;
}

.reveal:nth-child(2) {
  animation-delay: 120ms;
}

.reveal:nth-child(3) {
  animation-delay: 200ms;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .main-nav {
    gap: 0.75rem;
  }

  .main-nav a {
    font-size: 0.86rem;
  }
}

@media (max-width: 940px) {
  .header-row {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    order: 3;
    padding: 0.2rem 0 0.9rem;
    gap: 0.35rem;
  }

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

  .hero-grid,
  .highlight {
    grid-template-columns: 1fr;
  }

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

  .stats,
  .card-grid,
  .delivery-grid {
    grid-template-columns: 1fr;
  }

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

  .knowledge-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 580px) {
  .header-row {
    min-height: 66px;
  }

  .hero {
    padding-top: 4.2rem;
  }

  .process-list,
  .team-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.5rem 0;
  }
}
