/* ==========================================================================
   Zapya APK – site stylesheet
   ========================================================================== */
:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --text: #283141;
  --muted: #5d6676;
  --heading: #0b1220;
  --brand: #e5262b;
  --brand-dark: #c0151b;
  --brand-soft: #fdeced;
  --brand-tint: #fff6f6;
  --navy: #101828;
  --navy-2: #1d2939;
  --navy-3: #344054;
  --border: #e3e7ee;
  --link: #1a5fd0;
  --green: #12805c;
  --green-soft: #e7f6ef;
  --amber: #a15c07;
  --amber-soft: #fff5e1;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .06);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16.5px/1.75 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--brand); }
:focus-visible { outline: 3px solid #4d8dff; outline-offset: 2px; border-radius: 4px; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }

.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--navy); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  border-bottom: 3px solid var(--brand);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .18);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.28rem; letter-spacing: -.01em; }
.brand img { border-radius: 9px; }
.brand b { color: var(--brand); font-weight: 700; margin-left: 2px; }
.brand:hover { color: #fff; }

.menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.menu > li { position: relative; display: flex; align-items: center; }
.menu a { color: #d5dae3; text-decoration: none; font-size: .92rem; font-weight: 500; padding: 9px 11px; border-radius: 8px; display: block; white-space: nowrap; }
.menu a:hover, .menu a:focus-visible { color: #fff; background: rgba(255, 255, 255, .07); }
.menu > li.active > a { color: #fff; box-shadow: inset 0 -3px 0 var(--brand); border-radius: 8px 8px 0 0; }
.sub-toggle { background: none; border: 0; color: #d5dae3; padding: 6px 4px; margin-left: -8px; cursor: pointer; display: inline-flex; }
.sub {
  list-style: none; margin: 0; padding: 8px;
  position: absolute; top: 100%; right: 0; min-width: 220px;
  background: #fff; border-radius: 12px; box-shadow: 0 14px 40px rgba(16, 24, 40, .2);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease;
}
.sub a { color: var(--text); font-size: .9rem; }
.sub a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { opacity: 1; visibility: visible; transform: none; }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; height: 2.5px; background: #fff; border-radius: 2px; transition: .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 1020px) {
  .nav-toggle { display: flex; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); border-top: 1px solid var(--navy-3); display: none; max-height: calc(100vh - 66px); overflow-y: auto; }
  .site-nav.open { display: block; }
  .menu { flex-direction: column; align-items: stretch; padding: 8px 16px 18px; gap: 0; }
  .menu > li { flex-wrap: wrap; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .menu > li > a { flex: 1; padding: 13px 4px; font-size: 1rem; }
  .menu > li.active > a { box-shadow: none; color: #fff; }
  .menu > li.active > a::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); margin-right: 9px; vertical-align: middle; }
  .sub-toggle { padding: 12px; margin: 0; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; background: var(--navy-2); width: 100%; margin-bottom: 10px; }
  .has-sub:hover .sub, .has-sub:focus-within .sub { display: none; }
  .has-sub.open .sub { display: block; }
  .sub a { color: #d5dae3; }
  .sub a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
}

/* ---------- article shell ---------- */
main { padding-top: 22px; padding-bottom: 56px; }
.crumbs { font-size: .84rem; color: var(--muted); margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.entry { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px 44px 44px; }
@media (max-width: 720px) { .entry { padding: 24px 16px 30px; border-radius: 12px; } main { padding-top: 14px; } }

.entry h1 { font-size: clamp(1.65rem, 1.1rem + 2.2vw, 2.55rem); line-height: 1.22; color: var(--heading); margin: 0 0 10px; letter-spacing: -.02em; font-weight: 700; }
.entry h2 {
  font-size: clamp(1.28rem, 1.05rem + .9vw, 1.62rem); line-height: 1.35; color: var(--heading); font-weight: 700;
  margin: 2.6rem 0 1rem; padding: 12px 16px 12px 18px;
  background: linear-gradient(90deg, var(--brand-soft), rgba(253, 236, 237, 0) 92%);
  border-left: 5px solid var(--brand); border-radius: 6px 10px 10px 6px;
}
.entry h2.tagline { background: none; border: 0; padding: 0; margin: 0 0 22px; font-size: clamp(1.05rem, .95rem + .5vw, 1.28rem); font-weight: 600; color: var(--navy-3); }
.entry h3 { font-size: 1.18rem; color: var(--heading); margin: 1.8rem 0 .6rem; line-height: 1.4; font-weight: 600; }
.entry h4 { font-size: 1.02rem; margin: 1.3rem 0 .4rem; color: var(--heading); }
.entry p { margin: 0 0 1.05rem; }
.entry ul, .entry ol { padding-left: 1.3rem; margin: 0 0 1.2rem; }
.entry li { margin: .3rem 0; }
.entry li::marker { color: var(--brand); }
.entry strong { color: var(--heading); font-weight: 600; }
.entry code { background: #f1f3f7; padding: 2px 7px; border-radius: 6px; font-size: .88em; word-break: break-all; }
.entry hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }

.post-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .86rem; color: var(--muted); margin: 0 0 18px !important; }
.post-meta a { color: var(--muted); }

/* ---------- app hero (info table + tile) ---------- */
.app-hero { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 28px; align-items: start; margin-bottom: 22px; }
.app-hero figure { margin: 0; order: 2; }
.app-hero figure img { border-radius: 22px; box-shadow: 0 18px 40px rgba(16, 24, 40, .22); width: 100%; }
.app-hero figcaption { text-align: center; font-size: .82rem; color: var(--muted); margin-top: 10px; }
@media (max-width: 820px) {
  .app-hero { grid-template-columns: 1fr; }
  .app-hero figure { order: -1; max-width: 220px; margin: 0 auto; }
}

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1.4rem; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.table-wrap table { margin: 0; border: 0; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
thead th { background: var(--navy); color: #fff; font-weight: 600; font-size: .9rem; white-space: nowrap; }
tbody tr:nth-child(even) td { background: #fafbfd; }
tbody tr:last-child td { border-bottom: 0; }
.info-table td:first-child { font-weight: 600; color: var(--heading); width: 42%; white-space: nowrap; }
.info-table td:first-child svg { width: 17px; height: 17px; vertical-align: -3px; margin-right: 8px; color: var(--brand); }
.info-table { border: 1px solid #f5c9cb; border-radius: var(--radius-sm); overflow: hidden; border-collapse: separate; border-spacing: 0; }
.info-table td { border-bottom: 1px solid #f8dfe0; }
.info-table tr:nth-child(even) td { background: var(--brand-tint); }
@media (max-width: 480px) { .info-table td:first-child { white-space: normal; width: 46%; } th, td { padding: 10px 11px; } }

/* ---------- buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 4px 0 22px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 12px; border: 0; cursor: pointer;
  font: 600 1rem/1.25 var(--font); text-decoration: none; text-align: center;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn small { display: block; font-weight: 400; font-size: .78rem; opacity: .9; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(229, 38, 43, .32); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); color: #fff; transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--navy); border: 2px solid var(--border); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-lg { padding: 16px 28px; font-size: 1.06rem; min-width: 270px; }
.btn-block { width: 100%; }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; box-shadow: none; }
@media (max-width: 560px) { .btn-row .btn { width: 100%; } .btn-lg { min-width: 0; } }

/* ---------- trust badges ---------- */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 26px; padding: 0; list-style: none; }
.trust li { display: flex; align-items: center; gap: 12px; background: #f7f9fc; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin: 0; font-size: .88rem; line-height: 1.4; }
.trust li::marker { content: none; }
.trust svg { width: 30px; height: 30px; flex: none; color: var(--green); }
.trust strong { display: block; font-size: .93rem; }
@media (max-width: 760px) { .trust { grid-template-columns: 1fr; } }

/* ---------- TOC ---------- */
.toc { border: 1px solid var(--border); border-radius: 12px; margin: 10px 0 30px; background: #fbfcfe; }
.toc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; font-weight: 600; color: var(--heading); font-size: 1.08rem; }
.toc summary::-webkit-details-marker { display: none; }
.toc-icon { width: 30px; height: 30px; border-radius: 8px; background: var(--navy); position: relative; flex: none; }
.toc-icon::before, .toc-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2.5px; background: #fff; transform: translate(-50%, -50%); border-radius: 2px; transition: .2s; }
.toc-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.toc[open] .toc-icon::after { transform: translate(-50%, -50%) rotate(0); }
.toc nav { padding: 0 18px 16px; border-top: 1px solid var(--border); }
.toc ol { counter-reset: t; list-style: none; padding-left: 0; margin: 12px 0 0; }
.toc ol ol { margin: 4px 0 6px 26px; }
.toc li { counter-increment: t; margin: 0; }
.toc a { display: block; padding: 4px 0; color: var(--text); text-decoration: none; font-size: .94rem; line-height: 1.45; }
.toc a::before { content: counters(t, ".") ". "; color: var(--brand); font-weight: 600; margin-right: 4px; }
.toc a:hover { color: var(--brand); }

/* ---------- media blocks ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 26px; align-items: start; }
.split figure { margin: 0; }
.split .phone { border-radius: 22px; border: 6px solid var(--navy); box-shadow: 0 16px 34px rgba(16, 24, 40, .2); }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } .split figure { max-width: 230px; margin: 0 auto 10px; } }

.figure { margin: 1.2rem 0 1.6rem; text-align: center; }
.figure img { margin: 0 auto; border-radius: 12px; }
.figure figcaption { font-size: .84rem; color: var(--muted); margin-top: 8px; }
.figure.wide img { width: 100%; }
.figure.boxed { background: linear-gradient(160deg, #f1f6ff, #fff4f4); border-radius: 14px; padding: 18px; }

.gallery { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 16px; margin: 0 0 1.4rem; }
.gallery figure { margin: 0; flex: 0 0 190px; scroll-snap-align: start; }
.gallery img { border-radius: 16px; box-shadow: 0 8px 20px rgba(16, 24, 40, .14); }
.gallery figcaption { font-size: .8rem; color: var(--muted); text-align: center; margin-top: 8px; line-height: 1.35; }

/* ---------- lists ---------- */
.checks { list-style: none; padding-left: 0 !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 22px; }
.checks.one { grid-template-columns: 1fr; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 20px; height: 20px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2312805c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat; }
@media (max-width: 640px) { .checks { grid-template-columns: 1fr; } }

.steps { counter-reset: s; list-style: none; padding-left: 0 !important; }
.steps > li { counter-increment: s; position: relative; padding: 2px 0 10px 50px; margin: 0 0 6px; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .95rem; }
.steps > li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 40px; bottom: 2px; width: 2px; background: var(--brand-soft); }

/* ---------- callouts ---------- */
.note { border-radius: 12px; padding: 14px 18px 14px 52px; margin: 1.2rem 0 1.5rem; position: relative; background: #eef4ff; border: 1px solid #d5e3ff; font-size: .95rem; }
.note::before { content: "i"; position: absolute; left: 16px; top: 15px; width: 24px; height: 24px; border-radius: 50%; background: var(--link); color: #fff; font: 700 .9rem/24px Georgia, serif; text-align: center; }
.note p:last-child { margin-bottom: 0; }
.note.tip { background: var(--green-soft); border-color: #bfe6d3; }
.note.tip::before { content: "✓"; background: var(--green); font-family: var(--font); font-size: .8rem; }
.note.warn { background: var(--amber-soft); border-color: #f6dca6; }
.note.warn::before { content: "!"; background: var(--amber); }

/* ---------- pros / cons ---------- */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 1.5rem; }
.pros-cons > div { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.pros-cons h3 { margin: 0 !important; padding: 11px 16px; font-size: 1.02rem !important; color: #fff !important; }
.pros-cons .pros h3 { background: var(--green); }
.pros-cons .cons h3 { background: var(--brand); }
.pros-cons ul { padding: 12px 16px 10px 34px; margin: 0; font-size: .95rem; }
.pros-cons .pros li::marker { color: var(--green); }
@media (max-width: 680px) { .pros-cons { grid-template-columns: 1fr; } }

/* ---------- platform cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 0 0 1.6rem; padding: 0; list-style: none; }
.cards li { margin: 0; }
.cards li::marker { content: none; }
.card { display: flex; gap: 14px; align-items: center; height: 100%; padding: 14px; border: 1px solid var(--border); border-radius: 14px; text-decoration: none; color: var(--text); background: #fff; transition: .15s; }
.card:hover { border-color: var(--brand); box-shadow: 0 10px 26px rgba(229, 38, 43, .12); color: var(--text); transform: translateY(-2px); }
.card img { width: 58px; height: 58px; border-radius: 14px; flex: none; }
.card strong { display: block; font-size: .98rem; }
.card span { font-size: .83rem; color: var(--muted); line-height: 1.4; display: block; }

/* ---------- FAQ ---------- */
.faq { border: 1px solid var(--border); border-radius: 12px; margin: 0 0 10px; background: #fff; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 700; display: grid; place-items: center; font-size: 1.15rem; transition: .2s; }
.faq[open] summary::after { content: "–"; background: var(--brand); color: #fff; }
.faq h3.faq-q { margin: 0 !important; font-size: 1.02rem !important; font-weight: 600; }
.faq-a { padding: 0 18px 4px; }
.faq[open] { border-color: #f3c3c5; box-shadow: 0 6px 18px rgba(229, 38, 43, .07); }

/* ---------- author box ---------- */
.author-box { display: flex; gap: 16px; align-items: flex-start; margin-top: 2.6rem; padding: 18px 20px; border-radius: 14px; background: #f7f9fc; border: 1px solid var(--border); font-size: .92rem; }
.author-box img { border-radius: 14px; flex: none; }
.author-box p { margin: 0; }
.author-box .author-name { font-weight: 700; color: var(--heading); margin-bottom: 4px; }

/* ---------- version table ---------- */
.ver-table td:first-child { font-weight: 600; white-space: nowrap; color: var(--heading); }
.tag { display: inline-block; font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--green-soft); color: var(--green); vertical-align: 2px; margin-left: 6px; }
.tag.red { background: var(--brand-soft); color: var(--brand-dark); }
.mini-btn { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 600; padding: 6px 12px; border-radius: 8px; background: var(--navy); color: #fff; text-decoration: none; white-space: nowrap; }
.mini-btn:hover { background: var(--brand); color: #fff; }

/* ---------- download page ---------- */
.dl-card { max-width: 640px; margin: 10px auto 30px; text-align: center; border: 1px solid var(--border); border-radius: 18px; padding: 32px 24px 26px; background: linear-gradient(180deg, #fff, #fbfcfe); }
.dl-card .dl-icon { width: 104px; height: 104px; border-radius: 24px; margin: 0 auto 14px; box-shadow: 0 12px 28px rgba(16, 24, 40, .18); }
.dl-card h1 { font-size: 1.7rem !important; margin-bottom: 6px !important; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 10px 0 22px; padding: 0; list-style: none; }
.chips li { margin: 0; background: #f1f3f7; border-radius: 999px; padding: 4px 12px; font-size: .83rem; font-weight: 500; }
.chips li::marker { content: none; }
.ring { --p: 0; width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; background: conic-gradient(var(--brand) calc(var(--p) * 1%), #edf0f5 0); }
.ring span { width: 74px; height: 74px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.5rem; color: var(--heading); }
.dl-status { font-size: .95rem; color: var(--muted); margin-bottom: 18px !important; }
.dl-actions { display: grid; gap: 10px; }
.dl-help { font-size: .8rem; color: var(--muted); margin: 14px 0 0 !important; overflow-wrap: anywhere; }
.dl-switch { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px 0 0; }
.dl-switch a { font-size: .84rem; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; color: var(--text); }
.dl-switch a[aria-current="true"], .dl-switch a:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- contact ---------- */
.contact-box { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 0 0 1.5rem; }
.contact-box > div { border: 1px solid var(--border); border-radius: 14px; padding: 18px; background: #fbfcfe; }
.contact-box h3 { margin-top: 0 !important; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #b6bfcc; font-size: .92rem; padding-top: 46px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; padding-bottom: 32px; }
.footer-about p { margin: 14px 0 0; line-height: 1.7; }
.footer-h { color: #fff; font-size: 1rem; margin: 6px 0 12px; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 8px; }
.site-footer a { color: #b6bfcc; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; }
.footer-bottom { border-top: 1px solid var(--navy-3); padding-top: 18px; padding-bottom: 26px; font-size: .8rem; color: #8b95a5; }
.footer-bottom p { margin: 0 0 6px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* ---------- back to top ---------- */
.to-top { position: fixed; right: 16px; bottom: 18px; width: 46px; height: 46px; border-radius: 12px; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 20px rgba(229, 38, 43, .35); z-index: 40; }
.to-top:hover { background: var(--brand-dark); }
.to-top[hidden] { display: none; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 30px 0 10px; }
.notfound .big { font-size: clamp(4rem, 3rem + 6vw, 7rem); font-weight: 700; color: var(--brand); line-height: 1; margin: 0 0 10px; }
.notfound .btn-row { justify-content: center; }

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