/* ==== CSS RESET & NORMALIZE ==== */
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, 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, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.7;
  background: #fff;
  color: #1a1a1a;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  font-weight: 400;
}
ul, ol {
  list-style-position: inside;
}
a {
  background: none;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  vertical-align: middle;
  display: inline-block;
}
button {
  font-family: inherit;
  font-size: 1rem;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

:root {
  --color-primary: #074E72;
  --color-secondary: #1AAB8B;
  --color-accent: #F5F8FA;
  --color-dark: #1a1a1a;
  --color-light: #fff;
  --color-border: #e2e7eb;
  --shadow-subtle: 0 4px 24px 0 rgba(7,78,114,0.07);
  --font-display: 'Montserrat', 'Arial', sans-serif;
  --font-body: 'Roboto', 'Arial', sans-serif;
}

/* ==== TYPOGRAPHY ==== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  margin-bottom: 16px;
  font-weight: 700;
  line-height: 1.2;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.4rem; margin-bottom: 12px; color: var(--color-dark); }
h4, h5, h6 { font-size: 1.1rem; }
p, ul, ol, dl { font-size: 1rem; color: var(--color-dark); margin-bottom: 16px; }
strong, b { font-weight: 700; }
.text-section p, .content-wrapper > p, .text-section ul, .text-section ol { font-size: 1.06rem; color: var(--color-dark); }

/* ==== LAYOUT ==== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.text-section {
  max-width: 700px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-accent);
  border-radius: 18px;
  box-shadow: var(--shadow-subtle);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.card {
  background: var(--color-light);
  border-radius: 15px;
  box-shadow: var(--shadow-subtle);
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  max-width: 320px;
  flex: 1 1 260px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 8px 32px 0 rgba(7,78,114,0.12);
  transform: translateY(-6px);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: stretch;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: var(--color-light);
  border-radius: 18px;
  box-shadow: var(--shadow-subtle);
  margin-bottom: 20px;
  border: 1px solid var(--color-border);
}
.testimonial-card p {
  color: var(--color-dark);
  font-style: italic;
  font-size: 1.09rem;
}
.testimonial-card span {
  color: var(--color-primary);
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 16px;
}

/* ==== HEADER & NAVIGATION ==== */
header {
  background: var(--color-light);
  box-shadow: 0px 1px 32px 0 rgba(0,0,0,0.02);
  position: sticky;
  top: 0;
  z-index: 1002;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  padding: 12px 0;
}
header nav a {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-primary);
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}
header nav a:hover,
header nav a:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
}

header nav a.btn-primary {
  margin-left: auto;
}

header img[alt="Beam Shore Wynajem"],
header img[src*="logo"] {
  height: 38px;
  width: auto;
  margin-right: 16px;
}

/* ==== BUTTONS ==== */
.btn-primary {
  padding: 13px 32px;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  border: none;
  border-radius: 40px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 16px 0 rgba(7,78,114,0.09);
  transition: background 0.18s, color 0.18s, box-shadow 0.21s, transform 0.21s;
  cursor: pointer;
  margin-top: 14px;
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 32px 0 rgba(26,171,139,0.13);
}
.btn-secondary {
  padding: 11px 28px;
  background: var(--color-secondary);
  color: #fff;
  font-family: var(--font-display);
  border: none;
  border-radius: 40px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.18s, color 0.18s, transform 0.16s;
  cursor: pointer;
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--color-primary);
  color: var(--color-secondary);
  transform: translateY(-1px) scale(1.02);
}
.btn-neutral {
  padding: 10px 21px;
  background: var(--color-accent);
  color: var(--color-primary);
  font-family: var(--font-body);
  border: 1px solid var(--color-border);
  border-radius: 40px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 0.18s, color 0.18s, border 0.18s;
  cursor: pointer;
}
.btn-neutral:hover,
.btn-neutral:focus {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* ==== FOOTER ==== */
footer {
  background: var(--color-accent);
  border-top: 1px solid var(--color-border);
  padding: 40px 0 24px 0;
  margin-top: 80px;
}
footer .container {
  padding-left: 18px;
  padding-right: 18px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer nav a {
  color: var(--color-primary);
  font-weight: 400;
  font-size: 1rem;
  padding: 4px 0;
  border-radius: 6px;
}
footer nav a:hover {
  color: var(--color-secondary);
  background: var(--color-light);
}
footer .text-section {
  font-size: 0.98rem;
  color: var(--color-dark);
  max-width: 330px;
  line-height: 1.6;
}
footer .text-section img {
  height: 34px;
  margin-bottom: 8px;
}
footer div:last-child a {
  margin-right: 14px;
  display: inline-block;
  transition: opacity 0.2s, transform 0.13s;
}
footer div:last-child a:hover {
  opacity: 0.7;
  transform: translateY(-3px) scale(1.07);
}

/* ==== HERO/FEATURES SECTION ==== */
h1 + p, h2 + p {
  margin-top: -12px;
}
section {
  margin-bottom: 60px;
  padding: 40px 0;
}
section ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--color-dark);
  font-size: 1.05rem;
}
section ul li img, section ol li img, .text-section p img {
  height: 24px;
  width: 24px;
  margin-right: 7px;
  display: inline-block;
}
section ul {
  padding-left: 0;
}
section ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

/* === FAQ (Jak to działa) === */
dl dt {
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 5px;
  margin-top: 18px;
}
dl dd {
  margin-bottom: 15px;
  margin-left: 0;
  color: var(--color-dark);
}

/* ==== COOKIE BANNER ==== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  box-shadow: 0 0 32px 0 rgba(7,78,114,0.16);
  padding: 20px 24px;
  z-index: 1300;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  border-top: 1px solid var(--color-border);
  font-size: 1rem;
  animation: cookie-fadein 0.22s;
}
@keyframes cookie-fadein {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 0px;
}

/* ==== COOKIE MODAL ==== */
.cookie-modal-overlay {
  position: fixed;
  z-index: 1400;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(24, 30, 39, 0.33);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.24s;
}
.cookie-modal-overlay[aria-hidden=true] {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  padding: 36px 26px 28px 26px;
  border-radius: 16px;
  max-width: 380px;
  width: calc(100% - 40px);
  box-shadow: 0 8px 48px 0 rgba(7,78,114,0.13);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.cookie-modal h3 {
  margin-bottom: 0.8em;
  color: var(--color-primary);
  font-size: 1.22rem;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.cookie-category label {
  font-weight: 500;
  color: var(--color-dark);
  cursor: pointer;
}
.cookie-modal .btn-primary, .cookie-modal .btn-secondary, .cookie-modal .btn-neutral {
  min-width: 110px;
}
.cookie-modal-close {
  position: absolute;
  right: 13px;
  top: 13px;
  font-size: 1.35rem;
  color: var(--color-primary);
  background: transparent;
  border: none;
  cursor: pointer;
}

/* ==== MOBILE NAV ==== */
.mobile-menu-toggle {
  display: none;
}
.mobile-menu {
  position: fixed;
  z-index: 1200;
  left: 0; top: 0; bottom: 0;
  width: 100vw;
  max-width: 360px;
  background: #fff;
  box-shadow: 0 0 44px 0 rgba(7,78,114,0.17);
  transform: translateX(-100%);
  transition: transform 0.26s cubic-bezier(.56,1.32,.64,.93);
  padding: 0 0 0 0;
  display: flex;
  flex-direction: column;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 16px 20px 14px 0;
  font-size: 2rem;
  background: transparent;
  color: var(--color-primary);
  border: none;
  cursor: pointer;
  z-index: 15;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 28px 32px 28px;
}
.mobile-nav a {
  color: var(--color-primary);
  font-size: 1.08rem;
  font-family: var(--font-body);
  font-weight: 500;
  padding: 11px 2px 11px 0;
  border-radius: 6px;
  margin-bottom: 6px;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
}

@media (max-width: 1140px) {
  .container {
    max-width: 100vw;
  }
}

@media (max-width: 900px) {
  header nav {
    gap: 12px;
  }
  .content-wrapper, .text-image-section {
    gap: 15px;
  }
  .section {
    padding: 30px 10px;
  }
  .card {
    min-width: 200px;
    max-width: 100%;
    padding: 20px 12px;
  }
  footer .content-wrapper {
    gap: 16px;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
  .container { padding-left: 10px; padding-right: 10px; }
  .content-wrapper, .text-section {
    align-items: flex-start;
  }
  .section { margin-bottom: 40px; padding: 26px 6px; }
  .card-container, .content-grid { gap: 12px; }
  .text-image-section {
    flex-direction: column !important;
    gap: 16px;
    align-items: flex-start;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: #fff;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 2.1rem;
    border: none;
    position: absolute;
    right: 14px;
    top: 10px;
    z-index: 1015;
    box-shadow: 0 2px 7px 0 rgba(7,78,114,0.08);
    transition: background 0.16s, color 0.14s, transform 0.13s;
  }
  .mobile-menu-toggle:active, .mobile-menu-toggle:focus {
    background: var(--color-secondary);
    color: var(--color-primary);
    transform: scale(1.06);
  }
  .mobile-menu {
    max-width: 100vw;
    width: 100vw;
  }
  /* Footer as column on mobile */
  footer .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 540px) {
  h1 { font-size: 1.49rem; }
  h2 { font-size: 1.13rem; }
  .testimonial-card {
    padding: 13px 8px;
  }
  .btn-primary, .btn-secondary, .btn-neutral {
    width: 100%;
    font-size: 1.05rem;
    padding: 12px 0;
  }
}

/* ==== ANIMATIONS ==== */
.btn-primary, .btn-secondary, .btn-neutral, .mobile-menu-toggle, .mobile-menu, .mobile-nav a, .testimonial-card {
  transition: background 0.18s, color 0.18s, box-shadow 0.21s, transform 0.21s, border 0.18s;
}

/* ==== MISC & FORMATS ==== */
::-webkit-input-placeholder { color: #757e89; }
::-moz-placeholder { color: #757e89; }
:-ms-input-placeholder { color: #757e89; }
::placeholder { color: #757e89; }

a {
  outline: none;
}
a:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}
div[aria-hidden="true"] { display: none !important; }

/* ==== CUSTOM CHECKBOX for Cookie banner modal ==== */
input[type="checkbox"].switch {
  display: none;
}
input[type="checkbox"].switch + .switch-slider {
  display: inline-block;
  position: relative;
  width: 38px;
  height: 22px;
  background: #e7f0f3;
  border-radius: 18px;
  vertical-align: middle;
  transition: background 0.18s;
  margin-right: 8px;
}
input[type="checkbox"].switch:checked + .switch-slider {
  background: var(--color-secondary);
}
.switch-slider::before {
  content: '';
  display: block;
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 7px 0 rgba(7,78,114,0.07);
  transition: transform 0.17s;
}
input[type="checkbox"].switch:checked + .switch-slider::before {
  transform: translateX(16px);
}

/* ==== ACCESSIBILITY ==== */
:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* ==== MINIMALIST FOCUS ==== */
.section, .card, .testimonial-card {
  background: var(--color-accent);
  border-radius: 18px;
  box-shadow: var(--shadow-subtle);
}
a.btn-primary, button.btn-primary {
  box-shadow: 0 2px 12px 0 rgba(7,78,114,0.06);
}

/* ==== PREVENT OVERLAPPING, FORCE FLEXBOX GAPS ==== */
.content-wrapper > *,
.text-section > *,
footer .content-wrapper > * {
  margin-bottom: 20px;
}
.content-wrapper > *:last-child,
.text-section > *:last-child,
footer .content-wrapper > *:last-child {
  margin-bottom: 0;
}

.card:not(:last-child), .testimonial-card:not(:last-child) {
  margin-right: 0;
  margin-bottom: 28px;
}

/* Utility classes if needed */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-32 { margin-bottom: 32px !important; }

/* ==== Hide scrollbar for mobile nav when open ==== */
.mobile-menu {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ==== Z-INDEX LAYERING ==== */
header, .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal-overlay {
  z-index: 1200;
}

/* ==== PRINT STYLES ==== */
@media print {
  header, footer, .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
  body {
    color: #000;
    background: #fff;
  }
}
