/* === 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;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1; min-height: 100vh; background: #F9FAFB; color: #222233;
}
ol, ul {
  list-style: none;
}
a {
  color: inherit; text-decoration: none; transition: color 0.2s, background 0.2s;
}
*, *::before, *::after {
  box-sizing: border-box;
}
img {
  max-width: 100%; height: auto;
}

/* === CSS CUSTOM PROPERTIES - PASTEL COLOR PALETTE == */
:root {
  /* Brand colors */
  --primary: #203A43; /* dark blue-grey */
  --secondary: #3CAEA3; /* teal */
  --accent: #FFFFFF;
  /* Soft-pastel palette */
  --pastel-mint: #C4EFE6;
  --pastel-blue: #D5E8F6;
  --pastel-lavender: #E8DBF7;
  --pastel-salmon: #FFD6CC;
  --pastel-yellow: #FFF9D6;
  --pastel-pink: #F9DBE8;
  --pastel-gray: #F7F7FA;
  --focus: #8DC3CF;
  --button-hover: #30A095;
  --card-shadow: 0 2px 12px rgba(61, 110, 146, 0.10);
  --text-dark: #222233;
  --text-body: #384159;
  --border-radius: 18px;
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-section: 40px;
  --shadow-testimonial: 0 3px 24px rgba(40, 50, 61, .10);
  --z-menu: 99;
  --z-banner: 199;
  --font-display: "Montserrat", Arial, sans-serif;
  --font-body: "Roboto", Arial, sans-serif;
}

/* === BASE TYPOGRAPHY & BODY === */
html {
  font-size: 16px;
}
body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: linear-gradient(180deg, var(--pastel-blue) 0%, var(--pastel-mint) 80%, var(--pastel-gray) 100%);
  min-height: 100vh;
  letter-spacing: .01em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 600;
  line-height: 1.13;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

p, li {
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 0.7em;
}
strong {
  color: var(--primary); font-weight: bold;
}

/* === CONTAINERS & WRAPPERS === */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

/* === HEADER === */
header {
  background: var(--accent);
  box-shadow: 0 2px 10px rgba(90, 130, 180, 0.07);
  position: relative;
  z-index: var(--z-menu);
}
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 20px 0;
  gap: 14px;
}
.header-content > a:first-child {
  display: flex; align-items: center; gap: 8px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  padding: 6px 10px;
  border-radius: 7px;
  color: var(--primary);
  transition: background 0.16s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--pastel-mint);
}

.cta-btn {
  font-family: var(--font-display);
  background: var(--secondary);
  color: var(--accent) !important;
  font-weight: 600;
  font-size: 1.06rem;
  border: none;
  border-radius: var(--border-radius);
  padding: 10px 28px;
  box-shadow: 0 2px 8px rgba(81, 183, 170, 0.13);
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, transform 0.15s;
  outline: none;
  display: inline-block;
  margin-left: 10px;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--button-hover);
  color: #fff;
  box-shadow: 0 6px 18px rgba(62, 164, 180, 0.11);
  transform: translateY(-2px) scale(1.035);
}

/* === MOBILE MENU === */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
  z-index: var(--z-menu);
  margin-left: 8px;
  transition: color .2s;
}
.mobile-menu-toggle:focus {
  color: var(--secondary);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(164deg, var(--pastel-pink) 0%, var(--pastel-blue) 65%);
  box-shadow: 0 0 22px rgba(130,150,200,.13);
  z-index: calc(var(--z-menu) + 20);
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(.56,.21,.22,1.02), opacity 0.27s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 22px 24px 18px 0;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  border-radius: 100%;
  transition: background .18s, color .18s;
  padding: 8px;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--pastel-mint);
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 32px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.20rem;
  font-family: var(--font-display);
  color: var(--primary);
  background: none;
  border-radius: 10px;
  padding: 11px 7px;
  text-align: left;
  transition: background .16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--pastel-blue);
  color: var(--secondary);
}

@media (max-width: 1000px) {
  .main-nav {
    gap: 14px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.25rem; }
}
@media (max-width: 950px) {
  .container { max-width: 94vw; }
}
@media (max-width: 800px) {
  .container { max-width: 100vw; }
}

@media (max-width: 768px) {
  .header-content, .footer-content { flex-direction: column; align-items: flex-start; gap: 14px; }
  .main-nav { display: none !important; }
  .cta-btn { margin-left: 0; }
  .mobile-menu-toggle { display: block; }
}
@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
}

/* === SECTIONS AND SPACING === */
section {
  background: transparent;
  position: relative;
}
.section {
  margin-bottom: 60px; padding: 40px 20px;
  background: var(--pastel-gray);
  border-radius: var(--border-radius);
  box-shadow: 0 1.5px 8px rgba(120,150,195,0.06);
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .section {
    padding: 26px 7px;
    margin-bottom: 38px;
  }
  .content-wrapper {
    gap: 18px;
  }
}

/* === FLEXBOX LAYOUTS (MANDATORY PATTERNS) === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: var(--pastel-lavender);
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  box-shadow: var(--card-shadow);
  padding: 24px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card:hover, .card:focus-within {
  box-shadow: 0 5px 24px rgba(61, 110, 146, 0.18);
  transform: translateY(-2px) scale(1.01);
}

.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: var(--pastel-mint);
  padding: 20px 26px;
  margin-bottom: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-testimonial);
  transition: box-shadow .2s, transform .17s;
}
.testimonial-card p {
  color: var(--text-dark);
  font-size: 1.15rem;
  font-style: italic;
  margin-bottom: 8px;
}
.testimonial-card span, .testimonial-card strong {
  color: var(--primary);
  font-style: normal;
}
.testimonial-card:hover {
  box-shadow: 0 6px 32px rgba(40,80,60,0.12);
  transform: translateY(-2px) scale(1.02);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--pastel-yellow);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 20px 24px;
  margin-bottom: 18px;
}

.case-study-card {
  background: var(--pastel-salmon);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 20px 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow .15s, transform .11s;
}
.case-study-card:hover {
  box-shadow: 0 8px 22px rgba(70,60,120,.12);
  transform: scale(1.013);
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
}
.feature-grid > div {
  flex: 1 1 240px;
  min-width: 220px;
  background: var(--pastel-lavender);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 22px 22px 18px 22px;
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow .15s, background .18s, transform .14s;
}
.feature-grid > div:hover {
  background: var(--pastel-blue);
  box-shadow: 0 5px 26px rgba(62, 170, 163,0.11);
  transform: translateY(-2px) scale(1.013);
}
.feature-grid img {
  width: 46px; height: 46px; margin-bottom: 11px;
}

@media (max-width: 1000px) {
  .feature-grid { gap: 16px; }
  .feature-grid > div { min-width: 165px; padding: 20px 10px; }
}
@media (max-width: 768px) {
  .feature-grid { flex-direction: column; gap: 16px; }
  .feature-grid > div { width: 100%; min-width: 0; }
}

/* === LISTS & TEXT SECTIONS === */
ul, ol {
  list-style: disc inside;
  margin-left: 1rem;
}
.text-section ul {
  list-style: disc inside;
  margin-left: 2rem;
}
.text-section img {
  vertical-align: middle;
  margin-right: 7px;
}
.text-section {
  background: var(--pastel-yellow);
  border-radius: var(--border-radius);
  padding: 18px 22px;
  margin: 8px 0;
}
.text-section ul {margin-bottom: 0;}

/* === FOOTER === */
footer {
  background: var(--pastel-gray);
  box-shadow: 0 -1.5px 12px rgba(156, 180, 206, 0.10);
  margin-top: 66px;
  padding: 36px 0 18px 0;
  color: var(--primary);
}
.footer-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  font-family: var(--font-display);
}
.footer-content > a img {
  width: 48px; min-width: 40px;
}
.footer-menu {
  display: flex;
  flex-direction: row;
  gap: 18px;
}
.footer-menu a {
  color: var(--primary);
  font-size: 1.03rem;
  opacity: 0.93;
  border-radius: 4px;
  padding: 2px 7px;
  transition: background .18s;
}
.footer-menu a:hover, .footer-menu a:focus {
  opacity: 1.0;
  background: var(--pastel-mint);
}
.footer-contact ul {
  list-style: none;
  margin: 0; padding: 0;
  font-size: .95rem;
  color: var(--text-dark);
  opacity: .97;
}
.footer-contact li { margin-bottom: 4px; }

@media (max-width: 768px) {
  .footer-content { flex-direction: column; gap: 16px; }
  .footer-menu { flex-direction: column; gap: 8px; }
  footer { padding: 24px 0 10px 0; }
}

/* === BUTTONS & LINKS === */
button, .cta-btn, input[type=submit], input[type=button] {
  cursor: pointer;
  font-family: var(--font-display);
  border: none;
  border-radius: var(--border-radius);
  transition: background .18s, color .15s, box-shadow .16s, transform .11s;
}
button:focus, .cta-btn:focus { outline: 2px solid var(--focus); }


/* === MISC STYLES === */
::-webkit-scrollbar {
  width: 10px;
  background: var(--pastel-gray);
}
::-webkit-scrollbar-thumb {
  background: var(--pastel-blue);
  border-radius: 10px;
}

hr {
  border: none;
  border-bottom: 1.5px solid var(--pastel-blue);
  margin: 2rem 0;
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: linear-gradient(86deg, var(--pastel-yellow) 60%, var(--pastel-pink) 100%);
  color: var(--text-dark);
  padding: 22px 18px 15px 18px;
  box-shadow: 0 -3px 24px rgba(40,62,80,0.13);
  z-index: var(--z-banner);
  font-size: 1.04rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  opacity: 1; pointer-events: all;
  transition: transform .32s cubic-bezier(.5,.02,.24,1.02), opacity .23s;
}
.cookie-banner.hide {
  transform: translateY(100%);
  opacity: 0; pointer-events: none;
}
.cookie-banner .cookie-actions {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
}
.cookie-btn, .cookie-settings-btn {
  padding: 8px 20px;
  border-radius: 9px;
  font-size: 1rem;
  border: none;
  background: var(--secondary);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  box-shadow: 0 1.5px 7px rgba(97, 180, 173, .13);
}
.cookie-btn.reject {
  background: var(--pastel-salmon);
  color: var(--primary);
}
.cookie-btn:hover, .cookie-btn:focus, .cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: var(--button-hover);
  color: #fff;
  outline: 1.5px solid var(--focus);
}
.cookie-settings-btn {
  background: var(--pastel-blue);
  color: var(--primary);
  font-weight: 500;
}
.cookie-settings-btn:hover { background: var(--pastel-mint); color: var(--primary); }

/* === COOKIE PREFERENCES MODAL === */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(27,39,53,0.19);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: calc(var(--z-banner) + 10);
  pointer-events: all;
  transition: opacity .25s;
  opacity: 1;
}
.cookie-modal.hide {
  pointer-events: none; opacity: 0;
}
.cookie-modal-dialog {
  background: var(--pastel-yellow);
  border-radius: var(--border-radius);
  padding: 32px 38px 28px 38px;
  box-shadow: 0 10px 40px rgba(81,183,170,0.18);
  color: var(--primary);
  min-width: 320px;
  max-width: 94vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: cookie-modal-fadein .37s cubic-bezier(0.7,0.21,0.44,1.09);
}
@keyframes cookie-modal-fadein {
  from { transform: translateY(32px) scale(0.98); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 13px; right: 24px;
  background: none; border: none;
  font-size: 1.45rem; color: var(--primary);
  cursor: pointer; border-radius: 100%;
  padding: 3px 7px;
  transition: background .15s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--pastel-mint);
}

.cookie-modal-section {
  display: flex; flex-direction: column; gap: 18px; margin-bottom: 14px;
}
.cookie-category {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-body); font-size: 1.07rem;
  background: var(--pastel-blue);
  padding: 8px 13px;
  border-radius: 8px;
  margin-bottom: 6px;
}
.cookie-toggle {
  appearance: none;
  width: 44px; height: 22px;
  background: var(--pastel-gray);
  border-radius: 22px;
  position: relative;
  outline: none; box-shadow: none;
  transition: background .14s;
  cursor: pointer;
}
.cookie-toggle:checked {
  background: var(--secondary);
}
.cookie-toggle::after {
  content: "";
  display: block;
  position: absolute;
  left: 3.5px; top: 2.7px;
  width: 17px; height: 17px;
  background: var(--accent);
  border-radius: 100%;
  box-shadow: 0 1.5px 4px rgba(100,180,185,0.12);
  transition: left .17s, background .14s;
}
.cookie-toggle:checked::after {
  left: 23px; background: #fffdf6;
}

.cookie-modal-actions {
  display: flex; flex-direction: row; gap: 14px; align-items: center;
  justify-content: flex-end;
  margin-top: 8px;
}
@media (max-width: 500px) {
  .cookie-modal-dialog { padding: 24px 7vw 18px 7vw; }
  .cookie-category { font-size: 0.99rem;} 
}

/* === ANIMATION (MICRO-INTERACTIONS) === */
.card, .testimonial-card, .feature-grid > div, .case-study-card {
  transition: box-shadow 0.16s, transform 0.13s, background 0.17s;
}
.cta-btn, .cookie-btn, .cookie-settings-btn {
  transition: background 0.16s, box-shadow 0.13s, transform 0.13s;
}
.cta-btn:active, .cookie-btn:active, .cookie-settings-btn:active {
  transform: scale(0.98);
}

/* === ACCESSIBILITY (FOCUS STATES) === */
a:focus, button:focus, .cta-btn:focus, input:focus, select:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

/* === UTILITY CLASSES === */
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 32px; }
.pt-2 { padding-top: 16px; }
.pb-2 { padding-bottom: 16px; }

/* === SPECIALS FOR INDEX, OFERTA, ROZWIAZANIA-CRM, REFERENCJE === */
.index-hero {
  background: linear-gradient(105deg, var(--pastel-mint) 30%, var(--pastel-blue) 100%);
  padding: 60px 0 34px 0;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 55px rgba(53, 190, 182, .06);
}

/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width: 600px) {
  html { font-size: 15px; }
  .container { padding-left: 6vw; padding-right: 6vw; }
  .section { padding: 26px 4vw; margin-bottom: 24px; }
  .feature-grid { gap: 9px; }
}

/* ==== END OF CSS ==== */
