:root {
  --navy: #070D22;
  --green: #15803D;
  --green-dark: #0F6B32;
  --orange: #EA5B00;
  --cream: #FBF6EC;
  --white: #FFFFFF;
  --muted: #3F4B5A;
  --border: rgba(7, 13, 34, 0.10);
  --shadow: 0 12px 34px rgba(7, 13, 34, 0.09);
  --shadow-hover: 0 20px 52px rgba(7, 13, 34, 0.14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--navy);
  background:
    radial-gradient(circle at 72% 13%, rgba(255,255,255,0.82), transparent 28%),
    linear-gradient(180deg, #FFFDF8 0%, var(--cream) 100%);
  min-height: 100vh;
}

a { color: inherit; }

.page {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 24px 0 54px;
}

.top-banner {
  width: 100%;
  margin: 0 auto 40px;
  padding: 0;
  background: transparent;
}

.top-banner img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero {
  max-width: 900px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--green);
  font-size: clamp(1.35rem, 2.25vw, 2rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.035em;
}

h1 { margin: 0; }

.title-main {
  display: block;
  color: var(--navy);
  font-size: clamp(4.4rem, 9vw, 8.1rem);
  line-height: 0.88;
  font-weight: 900;
  letter-spacing: -0.075em;
}

.title-sub {
  display: block;
  margin-top: 28px;
  color: var(--orange);
  font-size: clamp(2.35rem, 4.7vw, 4.18rem);
  line-height: 0.96;
  font-weight: 900;
  letter-spacing: -0.058em;
}

.nowrap-line {
  white-space: nowrap;
}

.languages {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 22px;
  margin-top: 42px;
}

.language-card {
  grid-column: span 2;
  min-height: 292px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 26px 18px 18px;
  border: 1px solid rgba(7, 13, 34, 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.language-card:hover,
.language-card:focus {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(21, 128, 61, 0.32);
  background: rgba(255, 255, 255, 0.94);
  outline: none;
}

.language-card-bottom:nth-last-child(2) { grid-column: 4 / span 2; }
.language-card-bottom:last-child { grid-column: 6 / span 2; }

.flag {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(7, 13, 34, 0.06);
}

.emoji-flag { font-size: 2.6rem; line-height: 1; }
.flag-img { width: 100%; height: 100%; object-fit: cover; }

.lang-name {
  display: block;
  margin-top: 2px;
  font-size: 1.34rem;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.lang-desc {
  display: block;
  min-height: 92px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.36;
}

.lang-cta {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 13px;
  border: 1.5px solid var(--green);
  border-radius: 8px;
  color: var(--green-dark);
  font-weight: 900;
  font-size: 0.86rem;
  line-height: 1.1;
}

.duration {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 36px 0 28px;
  color: var(--muted);
  font-size: 1.13rem;
  font-weight: 700;
}

.duration-icon {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border: 2px solid var(--navy);
  border-radius: 999px;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1;
}

.info-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 16px;
  padding: 24px 30px;
  border: 1px solid rgba(7, 13, 34, 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 8px 26px rgba(7, 13, 34, 0.045);
}

.info-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(180deg, #63A83D, #2C7D27);
  color: white;
  font-size: 1.55rem;
  font-weight: 900;
}

.info-icon.document {
  background: transparent;
  border: 4px solid #4F8F2F;
  color: #4F8F2F;
  border-radius: 8px;
  font-size: 2rem;
}

.info-card h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.35rem;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.info-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.48;
}

@media (max-width: 1060px) {
  .languages { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .language-card { grid-column: span 2; }
  .language-card-bottom:nth-last-child(2) { grid-column: 2 / span 2; }
  .language-card-bottom:last-child { grid-column: 4 / span 2; }
}

@media (max-width: 760px) {
  .page {
    width: min(100% - 28px, 1180px);
    padding: 18px 0 40px;
  }

  .top-banner { margin-bottom: 26px; }

  .title-main {
    font-size: clamp(4rem, 17vw, 6rem);
  }

  .title-sub {
    font-size: clamp(2.2rem, 9.5vw, 3.4rem);
  }

  .nowrap-line {
    white-space: normal;
  }

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

  .language-card,
  .language-card-bottom:nth-last-child(2),
  .language-card-bottom:last-child {
    grid-column: span 1;
  }

  .language-card { min-height: 260px; }

  .info-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 520px) {
  .languages { grid-template-columns: 1fr; }
  .language-card { min-height: auto; }
  .lang-desc { min-height: auto; }
  .title-main { font-size: clamp(3.5rem, 19vw, 4.9rem); }
  .title-sub { font-size: clamp(2rem, 12vw, 3rem); }
  .info-card { padding: 22px; }
}
