/* --- 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.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #F7FAFD;
  color: #344156;
  min-height: 100vh;
}
ol, ul {
  list-style: none;
}
a {
  background-color: transparent;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  border: none;
  background: none;
  color: inherit;
  outline: none;
  padding: 0;
  margin: 0;
}

/* --- BRAND VARIABLES, FALLBACKS & FONTS --- */
:root {
  --primary: #11416E;
  --primary-10: #1a5da5;
  --secondary: #E7EAF0;
  --secondary-soft: #F3F6FB;
  --secondary-dark: #D3DCEA;
  --accent: #FECE3B;
  --accent-soft: #FFFBE9;
  --grey: #B8C4D6;
  --white: #fff;
  --black: #132138;
  --pastel-blue: #B3D5F2;
  --pastel-lavender: #EBE3F9;
  --pastel-yellow: #FEF3C7;
  --pastel-mint: #CCF0E3;
  --pastel-pink: #FDE6E9;
  --shadow: 0 4px 16px 0 rgba(25, 42, 77, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 7px;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Roboto:wght@400;500;700&display=swap');

body {
  font-family: var(--font-body);
  font-size: 16px;
  background: linear-gradient(180deg, var(--secondary) 0%, #F9FCFF 100%);
  color: #344156;
}

/* --- TYPOGRAPHY HIERARCHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.75rem;
  margin-bottom: 24px;
  line-height: 1.2;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  line-height: 1.3;
}
h3 {
  font-size: 1.375rem;
  margin-bottom: 12px;
  font-weight: 600;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
p, li, ul, ol, span, a, label {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: #344156;
}
strong {
  font-weight: 700;
  color: var(--primary-10);
}
.text-section p, .text-section li {
  margin-bottom: 12px;
}

/* --- CONTAINERS & LAYOUTS (FLEXBOX-ONLY) --- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  transition: box-shadow 0.18s;
}
.card:hover {
  box-shadow: 0 8px 24px 0 rgba(25,42,77,.16);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}
.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: 12px;
  background: var(--pastel-blue);
  color: var(--black);
  padding: 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  transition: box-shadow 0.17s, transform 0.17s;
}
.testimonial-card.featured {
  background: var(--pastel-pink);
  border: 2px solid var(--accent);
  box-shadow: 0 4px 24px 0 rgba(254,206,59,0.08);
}
.feature-item, .features ul li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--pastel-lavender);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px 20px 20px 20px;
  margin-bottom: 20px;
  min-width: 200px;
  flex: 1 1 240px;
  transition: box-shadow 0.16s, background 0.16s;
}
.features ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0 0 8px 0;
}
.features ul li:hover, .feature-item:hover {
  box-shadow: 0 8px 24px 0 rgba(25,42,77,.13);
  background: var(--pastel-mint);
}

/* --- HERO, CTA, SPECIAL SECTIONS --- */
section.hero {
  background: linear-gradient(90deg, var(--pastel-blue) 0%, var(--pastel-lavender) 100%);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  margin-top: 32px;
  margin-bottom: 54px;
  padding: 40px 0 56px 0;
}
section.hero h1 {
  color: var(--primary-10);
}
section.hero p {
  color: var(--primary);
  font-size: 1.17rem;
  margin-bottom: 28px;
}
section.cta, section.call-to-action {
  background: var(--pastel-yellow);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  margin-bottom: 45px;
  padding: 40px 20px;
  text-align: left;
}
section.success-message {
  background: var(--pastel-mint);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  margin-bottom: 50px;
  padding: 40px 20px;
  text-align: center;
}

/* --- BUTTONS & INTERACTIONS --- */
.cta-button, button.cta-button {
  display: inline-block;
  padding: 14px 36px;
  background: linear-gradient(90deg, var(--accent) 0%, #FFF7BB 100%);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius-lg);
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(254,206,59,.10);
  border: none;
  transition: background 0.18s, box-shadow 0.18s, color 0.18s;
  margin-top: 14px;
}
.cta-button:hover, .cta-button:focus {
  background: linear-gradient(90deg, #FFD750 0%, var(--accent) 100%);
  color: var(--primary-10);
  box-shadow: 0 4px 16px 0 rgba(254,206,59,.15);
}
button, .mobile-menu-toggle, .mobile-menu-close {
  cursor: pointer;
  border: none;
  background: none;
  padding: 12px;
  border-radius: var(--radius-md);
  transition: background 0.16s;
}
button:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus {
  outline: 2px solid var(--accent);
}

/* --- NAVIGATION (DESKTOP & MOBILE) --- */
header {
  background: var(--white);
  box-shadow: 0 2px 12px 0 rgba(70, 128, 209, 0.06);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 80;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}
.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  flex: 1 1 auto;
  justify-content: center;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--primary-10);
  font-size: 1.1rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: background 0.14s, color 0.14s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--pastel-yellow);
  color: #e7b526;
}
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--primary-10);
  background: var(--pastel-blue);
  margin-left: 24px;
}
nav.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 32px;
}
.mobile-menu {
  position: fixed;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  top: 0; left: 0; bottom: 0;
  width: 100vw;
  min-height: 100vh;
  background: var(--secondary);
  z-index: 500;
  box-shadow: 0px 0px 80px 0 rgba(70, 128, 209, 0.18);
  transform: translateX(-105%);
  opacity: 0.0;
  pointer-events: none;
  transition: transform 0.34s cubic-bezier(.5,.04,.29,1), opacity 0.2s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 36px;
  font-size: 2rem;
  color: var(--primary);
  background: var(--pastel-yellow);
  z-index: 501;
  transition: background 0.12s;
}
.mobile-menu-close:hover {
  background: var(--pastel-blue);
}
.mobile-nav a {
  font-size: 1.24rem;
  color: var(--primary);
  font-family: var(--font-display);
  padding: 16px 0px;
  transition: color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--accent);
}
@media (max-width: 1200px) {
  .container {
    max-width: 970px;
  }
}
@media (max-width: 992px) {
  .container {
    max-width: 86vw;
    padding: 0 8px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 14px;
    font-size: 1rem;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .cta-button {
    font-size: 1rem;
    padding: 11px 20px;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* --- FOOTER --- */
footer {
  background: var(--secondary-dark);
  padding: 44px 0 32px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
  justify-content: center;
}
.footer-logo img {
  width: 52px;
  height: auto;
  margin-bottom: 10px;
}
.footer-nav {
  display: flex;
  gap: 24px;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--primary-10);
  margin-bottom: 14px;
}
.footer-nav a {
  color: var(--primary-10);
  transition: color 0.14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--accent);
}
.footer-contact {
  font-size: 0.98rem;
  color: #344156;
  text-align: center;
  line-height: 1.6;
}
@media (max-width: 680px) {
  footer .container {
    gap: 18px;
  }
  .footer-nav {
    gap: 12px;
    font-size: 0.95rem;
  }
}

/* --- UTILITIES --- */
.trust-badges, .guarantee-info, .client-benefit {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
  margin-top: 12px;
}
.trust-badges img {
  width: 52px;
  height: 52px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 2px 7px 0 rgba(70, 128, 209, 0.05);
  padding: 6px;
}
.guarantee-info, .client-benefit {
  background: var(--pastel-mint);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  margin-top: 20px;
  color: var(--primary);
  font-weight: 500;
}

/* --- FORMS & TEXT SECTIONS --- */
.text-section {
  margin-bottom: 24px;
}
.text-section a {
  color: var(--primary-10);
  text-decoration: underline;
  transition: color 0.14s;
}
.text-section a:hover, .text-section a:focus {
  color: var(--accent);
}
input, textarea {
  border-radius: var(--radius-md);
  border: 1px solid var(--secondary-dark);
  padding: 12px 16px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 16px;
}
input:focus, textarea:focus {
  border-color: var(--accent);
  background: var(--pastel-yellow);
}

/* --- LISTS & DETAILS --- */
.services ul li, .contact-details ul li, .about ul li, .features ul li, section.features ul li {
  font-size: 1rem;
  font-weight: 500;
  color: #1a3460;
  margin-bottom: 20px;
}
.services ul li span {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--accent);
}

/* --- PROJECTS/REALIZACJE --- */
.case-studies .project-summary {
  background: var(--pastel-mint);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 28px 20px;
  margin-bottom: 28px;
}
.case-studies .project-summary h2 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

/* --- LEGAL INFO & POLICIES --- */
.legal {
  background: var(--pastel-lavender);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 40px 24px;
  margin-bottom: 60px;
}
.legal h1, .legal h2 {
  color: var(--primary-10);
}

/* --- COOKIE CONSENT BANNER & MODAL --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 8000;
  background: linear-gradient(90deg, var(--pastel-blue) 0%, var(--pastel-yellow) 100%);
  box-shadow: 0 -4px 18px 0 rgba(25,42,77,0.12);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  gap: 24px;
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  animation: cookieBannerDrop 0.5s cubic-bezier(.5,.1,.19,1);
}
@keyframes cookieBannerDrop {
  0% { transform: translateY(90px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  flex: 1 1 0%;
  color: var(--primary-10);
  margin-right: 24px;
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.cookie-btn {
  padding: 9px 18px;
  border-radius: 22px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  color: var(--primary-10);
  background: var(--white);
  box-shadow: 0 2px 7px 0 rgba(70,128,209,.07);
  transition: background .14s, color .14s;
}
.cookie-btn.accept {
  background: var(--accent);
  color: var(--primary-10);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #ffd750;
}
.cookie-btn.reject {
  background: var(--white);
  color: var(--primary-10);
  border: 1px solid var(--grey);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--pastel-pink);
  color: #c94d63;
}
.cookie-btn.settings {
  background: var(--pastel-lavender);
  color: var(--primary-10);
}
.cookie-btn.settings:hover {
  background: var(--pastel-blue);
}

.cookie-modal-backdrop {
  position: fixed;
  z-index: 8900;
  background: rgba(34, 53, 102, 0.36);
  top: 0; left: 0; right: 0; bottom: 0;
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-backdrop.open {
  display: flex;
  animation: fadeInCookieModal .23s;
}
@keyframes fadeInCookieModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 38px 0 rgba(70,128,209,0.13);
  padding: 38px 26px 28px 26px;
  min-width: 320px;
  max-width: 98vw;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  font-size: 1rem;
  animation: modalPop 0.28s cubic-bezier(.53,1.59,.23,1.02);
}
@keyframes modalPop {
  from { transform: scale(.90); opacity: 0; }
  to { transform: scale(1.0); opacity: 1; }
}
.cookie-modal h3 {
  font-family: var(--font-display);
  color: var(--primary-10);
  font-size: 1.23rem;
  margin-bottom: 12px;
}
.cookie-category-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}
.cookie-switch {
  position: relative;
  display: inline-flex;
  width: 42px;
  height: 24px;
  background: var(--secondary-dark);
  border-radius: 22px;
  vertical-align: middle;
  margin-left: 4px;
  transition: background 0.17s;
}
.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--grey);
  transition: transform 0.18s, background 0.16s;
}
.cookie-switch input:checked + .cookie-slider {
  background: var(--accent);
  transform: translateX(18px);
}
.cookie-category-label {
  font-size: 1rem;
  color: var(--primary-10);
  font-weight: 500;
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 18px;
  justify-content: flex-end;
}
.cookie-modal .modal-close {
  background: none;
  color: var(--primary-10);
  font-size: 1.6rem;
  border-radius: 50%;
  padding: 3px 7px;
  position: absolute;
  top: 17px; right: 20px;
  transition: background 0.12s;
  cursor: pointer;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  background: var(--pastel-yellow);
}

/* --- RESPONSIVE & MEDIA QUERIES --- */
@media (max-width: 990px) {
  .features ul {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2.0rem; }
  h2 { font-size: 1.45rem; }
  .content-grid, .trust-badges {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .content-wrapper {
    gap: 16px;
  }
  .section, .success-message, section.cta, .legal {
    padding: 24px 8px;
  }
  .testimonial-card, .feature-item, .features ul li, .case-studies .project-summary {
    padding: 16px 10px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 10px;
    font-size: .97rem;
  }
  .cookie-btn {
    font-size: .95rem;
    padding: 8px 13px;
  }
  .footer-contact {
    font-size: .91rem;
  }
}
@media (max-width: 480px) {
  h1, h2, h3 { text-align: left; }
  .container {
    padding-left: 2vw;
    padding-right: 2vw;
  }
}

/* --- ANIMATIONS, TRANSITIONS, MICRO-INTERACTIONS --- */
.testimonial-card:hover {
  box-shadow: 0 10px 28px 0 rgba(25,42,77,.17);
  transform: translateY(-2px) scale(1.02);
}
.features ul li img {
  width: 48px;
  height: 48px;
  margin-bottom: 6px;
  transition: transform 0.16s;
}
.features ul li:hover img, .feature-item:hover img {
  transform: scale(1.09) rotate(-2deg);
}
.cta-button:active { transform: scale(0.98); }

/* --- Z-INDEX HANDLING --- */
header { z-index: 80; }
.mobile-menu { z-index: 500; }
footer { z-index: 10; }
.cookie-banner { z-index: 8000; }
.cookie-modal-backdrop { z-index: 9000; }

/* --- VISUAL ENHANCEMENTS FOR SOFT PASTEL --- */
body, section, .card, .section, .features ul li, .feature-item, .testimonial-card, .cookie-banner, .cookie-modal, .case-studies .project-summary, section.cta, .success-message, .legal {
  /* Smooth backgrounds for dreamy look */
  background-blend-mode: lighten;
}
hr {
  border: none;
  border-top: 1px solid #dde7f0;
  margin: 28px 0;
}

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