/* ---------- CSS RESET & ROOTS ---------- */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, menu, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
main, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background: #fff;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #1a1a1a;
  background: #fff;
  line-height: 1.7;
  font-size: 1rem;
  min-height: 100vh;
  letter-spacing: 0.01em;
}

/* ---------- ROOT COLORS & FONTS ---------- */
:root {
  --primary: #1a1a1a;
  --primary-rgb: 26,26,26;
  --secondary:#262626;
  --gray-dark: #212121;
  --gray-mid: #6d6d6d;
  --gray-light: #eeeeee;
  --surface: #f7f8fa;
  --accent: #ffffff;
  --brand-blue: #21384C;
  --brand-teal: #26A69A;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 16px;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #161616;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  font-weight: 600;
}
h4,h5,h6 {
  font-size: 1.1rem;
  font-weight: 500;
}
p, ul, ol, dl, address {
  font-size: 1rem;
  margin-bottom: 16px;
  font-family: var(--font-body);
}
strong {
  color: #1a1a1a;
  font-weight: 700;
}
ul, ol {
  padding-left: 24px;
}
ul li, ol li {
  margin-bottom: 12px;
  font-size: 1rem;
}

/* Links */
a {
  color: #000;
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}
a:hover, a:focus {
  color: #262626;
  outline: none;
}

/* ---------- LAYOUT CONTAINERS ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  background: var(--accent);
  border-radius: 18px;
  box-shadow: 0 2px 20px rgba(34,34,34,0.04), 0 1.5px 5px rgba(34,34,34,0.03);
  padding: 32px 24px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
@media (max-width: 992px) {
  .container {
    padding: 0 10px;
  }
  .section {
    padding: 24px 5px;
    margin-bottom: 40px;
  }
  .content-wrapper {
    padding: 24px 8px;
  }
}

/* ---------- FLEXBOX STRUCTURES ---------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 14px rgba(30,30,30,0.07);
  min-width: 240px;
  flex: 1 1 270px;
  padding: 30px 20px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.24s;
}
.card:hover {
  box-shadow: 0 5px 32px rgba(30,30,30,0.13);
  z-index: 1;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #f7f8fa;
  border-radius: 14px;
  box-shadow: 0 1px 8px rgba(30,30,30,.07);
  margin-bottom: 20px;
  font-style: italic;
  border-left: 4px solid #111;
}
.testimonial-card p {
  color: #111;
  font-size: 1.05rem;
  margin-bottom: 0;
  font-family: var(--font-body);
}
.testimonial-card span {
  font-size: 0.95rem;
  color: #444;
  margin-left: auto;
  font-style: normal;
  font-weight: 500;
  font-family: var(--font-display);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ---------- FEATURE GRID (for index/wirtualne-wycieczki) ---------- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  margin: 30px 0 0 0;
}
.feature-grid > div {
  flex: 1 1 230px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 8px rgba(34,34,34,.06);
  padding: 32px 20px 22px 20px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow 0.2s;
}
.feature-grid > div:hover {
  box-shadow: 0 2px 26px rgba(30,30,30,0.12);
}
.feature-grid img {
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
  filter: grayscale(1) brightness(0.08) invert(1) opacity(0.65);
}
.feature-grid h3 {
  font-size: 1.18rem;
  margin-bottom: 0;
  color: #151515;
}
.feature-grid p {
  color: #222;
  font-size: 1rem;
  margin-bottom: 0;
}

/* ---------- HEADER & NAVIGATION ---------- */
header {
  background: #fff;
  border-bottom: 1px solid #ececec;
  padding: 0;
  position: relative;
  z-index: 50;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 70px;
  padding: 0 16px;
}
.logo img {
  height: 36px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  align-items: center;
  margin-left: 28px;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .01em;
  color: #222;
  padding: 8px 4px;
  border-radius: 3px;
  transition: color 0.14s, background 0.16s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #1a1a1a;
  background: #f3f3f3;
}
.cta-btn {
  display: inline-block;
  padding: 14px 30px;
  font-size: 1.06rem;
  font-family: var(--font-display);
  font-weight: 700;
  background: #fff;
  color: #1a1a1a;
  border: 2px solid #1a1a1a;
  border-radius: 50px;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 10px rgba(40,40,40,.05);
  transition: background 0.18s, color 0.18s, border 0.18s, box-shadow 0.24s;
  margin-left: 25px;
  cursor: pointer;
}
.cta-btn:hover, .cta-btn:focus {
  background: #111;
  color: #fff;
  border-color: #222;
  box-shadow: 0 7px 32px rgba(0,0,0,0.10);
  outline: none;
}

/* Burger menu button styles */
.mobile-menu-toggle {
  display: none;
  font-size: 2.2rem;
  background: none;
  border: none;
  color: #0a0a0a;
  cursor: pointer;
  margin-left: 16px;
  z-index: 101;
  transition: color 0.18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  color: #1a1a1a;
}

@media (max-width: 1024px) {
  .main-nav {
    gap: 13px;
    margin-left: 12px;
  }
}
@media (max-width: 900px) {
  .cta-btn {
    padding: 11px 20px;
    margin-left: 4px;
    font-size: .99rem;
  }
}
@media (max-width: 768px) {
  header .container {
    min-height: 58px;
    padding: 0 6px;
    gap: 8px;
  }
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
    position: relative;
  }
  .cta-btn {
    margin-left: 0;
  }
}

/* ---------- MOBILE MENU ---------- */
.mobile-menu {
  position: fixed;
  display: flex;
  flex-direction: column;
  top: 0; left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(22,22,22,0.96);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.72,.02,0,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 19px 22px 0 0;
  background: none;
  border: none;
  font-size: 2.7rem;
  color: #fff;
  cursor: pointer;
  z-index: 2200;
}
.mobile-nav {
  margin: 40px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
}
.mobile-nav a {
  font-size: 1.16rem;
  font-family: var(--font-display);
  color: #f7f7f7;
  letter-spacing: .03em;
  font-weight: 600;
  padding: 10px 38px;
  border-radius: 2px;
  width: 100%;
  text-align: center;
  transition: background 0.17s, color 0.18s;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #222;
  color: #fff;
}

@media (max-width: 480px) {
  .mobile-nav {
    gap: 19px;
  }
  .mobile-nav a {
    font-size: 1.03rem;
    padding: 8px 15px;
  }
}

/* ---------- RESPONSIVE FLEX DIRECTION ---------- */
@media (max-width: 768px) {
  .content-grid,
  .feature-grid,
  .card-container,
  .text-image-section {
    flex-direction: column !important;
    gap: 18px;
    align-items: stretch;
  }
}

/* ---------- LISTS WITH ICONS ---------- */
ul li img {
  width: 22px;
  margin-right: 12px;
  vertical-align: middle;
  filter: grayscale(1) brightness(0.2) opacity(0.45);
  display: inline-block;
}

/* ---------- TABLES ---------- */
table {
  border-collapse: collapse;
  margin: 28px 0 18px 0;
  width: 100%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(26,26,26,0.07);
  overflow: hidden;
}
th, td {
  font-family: var(--font-body);
  padding: 15px 16px;
  border-bottom: 1px solid #ececec;
  text-align: left;
  color: #222;
  font-size: 1rem;
}
th {
  background: #f7f7f7;
  font-size: 1.01rem;
  font-weight: 700;
  color: #101010;
}
tr:last-child td {
  border-bottom: none;
}

/* ---------- DEFINITION LISTS ---------- */
dl {
  margin-bottom: 23px;
}
dl dt {
  font-family: var(--font-display);
  font-weight: 600;
  color: #191919;
  margin-bottom: 4px;
  font-size: 1.09rem;
}
dl dd {
  margin-bottom: 16px;
  color: #282828;
  font-size: 1rem;
}

/* ---------- ADDRESS ---------- */
address {
  font-style: normal;
  line-height: 1.5;
  color: #262626;
  margin-bottom: 18px;
}

/* ---------- FOOTER ---------- */
footer {
  background: #181818;
  color: #f6f6f7;
  padding: 36px 0 0 0;
  margin-top: 48px;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  padding-bottom: 8px;
}
.footer-brand {
  flex: 1 1 75px;
  margin-bottom: 18px;
}
.footer-brand img {
  height: 48px;
  width: auto;
}
.footer-nav {
  flex: 2 1 300px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}
.footer-nav a {
  color: #e2e2e2;
  font-size: .99rem;
  font-family: var(--font-display);
  margin-right: 16px;
  transition: color 0.16s;
  font-weight: 500;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fff;
  text-decoration: underline;
}
.footer-contact {
  flex: 2 1 350px;
  font-size: .97rem;
  color: #e7e7e7;
}
.footer-copy {
  text-align: center;
  padding: 12px 0 14px 0;
  font-size: .95rem;
  color: #a2a2a3;
  background: #161616;
  margin-top: 28px;
}
@media (max-width: 1024px) {
  footer .container {
    flex-direction: column;
    gap: 13px;
    align-items: flex-start;
  }
  .footer-brand,
  .footer-contact,
  .footer-nav {
    margin-bottom: 10px;
  }
}

/* ---------- BUTTONS & INTERACTIVES ---------- */
button, .cta-btn {
  cursor: pointer;
  border: none;
}
button:focus, .cta-btn:focus {
  outline: 2px solid #222;
  outline-offset: 2px;
}

/* Custom default button appearance for cookie banner etc */
.button {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  font-family: var(--font-display);
  font-weight: 700;
  border: 2px solid #111;
  background: #fff;
  color: #101010;
  font-size: 1rem;
  transition: background 0.13s, color 0.13s, border 0.13s;
}
.button:hover, .button:focus {
  background: #181818;
  border-color: #181818;
  color: #fff;
}
.button.light {
  background: #fff;
  color: #1a1a1a;
  border-color: #222;
}
.button.gray {
  background: #212121;
  color: #f0f0f0;
  border-color: #222;
}
.button.outline {
  background: transparent;
  color: #181818;
  border: 2px solid #181818;
}
.button.secondary {
  background: #e6e6e7;
  color: #181818;
  border: 2px solid #c3c3c3;
}
@media (max-width: 480px) {
  .button, .cta-btn {
    padding: 11px 16px;
    font-size: .99rem;
  }
}

/* ---------- MICRO-INTERACTIONS & HOVER ---------- */
.card, .feature-grid > div, .testimonial-card, .cta-btn, .button {
  transition: box-shadow 0.18s, background 0.16s, color 0.16s, border 0.16s;
}
a:not(.cta-btn):after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #1a1a1a;
  transition: width 0.25s;
  position: absolute;
  left: 0; bottom: -2px;
}
a:not(.cta-btn):hover:after {
  width: 60%;
}

/* ---------- MONOCHROME & DRAMATIC CONTRAST ---------- */
h1,h2,h3,h4,h5,h6, .logo img, th, .footer-brand img {
  filter: grayscale(1) brightness(0.97);
}

.section, .content-wrapper, .card, .feature-grid > div {
  background: #fff;
}

@media (max-width: 600px) {
  h1 { font-size: 1.76rem; }
  h2 { font-size: 1.3rem; }
  .section, .content-wrapper { padding: 13px 2px; }
}

/* ---------- COOKIE BANNER ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: #1a1a1a;
  color: #fff;
  box-shadow: 0 -2px 24px rgba(20,20,20,0.12);
  padding: 25px 18px 20px 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  z-index: 3000;
  transition: transform 0.5s cubic-bezier(.83,.01,.36,1.1), opacity 0.34s;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner__text {
  flex: 3 1 400px;
  font-size: 1.01rem;
  color: #f7f7f8;
}
.cookie-banner__actions {
  flex: 1 1 auto;
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: flex-end;
  align-items: flex-end;
}
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
    padding: 16px 6px 13px 6px;
  }
  .cookie-banner__actions {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    justify-content: flex-end;
  }
}

.cookie-banner .button {
  min-width: 100px;
}

/* ---------- COOKIE SETTINGS MODAL ---------- */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15,15,15,0.65);
  z-index: 4000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  color: #1a1a1a;
  min-width: 320px;
  max-width: 97vw;
  width: 400px;
  border-radius: 20px;
  padding: 32px 22px 28px 22px;
  box-shadow: 0 4px 40px rgba(20,20,20,.18);
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 4100;
  animation: cookieModalIn .52s cubic-bezier(.76,0,.12,1.09);
  position: relative;
}
@media (max-width: 480px) {
  .cookie-modal {
    min-width: 90vw;
    width: 97vw;
    padding: 18px 7px 10px 7px;
  }
}
@keyframes cookieModalIn {
  from { transform: scale(0.93) translateY(38px); opacity:0; }
  to { transform: scale(1) translateY(0); opacity:1; }
}
.cookie-modal h2 {
  font-size: 1.3rem;
  margin-bottom: 7px;
}
.cookie-modal ul {
  display: flex;
  flex-direction: column;
  gap: 19px;
  font-size: .99rem;
  color: #202020;
  margin-bottom: 14px;
}
.cookie-modal li {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-switch {
  margin-left: auto;
}

/* Cookie toggle switch */
.cookie-switch input[type="checkbox"] {
  display: none;
}
.cookie-switch label {
  display: inline-block;
  width: 38px;
  height: 22px;
  background: #c6c6c6;
  border-radius: 30px;
  position: relative;
  cursor: pointer;
  transition: background .18s;
}
.cookie-switch label:before {
  content: "";
  display: block;
  width: 16px; height: 16px;
  background: #eee;
  border-radius: 50%;
  position: absolute;
  top: 3px; left: 3px;
  transition: left .2s, background .18s;
  box-shadow: 0 0.5px 2px rgba(30,30,30,0.14);
}
.cookie-switch input[type="checkbox"]:checked + label {
  background: #1a1a1a;
}
.cookie-switch input[type="checkbox"]:checked + label:before {
  left: 19px;
  background: #fafafa;
}
.cookie-modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.cookie-modal__close {
  background: none;
  border: none;
  color: #141414;
  font-size: 1.75rem;
  position: absolute;
  top: 18px; right: 18px;
  cursor: pointer;
  padding: 3px 7px;
}
.cookie-modal__close:focus,
.cookie-modal__close:hover {
  background: #f0f0f0;
  border-radius: 50%;
}

/* ----------- UTILS ----------- */
.mb-0 { margin-bottom: 0 !important; }
.mb-8 { margin-bottom: 8px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-24 { margin-bottom: 24px !important; }
.ml-10 { margin-left: 10px !important; }
.mt-16 { margin-top: 16px !important; }

/* Hide visually only */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
}

/* ---------- MISC & OVERRIDES ---------- */
::-webkit-scrollbar {
  width: 8px;
  background: #e0e0e0;
}
::-webkit-scrollbar-thumb {
  background: #bdbdbd;
  border-radius: 8px;
}

/* Shadow for focus state */
:focus-visible {
  outline: 2px solid #1a1a1a;
  outline-offset: 2px;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: inline-block;
}

/* Hide default focus for mouse users, keep for keyboard */
*:focus:not(:focus-visible) {
  outline: none;
}

/* Prevent content overlaps on small screens */
@media (max-width:500px) {
  .content-wrapper { padding: 6px 0 6px 0; }
  .section { padding: 6px 0; }
  .testimonial-card, .card, .feature-grid > div {
    padding: 13px 10px;
  }
}
