body {
  background: #e7effc;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
}
.hero {
  background: linear-gradient(110deg, #2362a8 55%, #79d9f3 100%);
  color: #fff;
  padding: 48px 0 38px 0;
  text-align: center;
  box-shadow: 0 6px 36px #213e8a13;
}
.hero h1 {
  font-size: 2.7rem;
  font-weight: 800;
  letter-spacing: 3px;
  margin-bottom: 22px;
}
.hero p {
  font-size: 1.23rem;
  font-weight: 300;
  max-width: 580px;
  margin: 0 auto 23px;
}
.learn-btn {
  font-size: 1.17rem;
  background: #fcbf49;
  color: #154467;
  border: none;
  border-radius: 30px;
  padding: 16px 34px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 24px;
  box-shadow: 0 4px 18px #1658af25;
  transition: background 0.18s;
}
.learn-btn:hover {
  background: #ffda77;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  color: #185a9d;
  margin: 52px 0 22px 0;
}
.lang-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto 50px auto;
}
.lang-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 14px #2052a140;
  padding: 23px 18px 25px 18px;
  width: 255px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  position: relative;
  transition: box-shadow 0.2s;
}
.lang-card:hover {
  box-shadow: 0 10px 32px #19368718;
}
.lang-flag {
  font-size: 2.2rem;
  margin-bottom: 8px;
}
.lang-name {
  font-size: 1.18rem;
  font-weight: 700;
  color: #226;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}
.lang-example {
  font-size: 1.15rem;
  color: #183025;
  margin-bottom: 11px;
  text-align: center;
}
.speaker-btn,
.stop-btn {
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.23rem;
  transition: background 0.16s;
  outline: none;
}

.speaker-btn {
  background: #3dabec;
  color: white;
  margin-right: 8px;
}
.speaker-btn:hover {
  background: #0b63a3;
}

.stop-btn {
  background: #ff4c4c;
  color: white;
}

.stop-btn:hover {
  background: #d63636;
}

@media (max-width: 1050px) {
  .lang-card {
    width: 44vw;
  }
}
@media (max-width: 700px) {
  .lang-cards {
    gap: 16px;
  }
  .lang-card {
    width: 98vw;
  }
  .hero h1 {
    font-size: 2.1rem;
  }
}
