/* ============================================================================
   PakGame Casino - dark app-store UI
   The category standard, played straight: Play Store / App Store product UI in
   a dark theme. Familiar, scannable, install-button-first.

   This follows Material 3 dark-surface conventions (tiered surfaces, dark text
   on a light accent, pill actions). It is an honest approximation in native
   CSS, NOT the official @material/web package: this project is flat-file PHP
   with no bundler, so the package cannot be installed.

   Contrast, all measured against the surfaces they sit on:
     text         #e8eaed  15.92:1
     text-2       #9aa0a6   7.27:1  (6.12:1 on the highest surface)
     accent       #f0605c   5.97:1  text, links, stars, active nav
     accent-solid #df2220           filled surfaces only
     on-accent    #ffffff   4.79:1  against accent-solid
   The brand red #df2220 measures 4.01:1 as text on this ground and fails AA,
   so it is only ever a field colour, never type.

   Shape system, applied everywhere:
     app icons 22%  ·  cards 16px  ·  buttons and chips pill  ·  tags 8px
   ========================================================================= */

@font-face {
  font-family: "Roboto Flex";
  src: url("/assets/fonts/robotoflex-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}

:root {
  --bg:        #0d0f12;
  --surface:   #16191e;
  --surface-2: #1d2127;
  --surface-3: #252a31;
  --text:      #e8eaed;
  --text-2:    #9aa0a6;
  /* Accent follows the brand mark. Two roles, because the logo's own red is
     too dark to read as text on this ground:
       --accent-solid #df2220  filled surfaces, white label   4.79:1
       --accent       #f0605c  text, links, stars, active nav 5.97:1
     The logo red #df2220 measures 4.01:1 as text and fails AA, so it is only
     ever a field colour. */
  --accent-solid: #df2220;
  --accent:    #f0605c;
  --accent-2:  #ff8582;
  --on-accent: #ffffff;
  --border:    rgba(255, 255, 255, 0.09);
  --border-2:  rgba(255, 255, 255, 0.16);
  /* Warnings stay amber so an 18+ notice never reads as brand chrome. */
  --danger:    #ffb74d;

  --r-icon: 22%;
  --r-card: 16px;
  --r-tag: 8px;
  --r-pill: 999px;

  --wrap: 1200px;
  --head-h: 64px;

  --t: 160ms cubic-bezier(0.2, 0, 0, 1);

  --font: "Roboto Flex", Roboto, -apple-system, "Segoe UI", system-ui, sans-serif;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 20px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  font-variation-settings: "opsz" 14;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; cursor: pointer; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--accent-solid); color: var(--on-accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--accent-solid); color: var(--on-accent);
  padding: 10px 18px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 600; transition: top var(--t);
}
.skip-link:focus { top: 12px; }

.num { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px;
  border: 1px solid transparent; border-radius: var(--r-pill);
  font-size: 14.5px; font-weight: 600; letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: scale(0.975); }

.btn-primary { background: var(--accent-solid); color: var(--on-accent); }
.btn-primary:hover { background: #ef3a37; }

.btn-tonal { background: var(--surface-3); color: var(--text); }
.btn-tonal:hover { background: var(--border-2); }

.btn-outline { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn-outline:hover { border-color: var(--text-2); background: var(--surface); }

.btn-block { display: flex; width: 100%; min-width: 0; padding-inline: 12px; }
.btn-lg { padding: 14px 30px; font-size: 16px; }

/* ------------------------------------------------------------------ chips */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 12.5px; font-weight: 500; color: var(--text-2);
}
.chip svg { width: 14px; height: 14px; }
.chip-accent { color: var(--accent); border-color: rgba(240, 96, 92, 0.38); background: rgba(240, 96, 92, 0.12); }

/* ================================================================= HEADER */
.appbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13, 15, 18, 0.9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.appbar-inner {
  display: flex; align-items: center; gap: 14px;
  min-height: var(--head-h);
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; margin-right: auto; }
/* The supplied mark carries its own rounded corners and its own ground. */
.brand img { width: 36px; height: 36px; flex: none; }
.brand span {
  font-size: 17px; font-weight: 700; letter-spacing: -0.015em;
  white-space: nowrap; color: var(--text);
}

.nav { display: none; align-items: center; gap: 2px; }
.nav-link {
  display: inline-flex; align-items: center; padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 14px; font-weight: 500; color: var(--text-2);
  transition: background var(--t), color var(--t);
}
.nav-link:hover { background: var(--surface-2); color: var(--text); }
.nav-link.is-active { background: rgba(240, 96, 92, 0.16); color: var(--accent); }

.appbar-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  background: transparent; color: var(--text);
  border: 1px solid var(--border); border-radius: var(--r-pill);
  transition: background var(--t), border-color var(--t);
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle:hover { background: var(--surface-2); }
.nav-toggle .ic-close { display: none; }
.nav-toggle[aria-expanded="true"] .ic-menu { display: none; }
.nav-toggle[aria-expanded="true"] .ic-close { display: block; }

.nav-mobile {
  display: grid; gap: 2px;
  max-height: 0; overflow: hidden;
  padding-inline: 16px;
  border-top: 1px solid transparent;
  transition: max-height var(--t), padding var(--t), border-color var(--t);
}
.nav-mobile.is-open { max-height: 360px; padding-block: 10px 16px; border-top-color: var(--border); }
.nav-mobile .nav-link { padding: 13px 14px; font-size: 15px; }
.nav-mobile .btn { margin-top: 8px; }

/* =================================================================== INTRO */
/* ------------------------------------------------------------ hero band */
/* A light band lifts the hero off the dark page. The artwork is a blurred
   field built from the real app icons, so the colour belongs to the catalogue
   rather than to stock imagery. Text inverts to dark inside the band only. */
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-veil { position: absolute; inset: 0; z-index: 1; }

.intro {
  position: relative; isolation: isolate;
  padding-block: 40px 34px;
  border-bottom: 1px solid var(--border);
}
.intro > .wrap { position: relative; z-index: 2; }
.intro .hero-veil {
  /* Brightest where the copy sits, so the artwork can breathe on the right. */
  background: linear-gradient(100deg,
    rgba(255,255,255,0.88) 0%, rgba(255,255,255,0.74) 34%,
    rgba(255,255,255,0.46) 68%, rgba(255,255,255,0.38) 100%);
}
.intro h1 {
  font-size: clamp(26px, 4.6vw, 40px); font-weight: 700;
  letter-spacing: -0.025em; margin-bottom: 10px; color: #14171c;
}
.intro p { color: #33383f; font-size: 16.5px; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.intro-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* On the light band the neutral controls invert. */
.intro .btn-outline { color: #14171c; border-color: rgba(0, 0, 0, 0.28); background: rgba(255, 255, 255, 0.55); }
.intro .btn-outline:hover { background: #14171c; color: #fff; border-color: #14171c; }
.intro .chip { background: rgba(255, 255, 255, 0.72); border-color: rgba(0, 0, 0, 0.16); color: #33383f; }
.intro .chip-accent { background: rgba(223, 34, 32, 0.1); border-color: rgba(223, 34, 32, 0.4); color: #b31614; }

/* ================================================================ SECTIONS */
.section { padding-block: 30px; }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 16px;
}
.section-head h2 { font-size: clamp(19px, 2.6vw, 23px); font-weight: 700; letter-spacing: -0.02em; }
.section-head a {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 14px; font-weight: 600; color: var(--accent); white-space: nowrap;
}
.section-head a svg { width: 16px; height: 16px; }
.section-head a:hover { color: var(--accent-2); }

/* ================================================================== SHELF */
/* Horizontal scroll row, the way a store front shelves new releases. */
.shelf {
  display: grid; grid-auto-flow: column; grid-auto-columns: 152px;
  gap: 14px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent;
}
.shelf::-webkit-scrollbar { height: 8px; }
.shelf::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: var(--r-pill); }
.shelf::-webkit-scrollbar-track { background: transparent; }

.tile { scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; }
.tile .icon { width: 152px; height: 152px; }
.tile-name {
  font-size: 14px; font-weight: 600; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tile:hover .tile-name { color: var(--accent); }
.tile-meta { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--text-2); }

/* App icon: one shape, everywhere. */
.icon {
  position: relative; flex: none;
  border-radius: var(--r-icon); overflow: hidden;
  background: var(--surface-2);
  /* Many app icons have near-black artwork. A defined edge keeps them from
     dissolving into the card on a dark theme. */
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.icon img { width: 100%; height: 100%; object-fit: cover; }

/* =================================================================== GRID */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.card {
  display: flex; flex-direction: column;
  padding: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-card);
  transition: background var(--t), border-color var(--t), transform var(--t);
}
.card:hover { background: var(--surface-2); border-color: var(--border-2); transform: translateY(-2px); }

.card-top { display: flex; gap: 12px; align-items: flex-start; }
.card .icon { width: 56px; height: 56px; }
.card-heads { min-width: 0; flex: 1; overflow: hidden; }
.card-name {
  font-size: 15.5px; font-weight: 600; color: var(--text); margin-bottom: 3px;
  overflow-wrap: anywhere;
}
.card:hover .card-name { color: var(--accent); }
.card-dev { font-size: 12.5px; color: var(--text-2); }

.rating { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 12.5px; color: var(--text-2); min-width: 0; }
.rating .stars { display: inline-flex; gap: 1px; color: var(--accent); }
.star { width: 13px; height: 13px; }
.star--empty { color: var(--border-2); }
.rating b { color: var(--text); font-weight: 600; }

.card-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin: 12px 0 12px; padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 12.5px; color: var(--text-2);
}
.card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--border-2); }
.card-bonus { color: var(--accent); font-weight: 600; }
.card-cta { margin-top: auto; }

/* ---------------------------------------------------------------- rows */
/* Compact list, the store's "top charts" shape. */
.rows { display: grid; gap: 2px; }
.row {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center; gap: 14px;
  padding: 10px 12px;
  border-radius: var(--r-card);
  transition: background var(--t);
}
.row:hover { background: var(--surface); }
.row .icon { width: 56px; height: 56px; }
.row-name { font-size: 15.5px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.row:hover .row-name { color: var(--accent); }
.row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 3px; font-size: 12.5px; color: var(--text-2); }
.row-action { flex: none; }

/* ============================================================ APP DETAIL */
.crumbs { padding-block: 16px 0; font-size: 13px; color: var(--text-2); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.crumbs li { display: inline-flex; align-items: center; gap: 7px; }
.crumbs a:hover { color: var(--accent); }
.crumbs svg { width: 14px; height: 14px; opacity: 0.6; }

.app-head {
  position: relative; isolation: isolate;
  padding-block: 26px 30px;
  border-bottom: 1px solid var(--border);
}
.app-head > .wrap { position: relative; z-index: 2; }
/* The wash is the app's own icon, blown up and blurred. No extra asset. */
.app-head .hero-bg img { filter: blur(46px) saturate(1.5) brightness(1.25); transform: scale(1.6); }
.app-head .hero-veil {
  background: linear-gradient(100deg,
    rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.76) 38%,
    rgba(255,255,255,0.5) 72%, rgba(255,255,255,0.42) 100%);
}
.app-head h1, .app-head .stat-v { color: #14171c; }
.app-head .app-cat, .app-head .stat-l, .app-head .app-note { color: #40454d; }
.app-head .app-dev { color: #b31614; }
.app-head .stats { border-color: rgba(0, 0, 0, 0.18); background: rgba(255, 255, 255, 0.66); }
.app-head .stat { border-color: rgba(0, 0, 0, 0.14); }
.app-head .stat-v svg { color: #b31614; }
.app-head .chip { background: rgba(255, 255, 255, 0.72); border-color: rgba(0, 0, 0, 0.16); color: #33383f; }
.app-head-top { display: flex; gap: 18px; align-items: flex-start; }
.app-head .icon { width: 88px; height: 88px; }
.app-title { min-width: 0; flex: 1; }
.app-title h1 {
  font-size: clamp(24px, 5vw, 38px); font-weight: 700;
  letter-spacing: -0.025em; margin-bottom: 6px; overflow-wrap: anywhere;
}
.app-dev { font-size: 15px; color: var(--accent); font-weight: 600; }
.app-cat { font-size: 13.5px; color: var(--text-2); margin-top: 2px; }

/* The store's metadata strip: values over labels, hairline dividers. */
.stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
  border: 1px solid var(--border); border-radius: var(--r-card);
  overflow: hidden;
}
.stat { padding: 14px 12px; text-align: center; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat:nth-child(2n) { border-right: 0; }
.stat:nth-last-child(-n+2) { border-bottom: 0; }
.stat-v {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  font-size: 16px; font-weight: 700; color: var(--text);
}
.stat-v svg { width: 15px; height: 15px; color: var(--accent); }
.stat-l { display: block; margin-top: 3px; font-size: 12px; color: var(--text-2); }

.app-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.app-note { margin-top: 12px; font-size: 12.5px; color: var(--text-2); }

/* ------------------------------------------------------------- body copy */
.body-wrap { padding-block: 8px 34px; }
.body-grid { display: grid; gap: 26px; }

.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-card); padding: 20px 18px 24px;
}
.panel-head {
  display: flex; align-items: center; gap: 9px;
  font-size: 17px; font-weight: 700; margin-bottom: 14px;
}
.panel-head svg { width: 19px; height: 19px; color: var(--accent); flex: none; }

/* Text is never given its own measure. It fills whatever column it is in;
   the width cap lives on .wrap and on the grid columns, not on the copy. */
.article { max-width: none; }
.article > h1 {
  font-size: clamp(20px, 3.4vw, 26px); font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 14px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.article h2 {
  font-size: clamp(17px, 2.6vw, 20px); font-weight: 700;
  color: var(--text); margin: 30px 0 10px;
}
.article h3 { font-size: 15.5px; font-weight: 600; color: var(--text); margin: 20px 0 6px; }
.article p { font-size: 15.5px; line-height: 1.72; color: var(--text-2); margin-bottom: 13px; }
.article > p:first-of-type { color: var(--text); }

/* ------------------------------------------------------------------- FAQ */
/* Native <details>, so answers stay in the DOM for crawlers and find-in-page,
   and the whole thing is keyboard operable with no JavaScript. */
.faq { margin: 4px 0 6px; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }

.faq-item > summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 15px 2px;
  cursor: pointer; list-style: none;
  font-size: 15.5px; font-weight: 600; line-height: 1.45; color: var(--text);
  transition: color var(--t);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::marker { content: ""; }
.faq-item > summary:hover,
.faq-item[open] > summary { color: var(--accent); }
.faq-item > summary:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }

/* A plus that becomes a minus. */
.faq-mark { position: relative; flex: none; width: 16px; height: 16px; margin-top: 4px; }
.faq-mark::before, .faq-mark::after {
  content: ""; position: absolute; background: var(--accent); border-radius: 1px;
  transition: transform var(--t), opacity var(--t);
}
.faq-mark::before { left: 0; top: 7px; width: 16px; height: 2px; }
.faq-mark::after  { left: 7px; top: 0; width: 2px; height: 16px; }
.faq-item[open] .faq-mark::after { transform: rotate(90deg); opacity: 0; }

.faq-a { padding: 0 2px 16px; }
.faq-a p { font-size: 15px; line-height: 1.7; color: var(--text-2); margin-bottom: 10px; }
.faq-a p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------- app info */
.side { display: grid; gap: 16px; align-content: start; }
.info { display: grid; }
.info-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 11px 0; }
.info-row + .info-row { border-top: 1px solid var(--border); }
.info-row dt { font-size: 13.5px; color: var(--text-2); flex: none; }
.info-row dd {
  margin: 0; text-align: right; font-size: 13.5px; font-weight: 600; color: var(--text);
  overflow-wrap: anywhere;
}
.info-row dd.is-accent { color: var(--accent); }

.safety { border-color: rgba(255, 183, 77, 0.32); }
.safety .panel-head svg { color: var(--danger); }
.safety p { font-size: 13.5px; color: var(--text-2); line-height: 1.6; }

/* ================================================================ CLOSING */
.responsible { border-top: 1px solid var(--border); padding-block: 34px 38px; }
.responsible-inner { display: grid; gap: 18px; }
.age-badge {
  flex: none; display: grid; place-items: center;
  width: 76px; height: 76px; border-radius: var(--r-card);
  background: rgba(255, 183, 77, 0.12); border: 1px solid rgba(255, 183, 77, 0.35);
  color: var(--danger); font-size: 24px; font-weight: 700;
}
.responsible h2 { font-size: clamp(20px, 3.4vw, 26px); font-weight: 700; margin-bottom: 10px; }
.responsible p { color: var(--text-2); font-size: 15px; margin-bottom: 11px; }
.responsible ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* ================================================================= FOOTER */
.foot { border-top: 1px solid var(--border); background: var(--surface); }
.foot-grid { display: grid; gap: 26px; padding-block: 34px 26px; }
.foot-blurb { color: var(--text-2); font-size: 14px; margin-top: 12px; }
.foot h2 { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.foot-list { display: grid; gap: 9px; }
.foot-list a { font-size: 14px; color: var(--text-2); transition: color var(--t); }
.foot-list a:hover { color: var(--accent); }
.foot-bottom {
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
  padding-block: 16px 22px; border-top: 1px solid var(--border);
  font-size: 12.5px; color: var(--text-2);
}

/* ================================================================= TO TOP */
.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 150;
  display: grid; place-items: center; width: 46px; height: 46px; padding: 0;
  background: var(--accent-solid); color: var(--on-accent);
  border: 0; border-radius: var(--r-pill);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--t), transform var(--t), visibility var(--t), background var(--t);
}
.to-top svg { width: 20px; height: 20px; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: #ef3a37; }

/* ============================================================ BREAKPOINTS */
@media (min-width: 560px) {
  .wrap { padding-inline: 22px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat { border-bottom: 0; }
  .stat:nth-child(2n) { border-right: 1px solid var(--border); }
  .stat:last-child { border-right: 0; }
  .shelf { grid-auto-columns: 168px; }
  .tile .icon { width: 168px; height: 168px; }
}

@media (min-width: 900px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rows { grid-template-columns: repeat(2, minmax(0, 1fr)); display: grid; gap: 2px 20px; }
  .body-grid { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
  .side { position: sticky; top: calc(var(--head-h) + 18px); }
  .app-head .icon { width: 120px; height: 120px; }
  .responsible-inner { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 26px; }
  .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

@media (min-width: 1120px) {
  .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .body-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; }
}

/* =========================================================== REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .card:hover { transform: none; }
  .btn:active { transform: none; }
}

@media print {
  .appbar, .nav-mobile, .to-top, .side, .foot { display: none !important; }
  body { background: #fff; color: #000; }
}
