:root {
  --bg: #f7f8fa;
  --bg-white: #ffffff;
  --ink: #152033;
  --ink-soft: #3d4a5c;
  --muted: #6b7280;
  --line: rgba(21, 32, 51, 0.08);
  --brand: #b51c1c;
  --brand-dark: #8f1414;
  --navy: #1a2740;
  --navy-deep: #121c30;
  --wa: #25d366;
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 78px;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1180px;
  --shadow: 0 10px 30px rgba(21, 32, 51, 0.08);
  --shadow-hover: 0 16px 40px rgba(21, 32, 51, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.container.narrow {
  width: min(100% - 2.5rem, 820px);
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(12px);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(21, 32, 51, 0.06);
}

.header-inner {
  width: min(100% - 1.25rem, 1240px);
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand img {
  width: 108px;
  border-radius: 6px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-left: auto;
}

.nav a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.nav a:hover { color: var(--brand); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.nav-mobile-actions {
  display: none;
}

.lang-dropdown { position: relative; }

.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font: 600 0.8rem var(--font-body);
  color: var(--ink);
}

.lang-flag {
  width: 22px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.lang-caret { color: var(--muted); transition: transform 0.2s ease; }
.lang-dropdown.is-open .lang-caret { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  min-width: 178px;
  padding: 0.35rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 140;
}

.lang-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.55rem 0.6rem;
  border-radius: 8px;
}

.lang-option:hover,
.lang-option.is-active { background: rgba(181, 28, 28, 0.08); }

.lang-name { font-size: 0.9rem; font-weight: 500; }
.lang-code-sm { font-size: 0.72rem; font-weight: 600; color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn-lg { min-height: 52px; padding-inline: 1.6rem; font-size: 1rem; }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(181, 28, 28, 0.25);
}
.btn-primary:hover { background: var(--brand-dark); }

.btn-call {
  background: var(--navy);
  color: #fff;
}
.btn-call:hover { background: var(--navy-deep); }

.btn-wa {
  background: var(--wa);
  color: #fff;
}
.btn-wa:hover { filter: brightness(0.95); }

.btn-outline {
  background: transparent;
  border-color: rgba(21, 32, 51, 0.18);
  color: var(--ink);
  width: 100%;
  margin-top: auto;
}
.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.2); }

.header-cta {
  min-height: 40px;
  padding: 0.45rem 0.95rem;
  font-size: 0.86rem;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  min-height: min(92svh, 760px);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 45%;
  transform: scale(1.03);
  animation: hero-zoom 18s ease-in-out infinite alternate;
}

@keyframes hero-zoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.06); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(12, 18, 32, 0.82) 0%, rgba(12, 18, 32, 0.42) 52%, rgba(181, 28, 28, 0.38) 100%),
    linear-gradient(180deg, rgba(12, 18, 32, 0.2) 0%, rgba(12, 18, 32, 0.55) 100%);
}

.hero-content {
  padding-top: calc(var(--header-h) + 2.5rem);
  padding-bottom: 4rem;
  max-width: 720px;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffb4b4;
}

.hero h1 {
  font-size: clamp(2.35rem, 5.5vw, 4rem);
  margin-bottom: 1rem;
  color: #fff;
}

.hero-lead {
  max-width: 34rem;
  margin-bottom: 1.75rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Sections */
.section {
  padding: clamp(3.75rem, 7vw, 5.75rem) 0;
}

.section-head {
  margin-bottom: 2.25rem;
}

.section-head.center {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  color: var(--navy);
  margin-bottom: 0.65rem;
}

.section-head p {
  color: var(--muted);
  font-size: 1.02rem;
}

.section-head.on-dark h2 { color: #fff; }
.section-head.on-dark p { color: rgba(255, 255, 255, 0.72); }

.section-cta {
  display: flex;
  justify-content: center;
  margin-top: 2.25rem;
}

/* Courses */
.courses { background: var(--bg); }

.course-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}

.course-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.45rem 1.25rem 1.3rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.course-card.is-popular {
  border-color: rgba(181, 28, 28, 0.45);
  box-shadow: 0 12px 32px rgba(181, 28, 28, 0.12);
}

.course-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.course-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--brand);
}

.course-icon svg { width: 42px; height: 42px; }

.course-card h3 {
  font-size: 1.35rem;
  color: var(--navy);
}

.course-card > p {
  color: var(--muted);
  font-size: 0.94rem;
}

.course-card ul {
  display: grid;
  gap: 0.4rem;
  margin: 0.2rem 0 0.5rem;
}

.course-card li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.course-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand);
  font-weight: 700;
}

/* Why */
.why { background: #fff; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.why-card {
  padding: 1.35rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  transition: background 0.2s ease, transform 0.2s ease;
}

.why-card:hover {
  background: #fff;
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.why-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 0.75rem;
  color: var(--brand);
}

.why-icon svg { width: 36px; height: 36px; }

.why-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
  color: var(--navy);
}

.why-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Process */
.process {
  background:
    radial-gradient(ellipse 60% 80% at 90% 20%, rgba(181, 28, 28, 0.18), transparent 50%),
    linear-gradient(160deg, var(--navy-deep), var(--navy));
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.process-card {
  text-align: center;
  padding: 2rem 1.4rem 1.7rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.process-num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.process-card h3 {
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 0.55rem;
}

.process-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Branches */
.branches { background: var(--bg); }

.branch-grid {
  display: grid;
  gap: 1.15rem;
}

.branch {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.branch-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.branch-info h3 {
  font-size: 1.45rem;
  color: var(--navy);
}

.branch-address,
.branch-meta { color: var(--muted); font-size: 0.95rem; }

.branch-meta a {
  color: var(--ink);
  border-bottom: 1px solid rgba(21, 32, 51, 0.2);
}
.branch-meta a:hover { color: var(--brand); border-color: var(--brand); }

.text-link {
  margin-top: auto;
  padding-top: 0.6rem;
  color: var(--brand);
  font-weight: 600;
  width: fit-content;
}

.branch-map {
  min-height: 230px;
  border-left: 1px solid var(--line);
  background: #e8ebf0;
}

.branch-map iframe {
  width: 100%;
  height: 100%;
  min-height: 230px;
  border: 0;
}

/* FAQ */
.faq { background: #fff; }

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  overflow: hidden;
}

.faq-item[open] {
  border-color: rgba(181, 28, 28, 0.18);
  background: #fff;
  box-shadow: var(--shadow);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 2.6rem 1.05rem 1.15rem;
  font-weight: 600;
  color: var(--navy);
  position: relative;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: translateY(-20%) rotate(225deg);
}

.faq-answer {
  padding: 0 1.15rem 1.1rem;
  color: var(--muted);
}

/* Reviews */
.reviews { background: var(--bg); }

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.review-card {
  margin: 0;
  padding: 1.5rem 1.3rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.review-card p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
  font-size: 0.98rem;
}

.review-card footer {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.92rem;
}

/* CTA */
.cta-band {
  background:
    radial-gradient(ellipse 70% 90% at 85% 30%, rgba(181, 28, 28, 0.16), transparent 55%),
    linear-gradient(180deg, #fff, #eef1f6);
}

.cta-inner {
  text-align: center;
  max-width: 640px;
}

.cta-inner h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  color: var(--navy);
  margin-bottom: 0.7rem;
}

.cta-inner > p {
  color: var(--muted);
  margin-bottom: 1.4rem;
}

.cta-inner .hero-actions { justify-content: center; }

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #f3f4f6;
  padding-top: 3.25rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.75rem;
  padding-bottom: 2.25rem;
}

.footer-brand img {
  width: 130px;
  margin-bottom: 0.85rem;
  border-radius: 6px;
}

.footer-brand p,
.site-footer p { color: #9aa3b2; font-size: 0.94rem; }

.site-footer h3 {
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  color: #fff;
}

.footer-links,
.footer-contact { display: grid; gap: 0.4rem; }

.footer-links a,
.footer-contact a {
  color: #9aa3b2;
  transition: color 0.2s ease;
}
.footer-links a:hover,
.footer-contact a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.1rem 0 1.35rem;
}
.footer-bottom p { font-size: 0.84rem; }

/* Floating buttons */
.float-stack {
  position: fixed;
  right: max(0.9rem, env(safe-area-inset-right));
  bottom: max(0.9rem, env(safe-area-inset-bottom));
  z-index: 120;
  display: grid;
  gap: 0.65rem;
}

.float-btn {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s var(--ease);
}

.float-btn:hover { transform: translateY(-2px) scale(1.04); }
.float-wa { background: var(--wa); }
.float-call { background: var(--brand); }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: calc(var(--i, 0) * 55ms);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 90ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 230ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media img { animation: none; }
}

/* Responsive */
@media (max-width: 1100px) {
  .course-grid,
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  .process-grid,
  .review-grid,
  .footer-grid,
  .branch { grid-template-columns: 1fr; }

  .branch-map {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 900px) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.5rem;
    width: min(100% - 1rem, 1240px);
  }

  .brand {
    grid-column: 2;
    justify-self: center;
    z-index: 1;
  }

  .brand img {
    width: 96px;
  }

  .header-actions {
    grid-column: 3;
    justify-self: end;
    gap: 0.5rem;
  }

  .header-cta { display: none; }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(21, 32, 51, 0.1);
    background: #fff;
    box-shadow: 0 4px 14px rgba(21, 32, 51, 0.08);
  }

  .lang-trigger {
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    justify-content: center;
    gap: 0;
    border-radius: 12px;
    border: 1px solid rgba(21, 32, 51, 0.1);
    box-shadow: 0 4px 14px rgba(21, 32, 51, 0.08);
  }

  .lang-trigger .lang-code,
  .lang-trigger .lang-caret {
    display: none;
  }

  .lang-trigger .lang-flag {
    width: 24px;
    height: 16px;
    border-radius: 3px;
  }

  .lang-menu {
    right: 0;
    min-width: 190px;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0.35rem 0 0.9rem;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(21, 32, 51, 0.08);
    z-index: 99;
  }

  .nav.is-open { display: flex; }

  .nav > a {
    padding: 1rem 1.2rem;
    border-top: 1px solid var(--line);
    font-size: 1.02rem;
    font-weight: 600;
  }

  .nav-mobile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    padding: 1rem 1.1rem 0.35rem;
    border-top: 1px solid var(--line);
  }

  .nav-mobile-actions .btn {
    min-height: 46px;
    width: 100%;
    border-radius: 12px;
    font-size: 0.9rem;
  }
}

@media (max-width: 640px) {
  :root { --header-h: 70px; }

  .container,
  .container.narrow { width: min(100% - 1.25rem, var(--max)); }

  .brand img { width: 90px; }

  .lang-trigger,
  .nav-toggle {
    width: 42px;
    height: 42px;
    min-height: 42px;
    border-radius: 11px;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding-top: calc(var(--header-h) + 2rem);
    padding-bottom: 3rem;
  }

  .hero h1 { font-size: clamp(1.85rem, 8vw, 2.45rem); }

  .hero-actions .btn,
  .cta-inner .btn {
    flex: 1 1 100%;
  }

  .course-grid,
  .why-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .section { padding: 3.1rem 0; }

  .float-btn {
    width: 50px;
    height: 50px;
  }
}
