/* strona główna - układ jak krajopis.pl (site/glowna.css tam): góra z wyszukiwarką, najnowsza mapa przycięta do granic USA, wszystkie mapy,
   gry, filmy; sekcje oddzielone jasną kreską */
.wrap { width: 100%; max-width: 1600px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
:root { --sep: rgba(234, 228, 214, 0.26); }

/* ---------- góra ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px); gap: 28px 64px; align-items: end; padding-top: 76px; padding-bottom: 68px; }
.hero-h { margin: 0; font-stretch: 118%; font-weight: 800; font-size: clamp(40px, 6.2vw, 100px); line-height: 0.96; letter-spacing: -0.018em; text-wrap: balance; }
.hero-p { margin: 0 0 26px; max-width: 32em; font-size: 18px; line-height: 1.5; text-wrap: pretty; }
.find { position: relative; }
.find-l { display: block; margin: 0 0 8px; font-weight: 650; font-size: 16px; }
#hq { display: block; width: 100%; height: 60px; padding: 0 16px 0 50px; border: 2px solid var(--line); border-radius: 6px; color: var(--bone); font: 600 20px/1.2 var(--sans);
  background: var(--deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%238EA9BC' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='8.5' cy='8.5' r='6'/%3E%3Cpath d='M13 13l5 5'/%3E%3C/svg%3E") no-repeat 17px 50% / 20px 20px; }
#hq::placeholder { color: rgba(142, 169, 188, 0.8); font-weight: 520; }
#hq:focus { outline: none; border-color: var(--signal); }
.hm-sugg { top: 100%; margin-top: 6px; border-radius: 6px; box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45); }
.hm-sugg li { font-weight: 650; font-size: 17px; }
.find-hint { margin: 10px 0 0; max-width: 34em; font-stretch: 88%; font-size: 15px; line-height: 1.4; color: var(--line); }

/* ---------- najnowsza mapa ---------- */
.nowa { padding-bottom: 96px; }
.nm { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-areas: "map ." "map head" "map body" "map ."; grid-template-rows: 1fr auto auto 1fr;
  column-gap: 72px; padding-top: 60px; border-top: 1px solid var(--sep); }
.nm-head { grid-area: head; }
.nm-map { grid-area: map; align-self: center; display: block; max-width: 860px; }
.nm-map img { display: block; width: 100%; height: auto; transition: filter 0.25s ease; }
.nm-map:hover img { filter: brightness(1.06); }
.nm-body { grid-area: body; }
.nm-k { display: flex; align-items: center; gap: 9px; margin: 0; font-stretch: 88%; font-weight: 650; font-size: 15px; color: var(--line); }
.nm-k::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
.nm-h { margin: 12px 0 0; font-stretch: 118%; font-weight: 800; font-size: clamp(40px, 4.4vw, 70px); line-height: 0.96; letter-spacing: -0.02em; text-wrap: balance; }
.nm-h a { text-decoration: none; }
.nm-h a:hover { color: var(--signal); }
.nm-d { margin: 12px 0 0; max-width: 24em; font-family: var(--note); font-style: italic; font-size: 21px; line-height: 1.35; color: var(--line); }
.nm-f { margin-top: 36px; }
.nm-v { margin: 0; font-stretch: 125%; font-weight: 850; font-size: clamp(64px, 6.3vw, 100px); line-height: 0.88; letter-spacing: -0.025em; color: var(--signal); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nm-t { margin: 12px 0 0; max-width: 24em; font-size: 19px; line-height: 1.38; text-wrap: pretty; }
.nm-z { margin: 6px 0 0; font-stretch: 88%; font-size: 14px; line-height: 1.4; color: var(--line); }
.nm-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 26px; max-width: 520px; font-stretch: 85%; font-weight: 560; font-size: 14px; }
.nm-key span { display: inline-flex; align-items: center; gap: 8px; }
.nm-key i { width: 18px; height: 11px; border-radius: 2px; }
.nm-act { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 34px; }
.nm-btn { display: inline-flex; align-items: center; height: 52px; padding: 0 24px; border: 1.5px solid var(--signal); border-radius: 6px; background: var(--signal);
  color: var(--deep); font-weight: 720; font-size: 17px; text-decoration: none; transition: background-color 0.15s, border-color 0.15s; }
.nm-btn:hover { border-color: var(--bone); background: var(--bone); color: var(--deep); }
.nm-film a { display: flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1.3; }
.nm-film b { display: block; font-weight: 650; font-size: 16px; text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.nm-film b + span { display: block; margin-top: 2px; font-stretch: 85%; font-size: 14px; color: var(--line); }
.nm-play { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 1.5px solid var(--line); border-radius: 50%; }
.nm-play svg { width: 12px; height: 12px; margin-left: 2px; fill: var(--bone); }
.nm-film a:hover .nm-play { border-color: var(--signal); }
.nm-film a:hover b { color: var(--signal); }

/* ---------- sekcje: kreska u góry ---------- */
.atlas, .games, .films { padding-top: 40px; padding-bottom: 88px; border-top: 1px solid var(--sep); scroll-margin-top: calc(var(--top) + 8px); }
.atlas { border-top: 0; padding-top: 0; }
.atlas .sec-h { padding-top: 40px; border-top: 1px solid var(--sep); }
.sec-h { margin: 0 0 28px; font-stretch: 112%; font-weight: 760; font-size: 28px; line-height: 1.1; letter-spacing: -0.005em; }
.sec-h span { font-stretch: 85%; font-weight: 520; font-size: 17px; color: var(--line); }

.plates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 32px; margin: 0; padding: 0; list-style: none; }
.plate { display: block; text-decoration: none; color: var(--bone); border-radius: 6px; }
.plate img { display: block; width: 100%; height: auto; transition: transform 0.25s ease, filter 0.25s ease; }
.plate:hover img { transform: translateY(-4px); filter: brightness(1.07); }
.plate:focus-visible { outline: 2px solid var(--signal); outline-offset: 8px; }
.plate-n { display: block; margin: 12px 0 0; font-stretch: 108%; font-weight: 760; font-size: 21px; line-height: 1.15; }
.plate:hover .plate-n { color: var(--signal); }
.plate-d { display: block; margin: 4px 0 0; max-width: 22em; font-family: var(--note); font-style: italic; font-size: 17px; line-height: 1.35; color: var(--line); }
.plate-new { display: inline-block; padding: 1px 6px 2px; border-radius: 3px; background: var(--signal); color: var(--deep); font-stretch: 88%; font-weight: 700; font-size: 12px;
  line-height: 1.3; vertical-align: 3px; }
.plate-soon { display: grid; place-items: center; min-height: 180px; border: 1px dashed var(--sep); border-radius: 8px; padding: 20px; text-align: center;
  font-family: var(--note); font-style: italic; font-size: 17px; color: var(--line); }

.hm-games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.hm-game { display: flex; gap: 18px; padding: 24px; border: 1px solid var(--rule); border-radius: 10px; background: var(--deep); text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
.hm-game:hover { border-color: var(--signal); transform: translateY(-2px); color: var(--bone); }
.hm-game-i { display: grid; place-items: center; flex: none; width: 58px; height: 58px; border-radius: 14px; background: rgba(255, 194, 26, 0.14); color: var(--signal);
  font-stretch: 120%; font-weight: 850; font-size: 30px; }
.hm-game-i svg { width: 30px; height: 30px; fill: rgba(255, 194, 26, 0.25); stroke: var(--signal); stroke-width: 1.8; stroke-linejoin: round; }
.hm-game-b { display: flex; flex-direction: column; gap: 6px; }
.hm-game-b b { font-stretch: 105%; font-weight: 780; font-size: 22px; line-height: 1.15; }
.hm-game-b > span { font-size: 16px; color: var(--line); line-height: 1.45; }
.hm-game-b .hm-play { align-self: flex-start; margin-top: 8px; padding: 8px 18px; border-radius: 6px; background: var(--signal); color: var(--deep); font-weight: 760; font-size: 15px; }

.fm { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px 48px; align-items: start; }
.thumb { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 6px; background: var(--deep); }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.thumb:hover img { transform: scale(1.03); }
.thumb-p { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(11, 34, 54, 0.84); }
.thumb-p svg { width: 14px; height: 14px; margin-left: 2px; fill: var(--bone); }
.fm-t { margin: 18px 0 8px; font-stretch: 110%; font-weight: 780; font-size: 30px; line-height: 1.1; letter-spacing: -0.005em; max-width: 24em; }
.fm-t a { text-decoration: none; }
.fm-t a:hover { color: var(--signal); }
.fm-meta { margin: 0 0 4px; font-stretch: 85%; font-size: 15px; color: var(--line); }
.fm-map { margin: 0; font-size: 16px; }
.fm-map a { font-weight: 650; }
.fm-side { font-family: var(--note); font-style: italic; font-size: 18px; line-height: 1.45; color: var(--line); }
.fm-all { margin: 26px 0 0; font-size: 16px; }
.fm-all a { font-weight: 650; }

@media (max-width: 1023px) {
  .plates { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
}
@media (max-width: 900px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hero { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 20px; padding-top: 36px; padding-bottom: 40px; }
  .hero-h { font-size: clamp(40px, 11vw, 64px); }
  .hero-p { font-size: 17px; margin-bottom: 20px; }
  #hq { height: 54px; font-size: 18px; }
  .nowa { padding-bottom: 56px; }
  .nm { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "map" "body"; grid-template-rows: auto; padding-top: 36px; row-gap: 20px; }
  .nm-h { font-size: clamp(34px, 9.5vw, 52px); }
  .nm-d { font-size: 18px; }
  .nm-f { margin-top: 6px; }
  .nm-v { font-size: clamp(56px, 16vw, 80px); }
  .nm-t { font-size: 17px; }
  .nm-act { margin-top: 26px; gap: 16px 22px; }
  .atlas, .games, .films { padding-bottom: 56px; }
  .atlas .sec-h, .games, .films { padding-top: 28px; }
  .sec-h { font-size: 24px; margin-bottom: 20px; }
  .hm-games { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .hm-game { padding: 18px; gap: 14px; }
  .hm-game-i { width: 48px; height: 48px; font-size: 25px; }
  .fm { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .fm-t { font-size: 24px; margin-top: 14px; }
}
@media (max-width: 520px) {
  .plates { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- gry: dwa równe kafle jak na krajopis.pl (grafika po lewej, przycisk Play w obu na tej samej wysokości) ---------- */
.gb-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.gb { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 26px; align-items: stretch; padding: 22px 26px 22px 22px;
  border: 1px solid var(--rule); border-radius: 10px; background: var(--deep); color: var(--bone); text-decoration: none; transition: border-color 0.15s; }
.gb:hover { border-color: var(--line); color: var(--bone); }
.gb-fig { display: block; align-self: center; width: 132px; height: 120px; }
.gb-fig svg { display: block; width: 100%; height: 100%; overflow: visible; }
.gb-fig path { fill: var(--bone); stroke: var(--bone); stroke-width: 1px; vector-effect: non-scaling-stroke; stroke-linejoin: round; fill-rule: evenodd; transition: fill 0.2s; }
.gb:hover .gb-fig path { fill: var(--signal); stroke: var(--signal); }
.gb-txt { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.gb-h { margin: 0; font-stretch: 112%; font-weight: 780; font-size: 26px; line-height: 1.1; letter-spacing: -0.005em; }
.gb-d { display: block; margin: 8px 0 16px; max-width: 34em; font-size: 16px; line-height: 1.42; color: var(--line); text-wrap: pretty; }
.gb-go { margin-top: auto; padding: 9px 20px; border-radius: 6px; background: var(--signal); color: var(--deep); font-weight: 720; font-size: 15px; line-height: 1.3; }
.gb:hover .gb-go { background: var(--bone); }
.gb:hover .gb-h { color: var(--signal); }
.qb-fig .qb-r { fill: rgba(234, 228, 214, 0.1); stroke: rgba(142, 169, 188, 0.45); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.qb-fig .qb-t { fill: rgba(234, 228, 214, 0.42); }
.qb-fig .qb-on { fill: var(--bone); transition: fill 0.2s; }
.qb-fig .qb-on-t { fill: var(--deep); opacity: 0.55; }
.qb-fig .qb-ok { fill: none; stroke: var(--deep); stroke-width: 2.6px; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.qb:hover .qb-fig .qb-on { fill: var(--signal); }
@media (max-width: 900px) {
  .gb-duo { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .gb { grid-template-columns: 96px minmax(0, 1fr); gap: 18px; padding: 18px; }
  .gb-fig { width: 96px; height: 88px; }
  .gb-h { font-size: 22px; }
  .gb-d { font-size: 15px; margin-bottom: 14px; }
}
