/* ==== CSS RESET & NATURAL BOX SIZING ==== */
html {
  box-sizing: border-box;
}
*,*:before,*:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
html, body {
  height: 100%;
}
body {
  min-height: 100vh;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background-color: #F8FAFB;
  color: #284B63;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

/* ==== FONT FACE LOADS (Web Safe fallback included) */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #284B63;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.18;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; margin-bottom: 18px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }
h4 { font-size: 1.125rem; }
.subtitle {
  color: #6088a4;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  margin-bottom: 28px;
}

/*==== LINKS & BUTTONS ====*/
a {
  color: #284B63;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #98C1D9;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  background: #FFD166;
  color: #284B63;
  border-radius: 32px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 1px 8px 0 rgba(40,75,99,0.03);
  border: none;
  outline: none;
  margin-top: 16px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.18s;
}
.cta-btn:hover, .cta-btn:focus {
  background: #ffe387;
  box-shadow: 0 2px 10px 0 rgba(40,75,99,0.09);
  transform: translateY(-1px) scale(1.03);
  color: #284B63;
}

/* ==== HEADER & NAVIGATION ==== */
header {
  width: 100%;
  background: #FFFFFF;
  padding: 18px 0 14px;
  box-shadow: 0 1px 12px 0 rgba(40,75,99,0.05);
  position: relative;
  z-index: 12;
  display: flex;
  flex-direction: column;
}
header > a > img {
  height: 44px;
  margin-left: 24px;
}
header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-left: 24px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 4px;
  border-radius: 8px;
  transition: background 0.14s, color 0.14s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #E5F5FA;
  color: #1986a9;
}

/* HIDE MAIN NAV on mobile */
@media (max-width: 980px) {
  .main-nav { display: none; }
  .cta-btn { display: none; }
}

/* MOBILE MENU TOGGLE */
.mobile-menu-toggle {
  display: none;
  background: #FFD166;
  color: #284B63;
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 8px 0 rgba(40,75,99,0.04);
  margin-right: 24px;
  transition: background 0.14s, color 0.14s;
  z-index: 1012;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #FFE387;
  color: #284B63;
}
@media (max-width: 980px) {
  .mobile-menu-toggle {
    display: flex;
  }
}

/* ==== MOBILE MENU OVERLAY ==== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(248,250,251,0.96);
  box-shadow: 0 2px 24px 0 rgba(40,75,99,0.17);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0 0 0 0;
  z-index: 3000;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.44, 0.04, 0.56, 1.2);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 24px;
  align-self: flex-end;
  background: #FFD166;
  color: #284B63;
  font-size: 2rem;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 8px 0 rgba(40,75,99,0.06);
  transition: background 0.14s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #ffe387;
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  padding: 0 40px;
}
.mobile-nav a {
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #284B63;
  padding: 14px 5px;
  border-radius: 8px;
  transition: background 0.14s, color 0.17s;
  width: 100%;
  border: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E5F5FA;
  color: #98C1D9;
}

@media (min-width: 981px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* === CONTAINER, CONTENT WRAPPER, SPACING === */
.container {
  margin: 0 auto;
  padding: 0 16px;
  max-width: 1080px;
  width: 100%;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
  padding: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  box-shadow: 0 2px 16px 0 rgba(40,75,99,0.06);
  border-radius: 18px;
  padding: 30px 24px;
}
.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: #FDF6EA;
  border-radius: 18px;
  box-shadow: 0 1px 8px 0 rgba(255, 209, 102, 0.09);
  margin-bottom: 24px;
  color: #284B63;
  font-size: 1.125rem;
  position: relative;
}
.testimonial-card blockquote {
  font-style: italic;
  border-left: 4px solid #FFD166;
  padding-left: 18px;
  margin-bottom: 0;
  color: #284B63;
}
.testimonial-card cite {
  display: block;
  margin-top: 14px;
  color: #7B93A5;
  font-size: 0.95em;
  font-style: normal;
  letter-spacing: 0.01em;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* === HERO SECTION ==== */
.hero {
  background: linear-gradient(120deg, #E3F6F5 0%, #FFEDDB 80%);
  padding: 52px 0 64px;
}
.hero .container {
  display: flex;
  flex-direction: column;
}
.hero .content-wrapper {
  align-items: flex-start;
  text-align: left;
}
@media (max-width: 540px) {
  .hero h1 { font-size: 1.6rem; }
  .hero .subtitle { font-size: 1rem; }
  .hero { padding: 30px 0 36px; }
}

/* === FEATURES GRID === */
.features {
  background: #FAFAFF;
  padding: 58px 0 42px;
}
.feature_grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: stretch;
  margin-top: 24px;
  list-style: none;
  margin-bottom: 0;
}
.feature_grid li {
  background: #FFFFFF;
  box-shadow: 0 0px 10px 0 rgba(152, 193, 217, 0.04);
  border-radius: 16px;
  padding: 32px 22px 22px;
  flex: 1 1 228px;
  max-width: 306px;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.23s, transform 0.21s;
}
.feature_grid li:hover, .feature_grid li:focus-within {
  box-shadow: 0 2px 24px 0 rgba(152,193,217,0.18);
  transform: translateY(-2px) scale(1.021);
}
.feature_grid img {
  height: 42px;
  margin-bottom: 18px;
}
.feature_grid h3 {
  font-size: 1.1rem;
  font-family: 'Montserrat',Arial,sans-serif;
  margin-bottom: 7px;
  text-align: center;
}
.feature_grid p {
  font-size: 1rem;
  color: #45667c;
  text-align: center;
}

/* === SERVICES OVERVIEW === */
.services-overview {
  background: linear-gradient(120deg, #E5F5FA 0%, #FFF4E6 90%);
  padding: 58px 0 46px;
}
.services_grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin-bottom: 24px;
}
.services_grid li {
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(40,75,99,0.05);
  padding: 28px 18px;
  flex: 1 1 220px;
  min-width: 190px;
  max-width: 306px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.22s, transform 0.21s;
}
.services_grid li:hover, .services_grid li:focus-within {
  box-shadow: 0 4px 32px 0 rgba(152,193,217,0.17);
  transform: translateY(-2px) scale(1.018);
}
.services_grid h3 {
  font-size: 1.13rem;
  font-family: 'Montserrat',Arial,sans-serif;
}
.services_grid p {
  font-size: 1rem;
  color: #526e80;
  margin-bottom: 0;
}

/* =================== */
/* ===== LISTS ======= */
ul, ol {
  margin-bottom: 18px;
  padding-left: 28px;
}
ul { list-style: disc outside; }
ol { list-style: decimal outside; }
li {
  margin-bottom: 12px;
  font-size: 1rem;
  color: #325064;
}
.text-section ul, .text-section ol {
  padding-left: 24px;
}
.text-section li strong {
  color: #284B63;
  font-weight: 700;
}

/* === TESTIMONIALS === */
.testimonials {
  background: #FAFBFE;
  padding: 52px 0 30px;
}

/* === CONTACT CTA === */
.contact-cta {
  background: linear-gradient(115deg, #E3F6F5 0%, #FFF4E6 100%);
  padding: 48px 0 44px;
  text-align: left;
  border-radius: 0 0 32px 32px;
}
.contact-cta .cta-btn {
  margin-top: 30px;
}

/* === GENERAL SECTIONS === */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.text-section {
  margin-bottom: 14px;
}
.text-section p {
  margin-bottom: 14px;
  color: #284B63;
}


/* ========= FOOTER ========== */
footer {
  background: #F6F7FB;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 48px 18px 24px 18px;
  border-top-left-radius: 38px;
  border-top-right-radius: 38px;
  box-shadow: 0 -3px 32px 0 rgba(40,75,99,0.06);
  font-size: 1rem;
  margin-top: 54px;
}
footer img {
  height: 40px;
  margin-bottom: 6px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-nav a {
  color: #284B63;
  font-weight: 600;
  font-size: 0.98rem;
  margin-bottom: 0;
  padding: 7px 0px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.18s, color 0.15s;
  border-radius: 4px;
}
.footer-nav a:hover, .footer-nav a:focus {
  border-bottom: 2px solid #FFD166;
  color: #98C1D9
}
.company-contact {
  color: #7B93A5;
  text-align: center;
  font-size: 0.98rem;
  line-height: 1.5;
  margin-bottom: 0;
  margin-top: 12px;
}


/* === CARDS GENERAL USAGE (for realizacje, poradniki, projects etc.) == */
.card {
  background: #FFFFFF;
  border-radius: 14px;
  box-shadow: 0 3px 24px 0 rgba(40,75,99,0.06);
  padding: 30px 22px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.22s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 7px 34px 0 rgba(152,193,217,0.12);
}

/* ===== FORMATTING FOR THANK-YOU, POLICY PAGES, ETC. ==== */
.text-section a.cta-btn, .content-wrapper a.cta-btn {
  margin-top: 22px;
}

/* ===== IMAGES IN ICON LISTS ===== */
.text-section ul img {
  height: 24px;
  margin-right: 7px;
  vertical-align: middle;
}

/* ===== SERVICE LIST (Oferta) ===== */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  list-style: none;
  margin-bottom: 10px;
  padding-left: 0;
}
.service-list li {
  background: #FFFFFF;
  border-radius: 14px;
  box-shadow: 0 2px 15px 0 rgba(152,193,217,0.09);
  padding: 25px 18px 16px 24px;
  flex: 1 1 170px;
  margin-bottom: 0;
}
.service-list h2 { font-size: 1.24rem; margin-bottom: 8px; }
.service-list strong { color: #98C1D9; font-size: 1.06rem; margin-top: 5px; display: block; }

/* ===== PROJECT LIST (Realizacje) ===== */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  list-style: none;
  margin-bottom: 10px;
  padding-left: 0;
}
.project-list li {
  background: #FFFFFF;
  border-radius: 14px;
  box-shadow: 0 2px 14px 0 rgba(152,193,217,0.08);
  padding: 22px 13px 13px 18px;
  margin-bottom: 0;
}
.project-list h2 { font-size: 1.14rem; margin-bottom: 5px; }

/* == ACCESSIBILITY === */
:focus {
  outline: 2px solid #FFD166;
  outline-offset: 2px;
}

@media (max-width: 1060px) {
  .container { max-width: 97vw; }
}
@media (max-width: 768px) {
  .content-grid, .card-container, .feature_grid, .services_grid {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  section {
    padding: 28px 8px;
    margin-bottom: 44px;
  }
  .footer-nav, footer {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  header {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    padding: 9px 0 12px 0;
  }
  .card, .service-list li, .project-list li {
    padding: 22px 10px;
  }
  .testimonials { padding: 28px 0 20px; }
  .contact-cta { padding: 24px 0 24px; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.17rem; }
  .container {
    padding: 0 4px;
  }
  .cta-btn { font-size: 1rem; padding: 12px 20px; }
  header > a > img, footer img { height: 34px; }
}

/* ===== ANIMATIONS AND TRANSITIONS ===== */
.testimonial-card {
  animation: fadeInUp 0.95s cubic-bezier(.22,.68,.56,1.04)
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px);}
  to { opacity:1; transform: translateY(0); }
}
.cta-btn, .card, .feature_grid li, .services_grid li {
  transition: box-shadow 0.19s, transform 0.18s, background 0.16s;
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 5000;
  width: 100vw;
  background: #FDF6EA;
  box-shadow: 0 -2px 24px 0 rgba(255,209,102,0.13);
  border-radius: 14px 14px 0 0;
  padding: 18px 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  font-size: 1.02rem;
  color: #284B63;
  animation: fadeInUp 0.65s cubic-bezier(.22,.68,.56,1.04);
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 7px;
    font-size: 0.98rem;
  }
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}
.cookie-btn, .cookie-btn-secondary {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  outline: none;
  border-radius: 21px;
  padding: 11px 22px;
  margin: 0;
  transition: background 0.18s, color 0.18s, box-shadow 0.17s;
}
.cookie-btn {
  background: #FFD166;
  color: #284B63;
  box-shadow: 0 1px 8px 0 rgba(255,209,102,.07);
  cursor: pointer;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #ffeeda;
}
.cookie-btn-secondary {
  background: #e5f5fa;
  color: #284B63;
  cursor: pointer;
}
.cookie-btn-secondary:hover, .cookie-btn-secondary:focus {
  background: #bfe4fa;
  color: #284B63;
}

/* COOKIE SETTINGS MODAL */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 5100;
  left: 0; right: 0; top:0; bottom:0;
  background: rgba(40,75,99,0.25);
  justify-content: center;
  align-items: center;
  transition: opacity 0.18s;
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  max-width: 390px;
  width: 98vw;
  box-shadow: 0 6px 48px 0 rgba(152,193,217,.18);
  padding: 34px 22px 22px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeInUp 0.38s cubic-bezier(.22,.68,.56,1.04);
}
.cookie-modal h3 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.1rem;
}
.cookie-modal p, .cookie-modal label {
  font-size: 0.97rem;
  color: #284B63;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}
.cookie-toggle {
  width: 40px;
  height: 22px;
  background: #E5F5FA;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
}
.cookie-toggle input {
  display: none;
}
.cookie-toggle-slider {
  position: absolute;
  left: 3px; top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #FFD166;
  transition: transform 0.22s;
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  transform: translateX(16px);
  background: #98C1D9;
}
.cookie-toggle input:disabled + .cookie-toggle-slider {
  background: #dfdfdf;
}
.cookie-modal .close-cookie-modal {
  position: absolute;
  top: 8px; right: 10px;
  background: #E5F5FA;
  border: none;
  color: #284B63;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.13s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal .close-cookie-modal:hover, .cookie-modal .close-cookie-modal:focus {
  background: #FFD166;
  color: #284B63;
}

/* ========== UTILITIES ============ */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 14px !important; }
.mb-4 { margin-bottom: 22px !important; }

/* ========== SOFT PASTEL THEME ================= */
body {
  background: linear-gradient(120deg, #E3F6F5 0%, #FFEDDB 100%) no-repeat;
}

/* ========== DREAMY EFFECTS (shadows, borders, etc.) ========== */
.card, .feature_grid li, .services_grid li {
  box-shadow: 0 2px 18px 0 rgba(152,193,217,0.08);
}
.card, .feature_grid li, .services_grid li, .testimonial-card, .service-list li, .project-list li {
  border-radius: 16px;
}

/* ======= FORMS (if any in the future) ======= */
input, textarea, select {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  border: 1px solid #E5F5FA;
  border-radius: 10px;
  padding: 11px 12px;
  background: #F6F7FB;
  margin-bottom: 18px;
  transition: border .15s, background .14s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid #98C1D9;
  background: #FDF6EA;
}

/* ========== PRINT COLORS & UNDERLINE FOR PRINT ========== */
@media print {
  body, header, main, footer {
    background: #fff !important;
    box-shadow: none !important;
  }
  a:after {
    content: " (" attr(href) ")";
  }
}
