/* =============================
   CSS RESET & BASE NORMALIZATION
   ============================= */
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,
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 {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background: #F5F6FA;
  color: #181B21;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
  border: none;
}
a {
  color: #181B21;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #D9A441;
  text-decoration: underline;
  outline: none;
}
ul, ol {
  margin-left: 24px;
}
ul {
  list-style-type: disc;
}
ol {
  list-style-type: decimal;
}
strong, b { font-weight: 600; }
sub, sup { font-size: 75%; }
hr { border: none; border-bottom: 1px solid #eee; margin: 32px 0; }

/* ===============
   TYPOGRAPHY SCALE
   =============== */
h1, .h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  color: #181B21;
}
@media (max-width: 768px) {
  h1, .h1 { font-size: 2rem; }
}
h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 18px;
  color: #181B21;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #181B21;
}
@media (max-width: 768px) {
  h2, .h2 { font-size: 1.5rem; }
  h3, .h3 { font-size: 1.1rem; }
}
.subheadline {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.1rem;
  color: #32353a;
  margin-bottom: 20px;
}
p {
  margin-bottom: 16px;
  color: #181B21;
}

/* ===============
   COMMON STRUCTURE
   =============== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-right: 20px;
  padding-left: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  .section {
    padding: 24px 8px;
    margin-bottom: 36px;
  }
}

.content-wrapper {
  margin-top: 20px;
  margin-bottom: 0;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

/* ================
   FLEXBOX LAYOUTS
   ================ */
.card-container, .feature-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card-container {
  margin-bottom: 20px;
}
.card {
  position: relative;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(24,27,33,0.06);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.content-grid {
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .content-grid, .card-container, .feature-grid, .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
}

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

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px 0 rgba(24,27,33,0.08);
  padding: 24px 22px;
  min-width: 260px;
  flex: 1 1 220px;
  margin-bottom: 20px;
  transition: box-shadow 0.22s cubic-bezier(.4,0,.2,1), transform 0.2s cubic-bezier(.4,0,.2,1);
}
.testimonial-card p {
  color: #181B21;
  font-size: 1.08rem;
  font-style: italic;
  margin-bottom: 6px;
}
.testimonial-card strong {
  font-size: 0.99rem;
  color: #7a7d84;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 16px 0 rgba(24,27,33,0.12);
  transform: translateY(-2px) scale(1.015);
}

/* News list (aktualnosci) */
.news-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 6px 0 rgba(24,27,33,0.04);
  padding: 22px 20px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s cubic-bezier(.4,0,.2,1);
}
.news-item:hover, .news-item:focus-within {
  box-shadow: 0 4px 16px 0 rgba(24,27,33,0.12);
}

/* Feature grid cards (icon + heading + text) */
.feature-grid > div {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px 0 rgba(24,27,33,0.06);
  padding: 32px 24px 28px 24px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 210px;
  max-width: 340px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s cubic-bezier(.4,0,.2,1), transform 0.17s cubic-bezier(.4,0,.2,1);
}
.feature-grid > div img {
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
}
.feature-grid > div h3 {
  margin-bottom: 8px;
}
.feature-grid > div:hover, .feature-grid > div:focus-within {
  box-shadow: 0 4px 16px 0 rgba(24,27,33,0.10);
  transform: translateY(-2px) scale(1.01);
}

/* ===============
   BUTTON STYLES
   =============== */
.cta-primary, .cta-secondary, .cookie-btn {
  display: inline-block;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 600;
  font-size: 1.04rem;
  border-radius: 26px;
  padding: 13px 34px;
  text-align: center;
  border: none;
  transition: background 0.18s cubic-bezier(.4,0,.2,1), color 0.18s cubic-bezier(.4,0,.2,1), box-shadow 0.19s;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(24,27,33,0.07);
}
.cta-primary {
  background: #181B21;
  color: #fff !important;
  border: none;
}
.cta-primary:hover, .cta-primary:focus {
  background: #D9A441;
  color: #181B21 !important;
}
.cta-secondary {
  background: #D9A441;
  color: #181B21 !important;
  border: none;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #fff2d8;
  color: #181B21 !important;
  box-shadow: 0 4px 12px 0 rgba(217,164,65,0.13);
}
button, .cookie-btn {
  outline: none;
}
.cookie-btn {
  background: #181B21;
  color: #fff;
  border: none;
  margin-right: 14px;
  min-width: 110px;
  margin-bottom: 0;
}
.cookie-btn.secondary {
  background: #D9A441;
  color: #181B21;
}
.cookie-btn.settings {
  background: transparent;
  color: #181B21;
  border: 1.5px solid #181B21;
}
.cookie-btn:focus, .cookie-btn:hover {
  box-shadow: 0 2px 10px 0 rgba(24,27,33,0.14);
  filter: brightness(0.96);
  background: #D9A441;
  color: #181B21;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #f5f6fa;
  color: #181B21;
  border-color: #D9A441;
}

/* ===============
   HEADER & NAVIGATION
   =============== */
header {
  background: #fff;
  box-shadow: 0 2px 12px 0 rgba(24,27,33,0.08);
  position: sticky;
  top: 0;
  z-index: 500;
  width: 100%;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #181B21;
  opacity: 0.87;
  padding: 6px 10px;
  border-radius: 5px;
  transition: background .15s, color .15s;
}
header nav a:hover, header nav a:focus {
  color: #D9A441;
  background: #faf7ef;
}
header .cta-primary {
  margin-left: 16px;
}

/* Hide mobile menu toggle on desktop */
.mobile-menu-toggle {
  display: none;
  font-size: 2.2rem;
  color: #181B21;
  background: transparent;
  border: none;
  cursor: pointer;
  margin-left: 20px;
  z-index: 1202;
  transition: color 0.15s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: #D9A441;
}

@media (max-width: 1000px) {
  header .container nav,
  header .container .cta-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* MOBILE MENU (SLIDE FROM RIGHT) */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(24,27,33,0.50);
  z-index: 1201;
  transform: translateX(100%);
  transition: transform 0.39s cubic-bezier(.33,1,.68,1);
  pointer-events: none;
  opacity: 0;
  will-change: transform;
  display: flex;
  flex-direction: row;
  align-items: stretch;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu > nav,
.mobile-nav {
  background: #fff;
  max-width: 330px;
  min-width: 240px;
  width: 76vw;
  min-height: 100vh;
  padding: 38px 28px 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 23px;
  box-shadow: -4px 0 16px rgba(24,27,33,0.13);
  position: relative;
}
.mobile-menu-close {
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 2rem;
  color: #181B21;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1250;
  transition: color 0.14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #D9A441;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.12rem;
  font-weight: 500;
  color: #181B21;
  padding: 14px 0 10px 0;
  border-radius: 6px;
  margin-bottom: 3px;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #faf7ef;
  color: #D9A441;
}
@media (min-width: 1001px) {
  .mobile-menu { display: none !important; }
}

/* =======================
   MAIN CONTENT - SECTION
   ======================= */
main > section {
  --section-gap: 32px;
  margin-bottom: 60px;
  padding: 40px 0px;
  background: transparent;
}
@media (max-width: 900px) {
  main > section { padding: 30px 0px; }
}

/* ===============
   FOOTER
   =============== */
footer {
  background: #fff;
  box-shadow: 0 -1px 8px 0 rgba(24,27,33,0.05);
  padding: 34px 0;
  font-size: 1rem;
  color: #474a51;
  position: relative;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  justify-content: center;
}
footer nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 8px;
}
footer nav a {
  color: #7a7d84;
  font-size: 0.97rem;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: color 0.14s;
}
footer nav a:hover, footer nav a:focus {
  color: #D9A441;
}
footer address {
  font-size: 1rem;
  font-style: normal;
  color: #32353a;
}
.footer-meta {
  font-size: 0.93rem;
  color: #ababab;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-top: 12px;
}
@media (max-width: 768px) {
  footer .container, .footer-meta {
    align-items: flex-start;
    padding-left: 4px;
  }
}

/* ================
   MISCELLANEOUS UI ELEMENTS
   ================ */
.map {
  background: #f3f2ed;
  border-radius: 12px;
  padding: 16px 12px;
  min-height: 120px;
  color: #474a51;
  margin-bottom: 18px;
  font-size: 1rem;
}

/* ================
   COOKIE CONSENT BANNER
   ================ */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3000;
  background: #fff;
  box-shadow: 0 -1px 16px 0 rgba(24,27,33,0.14);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  padding: 22px 32px 22px 22px;
  justify-content: space-between;
  transition: transform 0.27s cubic-bezier(.42,0,.58,1), opacity 0.22s;
  opacity: 1;
}
.cookie-banner.hide {
  transform: translateY(110%);
  opacity: 0;
}
.cookie-banner-message {
  font-size: 1rem;
  color: #181B21;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.5;
  margin-right: 12px;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 8px 18px 8px;
    gap: 18px;
  }
  .cookie-banner-message { margin: 0 0 2px 0; }
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: rgba(24,27,33,0.40);
  z-index: 3400;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.14s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 14px 40px 0 rgba(24,27,33,0.16);
  padding: 30px 26px 24px 26px;
  max-width: 440px;
  width: 94vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: popIn 0.39s cubic-bezier(.33,1,.68,1);
}
@keyframes popIn {
  0% { transform: scale(0.82) translateY(64px); opacity:0; }
  100% { transform: scale(1) translateY(0); opacity:1; }
}
.cookie-modal-title {
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: #181B21;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f5f6fa;
  border-radius: 6px;
  padding: 12px 10px 12px 13px;
  font-size: 1rem;
}
.cookie-category label {
  font-weight: 500;
  font-size: 1rem;
  color: #181B21;
}
.cookie-category input[type="checkbox"] {
  width: 17px;
  height: 17px;
}
.cookie-category.essential label {
  color: #7a7d84;
}
.cookie-category.essential input { display: none; }
.cookie-modal-actions {
  margin-top: 11px;
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
}
.cookie-modal-close {
  position: absolute;
  top: 14px; right: 18px;
  font-size: 1.35rem;
  color: #181B21;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  color: #D9A441;
}

/* ================
   RESPONSIVE SPACING & UTILITIES
   ================ */
@media (max-width: 900px) {
  .container {padding-right:12px; padding-left:12px; }
}
@media (max-width: 600px) {
  h1, .h1 {font-size:1.3rem;}
  h2, .h2 {font-size:1.12rem;}
  .card, .feature-grid > div, .testimonial-card {padding:18px 9px;}
}
.gap-8 { gap:8px !important; }
.gap-16 { gap:16px !important; }
.gap-24 { gap:24px !important; }
.mb-24 { margin-bottom:24px !important; }
.mt-24 { margin-top:24px !important; }

/* Images in content blocks */
.content-wrapper img, .text-section img {
  border-radius: 9px;
  box-shadow: 0 1px 5px rgba(24,27,33,0.06);
  background: #fafbfc;
}

/* Utility: hide visually */
.visually-hidden { position:absolute; left:-10000px; top:auto; width:1px; height:1px; overflow:hidden; }

/* ================
   FORM CONTROLS (for future forms)
   ================ */
input, select, textarea {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.03rem;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid #eee;
  background: #f7f7fa;
  color: #181B21;
  box-shadow: none;
  margin-bottom: 12px;
  transition: border-color 0.14s;
}
input:focus, select:focus, textarea:focus {
  border-color: #D9A441;
  outline: none;
}
label {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #181B21;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 5px;
}

/* ================
   SPECIAL (for cards, space between blocks)
   ================ */
.card:not(:last-child),
.feature-grid > div:not(:last-child),
.testimonial-card:not(:last-child),
.news-item:not(:last-child) {
  margin-right: 20px;
}
@media (max-width: 768px) {
  .card:not(:last-child),
  .feature-grid > div:not(:last-child),
  .testimonial-card:not(:last-child),
  .news-item:not(:last-child) {
    margin-right: 0;
    margin-bottom: 18px;
  }
}

/* ================
   COLOR THEMES, HIGHLIGHTS
   ================ */
.bg-accent {
  background: #F5F6FA !important;
}
.text-primary {
  color: #181B21 !important;
}
.text-secondary {
  color: #D9A441 !important;
}
.text-dark {
  color: #181B21;
}
.text-light {
  color: #fff;
}

/* Icon styles */
.content-wrapper img[alt^="Adres"],
.content-wrapper img[alt^="Telefon"],
.content-wrapper img[alt^="Email"],
.content-wrapper img[alt^="Godziny otwarcia"] {
  width: 24px;
  height: 24px;
  margin-right: 8px;
  vertical-align: middle;
  display: inline-block;
}

/* ================
   SCROLLBAR (minimalist, light)
   ================ */
::-webkit-scrollbar {
  width: 9px;
  background: #f2f4f7;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb {
  background: #d9dbdd;
  border-radius: 6px;
}

/* ====== END OF STYLE.CSS ====== */