:root {
  --blue: #5361f6;
  --navy: #14213a;
  --muted: #536075;
  --yellow: #ffd12d;
  --footer: #f5f8fc;
  --line: #e3e9f3;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: #fff;
  color: var(--navy);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

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

button {
  font: inherit;
  cursor: pointer;
}

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

.site-header {
  height: 82px;
  background: #fff;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
  gap: 32px;
}

.brand {
  display: inline-flex;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 38px;
  color: #101b31;
  font-size: 14px;
/*  font-weight: 700;*/
}

.nav-menu-check,
.menu-toggle {
  display: none;
}

.menu-toggle {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(83, 97, 246, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #293ed2;
}

.nav-links a:first-child {
  color: #293ed2;
}

.mobile-auth-link {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #101b31;
  font-size: 14px;
}

.lang-toggle {
  flex: 0 0 auto;
  min-width: 46px;
  height: 32px;
  border: 1px solid rgba(83, 97, 246, 0.25);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  color: #293ed2;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 20px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  padding: 0 26px;
  box-shadow: 0 14px 28px rgba(83, 97, 246, 0.18);
}

.about-hero {
  min-height: 980px;
  padding: 120px 0 106px;
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 223, 112, 0.22), transparent 26%),
    linear-gradient(180deg, #fff 0%, #f9fafc 25%, #dce4f7 100%);
}

.about-inner {
  text-align: center;
}

.about-inner h1 {
  margin: 0 0 30px;
  color: #151922;
  font-size: 48px;
  line-height: 1.2;
  font-weight: 900;
}

.about-inner > p {
  max-width: 860px;
  margin: 0 auto;
  color: #263854;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.9;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  width: min(900px, 100%);
  margin: 72px auto 0;
}

.about-card {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  min-height: 240px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  padding: 45px 34px 32px;
  box-shadow: 0 20px 45px rgba(44, 54, 96, 0.04);
}

.about-card.featured::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: var(--blue);
}

.about-card h2 {
  margin: 22px 0 12px;
  color: #10131d;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 900;
}

.about-card p {
  margin: 0;
  color: #384252;
  font-size: 14px;
  line-height: 1.8;
}

.card-icon {
  width: 58px;
  height: 58px;
  filter: drop-shadow(0 12px 18px rgba(83, 97, 246, 0.28));
}

.icon-blue {
  fill: var(--blue);
}

.icon-blue-soft {
  fill: #4655ed;
}

.icon-yellow {
  fill: var(--yellow);
}

.icon-white {
  fill: none;
  stroke: #fff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer {
  background: var(--footer);
  padding: 88px 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) 170px 170px 170px;
  gap: 86px;
}

.footer-about p {
  max-width: 500px;
  margin: 28px 0 0;
  color: #617088;
  font-size: 14px;
  line-height: 2;
}

.footer h3 {
  margin: 22px 0 26px;
  color: #202938;
  font-size: 14px;
  font-weight: 800;
}

.footer-grid > div:not(.footer-about) a {
  display: block;
  margin-bottom: 20px;
  color: #68758b;
  font-size: 14px;
}

.footer-bottom {
  margin-top: 86px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  color: #708098;
  font-size: 13px;
}

@media (max-width: 1100px) {
  .nav {
    gap: 16px;
  }

  .brand img {
    width: 158px;
    height: auto;
  }

  .menu-toggle {
    display: inline-flex;
    order: 3;
  }

  .nav-links {
    position: absolute;
    z-index: 20;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    row-gap: 8px;
    column-gap: 8px;
    max-height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 45px rgba(32, 42, 83, 0.12);
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 0.2s ease, padding 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 6px;
    background: #f6f8fd;
    padding: 0 10px;
    margin: 0;
    text-align: center;
  }

  .nav-links .mobile-auth-link {
    display: flex;
  }

  .nav-links .mobile-register-link {
    background: #f6f8fd;
    color: inherit;
    font-weight: 400;
  }

  .mobile-auth-link:empty::before {
    content: "Log In";
  }

  .mobile-register-link:empty::before {
    content: "Sign Up Free";
  }

  .nav-menu-check:checked ~ .nav-links {
    max-height: calc(100vh - 104px);
    overflow-y: auto;
    padding: 12px;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-actions {
    margin-left: auto;
    gap: 14px;
    order: 2;
  }

  .lang-toggle {
    min-width: 76px;
    padding-inline: 14px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 28px, 1190px);
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    height: auto;
  }

  .nav {
    height: 64px;
    gap: 10px;
  }

  .brand img {
    width: 132px;
  }

  .nav-actions > a:not(.pill-link) {
    display: none;
  }

  .nav-actions {
    gap: 6px;
  }

  .lang-toggle {
    min-width: 58px;
    height: 30px;
    padding-inline: 7px;
    font-size: 11px;
  }

  .pill-link {
    display: none;
  }

  .menu-toggle {
    width: 38px;
    height: 38px;
  }

  .nav-links {
    grid-template-columns: 1fr;
    top: calc(100% + 6px);
    gap: 8px;
    row-gap: 8px;
    column-gap: 8px;
  }

  .nav-links a {
    justify-content: flex-start;
    padding-inline: 14px;
    margin: 0;
  }

  .nav-menu-check:checked ~ .nav-links {
    max-height: calc(100vh - 82px);
    padding: 10px;
  }

  .about-hero {
    min-height: auto;
    padding: 74px 0 72px;
  }

  .about-inner h1 {
    font-size: 38px;
  }

  .about-inner > p {
    font-size: 15px;
    line-height: 1.85;
  }

  .about-grid {
    grid-template-columns: 1fr;
    margin-top: 48px;
  }

  .about-card {
    min-height: 220px;
  }

  .footer {
    padding-top: 62px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    display: grid;
    gap: 12px;
  }
}

@media (max-width: 380px) {
  .brand img {
    width: 110px;
  }

  .lang-toggle {
    min-width: 54px;
    padding-inline: 6px;
    font-size: 10px;
  }
}
