:root {
  color-scheme: light;
  --bg: #ffffff;
  --soft: #f4f8f5;
  --hover: #f1f3f4;
  --text: #1d1e20;
  --muted: #5f6368;
  --border: #e3e6e8;
  --accent: #109740;
  --accent-hover: #0c7a33;
  --accent-soft: #e6f5ec;
  --flame: #ffb74d;
  --error: #e23636;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans",
    "Noto Sans Arabic", "Hiragino Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }

/* ---------- Ust bar ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 12px 16px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
}
.logo img { border-radius: 9px; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 15px;
}
.nav > a:hover { background: var(--hover); color: var(--text); }
.nav > a[aria-current="page"] { color: var(--accent); font-weight: 600; }

.lang { position: relative; }
.lang summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 15px;
  white-space: nowrap;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { background: var(--hover); color: var(--text); }
.lang ul {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 4px);
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
  min-width: 180px;
  max-height: 70vh;
  overflow: auto;
}
.lang li a {
  display: block;
  padding: 7px 12px;
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
}
.lang li a:hover { background: var(--hover); }
.lang li a[aria-current="page"] { color: var(--accent); font-weight: 600; }

/* ---------- Magaza butonlari ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.stores.center { justify-content: center; }
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 172px;
  padding: 9px 18px 9px 14px;
  border-radius: 12px;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 19px;
  line-height: 1.1;
  transition: transform .15s ease, box-shadow .15s ease;
}
.store:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, .18); }
.store span { display: flex; flex-direction: column; white-space: nowrap; }
.store small { font-size: 11px; font-weight: 400; opacity: .85; }

/* ---------- Hero ---------- */
.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 16px 56px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 48px;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}
.hero h1 { font-size: clamp(32px, 5.2vw, 54px); margin: 0 0 18px; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); margin: 0; max-width: 34em; }

/* Telefon maketi */
.phone {
  justify-self: center;
  width: 290px;
  padding: 12px;
  border-radius: 44px;
  background: #1d1e20;
  box-shadow: 0 30px 60px rgba(16, 151, 64, .18), 0 10px 24px rgba(0, 0, 0, .18);
  transform: rotate(-3deg);
}
[dir="rtl"] .phone { transform: rotate(3deg); }
.screen {
  border-radius: 34px;
  background: #f1f3f4;
  padding: 22px 18px 26px;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.streak-pill {
  align-self: flex-start;
  background: #fff3e0;
  color: #c77700;
  font-weight: 700;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 999px;
}
.progress { height: 8px; border-radius: 99px; background: #dfe3e5; overflow: hidden; }
.progress span { display: block; width: 62%; height: 100%; background: var(--accent); border-radius: inherit; }
.q-title { font-weight: 700; margin: 6px 0 0; font-size: 16px; }
.card-word {
  background: #fff;
  border-radius: 18px;
  padding: 22px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}
.card-word .emoji { font-size: 64px; line-height: 1; }
.card-word .word { font-size: 24px; font-weight: 800; }
.card-word .speaker { font-size: 18px; opacity: .7; }
.choice {
  background: #fff;
  border: 2px solid #e3e6e8;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
}
.choice.ok { border-color: #2f9e54; background: #eafaef; color: #2f9e54; }

/* ---------- Istatistik seridi ---------- */
.stats {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.stats div {
  background: var(--soft);
  border-radius: var(--radius);
  padding: 22px 20px;
  text-align: center;
}
.stats strong { display: block; font-size: clamp(28px, 4vw, 38px); color: var(--accent); line-height: 1.1; }
.stats span { color: var(--muted); font-size: 15px; }

/* ---------- Bolumler ---------- */
.section { max-width: 1120px; margin: 0 auto; padding: 72px 16px 0; }
.section h2 { font-size: clamp(26px, 3.6vw, 36px); margin: 0 0 10px; text-align: center; }
.section-sub { text-align: center; color: var(--muted); margin: 0 auto 36px; max-width: 36em; }

.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
}
.feat-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  font-size: 24px;
  margin-bottom: 14px;
}
.feat h3 { margin: 0 0 6px; font-size: 18px; }
.feat p { margin: 0; color: var(--muted); font-size: 15px; }

.exercises > div {
  background: var(--accent);
  color: #fff;
  border-radius: 28px;
  padding: 40px 28px;
}
.exercises h2 { color: #fff; margin-bottom: 24px; }
.ex-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.ex-list li {
  background: rgba(255, 255, 255, .14);
  border-radius: 16px;
  padding: 18px 14px;
  text-align: center;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.ex-list li span { font-size: 28px; }

.topics {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.topic {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--soft);
}
.topic > span { font-size: 28px; }
.topic strong { display: block; font-size: 15px; }
.topic small { color: var(--muted); font-size: 13px; }

.cta {
  max-width: 1120px;
  margin: 80px auto 0;
  padding: 56px 16px;
  text-align: center;
  background: var(--soft);
  border-radius: 28px;
  width: calc(100% - 32px);
}
.cta img { border-radius: 20px; box-shadow: 0 4px 16px rgba(0, 0, 0, .1); }
.cta h2 { font-size: clamp(26px, 3.6vw, 36px); margin: 18px 0 8px; }
.cta p { color: var(--muted); margin: 0; }

/* ---------- Iletisim sayfasi ---------- */
.wrap { width: 100%; max-width: 640px; margin: 0 auto; padding: 24px 16px 48px; }
.wrap h1 { text-align: center; font-size: clamp(28px, 6vw, 38px); margin: 8px 0 24px; }
form { margin-top: 28px; }
label { display: block; font-weight: 600; margin: 18px 0 6px; }
label span { color: var(--error); }
input, textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 10px;
  padding: 12px 14px;
}
textarea { resize: vertical; min-height: 180px; }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(16, 151, 64, .2);
}
input[aria-invalid="true"] { border-color: var(--error); }
.error { color: var(--error); font-size: 14px; margin: 6px 0 0; }
button {
  margin-top: 22px;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 10px;
  padding: 12px 26px;
  cursor: pointer;
}
button:hover { background: var(--accent-hover); }
.note { color: var(--muted); font-size: 13px; margin-top: 10px; }
.direct { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); }

/* ---------- Alt bilgi ---------- */
.foot {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 40px 16px 32px;
}
.foot p { margin: 4px 0; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--accent); }

/* ---------- Duyarli ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 24px; gap: 40px; }
  .lead { margin-inline: auto; }
  .stores { justify-content: center; }
  .feats, .topics { grid-template-columns: repeat(2, 1fr); }
  .ex-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .logo span, .nav > a:first-of-type { display: none; }
  .stats { grid-template-columns: 1fr; }
  .feats, .topics { grid-template-columns: 1fr; }
  .phone { width: 260px; }
  .screen { min-height: 430px; }
  .store { min-width: 0; flex: 1 1 150px; justify-content: center; padding-inline: 12px; font-size: 17px; }
  .section { padding-top: 56px; }
}
