/* SDH Přední Ptákovice – Podsrp */
:root {
  --ink: #1b1813;
  --ink-2: #4a443b;
  --muted: #7a7266;
  --bg: #fbf8f3;
  --paper: #f3ede3;
  --tint: #f7f1e8;
  --line: #e4dbcd;
  --card: #ffffff;
  --fire: #c62828;
  --fire-2: #e53935;
  --fire-ink: #fff;
  --brass: #c9a227;
  --night: #16130f;
  --night-2: #221d17;
  --night-line: #3a3229;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(27, 24, 19, .06), 0 8px 24px rgba(27, 24, 19, .08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --head: "Bahnschrift", "DIN Alternate", "Arial Narrow", system-ui, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.65 var(--font); color: var(--ink); background: var(--bg); overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: var(--fire); }
h1, h2, h3 { font-family: var(--head); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; margin-top: 2rem; }

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

.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--fire); margin-bottom: .6rem; }

/* Buttons & chips */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .85em 1.4em; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 700; transition: transform .15s, background .15s, border-color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn--fire { background: var(--fire); color: var(--fire-ink); }
.btn--fire:hover { background: var(--fire-2); }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }

.chip { font: inherit; font-size: .9rem; font-weight: 600; padding: .45em 1em; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); cursor: pointer; transition: all .15s; }
.chip:hover { border-color: var(--ink-2); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.pill { display: inline-block; font-size: .8rem; background: var(--fire); color: #fff; border-radius: 999px; padding: .1em .7em; vertical-align: middle; font-family: var(--font); }

/* Topbar */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(22, 19, 15, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; border-bottom: 1px solid rgba(255,255,255,.06); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: .7rem; color: #fff; text-decoration: none; }
.brand img { width: 36px; height: auto; background: #fff; border-radius: 8px; padding: 2px; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand__txt b { font-family: var(--head); font-size: 1.05rem; }
.brand__txt small { font-size: .74rem; opacity: .7; }
.nav { display: flex; gap: .2rem; align-items: center; }
.nav a { color: rgba(255,255,255,.82); text-decoration: none; font-weight: 600; font-size: .94rem; padding: .5em .8em; border-radius: 8px; }
.nav a:hover, .nav a.is-active { color: #fff; background: rgba(255,255,255,.08); }
.nav a.nav__cta { background: var(--fire); color: #fff; margin-left: .4rem; }
.nav a.nav__cta:hover { background: var(--fire-2); }
.navtoggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.navtoggle span { display: block; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.navtoggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navtoggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navtoggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--night); }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,13,10,.92) 0%, rgba(16,13,10,.7) 45%, rgba(16,13,10,.15) 100%), linear-gradient(0deg, rgba(16,13,10,.6), transparent 40%); }
.hero__in { position: relative; z-index: 1; padding-top: 4rem; padding-bottom: 5rem; }
.hero .eyebrow { color: #ffb4a8; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); font-weight: 800; max-width: 20ch; margin-bottom: .35em; }
.hero h1 span { display: block; color: var(--fire-2); margin-top: .1em; }
.hero__lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); max-width: 34rem; opacity: .9; }
.hero__btns { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero__scroll { position: absolute; z-index: 1; left: 50%; bottom: 24px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255,255,255,.6); border-radius: 14px; }
.hero__scroll::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: #fff; border-radius: 2px; animation: sc 1.8s infinite; }
@keyframes sc { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Stats */
.stats { background: var(--fire); color: #fff; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 1.8rem 1rem; text-align: center; border-left: 1px solid rgba(255,255,255,.2); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-family: var(--head); font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { font-size: .9rem; opacity: .9; }

/* Sections */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section--dark { background: var(--night); color: #efe9df; }
.section--dark h2 { color: #fff; }
.section--tint { background: var(--tint); }
.section--paper { background: var(--paper); }
.sechead { max-width: 46rem; margin-bottom: 2.5rem; }
.sechead__lead { font-size: 1.1rem; color: var(--ink-2); }
.subhead { margin-top: 3.5rem; }

/* History */
.history { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
.history__photo { margin: 0; position: sticky; top: 90px; }
.history__photo img { border-radius: var(--radius); box-shadow: var(--shadow); filter: sepia(.25) contrast(1.05); }
.history__photo figcaption { font-size: .88rem; color: var(--muted); margin-top: .6rem; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 62px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 62px 1fr; gap: 1.5rem; padding: .3rem 0 1.1rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 56px; top: .55rem; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--fire); }
.timeline time { font-family: var(--head); font-weight: 700; font-size: 1.15rem; color: var(--fire); }
.timeline p { margin: 0; padding-left: .6rem; }
.longread { margin-top: 2.5rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.longread summary { cursor: pointer; padding: 1.1rem 1.4rem; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.longread summary::-webkit-details-marker { display: none; }
.longread summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--fire); transition: transform .2s; }
.longread[open] summary::after { transform: rotate(45deg); }
.longread__body { padding: 0 1.4rem 1.6rem; max-width: 52rem; }
.longread__body h3 { margin-top: 1.8rem; color: var(--fire); }

/* Technika */
.tech { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3.5rem; align-items: center; }
.tech__img { position: relative; }
.tech__img img { border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.tech__badge { position: absolute; right: -14px; bottom: -18px; background: var(--brass); color: var(--night); font-family: var(--head); font-weight: 800; font-size: 1.5rem; padding: .7rem 1.1rem; border-radius: 12px; line-height: 1.1; box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.tech__badge small { display: block; font-family: var(--font); font-size: .75rem; font-weight: 600; }
.specs { margin: 1.5rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--night-line); border: 1px solid var(--night-line); border-radius: 12px; overflow: hidden; }
.specs div { background: var(--night-2); padding: .8rem 1rem; }
.specs dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: #a99e8e; }
.specs dd { margin: .15rem 0 0; font-weight: 600; color: #fff; }

/* Sbor */
.committee { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; grid-auto-rows: 1fr; }
.person { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; display: flex; gap: .9rem; align-items: center; }
.person--lead { border-color: var(--fire); box-shadow: inset 4px 0 0 var(--fire); }
.avatar { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--ink-2); font-family: var(--head); font-weight: 700; }
.person--lead .avatar { background: var(--fire); color: #fff; }
.person b { display: block; line-height: 1.25; }
.person span { font-size: .84rem; color: var(--muted); }
.members { margin-top: 3rem; }
.members__head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5rem; border-bottom: 2px solid var(--ink); padding-bottom: .6rem; margin-bottom: 1rem; }
.members__head h3 { margin: 0; }
.members__head p { margin: 0; color: var(--muted); font-size: .9rem; }
.members__list { list-style: none; padding: 0; margin: 0; columns: 4 210px; column-gap: 2rem; }
.members__list li { break-inside: avoid; display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px dashed var(--line); }
.members__list .yr { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .9rem; }

/* Výsledky */
.medals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2.2rem; }
.medal { background: var(--card); border-radius: var(--radius); padding: 1.2rem 1.4rem; display: flex; align-items: center; gap: 1rem; box-shadow: var(--shadow); }
.medal__ico { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-family: var(--head); font-weight: 800; font-size: 1.4rem; color: #3b2f05; flex: none; }
.medal--1 .medal__ico { background: linear-gradient(145deg, #f5d76e, #c9a227); }
.medal--2 .medal__ico { background: linear-gradient(145deg, #e8e8e8, #a9a9a9); }
.medal--3 .medal__ico { background: linear-gradient(145deg, #e8b08a, #b0703f); color: #3a1d08; }
.medal b { font-family: var(--head); font-size: 1.8rem; line-height: 1; display: block; }
.medal span { color: var(--muted); font-size: .9rem; }
.years { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .4rem; margin-bottom: 1rem; scrollbar-width: thin; }
.years button { flex: none; font: inherit; font-weight: 700; font-family: var(--head); font-size: 1.05rem; padding: .5em 1em; border-radius: 10px; border: 1px solid var(--line); background: var(--card); cursor: pointer; color: var(--ink-2); }
.years button[aria-selected="true"] { background: var(--fire); border-color: var(--fire); color: #fff; }
.results { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.rtable { width: 100%; border-collapse: collapse; }
.rtable th, .rtable td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.rtable thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--tint); }
.rtable tbody tr:last-child td { border-bottom: 0; }
.rtable .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rtable .place { font-weight: 700; }
.rtable .note { display: inline-block; font-size: .78rem; color: var(--ink-2); background: var(--paper); padding: .05em .55em; border-radius: 6px; margin-left: .35rem; }
.pos { display: inline-grid; place-items: center; min-width: 2.2em; height: 2.2em; padding: 0 .4em; border-radius: 999px; font-weight: 800; font-size: .9rem; background: var(--paper); }
.pos--1 { background: #f5d76e; } .pos--2 { background: #dcdcdc; } .pos--3 { background: #e8b08a; }
.pos--x { background: transparent; color: var(--muted); font-weight: 600; }

/* Galerie */
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; }
.album { position: relative; display: block; border: 0; padding: 0; background: var(--night); border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; cursor: pointer; text-align: left; font: inherit; color: #fff; }
.album img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, opacity .3s; }
.album:hover img { transform: scale(1.05); }
.album::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,0) 55%); }
.album__meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem 1.1rem; z-index: 1; }
.album__meta b { display: block; font-family: var(--head); font-size: 1.15rem; line-height: 1.2; }
.album__meta span { font-size: .85rem; opacity: .85; }
.album__count { position: absolute; top: .8rem; right: .8rem; z-index: 1; background: rgba(0,0,0,.55); padding: .2em .65em; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.album[hidden] { display: none; }
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--night-2) center / cover no-repeat; border: 0; padding: 0; cursor: pointer; color: #fff; font: inherit; text-align: left; }
.video::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.85), rgba(0,0,0,.1) 70%); }
.video__play { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%; background: var(--fire); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.4); transition: transform .15s; }
.video__play::after { content: ""; border-left: 16px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 4px; }
.video:hover .video__play { transform: translate(-50%, -50%) scale(1.08); }
.video__t { position: absolute; left: .8rem; right: .8rem; bottom: .6rem; font-weight: 700; font-size: .92rem; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Kronika */
.chronicle { display: grid; gap: 0; }
.cyear { display: grid; grid-template-columns: 110px 1fr; gap: 1.5rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.cyear:first-child { border-top: 0; }
.cyear__y { font-family: var(--head); font-weight: 800; font-size: 2.2rem; color: var(--fire); line-height: 1; position: sticky; top: 84px; align-self: start; }
.cyear__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.entry { background: var(--card); border-radius: 12px; padding: 1.1rem 1.25rem; border: 1px solid var(--line); display: flex; flex-direction: column; }
.entry__top { display: flex; align-items: center; gap: .6rem; font-size: .8rem; color: var(--muted); margin-bottom: .4rem; }
.tag { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .15em .6em; border-radius: 6px; background: var(--paper); color: var(--ink-2); }
.tag--soutez { background: #fde7c6; color: #7a4a00; }
.tag--cviceni { background: #fbd4d0; color: #8e1c14; }
.tag--schuze { background: #dfe6f3; color: #263f6e; }
.tag--setkani { background: #dcefd9; color: #24572a; }
.tag--sbor { background: #ece4f6; color: #4b2b74; }
.entry h3 { font-size: 1.12rem; margin-bottom: .4rem; }
.entry__body { font-size: .95rem; color: var(--ink-2); }
.entry__body p:last-child { margin-bottom: 0; }
.entry__body.is-clamped { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.entry__more { background: none; border: 0; padding: 0; margin-top: .4rem; color: var(--fire); font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; align-self: flex-start; }
.entry__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: .8rem; }
.entry__actions button, .entry__actions a { font: inherit; font-size: .85rem; font-weight: 600; background: var(--tint); border: 1px solid var(--line); border-radius: 8px; padding: .35em .75em; color: var(--ink); text-decoration: none; cursor: pointer; display: inline-flex; align-items: center; gap: .4em; }
.entry__actions button:hover, .entry__actions a:hover { border-color: var(--ink-2); }
.entry__thumb { margin: -1.1rem -1.25rem .9rem; aspect-ratio: 16/8; overflow: hidden; border-radius: 12px 12px 0 0; cursor: pointer; }
.entry__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Kontakt */
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
.contact address { font-style: normal; font-size: 1.2rem; line-height: 1.6; margin: 1rem 0 1.6rem; }
.contact__card { background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--radius); padding: 2rem; display: flex; gap: 1.4rem; align-items: center; }
.contact__card img { width: 90px; background: #fff; border-radius: 12px; padding: 6px; flex: none; }
.contact__card p { margin: 0; color: #cfc6b8; }

.footer { background: #0f0d0a; color: #9b9183; font-size: .9rem; }
.footer__in { display: flex; justify-content: space-between; padding: 1.4rem 20px; flex-wrap: wrap; gap: .5rem; }
.footer a { color: #fff; text-decoration: none; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: #0b0a08; color: #fff; display: flex; flex-direction: column; }
.lb[hidden] { display: none; }
.lb__bar { display: flex; align-items: center; gap: 1rem; padding: .7rem 1rem; }
.lb__title { font-weight: 700; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb__count { opacity: .7; font-variant-numeric: tabular-nums; font-size: .9rem; }
.lb__btn { background: rgba(255,255,255,.1); border: 0; color: #fff; width: 42px; height: 42px; border-radius: 50%; font-size: 1.1rem; cursor: pointer; }
.lb__btn:hover { background: rgba(255,255,255,.2); }
.lb__stage { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; touch-action: pan-y; user-select: none; }
.lb__stage img { max-width: calc(100% - 140px); max-height: 100%; object-fit: contain; border-radius: 4px; transition: opacity .2s; }
.lb__stage img.is-loading { opacity: .3; }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.lb__nav:hover { background: rgba(255,255,255,.22); }
.lb__nav--prev { left: 14px; } .lb__nav--next { right: 14px; }
.lb__thumbs { display: flex; gap: 6px; overflow-x: auto; padding: .7rem 1rem 1rem; scrollbar-width: thin; }
.lb__thumbs button { flex: none; width: 76px; height: 56px; border: 2px solid transparent; border-radius: 6px; overflow: hidden; padding: 0; background: #222; cursor: pointer; opacity: .55; }
.lb__thumbs button.is-on { border-color: var(--fire-2); opacity: 1; }
.lb__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lb.is-grid .lb__stage { display: none; }
.lb.is-grid .lb__thumbs { flex: 1; flex-wrap: wrap; align-content: flex-start; overflow-y: auto; justify-content: center; }
.lb.is-grid .lb__thumbs button { width: 150px; height: 112px; opacity: 1; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll::after { animation: none; }
}

/* Responsive */
@media (max-width: 980px) {
  .navtoggle { display: block; }
  .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--night); }
  .nav { position: fixed; top: 64px; left: 0; right: 0; bottom: 0; background: var(--night); flex-direction: column; align-items: stretch; padding: 1rem 20px; gap: .2rem; transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility .25s; overflow-y: auto; }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a { font-size: 1.15rem; padding: .9em 1em; border-bottom: 1px solid rgba(255,255,255,.06); border-radius: 0; }
  .nav a.nav__cta { margin: 1rem 0 0; border-radius: 10px; text-align: center; border: 0; }
  .history, .tech, .contact { grid-template-columns: 1fr; gap: 2rem; }
  .history__photo { position: static; }
  .tech__badge { right: 10px; bottom: -16px; font-size: 1.2rem; }
  .medals { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 700px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 16px; }
  .hero { min-height: 86vh; }
  .hero::after { background: linear-gradient(0deg, rgba(16,13,10,.95) 0%, rgba(16,13,10,.75) 55%, rgba(16,13,10,.35) 100%); }
  .hero__bg { object-position: 70% 50%; }
  .hero__scroll { display: none; }
  .hero__in { padding-top: 6rem; padding-bottom: 3rem; align-self: flex-end; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 1.3rem .6rem; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.2); }
  .timeline::before { left: 56px; }
  .timeline li { grid-template-columns: 44px 1fr; gap: 1.6rem; }
  .timeline li::before { left: 50px; }
  .timeline time { font-size: 1rem; }
  .specs { grid-template-columns: 1fr; }
  .medals { grid-template-columns: 1fr; gap: .6rem; }
  .medal { padding: .9rem 1.1rem; }
  .rtable thead { display: none; }
  .rtable, .rtable tbody, .rtable tr, .rtable td { display: block; width: 100%; }
  .rtable tr { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
  .rtable td { border: 0; padding: 0; }
  .rtable td.place { grid-column: 1 / -1; }
  .rtable td[data-l]::before { content: attr(data-l) " "; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-right: .3rem; }
  .rtable td.num { text-align: left; }
  .rtable td.empty { display: none; }
  .cyear { grid-template-columns: 1fr; gap: .8rem; }
  .cyear__y { position: static; font-size: 1.8rem; }
  .cyear__list { grid-template-columns: 1fr; }
  .albums { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .album__meta { padding: .7rem .8rem; }
  .album__meta b { font-size: .98rem; }
  .album__meta span { font-size: .76rem; }
  .album__count { top: .5rem; right: .5rem; font-size: .72rem; }
  .videos { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .video { aspect-ratio: 4 / 3; }
  .video__t { font-size: .8rem; left: .6rem; right: .6rem; }
  .video__play { width: 40px; height: 40px; top: 36%; }
  .video__play::after { border-left-width: 13px; border-top-width: 8px; border-bottom-width: 8px; margin-left: 3px; }
  .contact__card { flex-direction: column; text-align: center; }
  .lb__stage img { max-width: 100%; }
  .lb__nav { display: none; }
  .lb.is-grid .lb__thumbs button { width: calc(33.33% - 4px); height: auto; aspect-ratio: 1; }
}
@media (max-width: 380px) {
  .albums, .videos { grid-template-columns: 1fr; }
}
