/* --- CSS RESET / NORMALIZE --- */
html { box-sizing: border-box; }
*,*::before,*::after { box-sizing: inherit; margin:0; padding:0; border:0; outline:0; font: inherit; vertical-align: baseline; }
body,html { width:100%; min-height:100%; font-size:16px; }
article,aside,details,figcaption,figure,footer,header,main,nav,section { display: block; }
ul,ol { margin:0 0 0 1.2em; padding-left:0; }
ul,ol,li { list-style: none; }
img { max-width:100%; height:auto; vertical-align:middle; border:0; }
button, input, select, textarea { font-family: inherit; background: none; border: none; }
a { text-decoration: none; color: inherit; cursor: pointer; }

/* --- BASE TYPOGRAPHY --- */
html {
  font-family: 'Roboto', Arial, sans-serif;
  color: #181818;
  background: #fff;
}
body {
  background: #fff;
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #232323;
  letter-spacing: 0.02em;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: #131313;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; font-weight: 600; }
h4, h5, h6 { font-size: 1rem; }
p, .subheadline, ul, ol { font-size: 1rem; margin-bottom: 16px; }
strong { font-weight: 700; }
sub, sup { font-size: 75%; }

@media (min-width: 600px){
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.2rem; }
  p, .subheadline { font-size: 1.15rem; }
}


/* --- MONOCHROME SOPHISTICATED THEME COLORS --- */
:root {
  --color-primary: #181c1f;
  --color-primary-dark: #111315;
  --color-text: #202021;
  --color-accent: #ffffff;
  --color-secondary: #EEEEEE;
  --color-secondary-dark: #d5d5d5;
  --color-card-bg: #fff;
  --color-card-shadow: rgba(20,30,50,0.08);
  --color-shadow-mid: rgba(40,40,60,0.15);
  --color-border: #ececec;
  --color-link: #181c1f;
  --color-link-hover: #222c33;
  --color-button-bg: #181c1f;
  --color-button-bg-hover: #23272c;
  --color-button-text: #fff;
  --color-section-bg: #f8f8f8;
  --color-section-bg-alt: #f3f3f5;
  --color-footer-bg: #202226;
  --color-footer-text: #fafafa;

  --brand-primary: #205072;
  --brand-secondary: #48A9A6;
  --brand-accent: #fff;
}


/* --- LAYOUT CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
  box-sizing: border-box;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-section-bg);
  border-radius: 18px;
  box-shadow: 0 6px 24px var(--color-shadow-mid);
}

/* --- CONTENT WRAPPER --- */
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 900px) {
  .content-wrapper {
    gap: 32px;
  }
}

/* --- HEADER & NAVIGATION --- */
header {
  background: var(--color-accent);
  box-shadow: 0 2px 18px var(--color-shadow-mid);
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 200;
  min-height: 64px;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  min-height: 64px;
}
header img {
  height: 40px;
  margin-right: 12px;
}
.main-nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: var(--color-primary);
  padding: 10px 4px;
  position: relative;
  transition: color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--brand-primary);
  text-decoration: underline;
}
.cta-btn {
  margin-left: 20px;
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--color-button-bg);
  color: var(--color-button-text);
  font-weight: 700;
  padding: 10px 30px;
  border-radius: 28px;
  box-shadow: 0 2px 12px var(--color-shadow-mid);
  font-size: 1rem;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  border: none;
  outline: none;
  cursor: pointer;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-button-bg-hover);
  color: var(--brand-secondary);
  box-shadow: 0 4px 20px var(--color-shadow-mid);
}

/* --- MOBILE NAV --- */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: none;
  color: var(--color-primary);
  border-radius: 50%;
  border: none;
  padding: 4px 14px;
  margin-left: 16px;
  cursor: pointer;
  z-index: 300;
  transition: background 0.14s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-secondary);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20,23,28,0.97);
  color: #fff;
  z-index: 4999;
  transform: translateX(-105%);
  transition: transform .36s cubic-bezier(.4, 0, .2, 1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  color: #fff;
  font-size: 2rem;
  background: none;
  border: none;
  margin: 30px 0 10px 30px;
  cursor: pointer;
  align-self: flex-start;
  transition: color 0.18s;
}
.mobile-menu-close:hover,.mobile-menu-close:focus {
  color: var(--brand-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 40px 28px;
  width: 100vw;
}
.mobile-nav a {
  font-size: 1.2rem;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 8px 4px;
  border-radius: 4px;
  transition: color 0.18s, background 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--brand-secondary);
  background: rgba(255,255,255,.04);
}

@media (max-width: 1100px) {
  .main-nav {
    display: none;
  }
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1101px) {
  .mobile-menu-toggle,
  .mobile-menu {
    display: none !important;
  }
}

/* --- HERO TEXTS & SECTIONS --- */
section {
  margin-bottom: 60px;
  padding: 40px 0;
  background: var(--color-section-bg);
  border-radius: 18px;
}
section > .container > h1,
section > .container > h2 {
  margin-bottom: 18px;
}
section ul, section ol {
  margin-bottom: 18px;
  margin-left: 1.2em;
  color: #292929;
  padding-left: 12px;
}
section ul li,
section ol li {
  margin-bottom: 12px;
  line-height: 1.7;
}

/* --- FEATURE / CONTENT FLEXBOXES --- */
.feature-grid, .sector-grid, .blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 20px 0 8px 0;
  align-items: stretch;
  justify-content: flex-start;
}
.feature-grid > div, .sector-grid > div, .industry-card, .blog-article {
  flex: 1 1 280px;
  min-width: 220px;
  background: var(--color-card-bg);
  border-radius: 14px;
  box-shadow: 0 2px 10px var(--color-card-shadow);
  margin-bottom: 20px;
  padding: 26px 20px 24px 20px;
  transition: box-shadow .18s, transform .18s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  border: 1px solid var(--color-border);
  position: relative;
}
.feature-grid > div:hover,
.sector-grid > div:hover,
.blog-article:hover,
.industry-card:hover {
  box-shadow: 0 8px 32px var(--color-shadow-mid);
  transform: translateY(-6px) scale(1.015);
  z-index: 2;
}
.feature-grid img {
  width: 40px; height: 40px; margin-bottom: 8px;
}

/* --- CARD CONTAINER & CONTENT-GRID (flex only) --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0 0 16px 0;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2.5px 10px var(--color-card-shadow);
  padding: 26px 18px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* --- TESTIMONIALS --- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px;
  margin-bottom: 24px;
  background: #fff;
  color: #171717;
  border-radius: 15px;
  box-shadow: 0 4px 18px var(--color-shadow-mid);
  border-left: 5px solid var(--brand-primary);
  min-width: 220px;
  max-width: 560px;
}
.testimonial-card p {
  color: #1d1e21;
  font-size: 1.08em;
  font-style: italic;
  margin-bottom: 8px;
  line-height: 1.68;
}
.testimonial-card span {
  color: #444;
  font-size: 0.96em;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}
.testimonial-card strong {
  font-weight: 700;
}

/* Blog Articles List --- */
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.blog-article {
  background: var(--color-card-bg);
  border-radius: 14px;
  box-shadow: 0 2px 10px var(--color-card-shadow);
  border: 1px solid var(--color-border);
  flex: 1 1 300px;
  min-width: 220px;
  margin-bottom: 20px;
  padding: 24px 18px 20px 18px;
  display: flex; flex-direction: column; justify-content: flex-start;
}
.blog-article h3 {
  font-size: 1.15em; margin-bottom: 8px;
  color: #23262d;
}
.blog-article p {
  color: #404040; font-size: 0.98em; margin-bottom: 14px;
}
.blog-article a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: var(--brand-primary);
  margin-top: auto;
  display: inline-block;
  transition: color 0.15s;
}
.blog-article a:hover { color: var(--brand-secondary); text-decoration: underline; }


/* --- FLEX FEATURE ITEM --- */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- TEXT-IMAGE-SECTION --- */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
}

/* --- INDUSTRY CARD (branże) --- */
.industry-card {
  display: flex;
  flex-direction: column;
  padding: 26px 20px;
  border-radius: 14px;
  background: var(--color-card-bg);
  box-shadow: 0 2px 10px var(--color-card-shadow);
  margin-bottom: 20px;
  border: 1px solid var(--color-border);
  flex: 1 1 270px;
  min-width: 210px;
}
.industry-card h3 { font-size: 1.12em; margin-bottom: 7px; }

/* --- FORMS, INPUTS, BUTTONS --- */
input, textarea, select {
  width:100%;
  background: var(--color-secondary);
  border-radius: 8px;
  border:1px solid var(--color-border);
  font-size: 1em;
  padding: 12px 14px;
  margin-bottom: 12px;
  transition: border 0.18s;
}
input:focus, textarea:focus, select:focus {
  border:1.5px solid var(--brand-secondary);
}
button, .btn {
  background: var(--color-button-bg);
  color: var(--color-button-text);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border-radius: 22px;
  padding: 10px 28px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, color 0.18s;
}
button:hover, button:focus, .btn:hover, .btn:focus {
  background: var(--color-button-bg-hover);
  color: var(--brand-secondary);
}

/* --- LINKS HOVER --- */
a {
  color: var(--color-link);
  transition: color 0.13s;
}
a:hover, a:focus {
  color: var(--brand-primary);
  text-decoration: underline;
}

/* --- FOOTER --- */
footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  font-size: 1em;
  padding-top: 32px;
  padding-bottom: 32px;
  margin-top: 60px;
}
.footer-top {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.footer-top img {
  height: 38px;
}
.footer-top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: flex-start;
  font-family: 'Montserrat', Arial, sans-serif;
}
.footer-top nav a {
  color: var(--color-footer-text);
  opacity: 0.88;
  transition: color 0.18s, opacity 0.12s;
  font-weight: 500;
  font-size: 1em;
}
.footer-top nav a:hover, .footer-top nav a:focus {
  color: var(--brand-secondary);
  opacity: 1;
  text-decoration: underline;
}
.footer-bottom {
  margin-top: 12px;
  font-size: 0.97em;
  color: #cfcfcf;
}
.footer-bottom p {
  margin-bottom: 5px;
}


/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #191B1E;
  color: #fff;
  box-shadow: 0 -4px 16px var(--color-shadow-mid);
  padding: 26px 16px 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 9999;
  animation: cookieSlideIn 0.6s;
}
@keyframes cookieSlideIn {
  from { transform: translateY(100%); opacity:0; } to { transform: translateY(0); opacity:1; }
}
.cookie-banner .cookie-controls {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.cookie-banner button {
  background: var(--color-button-bg);
  color: var(--color-button-text);
  border-radius: 14px;
  font-size: 1em;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 9px 22px;
  margin: 2px 0;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--brand-primary);
  color: #fff;
}
.cookie-banner .cookie-settings-btn {
  background: none;
  color: var(--brand-secondary);
  text-decoration: underline;
  font-weight: 500;
  border: none;
  padding: 9px 12px;
}
.cookie-banner .cookie-settings-btn:hover, .cookie-banner .cookie-settings-btn:focus {
  color: var(--brand-primary);
  background: #282c33;
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(25, 27, 30, 0.92);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.34s;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: #fcfcfc;
  color: #1c1d21;
  border-radius: 16px;
  box-shadow: 0 2px 26px var(--color-shadow-mid);
  padding: 42px 30px 32px 30px;
  min-width: 320px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 21px;
  animation: cookieModalPop 0.3s;
}
@keyframes cookieModalPop {
  0% { transform: scale(0.92) translateY(62px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity:1; }
}
.cookie-modal-content h2 {
  color: var(--brand-primary);
  font-size: 1.15rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal-content label {
  font-size: 1em;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
}
.cookie-modal-content input[type="checkbox"] {
  width: 18px; height: 18px; accent-color: var(--brand-primary);
}
.cookie-modal-content .cookie-modal-actions {
  display: flex;
  gap: 18px;
  margin-top: 10px;
}
.cookie-modal-close {
  position: absolute;
  top: 18px; right: 28px;
  background: none;
  color: var(--color-primary);
  font-size: 2rem;
  border: none;
  cursor: pointer;
  z-index: 10;
  transition: color 0.16s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--brand-secondary);
}

/* --- RESPONSIVENESS --- */
@media (max-width: 900px){
  .feature-grid, .sector-grid, .blog-list {
    flex-direction: column;
    gap: 20px;
  }
  .footer-top {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 800px) {
  .footer-top nav {
    gap: 12px;
  }
}
@media (max-width: 650px){
  .container {
    padding-left: 8px; padding-right: 8px;
  }
  .cta-btn, button, .btn {
    padding: 9px 18px;
    font-size: 0.97em;
  }
  .feature-grid > div, .industry-card, .blog-article {
    padding: 20px 10px 18px 10px;
    font-size: 1em;
  }
}
@media (max-width: 768px) {
  .text-image-section,
  .content-grid,
  .card-container,.footer-top {
    flex-direction: column;
    gap: 18px;
  }
  .section {
    padding: 28px 4px;
  }
  section {
    padding: 28px 0;
  }
  .feature-grid, .sector-grid {
    gap: 16px;
  }
  .main-nav, .cta-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  section > .container > h1,
  section > .container > h2 {
    font-size: 1.18rem;
  }
}

@media (max-width: 420px){
  .footer-top img { height: 32px; }
  .footer-bottom { font-size: 0.89em; }
}

/* --- MICRO-INTERACTIONS & HOVER EFFECTS --- */
.cta-btn, .btn, button {
  cursor: pointer;
  will-change: background, color, box-shadow, transform;
  transition: background 0.16s, color 0.16s, box-shadow 0.19s, transform 0.18s;
}
.cta-btn:active, .btn:active, button:active
{ transform: scale(0.97); }

.feature-grid > div, .blog-article, .industry-card {
  transition: box-shadow .18s, transform .18s;
}
.feature-grid > div:active, .industry-card:active, .blog-article:active
{ transform: scale(0.97); }

input, textarea {
  transition: border 0.18s, background 0.15s;
}
input:active, textarea:active {
  background: #f4f6f8;
}

/* --- DARK / DRAMATIC ELEMENTS (for monochrome elegance) --- */
.section, section {
  background: #f8f8f9;
  border-radius: 18px;
  box-shadow: 0 5px 24px var(--color-shadow-mid);
}
.section:nth-of-type(even), section:nth-of-type(even) {
  background: #f3f5f7;
}
.testimonial-card {
  background: #fff !important;
  color: #191d21;
  border-left: 5px solid var(--brand-primary);
  box-shadow: 0 4px 24px var(--color-shadow-mid);
}

/* --- VISUAL HIERARCHY, WHITESPACE, SPACING --- */
section > .container > h2, section > .container > h1 { margin-bottom: 11px; }
.content-wrapper, .text-section { margin-bottom: 16px; }

/* --- Z-INDEX/HIERARCHY FOR MENUS & BANNERS --- */
.mobile-menu, .cookie-modal, .cookie-banner { z-index: 9999; }

/* --- UTILITIES --- */
.hide { display: none !important; }
.flex { display: flex; }
.flex-col { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.align-center { align-items: center !important; }
.space-between { justify-content: space-between !important; }

/* --- PRINT OPTIMIZED --- */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  section { box-shadow:none !important; }
}

/* --- BRAND FONTS (WEBFONT FALLBACKS) --- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,600,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');
