/* CSS RESET & BASE STYLES */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  height: 100%;
  background: #23292F;
}
body {
  min-height: 100vh;
  background: #23292F;
  color: #F2F7FA;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.7;
  font-size: 1rem;
  letter-spacing: 0.03em;
}
img {
  max-width: 100%;
  display: block;
  vertical-align: middle;
}
a {
  color: #7DA3C9;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F2F7FA;
}
ul, ol {
  padding-left: 1.3em;
  margin-bottom: 1.5em;
}
strong {
  color: #F2F7FA;
  font-weight: 600;
}

/* FONTS */
h1, h2, h3, h4, .btn-primary, .btn-secondary {
  font-family: 'Montserrat', Arial, sans-serif;
}
h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #F2F7FA;
  margin-bottom: 24px;
}
h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: #F2F7FA;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #7DA3C9;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: #A7B9CD;
}
p {
  font-size: 1rem;
  color: #DBE3EC;
  margin-bottom: 16px;
}

/* CONTAINER & BASE LAYOUT */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

main {
  min-height: 60vh;
  padding-top: 40px;
  padding-bottom: 40px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  main {
    padding-top: 24px;
    padding-bottom: 24px;
  }
  section {
    padding: 24px 6px;
    margin-bottom: 38px;
  }
}

/* BUTTONS */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 32px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.22s, color 0.22s, box-shadow 0.22s;
  text-align: center;
  min-width: 180px;
  border: none;
  outline: 0;
  box-shadow: 0 2px 10px 0 rgba(26,28,31,0.08);
  margin-top: 6px;
}
.btn-primary {
  background: linear-gradient(90deg, #253B5B 80%, #193255 100%);
  color: #F2F7FA;
  box-shadow: 0 2px 8px 0 rgba(80,90,110,0.08);
  border: 1.5px solid #7DA3C9;
}
.btn-primary:hover, .btn-primary:focus {
  background: #192639;
  color: #F2F7FA;
  box-shadow: 0 4px 16px 0 rgba(80,110,160,0.12);
}
.btn-secondary {
  background: #F2F7FA;
  color: #253B5B;
  border: 1.5px solid #7DA3C9;
  font-weight: 600;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #7DA3C9;
  color: #F2F7FA;
  border: 1.5px solid #253B5B;
}

/* HEADER & NAVIGATION */
header {
  width: 100%;
  background: #171E23;
  border-bottom: 1.5px solid #364659;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 1001;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #A7B9CD;
  transition: color 0.2s;
  padding: 3px 0;
}
nav a:hover, nav a:focus {
  color: #F2F7FA;
}
nav a.btn-primary {
  margin-left: 12px;
  font-size: 1rem;
  color: #F2F7FA;
  background: #253B5B;
  border-radius: 5px;
}
nav a.btn-primary:hover, nav a.btn-primary:focus {
  background: #7DA3C9;
}
nav img {
  max-height: 38px;
  margin-right: 14px;
}

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #F2F7FA;
  font-size: 2.1rem;
  cursor: pointer;
  z-index: 1101;
  margin-left: 14px;
  transition: color 0.16s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: #7DA3C9;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(29,36,42, 0.98);
  z-index: 1202;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 24px;
  box-shadow: 0 0 32px 2px rgba(23,30,35,0.25);
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.6,.1,.5,1.3);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  margin-left: auto;
  margin-bottom: 24px;
  font-size: 2.2rem;
  color: #F2F7FA;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #7DA3C9;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.18rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 10px 0;
  color: #F2F7FA;
  border-bottom: 1px solid #364659;
  transition: background 0.18s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #7DA3C9;
  background: #253B5B;
}
@media (max-width: 1024px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .mobile-menu {
    display: flex;
  }
  header .container {
    height: 65px;
  }
}
@media (min-width: 1025px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none!important;
  }
  nav {
    display: flex!important;
  }
}

/* FOOTER */
footer {
  background: #192639;
  border-top: 1.5px solid #2C384A;
  padding: 30px 0 0 0;
  color: #A7B9CD;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: flex-start;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 8px;
}
.footer-menu a {
  font-size: 1rem;
  color: #7DA3C9;
  transition: color 0.2s;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: #F2F7FA;
}
.brand-info {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 6px;
}
.brand-info img {
  height: 38px;
}
.legal-info {
  font-size: 0.98rem;
  color: #A7B9CD;
}
.social-links {
  display: flex;
  gap: 16px;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  width: 38px;
  border-radius: 50%;
  background: #253B5B;
  transition: background 0.2s, box-shadow 0.2s;
}
.social-links a:hover, .social-links a:focus {
  background: #7DA3C9;
  box-shadow: 0 2px 8px 0 rgba(80,90,110,0.18);
}
.social-links img {
  width: 22px;
  height: 22px;
}

@media (max-width: 768px) {
  .footer-menu {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 0;
  }
  footer .container {
    gap: 20px;
    align-items: flex-start;
    padding: 0 10px;
  }
  .brand-info {
    gap: 10px;
  }
}

/* FLEX PATTERNS / LAYOUTS */
.card-container, .feature-grid, .content-grid, .service-list, .feature-list, .featured-posts-grid, .contact-info, .contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #232E3D;
  box-shadow: 0 4px 16px 0 rgba(32,44,55,0.10);
  border: 1.5px solid #364659;
  border-radius: 8px;
  margin-bottom: 20px;
  position: relative;
  padding: 28px 22px;
}
.content-grid {
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #F2F7FA;
  color: #253B5B;
  border: 1.5px solid #7DA3C9;
  border-radius: 8px;
  padding: 20px 26px;
  margin-bottom: 20px;
  box-shadow: 0 2px 11px 0 rgba(40,56,80,0.08);
  min-width: 260px;
  max-width: 510px;
}
.testimonial-card p {
  color: #253B5B;
  font-size: 1rem;
  margin-bottom: 10px;
  font-weight: 500;
}
.testimonial-details {
  font-size: 0.98rem;
  color: #576477;
  font-weight: 500;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Responsive LAYOUT FLEX DIRECTIONS */
@media (max-width: 900px) {
  .feature-grid, .service-list, .feature-list, .featured-posts-grid, .contact-info, .contact-details {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-slider {
    flex-direction: column !important;
    gap: 22px;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .testimonial-card {
    padding: 18px 10px;
    min-width: 0;
    max-width: 100%;
  }
}

/* FEATURED/PRICING/SPECIAL SECTIONS */
.feature-grid > div, .service-list > div, .feature-list > div, .pricing-table > div, .featured-posts-grid > div {
  background: #232E3D;
  border: 1.5px solid #2E3B49;
  border-radius: 7px;
  box-shadow: 0 2px 8px 0 rgba(40,56,80,0.09);
  padding: 22px 18px;
  min-width: 220px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow 0.24s, border-color 0.24s; 
}
.feature-grid > div:hover, .service-list > div:hover, .feature-list > div:hover, .pricing-table > div:hover, .featured-posts-grid > div:hover {
  box-shadow: 0 6px 24px 0 rgba(22,30,45,0.17);
  border-color: #7DA3C9;
}
.feature-grid > div img, .service-list > div img {
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
}
.pricing-table {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.pricing-table > div {
  background: #1E2733;
  border: 2px solid #253B5B;
  border-radius: 10px;
  color: #7DA3C9;
  box-shadow: 0 2px 16px 0 rgba(40,56,80,0.09);
}
.pricing-table h3 {
  color: #F2F7FA;
  font-size: 1.28rem;
}
.pricing-table p {
  font-size: 1.15rem;
  font-weight: 700;
  color: #A7B9CD;
  margin-bottom: 10px;
}
.pricing-table ul li {
  margin-bottom: 7px;
  color: #A7B9CD;
}
/* Blog featured posts */
.featured-posts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.featured-posts-grid > div {
  min-width: 220px;
  flex: 1 1 290px;
}
.featured-posts-grid h3 {
  color: #F2F7FA;
}
.featured-posts-grid a {
  color: #7DA3C9;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: 10px;
  display: inline-block;
}
.featured-posts-grid a:hover, .featured-posts-grid a:focus {
  color: #F2F7FA;
}
.newsletter-cta {
  background: #7DA3C9;
  color: #23292F;
  border-radius: 7px;
  padding: 18px 24px;
  margin-top: 18px;
}
.newsletter-cta h3 {
  color: #23292F;
}

/* Testimonials */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.ratings p {
  color: #F2F7FA;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: #253B5B;
  display: inline-block;
  border-radius: 8px;
  padding: 9px 18px;
  margin-top: 10px;
  font-size: 1.13rem;
}
.satisfaction-stats {
  background: #232E3D;
  color: #F2F7FA;
  border-radius: 7px;
  font-weight: 700;
  font-size: 1.04rem;
  padding: 12px 18px;
  margin-top: 12px;
}

/* Misc Sections */
.address-map, .response-time-info, .privacy-reassurance, .next-steps-info {
  background: #232E3D;
  color: #A7B9CD;
  border-radius: 7px;
  padding: 12px 18px;
  margin-top: 12px;
  margin-bottom: 12px;
  font-size: 0.99rem;
}
.faq-snippet {
  background: #C8D7EA;
  color: #253B5B;
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 1.06rem;
  font-weight: 600;
}
.popular-tags {
  color: #A7B9CD;
  font-size: 1.04rem;
  margin: 12px 0;
}

.contact-info, .contact-details {
  gap: 22px;
  flex-wrap: wrap;
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 10px;
}
.contact-info div, .contact-details div {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #A7B9CD;
  font-size: 1rem;
  padding: 7px 0;
}
.contact-info img, .contact-details img {
  width: 22px;
  height: 22px;
}

/* FEATURE/ITEM PATTERN */
.features-list, .benefits-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 10px;
}
.features-list li, .benefits-list li {
  color: #A7B9CD;
  font-size: 1rem;
  padding-left: 2px;
}

/* Cookie Consent Banner and Modal */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #232E3D;
  color: #F2F7FA;
  z-index: 1502;
  box-shadow: 0 -6px 24px 0 rgba(38,56,80,0.11);
  padding: 28px 18px 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  font-size: 1rem;
  animation: cookieBannerAppear 0.82s cubic-bezier(0.6,0.1,0.6,1.0);
}
@keyframes cookieBannerAppear {
  from { transform: translateY(90px); opacity: 0; }
  to { transform: translateY(0); opacity:1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-left: auto;
}
.cookie-btn {
  border: none;
  border-radius: 5px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  padding: 10px 20px;
  transition: background .18s, color .18s;
}
.cookie-btn.accept {
  background: #253B5B;
  color: #F2F7FA;
  border: 1.5px solid #7DA3C9;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #7DA3C9;
  color: #23292F;
}
.cookie-btn.reject {
  background: #F2F7FA;
  color: #253B5B;
  border: 1.5px solid #253B5B;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #c1d0e0;
  color: #253B5B;
}
.cookie-btn.settings {
  background: #7DA3C9;
  color: #23292F;
  border: 1.5px solid #364659;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #253B5B;
  color: #F2F7FA;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 22px 10px 12px;
  }
  .cookie-banner .cookie-actions {
    margin-left: 0;
    gap: 10px;
  }
}
/* Cookie modal overlay */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  left:0; top:0; right:0; bottom:0;
  z-index: 1503;
  background: rgba(30,38,43,0.91);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  animation: cookieOverlayAppear 0.5s cubic-bezier(0.6,0.1,0.6,1.0);
}
.cookie-modal-overlay.active {
  display: flex;
}
@keyframes cookieOverlayAppear {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #232E3D;
  color: #F2F7FA;
  border-radius: 10px;
  padding: 30px 24px 20px 24px;
  width: 95vw;
  max-width: 420px;
  box-shadow: 0 12px 44px 0 rgba(23,30,39,0.23);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  animation: cookieModalShow 0.6s cubic-bezier(.6,.1,.5,1.2);
}
@keyframes cookieModalShow {
  from { transform: translateY(70px); opacity: 0; }
  to { transform: translateY(0); opacity:1; }
}
.cookie-modal h2 {
  font-size: 1.28rem;
  color: #F2F7FA;
}
.cookie-modal .cookie-category {
  background: #192639;
  border-radius: 5px;
  margin-bottom: 14px;
  padding: 7px 8px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
}
.cookie-modal .cookie-category input[type="checkbox"] {
  appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid #7DA3C9;
  border-radius: 3px;
  margin-right: 6px;
  position: relative;
  background: #F2F7FA;
}
.cookie-modal .cookie-category input[type="checkbox"]:checked {
  background: #7DA3C9;
  border-color: #253B5B;
}
.cookie-modal .cookie-category input[type="checkbox"]:disabled {
  background: #CBD9E6;
}
.cookie-modal .category-label {
  color: #DBE3EC;
  font-size: 1.02rem;
  font-weight: 500;
}
.cookie-modal .cookie-modal-actions {
  margin-top: 16px;
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: flex-end;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  color: #7DA3C9;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.18s;
}
.cookie-modal .cookie-modal-close:hover, .cookie-modal .cookie-modal-close:focus {
  color: #F2F7FA;
}

/* TABLES (for cennik, etc.) */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
}
thead th {
  background: #253B5B;
  color: #F2F7FA;
  font-weight: 700;
}
td, th {
  border: 1.5px solid #364659;
  padding: 10px 9px;
  font-size: 1rem;
}
tr:nth-child(even) td {
  background: #232E3D;
}
tr:nth-child(odd) td {
  background: #22282F;
}

/* MEDIA QUERIES RESPONSIVE */
@media (max-width: 990px) {
  .container {
    max-width: 97vw;
    padding-left: 10px;
    padding-right: 10px;
  }
  .feature-grid > div, .service-list > div, .feature-list > div, .pricing-table > div, .featured-posts-grid > div {
    min-width: 0;
    flex: 1 1 90%;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 1.55rem;
    margin-bottom: 15px;
  }
  h2 {
    font-size: 1.18rem;
    margin-bottom: 13px;
  }
  h3 {
    font-size: 1rem;
    margin-bottom: 6px;
  }
  .container {
    max-width: 100vw;
  }
  .card {
    padding: 15px 6px;
  }
}
@media (max-width:430px) {
  .footer-menu, .brand-info, .legal-info, .social-links {
    flex-direction: column!important;
    align-items: flex-start;
    gap: 8px;
  }
  .footer-menu a {
    padding-bottom: 2px;
  }
}

/* SCROLLBAR DARK SCHEME */
::-webkit-scrollbar {
  width: 12px;
  background: #23292F;
}
::-webkit-scrollbar-thumb {
  background: #253B5B;
  border-radius: 8px;
}

/* INDUSTRIAL MODERN VISUAL TOUCHES */
.card, .testimonial-card, .feature-grid > div, .service-list > div, .feature-list > div, .pricing-table > div, .featured-posts-grid > div {
  box-shadow: 0 2px 12px 0 rgba(70,85,105,0.09), 0 0.8px 1px 0 rgba(156, 174, 192, 0.03);
  position: relative;
}
.card::before, .testimonial-card::before, .feature-grid > div::before, .service-list > div::before, .feature-list > div::before, .pricing-table > div::before, .featured-posts-grid > div::before {
  content: '';
  display: block;
  position: absolute;
  top: 0; left: 0; width: 100%; height: 4px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(90deg, #253B5B 10%, #7DA3C9 90%);
  opacity: 0.11;
  pointer-events: none;
  z-index: 0;
}

/* Accents & Decorations */
.section-accent {
  height: 5px;
  width: 85px;
  background: linear-gradient(90deg, #253B5B 80%, #7DA3C9 100%);
  border-radius: 6px;
  margin-bottom: 18px;
}

/* UTILITY & MISC */
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.gap-2 { gap: 16px; }
.text-light { color: #F2F7FA!important; }
.text-accent { color: #7DA3C9!important; }
.text-dark { color: #253B5B!important; }
.bg-accent { background: #7DA3C9!important; }

/* Hide visually only (for accessibility) */
.sr-only { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Animations */
.card, .testimonial-card, .feature-grid > div, .pricing-table > div {
  transition: box-shadow 0.25s, border-color 0.2s, transform 0.2s;
}
.card:hover, .testimonial-card:hover, .feature-grid > div:hover, .pricing-table > div:hover {
  transform: translateY(-4px) scale(1.019);
  box-shadow: 0 6px 24px 0 rgba(29,44,60,0.19);
  border-color: #7DA3C9;
}

/* -------------- END OF INDUSTRIAL MODERN STYLES --------------- */