/* ------------------------ CSS RESET & NORMALIZATION ------------------------ */
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,
main, 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;
}
html { box-sizing: border-box; }
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background: #fff;
  color: #18191A;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
ul, ol { list-style-position: inside; }
button { font-family: inherit; background: none; border: none; cursor: pointer; }
strong { font-weight: 700; }
em { font-style: italic; }

/* ------------------------ TYPOGRAPHY ------------------------ */
h1, h2, h3, h4, h5, h6 {
  color: #0B1822;
  font-family: 'Orbitron', 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.75rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4 { font-size: 1.125rem; margin-bottom: 10px; }
p, ul, ol { font-size: 1rem; margin-bottom: 16px; }
.subheadline {
  font-size: 1.25rem;
  color: #333;
  margin-bottom: 28px;
  max-width: 650px;
  opacity: 0.95;
}
@media (max-width: 500px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}

/* ------------------------ COLORS: Monochrome Sophisticated Palette ------------------------ */
:root {
  --brand-primary: #092B4E;
  --brand-secondary: #3799B8;
  --brand-accent: #F1F5F8;
  --grey-bg: #F6F7F8;
  --dark: #18191A;
  --black: #030404;
  --white: #fff;
  --grey-300: #EBEDF0;
  --grey-400: #D7DBDF;
  --grey-600: #7A7C81;
  --grey-900: #23252B;
}

/* ------------------------ LAYOUT: Container + Section Patterns ------------------------ */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--white);
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 36px;
    padding: 28px 10px;
  }
  .container {
    padding: 0 10px;
  }
}

/* ------------------------ HEADER & NAVIGATION ------------------------ */
header {
  background: var(--brand-primary);
  color: var(--white);
  padding: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 20px;
}
.logo img { height: 40px; }

.main-nav {
  display: flex;
  gap: 28px;
}
.main-nav a {
  color: var(--white);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  padding: 5px 2px;
  transition: color 0.18s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--brand-secondary);
}
.main-nav a:after {
  content: '';
  display: block;
  height: 2px;
  background: var(--brand-secondary);
  width: 0%;
  transition: width 0.2s;
  margin-top: 2px;
}
.main-nav a:hover:after,
.main-nav a:focus:after {
  width: 100%;
}
.cta-button {
  display: inline-block;
  background: var(--brand-secondary);
  color: var(--white);
  font-family: 'Orbitron', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 20px;
  padding: 10px 32px;
  letter-spacing: 0.05em;
  margin-left: 28px;
  box-shadow: 0 2px 14px rgba(9,43,78,0.06);
  transition: background 0.2s, color 0.2s, box-shadow 0.18s, transform 0.15s;
  border: none;
  outline: none;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(9,43,78,0.08);
}
.cta-button:hover,
.cta-button:focus {
  background: var(--dark);
  color: var(--brand-secondary);
  box-shadow: 0 6px 20px rgba(9,43,78,0.16);
  transform: translateY(-2px) scale(1.04);
}

/* --------- Mobile Navigation --------- */
.mobile-menu-toggle {
  display: none;
}
@media (max-width: 1020px) {
  .main-nav,
  .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    font-size: 2rem;
    color: var(--white);
    background: var(--brand-secondary);
    border-radius: 50%;
    width: 44px; height: 44px;
    align-items: center;
    justify-content: center;
    border: none;
    transition: background 0.22s;
    z-index: 304;
  }
  .mobile-menu-toggle:hover,
  .mobile-menu-toggle:focus {
    background: var(--brand-primary);
    color: var(--brand-secondary);
    outline: 2px solid var(--brand-secondary);
  }
}
/* Mobile offcanvas menu */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  width: 100vw;
  background: var(--white);
  color: var(--black);
  z-index: 3010;
  display: flex;
  flex-direction: column;
  gap: 0;
  transform: translateX(-100vw);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(.6,.08,.24,1), opacity 0.22s;
  box-shadow: 0 8px 32px rgba(9,43,78,0.16);
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  color: var(--brand-primary);
  font-size: 2rem;
  align-self: flex-end;
  margin: 18px 28px 10px 0;
  border-radius: 16px;
  transition: background 0.17s;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--grey-300);
  outline: 2px solid var(--brand-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 14px 36px;
  gap: 18px;
}
.mobile-nav a {
  color: var(--dark);
  font-size: 1.125rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  padding: 12px 0;
  border-bottom: 1px solid var(--grey-300);
  width: 100%;
  transition: color 0.2s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--brand-secondary);
  background: var(--grey-300);
  border-radius: 2px;
}


/* ------------------------ HERO / CONTENT WRAPPER / SECTIONS ------------------------ */
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: flex-start;
}

/* ------------------------ FEATURE GRID & CARDS ------------------------ */
.feature-grid, .service-cards, .team-list, .category-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 30px;
  margin-bottom: 8px;
}
@media (max-width: 860px) {
  .feature-grid, .service-cards, .team-list, .category-cards {
    flex-direction: column;
    gap: 18px;
    margin-top: 18px;
  }
}
.feature {
  background: var(--grey-300);
  color: var(--brand-primary);
  padding: 32px 24px 26px 24px;
  border-radius: 20px;
  box-shadow: 0 6px 28px rgba(26,36,46,0.11);
  min-width: 240px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px; /* .feature-item standard */
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.13s;
}
.feature img {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
}
.feature:hover, .feature:focus-within {
  box-shadow: 0 10px 36px rgba(9,43,78,0.20);
  transform: translateY(-4px) scale(1.03);
}

/* ------- CATEGORY CARDS ------- */
.category-cards {
  gap: 24px;
}
.category-card {
  background: var(--grey-400);
  color: var(--brand-primary);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(9,43,78,0.075);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 19px 36px 15px 36px;
  min-width: 130px;
  font-family: 'Orbitron', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.025em;
  transition: box-shadow 0.18s, background 0.2s, color 0.15s;
  margin-bottom: 20px;
  border: 2px solid rgba(9,43,78,0.07);
}
.category-card img {
  width: 38px; height: 38px;
  margin-bottom: 6px;
}
.category-card:hover, .category-card:focus {
  background: var(--brand-secondary);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(9,43,78,0.13);
}

/* ------- SERVICE CARDS ------- */
.service-cards {
  gap: 24px;
  margin-bottom: 16px;
}
.service-card {
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(9,43,78,0.10);
  border: 1px solid var(--grey-300);
  padding: 28px 24px 26px 24px;
  flex: 1 1 210px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.14s;
}
.service-card:hover, .service-card:focus-within {
  box-shadow: 0 10px 36px rgba(9,43,78,0.17);
  transform: translateY(-2px) scale(1.025);
}
.service-price {
  color: var(--brand-secondary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 8px;
}

/* ------- TEAM LIST ------- */
.team-list {
  gap: 28px;
  margin-bottom: 16px;
}
.team-member {
  background: var(--grey-bg);
  border-radius: 12px;
  padding: 20px 28px;
  box-shadow: 0 2px 10px rgba(9,43,78,0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

/* ------- SERVICE TEASERS / USŁUGI ------- */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 18px;
}
.service-list li, .service-teaser {
  background: var(--grey-300);
  color: var(--brand-primary);
  border-radius: 9px;
  padding: 20px 18px;
  margin-bottom: 14px;
  box-shadow: 0 1px 7px rgba(9,43,78,0.08);
  line-height: 1.65;
  font-size: 1rem;
}
.service-teaser {
  flex: 1 1 180px;
}
.service-list {
  gap: 20px;
  display: flex;
  flex-wrap: wrap;
}
@media (max-width: 860px) {
  .service-list {
    flex-direction: column;
    gap: 14px;
  }
}

/* ------- USE CASES BLOCK ------- */
.use-cases, .technology-timelines, .nature-impact-overview, .impact-overview {
  background: var(--grey-300);
  border-radius: 12px;
  padding: 22px 18px 16px 18px;
  box-shadow: 0 2px 10px rgba(9,43,78,0.07);
  font-size: 1.05rem;
  margin: 24px 0 8px 0;
}

/* ------- Map Placeholder / Address ------- */
.map-placeholder {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0 0 0;
  color: var(--brand-primary);
}
.address {
  font-weight: 600;
  margin-top: 8px;
  font-size: 1.05rem;
}

/* ------- BENEFITS BULLETS ------- */
.benefits-bullets {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 24px;
}

/* ----------------- LAYOUT UTILITIES AND PATTERNS ----------------- */
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 15px;
  background: var(--grey-300);
  color: var(--dark);
  box-shadow: 0 2px 12px rgba(9,43,78,0.13);
  border-left: 4px solid var(--brand-secondary);
  max-width: 430px;
  transition: box-shadow 0.2s, transform 0.15s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 28px rgba(9,43,78,0.19);
  transform: translateY(-2px) scale(1.02);
}
.testimonial-user {
  font-size: 0.98rem;
  color: var(--grey-900);
  opacity: 0.8;
  font-style: italic;
  margin-top: 2px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 9px;
}

.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* ------------------------ FACTS, FAQ ------------------------ */
.facts-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 18px 0 6px 0;
}
.facts-list li {
  background: var(--grey-300);
  border-radius: 8px;
  padding: 12px 18px;
  color: var(--brand-primary);
  box-shadow: 0 1px 8px rgba(9,43,78,0.09);
}
.facts-list a {
  color: var(--brand-secondary);
  font-weight: 600;
  margin-left: 7px;
  font-family: 'Orbitron', Arial, Helvetica, sans-serif;
  letter-spacing: 0.01em;
  transition: color 0.17s, text-decoration 0.18s;
}
.facts-list a:hover, .facts-list a:focus { text-decoration: underline; color: var(--brand-primary); }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.faq-list li {
  background: var(--grey-300);
  border-radius: 8px;
  padding: 14px 17px;
  margin-bottom: 6px;
  color: var(--brand-primary);
}

/* ------------------------ FOOTER ------------------------ */
footer {
  background: var(--black);
  color: var(--grey-300);
  padding-top: 34px; padding-bottom: 22px;
  font-size: 1rem;
  margin-top: 32px;
}
footer .container {
  flex-direction: column;
  gap: 18px;
}
.footer-logo img { height: 36px; margin-bottom: 8px; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 6px;
}
.footer-nav a {
  color: var(--grey-400);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.15s, border 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--white);
  border-bottom: 1px solid var(--brand-secondary);
}
.footer-contact {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  font-size: 0.99rem;
  margin-bottom: 2px;
}
.footer-contact div {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--grey-600);
}
.footer-copy {
  font-size: 0.88rem;
  color: var(--grey-600);
  margin-top: 18px;
  align-self: flex-end;
}

@media (max-width: 860px) {
  .footer-contact { flex-direction: column; gap: 10px; align-items: flex-start; }
  .footer-logo { align-self: center; }
}

/* ------------------------ OTHER UTILITIES ------------------------ */
.text-section ul, .text-section ol, .content-wrapper ul, .content-wrapper ol {
  margin-left: 26px; margin-right: 6px; margin-bottom: 18px;
  font-size: 1rem;
}
.text-section ul li, .content-wrapper ul li {
  margin-bottom: 8px;
}
.legal-section {
  background: var(--grey-300);
  border-radius: 14px;
  padding: 28px 22px 18px 22px;
  color: var(--brand-primary);
  font-size: 1.05rem;
  box-shadow: 0 2px 10px rgba(9,43,78,0.09);
}

.contact-information, .contact-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  margin-bottom: 20px;
}
.contact-shortcuts div, .contact-information div {
  display: flex;
  gap: 7px;
  align-items: center;
  background: var(--grey-300);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 1rem;
  color: var(--brand-primary);
}

/* ------------------------ RESPONSIVE LAYOUTS ------------------------ */
@media (max-width: 768px) {
  .feature-grid,
  .service-cards,
  .team-list,
  .category-cards {
    flex-direction: column;
    gap: 18px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 9px;
  }
  .footer-logo img {
    margin-bottom: 6px;
    align-self: center;
  }
}
@media (max-width: 580px) {
  .container { padding: 0 4px; }
  .section { padding: 18px 2px; }
}

/* ------------------------ BUTTON & FORM STYLES ------------------------ */
button, .cta-button {
  outline: none;
  border: none;
  cursor: pointer;
  font-family: 'Orbitron', 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  border-radius: 20px;
  transition: background 0.18s, color 0.16s, box-shadow 0.14s, transform 0.09s;
}
button:active, .cta-button:active {
  transform: scale(0.98);
}

/* ------------------------ ANIMATIONS & MICRO-INTERACTIONS ------------------------ */
.category-card, .feature, .service-card, .testimonial-card {
  transition: box-shadow 0.17s, transform 0.13s, background 0.14s;
}
.category-card:active, .feature:active, .service-card:active, .testimonial-card:active {
  transform: scale(0.98);
}

/* ------------------------ COOKIE BANNER: Fixed & Modal ------------------------ */
#cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--black);
  color: var(--white);
  padding: 24px 40px 18px 34px;
  z-index: 9100;
  box-shadow: 0 -6px 24px rgba(0,0,0,0.19);
  font-size: 1.08rem;
  gap: 18px;
}
#cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
}
.cookie-btn {
  background: var(--brand-secondary);
  color: var(--white);
  padding: 9px 22px;
  border-radius: 7px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  transition: background 0.20s, color 0.21s;
}
.cookie-btn.settings {
  background: var(--white);
  color: var(--brand-primary);
  border: 1.5px solid var(--brand-secondary);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--brand-primary);
  color: var(--brand-secondary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--brand-secondary);
  color: var(--white);
}

@media (max-width: 680px) {
  #cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 6px 12px 6px;
    font-size: 1rem;
    gap: 14px
  }
  #cookie-banner .cookie-actions {
    flex-direction: column;
    gap: 7px;
  }
}

#cookie-modal {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 9200;
  background: rgba(24, 25, 26, 0.84);
  display: flex;
  align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
#cookie-modal.open { opacity: 1; pointer-events: auto; }
.cookie-modal-content {
  background: var(--white);
  padding: 36px 28px 26px 28px;
  border-radius: 18px;
  max-width: 390px;
  box-shadow: 0 16px 60px rgba(9,43,78,0.21);
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: var(--brand-primary);
  animation: fadeupIn 0.32s cubic-bezier(.7, .02, .21, 1);
}
@keyframes fadeupIn {
  0% { opacity: 0; transform: translateY(82px) scale(0.96); }
  70% { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.cookie-modal-content h3 {
  font-family: 'Orbitron', Arial, Helvetica, sans-serif;
  font-size: 1.35rem;
  margin-bottom: 2px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 13px;
}
.cookie-category label {
  font-size: 1.02rem;
}
.cookie-toggle {
  width: 44px; height: 24px;
  background: var(--grey-400);
  border-radius: 14px;
  cursor: pointer;
  position: relative;
  transition: background 0.16s;
  display: flex;
  align-items: center;
}
.cookie-toggle input { display: none; }
.cookie-toggle span {
  display: block;
  width: 20px; height: 20px;
  background: var(--grey-900);
  border-radius: 50%;
  transition: transform 0.26s, background 0.2s;
  position: absolute; top: 2px; left: 2px;
}
.cookie-toggle input:checked + span {
  transform: translateX(20px);
  background: var(--brand-secondary);
}
.cookie-modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 11px;
}
.cookie-modal-close {
  font-size: 1.3rem;
  color: var(--grey-900);
  align-self: flex-end;
  background: none;
  border: none;
  border-radius: 17px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.17s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--grey-300);
}

/* ------------------------ SCROLLBAR (Elegance) ------------------------ */
::-webkit-scrollbar {
  width: 10px;
  background: var(--grey-300);
}
::-webkit-scrollbar-thumb {
  background: var(--grey-900);
  border-radius: 6px;
}

/* ------------------------ SELECT FOCUS/HOVER ------------------------ */
a:focus, button:focus, .cta-button:focus {
  outline: 2px solid var(--brand-secondary);
  outline-offset: 1px;
}

/* ------------------------ PRINT (optional) ------------------------ */
@media print {
  header, footer, #cookie-banner, .mobile-menu { display: none !important; }
}
