/*
Theme Name: Fizx Online
Theme URI: https://fizx.online
Description: Тема для образовательной платформы fizx.online — курсы по физике и информатике для ЕНТ
Version: 1.0
Author: Қоблан Қазбек
Text Domain: fizx
*/

/* ── VARIABLES ── */
:root {
  --bg:      #f7f5f0;
  --bg2:     #ffffff;
  --bg3:     #f0ede6;
  --text:    #1a1a18;
  --muted:   #7a7870;
  --border:  rgba(26,26,24,0.1);
  --accent:  #2d5a3d;
  --accent2: #3d7a52;
  --accent3: #e8f4ed;
  --warm:    #c4956a;
  --radius:  12px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Lora', serif;
  font-weight: 400;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,245,240,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 48px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.site-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
  display: flex; align-items: center; gap: 4px;
}
.site-logo .dot { color: var(--accent); }
.header-right { display: flex; align-items: center; gap: 20px; }
.ig-link {
  display: flex; align-items: center; gap: 7px;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  transition: color .2s;
}
.ig-link:hover { color: var(--text); }
.ig-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-auth {
  background: var(--text);
  color: var(--bg);
  border: none;
  padding: 9px 22px;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  transition: background .2s, transform .1s;
  display: inline-flex; align-items: center; gap: 7px;
}
.btn-auth:hover { background: var(--accent); transform: scale(1.02); color: #fff; }

/* ── HERO ── */
.hero {
  max-width: 1140px;
  margin: 0 auto;
  padding: 80px 48px 70px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: center;
}
.hero-left {}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent3);
  color: var(--accent);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  color: var(--text);
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero-desc {
  font-family: 'DM Sans', sans-serif;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 500px;
}
.hero-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 40px;
}
.hero-tag {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 100px;
}
.hero-stats {
  display: flex; gap: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* Hero photo */
.hero-right { position: relative; }
.hero-photo-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: 0 24px 60px rgba(26,26,24,0.15);
}
.hero-photo-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-photo-badge {
  position: absolute;
  bottom: 24px; left: 24px;
  background: rgba(247,245,240,0.95);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 12px 16px;
  font-family: 'DM Sans', sans-serif;
}
.hero-photo-badge .badge-title {
  font-size: 13px; font-weight: 500; color: var(--text);
}
.hero-photo-badge .badge-sub {
  font-size: 11px; color: var(--muted); margin-top: 2px;
}

/* ── FORMATS SECTION ── */
.formats-section {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 48px 70px;
}
.formats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.format-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color .2s, transform .2s;
}
.format-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.format-icon {
  width: 40px; height: 40px;
  background: var(--accent3);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.format-icon svg { width: 20px; height: 20px; color: var(--accent); }
.format-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.format-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

/* ── SECTION HEADER ── */
.section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
}
.section-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--muted);
}

/* ── COURSES ── */
.courses-section {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 48px 100px;
}
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.course-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.course-card:hover {
  border-color: rgba(45,90,61,0.3);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(45,90,61,0.08);
}
.course-cover {
  height: 180px;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.cover-physics  { background: linear-gradient(135deg, #1a2f22 0%, #2d5a3d 100%); }
.cover-cs       { background: linear-gradient(135deg, #1e2535 0%, #2d3f6b 100%); }
.cover-intensive{ background: linear-gradient(135deg, #2e1f14 0%, #6b3d1e 100%); }
.cover-section  { background: linear-gradient(135deg, #1a2428 0%, #2d4a52 100%); }
.cover-teachers { background: linear-gradient(135deg, #28201a 0%, #5a3d2d 100%); }
.cover-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px;
  font-weight: 700;
  color: rgba(255,255,255,0.08);
  position: absolute;
  right: 16px; bottom: -8px;
  line-height: 1;
  user-select: none;
}
.cover-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--accent);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}
.cover-subject {
  position: absolute;
  bottom: 16px; left: 16px;
  display: flex; align-items: center; gap: 6px;
}
.subject-pill {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(4px);
  color: rgba(255,255,255,0.8);
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 100px;
}
.course-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.course-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 10px;
  color: var(--text);
}
.course-desc {
  font-family: 'DM Sans', sans-serif;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  margin-bottom: 18px;
  flex: 1;
}
.course-meta {
  display: flex; gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.meta-item {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--muted);
}
.meta-item b { color: var(--text); font-weight: 500; display: block; margin-bottom: 1px; }

/* ── SINGLE COURSE ── */
.single-course { max-width: 1140px; margin: 0 auto; padding: 48px 48px 100px; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  margin-bottom: 40px;
  transition: color .2s;
}
.back-link:hover { color: var(--text); }
.course-page-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}
.cp-subject {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent3);
  color: var(--accent);
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.cp-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -1px;
  margin-bottom: 20px;
  color: var(--text);
}
.cp-desc {
  font-family: 'DM Sans', sans-serif;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 36px;
}
.cp-stats {
  display: flex; gap: 28px; flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.cp-stat { font-family: 'DM Sans', sans-serif; font-size: 13px; color: var(--muted); }
.cp-stat b { color: var(--text); font-weight: 500; font-size: 16px; display: block; margin-bottom: 2px; }
.curriculum-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px; font-weight: 700;
  margin-bottom: 20px; color: var(--text);
}
.section-block { margin-bottom: 6px; }
.section-head {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer;
  transition: border-color .2s;
}
.section-head:hover { border-color: var(--accent); }
.section-head-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 500; color: var(--text);
}
.section-head-count {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; color: var(--muted);
}
.lessons-list {}
.lesson-item {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 18px;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; color: var(--muted);
}
.lesson-item:last-child { border-radius: 0 0 10px 10px; }
.lesson-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg3);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.lesson-icon svg { width: 11px; height: 11px; opacity: 0.4; }
.lesson-name { flex: 1; }
.lesson-lock { font-size: 11px; opacity: 0.4; }

/* ── STICKY CARD ── */
.course-sticky {
  position: sticky; top: 80px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(26,26,24,0.08);
}
.sticky-cover { height: 160px; position: relative; overflow: hidden; }
.sticky-cover img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.sticky-body { padding: 24px; }
.sticky-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.07em;
  margin-bottom: 6px;
}
.sticky-cta {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; color: var(--muted);
  line-height: 1.65; margin-bottom: 20px;
}
.btn-buy {
  display: block; width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 500;
  transition: background .2s;
  margin-bottom: 10px;
  text-align: center;
}
.btn-buy:hover { background: var(--accent2); color: #fff; }
.buy-note {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; color: var(--muted);
  text-align: center; line-height: 1.5;
}
.buy-note a { color: var(--accent); }
.includes-list { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.includes-item {
  display: flex; align-items: center; gap: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; color: var(--muted);
  padding: 5px 0;
}
.includes-item svg { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; }

/* ── POPUP ── */
.popup-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 200;
  background: rgba(26,26,24,0.5);
  backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
}
.popup-overlay.open { display: flex; }
.popup {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  width: 100%; max-width: 400px;
  text-align: center;
  position: relative;
}
.popup-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none;
  font-size: 22px; color: var(--muted);
  cursor: pointer; line-height: 1;
}
.popup-icon {
  width: 56px; height: 56px;
  background: var(--accent3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.popup-icon svg { width: 24px; height: 24px; color: var(--accent); }
.popup-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px; font-weight: 700;
  margin-bottom: 10px; color: var(--text);
}
.popup-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; color: var(--muted);
  line-height: 1.7; margin-bottom: 24px;
}
.popup-ig {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--text);
  color: var(--bg);
  padding: 12px 24px;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 500;
  transition: background .2s;
}
.popup-ig:hover { background: var(--accent); color: #fff; }
.popup-ig svg { width: 16px; height: 16px; }

/* ── ACCOUNT PAGE ── */
.account-page { max-width: 1140px; margin: 0 auto; padding: 48px 48px 100px; }
.account-header {
  display: flex; align-items: center; gap: 20px;
  margin-bottom: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}
.account-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--accent3);
  border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px; font-weight: 700;
  color: var(--accent); flex-shrink: 0;
}
.account-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px; font-weight: 700; color: var(--text);
}
.account-email {
  font-family: 'DM Sans', sans-serif;
  color: var(--muted); font-size: 13px; margin-top: 3px;
}
.account-grid { display: grid; grid-template-columns: 200px 1fr; gap: 32px; }
.account-nav { display: flex; flex-direction: column; gap: 3px; }
.account-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; color: var(--muted);
  transition: background .15s, color .15s;
}
.account-nav a svg { width: 16px; height: 16px; flex-shrink: 0; }
.account-nav a:hover { background: var(--bg3); color: var(--text); }
.account-nav a.active { background: var(--accent3); color: var(--accent); }
.account-nav a.logout { margin-top: 12px; }
.tab-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px; font-weight: 700;
  margin-bottom: 24px; color: var(--text);
}
.my-course-row {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 12px;
  transition: border-color .2s;
}
.my-course-row:hover { border-color: rgba(45,90,61,0.3); }
.my-course-thumb {
  width: 48px; height: 48px;
  border-radius: 10px;
  flex-shrink: 0;
  object-fit: cover;
}
.my-course-info { flex: 1; }
.my-course-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 500;
  color: var(--text); margin-bottom: 4px;
}
.my-course-progress-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; color: var(--muted); margin-bottom: 7px;
}
.progress-track { height: 4px; background: var(--bg3); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width .5s; }
.btn-continue {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
}
.btn-continue:hover { background: var(--bg3); border-color: var(--accent); }
.settings-form { display: flex; flex-direction: column; gap: 16px; max-width: 400px; }
.form-label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; color: var(--text);
  outline: none;
  transition: border-color .2s;
}
.form-input:focus { border-color: var(--accent); }
.btn-save {
  background: var(--accent);
  color: #fff; border: none;
  padding: 12px 28px;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 500;
  align-self: flex-start;
  transition: background .2s;
}
.btn-save:hover { background: var(--accent2); }
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
}
.empty-state a { color: var(--accent); }

/* ── FOOTER ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 48px;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg2);
}
.footer-copy {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; color: var(--muted);
}
.footer-ig {
  display: flex; align-items: center; gap: 7px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; color: var(--muted);
  transition: color .2s;
}
.footer-ig:hover { color: var(--text); }
.footer-ig svg { width: 15px; height: 15px; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-left { animation: fadeUp .7s ease both; }
.hero-right { animation: fadeUp .7s .15s ease both; }

/* ── RESPONSIVE ── */

/* Планшет */
@media (max-width: 960px) {
  /* Hero */
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 60px 32px 60px; }
  .hero-right { max-width: 360px; margin: 0 auto; }

  /* Курс */
  .course-page-inner { grid-template-columns: 1fr; }
  .course-sticky { position: static; }

  /* Форматы */
  .formats-grid { grid-template-columns: 1fr; }
  .formats-section { padding-left: 32px; padding-right: 32px; }

  /* Курсы */
  .courses-section { padding-left: 32px; padding-right: 32px; }

  /* Аккаунт */
  .account-grid { grid-template-columns: 1fr; }
  .account-nav { flex-direction: row; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
  .account-nav a.logout { margin-top: 0; margin-left: auto; }
  .account-page { padding-left: 32px; padding-right: 32px; }

  /* Single course */
  .single-course { padding-left: 32px; padding-right: 32px; }
}

/* Мобильный */
@media (max-width: 640px) {
  /* Хедер */
  .site-header { padding: 0 16px; height: 56px; gap: 12px; }
  .site-logo { font-size: 20px; }
  .ig-link { display: none; }
  .btn-auth { padding: 7px 14px; font-size: 12px; }

  /* ── HERO: фото как фон, текст поверх ── */
  .hero {
    position: relative;
    grid-template-columns: 1fr;
    padding: 0;
    gap: 0;
    overflow: hidden;
  }

  /* Правая колонка (фото) — абсолютный фон */
  .hero-right {
    position: absolute;
    inset: 0;
    max-width: none;
    margin: 0;
    z-index: 0;
    pointer-events: none;
  }
  .hero-photo-wrap {
    border-radius: 0;
    box-shadow: none;
    aspect-ratio: unset;
    height: 100%;
  }
  .hero-photo-wrap img { object-position: center 10%; }

  /* Тёмный градиент снизу — текст читается на любом фото */
  .hero-right::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      rgba(8,16,10,0.30) 0%,
      rgba(8,16,10,0.60) 45%,
      rgba(8,16,10,0.88) 100%
    );
  }

  /* Бейдж преподавателя убираем — не нужен на фоне */
  .hero-photo-badge { display: none; }

  /* Текстовый блок — поверх фото, прижат к низу */
  .hero-left {
    position: relative;
    z-index: 1;
    padding: 56px 20px 44px;
    min-height: 92vw;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  /* Цвета на тёмном фоне */
  .hero-eyebrow {
    background: rgba(255,255,255,0.13);
    color: rgba(255,255,255,0.88);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(6px);
    font-size: 11px;
  }
  .hero-eyebrow::before { background: #8ed4a8; }

  .hero h1 {
    color: #fff;
    font-size: clamp(34px, 10vw, 52px);
    letter-spacing: -1px;
    text-shadow: 0 2px 16px rgba(0,0,0,0.4);
  }
  .hero h1 em { color: #7ecf9a; }

  .hero-desc {
    color: rgba(255,255,255,0.80);
    font-size: 14px;
    max-width: 100%;
    text-shadow: 0 1px 6px rgba(0,0,0,0.35);
  }

  .hero-tag {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.20);
    color: rgba(255,255,255,0.85);
    backdrop-filter: blur(4px);
    font-size: 11px;
  }

  .hero-stats {
    border-top-color: rgba(255,255,255,0.18);
    padding-top: 18px;
    gap: 20px;
  }
  .stat-num { color: #7ecf9a; font-size: 28px; }
  .stat-label { color: rgba(255,255,255,0.60); }


  /* Форматы */
  .formats-section { padding: 40px 16px; }
  .section-title { font-size: 28px; }
  .format-card { padding: 22px 18px; }
  .format-title { font-size: 17px; }
  .format-desc { font-size: 13px; }

  /* Курсы */
  .courses-section { padding: 0 16px 60px; }
  .courses-grid { grid-template-columns: 1fr; }
  .course-title { font-size: 17px; }
  .course-cover { height: 160px; }

  /* Single course */
  .single-course { padding: 24px 16px 60px; }
  .cp-title { font-size: clamp(24px, 7vw, 36px); }
  .cp-desc { font-size: 14px; }
  .cp-stats { gap: 16px; }
  .curriculum-title { font-size: 18px; }
  .back-link { font-size: 12px; margin-bottom: 20px; }

  /* Sticky sidebar на мобильном становится обычным блоком */
  .course-sticky { border-radius: 12px; }
  .sticky-cover { height: 120px; }

  /* Popup */
  .popup { padding: 28px 20px; margin: 16px; border-radius: 16px; }
  .popup-title { font-size: 22px; }
  .popup-text { font-size: 13px; }

  /* Аккаунт */
  .account-page { padding: 24px 16px 60px; }
  .account-header { gap: 14px; margin-bottom: 28px; padding-bottom: 24px; }
  .account-avatar { width: 48px; height: 48px; font-size: 20px; }
  .account-name { font-size: 20px; }
  .account-nav { gap: 4px; }
  .account-nav a { padding: 8px 12px; font-size: 13px; }
  .account-nav a svg { width: 14px; height: 14px; }
  .my-course-row { padding: 14px 14px; gap: 12px; }
  .my-course-thumb { width: 40px; height: 40px; }
  .my-course-name { font-size: 13px; }
  .btn-continue { padding: 6px 12px; font-size: 11px; }
  .settings-form { max-width: 100%; }
  .tab-title { font-size: 20px; }

  /* Footer */
  .site-footer { padding: 20px 16px; flex-direction: column; gap: 12px; text-align: center; }
}
