/* Strzelnica „Dębowy Wąwóz" — jeden arkusz, bez JS, bez frameworków. */

:root {
  --sand:    #F4EEE2;
  --sand-2:  #E8DFCC;
  --sand-3:  #D8CCB2;
  --bark:    #2A2118;
  --forest:  #1B2716;
  --forest-2:#26361F;
  --moss:    #4C6B3C;
  --oak:     #8B5A2B;
  --ember:   #A8461A;
  --paper:   #FBF8F1;

  --measure: 34rem;
  --gap: clamp(1rem, 3vw, 2rem);
  --pad-y: clamp(3.5rem, 9vw, 7rem);
  --radius: 3px;

  --display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  color-scheme: light;
  accent-color: var(--oak);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
@media (min-width: 60rem) { html { scroll-padding-top: 4.5rem; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--bark);
  font-family: var(--text);
  font-size: clamp(1rem, 0.96rem + 0.25vw, 1.0625rem);
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

::selection { background: var(--oak); color: var(--paper); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 2px; }

img { max-width: 100%; display: block; }

a { color: var(--oak); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ember); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0 0 0.6em;
}

h2 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3.1rem); }
h3 { font-size: clamp(1.1rem, 1rem + 0.6vw, 1.35rem); letter-spacing: -0.01em; }

p { margin: 0 0 1em; max-width: var(--measure); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--forest); color: var(--sand); padding: 0.7rem 1.1rem;
}
.skip:focus { left: 0; }

.wrap { width: min(72rem, 100% - 2 * var(--gap)); margin-inline: auto; }

/* ---------- topbar ---------- */

.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; flex-wrap: wrap; align-items: center;
  column-gap: var(--gap); row-gap: 0.15rem;
  padding: 0.6rem var(--gap);
  background: rgba(27, 39, 22, 0.94);
  color: var(--sand);
  border-bottom: 1px solid rgba(244, 238, 226, 0.14);
}
@supports (backdrop-filter: blur(8px)) {
  .topbar { background: rgba(27, 39, 22, 0.82); backdrop-filter: blur(10px) saturate(1.1); }
}

.topbar__mark {
  font-family: var(--display); font-weight: 900; font-size: 1.05rem;
  letter-spacing: -0.02em; color: var(--sand); text-decoration: none; white-space: nowrap;
}
.topbar__mark:hover { color: var(--sand); }

.topbar__nav {
  order: 3; width: 100%; flex: 1 0 100%;
  display: flex; gap: 1.25rem;
  font-size: 0.875rem; letter-spacing: 0.01em;
  overflow-x: auto; scrollbar-width: none;
  padding-bottom: 0.15rem;
}
.topbar__nav::-webkit-scrollbar { display: none; }
.topbar__nav a { white-space: nowrap; }
.topbar__nav a {
  color: rgba(244, 238, 226, 0.82); text-decoration: none;
  padding-block: 0.35rem; border-bottom: 2px solid transparent;
}
.topbar__nav a:hover { color: var(--sand); border-bottom-color: var(--oak); }

.topbar__tel {
  margin-left: auto;
  font-weight: 600; font-size: 0.9rem; white-space: nowrap;
  color: var(--forest); background: var(--sand);
  padding: 0.45rem 0.85rem; border-radius: 100px; text-decoration: none;
  transition: background 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
.topbar__tel:hover { background: #fff; color: var(--forest); }

@media (min-width: 60rem) {
  .topbar__nav { order: 0; width: auto; flex: 1; overflow: visible; padding-bottom: 0; }
  .topbar__tel { margin-left: 0; }
}

/* ---------- hero ---------- */

.hero { position: relative; background: var(--forest); isolation: isolate; }

.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 42%;
  z-index: -2;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20, 29, 16, 0.55) 0%, rgba(20, 29, 16, 0.2) 35%, rgba(20, 29, 16, 0.92) 100%),
    linear-gradient(85deg, rgba(20, 29, 16, 0.75) 0%, rgba(20, 29, 16, 0.1) 62%);
}

.hero__body {
  position: relative;
  width: min(72rem, 100% - 2 * var(--gap));
  margin-inline: auto;
  padding-block: clamp(6rem, 22vh, 11rem) clamp(2.5rem, 6vw, 4rem);
  color: var(--sand);
  animation: rise 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(1.2rem); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}
@media (prefers-reduced-motion: reduce) { .hero__body { animation: none; } }

.hero__where {
  font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--sand-3); margin-bottom: 1.1rem;
}

.hero__title {
  font-size: clamp(2.9rem, 1.4rem + 8vw, 6rem);
  font-weight: 900; letter-spacing: -0.035em; margin-bottom: 0.35em;
  text-shadow: 0 2px 24px rgba(12, 18, 9, 0.5);
}
.hero__title em {
  font-style: normal; font-weight: 500;
  color: #E4C79A;
}

.hero__lead {
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem);
  color: #E3DCCC; max-width: 30rem; line-height: 1.55;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font: inherit; font-weight: 600;
  padding: 0.85rem 1.5rem;
  background: var(--ember); color: var(--paper);
  border: 1px solid var(--ember);
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(20, 29, 16, 0.28);
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 180ms ease, background 180ms ease;
}
.btn:hover {
  background: #8E3A13; color: var(--paper);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(20, 29, 16, 0.34);
}
.btn:active { transform: none; }

.btn--ghost {
  background: transparent; color: var(--sand);
  border-color: rgba(244, 238, 226, 0.5); box-shadow: none;
}
.btn--ghost:hover { background: rgba(244, 238, 226, 0.12); color: var(--sand); box-shadow: none; }

@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* ---------- alert ---------- */

.alert {
  background: var(--sand-2);
  border-top: 3px solid var(--ember);
  padding: clamp(1.4rem, 4vw, 2.2rem) var(--gap);
}
.alert__head {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.2rem, 1rem + 1.4vw, 1.75rem);
  letter-spacing: -0.02em; line-height: 1.2;
  color: var(--bark);
  max-width: none;
  width: min(72rem, 100%); margin-inline: auto; margin-bottom: 0.4rem;
}
.alert__sub {
  width: min(72rem, 100%); margin-inline: auto; max-width: none;
  color: #4A3E31; margin-bottom: 0;
}
.alert__sub a { color: var(--ember); font-weight: 600; }

/* ---------- sections ---------- */

.section { padding-block: var(--pad-y); }
.section--sand { background: var(--sand); }
.section--dark { background: var(--forest); color: var(--sand); }
.section--dark h2, .section--dark h3 { color: var(--sand); }
.section--dark a { color: #E4C79A; }
.section--dark a:hover { color: #F2DFBE; }

.lede { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.2rem); line-height: 1.6; }

.note {
  font-size: 0.875rem; line-height: 1.55; color: #5C5044;
  border-top: 1px solid var(--sand-3); padding-top: 0.8rem; margin-top: 1.5rem;
}
.note--dark { color: #B9B39F; border-top-color: rgba(244, 238, 226, 0.2); max-width: 46rem; }

.wrap--split {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (min-width: 56rem) {
  .wrap--split { grid-template-columns: 1fr 1fr; align-items: center; }
  .wrap--split-rev .split__text { order: 2; }
}

.split__fig { margin: 0; }
.split__fig img {
  width: 100%; height: auto; border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(30, 24, 16, 0.22);
}
.split__fig figcaption {
  font-size: 0.83rem; color: #6B5F51; margin-top: 0.7rem;
  border-left: 1px solid var(--sand-3); padding-left: 0.7rem;
}

/* ---------- facts ---------- */

.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.2rem 1.5rem; margin: 1.8rem 0 0; padding: 0;
  border-top: 1px solid var(--sand-3);
}
.facts > div { padding: 0.9rem 0; border-bottom: 1px solid var(--sand-3); }
.facts dt {
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--moss); margin-bottom: 0.15rem;
}
.facts dd {
  margin: 0; font-family: var(--display); font-weight: 700;
  font-size: 1.15rem; letter-spacing: -0.015em;
}

/* ---------- dla kogo ---------- */

.whom {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0;
  border-top: 1px solid rgba(244, 238, 226, 0.2);
}
.whom li {
  padding: clamp(1.3rem, 3vw, 2rem) 0;
  border-bottom: 1px solid rgba(244, 238, 226, 0.2);
}
.whom h3 { margin-bottom: 0.35rem; }
.whom p { color: #CFC9B8; margin: 0; max-width: 44rem; }

@media (min-width: 56rem) {
  .whom { grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 5vw, 4rem); }
  .whom li:nth-last-child(-n+2) { border-bottom: none; }
}

/* ---------- broń ---------- */

.guns { margin: 0 0 0.5rem; padding: 0; list-style: none; max-width: var(--measure); }
.guns li {
  padding: 0.65rem 0 0.65rem 1.6rem; position: relative;
  border-bottom: 1px solid var(--sand-3);
}
.guns li::before {
  content: ""; position: absolute; left: 0; top: 1.15rem;
  width: 8px; height: 8px; border-radius: 50%;
  border: 2px solid var(--oak);
}

/* ---------- galeria ---------- */

.gal {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 56rem) { .gal { grid-template-columns: repeat(4, 1fr); } }
.gal__item { margin: 0; }
.gal__item--wide { grid-column: 1 / -1; }
.gal__item img {
  width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(30, 24, 16, 0.18);
}
.gal__item--wide img { aspect-ratio: 16 / 9; }
.gal__item figcaption { font-size: 0.83rem; color: #6B5F51; margin-top: 0.55rem; }

/* ---------- opinie ---------- */

.rating { display: flex; align-items: baseline; gap: 0.6rem; margin-bottom: 2.2rem; }
.rating strong {
  font-family: var(--display); font-weight: 900; font-size: 2.6rem;
  letter-spacing: -0.03em; color: #E4C79A; line-height: 1;
}
.rating span { color: #B9B39F; font-size: 0.95rem; }

.quotes {
  display: grid; gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 42rem) { .quotes { grid-template-columns: 1fr 1fr; } }
.quotes blockquote { margin: 0; }
.quotes p {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  line-height: 1.45; letter-spacing: -0.015em;
  color: var(--sand); margin-bottom: 0.8rem; max-width: none;
}
.quotes cite {
  font-style: normal; font-size: 0.8rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: #A9A390;
}

.link-out { font-weight: 600; }
#opinie .link-out { display: inline-block; margin-top: 2.5rem; }

/* ---------- kontakt ---------- */

.contact-tel { font-family: var(--display); font-weight: 900; letter-spacing: -0.03em; margin-bottom: 0.4rem; }
.contact-tel a { font-size: clamp(2rem, 1.4rem + 3vw, 3rem); text-decoration: none; color: var(--bark); }
.contact-tel a:hover { color: var(--ember); }

address {
  font-style: normal; line-height: 1.8; margin: 1.5rem 0;
  padding-left: 1rem; border-left: 1px solid var(--sand-3);
}
.mono {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 0.82rem; color: #6B5F51; font-variant-numeric: tabular-nums;
}

.hours-head { margin-top: 2.5rem; }
.hours { border-collapse: collapse; width: 100%; max-width: var(--measure); }
.hours th, .hours td { text-align: left; padding: 0.7rem 0; border-bottom: 1px solid var(--sand-3); }
.hours th { font-weight: 500; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

.mapcard {
  display: grid; gap: 0.4rem; align-content: center; justify-items: start;
  min-height: 15rem; padding: clamp(1.5rem, 4vw, 2.5rem);
  text-decoration: none; color: var(--sand);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(38deg, rgba(244,238,226,0.05) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(-52deg, rgba(244,238,226,0.05) 0 1px, transparent 1px 62px),
    radial-gradient(120% 90% at 20% 15%, var(--forest-2) 0%, var(--forest) 70%);
  box-shadow: 0 12px 34px rgba(30, 24, 16, 0.22);
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 200ms ease;
}
.mapcard:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(30, 24, 16, 0.3); color: var(--sand); }
@media (prefers-reduced-motion: reduce) { .mapcard:hover { transform: none; } }

.mapcard__pin {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 0 6px rgba(168, 70, 26, 0.25), 0 0 0 14px rgba(168, 70, 26, 0.1);
  margin-bottom: 0.8rem;
}
.mapcard__label { font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }
.mapcard__cta { font-size: 0.9rem; color: #E4C79A; }

/* ---------- cennik / todo ---------- */

.todos {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.todo {
  padding: 1.4rem;
  border: 1px dashed var(--sand-3);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.5);
}
.todo h3 { margin-bottom: 0.35rem; }
.todo p { margin: 0; color: #5C5044; font-size: 0.95rem; }
.todo::after {
  content: "do uzupełnienia przez właściciela";
  display: block; margin-top: 0.9rem;
  font-size: 0.72rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--oak);
}

/* ---------- stopka ---------- */

.foot {
  background: var(--forest); color: #B9B39F;
  padding-block: clamp(2.5rem, 6vw, 4rem);
  font-size: 0.92rem;
}
.foot a { color: #E4C79A; }
.foot__name {
  font-family: var(--display); font-weight: 700; font-size: 1.3rem;
  letter-spacing: -0.02em; color: var(--sand); margin-bottom: 0.3rem;
}
.foot__small { font-size: 0.8rem; color: #8E8878; max-width: 42rem; margin-top: 1.5rem; margin-bottom: 0; }

/* ---------- scrollbar ---------- */

@supports selector(::-webkit-scrollbar) {
  ::-webkit-scrollbar { width: 12px; }
  ::-webkit-scrollbar-track { background: var(--sand-2); }
  ::-webkit-scrollbar-thumb { background: var(--moss); border: 3px solid var(--sand-2); border-radius: 99px; }
  ::-webkit-scrollbar-thumb:hover { background: var(--forest-2); }
}
