/* =========================================================
   Paldies, Latvija! - День вдячності народу Латвії
   Громадська ініціатива українців в Латвії, 2026
   ========================================================= */

:root {
  /* Latvia */
  --carmine: #9e1b32;
  --carmine-deep: #7a1226;
  /* Ukraine */
  --blue: #005bbb;
  --blue-deep: #003f88;
  --yellow: #ffd500;
  /* Accents drawn from the logo's gold heart outlines */
  --gold: #c79a3b;
  --gold-soft: #e6cd8b;
  /* Neutrals - warm cream base */
  --cream: #fdfaf4;
  --cream-2: #f6efe3;
  --paper: #ffffff;
  --ink: #2a2024;
  --muted: #71645d;
  --line: #ece2d3;

  --maxw: 1060px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 2px 10px rgba(70, 40, 30, .06);
  --shadow: 0 18px 50px -22px rgba(90, 40, 40, .30);
  --shadow-lg: 0 40px 90px -40px rgba(90, 30, 40, .45);

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 15px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: min(100% - 44px, var(--maxw)); margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--carmine);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--carmine));
}

.section { padding: clamp(32px, 3.8vw, 60px) 0; position: relative; }
.section__head { max-width: 720px; margin-bottom: clamp(20px, 2.6vw, 36px); }
.section__title {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  margin: .5rem 0 .7rem;
  letter-spacing: -.01em;
}
.section__lead { font-size: clamp(.97rem, 1.2vw, 1.08rem); color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.7rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .2s ease, box-shadow .25s ease, background .25s ease;
  will-change: transform;
}
.btn--primary {
  background: linear-gradient(135deg, var(--carmine), var(--carmine-deep));
  color: #fff; box-shadow: 0 14px 30px -14px rgba(158, 27, 50, .8);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -16px rgba(158, 27, 50, .85); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--gold); color: var(--carmine); transform: translateY(-2px); }
.btn__arrow { transition: transform .25s ease; }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.4) blur(12px);
  background: rgba(253, 250, 244, .8);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.header.is-stuck { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; font-weight: 700; }
.brand img { height: 40px; width: auto; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand__txt b { font-family: var(--font-display); font-size: 1.05rem; color: var(--carmine); }
.brand__txt span { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav a { font-size: .95rem; font-weight: 500; color: var(--ink); position: relative; padding: .2rem 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--carmine), var(--gold)); transition: width .25s ease;
}
.nav a:hover::after { width: 100%; }
.nav a:hover { color: var(--carmine); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
.nav-toggle span + span { margin-top: 5px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(28px, 3.5vw, 54px) 0 clamp(38px, 4.5vw, 66px); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg::before, .hero__bg::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5;
}
.hero__bg::before { width: 520px; height: 520px; top: -160px; right: -120px;
  background: radial-gradient(circle, rgba(0, 91, 187, .30), transparent 70%); }
.hero__bg::after { width: 460px; height: 460px; bottom: -180px; left: -120px;
  background: radial-gradient(circle, rgba(158, 27, 50, .22), transparent 70%); }
.hero__grain { position: absolute; inset: 0; z-index: -1; opacity: .5;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 213, 0, .10), transparent 40%),
    radial-gradient(circle at 82% 78%, rgba(199, 154, 59, .10), transparent 45%);
}

.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__logo { justify-self: center; }
.hero__logo img { width: min(330px, 66vw); filter: drop-shadow(0 26px 40px rgba(120, 20, 40, .18)); animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .hero__logo img { animation: none; } }

.hero h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  letter-spacing: -.015em; margin: 1rem 0 .3rem;
}
.hero h1 .accent { color: var(--carmine); }
.hero__sub { font-size: clamp(.98rem, 1.3vw, 1.12rem); color: var(--muted); max-width: 34ch; margin-top: .9rem; }

.hero__dates {
  display: inline-flex; align-items: center; gap: .9rem; margin-top: 1.7rem;
  padding: .7rem 1.15rem; background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px; box-shadow: var(--shadow-sm); font-weight: 600;
}
.hero__dates .d { display: flex; flex-direction: column; line-height: 1.05; }
.hero__dates .d b { font-size: 1.02rem; color: var(--ink); }
.hero__dates .d span { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--carmine); font-weight: 700; }
.hero__dates .arrow { color: var(--gold); font-size: 1.3rem; }

.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.9rem; }

/* ---------- Intro ---------- */
.intro { background: linear-gradient(180deg, var(--cream), var(--cream-2)); }
.intro__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 66px); align-items: center; }
.intro__lead { font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-family: var(--font-display); line-height: 1.35; }
.intro__lead .hl { color: var(--carmine); }
.intro__body p { color: var(--muted); font-size: 1.06rem; }
.intro__body p + p { margin-top: 1rem; }
.gift {
  margin-top: 1.6rem; padding: 1.3rem 1.5rem; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--gold);
  box-shadow: var(--shadow-sm); font-size: 1.05rem;
}

/* ---------- Route / timeline ---------- */
.route { background: var(--paper); }
.route__line { position: relative; margin-top: 20px; }
.route__track {
  position: absolute; left: 0; right: 0; top: 34px; height: 3px;
  background: repeating-linear-gradient(90deg, var(--gold-soft) 0 14px, transparent 14px 26px);
  z-index: 0;
}
.route__steps { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 54px); position: relative; z-index: 1; }
.milestone { position: relative; display: flex; flex-direction: column; }
.milestone__node {
  width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); border: 3px solid var(--carmine); color: var(--carmine);
  box-shadow: var(--shadow-sm); margin-bottom: 22px; position: relative;
}
.milestone__node > svg:not(.milestone__flag) { width: 30px; height: 30px; }
.milestone--finish .milestone__node { border-color: var(--blue); color: var(--blue); }
.milestone__flag {
  position: absolute; bottom: -8px; right: -8px; width: 30px; height: 20px;
  border-radius: 4px; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); border: 1.5px solid var(--paper);
}

.milestone__card {
  padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--cream), var(--paper));
  border: 1px solid var(--line); box-shadow: var(--shadow); flex: 1;
}
.milestone--finish .milestone__card { border-top: 4px solid var(--blue); }
.milestone--start .milestone__card { border-top: 4px solid var(--carmine); }
.milestone__kicker { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.milestone__date { font-family: var(--font-display); font-size: clamp(1.3rem, 2.2vw, 1.75rem); margin: .3rem 0 .8rem; }
.milestone__card p { color: var(--muted); font-size: 1.02rem; }
.milestone__card p + p { margin-top: .85rem; }

/* ---------- Elements grid ---------- */
.elements { background: linear-gradient(180deg, var(--cream-2), var(--cream)); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(16px, 2.4vw, 24px); }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.5rem; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold-soft); }
.card__ic {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.1rem;
  background: linear-gradient(135deg, rgba(158, 27, 50, .10), rgba(199, 154, 59, .16));
  color: var(--carmine);
}
.card__ic svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.18rem; margin-bottom: .4rem; }
.card p { color: var(--muted); font-size: .97rem; }

/* ---------- Message band ---------- */
.message { color: #fff; text-align: center; overflow: hidden; position: relative;
  background: radial-gradient(120% 140% at 20% 0%, var(--carmine) 0%, var(--carmine-deep) 55%, #5c0d1c 100%); }
.message::before, .message::after { content: ""; position: absolute; border-radius: 50%; filter: blur(60px); }
.message::before { width: 360px; height: 360px; top: -120px; left: -80px; background: rgba(0, 91, 187, .35); }
.message::after { width: 320px; height: 320px; bottom: -120px; right: -60px; background: rgba(255, 213, 0, .22); }
.message .wrap { position: relative; z-index: 1; }
.message .quote-mark { font-family: var(--font-display); font-size: 5rem; line-height: .4; color: var(--gold-soft); opacity: .8; }
.message blockquote {
  margin: .4rem auto 0; max-width: 20ch; font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.6vw, 3rem); line-height: 1.28; font-weight: 500;
}
.message blockquote .g { color: var(--yellow); }
.message__from { margin-top: 1.8rem; font-size: 1.4rem; font-family: var(--font-display); letter-spacing: .01em; }
.message__note { margin-top: .5rem; color: rgba(255, 255, 255, .72); font-size: .95rem; }

/* ---------- Join / CTA ---------- */
.join { text-align: center; }
.join__box {
  max-width: 720px; margin: 0 auto; padding: clamp(20px, 2.6vw, 36px);
  border-radius: var(--radius-lg); background: var(--paper);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.join__box::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px;
  background: linear-gradient(90deg, var(--carmine), var(--gold), var(--blue), var(--yellow)); }
.join h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-bottom: .7rem; }
.join p { color: var(--muted); font-size: 1.08rem; max-width: 48ch; margin: 0 auto 1.6rem; }
.join__cta { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.join__hint { margin-top: 1.3rem; font-size: .86rem; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: #221a1d; color: rgba(255, 255, 255, .8); padding: 54px 0 30px; }
.footer__top { display: flex; flex-wrap: wrap; gap: 26px 40px; justify-content: space-between; align-items: center; }
.footer .brand { align-items: center; }
.footer .brand img { height: 48px; }
.footer .brand__txt b { color: #fff; font-size: 1.1rem; }
.footer .brand__txt span { color: rgba(255, 255, 255, .55); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.footer__right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.footer__slogan { font-family: var(--font-display); font-size: 1.35rem; color: var(--gold-soft); }
.footer__flags { display: flex; gap: 8px; }
.footer__flags svg { width: 30px; height: 20px; border-radius: 4px; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.footer__bottom { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .85rem; color: rgba(255, 255, 255, .55); }
@media (max-width: 620px) {
  .footer__top { flex-direction: column; align-items: flex-start; }
  .footer__right { align-items: flex-start; }
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__logo { order: -1; }
  .hero__sub, .hero__cta { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .intro__grid { grid-template-columns: 1fr; }
  .route__track { display: none; }
  .route__steps { grid-template-columns: 1fr; }

  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    flex-direction: column; align-items: flex-start; gap: 1.4rem;
    background: var(--paper); padding: 92px 32px 32px; box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: scale(.97); transform-origin: top right;
    transition: opacity .3s ease, transform .3s ease, visibility .3s ease; z-index: 40;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav-toggle { display: block; z-index: 45; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 520px) {
  .hero__dates { flex-wrap: wrap; justify-content: center; }
  .header .brand__txt span { display: none; }
}

/* ========================================================= */
/* Added sections: lang toggle, anthem, resources, partners, form */
/* ========================================================= */

/* ---------- Language toggle ---------- */
.lang { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.lang__btn { border: 0; background: transparent; font-family: var(--font-body); font-weight: 700; font-size: .8rem; letter-spacing: .05em; color: var(--muted); padding: .35rem .75rem; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.lang__btn:hover { color: var(--carmine); }
.lang__btn.is-active { background: linear-gradient(135deg, var(--carmine), var(--carmine-deep)); color: #fff; }

/* ---------- Anthem ---------- */
.anthem { background: var(--paper); }
.anthem__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 50px); align-items: start; }
.anthem__grid > *, .anthem__side, .anthem__video, .anthem__video > div { min-width: 0; }
.anthem__lyrics { padding: clamp(26px, 3.5vw, 42px); border-radius: var(--radius-lg);
  background: radial-gradient(130% 120% at 0 0, rgba(158, 27, 50, .07), var(--cream));
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.anthem__badge { display: inline-block; font-family: var(--font-display); font-size: 1.2rem; color: var(--carmine); margin-bottom: 1.1rem; }
.anthem__stanza { font-family: var(--font-display); font-size: clamp(1.15rem, 2.1vw, 1.5rem); line-height: 1.7; color: var(--ink); }
.anthem__stanza + .anthem__stanza { margin-top: 1.1rem; }
.anthem__note { margin-top: 1.5rem; font-size: .88rem; color: var(--muted); }
.anthem__side { display: flex; flex-direction: column; gap: 20px; }
.anthem__video { display: flex; align-items: center; gap: 1rem; padding: 1.35rem 1.4rem; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue), var(--blue-deep)); color: #fff; cursor: pointer; position: relative;
  box-shadow: var(--shadow); transition: transform .2s ease; }
.anthem__video:hover { transform: translateY(-3px); }
.anthem__play { flex: 0 0 auto; width: 50px; height: 50px; border-radius: 50%; background: rgba(255, 255, 255, .2); display: grid; place-items: center; }
.anthem__play svg { width: 22px; height: 22px; }
.anthem__video h3 { font-size: 1.12rem; }
.anthem__video p { font-size: .9rem; color: rgba(255, 255, 255, .85); margin-top: .2rem; padding-right: 46px; }
.anthem__reh { padding: 1.5rem; border-radius: var(--radius); background: var(--cream-2); border: 1px solid var(--line); overflow-x: auto; }
.anthem__reh h3 { font-size: 1.2rem; }
.anthem__rehlead { font-size: .9rem; color: var(--muted); margin: .35rem 0 1.1rem; }
.reh { width: 100%; min-width: 300px; border-collapse: collapse; font-size: .92rem; }
.reh th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--carmine); padding: .5rem .55rem; border-bottom: 2px solid var(--line); }
.reh td { padding: .6rem .55rem; border-bottom: 1px solid var(--line); }
.reh tr:last-child td { border-bottom: 0; }
.reh td:first-child { font-weight: 600; }
.tbd { color: var(--gold); font-style: italic; font-size: .85rem; }

/* ---------- Badges ---------- */
.soon, .res-badge { display: inline-block; font-size: .66rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: .18rem .55rem; border-radius: 999px; background: rgba(199, 154, 59, .18); color: #9a7420; margin-left: .5rem; }
.anthem__video .soon { position: absolute; top: 12px; right: 14px; background: rgba(255, 255, 255, .22); color: #fff; margin: 0; }
.res-badge { margin: 1.1rem 0 0; }

/* ---------- Resources ---------- */
.resources { background: linear-gradient(180deg, var(--cream), var(--cream-2)); }
.cards--3 { grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }
.res-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.9rem 1.6rem;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; align-items: flex-start;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.res-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold-soft); }
.res-card h3 { font-size: 1.2rem; margin-bottom: .45rem; }
.res-card p { color: var(--muted); font-size: .96rem; flex: 1 0 auto; }
.res-card .btn { margin-top: 1.2rem; }
.btn--sm { padding: .6rem 1.15rem; font-size: .9rem; }

/* ---------- Partners ---------- */
.partners { background: var(--paper); }
.partners__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.partner { padding: 1.9rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--cream); box-shadow: var(--shadow-sm); }
.partner__name { font-family: var(--font-display); font-size: 1.55rem; color: var(--carmine); margin-bottom: .5rem; }
.partner__desc { color: var(--muted); font-size: .96rem; }
.partner--add { display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  border-style: dashed; cursor: pointer; transition: border-color .2s ease, transform .2s ease; }
.partner--add:hover { border-color: var(--gold); transform: translateY(-3px); }
.partner__plus { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(199, 154, 59, .16); color: var(--gold); font-size: 1.7rem; margin-bottom: .6rem; }

/* ---------- Registration form ---------- */
.rform { text-align: left; margin-top: 1.9rem; }
.rform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: block; margin-bottom: 1rem; }
.field > span { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: .35rem; }
.field input, .field textarea { width: 100%; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px;
  font: inherit; color: var(--ink); background: var(--cream); transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--carmine); box-shadow: 0 0 0 3px rgba(158, 27, 50, .12); background: var(--paper); }
.field textarea { resize: vertical; }
.ways { border: 0; padding: 0; margin: 0 0 1.3rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.ways legend { width: 100%; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: .55rem; padding: 0; }
.chip { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem; border: 1px solid var(--line);
  border-radius: 999px; cursor: pointer; font-size: .9rem; background: var(--cream); transition: .18s ease; user-select: none; }
.chip input { accent-color: var(--carmine); margin: 0; }
.chip:hover { border-color: var(--gold); }
.chip:has(input:checked) { background: rgba(158, 27, 50, .09); border-color: var(--carmine); color: var(--carmine); font-weight: 600; }
.hidden-field { position: absolute; left: -9999px; }
.rform button[type="submit"] { margin-top: .3rem; }
.rform__success { text-align: center; padding: 1.5rem 0 .5rem; }
.rform__check { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1.1rem;
  background: linear-gradient(135deg, var(--carmine), var(--carmine-deep)); color: #fff; font-size: 2rem; box-shadow: var(--shadow); }

/* ========================================================= */
/* v3: full-brief sections (route-3, hub, program, cert, teasers) */
/* ========================================================= */
.route__steps--3 { grid-template-columns: repeat(3, 1fr); }
.milestone--action .milestone__card { border-top: 4px solid var(--gold); }
.milestone--action .milestone__node { border-color: var(--gold); color: var(--gold); }

.route__quote { text-align: center; max-width: 760px; margin: clamp(56px,7vw,92px) auto 0; clear: both; }
.route__quote blockquote { font-family: var(--font-display); font-size: clamp(1.4rem,2.8vw,2rem); line-height: 1.35; color: var(--ink); margin: 0; }
.route__bi { margin-top: 1.2rem; display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap; justify-content: center;
  font-weight: 600; color: var(--carmine); }
.route__bi svg { width: 26px; height: 17px; border-radius: 3px; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.route__bi span { color: var(--muted); font-weight: 500; }

/* Join hub (6 accordions) */
.join-hub { background: linear-gradient(180deg, var(--cream-2), var(--cream)); }
.hub { column-count: 2; column-gap: 16px; }
.hubcard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden;
  break-inside: avoid; margin-bottom: 16px; }
@media (max-width: 860px) { .hub { column-count: 1; } }
.hubcard[open] { box-shadow: var(--shadow); border-color: var(--gold-soft); }
.hubcard summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 1rem; padding: 1.3rem 1.4rem; }
.hubcard summary::-webkit-details-marker { display: none; }
.hubcard__ic { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(158,27,50,.1), rgba(199,154,59,.16)); color: var(--carmine); }
.hubcard__ic svg { width: 26px; height: 26px; }
.hubcard__t { flex: 1; display: flex; flex-direction: column; }
.hubcard__t b { font-family: var(--font-display); font-size: 1.2rem; }
.hubcard__t small { color: var(--muted); font-size: .92rem; margin-top: .15rem; }
.hubcard__chev { color: var(--gold); transition: transform .25s ease; font-size: 1rem; }
.hubcard[open] .hubcard__chev { transform: rotate(180deg); }
.hubcard__body { padding: 0 1.4rem 1.5rem; }
.hubcard__body ul { margin: 0 0 1.1rem; padding-left: 1.1rem; }
.hubcard__body li { color: var(--muted); font-size: .96rem; margin-bottom: .45rem; }
.hubcard__note { font-size: .88rem; color: var(--gold); font-style: italic; margin-bottom: 1rem; }

/* Program */
.program { background: var(--paper); }
.prog__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px,4vw,50px); align-items: start; }
.prog__facts { display: flex; flex-direction: column; gap: 12px; }
.fact { padding: 1rem 1.2rem; border-radius: var(--radius); background: var(--cream); border: 1px solid var(--line); }
.fact span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--carmine); font-weight: 700; margin-bottom: .2rem; }
.fact b { font-family: var(--font-display); font-size: 1.15rem; }
.fact--dress { background: linear-gradient(135deg, rgba(0,91,187,.08), rgba(255,213,0,.12)); border-color: var(--gold-soft); }
.prog__facts .btn { margin-top: 6px; }
.prog__timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.prog__timeline::before { content: ""; position: absolute; left: 62px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.prog__timeline li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: .5rem 0; position: relative; }
.prog__timeline .t { font-family: var(--font-display); font-weight: 700; color: var(--carmine); text-align: right; }
.prog__timeline li::before { content: ""; position: absolute; left: 58px; top: .85rem; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); border: 2px solid var(--paper); box-shadow: 0 0 0 1px var(--gold-soft); }
.prog__timeline li span:last-child { color: var(--ink); font-size: .98rem; }
.prog__note { margin-top: 1.6rem; font-size: .9rem; color: var(--muted); font-style: italic; }

/* Certificate */
.cert { background: linear-gradient(180deg, var(--cream), var(--cream-2)); }
.cert__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(24px,4vw,50px); align-items: start; }
.cert__steps { counter-reset: c; list-style: none; margin: 0; padding: 0; }
.cert__steps li { counter-increment: c; position: relative; padding: .6rem 0 .6rem 46px; color: var(--ink); border-bottom: 1px solid var(--line); }
.cert__steps li:last-child { border-bottom: 0; }
.cert__steps li::before { content: counter(c); position: absolute; left: 0; top: .5rem; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--carmine), var(--carmine-deep)); color: #fff; font-weight: 700; font-size: .9rem; }
.cert__box { padding: 1.6rem; border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.cert__imp { font-size: .92rem; color: var(--muted); border-left: 3px solid var(--gold); padding-left: .9rem; margin-bottom: 1.2rem; }
.cert__btns, .anthem__btns { display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; }
.anthem__will { padding: 1.5rem; border-radius: var(--radius); background: var(--cream-2); border: 1px solid var(--line); }
.anthem__will h3 { font-size: 1.15rem; margin-bottom: .7rem; }
.anthem__will ul { margin: 0 0 1.1rem; padding-left: 1.1rem; }
.anthem__will li { color: var(--muted); font-size: .95rem; margin-bottom: .35rem; }

/* Participation form */
.uchast { text-align: center; }
.uchast .join__box h2 { font-size: clamp(1.7rem,3.6vw,2.5rem); margin-bottom: .7rem; }
.uchast .join__box > p { color: var(--muted); font-size: 1.06rem; max-width: 48ch; margin: 0 auto 1.4rem; }
.field select { width: 100%; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px; font: inherit; color: var(--ink); background: var(--cream); cursor: pointer; }
.field select:focus { outline: none; border-color: var(--carmine); box-shadow: 0 0 0 3px rgba(158,27,50,.12); }
.rform__row { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

/* Teasers + subpage links */
.teasers { background: var(--paper); }
.teasers__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.teaser { display: block; padding: 1.9rem; border-radius: var(--radius-lg); background: var(--cream); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.teaser:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--gold-soft); }
.teaser h3 { font-size: clamp(1.3rem,2.4vw,1.7rem); margin: .5rem 0 .6rem; }
.teaser p { color: var(--muted); font-size: 1rem; }
.teaser__more { display: inline-block; margin-top: 1rem; color: var(--carmine); font-weight: 600; }
.teaser--sustento h3 { color: var(--blue); }
.teasers__links { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: center; margin-top: 26px; }
.teasers__links a { color: var(--ink); font-weight: 500; border-bottom: 2px solid var(--gold-soft); padding-bottom: 2px; }
.teasers__links a:hover { color: var(--carmine); border-color: var(--carmine); }

/* Footer contacts */
.footer__contacts { display: flex; flex-direction: column; gap: 12px; }
.footer__contacts .fc > span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-soft); margin-bottom: .15rem; }
.footer__contacts .fc b { color: #fff; font-weight: 500; font-size: .95rem; }

/* ---------- Added responsive ---------- */
@media (max-width: 900px) {
  .route__steps--3 { grid-template-columns: 1fr; }
  .prog__grid { grid-template-columns: 1fr; }
  .cert__grid { grid-template-columns: 1fr; }
  .teasers__grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) { .anthem__grid { grid-template-columns: 1fr; } }

/* ---------- Subpages ---------- */
.subhero { padding: clamp(70px,5.5vw,86px) 0 clamp(12px,1.8vw,22px); background: linear-gradient(180deg, var(--cream), var(--cream-2)); position: relative; }
.subhero h1 { font-size: clamp(1.5rem,2.7vw,2.1rem); letter-spacing: -.01em; margin: .5rem 0 .6rem; }
.subhero h1 .accent { color: var(--carmine); }
.subhero p { color: var(--muted); font-size: clamp(.98rem,1.2vw,1.08rem); max-width: 60ch; }
.subhero .back { display: inline-block; margin-bottom: 1rem; color: var(--carmine); font-weight: 600; }
.subhero__mark { width: 54px; height: auto; display: block; margin: 0 0 12px; filter: drop-shadow(0 6px 14px rgba(120, 20, 40, .16)); }

/* Partner logo slot (SUSTENTO) + social links */
.partner-logo { display: inline-flex; align-items: center; justify-content: center; padding: 16px 22px; margin-bottom: 1.6rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.partner-logo img { max-width: 180px; max-height: 92px; height: auto; width: auto; display: block; }
.partner-logo__fallback { display: none; font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; letter-spacing: .04em; color: var(--blue); }
.sociallinks { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.sociallink { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-weight: 600; font-size: .92rem; transition: .2s ease; }
.sociallink:hover { border-color: var(--gold); color: var(--carmine); transform: translateY(-2px); }
.sociallink svg { width: 18px; height: 18px; }
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.22rem,1.9vw,1.55rem); margin: clamp(20px,2.6vw,32px) 0 .8rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); font-size: 1rem; margin-bottom: 1rem; }
.prose p.lead-em { font-family: var(--font-display); font-size: clamp(1.2rem,2.2vw,1.55rem); color: var(--ink); line-height: 1.4; }
.blist { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.blist li { position: relative; padding: .5rem 0 .5rem 1.7rem; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 1.02rem; }
.blist li:last-child { border-bottom: 0; }
.blist li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(135deg, var(--carmine), var(--gold)); }
.vchips { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; }
.vchips span { padding: .5rem 1rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 600; color: var(--carmine); box-shadow: var(--shadow-sm); }
.callout { margin: 1.5rem 0; padding: 1.4rem 1.6rem; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--gold); box-shadow: var(--shadow-sm); font-family: var(--font-display); font-size: 1.2rem; line-height: 1.4; }
.subcta { margin-top: .5rem; }
.cta-lead { margin: 2.4rem 0 0; color: var(--muted); font-size: 1.02rem; font-weight: 500; }
.cert-illus { display: block; max-width: 380px; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); margin: 1.2rem 0; }
.anthem__cta_lead { margin: .3rem 0 .8rem; color: var(--muted); font-weight: 500; font-size: .98rem; }

/* Zoomable images + lightbox */
.zoomable { cursor: zoom-in; transition: transform .2s ease; }
.zoomable:hover { transform: scale(1.01); }
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 1.2rem 0; }
.photo-grid figure { margin: 0; }
.photo-grid img { width: 100%; height: 100%; max-height: 300px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
.photo-grid figcaption { font-size: .82rem; color: var(--muted); margin-top: .4rem; }
@media (max-width: 620px) { .photo-grid { grid-template-columns: 1fr; } .photo-grid img { max-height: none; } }
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center;
  background: rgba(20, 10, 14, .88); padding: 4vh 4vw; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 84vh; width: auto; height: auto; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox__bar { position: absolute; top: 14px; right: 14px; display: flex; gap: 10px; }
.lightbox__btn { width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: rgba(255,255,255,.16); color: #fff; }
.lightbox__btn:hover { background: rgba(255,255,255,.3); }
.lightbox__btn svg { width: 22px; height: 22px; }
/* FAQ */
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 1.3rem; font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { color: var(--carmine); }
.faq__a { padding: 0 1.3rem 1.2rem; color: var(--muted); font-size: 1.02rem; }

/* Video embeds (YouTube, privacy mode) */
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.video { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: var(--paper); }
.video__frame { position: relative; aspect-ratio: 16 / 9; background: radial-gradient(120% 120% at 30% 20%, #3a1620, #1a1216); }
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__ph { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; padding: 1rem; color: rgba(255,255,255,.8); }
.video__ph svg { width: 54px; height: 54px; opacity: .85; }
.video__ph span { font-size: .9rem; }
.video__cap { padding: .9rem 1.1rem; font-weight: 600; color: var(--ink); }
.archive-list { columns: 2; column-gap: 28px; margin: 0; padding: 0; list-style: none; }
.archive-list li { break-inside: avoid; position: relative; padding: .4rem 0 .4rem 1.5rem; color: var(--muted); }
.archive-list li::before { content: ""; position: absolute; left: 0; top: .95rem; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
@media (max-width: 640px) { .archive-list { columns: 1; } }
@media (max-width: 900px) {
  .nav .lang { margin-top: .6rem; }
}
@media (max-width: 520px) {
  .rform__row { grid-template-columns: 1fr; }
  .footer .brand__txt span { display: block; }
}
