@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --red: #e63946;
  --honey: #f1faee;
  --frost: #a8dadc;
  --cerulean: #457b9d;
  --navy: #1d3557;

  --bg: linear-gradient(180deg, #f1faee 0%, #f8fcff 55%, #ffffff 100%);
  --surface: #ffffff;
  --surface-soft: #f7fbfc;
  --text: #1d3557;
  --muted: #4f6480;
  --line: #d6e6ec;
  --ring: rgba(69, 123, 157, 0.2);

  --radius: 16px;
  --radius-sm: 12px;
  --shadow-soft: 0 12px 30px rgba(29, 53, 87, 0.08);
  --max: 1080px;
  --pad: 24px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

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

a:hover {
  text-decoration: none;
}

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

.container {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(241, 250, 238, 0.92);
  border-bottom: 1px solid var(--line);
}

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

.nav-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--navy);
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.15);
}

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: 5px;
}

.nav-links a {
  color: var(--muted);
  padding: 8px 15px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

.nav-links a.active {
  color: #fff;
  background: var(--navy);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  padding: 4px;
  white-space: nowrap;
}

.lang-switch-label {
  display: none;
}

.lang-btn {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  min-width: 38px;
  padding: 7px 10px;
  transition: transform 0.14s ease, background 0.14s ease, color 0.14s ease;
}

.lang-btn:hover {
  transform: translateY(-1px);
  color: var(--navy);
}

.lang-btn.active {
  background: var(--navy);
  color: #fff;
}

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

main {
  padding: 44px 0 60px;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -0.5px;
}

h1 {
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 800;
}

h2 {
  font-size: clamp(28px, 3.3vw, 36px);
  font-weight: 800;
}

h3 {
  font-size: 24px;
  font-weight: 800;
}

p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--cerulean);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: clamp(24px, 5vw, 44px);
}

.hero p {
  max-width: 66ch;
  margin-top: 14px;
}

.hero-home {
  position: relative;
  overflow: hidden;
}

.hero-home::after {
  content: "";
  position: absolute;
  right: -140px;
  bottom: -130px;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(69, 123, 157, 0.22) 0%, rgba(168, 218, 220, 0.08) 70%);
  pointer-events: none;
}

.section {
  margin-top: 26px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: var(--cerulean);
  box-shadow: 0 8px 20px rgba(29, 53, 87, 0.08);
}

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

.btn-primary:hover {
  border-color: #cc2f3c;
  box-shadow: 0 10px 24px rgba(230, 57, 70, 0.24);
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

.card,
.item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px;
}

.card h3,
.item h3 {
  font-size: 30px;
  margin-bottom: 8px;
}

.card p,
.item p {
  font-size: 17px;
}

.meta {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(168, 218, 220, 0.35);
  border: 1px solid rgba(69, 123, 157, 0.25);
  color: var(--navy);
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.section ul,
.section ol {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 17px;
}

.section li + li {
  margin-top: 6px;
}

.shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.shot {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
}

.shot .cap {
  border-top: 1px solid var(--line);
  padding: 9px 12px;
  font-size: 13px;
  color: var(--muted);
}

.kicker {
  color: var(--cerulean);
  font-size: 14px;
  font-weight: 700;
}

.section-head {
  margin-bottom: 18px;
}

.section-head h2 + p,
.section-head p + h2 {
  margin-top: 6px;
}

.certificates-page .section {
  margin-top: 34px;
}

.certificate-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.certificate-card h3 {
  font-size: clamp(22px, 2.5vw, 28px);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.card-meta strong {
  color: var(--navy);
}

.certificate-card .btn-row {
  margin-top: auto;
  padding-top: 18px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 34px;
  color: var(--muted);
  font-size: 14px;
  margin-top: 18px;
}

.footer a {
  color: var(--navy);
  font-weight: 700;
}

@media (max-width: 960px) {
  .grid.two,
  .grid.three,
  .split,
  .shots {
    grid-template-columns: 1fr;
  }

  p {
    font-size: 17px;
  }

  .card h3,
  .item h3 {
    font-size: 26px;
  }
}

@media (max-width: 740px) {
  :root {
    --pad: 18px;
  }

  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 14px 0;
  }

  .nav-controls {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
  }

  .lang-switch {
    align-self: flex-end;
    justify-content: flex-end;
  }

  .nav-links a {
    flex: 1 0 auto;
    text-align: center;
  }

  main {
    padding-top: 30px;
  }

  .hero {
    padding: 22px;
  }

  .btn-row .btn {
    width: 100%;
  }
}
