/* youcansucceed. One hand-written stylesheet, written for phones first.
   Wider screens are handled by wrapping layouts and two breakpoints (640px and 960px). */

/* ---------- Fonts (self-hosted, see static/fonts/README.txt) ---------- */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/static/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/static/fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/static/fonts/hanken-grotesk-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --red: #A3161C;
  --red-dark: #84100F;
  --on-red-muted: #F9D9D6;
  --ground: #F6F6F3;
  --surface: #FFFFFF;
  --ink: #17191E;
  --text: #2B2E35;
  --muted: #5A5F6A;
  --line: #DEDED9;
  --input-line: #80858F;
  --photo-bg: #E7E7E2;
  --footer-text: #C7CAD1;
  --footer-muted: #A6ABB5;
  --viewer-bg: #101216;

  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Bricolage Grotesque", var(--font-body);

  --radius-control: 10px;
  --radius-row: 12px;
  --radius-card: 16px;
  --shadow-panel: 0 12px 32px rgba(23, 25, 30, 0.12);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html:has(dialog[open]) { overflow: hidden; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
[x-cloak] { display: none !important; }
[id] { scroll-margin-top: 16px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.icon {
  flex: none; width: 1.25em; height: 1.25em;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.icon--solid { fill: currentColor; stroke: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.stack { display: flex; flex-direction: column; gap: 28px; }

.section { padding: 56px 0 64px; }
.section--first { padding-top: 32px; }
.section--surface { background: var(--surface); border-top: 1px solid var(--line); }
.section__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -0.02em;
  overflow-wrap: break-word;
}
.subheading {
  font-family: var(--font-display); font-weight: 700;
  font-size: 26px; line-height: 1.2; letter-spacing: -0.015em;
}

/* Two columns that wrap into one on narrow screens. */
.split { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 36px 72px; }
.split > * { min-width: 0; }

/* ---------- Page heading ---------- */
.page-head { display: flex; flex-direction: column; gap: 6px; }
.page-head__kicker { font-size: 16px; font-weight: 600; color: var(--red); }
.page-head__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(38px, 5vw, 64px); line-height: 1.05; letter-spacing: -0.03em;
  overflow-wrap: break-word;
}
.page-head__subtitle { margin-top: 6px; max-width: 62ch; font-size: 18px; color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px;
  border: 1.5px solid transparent; border-radius: var(--radius-control);
  font-weight: 700; font-size: 17px; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s, color 0.15s, transform 0.1s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--red); color: #FFFFFF; }
.btn--primary:hover { background: var(--red-dark); color: #FFFFFF; }
.btn--outline { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #FFFFFF; }
.btn--accent { background: var(--surface); color: var(--red); border-color: var(--red); }
.btn--accent:hover { background: var(--red); color: #FFFFFF; }
.btn--small { min-height: 44px; padding: 0 14px; font-size: 15.5px; gap: 8px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row .btn { flex: 1 1 130px; max-width: 240px; }

/* ---------- Header and navigation ---------- */
.site-header {
  position: relative; z-index: 10;
  background: var(--surface); border-bottom: 1px solid var(--line);
  font-size: 15.5px; line-height: 1.4;
}
.nav {
  min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.03em;
  color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand span { color: var(--red); }

.nav__toggle {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px;
  background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--radius-control);
  font-weight: 700;
}
.nav__toggle .icon--close,
.nav__toggle[aria-expanded="true"] .icon--menu { display: none; }
.nav__toggle[aria-expanded="true"] .icon--close { display: block; }

/* Phone: the menu is a panel under the header. The trainings are listed in it directly. */
.nav__menu {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  padding: 8px 24px 20px;
  background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-panel);
}
.nav__menu.is-open { display: block; }
.nav__link {
  display: flex; align-items: center; min-height: 48px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 18px;
}
.nav__link[aria-current="page"], .nav__submenu a[aria-current="page"] { color: var(--red); }
.nav__dropdown-toggle { display: none; }
.nav__label { display: flex; align-items: center; min-height: 40px; font-size: 15px; color: var(--muted); }
.nav__submenu { padding-left: 14px; border-left: 2px solid var(--line); }
.nav__submenu a {
  display: flex; align-items: center; min-height: 46px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 17px;
}

@media (min-width: 960px) {
  .nav__toggle { display: none; }
  .nav__menu, .nav__menu.is-open {
    display: flex; align-items: center; gap: 4px;
    position: static; padding: 0; border: 0; box-shadow: none; background: none;
  }
  .nav__link, .nav__dropdown-toggle {
    display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px;
    background: none; border: 0; border-radius: 8px;
    color: var(--ink); font-weight: 500; font-size: 15.5px; white-space: nowrap;
    transition: background-color 0.15s;
  }
  .nav__link:hover, .nav__dropdown-toggle:hover, .nav__submenu a:hover { background: var(--ground); color: var(--ink); }
  .nav__label { display: none; }
  .nav__item--dropdown { position: relative; }
  .nav__dropdown-toggle .icon { width: 16px; height: 16px; transition: transform 0.15s; }
  .nav__dropdown-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
  .nav__submenu {
    display: none;
    position: absolute; top: 100%; left: 0; min-width: 250px; margin-top: 6px; padding: 8px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-row);
    box-shadow: var(--shadow-panel);
  }
  .nav__submenu.is-open { display: block; }
  .nav__submenu a {
    min-height: 44px; padding: 0 12px; border-radius: 8px;
    font-weight: 500; font-size: 15.5px; white-space: nowrap;
  }
}

/* ---------- Home: hero ---------- */
.hero { padding: 28px 0 56px; }
.hero__inner { display: flex; flex-wrap: wrap-reverse; align-items: center; gap: 28px 64px; }
.hero__text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(40px, 6vw, 76px); line-height: 1.03; letter-spacing: -0.03em;
  overflow-wrap: break-word;
}
.hero__lead { max-width: 34em; font-size: 18px; color: var(--text); }
.hero__subjects { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.hero__subject {
  min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 12px 8px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-control);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15.5px; line-height: 1.25;
  transition: border-color 0.15s;
}
a.hero__subject:hover { border-color: var(--ink); color: var(--ink); }
.hero__subject .icon { width: 18px; height: 18px; color: var(--red); }

.identity {
  flex: 1 1 300px; max-width: 400px;
  display: flex; align-items: center; gap: 16px; padding: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
}
.identity__photo { flex: none; width: 90px; height: 100px; object-fit: cover; border-radius: var(--radius-control); }
.identity__body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.identity__name {
  margin-bottom: 2px;
  font-family: var(--font-display); font-weight: 700; font-size: 21px; line-height: 1.2; letter-spacing: -0.01em;
}
.identity__line { font-size: 14.5px; line-height: 1.4; color: var(--text); }
.identity .btn { align-self: flex-start; margin-top: 6px; }

/* ---------- Home: welcome (also used by the About page) ---------- */
.welcome { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.welcome__text { flex: 999 1 480px; max-width: 720px; display: flex; flex-direction: column; gap: 18px; }
.welcome__closing {
  margin-top: 10px; padding-top: 22px; border-top: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.35; letter-spacing: -0.01em;
}
.welcome__figure { flex: 0 1 300px; }
.welcome__figure img { display: block; width: 100%; max-width: 300px; border-radius: var(--radius-row); }

/* ---------- Long-form text rendered from Markdown ---------- */
.prose { color: var(--text); overflow-wrap: break-word; }
.prose > * + * { margin-top: 16px; }
.prose h2, .prose h3 {
  margin-top: 24px;
  font-family: var(--font-display); font-weight: 700; color: var(--ink);
  line-height: 1.2; letter-spacing: -0.01em;
}
.prose h2 { font-size: 28px; }
.prose h3 { font-size: 24px; }
.prose > :first-child { margin-top: 0; }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose--large { font-size: 18px; }

/* ---------- Home: training cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
  color: var(--ink); text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.card:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.card__title { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; }
.card__summary { font-size: 16px; color: var(--muted); }
.card__more { display: inline-flex; align-items: center; gap: 6px; padding-top: 4px; font-weight: 700; font-size: 16px; color: var(--red); }
.card__more .icon { width: 16px; height: 16px; stroke-width: 2.4; }

/* ---------- Home: vision, mission, values ---------- */
.values { padding: 44px 0 48px; background: var(--red); color: #FFFFFF; }
.values__row { display: flex; flex-wrap: wrap; gap: 4px 32px; padding: 22px 0; }
.values__row + .values__row { border-top: 1px solid rgba(255, 255, 255, 0.3); }
.values__title { flex: 0 0 140px; padding-top: 6px; font-weight: 600; font-size: 16px; color: var(--on-red-muted); }
.values__text {
  flex: 999 1 300px;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(24px, 2.8vw, 36px); line-height: 1.2; letter-spacing: -0.015em;
}
.values__text strong { font-weight: 800; }

/* ---------- Home: gallery strip ---------- */
.strip-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.strip-head a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 16px; }
.strip { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
.strip__item { flex: 0 0 220px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; }
.strip__item img {
  display: block; width: 220px; height: 206px; object-fit: cover;
  border-radius: var(--radius-control); background: var(--photo-bg);
}
.strip__item figcaption, .disclaimer { font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.disclaimer { max-width: 62ch; }

/* ---------- Contact: profile, channel rows ---------- */
.contact-info { flex: 1 1 320px; max-width: 480px; display: flex; flex-direction: column; gap: 24px; }
.contact-panel { flex: 1 1 360px; max-width: 560px; display: flex; flex-direction: column; gap: 18px; }
.profile { display: flex; align-items: center; gap: 16px; }
.profile__photo { flex: none; width: 108px; height: 140px; object-fit: cover; border-radius: var(--radius-control); }
.profile__name { margin-bottom: 4px; font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.2; }
.profile__line { font-size: 15px; line-height: 1.4; color: var(--text); }

.channels { display: flex; flex-direction: column; gap: 10px; }
.channel {
  display: flex; align-items: center; gap: 14px; padding: 13px 16px;
  background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius-row);
  color: var(--ink); text-decoration: none; line-height: 1.3;
  transition: border-color 0.15s, background-color 0.15s;
}
.channel:hover { border-color: var(--ink); color: var(--ink); }
.channel .icon { width: 26px; height: 26px; color: var(--red); }
.channel__text { min-width: 0; display: flex; flex-direction: column; }
.channel__label { font-size: 14.5px; color: var(--muted); }
.channel__value { font-weight: 700; font-size: 18.5px; overflow-wrap: anywhere; }
.channel--primary { background: var(--red); border-color: var(--red); color: #FFFFFF; }
.channel--primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: #FFFFFF; }
.channel--primary .icon { color: #FFFFFF; }
.channel--primary .channel__label { color: var(--on-red-muted); }
/* On the grey page background the plain rows are white. */
.channels--on-ground .channel:not(.channel--primary) { background: var(--surface); }

/* ---------- Contact form ---------- */
.contact-form { display: flex; flex-direction: column; gap: 18px; margin: 0; }
.contact-form__field { display: flex; flex-direction: column; gap: 6px; }
.contact-form label { font-weight: 600; font-size: 15.5px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 0 14px;
  background: var(--surface); border: 1.5px solid var(--input-line); border-radius: var(--radius-control);
  color: var(--ink); font: inherit; font-size: 17px;
}
.contact-form input { height: 50px; }
.contact-form textarea { min-height: 132px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.contact-form input:focus-visible, .contact-form textarea:focus-visible {
  outline: 3px solid var(--ink); outline-offset: 1px; border-color: var(--ink);
}
.contact-form [aria-invalid="true"] { border-color: var(--red); }
.contact-form__error { font-size: 14.5px; font-weight: 600; color: var(--red); }
.contact-form__error--form {
  padding: 12px 14px; border: 1.5px solid var(--red); border-radius: var(--radius-control); background: var(--surface);
}
.contact-form .btn { align-self: flex-start; min-width: 200px; }
/* Spam trap: hidden from people, and from screen readers through aria-hidden in the markup. */
.contact-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form.htmx-request .btn { opacity: 0.6; pointer-events: none; }
.contact-form--sent {
  flex-direction: row; align-items: flex-start; gap: 14px; padding: 22px;
  background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--radius-card);
}
.contact-form--sent .icon { width: 28px; height: 28px; margin-top: 2px; color: var(--red); stroke-width: 2.4; }
.contact-form__thanks { font-family: var(--font-display); font-weight: 600; font-size: 21px; line-height: 1.35; letter-spacing: -0.01em; }

/* ---------- Training page ---------- */
.training__intro { flex: 999 1 440px; max-width: 640px; }
.training__topics { flex: 1 1 360px; max-width: 520px; display: flex; flex-direction: column; gap: 12px; }
.topics {
  padding: 4px 18px; counter-reset: topic;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
}
.topics__item { counter-increment: topic; }
.topics__item + .topics__item { border-top: 1px solid var(--line); }
.topics__title { font: inherit; }
.topics__title, .topics__toggle {
  min-height: 54px; display: flex; align-items: center; gap: 14px;
  font-weight: 600; font-size: 17px; line-height: 1.3;
}
.topics__item--expandable .topics__title { display: block; min-height: 0; }
.topics__toggle { width: 100%; padding: 0; background: none; border: 0; text-align: left; }
.topics__item:not(.topics__item--expandable) .topics__title::before,
.topics__toggle::before {
  content: counter(topic); flex: 0 0 22px;
  font-size: 15px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums;
}
.topics__toggle .icon { margin-left: auto; width: 20px; height: 20px; color: var(--red); transition: transform 0.15s; }
.topics__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.topics__body { padding: 0 0 16px 36px; font-size: 16.5px; }

.ask { padding: 44px 0 48px; }
.ask__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.ask__title {
  flex: 1 1 280px;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(26px, 3vw, 36px); line-height: 1.15; letter-spacing: -0.02em;
}
.ask .btn-row { flex: 1 1 300px; max-width: 500px; }

/* ---------- Articles ---------- */
.toc {
  flex: 1 1 260px; max-width: 340px; padding: 14px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
}
.toc__label { margin-bottom: 2px; font-size: 15px; color: var(--muted); }
.toc a { display: flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 16.5px; line-height: 1.3; }
.articles { flex: 999 1 520px; max-width: 680px; display: flex; flex-direction: column; gap: 44px; }
.article { display: flex; flex-direction: column; gap: 16px; }
.article + .article { padding-top: 44px; border-top: 1px solid var(--line); }
.article__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 3vw, 38px); line-height: 1.12; letter-spacing: -0.02em;
}
.article__date { font-size: 15px; color: var(--muted); }

/* ---------- Courses ---------- */
.empty-state {
  max-width: 640px; display: flex; flex-direction: column; gap: 18px; padding: 28px 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
}
.empty-state__title { font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; }
.empty-state p { color: var(--text); }
.courses { max-width: 880px; display: flex; flex-direction: column; gap: 12px; }
.courses__item {
  display: flex; flex-wrap: wrap; gap: 8px 32px; padding: 20px 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
}
.courses__meta { flex: 0 0 170px; display: flex; flex-direction: column; gap: 2px; font-size: 15.5px; line-height: 1.45; }
.courses__date { font-weight: 700; color: var(--red); }
.courses__place { color: var(--muted); }
.courses__body { flex: 999 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.courses__title { font-family: var(--font-display); font-weight: 700; font-size: 23px; line-height: 1.2; letter-spacing: -0.01em; }
.courses__body .prose { font-size: 16.5px; }

/* ---------- Gallery and photo viewer ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(150px, 22vw, 270px), 1fr)); gap: 28px 16px; }
.gallery__item figure { display: flex; flex-direction: column; gap: 8px; }
.gallery__open {
  display: block; width: 100%; padding: 0; border: 0; overflow: hidden;
  border-radius: var(--radius-control); background: var(--photo-bg);
}
.gallery__open img { display: block; width: 100%; aspect-ratio: 370 / 346; object-fit: cover; transition: transform 0.2s; }
.gallery__open:hover img { transform: scale(1.03); }
.gallery__item figcaption { font-size: 14.5px; line-height: 1.4; color: var(--text); }

.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--viewer-bg); color: #FFFFFF;
}
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox :focus-visible { outline-color: #FFFFFF; }
.lightbox__bar { flex: none; height: 64px; padding: 0 12px 0 24px; display: flex; align-items: center; justify-content: space-between; }
.lightbox__count { font-size: 15.5px; color: var(--footer-text); font-variant-numeric: tabular-nums; }
.lightbox__close {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  background: none; border: 0; border-radius: var(--radius-control); color: #FFFFFF;
}
.lightbox__close .icon { width: 26px; height: 26px; }
.lightbox__figure {
  flex: 1 1 auto; min-height: 0; padding: 0 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
}
/* Photos are small files, so the viewer shows them at their natural size and never enlarges them. */
.lightbox__figure img { display: block; max-width: 100%; max-height: calc(100% - 6em); width: auto; height: auto; border-radius: 8px; }
.lightbox__figure figcaption { max-width: 34ch; min-height: 3em; text-align: center; line-height: 1.5; }
.lightbox__nav { flex: none; padding: 16px 24px 28px; display: flex; justify-content: center; gap: 12px; }
.lightbox__btn {
  flex: 1 1 0; max-width: 180px; height: 50px; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: none; border: 1.5px solid rgba(255, 255, 255, 0.7); border-radius: var(--radius-control);
  color: #FFFFFF; font-weight: 700; font-size: 16px;
}
.lightbox__btn--next { background: #FFFFFF; border-color: #FFFFFF; color: var(--viewer-bg); }
.lightbox__btn .icon { width: 18px; height: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--footer-text); font-size: 15.5px; }
.site-footer__inner { padding-top: 52px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 36px; }
.site-footer__grid { display: flex; flex-wrap: wrap; gap: 32px 56px; }
.site-footer__about { flex: 2 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.site-footer__about p:last-child { max-width: 46ch; }
.site-footer__brand { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.03em; color: #FFFFFF; }
.site-footer__col { flex: 1 1 140px; }
.site-footer__col--wide { flex-basis: 220px; }
.site-footer__title { margin-bottom: 6px; font-weight: 700; font-size: 15.5px; color: #FFFFFF; }
.site-footer a { display: flex; align-items: center; min-height: 44px; padding: 6px 0; color: var(--footer-text); text-decoration: none; line-height: 1.3; }
.site-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.site-footer :focus-visible { outline-color: #FFFFFF; }
.site-footer__copy { padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 14.5px; color: var(--footer-muted); }

/* ---------- Call and WhatsApp, always within reach ----------
   Phone: a bar that stays at the bottom of the screen.
   Desktop: two round buttons in the bottom right corner. */
.quick-contact {
  position: sticky; bottom: 0; z-index: 5;
  display: flex; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--line);
}
.quick-contact .btn { flex: 1 1 0; min-height: 48px; font-size: 16px; gap: 8px; }
.quick-contact .btn--primary { flex-grow: 1.4; }

@media (min-width: 960px) {
  .quick-contact {
    position: fixed; right: 24px; bottom: 24px; gap: 12px; padding: 0; background: none; border: 0;
  }
  .quick-contact .btn { flex: none; min-height: 56px; border-radius: 28px; font-size: 17px; box-shadow: var(--shadow-panel); }
  .quick-contact .btn--outline { width: 56px; padding: 0; }
  .quick-contact .btn--outline .icon { width: 24px; height: 24px; }
  .quick-contact .btn--outline span {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  .quick-contact .btn--primary { border-color: #FFFFFF; }
}

/* ---------- Small phones ---------- */
@media (max-width: 380px) {
  .container { padding-left: 18px; padding-right: 18px; }
  .nav__menu { padding-left: 18px; padding-right: 18px; }
}

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