/* ===========================
   Gładkie Patenty - TECH FUTURISTIC CSS
   Comprehensive reset + styles for all pages, fully FLEXBOX
   Brand: #23436E (primary), #4FC973 (secondary), #F2F7F4 (accent/soft BG)
   Fonts: 'Montserrat', 'Inter'
   =========================== */

/* === CSS Reset & Base === */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  background-color: #182642;
  color: #F2F7F4;
  font-family: 'Inter', Arial, sans-serif;
  line-height: 1.7;
  letter-spacing: 0.01em;
  background-image: linear-gradient(135deg, #182642 60%, #1b2e4d 100%);
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  text-decoration: none;
  color: #4FC973;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F2F7F4;
}

/* === Container & Section Spacing === */
.container {
  width: 100%;
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
main {
  flex: 1 0 auto;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: 20px;
  position: relative;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* === Typography === */
h1, .hero h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  color: #4FC973;
  text-shadow: 0 0 16px #39ffb0, 0 2px 16px #2a7d50;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}
h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 16px;
  color: #F2F7F4;
  text-shadow: 0 0 12px #28304d;
}
h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #4FC973;
}

p, li, span, strong, em {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 1rem;
}
.text-section > p, .content-wrapper > p, .text-section em, .text-section strong {
  color: #F2F7F4;
}/* Ensure clear foreground */

ul {
  margin-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
li {
  line-height: 1.7;
  margin-bottom: 0;
}
strong {
  color: #79ffd8;
  font-weight: 600;
}
em {
  color: #80b0ff;
}

/* === Header and Navigation === */
header {
  width: 100%;
  background-color: rgba(24,38,66, 0.94);
  box-shadow: 0 2px 22px 0 rgba(36,81,163,0.19);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 32px;
  padding-top: 8px;
  padding-bottom: 8px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #F2F7F4;
  font-weight: 500;
  position: relative;
  padding: 6px 2px;
  font-size: 1rem;
  transition: color 0.2s;
}
header nav a:hover, header nav a:focus {
  color: #4FC973;
  text-shadow: 0 0 8px #4FC973;
}
header .btn-primary {
  margin-left: 16px;
}

/* === Buttons === */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 12px 30px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 16px 0 rgba(39,249,137,0.09);
  text-align: center;
  letter-spacing: 0.02em;
  margin-top: 16px;
  margin-bottom: 8px;
  transition: background 0.18s, color 0.18s, box-shadow 0.19s, transform 0.16s;
}
.btn-primary {
  background-color: #4FC973;
  color: #182642;
  box-shadow: 0 0 16px #39ffb0, 0 2px 14px #4fc97333;
  border: 1.5px solid #3b8462;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: #38b067;
  color: #F2F7F4;
  box-shadow: 0 0 26px #39ffb0, 0 2px 22px #42c06a88;
  transform: translateY(-2px) scale(1.025);
}
.btn-secondary {
  background-color: #23436E;
  color: #4FC973;
  border: 1.5px solid #4FC973;
  box-shadow: 0 0 12px #3985c7, 0 2px 8px #23436E44;
}
.btn-secondary:hover, .btn-secondary:focus {
  background-color: #162b42;
  color: #fff;
  border-color: #74eeb2;
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 0 20px #3985c7, 0 2px 16px #23436E55;
}

/* === Main Hero Section === */
.hero {
  background-color: #20283b;
  border-radius: 32px;
  margin-top: 22px;
  margin-bottom: 48px;
  box-shadow: 0 8px 40px 0 #17233cdd;
  position: relative;
  overflow: hidden;
}
.hero .container {
  padding-top: 34px;
  padding-bottom: 42px;
  display: flex;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 18px;
}
.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 10px;
}
.hero p {
  font-size: 1.2rem;
  color: #F2F7F4;
  opacity: 0.90;
}

/* === Card and Section Patterns === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}
.card {
  background-color: #25355a;
  border-radius: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 32px 0 #12223b77;
  padding: 30px 24px 24px 24px;
  color: #F2F7F4;
  transition: box-shadow 0.22s, transform 0.16s;
  border: 1.5px solid #274c73;
  position: relative;
}
.card:hover, .card:focus-within {
  box-shadow: 0 2px 40px 0 #39ffb0, 0 4px 32px 0 #12223baa;
  transform: translateY(-2px) scale(1.02);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 22px 16px;
  background: #223153;
  border-left: 3px solid #4FC973;
  border-radius: 14px;
  margin-bottom: 20px;
  min-width: 210px;
  box-shadow: 0 2px 10px #15356322;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 24px;
  border-radius: 18px;
  border: 1.3px solid #252e42;
  background-color: #F2F7F4;
  color: #23436E;
  box-shadow: 0 0 16px #4FC97322;
  flex-wrap: wrap;
}
.testimonial-card p {
  font-size: 1.07rem;
  font-style: italic;
  margin-right: 12px;
  color: #23436E;
}
.testimonial-card span {
  font-size: 0.96rem;
  font-style: normal;
  color: #2a618c;
}

.contact-details {
  background: #223153;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 2px 18px #0e2d4933;
  font-size: 1.04rem;
  margin-bottom: 16px;
  color: #F2F7F4;
}

/* ===========================
     Footer Styles
   =========================== */
footer {
  background: #161c29;
  padding: 32px 0 12px 0;
  color: #F2F7F4;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
footer img {
  max-width: 54px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
footer nav a {
  color: #4FC973;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  transition: color 0.17s;
}
footer nav a:hover, footer nav a:focus {
  color: #F2F7F4;
  text-shadow: 0 0 6px #4FC97399;
}
footer p {
  font-size: 0.95rem;
  opacity: 0.7;
  margin-top: 8px;
  color: #88a1c3;
}

/* ===========================
     Mobile Menu Styles
   =========================== */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #25355a;
  border: none;
  color: #4FC973;
  font-size: 2rem;
  border-radius: 8px;
  width: 48px;
  height: 48px;
  margin-left: 20px;
  cursor: pointer;
  z-index: 112;
  box-shadow: 0 2px 8px #19a96722;
  transition: background 0.16s, color 0.14s, transform 0.16s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #23436E;
  color: #fff;
  transform: scale(1.07);
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(24,38,66,0.99);
  z-index: 1110;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  transition: transform 0.33s cubic-bezier(.82,0,.13,1), opacity 0.33s;
  transform: translateX(-100vw);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 24px 24px 12px 0;
  background: #4FC973;
  color: #182642;
  border: none;
  font-size: 2.2rem;
  width: 48px; height: 48px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 12px #39ffb033;
  transition: background 0.14s, color 0.14s, transform 0.18s;
  z-index: 1112;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #38b067;
  color: #fff;
  transform: scale(1.09);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  margin: 0 0 0 34px;
}
.mobile-nav a {
  color: #F2F7F4;
  font-size: 1.3rem;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 4px;
  padding: 10px 12px;
  border-radius: 6px;
  transition: background 0.16s, color 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #4FC97333;
  color: #4FC973;
}

/* Hide desktop nav + show burger on mobile */
@media (max-width: 991px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
}
@media (min-width: 992px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
  header nav {
    display: flex;
  }
}

/* ===========================
     Cookie Consent Banner
   =========================== */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #223153;
  color: #F2F7F4;
  z-index: 9999;
  padding: 24px 18px 18px 18px;
  border-top: 3px solid #4FC973;
  box-shadow: 0 -4px 32px #11242d77;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  font-size: 1rem;
  animation: fadeinbanner 0.5s;
}
@keyframes fadeinbanner {
  from { opacity: 0; transform: translateY(70px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-consent-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.cookie-btn {
  border: none;
  border-radius: 19px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 9px 22px;
  cursor: pointer;
  margin: 0 2px;
  transition: background 0.16s, color 0.14s, box-shadow 0.13s;
}
.cookie-btn.accept {
  background: #4FC973;
  color: #182642;
  box-shadow: 0 0 6px #4FC97350;
}
.cookie-btn.accept:hover,
.cookie-btn.accept:focus {
  background: #2baa53;
  color: #fff;
}
.cookie-btn.reject {
  background: #23436E;
  color: #FFFFFF;
  border: 1px solid #4FC973;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #162b42;
  color: #4FC973;
}
.cookie-btn.settings {
  background: transparent;
  color: #4FC973;
  border: 1px solid #4FC973;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #4FC97333;
  color: #fff;
}

/* Cookie modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  bottom: 48px;
  transform: translateX(-50%) scale(1);
  background: #162b42;
  color: #F2F7F4;
  border: 2.7px solid #4FC973;
  border-radius: 16px;
  padding: 32px 18px;
  max-width: 350px;
  z-index: 10042;
  box-shadow: 0 8px 44px #23436E99;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: cookiemodalpopin 0.34s;
}
@keyframes cookiemodalpopin {
  from { opacity: 0; transform: translateX(-50%) scale(0.65); }
  to { opacity: 1; transform: translateX(-50%) scale(1); }
}
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 12px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  font-size: 1rem;
}
.cookie-category-toggle {
  width: 38px; height: 20px;
  border-radius: 12px;
  background: #2949bc;
  position: relative;
  display: inline-block;
  outline: none;
  vertical-align: middle;
  cursor: pointer;
  transition: background 0.14s;
}
.cookie-category-toggle[data-checked="true"] {
  background: #4FC973;
}
.cookie-category-toggle > span {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.15s, background 0.15s;
  box-shadow: 0 0 3px #37bc8e66;
}
.cookie-category-toggle[data-checked="true"] > span {
  left: 20px;
  background: #fff;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 15px;
  justify-content: flex-end;
}

.cookie-modal .cookie-btn {
  padding: 7px 14px;
  font-size: 0.96rem;
}

.cookie-modal .cookie-btn.accept {
  background: #4FC973;
  color: #23436E;
}

.cookie-modal .cookie-btn.reject {
  background: #2d415f;
  color: #fff;
}

.cookie-modal .cookie-btn.settings {
  background: transparent;
  color: #4FC973;
}

.cookie-modal h3 {
  color: #4FC973;
  font-size: 1.13rem;
  font-weight: 700;
  margin-bottom: 7px;
}

/* ===========================
     Responsive Design
   =========================== */
@media (max-width: 1200px) {
  .container {
    max-width: 98vw;
    padding-left: 12px;
    padding-right: 12px;
  }
}
@media (max-width: 900px) {
  .section, section {
    padding: 32px 8px;
  }
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .feature-item {
    min-width: 155px;
    padding: 12px 10px;
  }
}
@media (max-width: 768px) {
  .hero {
    border-radius: 14px;
    margin-top: 12px;
    margin-bottom: 28px;
  }
  .hero .container {
    padding-top: 18px;
    padding-bottom: 24px;
  }
  h1, .hero h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.13rem;
  }
  .section, section {
    margin-bottom: 32px;
    padding: 20px 2px;
    border-radius: 10px;
  }
  .content-wrapper {
    gap: 14px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 13px;
    gap: 8px;
    margin-bottom: 18px;
  }
  footer .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .feature-item {
    min-width: 100px;
    padding: 8px 6px;
  }
}

@media (max-width: 500px) {
  body, p, li, span, strong, em {
    font-size: 0.94rem;
  }
  h1, .hero h1 { font-size: 1.1rem; }
  h2 { font-size: 1rem; }
  .btn-primary, .btn-secondary, .cookie-btn {
    padding: 9px 13px;
    font-size: 0.92rem;
  }
  .testimonial-card, .feature-item {
    padding: 8px 5px;
    font-size: 0.95rem;
  }
}

/* ===========================
     Utility Spacing / Flexbox Patterns
   =========================== */
/* Provided mandatory CSS patterns */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/*
===========================
   Micro-interactions & Neon accents (futuristic feel)
===========================
*/
.btn-primary, .btn-secondary, .mobile-menu-toggle, .mobile-menu-close, .cookie-btn {
  box-shadow: 0 0 9px #4FC97331, 0 2px 8px #23436E33;
}
.btn-primary:active, .btn-secondary:active, .cookie-btn:active {
  transform: scale(0.98);
  box-shadow: 0 0 3px #34b58455;
}
.card, .testimonial-card, .feature-item {
  transition: box-shadow 0.22s, transform 0.16s;
}
.card:hover, .feature-item:hover, .testimonial-card:hover {
  box-shadow: 0 0 26px #39ffb0, 0 2px 18px #23436E55;
  transform: translateY(-1px) scale(1.01);
}
.card:focus-within {
  outline: 2px solid #4FC973;
}

/* Neon accent underlines for headings */
h2 {
  position: relative;
  padding-bottom: 6px;
}
h2::after {
  content: "";
  display: block;
  position: absolute;
  left: 0; bottom: 0;
  width: 46px;
  height: 3px;
  border-radius: 2px;
  background: #4FC973;
  box-shadow: 0 0 12px #39ffb077;
}

/* Accessible focus styles */
a:focus, .btn-primary:focus, .btn-secondary:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus {
  outline: 2px solid #4FC973; outline-offset: 2px;
}

/* ===========================
    Hide scrollbars on mobile menu and modal
=========================== */
.mobile-menu, .cookie-modal {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.mobile-menu::-webkit-scrollbar, .cookie-modal::-webkit-scrollbar { display: none; }

/* ===========================
    Z-index utility for overlays
=========================== */
.mobile-menu,
.mobile-menu.open { z-index: 1110; }
.cookie-modal { z-index: 10042; }
.cookie-consent-banner { z-index: 9999; }

/* ===========================
   End styles
=========================== */