/* Gdzie spać w Warszawie — arkusz stylów */
:root {
  --navy: #14213d;
  --navy-deep: #0d1628;
  --slate: #4a5568;
  --slate-light: #718096;
  --warm: #c8875a;
  --warm-dark: #a86a40;
  --sand: #f6f3ee;
  --paper: #fbfaf7;
  --white: #ffffff;
  --line: #e4ded4;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 33, 61, 0.05), 0 8px 24px rgba(20, 33, 61, 0.06);
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--navy);
  background: var(--paper);
}
img { max-width: 100%; display: block; }
a { color: var(--warm-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--navy); margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: var(--white); padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 10px; top: 10px; }

/* Nagłówek */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.logo { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--navy); text-decoration: none; letter-spacing: 0.01em; }
.logo span { color: var(--warm); }
.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 14px; font: inherit; font-size: 0.95rem; color: var(--navy); cursor: pointer;
}
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.main-nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--slate); text-decoration: none; font-size: 0.97rem; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--navy); background: var(--sand); }

/* Hero */
.hero { position: relative; color: var(--white); background: var(--navy-deep); }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,22,40,0.15) 0%, rgba(13,22,40,0.75) 100%); }
.hero-content { position: relative; z-index: 1; padding: 120px 0 80px; max-width: 720px; }
.hero h1 { color: var(--white); }
.hero p { font-size: 1.15rem; color: #e8ecf3; }
.eyebrow { display: inline-block; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--warm); font-weight: 600; margin-bottom: 14px; }
.hero .eyebrow { color: #f0c9a8; }
.hero-small .hero-content { padding: 96px 0 56px; }

/* Sekcje */
.section { padding: 72px 0; }
.section-alt { background: var(--sand); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head p { color: var(--slate); }

/* Karty dzielnic */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--slate); }
.card-link { margin-top: auto; font-weight: 600; text-decoration: none; color: var(--navy); }
.card-link::after { content: " →"; color: var(--warm); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.tags li { font-size: 0.8rem; padding: 4px 10px; border-radius: 999px; background: var(--sand); color: var(--slate); border: 1px solid var(--line); }

/* Szybki wybór */
.choice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.choice { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.choice h3 { font-size: 1.08rem; margin-bottom: 6px; }
.choice p { color: var(--slate); font-size: 0.95rem; margin-bottom: 8px; }
.choice a { font-weight: 600; font-size: 0.95rem; }

/* Artykuł dzielnicy */
.article { padding: 64px 0; }
.article h2 { margin-top: 1.6em; }
.article h2:first-child { margin-top: 0; }
.article-figure { margin: 36px 0; }
.article-figure img { border-radius: var(--radius); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-figure figcaption { font-size: 0.85rem; color: var(--slate-light); margin-top: 8px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 40px; }
.fact { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.fact strong { display: block; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--warm-dark); margin-bottom: 4px; }
.fact span { color: var(--navy); font-size: 0.98rem; }
.stay-list { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 14px; }
.stay-list li { background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--warm); border-radius: 10px; padding: 16px 20px; color: var(--slate); }
.stay-list li strong { color: var(--navy); }
.tips { background: var(--navy); color: #e6eaf2; border-radius: var(--radius); padding: 30px 32px; margin: 40px 0 0; }
.tips h2 { color: var(--white); margin-top: 0; }
.tips ul { margin: 0; padding-left: 20px; }
.tips li { margin-bottom: 10px; }
.tips li::marker { color: var(--warm); }
.more-districts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.more-districts a { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); text-decoration: none; color: var(--navy); font-size: 0.95rem; }
.more-districts a:hover { border-color: var(--warm); }

/* Strony prawne */
.legal { padding: 56px 0 72px; }
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
.legal ul, .legal ol { padding-left: 22px; margin: 0 0 1.1em; }
.legal li { margin-bottom: 6px; }
.legal .updated { color: var(--slate-light); font-size: 0.92rem; }
.legal table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 0.93rem; background: var(--white); }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--sand); }
.table-wrap { overflow-x: auto; }

/* Stopka */
.site-footer { background: var(--navy-deep); color: #b8c1d1; padding: 48px 0 32px; font-size: 0.93rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: var(--white); font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #dfe4ec; text-decoration: none; }
.site-footer a:hover { color: var(--warm); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 32px; padding-top: 20px; font-size: 0.85rem; color: #8a95a8; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: #dfe4ec; cursor: pointer; text-align: left; }
.link-button:hover { color: var(--warm); }

/* Baner cookies */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  max-width: 760px; margin: 0 auto; background: var(--white); color: var(--navy);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(13, 22, 40, 0.18); padding: 24px 26px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner h2 { font-size: 1.2rem; margin-bottom: 8px; }
.cookie-banner p { font-size: 0.94rem; color: var(--slate); margin-bottom: 18px; }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cookie-btn {
  font: inherit; font-weight: 600; font-size: 0.98rem; padding: 12px 18px;
  border-radius: 10px; cursor: pointer; border: 2px solid var(--navy);
  background: var(--navy); color: var(--white);
}
.cookie-btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.cookie-btn:focus-visible, .nav-toggle:focus-visible, .link-button:focus-visible { outline: 3px solid var(--warm); outline-offset: 2px; }

/* Responsywność */
@media (max-width: 1000px) {
  .choice-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; padding: 8px 20px 16px; gap: 2px; }
  .main-nav a { padding: 12px; }
  .card-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 52px 0; }
  .hero-content { padding: 88px 0 56px; }
  .choice-grid { grid-template-columns: 1fr; }
  .cookie-actions { grid-template-columns: 1fr; }
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; padding: 20px; }
  .tips { padding: 24px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
}
