/* --- CSS RESET & 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, 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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  font-size: 100%;
  scroll-behavior: smooth;
}
body {
  line-height: 1.55;
  background: #fff;
  color: #222;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-text-size-adjust: 100%;
  font-feature-settings: "kern";
  letter-spacing: 0.01em;
}
img, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
}
a {
  color: #174C6F;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F6B40E;
  outline: none;
}
ul, ol {
  margin-left: 1.3em;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
  line-height: 1.6;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
  box-sizing: border-box;
  outline: none;
}

/* --- ROOT CSS VARIABLES (With fallback) --- */
:root {
  --color-primary: #174C6F;
  --color-primary-fallback: #174C6F;
  --color-secondary: #F6B40E;
  --color-accent: #FAFAFA;
  --color-bg: #fff;
  --color-muted: #F6F8F9;
  --color-text: #172635;
  --color-card-border: #e6e9ef;
  --shadow-card: 0 2px 10px rgba(23,76,111,0.06), 0 1.5px 6px rgba(23,76,111,0.02);
  --shadow-hover: 0 6px 24px rgba(23,76,111,0.09);
  --radius-s: 10px;
  --radius-btn: 6px;
  --transition: 0.22s cubic-bezier(0.4,0,0.2,1);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
  --focus-outline: 2px solid #174C6F;
}

/* --- CONTAINER & LAYOUT --- */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

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

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}

/* --- TYPOGRAPHY & HEADING SCALE --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary, var(--color-primary-fallback));
  margin-bottom: 16px;
}
h1 {
  font-size: 2.75rem;
  line-height: 1.17;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 1.4rem;
  line-height: 1.3;
}
h4 {
  font-size: 1.18rem;
  margin-bottom: 8px;
}
p, .text-section p, blockquote, cite {
  font-size: 1rem;
  font-family: var(--font-body);
  color: #222;
  margin-bottom: 16px;
}
blockquote {
  background: var(--color-accent,#FAFAFA);
  border-left: 3px solid var(--color-secondary);
  padding: 16px 24px;
  margin-bottom: 8px;
  border-radius: var(--radius-s);
  color: var(--color-text);
  font-style: italic;
}
cite {
  display: block;
  margin-top: 8px;
  font-size: 0.98rem;
  color: #666;
  font-style: normal;
  letter-spacing: 0.02em;
}
strong, b {
  font-weight: 600;
  color: #222;
}

/* --- BUTTONS & INTERACTIVES --- */
.cta-btn {
  font-family: var(--font-display);
  display: inline-block;
  padding: 14px 36px;
  font-size: 1.1rem;
  font-weight: 600;
  background: var(--color-primary, var(--color-primary-fallback));
  color: #fff;
  border-radius: var(--radius-btn);
  box-shadow: 0 2px 12px rgba(23,76,111,0.10);
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
  transition: background var(--transition), box-shadow var(--transition), color var(--transition);
  outline: none;
  margin-top: 10px;
  margin-bottom: 10px;
}
.cta-btn.small {
  padding: 9px 22px;
  font-size: 1rem;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-secondary);
  color: #174C6F;
  box-shadow: var(--shadow-hover);
  outline: var(--focus-outline);
}
button, .mobile-menu-toggle, .mobile-menu-close {
  cursor: pointer;
  border: none;
  background: none;
  transition: background var(--transition), color var(--transition);
}
button:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus {
  outline: var(--focus-outline);
}

/* --- NAVIGATION --- */
header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(23,76,111,0.05);
  padding: 0;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 12px;
}
.logo img {
  max-height: 48px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #222;
  padding: 7px 2px;
  border-radius: 2px;
  transition: color 0.17s, background 0.15s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-primary, var(--color-primary-fallback));
  background: #F5F7FA;
  outline: none;
}

.cta-btn {
  margin-left: 18px;
}
/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--color-primary);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: none;
  transition: background 0.2s;
  z-index: 102;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: #F5F5F8;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(255,255,255,0.97);
  box-shadow: 0 0 0 100vmax rgba(23,76,111,0.14);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.7,.17,.28,.95);
  overflow-y: auto;
  padding: 0;
  visibility: hidden;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 14px 20px 6px 0;
  font-size: 2rem;
  color: #222;
  padding: 6px 13px;
  border-radius: 4px;
  background: none;
  transition: background 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #F5F7FA;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100vw;
  max-width: 100vw;
  align-items: flex-start;
  padding: 24px 32px 60px 32px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 500;
  color: #174C6F;
  padding: 12px 0;
  transition: color .18s;
  width: 100%;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  color: var(--color-secondary);
}
@media (max-width: 1100px) {
  .main-nav {
    gap: 16px;
  }
}
@media (max-width: 890px) {
  .main-nav {
    gap: 8px;
    font-size: 15px;
  }
}
@media (max-width: 960px) {
  .main-nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* --- SECTIONS --- */
section {
  margin-bottom: 60px;
  padding-top: 20px;
  padding-bottom: 20px;
}
@media (max-width: 768px) {
  section {
    margin-bottom: 36px;
    padding-top: 8px;
    padding-bottom: 20px;
  }
}

/* --- FLEXBOX PATTERNS & FLEX WRAPS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 300px;
}
.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-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #FAFAFA;
  box-shadow: 0 2px 14px rgba(23,76,111,0.07);
  border-radius: var(--radius-s);
  margin-bottom: 20px;
  border: 1px solid var(--color-card-border);
  flex-wrap: wrap;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- SERVICE (OFFER) LIST STYLES --- */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 12px;
  margin-bottom: 20px;
}
.service-item {
  flex: 1 1 270px;
  min-width: 250px;
  max-width: 340px;
  background: var(--color-accent);
  border-radius: var(--radius-s);
  box-shadow: var(--shadow-card);
  padding: 28px 24px 22px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--color-card-border);
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow .19s, transform .21s;
}
.service-item:hover, .service-item:focus-within {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.02);
}
.service-item img {
  width: 44px;
  margin-bottom: 12px;
}
.service-item h2, .service-item h3 {
  font-size: 1.18rem;
  margin-bottom: 8px;
}
.service-price {
  font-size: 1rem;
  color: var(--color-secondary);
  font-weight: 600;
  margin-bottom: 8px;
  margin-top: auto;
}

/* --- LIST STYLES IN FEATURES --- */
.content-wrapper ul,
.content-wrapper ol {
  font-family: var(--font-body);
  padding-left: 1em;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.content-wrapper ul li, .content-wrapper ol li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.02rem;
  background: none;
  border: none;
  padding: 0;
}
.content-wrapper ul li img, .content-wrapper ol li img {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  margin-right: 2px;
}

/* --- NEWS AND ARTICLES (Aktualnosci) --- */
.news-categories {
  margin-bottom: 20px;
  color: #555;
  font-size: 0.99rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.news-categories a {
  color: var(--color-primary);
  text-decoration: underline;
  margin-right: 6px;
}
.news-categories a:hover {
  color: var(--color-secondary);
}
.news-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 18px;
}
.news-list article {
  padding: 18px 24px;
  background: #F9FBFF;
  border-radius: var(--radius-s);
  box-shadow: 0 1.5px 8px rgba(23,76,111,0.06);
  border: 1px solid #e6e9ef;
}
.news-list article h3 {
  font-size: 1.23rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}

/* --- FOOTER --- */
footer {
  background: #FAFAFA;
  color: #222;
  padding-top: 36px;
  padding-bottom: 18px;
  border-top: 1px solid #e6e9ef;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.footer-nav a {
  color: #222;
  font-size: 1rem;
  font-family: var(--font-body);
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-primary);
  text-decoration: underline;
}
.footer-contact {
  font-size: 1rem;
  color: #222;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.footer-social {
  display: flex;
  gap: 20px;
}
.footer-social img {
  width: 30px;
  height: 30px;
  filter: grayscale(1) brightness(1.1);
  transition: filter .17s;
}
.footer-social a:hover img, .footer-social a:focus img {
  filter: grayscale(0) brightness(1.05) drop-shadow(0 2px 8px #F6B40E44);
}
.footer-copyright {
  margin-top: 16px;
  font-size: 0.94rem;
  color: #778199;
}

/* --- TEXT BLOCKS & GENERIC SECTIONS --- */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: #fff;
  color: #172635;
  box-shadow: 0 -2px 44px rgba(23,76,111,0.16);
  border-top: 1px solid #e6e9ef;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 18px 18px 18px;
  gap: 12px;
  animation: slideUpBanner .6s cubic-bezier(.42,0,.51,1.16);
}
@keyframes slideUpBanner {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  font-size: 1rem;
  color: #222;
  margin-bottom: 5px;
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}
.cookie-banner .cookie-btn {
  padding: 9px 26px;
  border-radius: var(--radius-btn);
  border: none;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  background: var(--color-primary);
  color: #fff;
  transition: background var(--transition), color var(--transition);
  box-shadow: 0 1.5px 8px rgba(23,76,111,0.07);
}
.cookie-banner .cookie-btn.cookie-settings {
  background: #fff;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: var(--color-secondary);
  color: #174C6F;
}

/* --- COOKIE MODAL STYLES --- */
.cookie-modal-overlay {
  position: fixed;
  z-index: 4100;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(23,76,111,0.15);
  backdrop-filter: blur(2.5px);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInModal .33s;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(23,76,111,0.16);
  padding: 34px 28px 20px;
  max-width: 380px;
  width: 92vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 4200;
  animation: modalIn 0.45s cubic-bezier(.7,.14,.34,1.16);
}
@keyframes modalIn {
  from { transform: translateY(60px) scale(0.97); opacity:0; }
  to { transform: translateY(0) scale(1); opacity:1; }
}
.cookie-modal h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--color-primary);
}
.cookie-modal .cookie-prefs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-modal .cookie-prefs-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.02rem;
}
.cookie-modal .cookie-prefs-item label {
  font-family: var(--font-body);
}
.cookie-modal .cookie-toggle {
  width: 38px;
  height: 22px;
  border-radius: 12px;
  background: #EFF4FA;
  border: 1.5px solid #e1e5ea;
  position: relative;
  cursor: pointer;
  transition: background .23s, border-color .23s;
}
.cookie-modal .cookie-toggle input {
  display: none;
}
.cookie-modal .cookie-toggle:after {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(23,76,111,0.08);
  position: absolute;
  top: 1.5px;
  left: 2px;
  transition: left 0.22s cubic-bezier(.7,.17,.28,.95);
  border: 1px solid #e1e5ea;
}
.cookie-modal .cookie-toggle input:checked + span {
  background: var(--color-secondary);
  border-color: var(--color-primary);
}
.cookie-modal .cookie-toggle input:checked + span:after {
  left: 18px;
}
.cookie-modal .cookie-modal-actions {
  margin-top: 16px;
  display: flex;
  gap: 18px;
}
.cookie-modal .cookie-btn {
  font-size: 1rem;
  padding: 9px 20px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 1.25rem;
  background: none;
  color: #333;
}
.cookie-modal .cookie-modal-close:hover, .cookie-modal .cookie-modal-close:focus {
  color: var(--color-secondary);
}

/* --- MEDIA QUERIES (RESPONSIVE FLEX ARRANGEMENTS) --- */
@media (max-width: 1180px) {
  .container { max-width: 990px; }
  .service-item { max-width: 99vw; }
}
@media (max-width: 960px) {
  .container { max-width: 740px; }
  .service-list { gap: 14px; }
  .footer-social { gap: 10px; }
}
@media (max-width: 820px) {
  .service-list { flex-direction: column; gap: 20px; }
  .service-item { width: 100%; max-width: 100vw; }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 768px) {
  .container { max-width: 96vw; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  .section { margin-bottom: 36px; padding: 28px 10px; }
  .content-wrapper { gap: 16px; }
  .card-container, .content-grid, .service-list, .footer-nav {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card, .feature-item { flex-direction: column; }
  .text-image-section { flex-direction: column; gap: 22px; }
  footer .container {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 520px) {
  .section { padding: 18px 2vw; }
  .service-item { padding: 17px 5vw 12px 5vw; }
  h1, h2 { font-size: 1.07rem; }
  .cta-btn, .cta-btn.small { padding: 9px 12px; font-size: 0.97rem; }
  .footer-contact, .footer-copyright, .footer-nav, .footer-social { font-size: 0.96em; }
  .cookie-banner {
    padding: 12px 6px 10px 6px;
  }
  .cookie-modal {
    padding: 14px 8px 12px;
  }
}

/* --- MICRO-INTERACTIONS & HOVER EFFECTS --- */
@media (hover: hover) and (pointer: fine) {
  .service-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px) scale(1.023);
    z-index: 10;
  }
  .cta-btn:hover {
    background: var(--color-secondary);
    color: var(--color-primary);
    box-shadow: var(--shadow-hover);
  }
  .footer-nav a:hover, .footer-nav a:focus {
    color: var(--color-secondary);
    text-decoration: underline;
  }
}

/* --- FOCUS VISIBLE FOR ACCESSIBILITY --- */
:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

/* --- UTILITY CLASSES --- */
.hide {
  display: none !important;
}
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.gap-20 { gap: 20px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

/* --- PRINT & SELECTION --- */
::selection {
  background: var(--color-secondary);
  color: #222;
  text-shadow: none;
}

/* --- END OF CSS FILE --- */
