/* =======================================================
   Echo Stat "gradient_modern" CSS Theme
   -------------------------------------------------------
   Brand: Professional, Modern, Gradients, Flexbox ONLY
   Font: Montserrat (display), Open Sans (body)
   Brand Colors: #0D213B (primary), #4C8BC9 (secondary), #FFFFFF (accent)
   Flexbox only. No Grid, columns, or clamp(). Responsive.
   Hamburger menu & cookie banner included.
   ======================================================= */

/* ============= 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;
  vertical-align: baseline;
}
html {
  box-sizing: border-box;
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.5;
  background: #f6f9fc;
  color: #10223b;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  font-size: 16px;
}
a {
  background: none;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  list-style: none;
}
button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

/* ============= VARIABLES (with fallbacks) ============= */
:root {
  --primary: #0D213B;
  --secondary: #4C8BC9;
  --accent: #FFFFFF;
  --primary70: #203e5f;
  --shadow-dark: 0 4px 24px rgba(13,33,59,0.15);
  --radius: 16px;
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
  --gradient: linear-gradient(90deg, #0D213B 0%, #4C8BC9 100%);
  --gradient-rev: linear-gradient(90deg, #4C8BC9 0%, #0D213B 100%);
  --card-bg: #fff;
  --card-shadow: 0 3px 16px rgba(76,139,201,0.10), 0 0.5px 1.5px rgba(13,33,59,.025);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* ============= TYPOGRAPHY ============================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display, Montserrat, Arial, sans-serif);
  font-weight: 700;
  color: var(--primary, #0D213B);
  margin-bottom: 16px;
  letter-spacing: .5px;
  line-height: 1.15;
}
h1 {
  font-size: 2.5rem; /* 40px */
}
h2 {
  font-size: 2rem;   /* 32px */
}
h3 {
  font-size: 1.375rem; /* 22px */
}
h4 {
  font-size: 1.125rem; /* 18px */
}
p, li, ul, ol {
  font-family: var(--font-body, Open Sans, Arial, sans-serif);
  font-size: 1rem;
  color: #24354d;
  line-height: 1.7;
  margin-bottom: 12px;
}
strong, b {
  font-weight: 700;
  color: var(--primary, #0D213B);
}
.subheadline {
  color: var(--secondary, #4C8BC9);
  font-size: 1.25rem;
  line-height: 1.5;
  margin-bottom: 24px;
  font-weight: 600;
}
.highlight {
  background: var(--secondary, #4C8BC9);
  color: var(--accent, #fff);
  padding: 4px 10px;
  border-radius: var(--radius, 16px);
  font-weight: 600;
  font-size: 0.95rem;
}
.date {
  color: var(--secondary, #4C8BC9);
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 10px;
}
a {
  color: var(--secondary, #4C8BC9);
}
a:hover, a:focus {
  color: var(--primary, #0D213B);
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

/* ============= CONTAINER & GENERAL LAYOUT ============= */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
  box-sizing: border-box;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 40px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--card-bg, #fff);
  border-radius: var(--radius, 16px);
  box-shadow: var(--card-shadow, 0 4px 24px rgba(13,33,59,0.10));
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  transition: box-shadow var(--transition);
}
.card:hover,
.card:focus-within {
  box-shadow: 0 6px 32px 0 rgba(76,139,201,0.19), 0 1.5px 5px rgba(13,33,59,.045);
}

/* ========== BASE FLEXBOX PATTERNS (MANDATORY) ========= */
.feature-grid, .value-grid, .service-list, .detailed-service-list, .project-list, .news-cards, .service-benefits-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature, .value-item, .service-box, .service-entry, .project-entry, .news-card, .benefit {
  flex: 1 1 280px;
  min-width: 240px;
  max-width: 100%;
  background: var(--card-bg,#fff);
  border-radius: var(--radius);
  padding: 28px 22px;
  margin-bottom: 20px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow .25s, transform .25s;
}
.feature:hover, .value-item:hover, .service-box:hover, .service-entry:hover, .news-card:hover, .benefit:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 10px 38px 0 rgba(76,139,201,0.21), 0 1.5px 7px rgba(13,33,59,.08);
}
.benefit img {
  width: 40px;
  margin-bottom: 10px;
}

/* Testimonials & Review Sections */
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px 24px 16px 24px;
  background: #f6f9fc;
  border-radius: var(--radius, 16px);
  box-shadow: 0 2px 10px rgba(76,139,201,0.13);
  font-size: 1.13rem;
  margin-bottom: 20px;
  color: #222;
}
.testimonial-card p {
  color: #21385d;
  margin-bottom: 8px;
}
.testimonial-card strong {
  color: var(--primary, #0D213B);
  font-size: 1rem;
  margin-top: 4px;
}
.client-logos {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-top: 10px;
}

.awards-section {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f6f9fc;
  border-radius: 16px;
  padding: 12px 18px;
  margin-top: 20px;
  font-weight: 600;
  color: #203e5f;
  box-shadow: 0 2px 8px rgba(76,139,201,0.10);
}

/* =========== HEADER & NAVIGATION =============== */
header {
  width: 100%;
  background: var(--gradient);
  color: var(--accent);
  box-shadow: 0 8px 36px -20px #13315533;
  position: sticky;
  z-index: 100;
  top:0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo img {
  height: 42px;
}
nav.main-nav {
  display: flex;
  gap: 26px;
  align-items: center;
}
.main-nav a {
  color: var(--accent, #fff);
  font-size: 1rem;
  font-family: var(--font-body, Open Sans, Arial, sans-serif);
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 8px;
  padding: 6px 12px;
  transition: background .18s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: rgba(255,255,255,0.14);
  color: #fff;
}
.button-primary {
  display: inline-block;
  background: var(--gradient);
  color: #fff;
  font-family: var(--font-display, Montserrat, Arial, sans-serif);
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 1.05rem;
  border-radius: 8px;
  box-shadow: 0 4px 22px -10px #4c8bc940;
  padding: 12px 26px;
  transition: background 0.2s, color 0.2s, box-shadow 0.15s;
  margin-left: 20px;
  border: none;
  outline: none;
}
.button-primary:hover, .button-primary:focus {
  background: var(--gradient-rev);
  color: #fff;
  box-shadow: 0 8px 24px -8px #0d213b39;
}

/* MOBILE MENU - HAMBURGER + OVERLAY (MANDATORY) */
.mobile-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  background: var(--secondary, #4C8BC9);
  color: #fff;
  font-size: 2.1rem;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  border: none;
  margin-left: 20px;
  transition: background .19s, color .13s;
  z-index: 120;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--primary, #0D213B);
  color: #fff;
}
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(13,33,59,0.92);
  color: #fff;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0;
  pointer-events: none;
  opacity: 0;
  transform: translateX(100%);
  transition: transform .38s cubic-bezier(.4,0,.2,1), opacity .22s;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 22px 32px 0 0;
  font-size: 2.2rem;
  color: #fff;
  background: none;
  border: none;
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  margin-top: 24px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.32rem;
  font-family: var(--font-display);
  padding: 14px 6px;
  font-weight: 700;
  border-radius: 10px;
  width: 100%;
  text-align: center;
  transition: background .15s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: rgba(255,255,255,0.14);
}

@media (max-width: 1100px) {
  nav.main-nav {
    gap: 14px;
  }
  .button-primary {
    padding: 11px 18px;
    margin-left: 10px;
    font-size: 0.98rem;
  }
}
@media (max-width: 950px) {
  .main-nav a {
    font-size: 0.97rem;
  }
}
@media (max-width: 820px) {
  nav.main-nav {
    gap: 7px;
  }
}
@media (max-width: 820px) {
  .main-nav, .button-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* =========== HERO & TOP SECTIONS ============== */
.hero, .about-hero, .offer-hero, .realizacje-hero, .news-hero, .kontakt-hero, .tech-hero, .thank-you-section {
  width: 100%;
  min-height: 360px;
  padding: 70px 0 50px 0;
  display: flex;
  align-items: center;
  background: var(--gradient);
  color: #fff;
}
.hero .content-wrapper,
.about-hero .content-wrapper,
.offer-hero .content-wrapper,
.realizacje-hero .content-wrapper,
.news-hero .content-wrapper,
.kontakt-hero .content-wrapper,
.tech-hero .content-wrapper,
.thank-you-section .content-wrapper {
  color: #fff;
  align-items: flex-start;
}
.hero h1, .about-hero h1, .offer-hero h1, .realizacje-hero h1,
.news-hero h1, .kontakt-hero h1, .tech-hero h1, .thank-you-section h1 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 18px;
}
.hero .subheadline {
  color: #d9e9fa;
}

/* ========== SPECIAL FLEXBOX LAYOUT CLASSES ========== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ========== UI COMPONENTS: BUTTONS, CARDS, ICONS ========== */
.service-price {
  display: inline-block;
  background: var(--secondary, #4C8BC9);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
  padding: 5px 18px;
  margin-top: 16px;
  letter-spacing: .04em;
  box-shadow: 0 2px 8px rgba(76,139,201,0.13);
}
.category-filters {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.category-filters span {
  font-size: 0.98rem;
  background: #f4f7fa;
  color: #0d213b;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background .14s;
}
.category-filters span:hover, .category-filters span.active {
  background: var(--secondary);
  color: #fff;
}
.technology-icons {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
}
.technology-icons img {
  width: 38px;
  background: #eaf2fb;
  border-radius: 12px;
  padding: 7px;
}

footer {
  background: #142740;
  color: #e4eaf4;
  padding: 38px 0 14px 0;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
  justify-content: space-between;
}
.footer-logo img {
  height: 44px;
  margin-bottom: 10px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #adc3e6;
  font-size: 0.97rem;
  margin-bottom: 2px;
  transition: color .18s;
}
.footer-nav a:hover {
  color: #fff;
}
.legal-info {
  color: #c5d0e1;
  font-size: 0.92rem;
}
.social-links {
  display: flex;
  gap: 15px;
  align-items: center;
}
.social-links a img {
  width: 28px;
  height: 28px;
  filter: saturate(1.4);
  transition: filter .17s;
}
.social-links a:hover img {
  filter: brightness(1.2) saturate(1.8);
}

/* ========== COOKIE BANNER & PREFERENCES MODAL ========== */
#cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--primary, #0d213b);
  color: #fff;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 24px 18px;
  z-index: 1000;
  font-size: 1rem;
  box-shadow: 0 -3px 22px -6px #10223b8e;
  opacity: 0;
  transform: translateY(120px);
  pointer-events: none;
  transition: opacity .33s, transform .36s;
}
#cookie-banner.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
#cookie-banner .cookie-text {
  max-width: 500px;
}
#cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.cookie-btn, .cookie-settings-btn {
  padding: 9px 18px;
  font-size: 0.98rem;
  border-radius: 8px;
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
  background: var(--secondary, #4C8BC9);
  color: #fff;
  box-shadow: 0 2px 7px rgba(76,139,201,0.14);
  transition: background 0.17s, color 0.14s, box-shadow 0.19s;
}
.cookie-btn.reject {
  background: #334863;
  color: #fff;
}
.cookie-btn:focus, .cookie-btn:hover, .cookie-settings-btn:focus, .cookie-settings-btn:hover {
  background: #24354d;
  color: #fff;
}

#cookie-modal-overlay {
  position: fixed;
  left:0; right:0; top:0; bottom:0;
  background: rgba(13,33,59,0.57);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .26s;
}
#cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
#cookie-modal {
  background: #fff;
  color: #0d213b;
  border-radius: 16px;
  box-shadow: 0 8px 48px rgba(13,33,59,0.23);
  max-width: 430px;
  width: 96vw;
  padding: 38px 30px 26px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  opacity: 0;
  transform: translateY(80px) scale(0.98);
  transition: opacity .3s, transform .35s;
}
#cookie-modal-overlay.open #cookie-modal {
  opacity: 1;
  transform: translateY(0) scale(1);
}
#cookie-modal h2 {
  font-size: 1.32rem;
  margin-bottom: 8px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 16px;
}
.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-toggle input[type="checkbox"] {
  accent-color: var(--secondary, #4C8BC9);
  width: 22px; height: 22px;
}
.cookie-actions-modal {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 12px;
}
#cookie-modal .close-cookie-modal {
  position: absolute;
  top: 18px; right: 18px;
  background: none;
  color: #334863;
  font-size: 1.5rem;
}

/* ========== RESPONSIVE (MOBILE FIRST) ========== */
@media (max-width: 1100px) {
  .container { max-width: 98vw; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
  .content-wrapper, .card-container, .feature-grid, .project-list, .testimonial-list {
    gap: 16px;
  }
}
@media (max-width: 900px) {
  .footer-logo img { height: 34px; }
  .feature, .value-item, .service-box, .service-entry, .project-entry, .news-card, .benefit {
    min-width: 180px;
    padding: 18px 11px;
  }
  .testimonial-card { padding: 16px 10px 10px 10px; }
}
@media (max-width: 700px) {
  .container { padding: 0 10px; }
  .awards-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }
}
@media (max-width: 620px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.13rem; }
  .section {
    padding: 24px 7px;
    margin-bottom: 36px;
  }
  .client-logos { gap: 12px; }
}
@media (max-width: 700px) {
  .content-wrapper {
    gap: 14px;
  }
  .testimonial-list {
    gap: 12px;
  }
}
@media (max-width: 570px) {
  .feature-grid, .value-grid, .service-list, .detailed-service-list, .project-list, .news-cards, .service-benefits-grid {
    flex-direction: column;
    gap: 16px;
  }
  .category-filters { gap: 8px; }
  .footer-nav, .legal-info, .social-links {
    gap: 6px;
  }
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 18px; }
}
@media (max-width: 480px) {
  #cookie-banner {
    flex-direction: column;
    gap: 16px;
    padding: 22px 7px;
    font-size: .99rem;
    text-align: center;
  }
  #cookie-banner .cookie-actions { gap: 8px; }
  #cookie-modal { padding: 20px 4vw 14px 4vw; }
  .button-primary {
    font-size: .95rem;
    padding: 8px 14px;
    margin-left: 0;
  }
}

/* ========== UTILITY & ANIMATION CLASSES ========== */
.fadeInUp {
  animation: fadeInUp .7s cubic-bezier(.4,0,.2,1);
}
@keyframes fadeInUp {
  0% { opacity:0; transform: translateY(24px); }
  100% { opacity:1; transform: translateY(0); }
}

/* ========== FORM ELEMENTS (If any forms appear) ========== */
input, textarea, select {
  font: inherit;
  padding: 10px 12px;
  border: 1.8px solid #c3d2e7;
  border-radius: 8px;
  outline: none;
  background: #f9fbfe;
  color: #21385d;
  margin-bottom: 14px;
  transition: border-color .18s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--secondary, #4C8BC9);
}
label {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 8px;
}

/* ========== SPECIAL CASES (THANK YOU, LEGAL, MAP) ========== */
.thank-you-section .button-primary {
  margin-top: 20px;
}
.legal .text-section h2 {
  margin-top: 28px;
  font-size: 1.13rem;
}
.map img {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  background: #eaf2fa;
  box-shadow: 0 1px 9px #4c8bc930;
}

/* ========== GRADIENT MODERN DECORATIONS (SUBTLE) ========== */
.hero, .about-hero, .offer-hero, .realizacje-hero, .news-hero, .kontakt-hero, .tech-hero, .thank-you-section {
  position: relative;
  overflow: hidden;
}
.hero:before, .about-hero:before, .offer-hero:before {
  content: '';
  position: absolute;
  top: -60px; right: -80px; width: 220px; height: 220px;
  background: radial-gradient(ellipse at center, #4C8BC9 0%, rgba(76,139,201,0) 80%);
  z-index: 0;
  opacity: .19;
}
.hero:after {
  content: '';
  position: absolute;
  left: -70px; bottom: -50px; width: 170px; height: 160px;
  background: radial-gradient(circle at 20% 80%, #4C8BC9 0%, rgba(76,139,201,0) 80%);
  z-index: 0;
  opacity: .15;
}
.hero .content-wrapper, .about-hero .content-wrapper, .offer-hero .content-wrapper,
.realizacje-hero .content-wrapper, .news-hero .content-wrapper, .kontakt-hero .content-wrapper, .tech-hero .content-wrapper, .thank-you-section .content-wrapper {
  position: relative;
  z-index: 1;
}

/* ========== PRINT STYLES ========== */
@media print {
  header, footer, #cookie-banner, .mobile-menu, .button-primary, .mobile-menu-toggle {
    display:none!important;
  }
}

/* ========== END ========== */
