:root {
  --ink: #1b2b34;
  --muted: #61717c;
  --line: #d9e1e5;
  --paper: #ffffff;
  --soft: #f3f7f6;
  --brand: #1977ad;
  --brand-dark: #0c426c;
  --accent: #78a842;
  --deep: #0d3557;
  --shadow: 0 18px 42px rgba(16, 42, 51, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  color: #e9f5f3;
  background: var(--deep);
  font-size: 0.9rem;
}

.topbar__inner {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar nav,
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
}

.brand__logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.02rem;
  text-transform: uppercase;
}

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

.menu {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #263943;
  font-weight: 700;
}

.menu a {
  padding: 10px 0;
}

.menu__cta,
.button,
.quick-search button,
.contact-form button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.menu__cta {
  padding: 11px 18px !important;
  color: #fff;
  background: var(--brand);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: min(680px, calc(100vh - 118px));
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 42, 51, 0.92) 0%, rgba(16, 42, 51, 0.72) 42%, rgba(16, 42, 51, 0.12) 100%),
    linear-gradient(0deg, rgba(16, 42, 51, 0.22), rgba(16, 42, 51, 0.22));
}

.hero__content {
  position: relative;
  padding: 80px 0 104px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  width: min(760px, 100%);
  margin: 0;
  font-size: 4.7rem;
  line-height: 1.02;
}

.hero p:not(.eyebrow) {
  width: min(610px, 100%);
  margin: 22px 0 0;
  color: #edf5f4;
  font-size: 1.18rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 21px;
}

.button--primary {
  color: #123039;
  background: #fff;
}

.button--ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.64);
}

.button--dark {
  color: #fff;
  background: var(--deep);
}

.quick-search {
  position: relative;
  z-index: 2;
  margin-top: -48px;
}

.quick-search__inner {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1fr auto;
  gap: 14px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

label span,
.contact-form label {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

textarea {
  resize: vertical;
}

.quick-search button,
.contact-form button {
  align-self: end;
  min-height: 46px;
  padding: 0 20px;
  color: #fff;
  background: var(--brand);
}

.section {
  padding: 92px 0;
}

.section--muted {
  background: var(--soft);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-heading h2,
.feature-band h2,
.split h2,
.contact h2 {
  margin: 0;
  font-size: 2.9rem;
  line-height: 1.12;
}

.section-heading a {
  color: var(--brand-dark);
  font-weight: 800;
}

.course-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.course-catalog {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.course-category {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.course-category h3 {
  margin: 16px 0 18px;
  font-size: 1.28rem;
  line-height: 1.2;
}

.course-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.course-chip {
  min-height: 42px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--soft);
  cursor: pointer;
  font-weight: 800;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.course-chip:hover,
.course-chip:focus-visible,
.course-chip.is-active {
  border-color: var(--brand);
  color: #fff;
  background: var(--brand);
}

.course-card,
.news-item {
  min-height: 290px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

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

.course-card--select {
  appearance: none;
  width: 100%;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.course-card--select:hover,
.course-card--select:focus-visible,
.course-card--select.is-active {
  border-color: var(--brand);
  box-shadow: 0 12px 30px rgba(25, 119, 173, 0.15);
  transform: translateY(-2px);
}

.course-card--select.is-active {
  background: #f6fbff;
}

.course-card__tag {
  align-self: flex-start;
  padding: 5px 10px;
  color: var(--brand-dark);
  background: #dff0ed;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.course-card h3,
.news-item h3 {
  margin: 18px 0 10px;
  font-size: 1.34rem;
  line-height: 1.2;
}

.course-card p,
.news-item p,
.split p,
.contact p,
.feature-band p {
  color: var(--muted);
}

.course-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  color: var(--deep);
  font-weight: 800;
}

.course-card__meta span {
  padding: 7px 10px;
  background: var(--soft);
  border-radius: 8px;
}

.course-detail {
  margin-top: 22px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.course-detail__header h3 {
  margin: 16px 0 10px;
  font-size: 2rem;
  line-height: 1.14;
}

.course-detail__header p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.course-detail__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 28px;
}

.course-detail h4 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.course-detail ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.course-detail li + li {
  margin-top: 8px;
}

.course-detail__cta {
  margin-top: 28px;
}

.feature-band {
  padding: 86px 0;
  color: #fff;
  background: var(--deep);
}

.feature-band__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 54px;
  align-items: center;
}

.feature-band p {
  color: #d6e6e3;
}

.cert-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.cert-list a {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
}

.split__inner,
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 0.88fr;
  gap: 58px;
  align-items: center;
}

.split p,
.contact p {
  font-size: 1.06rem;
}

.stat-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.stat-panel div {
  padding: 26px;
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  background: var(--soft);
}

.stat-panel strong {
  display: block;
  font-size: 2.4rem;
  line-height: 1;
}

.stat-panel span {
  color: var(--muted);
  font-weight: 800;
}

.news-item {
  min-height: 220px;
}

.news-item time,
.news-item__label {
  color: var(--brand-dark);
  font-weight: 900;
}

.contact {
  color: #fff;
  background: var(--brand-dark);
}

.contact p,
.contact .eyebrow {
  color: #e1f0ec;
}

.contact-links {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 26px;
  color: var(--ink);
  background: #fff;
  border-radius: 8px;
}

.contact-form button {
  width: 100%;
}

.button--whatsapp {
  width: 100%;
  color: #fff;
  background: #1f8f4d;
}

.footer {
  padding: 34px 0;
  color: #d8e6e4;
  background: #071e25;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.footer p {
  margin: 6px 0 0;
  color: #a9bfba;
}

.footer__logo {
  width: 86px;
  height: 86px;
  object-fit: contain;
  margin-bottom: 10px;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
}

@media (max-width: 920px) {
  .topbar__inner,
  .section-heading,
  .footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    min-height: 70px;
  }

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

  .menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .menu.is-open {
    display: flex;
  }

  .menu a {
    padding: 12px !important;
  }

  .quick-search__inner,
  .course-catalog,
  .feature-band__inner,
  .split__inner,
  .contact__inner {
    grid-template-columns: 1fr;
  }

  .course-grid,
  .news-grid,
  .cert-list {
    grid-template-columns: 1fr;
  }

  .course-detail__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .topbar nav {
    display: none;
  }

  .brand {
    min-width: 0;
  }

  .brand__logo {
    width: 52px;
    height: 52px;
  }

  .brand strong {
    max-width: 150px;
    font-size: 0.86rem;
    line-height: 1.12;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 620px;
  }

  .hero__content {
    padding: 70px 0 86px;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero p:not(.eyebrow) {
    font-size: 1rem;
  }

  .hero__actions,
  .hero__actions .button {
    width: 100%;
  }

  .quick-search {
    margin-top: 0;
  }

  .quick-search__inner {
    width: 100%;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .section {
    padding: 64px 0;
  }
}

@media (max-width: 920px) and (min-width: 621px) {
  .hero h1 {
    font-size: 3.45rem;
  }

  .section-heading h2,
  .feature-band h2,
  .split h2,
  .contact h2 {
    font-size: 2.35rem;
  }
}

@media (max-width: 620px) {
  .section-heading h2,
  .feature-band h2,
  .split h2,
  .contact h2 {
    font-size: 1.85rem;
  }
}
