/* 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;
}
html {
  scroll-behavior: smooth;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F3FAF7;
  color: #191C20;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: #17607D;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #2CA058;
  outline: 0;
}
ul, ol {
  padding-left: 1.2em;
  margin: 18px 0 18px 0;
}
li {
  margin-bottom: 8px;
}
table {
  border-collapse: collapse;
  width: 100%;
  margin: 24px 0 20px 0;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 3px 12px 0 rgba(23, 96, 125, 0.07);
}
th, td {
  padding: 16px 12px;
  text-align: left;
  font-size: 16px;
  border-bottom: 1px solid #e4ecea;
}
th {
  background: #17607D;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 18px;
  letter-spacing: 1px;
  font-weight: 700;
}
tr:last-child td {
  border-bottom: none;
}
hr {
  margin: 32px 0;
  border: 0;
  border-top: 1.5px solid #17607D22;
}

/* BRAND COLORS as CSS VARIABLES */
:root {
  --primary: #17607D;
  --secondary: #2CA058;
  --accent: #F3FAF7;
  --electric-blue: #14DFFF;
  --electric-green: #19EB86;
  --yellow: #FFD600;
  --deep-navy: #10243C;
  --focus: #FFD600;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary);
}
h1 {
  font-size: 2.7rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.3rem;
  color: var(--secondary);
  margin-bottom: 12px;
}
h4 {
  font-size: 1.13rem;
  color: var(--primary);
  margin-bottom: 10px;
}
p, ul, ol, li, address, table, tr, td {
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  color: #272929;
}
strong {
  color: var(--primary);
  font-weight: bold;
}

/* LAYOUT CONTAINERS */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 24px 0 rgba(44, 160, 88, 0.07);
  padding: 32px 28px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 24px;
}
.feature-grid > div {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 14px 0 rgba(23, 96, 125, 0.08);
  padding: 24px 20px;
  flex: 1 1 210px;
  min-width: 200px;
  max-width: 280px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: transform 0.16s;
  border: 2px solid transparent;
}
.feature-grid > div:hover {
  transform: translateY(-8px) scale(1.03) rotate(-0.8deg);
  box-shadow: 0 6px 30px 0 var(--electric-blue)33;
  border-color: var(--electric-blue);
}
.feature-grid img {
  width: 48px;
  height: 48px;
  margin-bottom: 6px;
}

/* GENERIC FLEX LAYOUTS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  padding: 28px 20px;
  border-radius: 14px;
  box-shadow: 0 2px 18px 0 rgba(44, 160, 88, 0.07);
  transition: box-shadow, transform 0.22s cubic-bezier(0.23, 1, 0.32, 1);
}
.card:hover {
  transform: translateY(-8px) scale(1.02) rotate(0.8deg);
  box-shadow: 0 6px 30px 0 var(--electric-green)25;
  border: 2px solid var(--secondary);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.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 CARDS (Galeria & others) */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F3FAF7;
  border-left: 8px solid var(--electric-blue);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(23, 96, 125, 0.07), 0 1.5px 4px 0 var(--secondary)22;
  margin-bottom: 22px;
  flex: 1 1 350px;
  transition: box-shadow 0.16s, border-left 0.16s;
}
.testimonial-card:hover {
  box-shadow: 0 12px 60px 0 var(--electric-blue)18;
  border-left: 8px solid var(--yellow);
}
.testimonial-card p {
  font-size: 1.18rem;
  color: #222;
  margin-bottom: 0;
  flex: 1 1 0;
}
.testimonial-card strong {
  color: var(--primary);
}
.testimonial-card > div {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 1rem;
  gap: 4px;
  min-width: 120px;
}
.testimonial-card span:last-child {
  color: var(--secondary);
  font-weight: bold;
  letter-spacing: 1px;
  font-size: 1.1rem;
  margin-top: 6px;
}

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 40px;
  min-width: 160px;
  background: linear-gradient(90deg, var(--electric-blue) 0%, var(--secondary) 100%);
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: bold;
  font-size: 1.15rem;
  border: none;
  border-radius: 34px;
  box-shadow: 0 3px 24px 0 var(--electric-green)12;
  transition: background 0.18s, box-shadow 0.22s, transform 0.15s;
  cursor: pointer;
  letter-spacing: 1px;
  outline: none;
  margin-top: 14px;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg, var(--electric-green) 0%, var(--yellow) 100%);
  color: var(--primary);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 5px 32px 0 var(--secondary)18;
}
button {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  background: none;
}

/* MAIN NAVIGATION */
header {
  background: #fff;
  box-shadow: 0 6px 24px 0 rgba(23, 96, 125, 0.03);
  padding: 0;
  position: relative;
  z-index: 110;
}
header .container {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  padding-top: 16px;
  padding-bottom: 12px;
  justify-content: space-between;
}
header a {
  transition: color 0.16s;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.18rem;
}
.main-nav a {
  color: var(--primary);
  padding: 6px 15px;
  border-radius: 24px;
  font-weight: 600;
  transition: background 0.17s;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--electric-blue);
  color: #fff;
}
header .btn-primary {
  margin: 0 0 0 auto;
}

/* MOBILE MENU: HAMBURGER & SLIDE ANIMATION */
.mobile-menu-toggle {
  display: inline-flex;
  background: var(--primary);
  color: #fff;
  font-size: 2rem;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 18px 0 var(--electric-blue)14;
  margin-left: 14px;
  border: none;
  cursor: pointer;
  transition: background, box-shadow 0.15s;
  z-index: 150;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--yellow);
  color: var(--primary);
  box-shadow: 0 6px 24px 0 var(--secondary)16;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100vh;
  background: #fff;
  z-index: 200;
  transform: translateX(-100vw);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: 0 0 200px 0 var(--deep-navy)11;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--electric-blue);
  color: #fff;
  font-size: 2.3rem;
  margin: 24px 24px 0 0;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  box-shadow: 0 3px 18px 0 var(--electric-blue)19;
  transition: background 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--yellow);
  color: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 32px 0 0 0;
  align-items: flex-start;
  padding: 0 32px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.mobile-nav a {
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--primary);
  background: none;
  border-radius: 12px;
  padding: 10px 14px;
  width: 100%;
  transition: background 0.14s;
}
.mobile-nav a:hover, .mobile-nav a.active {
  background: var(--electric-blue);
  color: #fff;
}

/* Only show/hide toggles at the right breakpoints */
.main-nav, header .btn-primary {
  display: none;
}
@media (min-width: 990px) {
  .main-nav, header .btn-primary {
    display: flex;
  }
  .mobile-menu-toggle {
    display: none;
  }
}
@media (max-width: 989px) {
  .main-nav, header .btn-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-flex !important;
  }
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  border-top: 3px solid var(--electric-blue);
  box-shadow: 0 -3px 20px 0 var(--primary)09;
  padding: 26px 16px 26px 16px;
  z-index: 9999;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  animation: slideUpBanner 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes slideUpBanner { from { transform: translateY(90px); opacity:0; } to { transform: none; opacity:1; } }
.cookie-banner p {
  flex: 1 1 300px;
  margin: 0;
  font-size: 1.12rem;
  color: #10243C;
}
.cookie-banner-buttons {
  display: flex;
  gap: 18px;
  flex: 0 0 auto;
}
.cookie-banner .cookie-btn {
  background: var(--electric-green);
  color: #fff;
  font-weight: 700;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  border-radius: 28px;
  font-size: 1rem;
  padding: 12px 34px;
  border: none;
  cursor: pointer;
  transition: background 0.19s, color 0.17s, box-shadow 0.16s;
  margin-right: 0;
}
.cookie-banner .cookie-btn.settings {
  background: var(--electric-blue);
  color: #fff;
}
.cookie-banner .cookie-btn.reject {
  background: var(--primary);
  color: #fff;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: var(--yellow);
  color: var(--primary);
  box-shadow: 0 4px 20px 0 var(--secondary)11;
  outline: none;
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(23, 96, 125, 0.23);
  z-index: 10009;
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 10px 60px 0 var(--electric-blue)23, 0 1.5px 4px 0 var(--secondary)12;
  padding: 38px 34px;
  max-width: 410px;
  width: 96vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: popModal 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}
@keyframes popModal { from { transform:scale(0.92); opacity:0;} to {transform:none; opacity:1;} }
.cookie-modal h3 {
  font-size: 1.25rem;
  margin-bottom: 9px;
  color: var(--primary);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cookie-category-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.1rem;
  justify-content: space-between;
}
.cookie-category-row input[type="checkbox"] {
  accent-color: var(--secondary);
  width: 22px;
  height: 22px;
}
.cookie-modal-actions {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
}
.cookie-modal .cookie-btn {
  padding: 10px 30px;
}
.cookie-modal-close {
  position: absolute;
  top: 13px; right: 13px;
  background: var(--electric-blue);
  color: #fff;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.16s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--yellow);
  color: var(--primary);
  outline: none;
}

/* FOOTER */
footer {
  background: #17607D;
  color: #fff;
  padding: 48px 0 22px 0;
  font-size: 1rem;
  position: relative;
}
.footer-nav {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  text-decoration: underline rgba(255,255,255,0.15) 2px;
  font-weight: 500;
  transition: color 0.14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--yellow);
}
.footer-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 1rem;
}
.footer-info img {
  width: 36px;
  margin-bottom: 7px;
}
.footer-info address {
  color: #fff;
  font-style: normal;
  text-align: center;
  font-size: 1.07rem;
  letter-spacing: .2px;
}
.footer-info a {
  color: var(--yellow);
}
.footer-info a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-info span {
  color: #F3FAF7;
  opacity: .8;
}

/* FEATURE ITEM */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* SECTION & GLOBAL SPACING */
section {
  margin-bottom: 60px;
  padding: 40px 0;
  width: 100%;
}
section:last-child {
  margin-bottom: 0;
}

/* ADDITIONAL style for high energy */
section {
  position: relative;
}
section:before {
  content: '';
  display: block;
  position: absolute;
  left: -40px; top: 16px;
  width: 28px; height: 120px;
  background: var(--electric-blue);
  border-radius: 12px;
  opacity: 0.11;
  z-index: 1;
}
section .container {
  position: relative;
  z-index: 2;
}
section:nth-of-type(2):before {
  left: unset; right: -40px; top: 42px;
  background: var(--electric-green);
  opacity: 0.09;
  width: 24px; height: 80px;
}
section:nth-of-type(4):before {
  left: 50%; right: unset; top: 12px;
  width: 18px; height: 140px;
  background: var(--yellow);
  opacity: 0.07;
  transform: translateX(-50%);
}

/* HERO AREA (Index & Rezerwacja) */
.hero, .hero-section {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  min-height: 340px;
  background: linear-gradient(100deg, #14dfff09 0%, #19eb8610 100%);
  border-radius: 26px;
  box-shadow: 0 9px 40px 0 var(--electric-blue)08;
  text-align: center;
  gap: 18px;
  margin-bottom: 38px;
  position: relative;
  overflow: hidden;
}
.hero h1, .hero-section h1 {
  font-size: 2.15rem;
  color: var(--primary);
}
.hero p, .hero-section p {
  color: #222;
  font-size: 1.17rem;
  margin-bottom: 16px;
}

/* RESPONSIVE: Mobile-first, then desktop overrides */
@media (max-width: 768px) {
  h1 {
    font-size: 2.05rem;
  }
  h2 {
    font-size: 1.37rem;
  }
  .container {
    max-width: 98vw;
    padding-left: 8px;
    padding-right: 8px;
  }
  section {
    padding: 28px 0;
    margin-bottom: 36px;
  }
  .text-section, .card, .feature-grid > div, .testimonial-card {
    padding: 16px 9px;
  }
  .main-nav, header .btn-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-flex !important;
  }
  .feature-grid {
    gap: 12px;
    flex-direction: column;
    align-items: stretch;
  }
  .testimonial-card, .card, .feature-grid > div {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
  .text-image-section, .content-grid {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .cookie-modal {
    padding: 20px 8px;
    max-width: 99vw;
    width: 99vw;
  }
  .cookie-banner {
    stack-order: 9999;
    flex-direction: column;
    gap: 15px;
    padding: 17px 10px;
  }
}
@media (min-width: 769px) {
  .feature-grid {
    flex-direction: row;
    justify-content: flex-start;
  }
  .content-grid {
    flex-direction: row;
    align-items: stretch;
  }
  .testimonial-card {
    flex-direction: row;
    align-items: center;
  }
  .text-image-section {
    flex-direction: row;
  }
}

/* UTILITY CLASSES */
.align-center { text-align: center !important; }
.mt-2 { margin-top: 2rem !important; }
.mb-2 { margin-bottom: 2rem !important; }
.hide { display: none !important; }

/* FORMS (Rezerwacja/kontakt) */
input, textarea, select {
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  padding: 13px 16px;
  border-radius: 8px;
  border: 2px solid #e0efe9;
  background: #fff;
  margin-bottom: 18px;
  width: 100%;
  transition: border 0.16s, box-shadow 0.15s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--electric-green);
  outline: none;
  box-shadow: 0 3px 12px 0 var(--electric-blue)16;
}
label {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.06rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

/* ICONS IN CONTACT (kontakt) */
.text-section ul li img {
  vertical-align: middle;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  margin-bottom: -3px;
  display: inline-block;
}
.text-section ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

/* CUSTOM SCROLLBAR */
::-webkit-scrollbar {
  width: 8px;
  background: #E0E9F2;
}
::-webkit-scrollbar-thumb {
  background: var(--electric-blue);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

/* FOCUS STYLES / ACCESSIBILITY */
a:focus, button:focus, .btn-primary:focus, .cookie-btn:focus {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* SEPARATOR UNDER HEADER ON MOBILE */
@media (max-width: 800px) {
  header {
    border-bottom: 2px solid var(--electric-blue)13;
  }
}
