/* ==========================================================================
   Zignature — site styles
   ========================================================================== */

:root {
  --brand: #AA1D33;
  --brand-600: #8E1529;
  --brand-700: #6F0F20;
  --brand-50: #FCF1F2;
  --brand-100: #F7DDE1;
  --accent: #FFA300;
  --accent-50: #FFF6E5;

  --ink: #15171C;
  --ink-2: #3B404C;
  --muted: #6A7080;
  --line: #E6E7EB;
  --bg: #FFFFFF;
  --bg-soft: #F8F6F3;
  --dark: #1A1418;
  --success: #1F8A4C;
  --error: #C62828;
  --whatsapp: #25D366;

  --font-head: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(21, 23, 28, .06), 0 1px 3px rgba(21, 23, 28, .05);
  --shadow: 0 10px 30px -12px rgba(21, 23, 28, .18);
  --shadow-lg: 0 24px 60px -20px rgba(111, 15, 32, .28);

  --container: 1200px;
  --gutter: 20px;
  --header-h: 72px;
}

/* --- Base ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-600); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--brand-100); color: var(--brand-700); }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: #fff; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(820px + var(--gutter) * 2); }

/* --- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: 600 1rem/1 var(--font-head);
  padding: .95em 1.6em;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px rgba(170, 29, 51, .6); }
.btn-primary:hover { background: var(--brand-600); color: #fff; transform: translateY(-1px); }
.btn-outline { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: var(--accent-50); color: var(--brand-600); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--brand); border-color: #fff; }
.btn-whatsapp { background: var(--whatsapp); color: #08361b; }
.btn-whatsapp:hover { background: #1ebe5b; color: #08361b; }
.btn-whatsapp:hover .icon { transform: none; }
.btn-sm { padding: .7em 1.2em; font-size: .92rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4em;
  font-weight: 600; font-family: var(--font-head); font-size: .95rem; text-decoration: none;
}
.link-arrow .icon { width: 1em; height: 1em; transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* --- Header -------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px -12px rgba(0, 0, 0, .15); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand img { height: 52px; width: auto; }

.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav > a {
  position: relative;
  padding: 8px 14px;
  font: 500 .97rem/1 var(--font-head);
  color: var(--ink);
  text-decoration: none;
  border-radius: 999px;
  transition: color .2s, background-color .2s;
}
.main-nav > a:hover { color: var(--brand); background: var(--brand-50); }
.main-nav > a[aria-current="page"] { color: var(--brand); }
.main-nav > a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: -2px; width: 5px; height: 5px;
  margin-left: -2.5px; border-radius: 50%; background: var(--accent);
}
.nav-mobile-extra { display: none; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 .95rem var(--font-head); color: var(--ink); text-decoration: none;
}
.header-phone .icon {
  width: 34px; height: 34px; padding: 8px; border-radius: 50%;
  background: var(--brand-50); color: var(--brand);
}
.header-phone:hover { color: var(--brand); }
.nav-toggle {
  display: none;
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }

@media (max-width: 1100px) {
  .header-phone span { display: none; }
}

@media (max-width: 920px) {
  :root { --header-h: 64px; }
  .brand img { height: 44px; }
  .nav-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .header-phone { display: none; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    flex-direction: column; gap: 0;
    padding: 12px var(--gutter) 32px;
    background: #fff;
    overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .main-nav > a {
    padding: 16px 4px; border-radius: 0; font-size: 1.15rem;
    border-bottom: 1px solid var(--line);
  }
  .main-nav > a:hover { background: none; }
  .main-nav > a[aria-current="page"]::after { left: auto; right: 6px; top: 50%; margin-top: -2.5px; }
  .nav-mobile-extra { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
  .nav-contact { display: flex; align-items: center; gap: 10px; color: var(--ink-2); text-decoration: none; font-weight: 500; }
  .nav-contact .icon { color: var(--brand); }
  .nav-open .main-nav { transform: none; opacity: 1; visibility: visible; }
  /* backdrop-filter makes the header the containing block for the fixed menu */
  .nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .nav-open .nav-toggle .icon-open { display: none; }
  .nav-open .nav-toggle .icon-close { display: block; }
  .nav-open { overflow: hidden; }
}
@media (max-width: 520px) {
  .header-cta { display: none; }
}

/* --- Sections ------------------------------------------------------------ */

.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: clamp(48px, 6vw, 72px) 0; }
.section-head { max-width: 680px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head--left { margin-left: 0; text-align: left; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 .8rem/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.text-brand { color: var(--brand); }
.lead { font-size: 1.12rem; color: var(--ink-2); }

/* --- Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background: #F6806F url("/assets/img/hero.webp") right center / auto 100% no-repeat;
  color: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(111, 15, 32, .92) 0%, rgba(170, 29, 51, .82) 38%, rgba(170, 29, 51, .15) 68%, transparent 80%);
}
.hero-inner { position: relative; padding: clamp(72px, 10vw, 128px) 0 clamp(120px, 12vw, 150px); max-width: 640px; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 1.18rem; color: rgba(255, 255, 255, .9); max-width: 520px; margin-bottom: 32px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 10px; margin-bottom: 22px;
  border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25);
  font: 500 .88rem var(--font-head); color: #fff;
}
.hero-badge .icon { color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.stats-wrap { position: relative; margin-top: -72px; z-index: 2; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.stat { padding: 28px 20px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; font: 700 clamp(1.8rem, 3.4vw, 2.6rem)/1.1 var(--font-head); color: var(--brand); }
.stat span { color: var(--muted); font-size: .95rem; }

@media (max-width: 920px) {
  .hero { background-position: 70% center; background-size: cover; }
  .hero::before { background: linear-gradient(180deg, rgba(111, 15, 32, .9), rgba(170, 29, 51, .78)); }
}
@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* --- Course categories --------------------------------------------------- */

.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cat-card {
  position: relative;
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 16px;
  align-items: center;
  padding: 22px 48px 22px 22px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.cat-card:hover { border-color: var(--brand-100); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.cat-icon {
  grid-row: span 2;
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--brand-50); color: var(--brand);
  transition: background-color .2s, color .2s, transform .2s;
}
.cat-icon .icon { width: 26px; height: 26px; }
.cat-card:hover .cat-icon { background: var(--brand); color: #fff; }
.cat-name { font: 600 1.08rem/1.3 var(--font-head); }
.cat-count { font-size: .88rem; color: var(--muted); }
.cat-arrow { position: absolute; right: 20px; top: 50%; margin-top: -10px; width: 20px; height: 20px; color: var(--brand); opacity: 0; transform: translateX(-6px); transition: .2s; }
.cat-card:hover .cat-arrow { opacity: 1; transform: none; }
.cat-card--more { background: var(--ink); border-color: var(--ink); color: #fff; }
.cat-card--more:hover { color: #fff; border-color: var(--ink); }
.cat-card--more .cat-icon { background: rgba(255, 255, 255, .1); color: var(--accent); }
.cat-card--more .cat-count { color: rgba(255, 255, 255, .65); }
.cat-card--more .cat-arrow { color: var(--accent); }

/* Pastel gradients — cycle through six light palettes on course cards.
   --g1/--g2: card background, --ink1/--ink2: icon gradient + accents. */
.cat-card, .catalog-group { --g1: #FFF1F4; --g2: #FFF8F0; --ink1: #F43F5E; --ink2: #FB923C; }
.cat-card:nth-child(6n+2), .catalog-group:nth-child(6n+2) { --g1: #FFF7E8; --g2: #FFFDF2; --ink1: #F59E0B; --ink2: #FACC15; }
.cat-card:nth-child(6n+3), .catalog-group:nth-child(6n+3) { --g1: #EAFBF3; --g2: #F2FCFB; --ink1: #10B981; --ink2: #2DD4BF; }
.cat-card:nth-child(6n+4), .catalog-group:nth-child(6n+4) { --g1: #EEF5FF; --g2: #F3F8FF; --ink1: #3B82F6; --ink2: #22D3EE; }
.cat-card:nth-child(6n+5), .catalog-group:nth-child(6n+5) { --g1: #F5F1FF; --g2: #FCF4FF; --ink1: #8B5CF6; --ink2: #EC4899; }
.cat-card:nth-child(6n+6), .catalog-group:nth-child(6n+6) { --g1: #EBFBFC; --g2: #F1FBF5; --ink1: #06B6D4; --ink2: #34D399; }

.cat-card:not(.cat-card--more) {
  background: linear-gradient(135deg, var(--g1), var(--g2));
  border-color: rgba(21, 23, 28, .05);
}
.cat-card:not(.cat-card--more):hover {
  border-color: transparent;
  box-shadow: 0 16px 36px -18px color-mix(in srgb, var(--ink1) 45%, transparent);
}
.cat-card:not(.cat-card--more) .cat-icon {
  background: linear-gradient(135deg, var(--ink1), var(--ink2)); color: #fff;
  box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--ink1) 70%, transparent);
}
.cat-card:not(.cat-card--more):hover .cat-icon { background: linear-gradient(135deg, var(--ink1), var(--ink2)); transform: scale(1.06); }
.cat-card:not(.cat-card--more) .cat-arrow { color: var(--ink1); }

@media (max-width: 920px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: 1fr; gap: 12px; } }

/* --- Split (image + text) ------------------------------------------------ */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius-lg); width: 100%; }
.split-media::before {
  content: ""; position: absolute; inset: 24px -18px -18px 24px; z-index: -1;
  border-radius: var(--radius-lg); background: var(--brand-50);
}
.media-badge {
  position: absolute; left: -16px; bottom: 28px;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow);
}
.media-badge strong { display: block; font: 700 1.5rem/1 var(--font-head); color: var(--brand); }
.media-badge span { font-size: .85rem; color: var(--muted); }
.media-badge .cat-icon { width: 44px; height: 44px; grid-row: auto; }

.feature-list { display: grid; gap: 20px; margin: 28px 0 32px; list-style: none; }
.feature-list li { display: grid; grid-template-columns: auto 1fr; gap: 14px; }
.feature-list .tick {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-50); color: #B87400;
}
.feature-list .tick .icon { width: 16px; height: 16px; }
.feature-list h3 { font-size: 1.05rem; margin: 2px 0 4px; }
.feature-list p { margin: 0; color: var(--muted); }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .split-media { max-width: 560px; }
  .media-badge { left: 12px; }
}

/* --- Steps --------------------------------------------------------------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; counter-reset: step; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 28px; left: 12%; right: 12%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--brand-100) 0 8px, transparent 8px 14px);
}
.step { position: relative; text-align: center; padding: 0 8px; }
.step-num {
  position: relative;
  display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 18px;
  border-radius: 50%; background: #fff; border: 2px solid var(--brand);
  font: 700 1.1rem var(--font-head); color: var(--brand);
  box-shadow: 0 0 0 6px var(--bg-soft);
}
.step:last-child .step-num { background: var(--brand); color: #fff; }
.step small { display: block; font: 600 .75rem var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.step h3 { font-size: 1.05rem; margin: 0; }

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--brand-100) 0 8px, transparent 8px 14px); }
  .step { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: center; text-align: left; padding: 10px 0; }
  .step-num { margin: 0; }
}

/* --- Support cards ------------------------------------------------------- */

.support { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-top: 56px; }
.support-card { padding: 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.support-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.support-card h3 .icon { color: var(--brand); }
.support-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; list-style: none; }
.support-card--dark .support-items { grid-template-columns: 1fr; }
.support-items li {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: var(--radius-sm); background: var(--bg-soft);
  font-weight: 500; color: var(--ink);
}
.support-items .icon { color: var(--brand); }
.support-card--dark { background: var(--brand); border-color: var(--brand); }
.support-card--dark h3, .support-card--dark h3 .icon { color: #fff; }
.support-card--dark .support-items li { background: rgba(255, 255, 255, .12); color: #fff; }
.support-card--dark .support-items .icon { color: var(--accent); }

@media (max-width: 860px) { .support { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .support-items { grid-template-columns: 1fr; } }

/* --- Why cards ----------------------------------------------------------- */

.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-card {
  display: flex; flex-direction: column;
  border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--line);
  transition: box-shadow .2s, transform .2s;
}
.why-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.why-card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.why-card div { padding: 20px 22px 24px; }
.why-card h3 { font-size: 1.05rem; margin: 0; }
@media (max-width: 1000px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .why-grid { grid-template-columns: 1fr; } }

/* --- Testimonials -------------------------------------------------------- */

.testimonials {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px) / 4); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px;
  scrollbar-width: thin;
}
.testimonial {
  scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 18px;
  margin: 0; padding: 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line);
}
.testimonial .stars { display: flex; gap: 3px; color: var(--accent); }
.testimonial .stars .icon { width: 18px; height: 18px; fill: currentColor; }
.testimonial blockquote { margin: 0; color: var(--ink-2); flex: 1; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; font: 600 1rem var(--font-head); color: var(--ink); }
.avatar {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--brand-50); color: var(--brand); font: 700 1rem var(--font-head);
}
@media (max-width: 1000px) { .testimonials { grid-auto-columns: calc((100% - 20px) / 2); } }
@media (max-width: 600px) { .testimonials { grid-auto-columns: 86%; } }

/* --- CTA band ------------------------------------------------------------ */

.cta-band {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  padding: clamp(32px, 5vw, 56px);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--brand-700), var(--brand) 60%, #C8344A);
  color: #fff;
}
.cta-band::after {
  content: ""; position: absolute; right: -60px; top: -80px; width: 280px; height: 280px; border-radius: 50%;
  border: 40px solid rgba(255, 163, 0, .18);
}
.cta-band h2 { color: #fff; margin: 0 0 8px; max-width: 620px; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .85); }
.cta-band .hero-actions { position: relative; z-index: 1; }

/* --- Blog ---------------------------------------------------------------- */

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.post-card-img { display: block; overflow: hidden; aspect-ratio: 5 / 3; background: var(--bg-soft); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-card-img img { transform: scale(1.04); }
.post-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 26px; }
.post-card h2, .post-card h3 { font-size: 1.12rem; line-height: 1.35; margin: 12px 0 10px; }
.post-card h2 a, .post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--brand); }
.post-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .87rem; color: var(--muted); }
.tag {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: var(--brand-50); color: var(--brand); font: 600 .75rem var(--font-head); letter-spacing: .03em;
  text-decoration: none;
}
a.tag:hover { background: var(--brand); color: #fff; }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--center { justify-content: center; margin-bottom: 36px; }
.chip {
  display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  font: 500 .9rem var(--font-head); text-decoration: none; cursor: pointer;
  transition: .2s;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* --- Page hero (inner pages) -------------------------------------------- */

.page-hero {
  position: relative; overflow: hidden;
  padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 7vw, 80px);
  background: radial-gradient(1200px 400px at 85% -10%, var(--brand-100), transparent 60%), var(--bg-soft);
}
.page-hero::after {
  content: ""; position: absolute; right: 6%; bottom: -60px; width: 200px; height: 200px;
  background: url("/assets/img/mark.png") center / contain no-repeat; opacity: .07;
}
.page-hero h1 { margin-bottom: 14px; max-width: 820px; }
.page-hero p { font-size: 1.12rem; color: var(--muted); max-width: 640px; margin: 0; }
.breadcrumb { display: flex; gap: 8px; font-size: .9rem; color: var(--muted); margin-bottom: 18px; list-style: none; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--line); }

/* --- About --------------------------------------------------------------- */

.mission-list { display: grid; gap: 14px; list-style: none; margin: 24px 0 0; }
.mission-list li {
  display: grid; grid-template-columns: auto 1fr; gap: 14px;
  padding: 18px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
}
.mission-list .cat-icon { grid-row: auto; width: 40px; height: 40px; border-radius: 10px; }
.mission-list .cat-icon .icon { width: 20px; height: 20px; }
.mission-list p { margin: 0; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value-card { padding: 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.value-card .cat-icon { grid-row: auto; margin-bottom: 18px; }
.value-card h3 { margin-bottom: 8px; }
.value-card p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }

/* --- Courses catalogue --------------------------------------------------- */

.catalog-tools {
  position: sticky; top: var(--header-h); z-index: 5;
  display: grid; gap: 14px;
  padding: 16px 0; margin-bottom: 24px;
  background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px);
}
.search {
  display: flex; align-items: center; gap: 10px;
  padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  box-shadow: var(--shadow-sm);
}
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(170, 29, 51, .12); }
.search .icon { color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; padding: 14px 0; color: var(--ink); }
.catalog-tools .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.catalog-tools .chips::-webkit-scrollbar { display: none; }
.catalog-tools .chip { white-space: nowrap; padding: 6px 14px; font-size: .85rem; }
.catalog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.catalog-group {
  /* land below the sticky header + course search bar when opened via #anchor */
  scroll-margin-top: calc(var(--header-h) + 84px);
}
.catalog-group {
  padding: 24px; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--g1), var(--g2) 60%);
  border: 1px solid rgba(21, 23, 28, .05);
}
.catalog-group header .cat-icon {
  background: linear-gradient(135deg, var(--ink1), var(--ink2)); color: #fff;
  box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--ink1) 70%, transparent);
}
.catalog-group .badge { background: #fff; color: var(--ink1); box-shadow: var(--shadow-sm); }
.catalog-group .course-list {
  padding: 4px 16px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .75); backdrop-filter: blur(6px);
}
.catalog-group .course-list li { border-bottom: 1px solid rgba(21, 23, 28, .05); }
.catalog-group .course-list .icon { color: var(--ink1); }
.catalog-group header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.catalog-group header .cat-icon { grid-row: auto; width: 44px; height: 44px; border-radius: 12px; }
.catalog-group header .cat-icon .icon { width: 22px; height: 22px; }
.catalog-group h2 { font-size: 1.2rem; margin: 0; flex: 1; }
.badge { padding: 3px 10px; border-radius: 999px; background: var(--bg-soft); font: 600 .8rem var(--font-head); color: var(--muted); }
.course-list { list-style: none; display: grid; gap: 2px; }
.course-list li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.course-list li:last-child { border-bottom: 0; }
.course-list .icon { width: 16px; height: 16px; margin-top: 5px; color: var(--success); }
.course-list mark { background: var(--accent-50); color: inherit; border-radius: 3px; padding: 0 2px; }
.catalog-empty { text-align: center; padding: 40px 0; color: var(--muted); }
@media (max-width: 760px) { .catalog { grid-template-columns: 1fr; } }

/* --- Forms page layout --------------------------------------------------- */

.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.form-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.aside-card { padding: 26px; border-radius: var(--radius-lg); background: var(--bg-soft); }
.aside-card h2 { font-size: 1.15rem; margin-bottom: 16px; }
.aside-card--brand { background: var(--brand); color: rgba(255, 255, 255, .88); }
.aside-card--brand h2 { color: #fff; }
.aside-steps { list-style: none; display: grid; gap: 14px; counter-reset: s; }
.aside-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; counter-increment: s; font-size: .95rem; color: var(--ink-2); }
.aside-steps li::before {
  content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: #fff; color: var(--brand); font: 700 .85rem var(--font-head); border: 1px solid var(--brand-100);
}
.aside-contact { display: grid; gap: 10px; margin-top: 18px; }
.aside-contact a { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 500; }
.aside-contact a:hover { text-decoration: underline; }
.aside-card--brand .btn { margin-top: 18px; }
.aside-photo { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; }
@media (max-width: 1000px) {
  .form-layout { grid-template-columns: 1fr; }
  .form-aside { position: static; grid-template-columns: 1fr 1fr; }
  .aside-photo { display: none; }
}
@media (max-width: 640px) { .form-aside { grid-template-columns: 1fr; } }

/* --- Contact ------------------------------------------------------------- */

.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.contact-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 26px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line);
  text-decoration: none; color: var(--ink-2);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
a.contact-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--brand-100); color: var(--ink-2); }
.contact-card .cat-icon { grid-row: auto; margin-bottom: 12px; }
.contact-card .contact-label { font: 600 .8rem var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-card strong { font: 600 1.05rem/1.4 var(--font-head); color: var(--ink); word-break: break-word; }
.contact-card--wa .cat-icon { background: #E8F9EE; color: #128C4B; }
.map-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 0; margin-top: 40px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.map-info { padding: clamp(28px, 4vw, 44px); }
.map-info h2 { font-size: 1.5rem; }
.map-info address { font-style: normal; margin-bottom: 20px; }
.offices { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 8px 0 28px; }
.offices li { padding: 6px 12px; border-radius: 999px; background: var(--bg-soft); font-size: .88rem; font-weight: 500; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
@media (max-width: 1000px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .map-wrap { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .contact-grid { grid-template-columns: 1fr; } }

/* --- Article / prose ----------------------------------------------------- */

.article-hero { padding: clamp(48px, 7vw, 80px) 0 0; background: var(--bg-soft); }
.article-hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 860px; }
.article-hero .post-meta { margin-bottom: 18px; }
.article-cover { position: relative; margin-top: 36px; }
.article-cover::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 50%; background: #fff; }
.article-cover img { position: relative; width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius-lg); }

.prose { font-size: 1.08rem; line-height: 1.8; color: var(--ink-2); }
.prose > * { margin-top: 0; margin-bottom: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.6rem; margin: 2em 0 .2em; }
.prose h3 { font-size: 1.25rem; margin: 1.8em 0 .1em; }
.prose h2 + h3 { margin-top: 1em; }
.prose ul, .prose ol { padding-left: 1.4em; display: grid; gap: .4em; }
.prose li::marker { color: var(--brand); }
.prose strong { color: var(--ink); }
.prose a { font-weight: 500; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--accent); color: var(--ink); font-style: italic; }

.article-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 48px; padding: 28px; border-radius: var(--radius-lg); background: var(--brand-50); border: 1px solid var(--brand-100);
}
.article-cta h2 { font-size: 1.3rem; margin: 0 0 4px; }
.article-cta p { margin: 0; color: var(--muted); }
.article-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }

.legal .prose h2 { font-size: 1.35rem; }
.legal .prose h3 { font-size: 1.15rem; }

/* --- Footer -------------------------------------------------------------- */

.site-footer { background: var(--dark); color: rgba(255, 255, 255, .7); padding-top: clamp(56px, 7vw, 80px); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-bottom: 18px; }
.footer-brand img { width: 40px; height: auto; }
.footer-brand strong { display: block; font: 700 1.25rem/1 var(--font-head); color: #fff; letter-spacing: .06em; }
.footer-brand small { display: block; margin-top: 4px; font-size: .74rem; color: rgba(255, 255, 255, .55); letter-spacing: .02em; }
.footer-about p { max-width: 360px; }
.footer-offices { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.footer-offices .icon { color: var(--accent); margin-top: 3px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, .08); color: #fff; transition: background-color .2s;
}
.footer-social a:hover { background: var(--brand); color: #fff; }
.footer-social .icon { width: 18px; height: 18px; }
.footer-title { font: 600 .82rem var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer-links, .footer-contact { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-contact a { display: flex; align-items: center; gap: 10px; }
.footer-contact .icon { color: var(--accent); width: 18px; height: 18px; }
.footer-quote {
  margin-top: 48px; padding-top: 32px; padding-bottom: 32px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  text-align: center; font-style: italic;
}
.footer-quote p { margin: 0 auto 6px; max-width: 640px; font-family: var(--font-head); color: rgba(255, 255, 255, .85); font-size: 1.05rem; }
.footer-quote span { font-size: .88rem; color: var(--accent); font-style: normal; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-top: 20px; padding-bottom: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem;
}
.footer-bottom p { margin: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* --- Floating WhatsApp + mobile bar ------------------------------------- */

.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--whatsapp); color: #fff; box-shadow: 0 10px 25px -6px rgba(37, 211, 102, .6);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); color: #fff; }
.wa-float .icon { width: 30px; height: 30px; }

.mobile-bar { display: none; }
@media (max-width: 760px) {
  .wa-float { display: none; }
  body { padding-bottom: 68px; }
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px -10px rgba(0, 0, 0, .2);
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    height: 48px; border-radius: 12px; background: var(--bg-soft);
    font: 600 .92rem var(--font-head); color: var(--ink); text-decoration: none;
  }
  .mobile-bar a:nth-child(2) .icon { color: #128C4B; }
  .mobile-bar a .icon { width: 20px; height: 20px; color: var(--brand); }
  .mobile-bar a.is-primary { background: var(--brand); color: #fff; }
  .mobile-bar a.is-primary .icon { color: #fff; }
  .nav-open .mobile-bar { display: none; }
}

/* --- Reveal on scroll ---------------------------------------------------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Forms
   ========================================================================== */

.zg-form-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 40px);
}
.zg-form-head { margin-bottom: 28px; }
.zg-form-head h2 { font-size: 1.5rem; margin-bottom: 6px; }
.zg-form-head p { color: var(--muted); margin: 0; font-size: .95rem; }
.zg-req { color: var(--brand); }

.zg-progress { display: flex; gap: 6px; margin-top: 18px; }
.zg-progress span { flex: 1; height: 4px; border-radius: 4px; background: var(--line); transition: background-color .3s; }
.zg-progress span.is-done { background: var(--brand); }

.zg-section { border: 0; margin: 0; padding: 0; min-width: 0; }
.zg-section + .zg-section { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.zg-section legend {
  display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: 20px;
  font: 600 1.05rem var(--font-head); color: var(--ink);
}
.zg-section legend .zg-step {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand-50); color: var(--brand); font-size: .85rem;
}

.zg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.zg-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.zg-wide { grid-column: 1 / -1; }
.zg-field > label { font: 500 .93rem var(--font-head); color: var(--ink); }
.zg-optional { font: 400 .8rem var(--font-body); color: var(--muted); margin-left: 4px; }

.zg-control { position: relative; display: flex; align-items: stretch; }
.zg-prefix {
  display: flex; align-items: center; padding: 0 12px;
  border: 1px solid var(--line); border-right: 0; border-radius: 10px 0 0 10px;
  background: var(--bg-soft); color: var(--ink-2); font-weight: 500; font-size: .95rem;
}
.zg-prefix + input { border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; }

.zg-field input:not([type="file"]),
.zg-field textarea {
  width: 100%; min-width: 0;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff;
  border: 1px solid #D5D7DD; border-radius: 10px;
  padding: 12px 14px; min-height: 50px;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
.zg-field input[type="date"] { min-height: 50px; }
.zg-field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.zg-field input::placeholder, .zg-field textarea::placeholder { color: #9AA0AC; }
.zg-field input:hover, .zg-field textarea:hover { border-color: #B9BCC5; }
.zg-field input:focus, .zg-field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(170, 29, 51, .12); }
.zg-field.zg-invalid input, .zg-field.zg-invalid textarea, .zg-field.zg-invalid .zg-prefix, .zg-field.zg-invalid .zg-drop { border-color: var(--error); }
.zg-field.zg-valid input:not([type="file"]) { border-color: #9FD3B3; }

.zg-hint { margin: 0; font-size: .84rem; color: var(--muted); }
.zg-error { display: flex; align-items: center; gap: 6px; margin: 0; font-size: .86rem; color: var(--error); }
.zg-error::before { content: "!"; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--error); color: #fff; font: 700 .7rem var(--font-head); flex: none; }

/* drop zone */
.zg-drop {
  position: relative;
  display: flex; align-items: center; gap: 16px;
  padding: 20px; border: 2px dashed #D5D7DD; border-radius: 12px; background: var(--bg-soft);
  transition: border-color .2s, background-color .2s;
}
.zg-drop:hover, .zg-drop.is-dragover { border-color: var(--brand); background: var(--brand-50); }
.zg-drop input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.zg-drop input[type="file"]:focus-visible + .zg-drop-icon { outline: 3px solid var(--accent); outline-offset: 2px; }
.zg-drop-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: #fff; color: var(--brand); flex: none; box-shadow: var(--shadow-sm); }
.zg-drop-icon .icon { width: 24px; height: 24px; }
.zg-drop-text strong { display: block; color: var(--ink); font: 600 .97rem var(--font-head); }
.zg-drop-text span { font-size: .85rem; color: var(--muted); }
.zg-files { list-style: none; display: grid; gap: 8px; }
.zg-files li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: .92rem;
}
.zg-files li .icon { color: var(--brand); width: 18px; height: 18px; }
.zg-files .zg-file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.zg-files .zg-file-size { color: var(--muted); font-size: .82rem; }
.zg-files button {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  border: 0; background: var(--bg-soft); color: var(--muted); cursor: pointer; font-size: 1.1rem; line-height: 1;
}
.zg-files button:hover { background: var(--brand-50); color: var(--brand); }

.zg-alert {
  display: flex; gap: 10px; align-items: flex-start;
  margin-bottom: 24px; padding: 14px 16px; border-radius: 10px;
  background: #FDECEA; color: #8E1C1C; border: 1px solid #F5C6C0; font-size: .95rem;
}

.zg-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.zg-consent { margin: 0; font-size: .85rem; color: var(--muted); max-width: 420px; }
.zg-submit { min-width: 220px; }
.zg-submit.zg-loading { pointer-events: none; opacity: .85; }
.zg-submit.zg-loading .icon { display: none; }
.zg-submit.zg-loading::before {
  content: ""; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff;
  border-radius: 50%; animation: zg-spin .7s linear infinite;
}
@keyframes zg-spin { to { transform: rotate(360deg); } }

.zg-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.zg-success { text-align: center; padding: clamp(16px, 4vw, 40px) 8px; outline: none; }
.zg-success-icon {
  display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 50%;
  background: #E7F6EC; color: var(--success);
  animation: zg-pop .5s cubic-bezier(.2, 1.4, .4, 1);
}
.zg-success-icon .icon { width: 38px; height: 38px; }
@keyframes zg-pop { from { transform: scale(.4); opacity: 0; } }
.zg-success h2 { margin-bottom: 10px; }
.zg-success p { color: var(--muted); max-width: 460px; margin: 0 auto 8px; }
.zg-ref {
  display: inline-block; margin: 14px 0 24px; padding: 10px 18px; border-radius: 10px;
  background: var(--bg-soft); border: 1px dashed var(--line); font: 600 1rem var(--font-head); color: var(--ink);
}
.zg-success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 640px) {
  .zg-grid { grid-template-columns: 1fr; }
  .zg-submit { width: 100%; }
  .zg-footer { flex-direction: column-reverse; align-items: stretch; }
}

/* --- Small utilities ----------------------------------------------------- */

.post-grid--two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 600px) { .post-grid--two { grid-template-columns: 1fr; } }
.section-foot { text-align: center; margin: 36px 0 0; }
