:root {
  --wine: #94191e;
  --wine-dark: #6f1015;
  --wine-soft: #f8e9e9;
  --ink: #111214;
  --ink-soft: #2d3035;
  --cream: #f7f3ed;
  --paper: #fffdf9;
  --white: #ffffff;
  --gold: #c59647;
  --gold-soft: #f5ead7;
  --teal: #176d67;
  --teal-soft: #e2f1ef;
  --line: #e6dfd7;
  --muted: #6d6e72;
  --shadow-sm: 0 10px 30px rgba(17, 18, 20, 0.08);
  --shadow-md: 0 18px 50px rgba(17, 18, 20, 0.12);
  --shadow-lg: 0 30px 80px rgba(17, 18, 20, 0.18);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --container: 1200px;
  --header-height: 82px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 20px); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
svg { display: block; }

.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.section { padding: 110px 0; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -100px;
  z-index: 9999;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--white);
  transition: top .2s ease;
}
.skip-link:focus { top: 14px; }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 253, 249, .94);
  border-bottom: 1px solid rgba(148, 25, 30, .08);
  backdrop-filter: blur(18px);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.scrolled { box-shadow: 0 10px 30px rgba(17,18,20,.09); background: rgba(255,255,255,.97); }
.navbar { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { flex: 0 0 auto; }
.brand img { width: 188px; height: auto; }
.nav-panel { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.nav-links a { position: relative; font-size: .94rem; font-weight: 650; color: var(--ink-soft); transition: color .2s ease; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  background: var(--wine);
  transition: right .2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--wine); }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--cream); padding: 10px; }
.menu-toggle span { display: block; width: 100%; height: 2px; margin: 5px 0; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Shared */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 750;
  letter-spacing: .01em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: var(--white); background: linear-gradient(135deg, var(--wine), var(--wine-dark)); box-shadow: 0 12px 28px rgba(148,25,30,.25); }
.btn-primary:hover { box-shadow: 0 16px 34px rgba(148,25,30,.33); }
.btn-outline { border-color: rgba(17,18,20,.2); background: rgba(255,255,255,.55); color: var(--ink); }
.btn-outline:hover { border-color: var(--wine); color: var(--wine); background: var(--white); }
.btn-light { background: var(--white); color: var(--wine); box-shadow: 0 15px 35px rgba(0,0,0,.18); }
.btn-full { width: 100%; }
.btn-campus { min-height: 44px; padding: 10px 18px; font-size: .9rem; }
.btn-campus svg { width: 18px; height: 18px; fill: currentColor; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--wine); font-size: .79rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow > span { width: 34px; height: 2px; background: currentColor; }
.eyebrow.light { color: #f4d6d8; }
.section-heading { margin-bottom: 54px; }
.section-heading.centered { max-width: 760px; margin-inline: auto; text-align: center; }
.section-heading.centered .eyebrow { justify-content: center; }
.section-heading h2, .about-copy h2, .campus-copy h2, .contact-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.08;
  letter-spacing: -.045em;
}
.section-heading p, .about-copy > p, .campus-copy p, .contact-copy > p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.split-heading { display: grid; grid-template-columns: 1.35fr .65fr; gap: 60px; align-items: end; }
.split-heading > p { padding-bottom: 8px; }

/* Hero */
.hero {
  position: relative;
  min-height: 820px;
  padding: calc(var(--header-height) + 88px) 0 90px;
  background:
    radial-gradient(circle at 14% 18%, rgba(197,150,71,.14), transparent 28%),
    linear-gradient(145deg, #fffdf9 0%, #f8f2ec 55%, #f2e9e4 100%);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 74px; align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero-copy h1 { margin: 0 0 24px; max-width: 700px; font-size: clamp(3rem, 6vw, 5.6rem); line-height: .98; letter-spacing: -.062em; }
.hero-copy h1 em { color: var(--wine); font-style: normal; }
.hero-copy > p { max-width: 660px; margin: 0 0 30px; color: #595b60; font-size: 1.16rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 650px; margin-top: 42px; padding-top: 30px; border-top: 1px solid rgba(17,18,20,.12); }
.hero-mini-stats div { padding-right: 24px; }
.hero-mini-stats div + div { padding-left: 24px; border-left: 1px solid rgba(17,18,20,.12); }
.hero-mini-stats strong { display: block; font-size: 1.45rem; color: var(--ink); }
.hero-mini-stats span { display: block; font-size: .82rem; color: var(--muted); line-height: 1.35; }
.hero-visual { position: relative; min-height: 600px; }
.hero-image-wrap { position: absolute; inset: 0 35px 0 55px; border-radius: 180px 180px 36px 36px; overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-image-wrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(17,18,20,.25), transparent 48%); }
.hero-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual::before { content: ""; position: absolute; width: 180px; height: 180px; right: 0; top: 40px; border: 18px solid rgba(148,25,30,.13); border-radius: 50%; }
.floating-card { position: absolute; z-index: 3; display: flex; align-items: center; gap: 14px; width: 250px; padding: 16px; border: 1px solid rgba(255,255,255,.8); border-radius: 18px; background: rgba(255,255,255,.92); box-shadow: var(--shadow-md); backdrop-filter: blur(12px); }
.floating-card-top { top: 110px; left: 0; }
.floating-card-bottom { right: 0; bottom: 56px; }
.floating-card strong, .floating-card span { display: block; }
.floating-card strong { font-size: .91rem; }
.floating-card > div > span { color: var(--muted); font-size: .73rem; line-height: 1.35; }
.icon-badge { flex: 0 0 42px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--wine-soft); color: var(--wine); }
.icon-badge-gold { background: var(--gold-soft); color: #8c651f; }
.icon-badge svg { width: 22px; height: 22px; fill: currentColor; }
.hero-shape { position: absolute; pointer-events: none; }
.hero-shape-one { width: 300px; height: 300px; left: -160px; bottom: -90px; border: 45px solid rgba(148,25,30,.08); border-radius: 50%; }
.hero-shape-two { width: 130px; height: 130px; right: 2%; bottom: 5%; background-image: radial-gradient(rgba(148,25,30,.22) 2px, transparent 2px); background-size: 16px 16px; opacity: .65; }

/* Trust */
.trust-bar { position: relative; z-index: 4; margin-top: -36px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 22px; background: var(--white); box-shadow: var(--shadow-md); overflow: hidden; }
.trust-grid article { display: flex; align-items: center; gap: 14px; min-height: 110px; padding: 24px 26px; }
.trust-grid article + article { border-left: 1px solid var(--line); }
.trust-grid svg { flex: 0 0 34px; width: 34px; height: 34px; fill: var(--wine); }
.trust-grid strong, .trust-grid span { display: block; }
.trust-grid strong { font-size: .92rem; }
.trust-grid span { color: var(--muted); font-size: .75rem; line-height: 1.35; }

/* About */
.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 90px; align-items: center; }
.about-visual { position: relative; min-height: 560px; }
.about-image-main { position: absolute; inset: 0 40px 60px 0; border-radius: 30px; overflow: hidden; box-shadow: var(--shadow-md); }
.about-image-main img { width: 100%; height: 100%; object-fit: cover; }
.about-accent-card { position: absolute; right: 0; bottom: 0; width: 250px; padding: 24px; border-radius: 20px; background: var(--wine); color: var(--white); box-shadow: 0 20px 45px rgba(148,25,30,.32); }
.about-accent-card strong, .about-accent-card span { display: block; }
.about-accent-card strong { margin-bottom: 4px; font-size: 2rem; letter-spacing: .08em; }
.about-accent-card span { font-size: .78rem; line-height: 1.45; color: #f6d9da; }
.about-dots { position: absolute; left: -28px; bottom: 20px; width: 120px; height: 120px; background-image: radial-gradient(var(--gold) 2px, transparent 2px); background-size: 15px 15px; opacity: .45; }
.about-copy > p + p { margin-top: 14px; }
.feature-list { display: grid; gap: 20px; margin: 34px 0 28px; }
.feature-list article { display: flex; gap: 15px; align-items: flex-start; }
.feature-list strong, .feature-list span { display: block; }
.feature-list strong { margin-bottom: 3px; }
.feature-list article div > span { color: var(--muted); font-size: .9rem; }
.feature-icon { flex: 0 0 42px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--wine-soft); color: var(--wine); }
.feature-icon svg { width: 21px; height: 21px; fill: currentColor; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--wine); font-weight: 800; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }

/* Certifications */
.certifications { background: var(--cream); }
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cert-card { position: relative; min-height: 330px; padding: 30px 26px 26px; border: 1px solid rgba(148,25,30,.08); border-radius: var(--radius-md); background: var(--white); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.cert-card::before { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 5px; background: linear-gradient(90deg, var(--wine), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.cert-card:hover { transform: translateY(-8px); border-color: rgba(148,25,30,.18); box-shadow: var(--shadow-md); }
.cert-card:hover::before { transform: scaleX(1); }
.cert-number { position: absolute; top: 20px; right: 22px; color: rgba(148,25,30,.10); font-size: 2.7rem; font-weight: 900; line-height: 1; }
.cert-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 24px; border-radius: 15px; background: var(--wine-soft); color: var(--wine); }
.cert-icon svg { width: 27px; height: 27px; fill: currentColor; }
.cert-card h3 { margin: 0 0 12px; font-size: 1.08rem; line-height: 1.25; }
.cert-card p { margin: 0 0 22px; color: var(--muted); font-size: .88rem; }
.cert-card a { position: absolute; left: 26px; bottom: 24px; display: inline-flex; gap: 7px; color: var(--wine); font-size: .83rem; font-weight: 800; }

/* Courses */
.courses { background: var(--paper); }
.course-tools { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.course-search { position: relative; flex: 0 1 390px; }
.course-search svg { position: absolute; left: 17px; top: 50%; width: 20px; height: 20px; fill: #8b8d91; transform: translateY(-50%); pointer-events: none; }
.course-search input { width: 100%; height: 50px; padding: 0 18px 0 47px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.course-search input:focus { border-color: var(--wine); box-shadow: 0 0 0 4px rgba(148,25,30,.08); }
.filter-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.filter-btn { padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink-soft); font-size: .8rem; font-weight: 750; transition: all .2s ease; }
.filter-btn:hover, .filter-btn.active { border-color: var(--wine); background: var(--wine); color: var(--white); }
.course-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.course-card { display: flex; flex-direction: column; min-height: 420px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); overflow: hidden; box-shadow: 0 8px 24px rgba(17,18,20,.05); transition: transform .25s ease, box-shadow .25s ease; }
.course-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); }
.course-image { position: relative; height: 160px; background: linear-gradient(135deg, var(--wine-soft), var(--gold-soft)); overflow: hidden; }
.course-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(17,18,20,.42), transparent 60%); }
.course-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.course-card:hover .course-image img { transform: scale(1.06); }
.course-category { position: absolute; z-index: 2; left: 14px; bottom: 14px; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--wine); font-size: .68rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; backdrop-filter: blur(8px); }
.course-content { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.course-meta { display: flex; gap: 10px; margin-bottom: 14px; }
.course-meta span { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: .73rem; }
.course-meta svg { width: 15px; height: 15px; fill: var(--wine); }
.course-card h3 { margin: 0 0 16px; font-size: .98rem; line-height: 1.36; }
.course-card a { display: inline-flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); color: var(--wine); font-size: .82rem; font-weight: 800; }
.no-results { margin: 40px 0 0; padding: 24px; border-radius: 16px; background: var(--cream); color: var(--muted); text-align: center; }

/* Campus */
.campus-cta { position: relative; padding: 92px 0; color: var(--white); background: linear-gradient(135deg, #5f0d12, var(--wine) 55%, #a62a2f); overflow: hidden; }
.campus-grid { position: relative; z-index: 2; display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: center; }
.campus-copy p { color: #f3dfe0; }
.campus-copy .btn { margin-top: 28px; }
.campus-pattern { position: absolute; inset: 0; opacity: .18; background-image: radial-gradient(#fff 1.2px, transparent 1.2px); background-size: 22px 22px; mask-image: linear-gradient(to right, black, transparent 55%); }
.browser-window { border: 8px solid rgba(255,255,255,.18); border-radius: 24px; background: var(--white); box-shadow: 0 35px 75px rgba(0,0,0,.3); transform: perspective(1100px) rotateY(-5deg) rotateX(2deg); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 7px; height: 42px; padding: 0 14px; background: #f0ece8; }
.browser-bar > span { width: 9px; height: 9px; border-radius: 50%; background: #c4bcb4; }
.browser-bar div { flex: 1; max-width: 280px; margin-left: 10px; padding: 4px 12px; border-radius: 999px; background: var(--white); color: #8d8883; font-size: .62rem; }
.browser-body { display: grid; grid-template-columns: 100px 1fr; min-height: 330px; }
.mock-sidebar { padding: 22px 14px; background: #191b1e; }
.mock-logo { margin-bottom: 28px; color: var(--white); font-weight: 900; letter-spacing: .08em; }
.mock-sidebar i { display: block; height: 8px; margin: 14px 0; border-radius: 999px; background: #3c3f44; }
.mock-sidebar i:nth-child(2) { background: var(--wine); }
.mock-content { padding: 28px; color: var(--ink); background: #faf8f5; }
.mock-content small { color: var(--wine); font-weight: 850; letter-spacing: .11em; }
.mock-content h3 { margin: 5px 0 22px; font-size: 1.5rem; }
.mock-progress { padding: 18px; border-radius: 16px; background: var(--white); box-shadow: 0 6px 18px rgba(17,18,20,.07); }
.mock-progress > div { display: flex; justify-content: space-between; font-size: .75rem; }
.mock-progress b { display: block; height: 7px; margin-top: 12px; border-radius: 999px; background: #eee8e2; overflow: hidden; }
.mock-progress b i { display: block; width: 72%; height: 100%; background: linear-gradient(90deg, var(--wine), var(--gold)); }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.mock-cards span { height: 95px; border-radius: 14px; background: linear-gradient(145deg, #f0dfdf, #fff); box-shadow: 0 5px 16px rgba(17,18,20,.06); }
.mock-cards span:nth-child(2) { background: linear-gradient(145deg, #e0efed, #fff); }
.mock-cards span:nth-child(3) { background: linear-gradient(145deg, #f2e5cf, #fff); }

/* Contact */
.contact { background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.contact-items { display: grid; gap: 14px; margin-top: 34px; }
.contact-items a { display: flex; align-items: center; gap: 14px; padding: 15px 17px; border: 1px solid transparent; border-radius: 15px; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.contact-items a:hover { transform: translateX(4px); border-color: var(--line); background: var(--white); }
.contact-items a > span { flex: 0 0 42px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--wine-soft); color: var(--wine); }
.contact-items svg { width: 21px; height: 21px; fill: currentColor; }
.contact-items small, .contact-items strong { display: block; }
.contact-items small { color: var(--muted); font-size: .72rem; }
.contact-items strong { font-size: .91rem; word-break: break-word; }
.contact-form { padding: 34px; border-radius: 24px; background: var(--white); box-shadow: var(--shadow-md); }
.form-heading { margin-bottom: 24px; }
.form-heading strong, .form-heading span { display: block; }
.form-heading strong { font-size: 1.35rem; }
.form-heading span { color: var(--muted); font-size: .88rem; }
.contact-form label { display: grid; gap: 8px; margin-bottom: 17px; color: var(--ink-soft); font-size: .8rem; font-weight: 750; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #fffefa; color: var(--ink); outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.contact-form input, .contact-form select { height: 48px; padding: 0 14px; }
.contact-form textarea { min-height: 105px; padding: 12px 14px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--wine); box-shadow: 0 0 0 4px rgba(148,25,30,.07); }
.form-note { display: block; margin-top: 12px; color: var(--muted); text-align: center; font-size: .72rem; }

/* Footer */
.site-footer { padding-top: 70px; color: #d4d4d4; background: #151619; }
.footer-main { display: grid; grid-template-columns: 1.5fr .7fr 1fr .8fr; gap: 50px; padding-bottom: 52px; }
.footer-brand img { width: 220px; margin-bottom: 20px; padding: 8px 12px; border-radius: 12px; background: var(--white); }
.footer-brand p { max-width: 340px; margin: 0; color: #a8a9ac; font-size: .9rem; }
.footer-column { display: grid; align-content: start; gap: 10px; }
.footer-column h2 { margin: 0 0 9px; color: var(--white); font-size: .92rem; }
.footer-column a, .footer-column span { color: #a8a9ac; font-size: .8rem; line-height: 1.5; }
.footer-column a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; border-top: 1px solid #303237; color: #8f9195; font-size: .73rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #d8b16d; }
.whatsapp-float { position: fixed; right: 24px; bottom: 24px; z-index: 800; display: grid; place-items: center; width: 58px; height: 58px; border: 4px solid var(--white); border-radius: 50%; background: #25d366; color: var(--white); box-shadow: 0 12px 30px rgba(0,0,0,.25); transition: transform .2s ease; }
.whatsapp-float:hover { transform: translateY(-4px) scale(1.04); }
.whatsapp-float svg { width: 32px; height: 32px; fill: currentColor; }

/* Animation */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.revealed { opacity: 1; transform: none; }
.reveal-delay { transition-delay: .12s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 1100px) {
  :root { --header-height: 76px; }
  .nav-links { gap: 18px; }
  .nav-panel { gap: 18px; }
  .brand img { width: 170px; }
  .hero-grid { gap: 40px; }
  .hero-visual { min-height: 540px; }
  .hero-image-wrap { inset-inline: 35px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid article:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .trust-grid article:nth-child(4) { border-top: 1px solid var(--line); }
  .cert-grid, .course-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid, .contact-grid { gap: 55px; }
  .footer-main { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-column:last-child { grid-column: 2 / 4; }
}

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav-panel {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: grid;
    align-content: start;
    gap: 28px;
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 24px 34px rgba(17,18,20,.12);
    transition: max-height .35s ease, padding .35s ease;
  }
  .nav-panel.open { max-height: calc(100vh - var(--header-height)); padding: 26px 20px 34px; overflow-y: auto; }
  .nav-links { display: grid; gap: 0; }
  .nav-links a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav-links a::after { display: none; }
  .btn-campus { width: 100%; }
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy > p, .hero-mini-stats { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { min-height: 570px; max-width: 650px; width: 100%; margin: 0 auto; }
  .about-grid, .contact-grid, .campus-grid { grid-template-columns: 1fr; }
  .about-visual { min-height: 500px; }
  .split-heading { grid-template-columns: 1fr; gap: 18px; }
  .course-tools { align-items: stretch; flex-direction: column; }
  .course-search { flex-basis: auto; max-width: none; }
  .filter-buttons { justify-content: flex-start; }
  .cert-grid, .course-grid { grid-template-columns: repeat(2, 1fr); }
  .campus-grid { gap: 50px; }
  .campus-mockup { max-width: 720px; width: 100%; margin: auto; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, var(--container)); }
  .section { padding: 82px 0; }
  .brand img { width: 150px; }
  .hero { padding-top: calc(var(--header-height) + 58px); }
  .hero-copy h1 { font-size: clamp(2.65rem, 13vw, 4.2rem); }
  .hero-copy > p { font-size: 1rem; }
  .hero-mini-stats { grid-template-columns: 1fr; gap: 16px; max-width: 360px; text-align: left; }
  .hero-mini-stats div, .hero-mini-stats div + div { padding: 0 0 15px; border-left: 0; border-bottom: 1px solid rgba(17,18,20,.10); }
  .hero-visual { min-height: 470px; }
  .hero-image-wrap { inset: 0 20px; border-radius: 120px 120px 28px 28px; }
  .floating-card { width: 215px; padding: 12px; }
  .floating-card-top { top: 70px; left: -2px; }
  .floating-card-bottom { right: -2px; bottom: 25px; }
  .trust-bar { margin-top: -18px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-grid article + article, .trust-grid article:nth-child(3), .trust-grid article:nth-child(4) { border-left: 0; border-top: 1px solid var(--line); }
  .about-visual { min-height: 420px; }
  .about-image-main { inset: 0 24px 50px 0; }
  .about-accent-card { width: 220px; padding: 20px; }
  .cert-grid, .course-grid { grid-template-columns: 1fr; }
  .cert-card { min-height: 290px; }
  .course-card { min-height: 390px; }
  .course-image { height: 175px; }
  .filter-buttons { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
  .filter-btn { flex: 0 0 auto; }
  .browser-body { grid-template-columns: 75px 1fr; min-height: 270px; }
  .mock-content { padding: 18px; }
  .mock-cards span { height: 70px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 24px 18px; }
  .footer-main { grid-template-columns: 1fr; gap: 34px; }
  .footer-column:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .whatsapp-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}
