/* ==== CSS RESET & BASE ==== */
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 { box-sizing: border-box; scroll-behavior: smooth; }
*, *:before, *:after { box-sizing: inherit; }
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  color: #2B4B3F;
  background: #FFFFFF;
  line-height: 1.6;
  min-height: 100vh;
  letter-spacing: 0.01em;
}
img { max-width: 100%; display: block; }
a { color: #2B4B3F; text-decoration: none; transition: color 0.2s; }
a:focus, a:hover { color: #92722D; }
ul, ol { list-style: none; }
button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  outline: none;
  transition: background 0.2s, color 0.2s;
}

/* ==== BRAND COLORS ==== */
:root {
  --primary: #2B4B3F;
  --secondary: #F2F1ED;
  --surface: #FFFFFF;
  --accent: #92722D;
  --accent-dark: #7A5E13;
  --gold: #B5915A;
  --text: #2B4B3F;
  --text-light: #5B6E60;
  --section-bg: #E6E4D9;
  --shadow: rgba(43, 75, 63, 0.10);
}

/* ==== TYPOGRAPHY ==== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.005em;
  margin-bottom: 16px;
  line-height: 1.2;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
}
p, li {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 12px;
}
strong {
  font-weight: 600;
  color: var(--primary);
}

/* ==== GENERAL LAYOUT ==== */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  align-items: flex-start;
}
@media (max-width: 768px) {
  .container { padding: 0 10px; }
  .content-wrapper { gap: 20px; }
}

.section {
  background: var(--section-bg);
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 24px;
  box-shadow: 0 2px 16px var(--shadow);
}
@media (max-width: 768px) {
  .section {
    padding: 28px 10px;
    margin-bottom: 36px;
    border-radius: 12px;
  }
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
}

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

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  background: var(--surface);
  border-radius: 18px;
  box-shadow: 0 2px 16px var(--shadow);
  margin-bottom: 20px;
  padding: 32px 24px;
  position: relative;
  flex: 1 1 320px;
  min-width: 290px;
  transition: box-shadow 0.25s, transform 0.18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 28px var(--shadow);
  transform: translateY(-3px) scale(1.01);
}

/* ==== HEADER & NAV ==== */
header {
  background: var(--surface);
  box-shadow: 0 2px 14px rgba(43,75,63,0.03);
  border-bottom: 1px solid #e6e4d9;
  position: relative;
  z-index: 11;
}
nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
}
nav .logo {
  margin-right: 42px;
  flex-shrink: 0;
}
nav .logo img {
  height: 50px;
}
nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
  font-weight: 500;
}
nav a:hover, nav a:focus {
  background: var(--section-bg);
  color: var(--accent);
}
nav a.cta {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-radius: 28px;
  padding: 12px 26px;
  margin-left: 14px;
  box-shadow: 0 2px 10px rgba(146,114,45,0.10);
  transition: background 0.22s, box-shadow 0.22s, color 0.22s;
}
nav a.cta:hover,
nav a.cta:focus {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 6px 24px rgba(146,114,45,0.15);
}

@media (max-width: 1024px) {
  nav {
    gap: 14px;
  }
  nav .logo {
    margin-right: 16px;
  }
}
@media (max-width: 900px) {
  nav {
    gap: 9px;
  }
  nav a.cta { padding: 10px 18px; font-size: 0.98rem; }
}
@media (max-width: 768px) {
nav {
  display: none;
}
nav .logo { margin-right: 0; }
}

/* ==== MOBILE MENU ==== */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 20px;
  top: 20px;
  z-index: 1002;
  background: var(--section-bg);
  color: var(--primary);
  font-size: 2.1rem;
  padding: 6px 14px 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--section-bg);
  box-shadow: 0 1px 6px rgba(43,75,63,0.05);
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--gold);
}
@media (max-width: 768px) {
  .mobile-menu-toggle { display: block; }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(43, 75, 63, 0.98);
  color: #fff;
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.68,-0.25,.28,1.25);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 40px;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  margin-left: auto;
  background: none;
  color: #fff;
  font-size: 2.3rem;
  padding: 9px 22px 9px 9px;
  border-radius: 8px;
  position: absolute;
  top: 16px;
  right: 8px;
  z-index: 1003;
  transition: background 0.18s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: var(--accent-dark);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 12px;
  margin: 36px 0 0 36px;
  z-index: 1002;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.28rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 500;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  transition: color 0.18s, background 0.18s;
  border-radius: 0;
  margin-right: 28px;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  color: var(--accent);
  background: rgba(146,114,45,0.07);
  border-radius: 7px;
}

/* ==== HERO SECTION ==== */
main section:first-of-type {
  background: var(--section-bg);
  padding: 68px 0 60px 0;
  min-height: 360px;
  border-radius: 0 0 36px 36px;
  box-shadow: 0 6px 24px var(--shadow);
  margin-bottom: 60px;
}
main section:first-of-type .content-wrapper {
  align-items: center;
  text-align: center;
}
main section:first-of-type h1 {
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 16px;
  font-weight: 800;
}
main section:first-of-type p {
  font-size: 1.32rem;
  color: var(--text-light);
  margin-bottom: 20px;
  max-width: 600px;
}
@media (max-width: 768px) {
  main section:first-of-type {
    padding: 44px 0 38px 0;
    border-radius: 0 0 18px 18px;
    margin-bottom: 34px;
  }
  main section:first-of-type h1 { font-size: 1.6rem; }
  main section:first-of-type .content-wrapper { gap: 12px; }
}

/* ==== CTA BUTTONS ==== */
.cta, .cta-secondary {
  display: inline-block;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 12px 32px;
  border-radius: 28px;
  transition: background 0.22s, color 0.22s, box-shadow 0.18s, border 0.2s;
  cursor: pointer;
  border: none;
  margin-top: 8px;
  margin-bottom: 8px;
  box-shadow: 0 2px 10px rgba(146,114,45,0.08);
  position: relative;
  outline: none;
}
.cta {
  background: var(--accent);
  color: #fff;
  border: 1.5px solid var(--accent);
}
.cta:focus, .cta:hover {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
  box-shadow: 0 6px 24px rgba(146,114,45,0.16);
}
.cta-secondary {
  background: var(--surface);
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.cta-secondary:focus, .cta-secondary:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 24px rgba(146,114,45,0.09);
}

/* ==== FEATURES, SERVICES, LISTS ==== */
ul {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 12px;
}
ul li {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border-radius: 13px;
  padding: 14px 18px;
  box-shadow: 0 1px 7px rgba(43,75,63,0.06);
  font-size: 1rem;
  color: var(--text);
  min-height: 48px;
}
ul li img {
  width: 32px;
  height: 32px;
}

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

/* ==== TESTIMONIALS ==== */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px 28px;
  margin-bottom: 20px;
  background: var(--surface);
  border-radius: 13px;
  box-shadow: 0 2px 16px var(--shadow);
  border-left: 7px solid var(--accent);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.testimonial-card:focus-within,
.testimonial-card:hover {
  border-left: 7px solid var(--gold);
  box-shadow: 0 6px 28px var(--shadow);
}
.testimonial-card blockquote {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.15rem;
  color: var(--primary);
  font-style: italic;
  margin-bottom: 0;
}
.testimonial-card div {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ==== TABLES ==== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background: var(--surface);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 1px 8px var(--shadow);
}
th, td {
  text-align: left;
  padding: 14px 17px;
  font-size: 1rem;
}
th {
  background: var(--section-bg);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.03em;
}
tr:nth-child(even) td {
  background: #faf9f6;
}
tr td {
  color: var(--text);
}

/* ==== IMAGE/ICON STYLES ==== */
img[alt^="Ikona"], img[alt^="icon-"], img[alt^="Adres"], img[alt^="Telefon"], img[alt^="E-mail"], img[alt^="Godziny"] {
  vertical-align: middle;
  margin-right: 8px;
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: inline-block;
}
.brand-footer img {
  max-width: 56px;
  height: auto;
}

/* ==== FOOTER ==== */
footer {
  background: var(--primary);
  color: #fff;
  padding: 42px 0 18px 0;
  margin-top: 60px;
}
footer .content-wrapper {
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  justify-content: center;
}
footer nav a {
  color: #fff;
  font-size: 1rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 500;
  padding: 5px 9px;
  border-radius: 7px;
  transition: background 0.18s;
  border: none;
}
footer nav a:hover, footer nav a:focus {
  background: var(--accent);
  color: #fff;
}
.contact-footer {
  margin-top: 12px;
  color: #e7e5da;
  font-size: 0.97rem;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.contact-footer a {
  color: var(--gold);
  font-weight: 500;
  transition: color 0.18s;
}
.contact-footer a:focus, .contact-footer a:hover {
  color: #fff;
  text-decoration: underline;
}
@media (max-width: 768px) {
  footer {
    padding: 30px 0 10px 0;
    margin-top: 30px;
  }
}

/* ==== TEXT BLOCKS ==== */
.text-section a {
  color: var(--accent);
  text-decoration: underline;
  transition: color 0.18s;
  font-weight: 500;
}
.text-section a:hover, .text-section a:focus {
  color: var(--gold);
}

/* ==== RESPONSIVE ==== */
@media (max-width: 1140px) {
  .container {
    max-width: 980px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 95vw;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 1.35rem !important; }
  h2 { font-size: 1.07rem; }
  .card {
    min-width: 95vw;
    padding: 20px 11px;
  }
  .brand-footer img { max-width: 39px; }
}
@media (max-width: 520px) {
  .brand-footer img { max-width: 31px; }
}

/* ==== MICRO-INTERACTIONS & EFFECTS ==== */
.card, .testimonial-card, .cta, .cta-secondary, .mobile-menu-toggle, .mobile-menu-close {
  transition:
    background 0.18s cubic-bezier(.71,0,.51,1.07),
    box-shadow 0.22s cubic-bezier(.4,0,.2,1),
    color 0.17s;
}
.cta:active, .cta-secondary:active { transform: scale(0.98); }

/* ==== SCROLLBAR ==== */
::-webkit-scrollbar { width: 8px; background: #e7e7e5; }
::-webkit-scrollbar-thumb { background: var(--section-bg); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ==== COOKIE BANNER ==== */
.cookie-consent {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fffbea;
  color: var(--primary);
  box-shadow: 0 -4px 22px rgba(146,114,45,0.13);
  padding: 28px 16px 22px 16px;
  z-index: 2001;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  justify-content: center;
  transition: transform 0.4s, opacity 0.26s;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-consent.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-consent p {
  max-width: 420px;
  margin-bottom: 0;
}
.cookie-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.cookie-buttons button {
  padding: 10px 22px;
  border-radius: 9px;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin: 0 2px;
  min-width: 120px;
  transition: background 0.18s, color 0.18s;
  border: none;
  outline: none;
  cursor: pointer;
}
.cookie-accept {
  background: var(--accent);
  color: #fff;
}
.cookie-accept:hover, .cookie-accept:focus {
  background: var(--gold);
}
.cookie-reject {
  background: #fff;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.cookie-reject:hover, .cookie-reject:focus {
  background: var(--accent);
  color: #fff;
}
.cookie-settings {
  background: var(--section-bg);
  color: var(--primary);
  border: 1px solid var(--primary);
}
.cookie-settings:hover, .cookie-settings:focus {
  background: var(--accent);
  color: #fff;
}
@media (max-width: 768px) {
  .cookie-consent {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 20px 6px 14px 6px;
  }
}

/* COOKIE CONSENT MODAL */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(43, 75, 63, 0.61);
  z-index: 2010;
  display: none;
}
.cookie-modal-overlay.active {
  display: block;
}
.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(0.97);
  background: #fff;
  color: var(--primary);
  border-radius: 18px;
  box-shadow: 0 8px 44px rgba(146,114,45,0.20);
  padding: 32px 28px 24px 28px;
  min-width: 315px;
  max-width: 98vw;
  min-height: 150px;
  z-index: 2020;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.29s, transform 0.32s;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.cookie-modal h2 {
  font-size: 1.3rem;
  color: var(--accent);
}
.cookie-modal .cookie-category {
  margin: 17px 0 15px 0;
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.cookie-modal .cookie-category label {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 500;
}
.cookie-modal .cookie-toggle {
  width: 44px; height: 22px;
  border-radius: 13px;
  background: var(--section-bg);
  position: relative;
  transition: background 0.18s;
  margin-left: 8px;
  border: 1px solid var(--section-bg);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.cookie-modal .cookie-toggle input[type="checkbox"] {
  display: none;
}
.cookie-modal .cookie-toggle .slider {
  width: 22px; height: 22px;
  background: var(--primary);
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 0;
  transition: left 0.19s, background 0.19s;
  z-index: 2;
}
.cookie-modal .cookie-toggle input[type="checkbox"]:checked + .slider {
  left: 22px;
  background: var(--accent);
}
.cookie-modal .cookie-category .info {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-left: 8px;
}
.cookie-modal .cookie-category.essential label { color: var(--gold); }
.cookie-modal .cookie-category.essential .cookie-toggle .slider {
  background: var(--gold) !important;
}
.cookie-modal .cookie-category.essential .cookie-toggle {
  background: var(--section-bg);
  border: 1px solid var(--gold);
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 25px;
  justify-content: flex-end;
}
.cookie-modal .modal-actions button {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: 9px;
  font-size: 1rem;
  padding: 10px 24px; border: none;
  transition: background 0.18s, color 0.18s;
  outline: none;
  cursor: pointer;
}
.cookie-modal .modal-actions button:hover,
.cookie-modal .modal-actions button:focus {
  background: var(--gold);
}
@media (max-width: 600px) {
  .cookie-modal { padding: 18px 8px 10px 8px; min-width: 85vw; }
}

/* ==== UTILITY CLASSES ==== */
section + section {
  margin-top: 30px;
}
.mt-3 { margin-top: 24px !important; }
.mt-4 { margin-top: 36px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }

/* ==== CARDS (OFFER, SERVICES) ==== */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.offer-card {
  border-left: 7px solid var(--accent);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: 0 2px 16px var(--shadow);
  margin-bottom: 22px;
  padding: 26px 20px 24px 28px;
  transition: box-shadow 0.22s, border-color 0.22s;
  position: relative;
}
.offer-card:focus-within,
.offer-card:hover {
  border-left: 7px solid var(--gold);
  box-shadow: 0 7px 28px var(--shadow);
}

/* ==== MISC ==== */
blockquote {
  quotes: "\201E" "\201D" "\201A" "\2019";
  font-style: italic;
  margin-bottom: 0;
  padding-left: 6px;
  color: var(--primary);
}
blockquote:before {
  color: var(--gold);
  content: open-quote;
  font-size: 1.3rem;
  vertical-align: -10px;
  margin-right: 2px;
}
blockquote:after {
  color: var(--gold);
  content: close-quote;
  font-size: 1.3rem;
  vertical-align: -10px;
  margin-left: 2px;
}

hr {
  border: none;
  height: 1px;
  background: #eee7;
}

/* ==== PREVENT CONTENT OVERLAP ==== */
section, .card, .testimonial-card, .card-container > *, .content-wrapper > * {
  margin-bottom: 20px;
}

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