/* =========================================================
   Total Defense Academy — styles
   Colors are defined once here; change them to restyle the site.
   ========================================================= */
:root {
  --bg: #0a0a0b;
  --bg-alt: #111113;
  --surface: #17171a;
  --surface-2: #1f1f23;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #f4f2ee;
  --muted: #a3a09a;
  --red: #e1262f;
  --red-dark: #b51c24;
  --red-soft: rgba(225, 38, 47, .12);
  --radius: 18px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  font-family: "Noto Sans Armenian", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
::selection { background: var(--red); color: #fff; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.i { width: 1.15em; height: 1.15em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.accent { color: var(--red); }
.muted { color: var(--muted); }

/* ---------- Typography ---------- */
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); margin-bottom: 20px; }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
.kicker {
  display: block;
  color: var(--red); font-size: .78rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; margin-bottom: 16px;
}
.body-lg { font-size: 1.1rem; margin-bottom: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 26px; border-radius: 12px;
  background: var(--red); color: #fff; font-weight: 700; font-size: .98rem;
  border: 1px solid var(--red);
  transition: background .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(225, 38, 47, .3); }
.btn .i { transition: transform .25s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn-sm { height: 42px; padding: 0 20px; font-size: .9rem; border-radius: 10px; }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--line-strong); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .35); box-shadow: none; }
.btn-light { background: #fff; color: #111; border-color: #fff; }
.btn-light:hover { background: #f1efeb; border-color: #f1efeb; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.btn-light:hover .i, .btn-outline-light:hover .i { transform: none; }
.btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, .55); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; box-shadow: none; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.header.scrolled, .header.menu-open { background: rgba(10, 10, 11, .86); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.header .container { max-width: 1320px; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .08); }
.brand-text { white-space: nowrap; font-weight: 900; font-size: 1rem; letter-spacing: .06em; line-height: 1.05; }
.brand-text small { display: block; font-size: .62rem; letter-spacing: .38em; color: var(--red); font-weight: 800; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a:not(.btn) { white-space: nowrap; font-size: .9rem; font-weight: 500; color: rgba(244, 242, 238, .72); position: relative; transition: color .2s; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .25s var(--ease); }
.nav a:not(.btn):hover, .nav a.active { color: #fff; }
.nav a.active::after { transform: scaleX(1); }
.menu-toggle { display: none; width: 44px; height: 44px; position: relative; }
.menu-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(100vh, 900px);
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 72px; overflow: hidden;
}
.hero-media { position: absolute; top: 0; right: 0; bottom: 0; width: 60%; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 55% 30%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 38%);
          mask-image: linear-gradient(to right, transparent 0%, #000 38%);
  animation: heroZoom 14s var(--ease) both;
}
.hero-media::after { content: ""; position: absolute; inset: auto 0 0; height: 35%; background: linear-gradient(to top, var(--bg), transparent); }
.hero::before {
  content: ""; position: absolute; left: -10%; top: 10%; width: 60%; height: 80%;
  background: radial-gradient(closest-side, rgba(225, 38, 47, .14), transparent); pointer-events: none;
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-content { position: relative; z-index: 2; }
.hero-content > * { max-width: 560px; }
.hero h1 { max-width: none; font-size: clamp(1.5rem, 4.2vw, 3.5rem); font-weight: 900; margin-bottom: 24px; }
.slogan {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem); font-weight: 600; font-style: italic; color: #fff;
  padding-left: 16px; border-left: 3px solid var(--red); margin: -6px 0 24px;
}
.footer-slogan { color: var(--text); font-weight: 600; font-style: italic; margin-bottom: 8px; }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: rgba(244, 242, 238, .78); margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted); font-size: .9rem; }
.hero-meta li { display: flex; align-items: center; gap: 8px; }
.hero-meta .i { color: var(--red); }
.hero-meta a:hover { color: #fff; }

/* ---------- Stats ---------- */
.stats { border-block: 1px solid var(--line); background: var(--bg-alt); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 16px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 900; line-height: 1; letter-spacing: -.03em; margin-bottom: 8px; }
.stat em { font-style: normal; color: var(--red); margin-left: .1em; }
.stat span { color: var(--muted); font-size: .9rem; }

/* ---------- Sections ---------- */
.section { padding: 120px 0; }
.section-tight { padding: 0 0 120px; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 48px; }
.section-head h2 { margin-bottom: 0; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
.about-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .65), transparent 45%); }
.about-badge {
  position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 1;
  padding: 16px 18px; border-radius: 14px;
  background: rgba(15, 15, 17, .72); backdrop-filter: blur(10px); border: 1px solid var(--line);
}
.about-badge strong { display: block; font-size: 1rem; }
.about-badge span { color: var(--red); font-size: .85rem; font-weight: 600; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line); }
.feature { display: flex; gap: 16px; }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); flex-shrink: 0; }
.feature h3 { font-size: 1rem; margin-bottom: 4px; }
.feature p { color: var(--muted); font-size: .9rem; line-height: 1.55; }

/* ---------- Programs ---------- */
.programs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.program {
  display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.program:hover { transform: translateY(-4px); border-color: rgba(225, 38, 47, .5); background: var(--surface-2); }
.program-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 36px; }
.num { font-size: .85rem; font-weight: 700; color: rgba(255, 255, 255, .3); letter-spacing: .08em; }
.tag { display: inline-block; font-size: .74rem; font-weight: 700; color: #ff6970; background: var(--red-soft); padding: 5px 12px; border-radius: 999px; }
.program h3 { font-size: 1.3rem; margin-bottom: 10px; }
.program > p:not(.program-time) { color: var(--muted); font-size: .93rem; flex-grow: 1; }
.program-time { display: flex; align-items: flex-start; gap: 8px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .85rem; font-weight: 600; }
.program-time .i { color: var(--red); margin-top: 3px; }

.banner {
  display: grid; grid-template-columns: 1.1fr 1fr; margin-top: 20px;
  border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line);
}
.banner-media { min-height: 320px; }
.banner-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; filter: brightness(1.25) contrast(1.05); }
.banner-body { padding: 48px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.banner-body h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 16px 0 12px; }
.banner-body p { color: var(--muted); }

/* ---------- Levels & courses ---------- */
.section-alt + .section-alt { border-top: 1px solid var(--line); }
.section-intro { color: var(--muted); max-width: 620px; margin-top: 16px; font-size: 1.05rem; }

.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.path {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.path:hover { transform: translateY(-4px); border-color: rgba(225, 38, 47, .5); background: var(--surface-2); }
.path h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
.path p { color: var(--muted); }
.path-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; color: #ff6970; font-weight: 700; font-size: .92rem; }
.path-link .i { transition: transform .25s var(--ease); }
.path:hover .path-link .i { transform: translateX(4px); }

.subhead { margin: 88px 0 28px; }
.subhead h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 8px; }
.subhead p { color: var(--muted); }

/* Levels: 5 steps that get "stronger" from 1 to 5 */
.levels { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: none; }
.levels li {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 24px 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  border-top: 3px solid rgba(225, 38, 47, calc(.2 + var(--step) * .16));
}
.level-num { font-size: 2.6rem; font-weight: 900; line-height: 1; letter-spacing: -.03em; color: rgba(225, 38, 47, calc(.35 + var(--step) * .13)); }
.level-label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
.levels h4 { font-size: 1rem; line-height: 1.35; font-weight: 700; }


/* Short courses */
.courses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.course {
  display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.course:hover { transform: translateY(-4px); border-color: rgba(225, 38, 47, .5); background: var(--surface-2); }
.course-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.course-letter { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--red); color: #fff; font-size: 1.5rem; font-weight: 900; }
.course-duration { font-size: .8rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); }
.course-level { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.course h4 { font-size: 1.15rem; line-height: 1.3; margin-bottom: 16px; }
.course-list { flex-grow: 1; }
.course-list li { position: relative; padding-left: 24px; margin-bottom: 9px; color: rgba(244, 242, 238, .82); font-size: .92rem; line-height: 1.45; }
.course-list li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 900; }
.course-cert { display: flex; align-items: center; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--muted); }
.course-cert .i { color: var(--red); }

/* Certificate banner */
.banner-cert { margin-top: 28px; }
.banner-cert .banner-media { position: relative; min-height: 360px; }
.banner-cert .banner-media img { position: absolute; inset: 0; filter: none; }
.cert-list { margin: 14px 0 6px; }
.cert-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-weight: 600; }
.cert-list .i { color: var(--red); }
.limited { color: #ff6970 !important; font-weight: 700; margin: 12px 0 18px; }

/* ---------- Schedule ---------- */
.schedule-card { border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.schedule { width: 100%; border-collapse: collapse; }
.schedule th, .schedule td { padding: 20px 12px; text-align: center; border-bottom: 1px solid var(--line); }
.schedule tbody tr:last-child > * { border-bottom: 0; }
.schedule thead th { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); padding: 16px 12px; }
.schedule tbody th { text-align: left; padding-left: 28px; font-weight: 700; font-size: 1rem; white-space: nowrap; }
.schedule tbody th small { display: block; font-weight: 500; font-size: .8rem; color: var(--muted); }
.schedule thead th:first-child { text-align: left; padding-left: 28px; }
.schedule tbody tr { transition: background .2s; }
.schedule tbody tr:hover { background: rgba(255, 255, 255, .025); }
.slot { display: inline-block; padding: 7px 14px; border-radius: 10px; background: var(--red-soft); color: #fff; font-weight: 700; font-size: .92rem; font-variant-numeric: tabular-nums; border: 1px solid rgba(225, 38, 47, .25); }
.none { display: inline-block; width: 14px; height: 2px; background: rgba(255, 255, 255, .15); border-radius: 2px; vertical-align: middle; }
.note { margin-top: 20px; color: var(--muted); font-size: .92rem; }
.note a { color: var(--text); font-weight: 600; border-bottom: 1px solid var(--red); }

/* ---------- Coaches ---------- */
.coaches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.coach { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.coach > img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.coach:hover > img { transform: scale(1.04); }
.coach::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .2) 40%, transparent 60%); pointer-events: none; }
.coach-mono {
  width: 100%; height: 100%; display: grid; place-items: center; padding-bottom: 20%;
  font-size: 3.4rem; font-weight: 900; letter-spacing: -.02em; color: rgba(255, 255, 255, .14);
  background:
    radial-gradient(circle at 50% 35%, rgba(225, 38, 47, .18), transparent 60%),
    linear-gradient(160deg, var(--surface-2), var(--surface));
}
.coach-info { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 1; }
.coach-info h3 { font-size: 1.12rem; margin-bottom: 4px; }
.coach-info p { color: #ff6970; font-size: .85rem; font-weight: 600; }

/* ---------- Gallery carousel ---------- */
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.carousel-arrows { display: flex; gap: 10px; flex-shrink: 0; }
.arrow {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .03);
  transition: background .25s, border-color .25s, transform .25s var(--ease);
}
.arrow:hover { background: var(--red); border-color: var(--red); transform: translateY(-2px); }
.arrow[data-dir="-1"] .i { transform: rotate(180deg); }
.carousel {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.carousel-track {
  display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain;
  padding: 4px max(24px, calc((100vw - 1200px) / 2 + 24px));
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.g-item {
  position: relative; flex: 0 0 clamp(240px, 26vw, 340px); aspect-ratio: 1 / 1;
  overflow: hidden; border-radius: 16px; cursor: zoom-in; background: var(--surface);
}
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.g-item:hover img { transform: scale(1.05); }
.g-item::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px;
  background: rgba(5, 5, 6, .92); backdrop-filter: blur(8px); animation: fadeIn .25s ease;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1100px, 100%); max-height: 86vh; border-radius: 12px; object-fit: contain; }
.lightbox-close { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); }
.lightbox-close:hover { background: rgba(255, 255, 255, .16); }
@keyframes fadeIn { from { opacity: 0; } }

/* ---------- Call to action ---------- */
.cta {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: 56px; border-radius: 24px;
  background: linear-gradient(120deg, #e1262f 0%, #a3171e 100%);
}
.cta::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .18), transparent); pointer-events: none;
}
.cta h2 { margin-bottom: 8px; }
.cta p { color: rgba(255, 255, 255, .85); max-width: 480px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: stretch; }
.contact-list { margin-top: 12px; }
.contact-list li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.c-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--red); flex-shrink: 0; transition: background .2s, color .2s, transform .2s var(--ease); }
.contact-list a.c-icon { display: grid; }
.contact-list a.c-icon:hover { background: var(--red); color: #fff; transform: translateY(-2px); }
.contact-list small { display: block; color: var(--muted); font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 2px; }
.contact-list a { display: block; font-weight: 600; transition: color .2s; }
.contact-list a:hover { color: #ff6970; }
.map-wrap { display: flex; flex-direction: column; gap: 12px; }
.map { flex: 1; min-height: 420px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.map { position: relative; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.map-preview { pointer-events: none; }

/* Academy pin drawn on top of the map preview (styled like the Yandex pin); its tip sits on the map centre */
.map-pin {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  transform: translate(-25px, -58px); cursor: pointer;
}
.pin-head {
  position: relative; width: 50px; height: 50px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; background: #f43b2f;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .3); transition: transform .25s var(--ease);
}
.pin-head::after {
  content: ""; position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%);
  border: 8px solid transparent; border-top-color: #f43b2f; border-bottom: 0;
}
.pin-head svg { width: 28px; height: 28px; fill: #fff; }
.pin-label {
  padding: 6px 12px; border-radius: 10px; background: #fff; color: #111;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 600; font-size: 1rem;
  white-space: nowrap; box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}
.map-pin:hover .pin-head { transform: translateY(-3px); }
.map-pin.loading .pin-head { animation: pinPulse 1s ease-in-out infinite; }
@keyframes pinPulse { 50% { transform: translateY(-4px); } }
.map-link {
  display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); font-size: .9rem; font-weight: 600;
  transition: border-color .2s, background .2s;
}
.map-link .i { color: var(--red); }
.map-link .i:last-child { margin-left: auto; transition: transform .25s var(--ease); }
.map-link:hover { border-color: rgba(225, 38, 47, .5); background: var(--surface-2); }
.map-link:hover .i:last-child { transform: translateX(3px); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 0; color: var(--muted); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand .brand { color: var(--text); margin-bottom: 16px; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; align-content: start; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer-contact > a { color: var(--text); font-weight: 600; }
.socials { display: flex; gap: 10px; margin-top: 8px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, color .2s; }
.socials a:hover { border-color: var(--red); color: var(--red); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 24px; padding-bottom: 28px; font-size: .84rem; }

/* ---------- Floating WhatsApp button (phones only) ---------- */
.fab {
  display: none; position: fixed; right: 16px; bottom: 16px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; place-items: center;
  background: var(--red); color: #fff; box-shadow: 0 10px 30px rgba(225, 38, 47, .45);
}
.fab .i { width: 26px; height: 26px; }

/* ---------- Scroll reveal (only when JavaScript is on) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media img { animation: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .courses { grid-template-columns: repeat(2, 1fr); }
  .levels { grid-template-columns: 1fr; }
  .levels li { flex-direction: row; align-items: center; gap: 20px; }
  .level-num { width: 44px; flex-shrink: 0; }
  .programs { grid-template-columns: repeat(2, 1fr); }
  .coaches { grid-template-columns: repeat(2, 1fr); }
  .about { gap: 48px; }
  .nav { gap: 20px; }
}

/* Menu becomes the ☰ version below 1240px (before the full menu gets crowded) */
@media (max-width: 1240px) {
  /* Mobile menu */
  .menu-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; height: calc(100dvh - var(--header-h));
    flex-direction: column; align-items: stretch; gap: 0; padding: 16px 20px 32px;
    background: var(--bg); opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.btn) { font-size: 1.3rem; font-weight: 700; color: var(--text); padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 24px; height: 54px; }
}

@media (max-width: 920px) {
  :root { --header-h: 68px; }
  .container { padding: 0 20px; }
  .section { padding: 88px 0; }
  .section-tight { padding-bottom: 88px; }

  /* Hero: photo fills the screen, text sits at the bottom */
  .hero { min-height: 100svh; align-items: flex-end; padding-bottom: 48px; }
  .hero-media { width: 100%; }
  .hero-media img { -webkit-mask-image: none; mask-image: none; object-position: 56% 25%; }
  .hero-media::after { height: 100%; background: linear-gradient(to top, var(--bg) 30%, rgba(10, 10, 11, .55) 62%, rgba(10, 10, 11, .25) 100%); }

  .about, .contact { grid-template-columns: 1fr; }
  .about-media { aspect-ratio: 4 / 4.2; }
  .banner { grid-template-columns: 1fr; }
  .banner-media { min-height: 240px; aspect-ratio: 16 / 9; }
  .banner-body { padding: 32px 28px; }
  .carousel-track { padding-inline: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .fab { display: grid; }
}

@media (max-width: 640px) {
  .paths, .courses { grid-template-columns: 1fr; }
  .path { padding: 26px 22px; }
  .subhead { margin-top: 64px; }
  .container { padding: 0 16px; }
  .section { padding: 72px 0; }
  .section-tight { padding-bottom: 72px; }
  .section-head { margin-bottom: 32px; }
  .carousel-track { padding-inline: 16px; gap: 12px; }
  .g-item { flex-basis: 72vw; }
  .arrow { width: 44px; height: 44px; }
  .carousel { -webkit-mask-image: none; mask-image: none; }
  .hero-actions .btn { width: 100%; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 24px 12px; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .features { grid-template-columns: 1fr; gap: 22px; }
  .programs, .coaches { grid-template-columns: 1fr; }
  .coach { aspect-ratio: 4 / 3.4; }
  .program-top { margin-bottom: 24px; }
  .cta { padding: 36px 24px; }
  .cta-actions, .cta-actions .btn { width: 100%; }
  .map { min-height: 340px; }
  .pin-label { font-size: .9rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }

  /* Schedule becomes one card per group */
  .schedule thead { display: none; }
  .schedule, .schedule tbody, .schedule tr, .schedule th, .schedule td { display: block; }
  .schedule tbody tr { padding: 18px 20px; border-bottom: 1px solid var(--line); }
  .schedule tbody tr:last-child { border-bottom: 0; }
  .schedule tbody th { padding: 0 0 10px; border: 0; }
  .schedule tbody th small { display: inline; margin-left: 8px; }
  .schedule td { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border: 0; text-align: left; }
  .schedule td::before { content: attr(data-day); color: var(--muted); font-size: .92rem; }
  .schedule td.empty { display: none; }
}
