/* =============================================
   DSS DEUTSCHE SprachSchule — Main Stylesheet
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:   #1a1a1a;
  --red:     #c0392b;
  --gold:    #e2a415;
  --gold-lt: #f5c842;
  --navy:    #0d1b2a;
  --white:   #ffffff;
  --off-white: #f7f7f5;
  --gray:    #6b7280;
  --light:   #f3f4f6;
  --dark-bg: #111827;
  --dark-bg2:#1f2937;
  --font:    'Inter', sans-serif;
  --topbar-h: 40px;
  --header-h: 90px;
  --radius:   10px;
  --shadow:   0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg:0 8px 40px rgba(0,0,0,0.18);
  --trans:    0.25s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--black); background: var(--white); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ===================== TOP BAR ===================== */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--topbar-h);
  background: var(--navy);
  display: flex; align-items: center;
}
.topbar-inner {
  width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.lang-selector { display: flex; align-items: center; gap: 6px; }
.lang-btn {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.55); font-size: 12px; font-weight: 600;
  font-family: var(--font); letter-spacing: 0.5px;
  transition: color var(--trans);
  padding: 2px 4px;
}
.lang-btn:hover, .lang-btn.active { color: var(--gold); }
.lang-sep { color: rgba(255,255,255,0.25); font-size: 11px; }
.topbar-title { color: var(--white); font-size: 13px; font-weight: 700; letter-spacing: 1px; }
.login-btn {
  display: flex; align-items: center; gap: 6px;
  color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
  transition: color var(--trans);
}
.login-btn:hover { color: var(--gold-lt); }

/* ===================== HEADER ===================== */
.site-header {
  position: fixed; top: var(--topbar-h); left: 0; right: 0; z-index: 999;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  transition: box-shadow var(--trans);
}
.site-header.scrolled { box-shadow: var(--shadow-lg); }
.header-inner {
  width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo-link { flex-shrink: 0; }
.logo-img { height: 72px; width: auto; object-fit: contain; }

.main-nav {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px;
  justify-content: flex-end; flex: 1;
}
.nav-link {
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
  color: var(--black); padding: 6px 8px; border-radius: 5px;
  transition: color var(--trans), background var(--trans);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--gold); background: rgba(226,164,21,0.08); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--black); border-radius: 2px; transition: var(--trans); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== SECTIONS GENERAL ===================== */
main { padding-top: calc(var(--topbar-h) + var(--header-h)); }
.section { padding: 90px 0; }
.section-white { background: var(--white); }
.section-dark  { background: var(--dark-bg); color: var(--white); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.mt-2 { margin-top: 40px; }

/* Section heading */
.sec-head { text-align: center; margin-bottom: 56px; }
.sec-tag {
  display: inline-block; background: rgba(226,164,21,0.12); color: var(--gold);
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 5px 16px; border-radius: 20px; margin-bottom: 14px;
}
.section-dark .sec-tag { background: rgba(226,164,21,0.15); }
.sec-head h2 {
  font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.sec-desc { font-size: 17px; color: var(--gray); max-width: 560px; margin: 16px auto 0; }
.section-dark .sec-desc { color: rgba(255,255,255,0.6); }

/* Flag underline */
.flag-line {
  display: flex; justify-content: center; gap: 3px; margin-bottom: 8px;
}
.flag-line span { height: 4px; width: 36px; border-radius: 2px; }
.flag-line span:nth-child(1) { background: var(--black); }
.flag-line span:nth-child(2) { background: var(--red); }
.flag-line span:nth-child(3) { background: var(--gold); }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 8px; font-size: 13px; font-weight: 700;
  letter-spacing: 0.5px; cursor: pointer; border: 2px solid transparent;
  transition: all var(--trans); white-space: nowrap;
}
.btn-gold    { background: var(--gold); color: var(--black); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-lt); border-color: var(--gold-lt); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(226,164,21,0.35); }
.btn-dark    { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-dark:hover { background: #1a2e42; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-outline-white:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-outline-gold { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn-outline-gold:hover { background: var(--gold); color: var(--black); }
.btn-full { width: 100%; }

/* ===================== HERO ===================== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.04); transition: transform 8s ease;
}
.hero:hover .hero-bg { transform: scale(1); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,27,42,0.88) 0%, rgba(13,27,42,0.65) 60%, rgba(13,27,42,0.4) 100%);
}
.hero-flag-bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; height: 5px;
}
.flag-black { flex: 1; background: #1a1a1a; }
.flag-red   { flex: 1; background: var(--red); }
.flag-gold  { flex: 1; background: var(--gold); }

.hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  width: 100%;
}
.hero-kicker {
  color: var(--gold); font-size: 13px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(36px, 5.5vw, 72px); font-weight: 900;
  color: var(--white); line-height: 1.08; letter-spacing: -1px;
  margin-bottom: 24px; max-width: 750px;
}
.hero-subtitle {
  font-size: clamp(15px, 1.8vw, 19px); color: rgba(255,255,255,0.8);
  line-height: 1.65; max-width: 580px; margin-bottom: 36px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 60px; }
.hero-stats {
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
}
.hs { display: flex; flex-direction: column; gap: 4px; }
.hs-num { font-size: 28px; font-weight: 900; color: var(--gold); }
.hs-lbl { font-size: 12px; color: rgba(255,255,255,0.65); letter-spacing: 0.5px; }
.hs-divider { width: 1px; height: 36px; background: rgba(255,255,255,0.2); }

/* ===================== ÜBER DSS ===================== */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.about-text .lead {
  font-size: 19px; font-weight: 500; line-height: 1.65;
  margin-bottom: 18px; color: var(--black);
}
.about-text p { color: var(--gray); line-height: 1.75; margin-bottom: 28px; }
.feat-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.feat {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px; border-radius: var(--radius);
  background: var(--off-white); transition: box-shadow var(--trans);
}
.feat:hover { box-shadow: var(--shadow); }
.feat-icon { font-size: 24px; flex-shrink: 0; margin-top: 2px; }
.feat strong { display: block; font-weight: 700; margin-bottom: 4px; }
.feat p { color: var(--gray); font-size: 14px; margin: 0; }

.about-img-wrap {
  position: relative; border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-img { width: 100%; height: 460px; object-fit: cover; display: block; }
.about-badge {
  position: absolute; bottom: 24px; left: 24px;
  background: var(--navy); color: var(--white);
  border-radius: 12px; padding: 16px 20px;
  display: flex; flex-direction: column; align-items: center;
  box-shadow: var(--shadow-lg);
}
.ab-num { font-size: 32px; font-weight: 900; color: var(--gold); line-height: 1; }
.ab-txt { font-size: 12px; text-align: center; margin-top: 4px; opacity: 0.8; }

/* ===================== COURSES ===================== */
.courses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.course-card {
  background: var(--dark-bg2); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px; padding: 36px 28px;
  display: flex; flex-direction: column; gap: 16px;
  transition: transform var(--trans), box-shadow var(--trans);
  position: relative; overflow: hidden;
}
.course-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--black) 33%, var(--red) 33% 66%, var(--gold) 66%);
}
.course-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.4); }
.course-card.course-featured {
  border-color: var(--gold); background: linear-gradient(160deg, #1f2937, #2a2000);
}
.clevel {
  font-size: 13px; font-weight: 800; color: var(--gold);
  letter-spacing: 1px; border: 1px solid rgba(226,164,21,0.3);
  display: inline-block; padding: 4px 12px; border-radius: 20px; width: fit-content;
}
.course-card h3 { font-size: 22px; font-weight: 800; color: var(--white); }
.course-card p { color: rgba(255,255,255,0.65); font-size: 14px; line-height: 1.6; flex: 1; }
.cd-list { display: flex; flex-direction: column; gap: 8px; }
.cd-list li { color: rgba(255,255,255,0.65); font-size: 13px; }
.pop-badge {
  position: absolute; top: 16px; right: 16px;
  background: var(--gold); color: var(--black);
  font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 20px;
}

/* ===================== AUSBILDUNG ===================== */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.tc-text p { color: var(--gray); line-height: 1.75; margin-bottom: 28px; font-size: 16px; }
.steps { display: flex; flex-direction: column; gap: 24px; margin-bottom: 32px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step-n {
  flex-shrink: 0; width: 44px; height: 44px;
  background: var(--gold); color: var(--black);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 900; font-family: var(--font);
}
.step h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.step p { color: var(--gray); font-size: 14px; }

.tc-img { position: relative; }
.tc-photo { width: 100%; height: 420px; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow-lg); }
.tc-overlay-card {
  position: absolute; bottom: -24px; left: -24px;
  background: var(--navy); border-radius: 14px;
  padding: 20px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--shadow-lg); min-width: 200px;
}
.toc-item { color: var(--white); font-size: 13px; font-weight: 600; }

/* ===================== STUDIUM ===================== */
.study-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.study-card {
  background: var(--dark-bg2); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px; padding: 28px 22px;
  transition: transform var(--trans), border-color var(--trans);
}
.study-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.sc-ico { font-size: 28px; margin-bottom: 14px; }
.study-card h4 { font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.study-card p { color: rgba(255,255,255,0.55); font-size: 14px; line-height: 1.6; }

/* ===================== GESUNDHEITSBERUFE ===================== */
.ges-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.ges-img { width: 100%; height: 480px; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow-lg); }
.ges-cards { display: flex; flex-direction: column; gap: 20px; }
.gk {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px; border-radius: 12px; background: var(--off-white);
  border-left: 4px solid var(--gold); transition: box-shadow var(--trans);
}
.gk:hover { box-shadow: var(--shadow); }
.gk-ico { font-size: 26px; flex-shrink: 0; }
.gk h4 { font-size: 15px; font-weight: 700; margin-bottom: 5px; }
.gk p { color: var(--gray); font-size: 13px; line-height: 1.55; }

/* ===================== VISUM ===================== */
.visum-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.visum-block {
  background: var(--dark-bg2); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px; padding: 36px;
}
.vb-icon { font-size: 36px; margin-bottom: 16px; }
.visum-block h3 { font-size: 22px; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.visum-block p { color: rgba(255,255,255,0.65); font-size: 15px; line-height: 1.7; margin-bottom: 20px; }
.vb-list { display: flex; flex-direction: column; gap: 10px; }
.vb-list li { color: rgba(255,255,255,0.75); font-size: 14px; transition: color var(--trans); }
.vb-list li:hover { color: var(--gold); }

/* ===================== TESTIMONIALS ===================== */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi-card {
  background: var(--off-white); border-radius: 16px; padding: 32px 26px;
  display: flex; flex-direction: column; gap: 16px;
  transition: transform var(--trans), box-shadow var(--trans);
  border: 1px solid transparent;
}
.testi-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.testi-card.testi-feat { background: var(--navy); color: var(--white); border-color: var(--gold); }
.tav {
  width: 52px; height: 52px; background: var(--gold); color: var(--black);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 900;
}
.t-stars { color: var(--gold); font-size: 14px; letter-spacing: 1px; }
.t-quote { font-size: 15px; line-height: 1.7; flex: 1; font-style: italic; }
.testi-feat .t-quote { color: rgba(255,255,255,0.85); }
.t-author { display: flex; flex-direction: column; gap: 3px; border-top: 1px solid rgba(0,0,0,0.07); padding-top: 14px; }
.testi-feat .t-author { border-color: rgba(255,255,255,0.15); }
.t-author strong { font-size: 14px; font-weight: 700; }
.t-author span { font-size: 12px; color: var(--gray); }
.testi-feat .t-author span { color: rgba(255,255,255,0.55); }

/* ===================== BLOG ===================== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card {
  background: var(--dark-bg2); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px; padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform var(--trans), border-color var(--trans);
}
.blog-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.bc-cat {
  font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  color: var(--gold); background: rgba(226,164,21,0.12); padding: 4px 10px;
  border-radius: 20px; width: fit-content;
}
.blog-card h4 { font-size: 16px; font-weight: 700; color: var(--white); line-height: 1.4; flex: 1; }
.blog-card p { color: rgba(255,255,255,0.55); font-size: 14px; line-height: 1.6; }
.blog-more { color: var(--gold); font-size: 13px; font-weight: 700; transition: gap var(--trans); }
.blog-more:hover { text-decoration: underline; }

/* ===================== CONTACT ===================== */
.contact-grid { display: grid; grid-template-columns: 380px 1fr; gap: 56px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.ci { display: flex; gap: 14px; align-items: flex-start; }
.ci > span { font-size: 22px; margin-top: 2px; }
.ci strong { display: block; font-weight: 700; margin-bottom: 4px; font-size: 14px; }
.ci p { color: var(--gray); font-size: 14px; }
.social-row { display: flex; gap: 12px; margin-top: 8px; }
.soc-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--off-white); color: var(--black);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--trans), color var(--trans), transform var(--trans);
  border: 1px solid rgba(0,0,0,0.08);
}
.soc-btn:hover { background: var(--gold); color: var(--black); transform: translateY(-2px); }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grp { display: flex; flex-direction: column; gap: 6px; }
.form-grp label { font-size: 13px; font-weight: 600; color: var(--black); }
.form-grp input, .form-grp select, .form-grp textarea {
  padding: 12px 16px; border-radius: 8px;
  border: 1.5px solid #e5e7eb; font-family: var(--font); font-size: 14px;
  color: var(--black); background: var(--white); outline: none;
  transition: border-color var(--trans), box-shadow var(--trans);
}
.form-grp input:focus, .form-grp select:focus, .form-grp textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(226,164,21,0.12);
}
.form-grp textarea { resize: vertical; }
.form-success {
  display: none; background: #d1fae5; color: #065f46;
  border-radius: 8px; padding: 14px 16px; font-size: 14px; font-weight: 600;
}
.form-success.show { display: block; }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--navy); color: var(--white); }
.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px; padding: 64px 24px;
}
.ft-brand p { color: rgba(255,255,255,0.55); font-size: 13px; margin-top: 12px; }
.ft-logo { height: 60px; width: auto; object-fit: contain; }
.ft-links h4 { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 18px; color: var(--gold); }
.ft-links ul { display: flex; flex-direction: column; gap: 10px; }
.ft-links li, .ft-links a { color: rgba(255,255,255,0.55); font-size: 13px; transition: color var(--trans); }
.ft-links a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); }
.fb-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; flex-wrap: wrap; gap: 12px;
}
.fb-inner p { color: rgba(255,255,255,0.4); font-size: 12px; }
.fb-legal { display: flex; gap: 20px; }
.fb-legal a { color: rgba(255,255,255,0.4); font-size: 12px; transition: color var(--trans); }
.fb-legal a:hover { color: var(--gold); }

/* ===================== CHAT FAB ===================== */
.chat-fab {
  position: fixed; bottom: 28px; right: 28px; z-index: 998;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--gold); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(226,164,21,0.5);
  transition: transform var(--trans), box-shadow var(--trans);
}
.chat-fab:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(226,164,21,0.6); }
.chat-popup {
  position: fixed; bottom: 96px; right: 28px; z-index: 997;
  width: 320px; background: var(--white); border-radius: 16px;
  box-shadow: var(--shadow-lg); overflow: hidden;
  display: none; flex-direction: column;
  animation: popIn 0.2s ease;
}
.chat-popup.open { display: flex; }
@keyframes popIn {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.cp-header {
  background: var(--navy); padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.cp-title { display: flex; align-items: center; gap: 10px; color: var(--white); font-size: 13px; font-weight: 700; }
.cp-close { background: none; border: none; color: rgba(255,255,255,0.6); cursor: pointer; font-size: 16px; }
.cp-close:hover { color: var(--white); }
.cp-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; max-height: 220px; overflow-y: auto; }
.cp-msg {
  max-width: 85%; padding: 10px 14px; border-radius: 12px;
  font-size: 13px; line-height: 1.55;
}
.cp-msg.bot { background: var(--off-white); align-self: flex-start; border-bottom-left-radius: 4px; }
.cp-msg.user { background: var(--gold); color: var(--black); align-self: flex-end; border-bottom-right-radius: 4px; font-weight: 600; }
.cp-input-row {
  display: flex; border-top: 1px solid var(--light); padding: 10px 12px; gap: 8px;
}
.cp-input-row input {
  flex: 1; border: 1.5px solid #e5e7eb; border-radius: 20px;
  padding: 8px 14px; font-size: 13px; font-family: var(--font); outline: none;
}
.cp-input-row input:focus { border-color: var(--gold); }
.cp-input-row button {
  background: var(--gold); border: none; color: var(--black);
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  font-size: 16px; font-weight: 700; transition: background var(--trans);
}
.cp-input-row button:hover { background: var(--gold-lt); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1100px) {
  .about-grid, .two-col, .ges-grid, .visum-grid, .contact-grid { grid-template-columns: 1fr; }
  .courses-grid, .study-grid, .testi-grid, .blog-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .tc-overlay-card { position: static; margin-top: 16px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --header-h: 70px; }
  .main-nav { display: none; flex-direction: column; position: fixed; top: calc(var(--topbar-h) + var(--header-h)); left: 0; right: 0; background: var(--white); padding: 24px; box-shadow: var(--shadow-lg); gap: 4px; }
  .main-nav.open { display: flex; }
  .nav-link { font-size: 14px; padding: 10px 16px; }
  .hamburger { display: flex; }
  .logo-img { height: 54px; }
  .topbar-title { display: none; }
  .hero-title { font-size: 32px; }
  .hero-btns { flex-direction: column; }
  .hero-stats { gap: 20px; }
  .courses-grid, .study-grid, .testi-grid, .blog-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; padding: 40px 24px; }
  .fb-inner { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .about-img { height: 300px; }
  .ges-img { height: 300px; }
}
@media (max-width: 480px) {
  .section { padding: 60px 0; }
  .hero { min-height: 85vh; }
  .chat-popup { width: calc(100vw - 32px); right: 16px; }
}
