/* --- 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;
}
body {
  line-height: 1.6;
  background: #F7F8FB;
  color: #1a2540;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  background: none;
  border: none;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  padding: 0.5em 1em;
  border-bottom: 1px solid #e6e9ef;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* --- BRAND TYPOGRAPHY --- */
:root {
  --primary: #013D73;
  --secondary: #A6C9E2;
  --accent: #F7C244;
  --background: #F7F8FB;
  --muted: #F0F2F5;
  --gray: #7E8AA2;
  --text: #222433;
  --heading: #1a2540;
  --shadow-card: 0 4px 12px rgba(1,61,115,0.07);
  --radius: 12px;
  --radius-small: 6px;
}
html {
  font-family: 'Roboto', Georgia, Times New Roman, Times, serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--background);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Georgia, Times New Roman, Times, serif;
  color: var(--heading);
  margin-bottom: 16px;
  font-weight: 600;
  letter-spacing: 0.015em;
}
h1 { font-size: 2.5rem; line-height: 1.13; margin-bottom: 24px; }
h2 { font-size: 2rem;   line-height: 1.2;  margin-bottom: 20px; }
h3 { font-size: 1.35rem; line-height: 1.3;  margin-bottom: 12px; }
h4 { font-size: 1.15rem; line-height: 1.4;  margin-bottom: 10px; }

p, li, address {
  font-family: 'Roboto', Georgia, Times New Roman, Times, serif;
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 14px;
}
strong, b {
  font-weight: 600;
  color: var(--primary);
}
blockquote {
  font-style: italic;
  color: var(--primary);
  border-left: 4px solid var(--accent);
  padding-left: 14px;
  margin-bottom: 18px;
  margin-top: 8px;
  background: #fffcea;
  border-radius: var(--radius-small);
}

/* --- UTILITY CLASSES --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-right: 20px;
  padding-left: 20px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
@media (max-width: 768px) {
  section {
    padding: 30px 6px 30px 6px;
    margin-bottom: 42px;
  }
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 0;
}

/* --- HEADER & NAVIGATION --- */
header {
  background: #fff;
  border-bottom: 1px solid #e6eaf0;
  box-shadow: 0 2px 8px rgba(1,61,115,0.06);
  position: relative;
  z-index: 100;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.main-nav a {
  font-family: 'Montserrat', Georgia, Times New Roman, Times, serif;
  font-weight: 500;
  color: var(--primary);
  font-size: 1rem;
  transition: color 0.2s;
  padding: 8px 6px;
  border-radius: var(--radius-small);
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--accent);
  background: var(--secondary);
}
.cta-btn {
  font-family: "Montserrat", Georgia, Times New Roman, Times, serif;
  font-weight: 600;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 12px 28px;
  font-size: 1.1rem;
  transition: background 0.22s, color 0.22s, box-shadow 0.22s;
  box-shadow: 0 2px 12px rgba(1,61,115,0.08);
  letter-spacing: 0.04em;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 6px 24px rgba(1,61,115,0.13);
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: #fff;
  font-size: 2rem;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 102;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--accent);
  color: var(--primary);
}

.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(249,250,251,0.98);
  z-index: 1002;
  box-shadow: 0 6px 24px rgba(1,61,115,0.16);
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.645,.045,.355,1);
  display: flex;
  flex-direction: column;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
}
.mobile-menu-close {
  margin: 20px 20px 0 auto;
  background: var(--primary);
  color: #fff;
  font-size: 1.7rem;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--accent);
  color: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  margin: 40px 38px;
}
.mobile-nav a {
  font-size: 1.25rem;
  font-family: 'Montserrat', Georgia, Times New Roman, Times, serif;
  font-weight: 500;
  color: var(--primary);
  padding: 10px 6px;
  border-radius: var(--radius-small);
  width: 100%;
  transition: color 0.19s, background 0.19s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--accent);
}
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (max-width: 1024px) {
  .cta-btn {
    display: none;
  }
}
@media (min-width: 1025px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* --- FLEXBOX LAYOUTS & SPACING --- */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 12px;
  margin-bottom: 0;
}
.services-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 34px;
  margin-top: 10px;
}
.service-card {
  flex: 1 1 230px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 32px 24px 24px 24px;
  min-width: 220px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover {
  box-shadow: 0 10px 32px rgba(1,61,115,0.14);
  transform: translateY(-4px) scale(1.018);
}
.service-card img {
  width: 44px;
  margin-bottom: 16px;
}
.price {
  font-size: 1.05rem;
  color: var(--primary);
  font-weight: 600;
  background: #f6f5f1;
  padding: 4px 12px;
  border-radius: var(--radius-small);
  margin-top: 10px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  flex: 1 1 220px;
  padding: 28px 24px 20px 24px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  min-width: 180px;
  transition: box-shadow 0.17s;
}
.feature-item img {
  width: 38px;
  margin-bottom: 8px;
}
@media (max-width: 768px) {
  .features-grid, .services-cards {
    flex-direction: column;
    gap: 20px;
  }
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 820px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}

/* --- Testimonials Section --- */
.testimonials-section {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
  margin-bottom: 0;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  color: var(--text);
  box-shadow: 0 4px 16px rgba(51,69,98,0.07);
  border-radius: var(--radius);
  padding: 20px 28px 18px 24px;
  min-width: 220px;
  max-width: 340px;
  font-size: 1.07rem;
  margin-bottom: 20px;
  position: relative;
  border-left: 5px solid var(--primary);
}
.testimonial-card:before {
  content: '\201C';
  color: var(--accent);
  font-size: 2.5rem;
  font-family: 'Montserrat', serif;
  position: absolute;
  left: 12px;
  top: 1px;
}
.testimonial-author {
  margin-top: 8px;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Montserrat', serif;
}
@media (max-width: 600px) {
  .testimonials-section {
    flex-direction: column;
    gap: 12px;
  }
}

/* --- FOOTER --- */
footer {
  background: #f2f5f9;
  color: var(--primary);
  border-top: 1px solid #e6eaf0;
  padding-top: 28px;
  padding-bottom: 16px;
  font-size: 1rem;
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 0;
}
.footer-logo img {
  width: 54px;
  margin-bottom: 10px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-nav a {
  color: var(--primary);
  font-family: 'Montserrat', serif;
  font-size: 1rem;
  padding: 2px 0;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--accent);
  text-decoration: underline;
}
.footer-contact p {
  margin-bottom: 8px;
  font-size: 0.97rem;
  color: var(--gray);
}
@media (max-width: 800px) {
  .footer-container {
    flex-direction: column;
    gap: 24px;
  }
  .footer-logo {
    margin-bottom: 10px;
  }
}

/* --- TABLE STYLES (Cennik etc.) --- */
table {
  margin: 24px 0 18px 0;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-card);
}
thead {
  background: var(--primary);
}
th {
  font-family: 'Montserrat', serif;
  font-weight: 600;
  color: #fff;
  font-size: 1.05rem;
  border-bottom: 2px solid #e6eaf0;
}
td {
  color: var(--text);
  font-size: 1rem;
  background: #f8fafd;
}
tr:hover td {
  background: #f3f3fb;
}

/* --- COOKIE BANNER & MODAL --- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -4px 22px rgba(1,61,115,0.10);
  border-top: 2px solid var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 18px 12px;
  gap: 24px;
  animation: cookie-banner-in 0.6s cubic-bezier(.49,.57,.67,1.53);
}
@keyframes cookie-banner-in {
  0% { transform: translateY(140px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  font-size: 1rem;
  color: var(--primary);
  margin: 0 16px 0 0;
  max-width: 380px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
}
.cookie-btn {
  background: var(--primary);
  color: #fff;
  font-family: 'Montserrat', serif;
  font-weight: 600;
  border-radius: var(--radius-small);
  padding: 9px 18px;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid var(--primary);
  transition: background 0.15s, color 0.15s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--accent);
  color: var(--primary);
}
.cookie-btn.secondary {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
  background: var(--secondary);
  color: var(--primary);
}
/* Cookie Modal Popup */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 2100;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(30,40,57,0.44);
  animation: fade-in 0.33s cubic-bezier(.37,.44,.79,1.4);
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  border-radius: var(--radius);
  width: 370px;
  max-width: 88vw;
  padding: 30px 24px;
  box-shadow: 0 10px 44px rgba(1,61,115,0.18);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: zoom-in 0.33s cubic-bezier(.37,.44,.79,1.4);
}
@keyframes zoom-in {
  0% { transform: scale(0.92); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 1rem;
  color: var(--primary);
}
.cookie-modal .close-btn {
  position: absolute;
  right: 14px; top: 13px;
  background: var(--accent);
  color: var(--primary);
  border-radius: 50%;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border: none;
  font-size: 1.35rem;
  cursor: pointer;
  transition: background 0.15s;
}
.cookie-modal .close-btn:hover {
  background: var(--primary);
  color: #fff;
}

.cookie-modal .switch {
  position: relative;
  width: 40px;
  height: 24px;
  display: inline-block;
}
.cookie-modal .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-modal .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: var(--secondary);
  border-radius: 36px;
  transition: background 0.2s;
}
.cookie-modal .slider:before {
  position: absolute;
  content: "";
  height: 19px;
  width: 19px;
  left: 2.5px;
  bottom: 2px;
  background-color: #fff;
  border-radius: 50%;
  transition: 0.2s;
  box-shadow: 0 2px 8px rgba(1,61,115,0.11);
}
.cookie-modal .switch input:checked + .slider {
  background: var(--accent);
}
.cookie-modal .switch input:checked + .slider:before {
  transform: translateX(16px);
}

.cookie-category .disabled {
  opacity: 0.6;
  pointer-events: none;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    padding: 18px 10px;
    gap: 14px;
    align-items: flex-start;
  }
  .cookie-modal-content { width: 95vw; }
}

/* --- GENERIC BUTTONS --- */
button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}
a.button, .button {
  display: inline-block;
  padding: 11px 24px;
  border-radius: var(--radius);
  font-weight: 500;
  font-family: 'Montserrat', serif;
  color: #fff;
  background: var(--primary);
  transition: background 0.22s, color 0.22s, box-shadow 0.22s;
  box-shadow: 0 2px 14px rgba(1,61,115,0.11);
}
a.button:hover, .button:hover, a.button:focus, .button:focus {
  background: var(--accent);
  color: var(--primary);
}

/* --- FORMS --- */
input, textarea, select {
  border: 1px solid #cfd7e3;
  border-radius: var(--radius-small);
  background: #fcfdff;
  color: var(--text);
  padding: 12px 14px;
  font-size: 1rem;
  margin-bottom: 12px;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  background: #fff;
  outline: none;
}

label {
  font-family: 'Montserrat', serif;
  color: var(--heading);
  display: block;
  margin-bottom: 6px;
}

/* --- ADDRESS, LIST, ETC. --- */
address {
  font-style: normal;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 12px;
}
ul, ol {
  margin-bottom: 16px;
  padding-left: 20px;
}
ul li {
  list-style: disc inside;
  margin-bottom: 6px;
}
ol li {
  list-style: decimal inside;
  margin-bottom: 6px;
}

/* --- CARD CONTAINER / CARD LAYOUTS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 20px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.19s, transform 0.19s;
}
.card:hover {
  box-shadow: 0 8px 30px rgba(1,61,115,0.16);
  transform: translateY(-3px) scale(1.012);
}

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

@media (max-width: 900px) {
  .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
}

/* --- CONTACT BRIEF BLOCK --- */
.contact-info-brief {
  margin-top: 15px;
  font-size: 0.98rem;
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--gray);
  background: #f6f8fb;
  border-radius: var(--radius-small);
  padding: 14px 17px 12px 13px;
}

/* --- ANIMATIONS & MICRO-INTERACTIONS --- */
.cta-btn, .button, .service-card, .feature-item, .testimonial-card, .card {
  transition: box-shadow 0.2s, background 0.2s, color 0.2s, transform 0.15s;
}
.cta-btn:active, .button:active {
  box-shadow: 0 0px 2px rgba(1,61,115,0.05);
  transform: scale(0.98);
}

/* --- HEADINGS SPECIAL RULES --- */
h1, h2, h3 {
  margin-top: 0;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 599px) {
  html { font-size: 15px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.1rem; }
  .service-card, .feature-item, .testimonial-card {
    min-width: 0;
    max-width: 100vw;
    padding: 19px 9px 15px 9px;
  }
  .footer-nav { flex-direction: column; gap: 8px; }
  .footer-contact { font-size: 0.98rem; }
}

@media (max-width: 480px) {
  body, html {
    font-size: 14px;
  }
  .container { padding-left: 8px; padding-right: 8px; }
  .features-grid, .services-cards, .content-grid, .testimonials-section {
    gap: 10px;
  }
}

/* --- Z-INDEX MANAGEMENT --- */
header { z-index: 100; }
.mobile-menu { z-index: 1002; }
.cookie-banner { z-index: 2000; }
.cookie-modal { z-index: 2100; }

/* --- CUSTOM SCROLLBARS (DESKTOP) --- */
@media (pointer: fine) {
  ::-webkit-scrollbar {
    width: 10px;
    background: #efefef;
  }
  ::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 12px;
    border: 2.5px solid #f7f8fb;
  }
}

/* -- Misc: hide scroll when mobile menu open -- */
body.mobile-menu-open {
  overflow: hidden;
}
