* {
  box-sizing: border-box;
}

:root {
  --bg: #fff9ec;
  --bg-soft: #fffdf7;
  --card: rgba(255, 255, 255, 0.84);
  --text: #113b5d;
  --muted: #67839a;
  --brand: #1886c8;
  --brand-dark: #08659e;
  --accent: #ffb07c;
  --accent-2: #74d2f6;
  --line: rgba(24, 134, 200, 0.16);
  --shadow: 0 24px 70px rgba(18, 76, 118, 0.16);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(116, 210, 246, 0.32), transparent 34rem),
    radial-gradient(circle at top right, rgba(255, 176, 124, 0.32), transparent 30rem),
    linear-gradient(180deg, var(--bg) 0%, #f2fbff 100%);
}

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

.page {
  min-height: 100vh;
  overflow: hidden;
}

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

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

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--brand-dark);
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent-2));
  box-shadow: 0 10px 28px rgba(24, 134, 200, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a,
.nav-links button {
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  background: transparent;
  cursor: pointer;
}

.nav-links a:hover,
.nav-links button:hover {
  color: var(--brand-dark);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 16px 34px rgba(24, 134, 200, 0.3);
  cursor: pointer;
}

.button.secondary {
  color: var(--brand-dark);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.hero {
  position: relative;
  padding: 74px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  align-items: center;
  gap: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.7);
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.05em;
}

h1 {
  max-width: 720px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.94;
}

h2 {
  font-size: clamp(30px, 4.6vw, 50px);
  line-height: 1.04;
}

h3 {
  font-size: 22px;
}

.lead {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
  color: var(--muted);
  font-weight: 700;
}

.stats strong {
  display: block;
  color: var(--brand-dark);
  font-size: 26px;
}

.diploma-card {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow);
}

.diploma-card::before {
  position: absolute;
  inset: -18px;
  z-index: -1;
  border-radius: 44px;
  background: linear-gradient(135deg, rgba(116, 210, 246, 0.44), rgba(255, 176, 124, 0.38));
  content: "";
  filter: blur(30px);
}

.diploma-card img {
  display: block;
  width: 100%;
  border-radius: 22px;
}

.section {
  padding: 76px 0;
}

.section-head {
  max-width: 740px;
  margin-bottom: 32px;
}

.section-head p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

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

.card,
.step,
.trust-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 16px 44px rgba(18, 76, 118, 0.08);
}

.card {
  padding: 28px;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 18px;
  color: #fff;
  font-size: 24px;
  background: linear-gradient(135deg, var(--accent), var(--brand));
}

.card p,
.step p,
.trust-card p {
  color: var(--muted);
  line-height: 1.65;
}

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

.step {
  padding: 28px;
}

.step-number {
  color: var(--accent);
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.trust-card {
  padding: 30px;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.check-list li {
  padding-left: 28px;
  color: var(--muted);
  line-height: 1.5;
  background: linear-gradient(var(--brand), var(--brand)) left 0.65em / 12px 12px no-repeat;
  border-radius: 999px;
}

.cta {
  padding: 70px 0 88px;
}

.cta-box {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 40px;
  border-radius: 34px;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.28), transparent 18rem),
    linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: var(--shadow);
}

.cta-box p {
  max-width: 640px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.site-footer {
  padding: 30px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 14px;
  font-weight: 700;
}

.legal-main {
  padding: 56px 0 82px;
}

.legal-card {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.legal-card h1 {
  margin-bottom: 24px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.legal-card h2 {
  margin-top: 34px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  line-height: 1.75;
}

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

.price-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.price-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(242, 251, 255, 0.72);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(17, 59, 93, 0.45);
}

.modal.is-open {
  display: grid;
}

.modal-panel {
  width: min(620px, 100%);
  padding: 28px;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.modal-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  color: var(--brand-dark);
  font-size: 24px;
  background: #eef9ff;
  cursor: pointer;
}

.modal-links {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.modal-links a {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--brand-dark);
  font-weight: 800;
  background: #f7fcff;
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-grid,
  .cards,
  .steps,
  .trust-grid,
  .cta-box {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 46px;
  }

  .cta-box {
    padding: 28px;
  }

  .footer-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
