/* Casa Serbia – Српска кућа (v4)
   Colours taken from the three flags the association lives between:
   Canarian blue and yellow, Serbian red and blue, and plenty of white. Phone first. */

/* ---------- Fonts: Montserrat (like the logo) + Nunito (friendly text) ---------- */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0106-0107, U+010C-010D, U+0110-0111, U+0160-0161, U+017D-017E; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/montserrat-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url("/assets/fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url("/assets/fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0106-0107, U+010C-010D, U+0110-0111, U+0160-0161, U+017D-017E; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url("/assets/fonts/nunito-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

/* ---------- Tokens ---------- */
:root {
  --white: #ffffff;
  --ocean: #0768a9;      /* Canarias blue */
  --deep: #0c4076;       /* Serbian blue */
  --sun: #ffcc00;        /* Canarias yellow */
  --sun-soft: #fff6d2;
  --red: #c6363c;        /* Serbian red */
  --red-dark: #a62b31;
  --sky: #eaf4fd;
  --ink: #14243d;
  --muted: #4b5a72;
  --line: #d6e4f1;
  --font-head: "Montserrat", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-text: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4.5vw, 32px);
  --radius: 20px;
  --shadow: 0 16px 36px -18px rgba(12, 64, 118, .45);
  --shadow-soft: 0 8px 22px -14px rgba(12, 64, 118, .35);
  --header-h: 64px;
  --wave-h: clamp(22px, 4vw, 52px);
  color-scheme: light;
}
@media (min-width: 900px) { :root { --header-h: 84px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 10px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1.0625rem/1.65 var(--font-text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
@media (min-width: 900px) { body { font-size: 1.125rem; line-height: 1.7; } }
img, svg, picture { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--ocean); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
::selection { background: var(--sun); color: var(--ink); }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 800; }
.skip:focus { top: 12px; }
.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; }
.center { text-align: center; }
.muted { color: var(--muted); }

.h2 { font: 800 clamp(1.6rem, 1.15rem + 2vw, 2.55rem)/1.15 var(--font-head); letter-spacing: -0.015em; text-wrap: balance; color: var(--deep); }
.h3 { font: 700 1.15rem/1.3 var(--font-head); letter-spacing: -0.01em; color: var(--ink); }
@media (min-width: 900px) { .h3 { font-size: 1.22rem; } }
.lead { font-size: clamp(1.06rem, 1rem + .35vw, 1.25rem); color: var(--muted); max-width: 40em; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 1em; }
.prose { max-width: 40em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.35em; border: 2px solid transparent; border-radius: 999px; cursor: pointer;
  font: 700 1rem/1.15 var(--font-head); text-decoration: none; text-align: center;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 10px 22px -12px rgba(198, 54, 60, .9); }
.btn--red:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn--sun { background: var(--sun); color: var(--ink); box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .45); }
.btn--sun:hover { background: #ffd83d; transform: translateY(-1px); }
.btn--line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .85); }
.btn--line:hover { background: #fff; color: var(--ocean); }
.btn--ghost { background: #fff; color: var(--deep); border-color: var(--deep); }
.btn--ghost:hover { background: var(--deep); color: #fff; }
.btn--soft { background: var(--sky); color: var(--ocean); }
.btn--soft:hover { background: #d8eafb; }
.btn--small { min-height: 42px; padding: .5em 1.05em; font-size: .93rem; }
.btn--big { min-height: 54px; padding: .8em 1.6em; font-size: 1.05rem; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.header-inner { display: flex; align-items: center; gap: 10px; min-height: var(--header-h); }
.brand { display: block; margin-right: auto; padding: 5px 0; }
.brand img { width: auto; height: 52px; }
@media (min-width: 900px) { .brand img { height: 70px; } }
.site-nav ul { display: flex; gap: 2px; }
.site-nav li > a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 11px; border-radius: 999px; color: var(--ink); font: 600 .96rem/1 var(--font-head); text-decoration: none; }
.site-nav li > a:hover { background: var(--sky); color: var(--ocean); }
.nav-cta { margin-left: 6px; }
.nav-script, .nav-ig { display: none; }
.header-tools { display: flex; align-items: center; gap: 6px; }
.icon-link { display: none; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--deep); }
.icon-link svg { width: 22px; height: 22px; }
.icon-link:hover { background: var(--sky); color: var(--red); }
.switch { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--sky); }
.switch a { display: inline-grid; place-items: center; min-width: 34px; min-height: 36px; padding: 0 7px; border-radius: 999px; color: var(--muted); font: 700 .8rem/1 var(--font-head); text-decoration: none; }
.switch a:hover { color: var(--ink); }
.switch a[aria-current="true"] { background: #fff; color: var(--red); box-shadow: 0 2px 6px -2px rgba(12, 64, 118, .35); }
.switch--script { display: none; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 46px; min-height: 46px; padding: 0; border: 0; border-radius: 50%; background: var(--deep); color: #fff; cursor: pointer; font: 700 .9rem/1 var(--font-head); }
.menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.menu-icon { position: relative; width: 18px; height: 12px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.menu-icon::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid currentColor; }
.menu-btn[aria-expanded="true"] .menu-icon { border-color: transparent; }
.menu-btn[aria-expanded="true"] .menu-icon::after { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon::before { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid currentColor; transform: rotate(-45deg); }
@media (min-width: 640px) {
  .icon-link { display: inline-grid; }
  .switch--script { display: inline-flex; }
  .menu-btn { width: auto; padding: 0 16px; border-radius: 999px; }
  .menu-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}
@media (max-width: 1099.98px) {
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; display: none; max-height: calc(100vh - var(--header-h)); overflow-y: auto; padding: 6px var(--gutter) 22px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -24px rgba(12, 64, 118, .6); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav li > a { width: 100%; min-height: 54px; padding: 0 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.08rem; }
  .nav-cta { width: 100%; margin: 16px 0 0; min-height: 50px; }
  .nav-script { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; font-weight: 800; color: var(--muted); }
  .nav-script .switch a { padding: 0 12px; min-height: 40px; font-size: .9rem; }
  .nav-ig { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; min-height: 46px; color: var(--deep); font: 700 1rem/1 var(--font-head); text-decoration: none; }
  .nav-ig svg { width: 22px; height: 22px; color: var(--red); }
  .no-js .site-nav { display: block; position: static; box-shadow: none; border: 0; }
}
@media (min-width: 1100px) { .site-nav { display: flex; align-items: center; } .menu-btn { display: none; } }
.no-js .menu-btn { display: none; }

/* ---------- Waves between sections ---------- */
.section, .hero, .site-footer { position: relative; }
.wave { line-height: 0; pointer-events: none; }
.wave svg { width: 100%; height: var(--wave-h); }
.wave-top { position: absolute; left: 0; right: 0; top: calc(-1 * var(--wave-h) + 1px); }
.wave-hero { position: absolute; left: 0; right: 0; bottom: -1px; }
.wave-hero path, .wave-white path { fill: var(--white); }
.wave-sun path { fill: var(--sun-soft); }
.wave-sky path { fill: var(--sky); }
.wave-ocean path { fill: var(--ocean); }
.wave-deep path { fill: var(--deep); }

/* ---------- Hero ---------- */
.hero { overflow: hidden; padding-block: 20px calc(var(--wave-h) + 34px); color: #fff;
  background:
    radial-gradient(circle at 88% 6%, rgba(255, 204, 0, .55) 0, rgba(255, 204, 0, .18) 16%, rgba(255, 204, 0, 0) 34%),
    linear-gradient(168deg, #1b8ad9 0%, var(--ocean) 46%, var(--deep) 100%); }
@media (min-width: 900px) { .hero { padding-block: 56px calc(var(--wave-h) + 64px); } }
.hero-grid { position: relative; display: grid; gap: 34px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; } }
.hero-kicker { display: flex; align-items: center; gap: 9px; font: 700 .86rem/1.4 var(--font-head); color: rgba(255, 255, 255, .9); }
.hero-kicker .loc-flag { box-shadow: 0 0 0 2px rgba(255, 255, 255, .9); }
@media (min-width: 900px) { .hero-kicker { font-size: 1rem; } }
.hero-title { margin-top: 8px; font: 900 clamp(2.55rem, 12.5vw, 5.6rem)/.95 var(--font-head); letter-spacing: -0.02em; text-transform: uppercase; color: #fff; text-shadow: 0 6px 24px rgba(12, 64, 118, .35); }
.hero-sub { display: block; margin-top: 10px; font-weight: 700; font-size: .3em; letter-spacing: .3em; color: var(--sun); text-shadow: none; }
.greetings { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.greetings li { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 6px; border-radius: 999px; background: #fff; color: var(--ink); box-shadow: 0 8px 18px -12px rgba(0, 0, 0, .5); font: 700 .86rem/1 var(--font-head); }
.greetings img { width: 26px; height: auto; }
.pair { display: inline-flex; align-items: center; flex: none; }
.pair picture + picture { margin-left: -7px; }
.greetings .pair img { width: 21px; }
@media (min-width: 900px) { .greetings li { font-size: .98rem; padding: 6px 14px 6px 8px; } .greetings img { width: 30px; } .greetings .pair img { width: 25px; } }
.hero-tagline { margin-top: 20px; max-width: 30em; font-size: clamp(1.08rem, 1rem + .5vw, 1.32rem); font-weight: 600; line-height: 1.55; color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
@media (max-width: 599.98px) { .hero-actions .btn { width: 100%; } }
.hero-photo { position: relative; justify-self: center; width: min(100%, 460px); margin-bottom: 18px; }
.polaroid { padding: 9px 9px 30px; border-radius: 18px; background: #fff; box-shadow: 0 22px 44px -20px rgba(0, 0, 0, .55); transform: rotate(-2deg); }
.polaroid img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 68%; border-radius: 10px; }
@media (min-width: 960px) { .polaroid img { aspect-ratio: 4 / 5; object-position: 50% 50%; } }
.hero-hearts { position: absolute; left: 4px; bottom: -22px; display: flex; align-items: flex-end; }
.hh img { width: clamp(58px, 16vw, 92px); filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .3)); }
.hh + .hh { margin-left: -12px; }
.hh-1 { transform: rotate(-10deg); }
.hh-2 { transform: translateY(-10px) rotate(2deg); }
.hh-3 { transform: rotate(10deg); }
@media (min-width: 960px) { .hero-hearts { left: -30px; bottom: -26px; } }
@media (prefers-reduced-motion: no-preference) {
  .hh { animation: pop-in .6s cubic-bezier(.2, .9, .3, 1.3) both; }
  .hh-2 { animation-delay: .12s; } .hh-3 { animation-delay: .24s; }
  @keyframes pop-in { from { opacity: 0; scale: .4; } to { opacity: 1; scale: 1; } }
}

/* ---------- Sections ---------- */
.section { padding-block: 44px 52px; }
@media (min-width: 900px) { .section { padding-block: 84px 96px; } }
.section--white { background: var(--white); }
.section--sun { background: var(--sun-soft); }
.section--sky { background: var(--sky); }
.section--ocean { background: linear-gradient(170deg, var(--ocean) 0%, var(--deep) 100%); color: #fff; }
.section-head { max-width: 46rem; margin-bottom: 24px; }
@media (min-width: 900px) { .section-head { margin-bottom: 40px; } }
.section-head .lead { margin-top: 10px; }

/* ---------- Welcome: language tabs on phones, all three blocks on desktop ---------- */
.welcome { padding-top: 18px; }
.tab-input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tab-labels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 5px; margin-bottom: 22px; border-radius: 999px; background: var(--sky); }
.tab-labels label { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 6px; border-radius: 999px; color: var(--muted); cursor: pointer; font: 700 .9rem/1 var(--font-head); }
.tab-labels img { width: 24px; height: auto; }
#wl-sr:checked ~ .tab-labels [for="wl-sr"], #wl-es:checked ~ .tab-labels [for="wl-es"], #wl-en:checked ~ .tab-labels [for="wl-en"] { background: #fff; color: var(--deep); box-shadow: 0 4px 12px -6px rgba(12, 64, 118, .45); }
#wl-sr:focus-visible ~ .tab-labels [for="wl-sr"], #wl-es:focus-visible ~ .tab-labels [for="wl-es"], #wl-en:focus-visible ~ .tab-labels [for="wl-en"] { outline: 3px solid var(--sun); outline-offset: 2px; }
.welcome-block { display: none; gap: 20px; }
#wl-sr:checked ~ .welcome-panels .welcome-sr, #wl-es:checked ~ .welcome-panels .welcome-es, #wl-en:checked ~ .welcome-panels .welcome-en { display: grid; }
.welcome-text .h2 { margin-bottom: 10px; }
.welcome-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.welcome-photo { position: relative; }
.welcome-photo img.rounded { aspect-ratio: 4 / 3; object-fit: cover; }
.sticker { position: absolute; right: -6px; top: -16px; }
.sticker img { width: clamp(64px, 17vw, 104px); filter: drop-shadow(0 8px 12px rgba(12, 64, 118, .3)); transform: rotate(8deg); }
.sticker--pair { display: flex; align-items: flex-end; }
.sticker--pair img { width: clamp(52px, 14vw, 86px); }
.sticker--pair picture + picture { margin-left: -14px; }
.sticker--pair picture:first-child img { transform: rotate(-9deg); }
.sticker--pair picture:last-child img { transform: translateY(-6px) rotate(9deg); }
.tab-labels .pair img { width: 19px; }
@media (min-width: 900px) {
  .welcome { padding-top: 40px; }
  .tab-labels { display: none; }
  .welcome-panels { display: grid; gap: 72px; }
  .welcome-block { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
  .welcome-block .welcome-photo { order: 2; }
  .welcome-block:nth-child(even) .welcome-photo { order: 0; }
  .welcome-block:nth-child(even) .sticker { right: auto; left: -16px; }
  .welcome-block:nth-child(even) .sticker img { transform: rotate(-8deg); }
  .welcome-block:nth-child(even) .sticker--pair img { transform: none; }
}
.rounded { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-soft); }

/* ---------- Learn Serbian ---------- */
.learn-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .learn-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: 56px; } }
.badge { display: inline-block; margin-bottom: 12px; padding: 6px 14px; border-radius: 999px; background: var(--red); color: #fff; font: 800 .86rem/1 var(--font-head); }
.learn-sub { margin-top: 8px; font: 700 1.12rem/1.4 var(--font-head); color: var(--ocean); }
.learn-copy .prose { margin-top: 16px; }

.lab { padding: 16px; border-radius: 26px; background: #fff; box-shadow: var(--shadow); }
@media (min-width: 900px) { .lab { padding: 24px; } }
.lab-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; }
.lab-title { font: 800 1.05rem/1.3 var(--font-head); color: var(--deep); }
.lab-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; width: 100%; padding: 4px; border-radius: 999px; background: var(--sky); }
@media (min-width: 520px) { .lab-tabs { width: auto; } }
.lab-tabs [role="tab"] { min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font: 700 .9rem/1 var(--font-head); white-space: nowrap; }
.lab-tabs [role="tab"]:hover { color: var(--deep); }
.lab-tabs [aria-selected="true"] { background: #fff; color: var(--red); box-shadow: 0 3px 10px -5px rgba(12, 64, 118, .45); }
.no-js .lab-tabs, .no-js .namecard-actions { display: none; }
.lab-panel { margin-top: 14px; }
.name-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.field label { display: block; margin-bottom: 4px; font: 700 .82rem/1.2 var(--font-head); color: var(--muted); }
.lab-input { width: 100%; min-height: 48px; padding: 8px 12px; border: 2px solid var(--line); border-radius: 14px; background: var(--sky); color: var(--ink); font: 700 1.02rem/1.2 var(--font-text); }
.lab-input::placeholder, .lab-pad::placeholder { color: #7f8ea6; font-weight: 600; }
.lab-input:focus-visible, .lab-pad:focus-visible { border-color: var(--ocean); outline: 3px solid rgba(7, 104, 169, .25); outline-offset: 2px; }
.mode { margin: 10px 0 0; padding: 0; border: 0; }
.mode legend { margin-bottom: 5px; padding: 0; font-size: .84rem; font-weight: 800; color: var(--muted); }
.mode-pills { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--sky); }
.mode-pills label { display: inline-flex; align-items: center; min-height: 36px; padding: 0 13px; border-radius: 999px; color: var(--muted); cursor: pointer; font: 700 .86rem/1 var(--font-head); }
.mode-pills input:checked + label { background: #fff; color: var(--deep); box-shadow: 0 3px 10px -5px rgba(12, 64, 118, .45); }
.mode-pills input:focus-visible + label { outline: 3px solid var(--sun); outline-offset: 2px; }
.lab-label { display: block; margin-top: 12px; font-size: .86rem; font-weight: 800; color: var(--muted); }
.tiles { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 14px; min-height: 62px; margin-top: 8px; }
.tile-word { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.tile { --t: clamp(30px, 8.4vw, 40px); display: grid; justify-items: center; gap: 4px; width: var(--t); }
.tile-face { display: grid; place-items: center; width: var(--t); height: var(--t); border-radius: 10px; background: var(--red); color: #fff; font: 800 calc(var(--t) * .52)/1 var(--font-head); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15); }
.tile--c1 .tile-face { background: var(--deep); }
.tile--c2 .tile-face { background: var(--sun); color: var(--ink); }
.tile--c3 .tile-face { background: var(--ocean); }
.tile-lat { font: 800 .7rem/1 var(--font-text); color: var(--muted); }
.tile--dash { width: 10px; align-self: center; font-weight: 800; color: var(--muted); }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: no-preference) { .tile.is-new .tile-face { animation: pop .38s cubic-bezier(.2, .9, .3, 1.3) both; animation-delay: var(--d, 0ms); } }
.namecard-out { margin-top: 8px; min-height: 1.6em; font-weight: 700; font-size: .96rem; }
.namecard-out [lang="sr-Latn"] { color: var(--red); }
.hints { display: grid; gap: 6px; margin-top: 8px; font-size: .9rem; color: var(--muted); }
.hints:empty { display: none; }
.hint-letter { display: inline-grid; place-items: center; min-width: 1.9em; height: 1.9em; margin-right: 6px; border-radius: 8px; background: var(--sky); color: var(--deep); font: 800 .95rem/1 var(--font-head); }
.namecard-actions, .pad-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; font-size: .86rem; color: var(--muted); }
.chips button { min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: 700 .86rem/1 var(--font-text); cursor: pointer; }
.chips button:hover { border-color: var(--ocean); color: var(--ocean); }
.lab-help { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.lab-pad { display: block; width: 100%; min-height: 92px; margin-top: 6px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 16px; background: var(--sky); color: var(--deep); font: 800 1.3rem/1.35 var(--font-head); resize: vertical; }
.pad-latin { margin-top: 6px; min-height: 1.5em; color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.pad-latin [data-pad-latin] { color: var(--red); font-weight: 700; }
.hint-toggle { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; color: var(--muted); cursor: pointer; font-size: .86rem; font-weight: 700; }
.hint-toggle input { width: 18px; height: 18px; margin: 0; accent-color: var(--ocean); }
.kbd { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; margin-top: 10px; padding: 7px; border-radius: 18px; background: var(--deep); }
.kbd:empty { display: none; }
@media (min-width: 560px) { .kbd { grid-template-columns: repeat(10, minmax(0, 1fr)); } }
.key { display: grid; place-items: center; align-content: center; gap: 2px; min-width: 0; min-height: 44px; padding: 3px 0; border: 0; border-radius: 10px; background: #fff; color: var(--ink); cursor: pointer; font: 800 1.12rem/1 var(--font-head); box-shadow: inset 0 -3px 0 rgba(12, 64, 118, .2); touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.key:hover { background: #fff8db; }
.key:active { transform: translateY(1px); background: var(--sun); }
.key-l { display: none; font: 700 .62rem/1 var(--font-text); color: var(--muted); }
.kbd--hints .key-l { display: block; }
.key--fn { background: var(--sky); color: var(--deep); font-size: 1.05rem; }
.key--back { grid-column: span 2; order: 1; }
.key--shift { grid-column: span 2; order: 2; }
.key--space { grid-column: span 6; order: 3; font: 700 .84rem/1 var(--font-head); }
@media (min-width: 560px) { .key--shift { order: 1; } .key--space { order: 2; } .key--back { order: 3; } }
.kbd.is-shift .key--shift { background: var(--sun); color: var(--ink); }
.quiz-title { font: 800 1rem/1.35 var(--font-head); color: var(--deep); }
.quiz-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.quiz-progress { font: 700 .86rem/1 var(--font-head); color: var(--muted); }
.quiz-stage { margin-top: 12px; padding: 16px; border-radius: 20px; background: var(--sun-soft); text-align: center; }
.quiz-q { font-weight: 700; color: var(--muted); font-size: .92rem; }
.quiz-word { margin-top: 6px; font: 800 clamp(2rem, 9vw, 2.7rem)/1.1 var(--font-head); color: var(--deep); letter-spacing: .02em; overflow-wrap: anywhere; }
.quiz-word--lat { color: var(--red); }
.quiz-mean { margin-top: 2px; color: var(--muted); font-style: italic; }
.quiz-opts { display: grid; gap: 8px; margin-top: 14px; }
@media (min-width: 420px) { .quiz-opts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.quiz-opt { min-height: 48px; padding: 6px 8px; border: 2px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); cursor: pointer; font: 700 1.08rem/1.1 var(--font-text); overflow-wrap: anywhere; }
.quiz-opt:hover:not(:disabled) { border-color: var(--ocean); color: var(--ocean); }
.quiz-opt:disabled { cursor: default; }
.quiz-opt.is-right { border-color: #2e9d57; background: #e7f7ec; color: #17663a; }
.quiz-opt.is-wrong { border-color: var(--red); background: #fdeced; color: var(--red-dark); }
.quiz-fb { margin-top: 12px; }
.quiz-fb:empty { display: none; }
.quiz-fb p { margin-bottom: 10px; }
.quiz-fb.is-right strong { color: #17663a; }
.quiz-fb.is-wrong strong { color: var(--red-dark); }
.quiz-answer { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; min-height: 58px; margin-top: 12px; padding: 8px 12px; border: 2px dashed var(--ocean); border-radius: 16px; background: #fff; color: var(--deep); font: 800 1.6rem/1.15 var(--font-head); overflow-wrap: anywhere; }
.quiz-ph { color: #7f8ea6; font: 700 .9rem/1.3 var(--font-text); }
.quiz-caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; background: var(--red); }
@media (prefers-reduced-motion: no-preference) { .quiz-caret { animation: blink 1s steps(1) infinite; } @keyframes blink { 50% { opacity: 0; } } }
.quiz-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.quiz-done { padding: 14px 0 4px; }
.quiz-score { font: 800 1.45rem/1.2 var(--font-head); color: var(--deep); }
.quiz-msg { margin-top: 6px; font-weight: 800; color: var(--red); }
.quiz-kbd { margin-top: 6px; }
.lab-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 2px dashed var(--line); }
.lab-foot p { font: 700 .94rem/1.35 var(--font-head); color: var(--deep); }
@media (max-width: 599.98px) { .lab-foot .btn { width: 100%; } }

.facts { margin-top: 36px; }
.facts ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
@media (min-width: 1100px) { .facts ul { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.facts li { display: grid; align-content: start; gap: 4px; padding: 14px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-soft); }
@media (min-width: 900px) { .facts li { padding: 18px 20px; } }
.facts strong { font: 700 .98rem/1.3 var(--font-head); color: var(--deep); }
.facts span { color: var(--muted); font-size: .93rem; line-height: 1.45; }

.kids-friends { display: grid; gap: 14px; margin-top: 36px; }
@media (min-width: 800px) { .kids-friends { grid-template-columns: 1fr 1fr; } }
.kf-card { display: grid; gap: 10px; justify-items: start; padding: 20px; border-radius: 22px; background: #fff; box-shadow: var(--shadow-soft); }
.kf-card p { color: var(--muted); }
@media (max-width: 599.98px) { .kf-card .btn { width: 100%; } }

.signup { margin-top: 36px; padding: 22px; border-radius: 26px; background: #fff; box-shadow: var(--shadow); scroll-margin-top: calc(var(--header-h) + 16px); }
@media (min-width: 900px) { .signup { margin-top: 56px; padding: 34px 40px; } }
.signup-grid { display: grid; gap: 16px; align-items: center; }
@media (min-width: 900px) { .signup-grid { grid-template-columns: auto minmax(0, 1fr) auto; gap: 30px; } }
.signup-hearts { display: flex; }
.signup-hearts img { width: 68px; filter: drop-shadow(0 6px 10px rgba(12, 64, 118, .25)); }
.signup-hearts picture + picture { margin-left: -12px; transform: rotate(8deg); }
.signup-hearts picture:first-child { transform: rotate(-8deg); }
.signup p { margin-top: 6px; color: var(--muted); }
.signup .fine { font-size: .88rem; }
@media (max-width: 599.98px) { .signup-open .btn { width: 100%; } }
.signup-slot { margin-top: 22px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.signup-slot iframe { display: block; width: 100%; height: min(78vh, 640px); border: 0; }
.signup.has-form .signup-open { display: none; }

/* ---------- Projects and activities ---------- */
.posts { position: relative; }
.post-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 14px; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain; scrollbar-width: none; }
.post-grid::-webkit-scrollbar { display: none; }
.post-grid > li { display: flex; scroll-snap-align: start; }
.posts-swipe { display: flex; align-items: center; justify-content: flex-end; gap: 6px; font: 700 .8rem/1 var(--font-head); color: var(--muted); }
.posts-swipe svg { width: 16px; height: 16px; }
.posts.is-few .posts-swipe { display: none; }
.posts-more { display: none; margin-top: 24px; text-align: center; }
@media (min-width: 700px) {
  .post-grid { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-inline: 0; padding: 0; overflow: visible; }
  .post-grid > li:nth-child(n+9) { display: none; }
  .posts.is-all .post-grid > li { display: flex; }
  .posts-swipe { display: none; }
  .posts-more { display: block; }
}
@media (min-width: 1100px) { .post-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.post-card { display: flex; flex-direction: column; width: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow-soft); transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-link { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
.post-link:focus-visible { outline-offset: -3px; border-radius: 22px; }
.post-cover { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sky); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-cover img { transform: scale(1.04); }
.post-cover-empty { display: grid; place-items: center; height: 100%; background: linear-gradient(160deg, var(--ocean), var(--deep)); color: #fff; font: 900 4rem/1 var(--font-head); }
.post-type, .post-soon { display: inline-block; padding: 6px 11px; border-radius: 999px; font: 800 .72rem/1 var(--font-head); letter-spacing: .03em; text-transform: uppercase; }
.post-type { background: rgba(255, 255, 255, .95); color: var(--deep); }
.post-soon { background: var(--sun); color: var(--ink); }
.post-cover .post-type { position: absolute; left: 10px; top: 10px; }
.post-cover .post-soon { position: absolute; right: 10px; top: 10px; }
.post-card--proyecto .post-type { background: var(--red); color: #fff; }
.post-card--evento .post-type { background: var(--deep); color: #fff; }
.post-body { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 14px 16px 16px; }
.post-date { font: 700 .8rem/1.2 var(--font-head); color: var(--ocean); }
.post-title { font: 800 1.05rem/1.3 var(--font-head); color: var(--ink); text-wrap: balance; }
.post-excerpt { color: var(--muted); font-size: .93rem; line-height: 1.5; }
.post-place { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .86rem; font-weight: 700; line-height: 1.3; }
.post-body .post-place { margin-top: auto; padding-top: 4px; }
.post-place svg { width: 16px; height: 16px; flex: none; color: var(--red); }
.post-badges { display: flex; gap: 12px; color: var(--muted); font: 700 .8rem/1 var(--font-head); }
.post-badges li { display: inline-flex; align-items: center; gap: 4px; }
.post-badges svg { width: 15px; height: 15px; }
.loc-flag { display: inline-block; flex: none; width: 21px; height: 14px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(20, 36, 61, .14); vertical-align: -2px; }
.ig-cta { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px 16px; margin-top: 30px; padding: 18px; border-radius: 24px; background: var(--sky); }
@media (min-width: 760px) { .ig-cta { grid-template-columns: auto minmax(0, 1fr) auto; margin-top: 46px; padding: 22px 28px; } }
.ig-cta-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--red); color: #fff; }
.ig-cta-icon svg { width: 28px; height: 28px; }
.ig-cta-text p { margin-top: 3px; color: var(--muted); font-size: .94rem; }
.ig-cta-text a { color: var(--deep); font-weight: 700; }
.ig-cta > .btn { grid-column: 1 / -1; }
@media (min-width: 760px) { .ig-cta > .btn { grid-column: auto; } }

/* post shown in a dialog (home page) or on its own page (/p/…) */
html.has-dialog { overflow: hidden; }
.post-dialog { width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: #fff; color: var(--ink); overflow-y: auto; overscroll-behavior: contain; }
@media (min-width: 700px) { .post-dialog { width: min(860px, calc(100% - 48px)); height: auto; max-height: calc(100dvh - 48px); margin: auto; border-radius: 26px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6); } }
.post-dialog::backdrop { background: rgba(10, 28, 52, .62); }
.dlg-bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: flex-end; height: 0; padding: 0 10px; overflow: visible; }
.dlg-close { display: grid; place-items: center; width: 46px; height: 46px; margin-top: 10px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--ink); box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .45); cursor: pointer; }
.dlg-close svg { width: 22px; height: 22px; }
.dlg-close:hover { color: var(--red); }
.dlg-body { padding: 18px var(--gutter) 30px; }
@media (min-width: 700px) { .dlg-body { padding: 26px 36px 34px; } }
.post-full { max-width: 760px; margin-inline: auto; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-right: 54px; font: 700 .86rem/1.2 var(--font-head); color: var(--ocean); }
.post-meta .post-type { background: var(--sky); }
.post-h { margin-top: 10px; font: 800 clamp(1.5rem, 1.1rem + 2vw, 2.2rem)/1.15 var(--font-head); letter-spacing: -.01em; color: var(--deep); text-wrap: balance; }
.post-head .post-place { margin-top: 10px; }
.post-gallery { display: grid; gap: 6px; margin-top: 18px; overflow: hidden; border-radius: 18px; }
.post-gallery--2, .post-gallery--3, .post-gallery--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.post-gallery.is-odd .g-item:first-child { grid-column: 1 / -1; }
.g-item { position: relative; display: block; overflow: hidden; background: var(--sky); }
.g-item img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s ease; }
.g-item:hover img { transform: scale(1.03); }
.post-gallery--1 .g-item img { aspect-ratio: auto; max-height: 72vh; object-fit: contain; }
.post-text { margin-top: 18px; max-width: none; }
.post-text a { overflow-wrap: anywhere; }
.post-videos { display: grid; gap: 12px; margin-top: 20px; }
.post-video { width: 100%; max-height: 72vh; border-radius: 16px; background: #000; }
.yt { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 16px; background: #000; }
.yt-play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.yt-play img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.yt-icon { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 72px; height: 50px; margin: -25px 0 0 -36px; border-radius: 14px; background: var(--red); color: #fff; }
.yt-icon svg { width: 28px; height: 28px; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.post-docs { margin-top: 22px; }
.post-docs ul { display: grid; gap: 8px; margin-top: 10px; }
.post-docs a { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--sky); color: var(--ink); font-weight: 700; text-decoration: none; }
.post-docs a:hover { border-color: var(--ocean); }
.post-docs svg { width: 22px; height: 22px; flex: none; color: var(--ocean); }
.doc-name { flex: 1; overflow-wrap: anywhere; }
.doc-size { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.post-share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; padding-top: 18px; border-top: 2px dashed var(--line); }
.lightbox { width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: rgba(6, 16, 30, .97); color: #fff; overflow: hidden; }
.lightbox::backdrop { background: rgba(6, 16, 30, .9); }
.lb-figure { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 64px 8px 48px; }
.lb-figure img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 6px; }
.lb-count { position: absolute; left: 0; right: 0; bottom: 16px; color: rgba(255, 255, 255, .85); font: 700 .9rem/1 var(--font-head); text-align: center; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, .3); }
.lb-btn svg { width: 24px; height: 24px; }
.lb-close { right: 10px; top: 10px; }
.lb-prev, .lb-next { top: 50%; margin-top: -24px; }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
.post-page { padding-block: 18px 56px; }
.post-wrap { max-width: 860px; }
.post-back a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 8px; color: var(--ocean); font: 700 .95rem/1 var(--font-head); text-decoration: none; }
.post-back svg { width: 20px; height: 20px; }
.post-page .post-meta { padding-right: 0; }
.post-cta { display: grid; gap: 14px; margin-top: 40px; padding: 22px; border-radius: 24px; background: linear-gradient(165deg, var(--ocean), var(--deep)); color: #fff; }
@media (min-width: 760px) { .post-cta { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; padding: 26px 30px; } }
.post-cta .h3 { color: #fff; }
.post-cta p { color: rgba(255, 255, 255, .9); }
.post-cta-hearts { display: flex; }
.post-cta-hearts img { width: 56px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .3)); }
.post-cta-hearts picture + picture { margin-left: -10px; transform: rotate(8deg); }
.post-cta-hearts picture:first-child { transform: rotate(-8deg); }
.post-cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 599.98px) { .post-cta-btns .btn { width: 100%; } }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1000px) { .about-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 56px; } }
.about-text .h2 { margin-bottom: 14px; }
.more-body { display: none; margin-top: 1em; }
.more-toggle:checked ~ .more-body { display: block; }
.more-btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: #fff; color: var(--ocean); cursor: pointer; font: 700 .95rem/1 var(--font-head); box-shadow: var(--shadow-soft); }
.more-btn::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.more-close { display: none; }
.more-toggle:checked ~ .more-btn .more-open { display: none; }
.more-toggle:checked ~ .more-btn .more-close { display: inline; }
.more-toggle:checked ~ .more-btn::after { transform: translateY(2px) rotate(-135deg); }
.more-toggle:focus-visible ~ .more-btn { outline: 3px solid var(--sun); outline-offset: 2px; }
@media (min-width: 900px) { .more-body { display: block; } .more-btn { display: none; } }
.emoji-list { display: grid; gap: 8px; margin: 16px 0; }
.emoji-list li { display: grid; grid-template-columns: 2em 1fr; align-items: start; padding: 11px 14px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-soft); line-height: 1.5; }
.emoji { font-size: 1.2em; line-height: 1.3; }
.closing { margin-top: 22px !important; padding: 18px 20px; border-radius: 18px; background: #fff; border-left: 6px solid var(--red); font: 700 1.08rem/1.5 var(--font-head); color: var(--deep); }
.team-card { padding: 14px 14px 22px; border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
@media (min-width: 1000px) { .team-card { position: sticky; top: calc(var(--header-h) + 20px); padding: 18px 18px 26px; } }
.team-photo img { aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 42%; }
.avatars { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; margin: -34px 10px 0; }
@media (min-width: 520px) { .avatars { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin: -30px 8px 0; } }
.av { display: grid; justify-items: center; align-content: start; gap: 5px; text-align: center; }
.av picture { width: 100%; max-width: 84px; }
.av img { width: 100%; aspect-ratio: 1; border: 3px solid #fff; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--red), 0 10px 18px -10px rgba(12, 64, 118, .7); }
.av--1 img { box-shadow: 0 0 0 3px var(--ocean), 0 10px 18px -10px rgba(12, 64, 118, .7); }
.av--2 img { box-shadow: 0 0 0 3px var(--sun), 0 10px 18px -10px rgba(12, 64, 118, .7); }
.av--3 img { box-shadow: 0 0 0 3px var(--deep), 0 10px 18px -10px rgba(12, 64, 118, .7); }
.av-name { font: 700 .72rem/1.15 var(--font-head); color: var(--deep); overflow-wrap: anywhere; }
.av-name:empty { display: none; }
.team-card .h3 { margin: 16px 4px 0; }
.team-card p { margin: 8px 4px 0; font-size: .97rem; }
.team-card .board { color: var(--muted); font-size: .88rem; }

/* ---------- Ways to help ---------- */
.ways { display: grid; gap: 12px; }
@media (min-width: 700px) { .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } .way--socio { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .ways { grid-template-columns: repeat(4, minmax(0, 1fr)); } .way--socio { grid-column: span 2; } }
.way { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: start; gap: 6px 14px; padding: 16px; border-top: 5px solid var(--red); border-radius: 22px; background: var(--sky); }
.way > * { grid-column: 2; }
.way > .way-icon { grid-column: 1; grid-row: 1 / span 2; }
@media (min-width: 700px) { .way { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px; } }
@media (min-width: 900px) { .way { padding: 22px; } }
.way--c1 { border-top-color: var(--ocean); }
.way--c2 { border-top-color: var(--sun); }
.way--c3 { border-top-color: var(--deep); }
.way-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: #fff; color: var(--red); box-shadow: var(--shadow-soft); }
@media (min-width: 700px) { .way-icon { width: 46px; height: 46px; border-radius: 14px; } }
.way-icon svg { width: 24px; height: 24px; }
.way--c1 .way-icon { color: var(--ocean); }
.way--c2 .way-icon { color: #b58a00; }
.way--c3 .way-icon { color: var(--deep); }
.way > p { color: var(--muted); font-size: .95rem; line-height: 1.5; }
.way > .way-place { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; }
.way-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.way .btn--soft { background: #fff; }
.way .btn--soft:hover { background: #fff; color: var(--red); }
@media (max-width: 699.98px) { .way .h3 { display: flex; align-items: center; align-self: center; min-height: 42px; } }
.kinds-box { width: 100%; }
.kinds-box summary { display: flex; align-items: center; gap: 8px; min-height: 40px; color: var(--ocean); cursor: pointer; font: 700 .95rem/1.3 var(--font-head); }
.kinds { display: grid; gap: 10px; margin: 8px 0 4px; }
.kinds li { position: relative; padding-left: 28px; color: var(--muted); font-size: .95rem; }
.kinds li::before { content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 18px; background: url("/assets/img/corazon-rs-s.png") center / contain no-repeat; }
.kinds li:nth-child(even)::before { background-image: url("/assets/img/corazon-es-s.png"); }
.kinds strong { color: var(--ink); }
.oid { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.oid span { font-weight: 800; color: var(--muted); font-size: .9rem; }
.oid strong { font: 800 clamp(1.2rem, 1.1rem + .8vw, 1.5rem)/1 var(--font-head); letter-spacing: .03em; color: var(--deep); }

/* ---------- Support (ocean) ---------- */
.support-inner { max-width: 44rem; text-align: center; }
.support .h2 { color: #fff; }
.support-hearts { display: flex; justify-content: center; margin-bottom: 14px; }
.support-hearts img { width: clamp(70px, 18vw, 96px); filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .3)); }
.support-hearts picture + picture { margin-left: -12px; }
.support-hearts picture:nth-child(1) { transform: rotate(-10deg); }
.support-hearts picture:nth-child(2) { transform: translateY(-8px); }
.support-hearts picture:nth-child(3) { transform: rotate(10deg); }
.support-inner > p { margin-top: 12px; color: rgba(255, 255, 255, .92); }
.support-tagline { font: 800 clamp(1.15rem, 1rem + .9vw, 1.55rem)/1.35 var(--font-head); color: var(--sun) !important; }
.bank { margin: 22px auto 0; max-width: 34rem; padding: 20px; border-radius: 22px; background: #fff; color: var(--ink); box-shadow: 0 20px 40px -22px rgba(0, 0, 0, .6); text-align: left; }
@media (min-width: 900px) { .bank { padding: 26px 28px; } }
.bank dl { display: grid; gap: 10px; margin-top: 12px; }
.bank dl > div { display: grid; gap: 2px; }
.bank dt { font-size: .84rem; font-weight: 800; color: var(--muted); }
.bank dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.bank-iban dd { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.iban { font: 800 clamp(1rem, .9rem + .6vw, 1.25rem)/1.3 var(--font-head); letter-spacing: .02em; color: var(--deep); }
.donate-more { max-width: 34rem; margin: 18px auto 0; padding: 18px 20px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 22px; background: rgba(255, 255, 255, .1); }
.donate-more .h3 { color: #fff; }
.donate-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }
@media (max-width: 599.98px) { .donate-btns .btn { width: 100%; } }
.bizum { width: 100%; padding: 12px 14px; border-radius: 16px; background: #fff; color: var(--ink); text-align: left; }
.bizum-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.bizum-label { font-weight: 800; color: var(--muted); }
.bizum-code { font: 800 1.3rem/1 var(--font-head); letter-spacing: .06em; color: var(--deep); }
.bizum-help { margin-top: 6px; color: var(--muted); font-size: .86rem; }
.support-more { margin-top: 18px !important; }
.support-more + .support-more { margin-top: 8px !important; }
.support-more a { color: #fff; font-weight: 800; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; } }
.contact .lead { margin-top: 8px; }
.contact-list { display: grid; gap: 12px; margin-top: 22px; }
.contact-list li { display: flex; gap: 12px; align-items: center; font-weight: 700; }
.contact-list svg { flex: none; width: 42px; height: 42px; padding: 10px; border-radius: 50%; background: var(--sky); color: var(--ocean); }
.contact-list a { color: var(--ink); overflow-wrap: anywhere; }
.contact-flag { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--sky); }
.contact-flag .loc-flag { width: 24px; height: 16px; }
.contact-form { display: grid; gap: 6px; padding: 20px; border-radius: 24px; background: var(--sky); }
@media (min-width: 900px) { .contact-form { padding: 30px; } }
.contact-form label { margin-top: 8px; font: 700 .93rem/1.3 var(--font-head); }
.contact-form label em { font-style: normal; color: var(--ocean); }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); font: 600 1rem/1.4 var(--font-text); }
.contact-form input:focus-visible, .contact-form textarea:focus-visible { border-color: var(--ocean); outline: 3px solid rgba(7, 104, 169, .25); outline-offset: 1px; }
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form .btn { justify-self: start; margin-top: 12px; }
.contact-form .btn em { font-style: normal; }
@media (max-width: 599.98px) { .contact-form .btn { justify-self: stretch; } }
.contact-form .fine { font-size: .86rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { margin-top: var(--wave-h); background: var(--deep); color: #dce7f5; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: calc(-1 * var(--wave-h) + 1px); height: var(--wave-h);
  background: var(--deep); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 34C160 6 320 6 480 26s320 34 480 18 320-38 480-24V60H0z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 34C160 6 320 6 480 26s320 34 480 18 320-38 480-24V60H0z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.site-footer a { color: #fff; }
.footer-flags ul { display: flex; justify-content: center; gap: clamp(14px, 5vw, 40px); padding-top: 26px; }
.footer-flags li { display: grid; justify-items: center; gap: 8px; font: 700 .85rem/1.2 var(--font-head); color: #fff; text-align: center; }
.footer-flags img { width: clamp(64px, 18vw, 96px); border-radius: 8px; box-shadow: 0 8px 16px -8px rgba(0, 0, 0, .5); }
.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; padding-block: 34px 26px; }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr 1.3fr; gap: 40px; padding-block: 46px 32px; } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 1000px) { .footer-brand { grid-column: auto; } }
.footer-logo { width: 150px; padding: 12px; border-radius: 20px; background: #fff; }
.footer-h { margin-bottom: 10px; font: 700 .98rem/1.3 var(--font-head); color: var(--sun); }
.footer-list { display: grid; gap: 7px; font-size: .97rem; }
.footer-list a { text-decoration: none; }
.footer-list a:hover { text-decoration: underline; }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
@media (min-width: 1000px) { .footer-brand { display: block; } }
.footer-ig { margin: 0; }
@media (min-width: 1000px) { .footer-ig { margin-top: 16px; } }
.footer-ig a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.footer-ig svg { width: 22px; height: 22px; flex: none; }
.footer-legal { grid-column: 1 / -1; font-size: .93rem; }
@media (min-width: 1000px) { .footer-legal { grid-column: auto; } }
.footer-legal p + p { margin-top: 5px; }
.footer-place { display: flex; align-items: center; gap: 8px; }
.footer-place .loc-flag { box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); }
.footer-bottom { padding-block: 16px 28px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: .88rem; color: #b6c8de; }
@media (max-width: 899.98px) { .site-footer { padding-bottom: calc(84px + env(safe-area-inset-bottom)); } body.simple .site-footer { padding-bottom: 0; } }

/* ---------- Bottom navigation (phones) ---------- */
.bottom-nav { position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 45;
  border-radius: 24px; background: rgba(255, 255, 255, .98); box-shadow: 0 14px 34px -12px rgba(12, 64, 118, .55), 0 0 0 1px var(--line);
  transform: translateY(140%); visibility: hidden; transition: transform .28s ease, visibility 0s linear .28s; }
.bottom-nav.is-shown { transform: none; visibility: visible; transition: transform .28s ease, visibility 0s; }
.bottom-nav ul { display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; padding: 4px 2px 6px; }
.bn-link { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; min-height: 54px; color: var(--deep); font: 700 .68rem/1.1 var(--font-head); text-decoration: none; text-align: center; }
.bn-link svg { width: 23px; height: 23px; }
.bn-main .bn-link { color: var(--ink); }
.bn-main svg { width: 52px; height: 52px; margin-top: -24px; padding: 13px; border-radius: 50%; background: var(--sun); box-shadow: 0 8px 16px -8px rgba(0, 0, 0, .45), 0 0 0 4px #fff; }
@media (min-width: 900px) { .bottom-nav { display: none; } }
@media (prefers-reduced-motion: reduce) { .bottom-nav { transition: none; } }

/* ---------- Language hint ---------- */
.lang-hint { position: fixed; z-index: 60; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 10px; width: min(560px, calc(100% - 24px)); padding: 10px 10px 10px 18px; border-radius: 18px; background: var(--ink); color: #fff; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .45); font-size: .95rem; }
.lang-hint p { flex: 1; }
.lang-hint a { color: var(--sun); font-weight: 800; }
.lang-hint-close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.has-sticky .lang-hint { bottom: calc(94px + env(safe-area-inset-bottom)); }

/* ---------- Legal + 404 ---------- */
.page-simple { padding-block: 40px 64px; }
.center-actions { justify-content: center; }
.center-h { text-align: center; }
.legal h2 { font: 700 1.25rem/1.3 var(--font-head); margin-top: 2em; color: var(--deep); }
.legal h3 { font: 700 1.04rem/1.3 var(--font-head); margin-top: 1.4em; }
.legal p, .legal ul { margin-top: .8em; max-width: 44em; }
.legal ul { list-style: disc; padding-left: 1.2em; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin-top: 1em; }
.legal dt { font-weight: 800; }
.legal dd { margin: 0; }
@media (max-width: 559.98px) { .legal dl { grid-template-columns: 1fr; } .legal dd { margin-bottom: 8px; } }
body.simple .site-footer { margin-top: 0; }
body.simple .site-footer::before { display: none; }

@media print { .site-header, .bottom-nav, .lang-hint, .lab, .wave, dialog { display: none !important; } .hero, .section--ocean { background: none !important; color: #000 !important; } }

/* v5: contact form (own endpoint) */
.contact-form .req { color: var(--red); }
.contact-form select { width: 100%; min-height: 48px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; background: #fff; font: 600 1rem/1.4 var(--font-text); color: var(--ink); }
.cf-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-weight: 600; line-height: 1.45; cursor: pointer; }
.cf-consent input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--red); }
.cf-turnstile { margin-top: 14px; min-height: 65px; }
.form-status { margin-top: 12px; padding: 10px 14px; border-radius: 12px; font-weight: 700; }
.form-status.is-ok { background: #e7f6ec; color: #17663a; }
.form-status.is-bad { background: #fdeced; color: var(--red-dark); }

.hp-field{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
.nav-aula{margin-left:6px}
.aula-box{margin-top:22px;background:#fff;border-radius:24px;padding:20px;box-shadow:0 18px 40px -24px rgba(12,64,118,.45);border:2px solid rgba(12,64,118,.08);color:var(--ink)}
.aula-box h3{margin:0 0 4px;font-size:1.35rem;color:var(--deep)}.aula-box .aula-sub{margin:0 0 14px}
.aula-roles{display:grid;gap:10px}
.aula-role{display:flex;align-items:center;gap:12px;padding:14px 16px;border-radius:18px;text-decoration:none;color:var(--ink);background:#eaf4fd;border:2px solid transparent;font-weight:800;line-height:1.25;transition:transform .15s,border-color .15s}
.aula-role:hover,.aula-role:focus-visible{transform:translateY(-2px);border-color:var(--ocean)}
.aula-role .ic{font-size:1.6rem;flex:none}.aula-role small{display:block;font-weight:600;opacity:.8;font-size:.86rem;margin-top:2px}.aula-role .go{margin-left:auto;font-size:1.25rem;flex:none}
.aula-role.learn{background:var(--sun)}.aula-role.teach{background:var(--deep);color:#fff}
.aula-note{margin:12px 0 0;font-size:.92rem;opacity:.85}
.team-link{color:inherit;opacity:.55;font-size:.85rem;text-decoration:none}.team-link:hover{opacity:1}
@media (max-width: 1099.98px){.nav-aula{width:100%;margin:10px 0 0;min-height:50px}}
