:root {
  /* Cuenca Viva palette, toned down from the Instagram posts */
  --ink: #2f3238;
  --muted: #5d636b;
  --paper: #fcfaf6;
  --card: #ffffff;
  --plum: #8c4155;
  --plum-dark: #6f3343;
  --orange: #e8820c;
  --orange-dark: #c96f06;
  --yellow: #f6b81a;
  --teal: #4fa89c;
  --sky: #aecfdb;
  --plum-soft: #f6eaee;
  --orange-soft: #fdeedd;
  --yellow-soft: #fdf3d4;
  --teal-soft: #e2f2ef;
  --sand: #f4eee4;
  --line: #e6dfd3;
  --radius: 14px;
  --max: 1120px;
  /* kept for older rules */
  --lake: var(--plum);
  --lake-dark: var(--plum-dark);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; }

a { color: var(--lake); }
a:hover { color: var(--lake-dark); }

img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }

/* ---------- Header and tabs ---------- */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

/* Logo, tabs and actions on one row */
.header-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "logo tabs actions";
  align-items: center;
  column-gap: 28px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.header-row .logo { grid-area: logo; }
.header-row .tabs { grid-area: tabs; min-width: 0; }
.header-row .header-actions { grid-area: actions; }

.logo { display: block; line-height: 0; }
.logo img { height: 60px; width: auto; }

.header-actions { display: flex; align-items: center; gap: 12px; }

.tabs-inner {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs-inner::-webkit-scrollbar { display: none; }

/* Hint that the tab row scrolls when it doesn't fit */
.tabs { position: relative; }
.tabs::before, .tabs::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 3px;
  width: 44px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  background-repeat: no-repeat;
  background-size: 9px 14px;
}
.tabs::after {
  right: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 14'%3E%3Cpath d='M2 1l6 6-6 6' fill='none' stroke='%238c4155' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), linear-gradient(to right, rgba(255,255,255,0), #fff 55%);
  background-position: right 4px center, 0 0;
  background-size: 9px 14px, 100% 100%;
}
.tabs::before {
  left: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 14'%3E%3Cpath d='M7 1L1 7l6 6' fill='none' stroke='%238c4155' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), linear-gradient(to left, rgba(255,255,255,0), #fff 55%);
  background-position: left 4px center, 0 0;
  background-size: 9px 14px, 100% 100%;
  z-index: 1;
}
.tabs.more-right::after, .tabs.more-left::before { opacity: 1; }

.tabs a {
  flex: none;
  padding: 10px 12px 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 600;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.tabs a:hover { color: var(--ink); }

.tabs a.active {
  color: var(--lake);
  border-bottom-color: var(--lake);
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--ink);
  text-decoration: none;
}

.lang:hover { border-color: var(--lake); color: var(--ink); }

.flag {
  width: 24px;
  height: 16px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
  display: block;
}

.lang .flag[viewBox="0 0 60 30"] { height: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  border-radius: 999px !important;
  background: var(--lake);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--lake);
}

.btn:hover { background: var(--lake-dark); border-color: var(--lake-dark); color: #fff; }

.btn-outline { background: transparent; color: var(--lake); }
.btn-outline:hover { background: var(--lake); color: #fff; }

.btn-accent, .header-actions .btn, .hero .btn:first-child { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-accent:hover, .header-actions .btn:hover, .hero .btn:first-child:hover { background: var(--orange-dark); border-color: var(--orange-dark); }

.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--sand); border-color: var(--sand); color: var(--ink); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  color: #fff;
  background-color: #2b3a3e;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Photo anchored to the top so the headline sits over the mountains */
.hero-top {
  align-items: flex-start;
  background-position: center top;
}

.hero-top::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(12, 30, 40, 0.72) 0%, rgba(12, 30, 40, 0.45) 45%, rgba(12, 30, 40, 0) 75%);
}

.hero-place {
  margin: 10px 0 0;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.hero .wrap { position: relative; width: 100%; padding-top: 44px; padding-bottom: 48px; }
.hero h1 {
  max-width: 1000px;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}
.hero .actions { margin-top: 18px; }

.hero .eyebrow {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  padding: 4px 12px;
  border-radius: 999px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.8em;
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.tight { padding-top: 40px; }
.alt { background: var(--sand); }
.lead { font-size: 1.15rem; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.section-head p { margin: 0; color: var(--muted); }

.page-head {
  background: var(--sand);
  padding: 56px 0 44px;
  border-bottom: 6px solid var(--plum);
}

/* Colour band with a photo that hangs below it */
.page-head.with-photo { position: relative; padding-bottom: 48px; }
.page-head.with-photo .page-head-inner { align-items: flex-start; }
.page-head.with-photo .page-head-text { flex: 1 1 50%; padding-top: 8px; }

.page-head-photo {
  flex: 0 0 46%;
  width: 46%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(30, 25, 27, 0.18);
  margin-bottom: -120px;
  position: relative;
  z-index: 2;
}

.page-head.with-photo + section { padding-top: 110px; }

.page-head-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.page-head-logo { width: 150px; height: auto; flex: none; }

.accent-plum { background: var(--plum-soft); border-bottom-color: var(--plum); }
.accent-plum h1 { color: var(--plum); }
.accent-orange { background: var(--orange-soft); border-bottom-color: var(--orange); }
.accent-orange h1 { color: var(--orange-dark); }
.accent-teal { background: var(--teal-soft); border-bottom-color: var(--teal); }
.accent-teal h1 { color: #2f7d72; }
.accent-yellow { background: var(--yellow-soft); border-bottom-color: var(--yellow); }
.accent-yellow h1 { color: #9a6a00; }

.page-head h1 { margin-bottom: 0.3em; }
.page-head .sub { color: var(--muted); font-size: 1.2rem; margin: 0; }

.detail-head { padding: 48px 0 24px; }
.detail-head .sub { color: var(--muted); font-size: 1.2rem; }

.back { display: inline-block; margin-bottom: 18px; font-size: 0.95rem; }

.page-image {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 36px;
}

.quote {
  font-family: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-size: 1.3rem;
  line-height: 1.4;
  border-left: 5px solid var(--orange);
  color: var(--plum);
  padding-left: 18px;
  margin-top: 1.6em;
}

.placeholder { color: var(--muted); font-style: italic; }
.muted { color: var(--muted); }
.caps-center { text-align: center; text-transform: uppercase; letter-spacing: 0.06em; }
.bol-top { margin-top: 0; }

/* ---------- Text with a round photo (Nosotros) ---------- */
.circle-wrap { max-width: 980px; }

.circle-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 40px;
  align-items: start;
}

.circle-photo {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  object-fit: cover;
  margin-top: 6px;
  box-shadow: 0 0 0 6px var(--card), 0 8px 22px rgba(30, 25, 27, 0.15);
}

.alt .circle-photo { box-shadow: 0 0 0 6px var(--sand), 0 8px 22px rgba(30, 25, 27, 0.15); }

/* ---------- Casa Escuela ---------- */
.dims {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.dim h3 { margin-top: 10px; }
.dim p { margin: 0; color: var(--muted); }

.dim-n {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--lake);
  color: #fff;
  font-weight: 600;
}

/* ---------- Newsletters ---------- */
.bol-list { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--line); }
.bol-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.bol-list a:hover { color: var(--lake); }
.bol-open { color: var(--lake); font-size: 0.95rem; white-space: nowrap; }

/* ---------- Home tiles ---------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.tile {
  grid-column: span 2;
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: var(--ink);
}

.tile:nth-child(-n+2) { grid-column: span 3; aspect-ratio: 16 / 9; }

.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 25, 28, 0.85), rgba(10, 25, 28, 0) 65%);
}

.tile-text {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tile-text strong::before {
  content: "";
  display: block;
  width: 36px;
  height: 6px;
  border-radius: 3px;
  margin-bottom: 8px;
  background: var(--chip, var(--orange));
}
.tile-plum { --chip: #d98aa3; }
.tile-orange { --chip: var(--orange); }
.tile-teal { --chip: #7fd3c5; }
.tile-yellow { --chip: var(--yellow); }

.tile-text strong { font-family: "Nunito Sans", "Segoe UI", Arial, sans-serif; font-size: 1.45rem; }
.tile-text span { font-size: 0.98rem; opacity: 0.92; }

.tile:hover img { transform: scale(1.04); }
.tile:hover { color: #fff; }

/* ---------- Home section blocks ---------- */
.blocks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.block {
  min-height: 170px;
  border-radius: var(--radius);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: #fff;
  font-family: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.1;
  transition: filter 0.2s, transform 0.2s;
}

.block:hover { color: #fff; filter: brightness(0.93); transform: translateY(-2px); }
.block-arrow { align-self: flex-end; font-size: 1.6rem; }

.block-plum { background: var(--plum); }
.block-orange { background: var(--orange); }
.block-teal { background: var(--teal); }
.block-yellow { background: var(--yellow); color: var(--ink); }
.block-yellow:hover { color: var(--ink); }
.block-coral { background: #c9694a; }

/* ---------- Program cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.cards-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
}

.card { border-top: 6px solid var(--band, var(--plum)); }
.card-plum { --band: var(--plum); }
.card-orange { --band: var(--orange); }
.card-yellow { --band: var(--yellow); }
.card-teal { --band: var(--teal); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cards-2 .card img { aspect-ratio: 16 / 9; }
.card .body { padding: 18px 20px 22px; flex: 1; }
.card img.contain, .page-image.contain { object-fit: contain; background: #fff; padding: 8px; }
.page-image.contain { max-height: 360px; border: 1px solid var(--line); }
.card .body p { color: var(--muted); margin: 0 0 0.8em; }
.card .more { color: var(--lake); font-weight: 600; }
.card:hover h3 { color: var(--lake); }

.feature-block {
  background: var(--orange-soft);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 32px;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  transition: opacity 0.2s;
}

.gallery a:hover img { opacity: 0.85; }

/* ---------- Partner logo carousel ---------- */
.marquee {
  overflow: hidden;
  margin-top: 24px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  animation: scroll-logos 50s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes scroll-logos {
  to { transform: translateX(calc(-50% - 10px)); }
}

/* Shows the partner's name until a logo file is added in images/logos/ */
.logo-tile {
  position: relative;
  width: 190px;
  height: 96px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px 10px;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.3;
  color: var(--muted);
}

.logo-tile::before { content: attr(data-n); }
.logo-tile:has(img)::before { content: none; }

.logo-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 8px 12px;
  object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track [aria-hidden="true"] { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}

/* ---------- People ---------- */
.people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 32px 24px;
  margin-top: 28px;
}

.person { text-align: center; }
.person h3 { margin: 14px 0 2px; font-size: 1.15rem; }
.person .role { color: var(--lake); font-weight: 600; margin: 0 0 8px; font-size: 0.95rem; }
.person-quote { color: var(--muted); font-style: italic; font-size: 0.98rem; }

/* Shows initials until a photo is added */
.avatar {
  position: relative;
  width: 168px;
  height: 168px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--lake);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-size: 2.6rem;
  overflow: hidden;
}

.avatar::before { content: attr(data-i); }

.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.people-sm .avatar { width: 128px; height: 128px; font-size: 2rem; }

/* ---------- Tables ---------- */
.board, .bank { width: 100%; border-collapse: collapse; }

.board th, .board td, .bank th, .bank td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.board thead th { color: var(--muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; }
.bank th { color: var(--muted); font-weight: 600; width: 40%; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat .num {
  font-family: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-weight: 800;
  font-size: 3rem;
  line-height: 1;
  color: var(--orange);
}

.stat .label { color: var(--muted); font-size: 0.95rem; line-height: 1.35; }

/* ---------- Donate ---------- */
.donate-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

/* ---------- Bank transfer card ---------- */
.bank-card {
  background: linear-gradient(135deg, var(--plum) 0%, #a5546a 100%);
  color: #fff;
  border-radius: 18px;
  padding: 22px 24px 14px;
  margin: 18px 0 20px;
  box-shadow: 0 12px 28px rgba(140, 65, 85, 0.28);
}

.bank-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  font-size: 1.02rem;
  margin-bottom: 12px;
}

.bank-chip {
  width: 40px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f6d27a, var(--yellow));
}

.bank-row {
  display: grid;
  grid-template-columns: 112px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.bank-k { font-size: 0.88rem; opacity: 0.8; }
.bank-v { font-weight: 700; font-size: 0.98rem; overflow-wrap: anywhere; }
@media (min-width: 641px) { .bank-v { overflow-wrap: normal; } }

.bank-copy {
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 0;
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
}

.bank-copy:hover { background: rgba(255, 255, 255, 0.28); }
.bank-copy.copied { background: var(--yellow); color: var(--ink); }

button.btn { font: inherit; font-weight: 600; font-size: 0.95rem; cursor: pointer; }
.copy-all.copied { background: var(--teal); border-color: var(--teal); }

.legal-note { padding: 28px 0 40px; text-align: center; }
.legal-note p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- News ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.news-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.news-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; }
.news-item h3 { padding: 16px 20px; margin: 0; font-size: 1.05rem; }

/* ---------- Contact and footer ---------- */
.contact-band { text-align: center; }

.site-footer {
  background: var(--ink);
  color: #d9dedf;
  padding: 36px 0;
  font-size: 0.95rem;
}

.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { color: #fff; }
.footer-legal { display: flex; flex-direction: column; gap: 3px; line-height: 1.45; }
.footer-legal strong { color: #fff; font-weight: 700; }
.footer-legal span { font-size: 0.9rem; opacity: 0.85; }
.site-footer .wrap { align-items: flex-end; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .header-row {
    grid-template-columns: auto 1fr;
    grid-template-areas: "logo actions" "tabs tabs";
    row-gap: 6px;
  }
  .header-row .header-actions { justify-self: end; }
}

@media (max-width: 900px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile, .tile:nth-child(-n+2) { grid-column: span 1; aspect-ratio: 4 / 3; }
  .tile:last-child { grid-column: span 2; aspect-ratio: 16 / 7; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .donate-cols { grid-template-columns: 1fr; }
  .block { min-height: 140px; }
  .dims { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  section { padding: 52px 0; }
  .site-header { position: static; }
  .logo img { height: 48px; }
  .lang span { display: none; }
  .header-actions .btn { padding: 8px 14px; }
  .hero { min-height: 78vh; }
  .hero-top { background-position: 30% 0; }
  .hero .wrap { padding-top: 28px; }
  .hero .eyebrow { margin-bottom: 0.5em; }
  .hero .btn { padding: 8px 14px; }
  .tiles { grid-template-columns: 1fr; }
  .tile, .tile:nth-child(-n+2), .tile:last-child { grid-column: span 1; aspect-ratio: 16 / 10; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .stat:last-child:nth-child(odd) { grid-column: span 2; }
  .bank-row { grid-template-columns: 1fr auto; }
  .bank-k { grid-column: 1 / -1; }
  .block { min-height: 120px; padding: 18px; }
  .page-head-logo { width: 96px; }
  .circle-row { grid-template-columns: 1fr; gap: 20px; }
  .circle-photo { width: 120px; height: 120px; }
  .page-head.with-photo .page-head-inner { flex-direction: column; align-items: stretch; gap: 18px; }
  .page-head-photo { width: 100%; flex: none; margin-bottom: -80px; }
  .page-head.with-photo + section { padding-top: 100px; }
  .cards-2 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .feature-block { padding: 22px; }
  .panel { padding: 22px; }
}
