*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #06518a;
  --bg-deep: #044a7c;
  --bg-soft: #0d5a90;
  --card: #0a4d84;
  --card-dark: #083d6a;
  --text: #f4f7fb;
  --muted: #d6e6f4;
  --accent: #f1d277;
  --accent-strong: #ffd769;
  --shadow: 0 12px 28px rgba(3, 30, 54, 0.28);
  --radius: 24px;
  --container: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

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

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

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

.hero,
.about,
.how,
.cta,
.footer {
  position: relative;
}

.hero {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  overflow: hidden;
}

.hero .container {
  padding: 20px 0 56px;
}

.hero__topbar {
  margin-bottom: 14px;
}

.logo-small {
  width: 120px;
}

.hero__content {
  min-height: 560px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 24px;
}

.hero__text {
  max-width: 580px;
}

h1, h2, h3 {
  margin: 0;
  font-family: "Luckiest Guy", cursive;
  font-weight: 400;
  font-style: normal;
  letter-spacing: -0.02em;
}

h1 {
  color: #f6df8a;
  font-size: 3.5rem;
  line-height: 0.95;
  margin-bottom: 22px;
}

.hero__text p {
  max-width: 440px;
  color: var(--muted);
  font-size: 1.35rem;
  margin: 0 0 30px;
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.2rem;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  filter: brightness(1.02);
}

.btn--primary {
  background: var(--accent);
  color: #154b7f;
}

.btn-link {
  color: #eef6ff;
  text-decoration: underline;
  text-underline-offset: 5px;
  font-size: 1.2rem;
}

.hero__visual {
  justify-self: end;
  max-width: 420px;
  width: 100%;
}

.about {
  background: linear-gradient(180deg, #0c5790 0%, #0b558e 100%);
}

.about .container {
  padding: 58px 0;
}

.about__grid,
.cta__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 40px;
}

.about__image {
  width: min(420px, 100%);
}

.about__content h2,
.section-heading h2,
.cta__content h2 {
  color: #f6df8a;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1;
  margin-bottom: 18px;
}

.about__content p,
.cta__content p {
  font-size: 1.17rem;
  color: var(--muted);
  max-width: 640px;
}

.about__highlight {
  color: #f4dfa0 !important;
  font-size: 1.5rem !important;
  line-height: 1.35;
  margin-top: 22px;
}

.how {
  background: linear-gradient(180deg, var(--bg) 0%, #07518a 100%);
}

.how .container {
  padding: 64px 0 60px;
}

.section-heading {
  text-align: center;
  margin-bottom: 34px;
}

.section-heading p {
  margin: 10px 0 0;
  font-size: 1.1rem;
  color: var(--muted);
}

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

.card {
  background: linear-gradient(180deg, #134b8e 0%, #0b3868 100%);
  border-radius: 18px;
  padding: 26px 18px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card img {
  width: 145px;
  height: 145px;
  object-fit: contain;
  margin-bottom: 18px;
}

.card h3 {
  color: #f7da81;
  font-size: 1.9rem;
  line-height: 1.05;
  margin-bottom: 12px;
}

.card p {
  margin: 0;
  font-size: 1.06rem;
  color: var(--muted);
  max-width: 240px;
}

.stats {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 18px;
  justify-items: center;
}

.stat {
  text-align: center;
  color: #f5d97d;
  font-weight: 800;
  font-size: 1.3rem;
}

.stat img {
  width: 88px;
  margin: 0 auto 12px;
  filter: drop-shadow(0 8px 16px rgba(3, 26, 48, 0.25));
}

.cta {
  background: linear-gradient(180deg, #0b578f 0%, #0a5288 100%);
}

.cta .container {
  padding: 58px 0 42px;
}

.cta__visual img {
  width: min(320px, 100%);
}

.cta__content p {
  margin: 16px 0 24px;
  max-width: 620px;
}

.footer {
  background: #074d82;
}

.footer .container {
  padding: 22px 0 40px;
  text-align: center;
}

.footer p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 1.02rem;
}

.footer a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 1024px) {
  .hero__content,
  .about__grid,
  .cta__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__visual,
  .about__image-wrap,
  .cta__visual {
    justify-self: center;
  }

  
  .hero__text,
  .about__content,
  .cta__content {
    max-width: 760px;
    margin: 0 auto;
  }

  .hero__text p,
  .about__content p,
  .cta__content p {
    max-width: 100%;
  }

  .hero__actions {
    justify-content: center;
  }

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

  .stats {
    grid-template-columns: repeat(4, minmax(80px, 1fr));
  }
}

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .hero__visual{
    max-width: 200px;

  }

 h1  {
  font-size: 2.5rem;
 }

  .hero .container {
    padding-top: 14px;
    padding-bottom: 38px;
  }

  .hero__content {
    min-height: auto;
    gap: 12px;
  }
 .hero__content {
    display: flex;
    flex-direction: column-reverse;
  }
  h1 {
    margin-bottom: 16px;
  }

  .hero__text p {
    font-size: 1.05rem;
    margin-bottom: 22px;
  }

  .btn {
    min-height: 52px;
    width: 100%;
  }

  .hero__actions {
    flex-direction: column;
    gap: 14px;
  }

  .btn-link {
    font-size: 1rem;
  }

  .about .container,
  .how .container,
  .cta .container {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .about__grid,
  .cta__grid {
    gap: 24px;
  }

  .about__highlight {
    font-size: 1.22rem !important;
  }

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

  .card {
    min-height: unset;
    padding: 22px 18px;
  }

  .card h3 {
    font-size: 1.65rem;
  }

  .stats {
    margin-top: 34px;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 26px;
  }

  .stat {
    font-size: 1.1rem;
  }

  .stat img {
    width: 76px;
  }

  .logo-small {
    width: 98px;
  }
}
