:root {
  --teal: #0e7c7b;
  --teal-d: #0b5f5e;
  --navy: #1c2533;
  --ink: #2c3544;
  --muted: #667085;
  --line: #e7eaee;
  --bg: #f4f6f8;
  --w: #fff;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0;
  font-family: Vazirmatn, Tahoma, sans-serif;
  color: var(--ink);
  background: var(--w);
}
a { color: inherit; text-decoration: none; }
button, input, select { font-family: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

/* top bar — آوینه */
.topbar {
  background: var(--navy);
  color: #d5dbe3;
  font-size: 13px;
}
.topbar .wrap {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 38px; gap: 12px;
}
.topbar a, .topbar button {
  color: #eef2f6; background: none; border: 0; cursor: pointer; font-size: 13px;
}
.topbar .l { display: flex; gap: 16px; align-items: center; }

/* header */
.header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
}
.header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 78px; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--navy); }
.brand .mark {
  width: 42px; height: 42px; border-radius: 10px;
  background: linear-gradient(160deg, #14919b, var(--teal-d));
  color: #fff; display: grid; place-items: center; font-size: 18px;
}
.nav { display: flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 600; color: #445; flex-wrap: wrap; justify-content: flex-end; }
.nav a:hover { color: var(--teal); }
.nav a.on { color: var(--teal); }
.nav-toggle { display: none; background: none; border: 0; font-size: 22px; cursor: pointer; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 6px; border: 0; cursor: pointer;
  font-weight: 700; font-size: 14px;
}
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-d); }
.btn-line { background: #fff; color: var(--teal); border: 1px solid var(--teal); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.7); }
.btn-dark { background: var(--navy); color: #fff; }
.badge {
  display: inline-block; background: #e8f4f4; color: var(--teal); font-size: 12px;
  padding: 3px 10px; border-radius: 99px; font-weight: 700;
}

/* hero — اسلایدر آوینه */
.hero {
  position: relative; min-height: 520px;
  background:
    linear-gradient(90deg, rgba(14,40,48,.78) 0%, rgba(14,40,48,.42) 55%, rgba(14,40,48,.2) 100%),
    radial-gradient(circle at 75% 40%, #1aa7a8 0%, #0c4a52 55%, #0a2a32 100%);
  color: #fff;
  display: flex; align-items: center;
}
.hero-inner { width: min(640px, 100%); }
.hero h1 { margin: 0 0 12px; font-size: clamp(28px, 4.2vw, 44px); font-weight: 900; }
.hero p { margin: 0 0 22px; line-height: 1.95; font-size: 16px; color: #e7eef0; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* sections */
.sec { padding: 72px 0; }
.sec-alt { background: var(--bg); }
.sec h2 { text-align: center; margin: 0 0 8px; font-size: 28px; color: var(--navy); }
.sec .lead { text-align: center; color: var(--muted); margin: 0 0 36px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step {
  background: #fff; border: 1px solid var(--line); padding: 22px 16px; text-align: center;
}
.step i {
  width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 50%;
  background: #e8f4f4; color: var(--teal); display: grid; place-items: center;
  font-style: normal; font-weight: 800; font-size: 18px;
}
.step h3 { margin: 0 0 6px; font-size: 15px; }
.step p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 8px 24px rgba(28, 37, 51, .04);
}
.card:hover { box-shadow: 0 12px 28px rgba(28, 37, 51, .1); }
.thumb {
  height: 168px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 22px;
}
.thumb.g1 { background: linear-gradient(160deg, #3d8b95, #1c4c56); }
.thumb.g2 { background: linear-gradient(160deg, #4a7c6f, #1e433c); }
.thumb.g3 { background: linear-gradient(160deg, #5b7ea6, #243650); }
.thumb.g4 { background: linear-gradient(160deg, #7a6a9a, #32284a); }
.thumb.g5 { background: linear-gradient(160deg, #8a6b4e, #3f2e20); }
.thumb.g6 { background: linear-gradient(160deg, #6d7c4e, #2c351c); }
.thumb.teacher { background: linear-gradient(160deg, #0e7c7b, #12343a); }
.thumb.fa { background: linear-gradient(160deg, #b4532a, #6b2d12); }
.thumb.ma { background: linear-gradient(160deg, #2663a0, #12324f); }
.thumb.sc { background: linear-gradient(160deg, #2e7d57, #143828); }
.card .body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { margin: 0; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; flex: 1; }
.price { color: var(--teal); font-weight: 800; font-size: 16px; }
.row-btns { display: flex; gap: 8px; margin-top: 6px; }
.row-btns .btn { flex: 1; padding: 8px 10px; font-size: 13px; }

.subs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.chip {
  border: 1px solid var(--line); background: #fff; padding: 8px 16px; border-radius: 99px;
  cursor: pointer; font-weight: 700; font-size: 13px; color: #445;
}
.chip.on { background: var(--teal); color: #fff; border-color: var(--teal); }

.panel-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; flex-wrap: wrap;
}
.panel-head h2 { margin: 0; text-align: right; }
.empty {
  background: #fff; border: 1px dashed #c9d0d8; padding: 40px 20px; text-align: center; color: var(--muted);
}

/* login modal */
.overlay {
  position: fixed; inset: 0; background: rgba(10, 16, 24, .55); z-index: 80;
  display: none; align-items: center; justify-content: center; padding: 16px;
}
.overlay.show { display: flex; }
.modal {
  background: #fff; width: min(420px, 100%); border-radius: 10px; padding: 24px;
}
.modal h3 { margin: 0 0 14px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; margin-bottom: 5px; font-weight: 600; }
.field input, .field select {
  width: 100%; height: 44px; border: 1px solid #d0d7de; border-radius: 6px; padding: 0 12px; font-size: 14px;
}
.tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.tabs button {
  flex: 1; height: 40px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 700;
}
.tabs button.on { background: var(--teal); color: #fff; border-color: var(--teal); }

/* cart */
.cart-box { background: #fff; border: 1px solid var(--line); padding: 8px 0; }
.cart-item {
  display: flex; justify-content: space-between; gap: 10px; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px;
}
.cart-foot { padding: 16px; display: flex; justify-content: space-between; align-items: center; }

/* player */
#player {
  display: none; position: fixed; inset: 0; background: #0b1016; z-index: 90; flex-direction: column;
}
#player.on { display: flex; }
.play-bar {
  height: 48px; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px; gap: 10px; flex-shrink: 0;
}
#playFrame { flex: 1; width: 100%; border: 0; background: #fff; }
.sample-note { background: #8a5a12; color: #fff; font-size: 13px; text-align: center; padding: 6px; }

/* about / contact */
.prose { max-width: 720px; margin: 0 auto; line-height: 2; color: #445; }
.form { max-width: 520px; margin: 0 auto; background: #fff; padding: 22px; border: 1px solid var(--line); }
.tg-box { max-width: 480px; margin: 0 auto; background: #fff; border: 1px solid var(--line); padding: 36px 24px; text-align: center; }
.tg-box p { color: var(--muted); line-height: 1.9; }
.btn-tg { background: #229ed9; color: #fff; min-width: 220px; }
.btn-tg:hover { background: #1b8dc4; }

footer {
  background: var(--navy); color: #c9d2dc; padding: 40px 0 18px; font-size: 13px;
}
footer h4 { color: #fff; margin: 0 0 10px; }
.ft { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; margin-bottom: 24px; }
footer a { color: #c9d2dc; }
.copy { border-top: 1px solid #2c3646; padding-top: 14px; text-align: center; color: #8b95a3; }

.page { display: none; }
.page.on { display: block; }
.hide { display: none !important; }

@media (max-width: 900px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute; top: 78px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 16px 16px; align-items: stretch;
  }
  .nav-toggle { display: block; }
  .header { position: relative; }
  .steps, .cards, .ft { grid-template-columns: 1fr; }
  .hero { min-height: 420px; }
}
