/* ================== 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
ub, menu, ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { border-style: none; max-width: 100%; height: auto; display: block; }
table { border-collapse: collapse; border-spacing: 0; }
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
}

/* =================== ROOT CUSTOM PROPERTIES ================== */
:root {
  --primary: #156079;
  --secondary: #F9CB86;
  --accent: #FFFFFF;
  --text-main: #1A2328;
  --text-light: #54636B;
  --bg-main: #FFFFFF;
  --bg-hero: #F7FAFB;
  --shadow: 0 2px 12px rgba(28,41,54,0.07);
  --radius: 14px;
  --radius-sm: 8px;
  --transition: 0.2s cubic-bezier(.4,0,.2,1);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* ==================== BODY & TYPOGRAPHY ===================== */
body {
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--bg-main);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  line-height: 1.15;
  letter-spacing: 0.01em;
  font-weight: 700;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; margin-bottom: 18px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.3rem; margin-bottom: 10px; font-weight: 600; }
h4, h5, h6 { font-size: 1rem; font-weight: 600; }
p, ul, ol, li { color: var(--text-main); }
strong { font-weight: 600; color: var(--primary); }

@media (min-width: 480px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.2rem; }
  h3 { font-size: 1.4rem; }
}

.subheadline {
  font-size: 1.1rem;
  color: var(--text-light);
  font-family: var(--font-body);
  margin-bottom: 26px;
}

.text-section {
  margin-bottom: 40px;
  color: var(--text-light);
  font-size: 1rem;
  max-width: 750px;
}
.text-section h2, .text-section h3 { color: var(--primary); margin-top: 20px; }
.text-section ul {
  margin-left: 24px;
  margin-bottom: 12px;
  list-style: disc;
  color: var(--text-light);
}
.text-section li {
  margin-bottom: 10px;
}

/* ===================== CONTAINER & SECTION ================== */
.container {
  max-width: 1070px;
  margin: 0 auto;
  width: 100%;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  display: flex;
  flex-direction: column;
  gap: 0px;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}

/* ===================== HEADER & NAVIGATION ================== */
header {
  width: 100%;
  background: var(--bg-main);
  box-shadow: 0 1px 12px 0 rgba(22,34,60,0.08);
  position: sticky;
  top: 0; left: 0;
  z-index: 22;
  min-height: 68px;
  display: flex;
  align-items: center;
  padding: 0 0 0 0;
  gap: 0;
}
.logo {
  display: flex;
  align-items: center;
  padding: 12px 20px 12px 12px;
  min-width: 135px;
}

.main-nav {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}
.main-nav a {
  font-family: var(--font-body);
  color: var(--text-main);
  font-weight: 500;
  font-size: 16px;
  padding: 7px 17px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #FFF;
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: var(--radius);
  padding: 12px 28px;
  font-size: 1.07rem;
  box-shadow: var(--shadow);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  border: none;
  margin-left: 18px;
}
.btn-primary:hover, .btn-primary:focus {
  background: #13506A;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px rgba(22,96,121,0.13);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: var(--radius);
  padding: 10px 25px;
  font-size: 1rem;
  box-shadow: var(--shadow);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  border: none;
  margin-top: 20px;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--primary);
  color: #FFF;
  box-shadow: 0 6px 18px rgba(249,203,134,0.07);
}

.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 12px;
  transition: background var(--transition);
  border: none;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #13506A;
}

/* ============= MOBILE BURGER MENU OVERRLAY ============== */
.mobile-menu {
  display: flex;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 100vw; height: 100vh;
  z-index: 99;
  background: rgba(21,96,121,0.92);
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.4,0,.2,1);
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 32px;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: transparent;
  color: #fff;
  font-size: 2.2rem;
  border: none;
  align-self: flex-end;
  margin: 0 24px 12px 0;
  cursor: pointer;
  transition: color var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--secondary);
}
.mobile-nav {
  width: 100%;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.22rem;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 12px 12px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  width: 85vw;
  text-align: center;
  letter-spacing: 0.01em;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}

/* ================ HERO SECTION =================== */
.hero {
  width: 100%;
  background: var(--bg-hero);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 60px;
  padding: 56px 0 32px 0;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 18px;
  max-width: 630px;
}

/* ============= FLEXBOX VARIANT LAYOUTS ============= */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 28px;
  margin: 0 0 20px 0;
  width: 100%;
}
.feature-grid li {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 25px 24px 22px 24px;
  min-width: 220px;
  max-width: 315px;
  flex: 1 1 260px;
  margin-bottom: 0;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-grid li img {
  width: 38px; height: 38px; margin-bottom: 7px;
}
.feature-grid li h3 {
  font-size: 1.13rem;
  margin-bottom: 7px;
  font-family: var(--font-display);
}
.feature-grid li p {
  font-size: 1rem;
  color: var(--text-light);
}
.feature-grid li:hover {
  box-shadow: 0 5px 20px 0 rgba(21,96,121,0.13);
  transform: translateY(-4px) scale(1.025);
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}
.service-list li {
  background: var(--bg-main);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  margin-bottom: 0;
  min-width: 195px;
  flex: 1 1 225px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.service-list li strong {
  font-size: 1.07rem;
  color: var(--primary);
}
.service-list li:hover {
  box-shadow: 0 5px 18px 0 rgba(21,96,121,0.11);
  transform: translateY(-4px) scale(1.018);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  padding: 23px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 230px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 38px 0 rgba(21,96,121,0.13);
  transform: translateY(-3px);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #FFF;
  margin-bottom: 20px;
  width: 100%;
  color: var(--text-main);
}
.testimonial-card p {
  font-size: 1.14rem;
  color: var(--text-main);
}
.testimonial-card span {
  font-size: 1rem;
  color: var(--primary);
}
.testimonial-card strong {
  color: var(--primary);
}
.guest-ratings {
  font-size: 1.07rem;
  color: var(--text-light);
  margin: 18px 0 0 0;
}

.contact-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  width: 100%;
  margin: 20px 0 0 0;
}
.contact-data {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1rem;
}
.contact-data img {
  width: 20px; height: 20px; vertical-align: middle; margin-right: 7px;
  display: inline-block;
}
.contact-data a { color: var(--primary); font-weight: 500; }
.contact-data a:hover {
  text-decoration: underline;
}

.statistic-counters {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 22px;
}
.statistic-counters > div {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 120px;
}
.statistic-counters strong {
  font-size: 2rem;
  color: var(--primary);
}
.statistic-counters p {
  font-size: 1rem;
  color: var(--text-light);
  text-align: center;
}

.fact-highlights {
  width: 100%;
  margin-bottom: 12px;
}
.fact-highlights ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 20px;
}
.fact-highlights li {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff;
  padding: 8px 15px;
  border-radius: var(--radius-sm);
}
.fact-highlights img {
  width: 24px; height: 24px;
}

/* =========== TABLES (CENNIK) =========== */
table {
  width: 100%;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  margin: 30px 0;
  font-size: 1rem;
  overflow: hidden;
}
thead {
  background: var(--secondary);
}
th, td {
  padding: 14px 14px;
  text-align: left;
  color: var(--primary);
}
th {
  font-family: var(--font-display);
}
tbody td {
  color: var(--text-main);
  background: #fff;
}
tbody tr:not(:last-child) td {
  border-bottom: 1px solid #f2f5f7;
}

/* ============ FOOTER ============= */
footer {
  background: var(--bg-hero);
  color: var(--text-light);
  padding: 32px 0 20px 0;
  margin-top: 64px;
  font-size: 1rem;
}
.footer-nav {
  display: flex;
  gap: 22px;
  justify-content: center;
  margin-bottom: 14px;
}
.footer-nav a {
  color: var(--text-light);
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 5px 11px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}
.footer-logo {
  width: 65px;
  margin: 0 auto 7px auto;
}
.footer-logo img {
  width: 48px; height: 48px;
  display: block;
}
footer p {
  color: var(--text-light);
  text-align: center;
  margin-top: 10px;
  font-size: 0.97rem;
}

/* =========== COOKIE CONSENT BANNER =========== */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0;
  width: 100%;
  background: #fff;
  color: var(--text-main);
  box-shadow: 0 -4px 20px rgba(28,41,54,0.13);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  z-index: 120;
  transition: transform var(--transition), opacity var(--transition);
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner p { font-size: 1rem; max-width: 520px; text-align: center; }
.cookie-banner .cookie-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.cookie-banner button {
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 9px 22px;
  border: none;
  cursor: pointer;
  background: var(--secondary);
  color: var(--primary);
  transition: background var(--transition), color var(--transition);
}
.cookie-banner .cookie-accept {
  background: var(--primary);
  color: #fff;
}
.cookie-banner .cookie-reject:hover,
.cookie-banner .cookie-settings:hover {
  background: var(--primary);
  color: #fff;
}
.cookie-banner .cookie-accept:hover,
.cookie-banner .cookie-accept:focus { background: #13506A; }

/* ======== COOKIE MODAL DIALOG ======== */
.cookie-modal-overlay {
  background: rgba(21,96,121,0.22);
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 150;
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.active { display: flex; }
.cookie-modal {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 38px 30px 30px 30px;
  min-width: 340px;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  animation: modalIn 0.35s cubic-bezier(.4,0,.2,1) both;
}
@keyframes modalIn {
  0% { opacity: 0; transform: translateY(70px) scale(.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.cookie-modal h2 {
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 11px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 8px;
}
.cookie-modal .cookie-toggle {
  width: 36px; height: 20px;
  border-radius: 11px;
  background: #efefef;
  position: relative;
  transition: background var(--transition);
  margin-left: 14px;
  flex-shrink: 0;
}
.cookie-modal .cookie-toggle input {
  display: none;
}
.cookie-modal .cookie-toggle span {
  display: block;
  background: var(--primary);
  width: 18px; height: 18px;
  border-radius: 50%;
  position: absolute;
  left: 1px; top: 1px;
  transition: left var(--transition), background var(--transition);
}
.cookie-modal .cookie-toggle input:checked + span {
  left: 17px;
  background: var(--secondary);
}
.cookie-modal .cookie-toggle.essential {
  background: #e2e9ec;
}
.cookie-modal .cookie-toggle.essential span {
  background: var(--secondary);
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 16px;
  width: 100%;
  flex-wrap: wrap;
  margin-top: 12px;
}
.cookie-modal .cookie-actions button {
  font-family: var(--font-display);
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  background: var(--secondary);
  color: var(--primary);
  cursor: pointer;
  border: none;
  transition: background var(--transition);
}
.cookie-modal .cookie-actions .cookie-accept {
  background: var(--primary);
  color: #fff;
}
.cookie-modal .cookie-actions .cookie-accept:hover,
.cookie-modal .cookie-actions .cookie-accept:focus { background: #13506A; }
.cookie-modal .cookie-actions button:hover,.cookie-modal .cookie-actions button:focus {
  background: var(--primary);
  color: #fff;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 12px; right: 18px;
  border: none;
  background: transparent;
  font-size: 1.7rem;
  color: var(--primary);
  cursor: pointer;
  transition: color var(--transition);
}
.cookie-modal .close-modal:hover,
.cookie-modal .close-modal:focus { color: #13506A; }

/* =============== RESPONSIVE DESIGN (MOBILE-FIRST) ================ */
@media (max-width: 1024px) {
  .container { padding: 0 12px; }
  .content-wrapper { padding: 0; }
  .feature-grid { gap: 22px 8px; }
  .service-list { gap: 16px; }
}
@media (max-width: 900px) {
  .feature-grid li, .service-list li, .card {
    min-width: 170px;
    max-width: 100%;
    flex: 1 1 95%;
  }
  .fact-highlights ul { flex-direction: column; gap: 14px; }
  .statistic-counters { gap: 17px; }
}
@media (max-width: 768px) {
  .container {
    padding: 0 7px;
    max-width: 100vw;
  }
  header, footer {
    padding-left: 0; padding-right: 0;
  }
  .main-nav {
    display: none;
  }
  .btn-primary {
    margin-left: auto; margin-right: 12px;
    font-size: 1rem;
    padding: 11px 19px;
  }
  .logo {
    min-width: 110px;
    padding-left: 8px;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .hero {
    min-height: 180px;
    padding: 35px 0 16px 0;
  }
  .hero h1 { font-size: 2.1rem; }
  .feature-grid {
    flex-direction: column;
    gap: 22px 0;
  }
  .service-list {
    gap: 13px;
    flex-direction: column;
  }
  .statistic-counters {
    flex-direction: column;
    gap: 9px;
  }
  .fact-highlights ul {
    flex-direction: column;
    gap: 11px;
  }
  .contact-preview, .content-grid, .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
    gap: 7px;
  }
  .footer-nav { flex-direction: column; gap: 9px; }
  .footer-logo { margin: 7px 0 0 0; }
  .cookie-modal { min-width: 97vw; padding: 20px 7vw 18px 7vw; }
}
@media (max-width: 450px) {
  h1 { font-size: 1.37rem; }
  h2 { font-size: 1.05rem; }
  .btn-primary, .btn-secondary {
    font-size: 0.98rem;
    padding: 10px 15px;
  }
}

/* =============== MICRO-INTERACTIONS ================ */
a, .btn-primary, .btn-secondary, button {
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

footer, header, main, section, .hero, .feature-grid li, .service-list li, .card, .testimonial-card, .statistic-counters > div, .fact-highlights li, .cookie-banner, .cookie-modal {
  transition: box-shadow var(--transition), background var(--transition), color var(--transition);
}

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

/* =============== PRINT ================ */
@media print {
  header, nav, .mobile-menu, .cookie-banner, footer {display: none !important;}
  section, .container, .content-wrapper { box-shadow: none !important; background: #fff !important; }
}
