﻿:root {
  --bg: #06070b;
  --bg-soft: #0d1119;
  --panel: rgba(13, 17, 25, 0.92);
  --panel-strong: #111722;
  --text: #f5f7fb;
  --muted: #8f97a7;
  --border: rgba(255,255,255,0.08);
  --gold: #f2c94c;
  --gold-2: #d7a21a;
  --green: #39d98a;
  --red: #ff5c7a;
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(242, 201, 76, 0.12), transparent 24%),
    linear-gradient(135deg, #06070b 0%, #0c1017 45%, #05060a 100%);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
section { padding: 84px 0; }
.hero { padding: 100px 0 80px; position: relative; overflow: hidden; }
.hero::after {
  content: '';
  position: absolute;
  inset: auto -10% -20% auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 201, 76, 0.18), transparent 65%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero-eyebrow, .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(242, 201, 76, 0.12);
  border: 1px solid rgba(242, 201, 76, 0.28);
  color: var(--gold);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 12px; }
h1 { font-size: clamp(2.4rem, 4.3vw, 4.2rem); font-weight: 700; letter-spacing: -0.03em; }
h1 span { color: var(--gold); }
.hero-sub, .section-head p, .card p, .tcard p, .course-body p, .cta-banner p { color: var(--muted); font-size: 1.03rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  color: #15110a;
  box-shadow: 0 12px 30px rgba(242, 201, 76, 0.22);
}
.btn-ghost {
  background: rgba(255,255,255,0.03);
  color: var(--text);
  border-color: var(--border);
}
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px);
  background: rgba(6, 7, 11, 0.74);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -0.02em; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #111;
  font-weight: 800;
}
.nav-links { display: flex; gap: 20px; color: var(--muted); }
.nav-links a:hover, .footer-links a:hover { color: var(--gold); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.hamburger { display: none; background: none; border: 0; color: var(--text); font-size: 1.3rem; }
.hero-cta, .hero-stats { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.hero-stat {
  min-width: 140px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
}
.hero-stat strong { display: block; font-size: 1.2rem; color: var(--gold); }
.hero-art {
  position: relative;
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.hero-art::before {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 24px;
  border: 1px solid rgba(242,201,76,0.16);
  pointer-events: none;
}
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.card, .tcard, .course-card, .cta-banner {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card, .tcard, .course-card { padding: 24px; }
.feature-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  margin-bottom: 16px;
  background: rgba(255,255,255,0.06);
  color: var(--gold);
  font-weight: 800;
}
.feature-icon.gold { background: rgba(242,201,76,0.16); color: var(--gold); }
.feature-icon.green { background: rgba(57,217,138,0.14); color: var(--green); }
.section-head { max-width: 720px; margin-bottom: 26px; }
.section-head h2 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); }
.course-card { display: flex; flex-direction: column; overflow: hidden; transition: transform 180ms ease, border-color 180ms ease; }
.course-card:hover { transform: translateY(-4px); border-color: rgba(242,201,76,0.35); }
.course-thumb { position: relative; margin-bottom: 16px; aspect-ratio: 16/9; background: linear-gradient(145deg, rgba(242,201,76,0.14), rgba(255,255,255,0.03)); border-radius: 16px; overflow: hidden; }
.course-thumb img { width: 100%; height: 100%; object-fit: cover; }
.badge, .price-ribbon {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.badge { background: rgba(6,7,11,0.74); color: var(--gold); }
.price-ribbon { left: auto; right: 12px; background: rgba(57,217,138,0.16); color: var(--green); }
.course-meta { display: flex; justify-content: space-between; margin-top: 16px; color: var(--muted); font-size: 0.95rem; }
.course-price { color: var(--gold); font-weight: 700; }
.stars { color: var(--gold); letter-spacing: 0.18em; margin-bottom: 12px; }
.who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.tavatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; background: linear-gradient(135deg, rgba(242,201,76,0.2), rgba(255,255,255,0.04));
  color: var(--gold);
}
.cta-banner {
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, rgba(242,201,76,0.13), rgba(255,255,255,0.04));
}
.footer { padding: 42px 0 56px; border-top: 1px solid var(--border); margin-top: 18px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); }
.small { font-size: 0.95rem; }
.muted { color: var(--muted); }
@media (max-width: 900px) {
  .hero-grid, .grid-3, .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; align-items: flex-start; }
  .nav-links { display: none; }
  .hamburger { display: inline-flex; }
}
@media (max-width: 640px) {
  section { padding: 68px 0; }
  .hero { padding-top: 72px; }
  .hero-cta, .hero-stats { flex-direction: column; }
  .card, .tcard, .course-card, .cta-banner { padding: 20px; }
  .nav-actions .btn-sm { padding: 10px 14px; font-size: 0.92rem; }
}

.auth-wrap {
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
  padding: 40px 16px;
}

.form-card {
  width: min(460px, 100%);
  padding: 34px;
  border-radius: 24px;
  background: rgba(13, 17, 25, 0.95);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.form-card h2 {
  margin-bottom: 8px;
  font-size: 1.8rem;
}

.form-card .sub {
  margin-bottom: 22px;
}

.form {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row label {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
}

.form-row input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-size: 1rem;
}

.form-row input:focus {
  outline: none;
  border-color: rgba(242, 201, 76, 0.45);
  box-shadow: 0 0 0 3px rgba(242, 201, 76, 0.16);
}

.btn-block {
  width: 100%;
  margin-top: 6px;
}

.flash {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.flash.error {
  background: rgba(255, 92, 122, 0.14);
  color: #ffb5c0;
  border: 1px solid rgba(255, 92, 122, 0.25);
}

@media (max-width: 640px) {
  .auth-wrap {
    min-height: auto;
    padding: 24px 12px 40px;
  }

  .form-card {
    padding: 24px 18px;
    border-radius: 18px;
  }
}

body.menu-open { overflow: hidden; }

.nav-links {
  display: flex;
  gap: 20px;
  color: var(--muted);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 15;
}

.nav-overlay.is-visible { display: block; }

@media (max-width: 900px) {
  .hero-grid, .grid-3, .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; align-items: flex-start; }
  .nav-links {
    position: fixed;
    top: 74px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    gap: 0;
    background: rgba(13, 17, 25, 0.98);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.3);
    z-index: 16;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a {
    padding: 12px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-actions { gap: 8px; }
  .hamburger { display: inline-flex; }
}

@media (max-width: 640px) {
  section { padding: 68px 0; }
  .hero { padding-top: 72px; }
  .hero-cta, .hero-stats { flex-direction: column; }
  .card, .tcard, .course-card, .cta-banner { padding: 20px; }
  .nav-actions .btn-sm { padding: 10px 14px; font-size: 0.92rem; }
  .hero-grid { gap: 28px; }
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
}

.password-strength {
  font-size: 0.85rem;
  color: var(--muted);
  min-height: 1.1rem;
}

.password-strength.weak { color: #ff8a8a; }
.password-strength.medium { color: #f2c94c; }
.password-strength.strong { color: #39d98a; }
