/* ==========================================================================
   Ziemassvētku Ekspresis – 2026 refresh
   Plain CSS layer loaded after dist/css/app.css (Foundation 6).
   Brand colour: #84231c (Tavi Draugi burgundy).
   ========================================================================== */

:root {
  --brand: #84231c;
  --brand-700: #6b1c16;
  --brand-800: #4f1410;
  --brand-50: #fbf4f3;
  --brand-100: #f5e3e1;
  --brand-200: #e9c4c0;

  --ink: #1f1a19;
  --ink-2: #4a4341;
  --muted: #7a7270;
  --line: #ece5e3;
  --bg: #fbf9f8;
  --surface: #ffffff;

  --ok: #2f7d4f;
  --error: #b42318;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(31, 26, 25, .06);
  --shadow: 0 1px 2px rgba(31, 26, 25, .05), 0 8px 24px -12px rgba(31, 26, 25, .18);
  --shadow-lg: 0 20px 48px -20px rgba(79, 20, 16, .35);

  --container: 1180px;
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font); color: var(--ink); letter-spacing: -0.015em; }

a { color: var(--brand); }
a:hover, a:focus { color: var(--brand-700); }

:focus-visible { outline: 3px solid var(--brand-200); outline-offset: 2px; }

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

.section { padding: 56px 0 0; }
.section--tight { padding: 8px 0 72px; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -8px rgba(132, 35, 28, .7); }
.btn--primary:hover, .btn--primary:focus { background: var(--brand-700); color: #fff; }

.btn--ghost { background: transparent; color: var(--brand); border-color: var(--brand-200); }
.btn--ghost:hover, .btn--ghost:focus { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand); }

.btn--lg { padding: 15px 30px; font-size: 16px; }
.btn--block { width: 100%; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.site-header__brand:hover, .site-header__brand:focus { color: var(--ink); }
.site-header__brand img { width: 52px; height: 52px; border-radius: 50%; }

.site-header__title {
  display: flex;
  flex-direction: column;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
}
.site-header__title small {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.site-header__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
}
.site-header__link:hover, .site-header__link:focus { background: var(--brand-50); color: var(--brand); }

@media (max-width: 560px) {
  .site-header__link { display: none; }
  .site-header__brand img { width: 44px; height: 44px; }
}

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

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(1200px 400px at 85% -10%, rgba(255, 255, 255, .14), transparent 60%),
    radial-gradient(800px 380px at 0% 120%, rgba(0, 0, 0, .22), transparent 60%),
    linear-gradient(135deg, var(--brand) 0%, var(--brand-800) 100%);
}

/* falling snowflakes (two layers for depth) */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-repeat: repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
}
.hero::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='560' height='560'%3E%3Cg fill='none' stroke='white' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cdefs%3E%3Cg id='a'%3E%3Cpath d='M0-10V10M-3-8L0-5 3-8M-3 8L0 5 3 8'/%3E%3C/g%3E%3Cg id='f'%3E%3Cuse href='%23a'/%3E%3Cuse href='%23a' transform='rotate(60)'/%3E%3Cuse href='%23a' transform='rotate(120)'/%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23f' transform='translate(60 70) scale(1.6)' opacity='0.35'/%3E%3Cuse href='%23f' transform='translate(250 30) scale(1.0)' opacity='0.25'/%3E%3Cuse href='%23f' transform='translate(430 120) scale(2.1)' opacity='0.3'/%3E%3Cuse href='%23f' transform='translate(140 260) scale(1.2)' opacity='0.22'/%3E%3Cuse href='%23f' transform='translate(360 330) scale(1.7)' opacity='0.32'/%3E%3Cuse href='%23f' transform='translate(520 420) scale(1.0)' opacity='0.2'/%3E%3Cuse href='%23f' transform='translate(60 470) scale(2.0)' opacity='0.28'/%3E%3Cuse href='%23f' transform='translate(270 500) scale(1.1)' opacity='0.22'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 560px 560px;
  animation: hero-snow-big 60s linear infinite;
}
.hero::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='380' height='380'%3E%3Cg fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cdefs%3E%3Cg id='a'%3E%3Cpath d='M0-10V10M-3-8L0-5 3-8M-3 8L0 5 3 8'/%3E%3C/g%3E%3Cg id='f'%3E%3Cuse href='%23a'/%3E%3Cuse href='%23a' transform='rotate(60)'/%3E%3Cuse href='%23a' transform='rotate(120)'/%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23f' transform='translate(30 40) scale(0.6)' opacity='0.35'/%3E%3Cuse href='%23f' transform='translate(150 90) scale(0.5)' opacity='0.3'/%3E%3Cuse href='%23f' transform='translate(300 30) scale(0.7)' opacity='0.4'/%3E%3Cuse href='%23f' transform='translate(90 200) scale(0.55)' opacity='0.3'/%3E%3Cuse href='%23f' transform='translate(230 180) scale(0.8)' opacity='0.35'/%3E%3Cuse href='%23f' transform='translate(340 260) scale(0.5)' opacity='0.28'/%3E%3Cuse href='%23f' transform='translate(40 330) scale(0.7)' opacity='0.32'/%3E%3Cuse href='%23f' transform='translate(190 320) scale(0.45)' opacity='0.3'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 380px 380px;
  animation: hero-snow-small 32s linear infinite;
}
@keyframes hero-snow-big { from { background-position: 0 0; } to { background-position: 0 560px; } }
@keyframes hero-snow-small { from { background-position: 0 0; } to { background-position: 0 380px; } }
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after { animation: none; }
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 72px 20px 96px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 860px) {
  .hero__inner { grid-template-columns: 1.5fr 1fr; padding: 88px 20px 112px; }
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
}

.hero__title {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero__lead {
  max-width: 560px;
  margin: 0 0 28px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: rgba(255, 255, 255, .86);
}

.hero .btn--primary { background: #fff; color: var(--brand); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .5); }
.hero .btn--primary:hover, .hero .btn--primary:focus { background: var(--brand-50); color: var(--brand-700); }

.hero__stat {
  justify-self: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 240px;
  padding: 28px 36px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
@media (min-width: 860px) { .hero__stat { justify-self: end; } }
@media (max-width: 859px) {
  .hero__inner { padding: 44px 20px 80px; gap: 28px; }
  .hero__stat { justify-self: stretch; min-width: 0; padding: 20px 24px; }
}

.hero__stat-number {
  font-size: clamp(56px, 8vw, 84px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 6px 0;
}
.hero__stat-label {
  max-width: 220px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, .85);
}

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

.steps {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: -48px auto 0;
  padding: 0 20px;
}

.steps__list {
  list-style: none;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (min-width: 760px) { .steps__list { grid-template-columns: repeat(3, 1fr); } }

.steps__list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 22px 24px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.steps__list li + li { border-top: 1px solid var(--line); }
@media (min-width: 760px) {
  .steps__list li + li { border-top: 0; border-left: 1px solid var(--line); }
}
.steps__list strong { display: block; margin-bottom: 2px; font-size: 15px; font-weight: 600; color: var(--ink); }

.steps__num {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand);
  font-weight: 700;
  font-size: 15px;
}

/* ---- Section head + filter chips ---------------------------------------- */

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 24px;
}

.section__title { margin: 0; font-size: clamp(24px, 3vw, 30px); font-weight: 700; }

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 100%;
  padding: 2px;
}
.chips::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: all .2s;
}
.chip:hover, .chip:focus { border-color: var(--brand-200); color: var(--brand); background: var(--brand-50); }
.chip.is-active, .chip.is-active:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---- Child cards --------------------------------------------------------- */

.kids-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
}

.kid-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 18px 20px 20px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .2s, background-color .2s;
}
.kid-card:hover { border-color: var(--brand-200); box-shadow: var(--shadow); transform: translateY(-2px); }

.kid-card__input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.kid-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.kid-card__num {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .01em;
}

.kid-card__check {
  position: relative;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #d8cfcc;
  background: #fff;
  transition: all .2s;
}
.kid-card__check::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 4px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(.4);
  opacity: 0;
  transition: all .2s;
}

.kid-card__name { font-size: 17px; font-weight: 600; line-height: 1.3; }
.kid-card__name .icon { color: var(--brand); margin-right: 4px; vertical-align: -1px; }

.kid-card__age {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #f2eeed;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  vertical-align: 2px;
}

.kid-card__wish {
  display: flex;
  gap: 8px;
  color: var(--ink-2);
  font-size: 14.5px;
}
.kid-card__wish .icon { flex: 0 0 auto; color: var(--brand); font-size: 15px; margin-top: 3px; }

/* "Apskatīt vēstuli": small pill button (opens the letter; clicking it does not tick the card) */
.kid-card__letter,
.picked__letter {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px 6px 11px;
  border: 1px solid var(--brand-200);
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.kid-card__letter { margin-top: auto; }
.picked__letter { margin-top: 6px; }
.letter-ico { flex: 0 0 auto; width: 16px; height: 16px; }
/* on a tinted background (selected card, the form's summary) the button stays white */
.kid-card:has(.kid-card__input:checked) .kid-card__letter,
.picked__letter { background: #fff; }
.kid-card__letter:hover,
.picked__letter:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 4px 12px -4px rgba(132, 35, 28, .45);
}
.kid-card__letter:focus-visible,
.picked__letter:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* selected */
.kid-card:has(.kid-card__input:checked) {
  border-color: var(--brand);
  background: var(--brand-50);
  box-shadow: 0 0 0 3px rgba(132, 35, 28, .1), var(--shadow);
}
.kid-card__input:checked ~ .kid-card__top .kid-card__check { background: var(--brand); border-color: var(--brand); }
.kid-card__input:checked ~ .kid-card__top .kid-card__check::after { opacity: 1; transform: rotate(45deg) scale(1); }
.kid-card__input:focus-visible ~ .kid-card__top .kid-card__check { box-shadow: 0 0 0 4px var(--brand-200); }

/* already taken */
.kid-card.is-taken {
  cursor: default;
  background: #f6f3f2;
  border-color: transparent;
  box-shadow: none;
  transform: none;
}
.kid-card.is-taken .kid-card__name,
.kid-card.is-taken .kid-card__wish { opacity: .55; }
.kid-card.is-taken .kid-card__num { background: #ebe6e5; color: var(--muted); }

.kid-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e8f3ec;
  color: var(--ok);
  font-size: 12px;
  font-weight: 600;
}
.kid-card__badge::before { content: '✓'; font-weight: 700; }

.kids-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 40px 0 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
}
.kids-divider:first-child { margin-top: 0; }
.kids-divider span {
  padding: 2px 10px;
  border-radius: 999px;
  background: #ebe6e5;
  font-size: 13px;
}
.kids-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.empty-note {
  padding: 40px;
  text-align: center;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* ---- Sticky action bar ---------------------------------------------------- */

.pick-form { padding-bottom: 72px; }

.action-bar {
  position: sticky;
  bottom: 16px;
  z-index: 100;
  margin-top: 28px;
}

.action-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
  padding: 12px 12px 12px 24px;
  background: rgba(31, 26, 25, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
}

.action-bar__count { font-size: 15px; color: rgba(255, 255, 255, .8); }
.action-bar__count strong { color: #fff; font-size: 17px; }
.action-bar .form-error { color: #ffb4ab; font-size: 14px; font-weight: 500; }

.action-bar .btn--primary { box-shadow: none; }
.action-bar:not(.has-selection) .btn--primary { background: #4a4341; }
.action-bar:not(.has-selection) .btn--primary:hover { background: var(--brand); }

@media (max-width: 560px) {
  .action-bar { bottom: 10px; }
  .action-bar__inner { padding: 10px 10px 10px 18px; border-radius: 20px; }
  .action-bar__count { font-size: 13.5px; }
  .action-bar .btn--lg { padding: 12px 20px; font-size: 15px; }
}

/* ---- Inner pages ----------------------------------------------------------- */

.page-head {
  padding: 48px 0 32px;
  background: linear-gradient(180deg, var(--brand-50), var(--bg));
}
.page-head__title {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.15;
}

.back-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
}
.back-link:hover { color: var(--brand); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
@media (min-width: 640px) { .card { padding: 32px 36px; } }

.card__title { margin: 0 0 4px; font-size: 21px; font-weight: 700; }
.card__sub { margin: 0 0 20px; color: var(--muted); font-size: 15px; }
.checkout__form .card__title { margin-bottom: 20px; }

.checkout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}
@media (min-width: 900px) {
  .checkout { grid-template-columns: 1fr 1.15fr; gap: 28px; }
  .checkout__summary { position: sticky; top: 96px; }
}

.picked-list { list-style: none; margin: 0; display: grid; gap: 10px; }

.picked {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--brand-50);
}
.picked__num {
  flex: 0 0 auto;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fff;
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 600;
}
.picked__body { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.picked__wish { color: var(--ink-2); font-size: 14px; }
.picked__wish .icon { color: var(--brand); }

/* form fields */
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select {
  height: auto;
  margin: 0;
  padding: 13px 16px;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
  background-color: #fff;
  border: 1.5px solid #ddd5d3;
  border-radius: 12px;
  box-shadow: none;
  transition: border-color .2s, box-shadow .2s;
}
.field select {
  padding-right: 44px;
  background-position: right 14px center;
  white-space: normal;
}
.field input:hover, .field select:hover { border-color: #c9bebb; }
.field input:focus, .field select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(132, 35, 28, .12);
  outline: none;
}

.note {
  margin: -4px 0 18px;
  padding: 18px 20px;
  border-radius: 12px;
  background: #f4f7fb;
  border: 1px solid #dfe7f1;
  font-size: 14.5px;
  color: var(--ink-2);
}
.note p { margin: 0 0 8px; font-size: inherit; }
.note p:last-child { margin-bottom: 0; }
.note ol { margin: 0 0 10px 20px; }
.note li + li { margin-top: 6px; }

.form-errors {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fef3f2;
  border: 1px solid #fecdca;
}
.form-errors .form-error { color: var(--error); font-size: 14px; font-weight: 500; }

/* success */
.success { max-width: 760px; margin: 0 auto; text-align: left; }
.success__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #e8f3ec;
  color: var(--ok);
  font-size: 26px;
  font-weight: 700;
}
.success__list { margin: 0 0 24px 20px; }
.success__list li { margin-bottom: 10px; color: var(--ink-2); }

.entry { font-size: 16px; }

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

.site-footer {
  margin-top: 0;
  background: var(--brand-800);
  color: rgba(255, 255, 255, .78);
  font-size: 14.5px;
}

.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 20px 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-footer__about { display: flex; align-items: center; gap: 16px; }
.site-footer__about img { width: 64px; height: 64px; border-radius: 50%; background: #fff; }
.site-footer__about strong { display: block; color: #fff; font-size: 16px; font-weight: 600; margin-bottom: 2px; }
.site-footer__about p { margin: 0; font-size: 14.5px; line-height: 1.6; }

.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover, .site-footer a:focus { color: var(--brand-200); }

.site-footer__social { display: flex; flex-wrap: wrap; gap: 8px; }
.site-footer__social a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  font-size: 13.5px;
  font-weight: 500;
}
.site-footer__social a:hover, .site-footer__social a:focus { background: rgba(255, 255, 255, .16); color: #fff; }

.site-footer__copy {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 20px 28px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---- Families (davanas.tavidraugi.lv) ------------------------------------ */

.section--families { padding-bottom: 72px; }

.family-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.family-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 22px 20px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.family-card:hover, .family-card:focus {
  color: var(--ink);
  border-color: var(--brand-200);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.family-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand);
  font-size: 20px;
}

.family-card__name { font-size: 18px; font-weight: 600; line-height: 1.3; }

.family-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 14px;
  color: var(--muted);
}
.family-card__meta strong { color: var(--brand); }

.family-card__progress {
  display: block;
  height: 6px;
  margin: 8px 0 4px;
  border-radius: 999px;
  background: #f0eae8;
  overflow: hidden;
}
.family-card__progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #b13a30);
}

.family-card__cta {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
}
.family-card__cta .icon { font-size: 11px; margin-left: 2px; transition: margin .2s; }
.family-card:hover .family-card__cta .icon { margin-left: 6px; }

.family-card.is-done { background: #f6f3f2; border-color: transparent; box-shadow: none; }
.family-card.is-done .family-card__icon { background: #ebe6e5; color: var(--muted); }
.family-card.is-done .family-card__name { color: var(--ink-2); }
.family-card.is-done .family-card__progress span { background: var(--ok); }
.family-card.is-done .family-card__cta { color: var(--muted); }

.page-head__desc { max-width: 720px; margin-top: 10px; color: var(--ink-2); font-size: 16px; }
.page-head__desc p:last-child { margin-bottom: 0; }

.section__intro { margin: 0 0 20px; color: var(--muted); font-size: 15px; }

.kid-card__top .kid-card__name { flex: 1; }
.kid-card__top:has(.kid-card__name) { align-items: flex-start; }

.picked__family {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: .03em;
}

.success__icon--muted { background: var(--brand-50); color: var(--brand); }

.hero__stat-number--icon { font-size: clamp(44px, 6vw, 60px); margin: 4px 0 10px; }

/* ---------- letter popup ---------- */
button.kid-card__letter,
button.picked__letter {
  font-family: inherit;
  cursor: pointer;
}

.letterbox-open { overflow: hidden; }

.letterbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  background: rgba(24, 14, 13, .96);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  animation: letterbox-in .18s ease;
}
.letterbox[hidden] { display: none; }
@keyframes letterbox-in { from { opacity: 0; } to { opacity: 1; } }

.letterbox__bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 12px 12px 20px;
  font-size: 15px;
}
.letterbox__title { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.letterbox__count { color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; white-space: nowrap; }
.letterbox__close {
  margin-left: auto;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  cursor: pointer;
  transition: background-color .2s ease;
}
.letterbox__close:hover { background: rgba(255, 255, 255, .2); }

.letterbox__stage {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 72px 24px;
  overflow: auto;
  overscroll-behavior: contain;
}
.letterbox__img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, .5);
  cursor: zoom-in;
  transition: opacity .15s ease;
}
.letterbox.is-loading .letterbox__img { opacity: .35; }

/* zoomed: page at full width, scroll to read */
.letterbox.is-zoomed .letterbox__stage { align-items: flex-start; }
.letterbox.is-zoomed .letterbox__img { max-height: none; width: min(100%, 1100px); cursor: zoom-out; }

.letterbox__nav {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-top: -6px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  cursor: pointer;
  transition: background-color .2s ease, opacity .2s ease;
}
.letterbox__nav:hover:not(:disabled) { background: rgba(255, 255, 255, .24); }
.letterbox__nav:disabled { opacity: .25; cursor: default; }
.letterbox__nav[hidden] { display: none; }
.letterbox__nav--prev { left: 12px; }
.letterbox__nav--next { right: 12px; }
.letterbox button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* page strip (letters with 2+ pages) */
.letterbox__thumbs {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 0 72px 18px;
  overflow-x: auto;
}
.letterbox__thumbs[hidden] { display: none; }
.letterbox.has-thumbs .letterbox__stage { padding-bottom: 14px; }
.letterbox__thumb {
  position: relative;
  flex: 0 0 auto;
  width: 54px;
  height: 76px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
  opacity: .55;
  cursor: pointer;
  transition: opacity .2s ease, border-color .2s ease, transform .2s ease;
}
.letterbox__thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }   /* whole page, also for landscape pages */
.letterbox__thumb:hover { opacity: .85; }
.letterbox__thumb.is-active { opacity: 1; border-color: #fff; transform: translateY(-2px); }
.letterbox__thumb-num {
  position: absolute;
  right: 3px;
  bottom: 3px;
  min-width: 18px;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(24, 14, 13, .8);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
}

@media (max-width: 640px) {
  .letterbox__bar { padding: 8px 8px 8px 16px; font-size: 14px; }
  .letterbox__stage { padding: 0 8px 76px; }
  .letterbox__nav { top: auto; bottom: 14px; margin: 0; width: 48px; height: 48px; }
  .letterbox__nav--prev { left: calc(50% - 60px); }
  .letterbox__nav--next { right: calc(50% - 60px); }
  .letterbox.has-thumbs .letterbox__stage { padding-bottom: 10px; }
  .letterbox__thumbs { gap: 8px; padding: 0 70px 12px; }
  .letterbox__thumb { width: 44px; height: 62px; }
  .letterbox.has-thumbs .letterbox__nav { bottom: 19px; }
  .letterbox.has-thumbs .letterbox__nav--prev { left: 12px; }
  .letterbox.has-thumbs .letterbox__nav--next { right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .letterbox, .letterbox__img, .letterbox__nav, .letterbox__close, .letterbox__thumb { animation: none; transition: none; }
}
