/* ==== 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, 
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 {
  scroll-behavior: smooth;
}
body {
  line-height: 1.6;
  background: linear-gradient(135deg, #F7F7F7 0%, #EBEEF6 100%);
  color: #183052;
  font-family: 'Roboto', Helvetica, Arial, sans-serif;
  min-height: 100vh;
}

*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==== FONT FACE for Montserrat & Roboto ==== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,500&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');


/* ==== UTILITY CLASSES ==== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0; /* gap will be applied to content areas inside container */
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 32px 0 rgba(33, 69, 128, 0.05), 0 1.5px 8px 0 rgba(33, 69, 128, 0.1);
  overflow: hidden;
  transition: box-shadow 0.25s;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card:hover {
  box-shadow: 0 8px 40px 0 rgba(33,69,128,0.14), 0 4px 24px 0 rgba(33,69,128,0.16);
}

.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;
  background: #FFF;
  border-radius: 16px;
  box-shadow: 0 2px 16px 0 rgba(33,69,128,0.10);
  margin-bottom: 20px;
  transition: box-shadow 0.20s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 32px 0 #21458022;
}
.testimonial-card p {
  color: #183052;
  font-size: 1rem;
}
.testimonial-card span {
  color: #647391;
  font-size: 0.95rem;
  font-style: italic;
}

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

.features-inline {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  margin-top: 16px;
  margin-bottom: 24px;
}

/* ==== BRAND BASE COLORS ==== */
:root {
  --primary: #214580;
  --secondary: #EBD565;
  --accent: #F7F7F7;
  --text-main: #183052;
  --gray-light: #EBEEF6;
  --shadow-card: 0 4px 24px 0 rgba(33,69,128,0.08);
  --shadow-hover: 0 8px 40px 0 rgba(33,69,128,0.20);
  --radius-card: 16px;
  --radius-btn: 28px;
  --banner-bg: #1D3972;
}


/* ==== TYPOGRAPHY ==== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 10px;
}
h1 {
  font-size: 2.5rem;
  margin-top: 6px;
  margin-bottom: 16px;
  letter-spacing: -1px;
  line-height: 1.1;
}
h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}
h4,
h5,
h6 {
  font-size: 1rem;
  margin-bottom: 6px;
}
p, .text-section, .content-wrapper p, .text-section ul, .text-section ol {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1.08rem;
  color: var(--text-main);
  margin-bottom: 12px;
}
.text-section {
  margin-bottom: 10px;
}
strong, b {
  font-weight: 700;
  color: #1D3972;
}

/* ==== NAVIGATION ==== */
header {
  width: 100%;
  padding: 0;
  background: linear-gradient(90deg, #214580 65%, #EBD565 100%);
  position: relative;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 0;
}
.logo {
  height: 48px;
  margin-right: 24px;
  transition: filter 0.22s;
}
.logo:hover {
  filter: brightness(1.05) drop-shadow(0 2px 6px #EBD56555);
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  margin-left: 12px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.main-nav a {
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  padding: 10px 0;
  transition: color 0.18s;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a:focus {
  color: #EBD565;
  border-bottom: 2px solid #EBD565;
}
.cta-btn.primary {
  margin-left: 24px;
  padding: 13px 36px;
  font-size: 1.1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  background: linear-gradient(90deg, #EBD565 0%, #FFF8BC 100%);
  color: #183052;
  border: none;
  border-radius: var(--radius-btn);
  box-shadow: 0 2px 12px 0 #21458020;
  transition: background 0.22s, color 0.19s, box-shadow 0.22s;
  cursor: pointer;
  letter-spacing: 0.04em;
  outline: none;
  position: relative;
  z-index: 1;
}
.cta-btn.primary:hover, .cta-btn.primary:focus {
  background: linear-gradient(90deg, #e7c212 0%, #EBD565 100%);
  color: #002962;
  box-shadow: 0 6px 24px 0 #EBD56544;
}
.cta-btn.secondary {
  margin-top: 12px;
  padding: 11px 30px;
  font-size: 1rem;
  background: #214580;
  color: #FFF;
  border-radius: var(--radius-btn);
  border: none;
  font-weight: 600;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  transition: background 0.22s, color 0.18s, box-shadow 0.22s;
  box-shadow: 0 2px 12px 0 #21458020;
  outline: none;
  cursor: pointer;
}
.cta-btn.secondary:hover, .cta-btn.secondary:focus {
  background: #1a3763;
  color: #EBD565;
  box-shadow: 0 6px 18px 0 #1a376388;
}
header .cta-btn {
  margin-left: auto;
}

/* ==== MOBILE NAVIGATION ==== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  margin-left: 24px;
  cursor: pointer;
  z-index: 201;
  transition: color 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  color: #EBD565;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #1a2c54cc;
  z-index: 2000;
  transform: translateX(-105%);
  transition: transform 0.33s cubic-bezier(0.83, 0, 0, 1) 0s;
  min-height: 100vh;
  opacity: 1;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 1.8rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  opacity: 0.90;
  transition: color 0.17s, filter 0.17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #EBD565;
  filter: drop-shadow(0 0 8px #EBD565);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 90px auto 0 auto;
  width: 90%;
  max-width: 380px;
  align-items: center;
  justify-content: flex-start;
}
.mobile-nav a {
  color: #FFF;
  font-size: 1.16rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  background: none;
  border: none;
  border-radius: 12px;
  padding: 14px 0;
  width: 100%;
  text-align: center;
  transition: color 0.17s, background 0.18s;
  outline: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #EBD565;
  color: #183052;
}

/* ==== HERO & PAGE LAYOUT SECTIONS ==== */
section {
  margin-bottom: 60px;
  padding: 40px 0px;
  width: 100%;
  background: transparent;
}
section:first-of-type {
  background: linear-gradient(120deg, #EBD565 0% 59%, #214580 90% 100%);
  color: #183052;
  border-bottom-right-radius: 54px 54px;
  border-bottom-left-radius: 54px 54px;
  box-shadow: 0 2px 36px 0 #21458013;
}
section:first-of-type .container .content-wrapper h1,
section:first-of-type .container .content-wrapper h2, section:first-of-type .container .content-wrapper h3 {
  color: #1D3972;
}
section .container {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ==== FEATURES GRID ==== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 8px;
  width: 100%;
}
.feature-grid > div {
  background: #FFF;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 24px 20px;
  flex: 1 1 220px;
  min-width: 185px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow 0.19s, transform 0.18s;
  margin-bottom: 20px;
}
.feature-grid > div:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-8px) scale(1.025);
}
.feature-grid img {
  height: 48px;
  width: 48px;
  border-radius: 12px;
  background: #EBD56522;
  padding: 6px;
}
.feature-grid h3 {
  color: #214580;
  font-size: 1.05rem;
  margin-bottom: 4px;
  font-weight: 700;
}
.feature-grid p {
  color: #495e83;
  font-size: 0.98rem;
}

/* ==== SERVICES LIST ==== */
.services-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
  width: 100%;
}
.services-list li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 22px 18px 22px 18px;
  min-width: 190px;
  flex: 1 1 180px;
  gap: 2px;
  transition: box-shadow 0.18s, transform 0.16s;
  margin-bottom: 20px;
  position: relative;
}
.services-list li:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px) scale(1.018);
}
.services-list img {
  width: 36px;
  height: 36px;
  margin-bottom: 8px;
}
.services-list b, .services-list strong {
  font-size: 1.09rem;
  color: #214580;
}
.services-list span {
  background: #EBD565;
  color: #183052;
  padding: 3px 11px;
  border-radius: 8px;
  font-size: 1rem;
  margin: 4px 0 2px 0;
  font-weight: 700;
}
.services-list li p {
  font-size: 0.99rem;
  color: #4e5e6d;
}

/* ==== TEXT SECTIONS ==== */
.text-section {
  width: 100%;
  background: none;
  padding: 0;
  margin-bottom: 12px;
}
.text-section ul, .text-section ol {
  padding-left: 28px;
}
.text-section li {
  margin-bottom: 6px;
}
.text-section h3 {
  color: #1D3972;
  font-size: 1.13rem;
  margin-bottom: 5px;
}

/* ==== FOOTER ==== */
footer {
  background: #214580;
  color: #fff;
  padding: 32px 0 20px 0;
  margin-top: 28px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 12px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.footer-nav a {
  color: #e6eaf3;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.19s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #EBD565;
}
.footer-contact {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 18px;
  color: #fff;
  font-size: 1.02rem;
}
.footer-contact p {
  display: flex;
  align-items: center;
  font-size: 1.02rem;
  gap: 10px;
  color: #fafafc;
}
.footer-contact img {
  height: 20px;
  width: 20px;
  opacity: 0.92;
}

footer p {
  font-size: 0.98rem;
  color: #e7eaf1;
  margin-top: 18px;
}

/* ==== COOKIE BANNER ==== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: linear-gradient(90deg, #1D3972 70%, #EBD565 100%);
  color: #fff;
  padding: 28px 16px 28px 21px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  font-size: 1.05rem;
  z-index: 3000;
  box-shadow: 0 -2px 20px #23418460;
  transition: transform 0.38s cubic-bezier(0.62, 0, 0.4, 1), opacity 0.18s;
}
.cookie-banner.hide {
  transform: translateY(160%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner p {
  color: #fff;
  margin: 0;
  flex: 1 1 340px;
}
.cookie-banner .cookie-btn {
  margin-right: 8px;
  margin-left: 0;
  background: #EBD565;
  color: #1D3972;
  font-weight: 700;
  border: none;
  border-radius: 18px;
  padding: 9px 22px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.18s,color 0.15s, box-shadow 0.18s;
  box-shadow: 0 1px 6px #EBD56555;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #f9ea94;
  color: #214580;
  box-shadow: 0 3px 10px #EBD56577;
}
.cookie-banner .cookie-settings-btn {
  background: #fff;
  color: #1D3972;
  border: 1.5px solid #EBD565;
  padding: 9px 18px;
  font-weight: 600;
  border-radius: 18px;
  transition: background 0.18s, color 0.15s, border-color 0.16s, box-shadow 0.16s;
  margin-left: 0;
}
.cookie-banner .cookie-settings-btn:hover, .cookie-banner .cookie-settings-btn:focus {
  background: #f9ea94;
  color: #214580;
  border-color: #FFD700;
  box-shadow: 0 3px 12px #EBD56577;
}

/* ==== COOKIE MODAL ==== */
.cookie-modal-overlay {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: #1d3972cc;
  z-index: 4000;
  opacity: 1;
  transition: opacity 0.19s;
  pointer-events: auto;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 0 40px #1D3972cc;
  padding: 36px 20px 24px 20px;
  max-width: 500px;
  width: 92vw;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: #1D3972;
}
.cookie-modal h3 {
  margin-top: 0px;
  font-size: 1.25rem;
  color: #214580;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 8px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
}
.cookie-category input[type="checkbox"] {
  width: 18px;
  height: 18px;
}
.cookie-category.essential input[type="checkbox"] {
  accent-color: #EBD565;
}
.cookie-category .label {
  font-weight: bold;
}
.cookie-modal .modal-buttons {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
  justify-content: flex-end;
}
.cookie-modal .modal-buttons .cookie-btn {
  padding: 8px 24px;
  font-size: 1rem;
}

/* ==== ANIMATIONS ==== */
.cta-btn, .cookie-btn, .services-list li, .feature-grid > div, .card, .testimonial-card, .main-nav a, .mobile-nav a {
  transition: box-shadow 0.16s, color 0.14s, filter 0.18s, background 0.19s, border 0.13s, transform 0.16s;
}

/* ==== RESPONSIVE DESIGN ==== */
@media (max-width: 1050px) {
  .feature-grid, .services-list {
    gap: 18px;
  }
  .feature-grid > div, .services-list li {
    min-width: 150px;
    max-width: 300px;
    flex: 1 1 100%;
  }
}
@media (max-width: 920px) {
  .main-nav {
    gap: 15px;
  }
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 800px) {
  .feature-grid, .services-list {
    gap: 8px;
  }
  .feature-grid > div, .services-list li {
    min-width: 120px;
    padding: 17px 10px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .container {
    padding: 0 6vw;
    max-width: none;
  }
  section {
    margin-bottom: 44px;
    padding: 24px 0px 24px 0px;
  }
  .feature-grid, .services-list {
    flex-direction: column;
    gap: 14px;
  }
  .feature-grid > div, .services-list li {
    max-width: none;
    flex: 1 1 100%;
  }
  .footer-contact {
    flex-direction: column;
    gap: 9px;
    align-items: flex-start;
  }
  .features-inline {
    gap: 10px;
  }
  .content-wrapper {
    gap: 19px;
  }
  .testimonial-card {
    padding: 14px 10px;
    flex-direction: column;
    align-items: flex-start;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.33rem;
  }
  .cta-btn.primary, .cta-btn.secondary {
    padding: 10px 20px;
    font-size: 1rem;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 9px 20px 9px;
    font-size: 0.96rem;
  }
}
@media (max-width: 540px) {
  .logo {
    height: 36px;
    margin-right: 10px;
  }
  h1 {
    font-size: 1.33rem;
  }
  h2 {
    font-size: 1.13rem;
  }
  .feature-grid > div, .services-list li {
    padding: 12px 4vw;
  }
  .footer-contact {
    font-size: 0.94rem;
  }
  .footer-nav {
    flex-direction: column;
    gap: 9px;
  }
}

/* ==== MISC ==== */
::-webkit-scrollbar {
  width: 10px;
  background: #F7F7F7;
}
::-webkit-scrollbar-thumb {
  background: #EBD565;
  border-radius: 10px;
}

input, button, select, textarea {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
}

/* ==== FORMATTING LISTS FOR PRIVACY PAGE, REGULAMIN ==== */
.text-section ul, .text-section ol, section ul, section ol {
  padding-left: 24px;
  list-style-type: disc;
}
.text-section ol, section ol {
  list-style-type: decimal;
}
section ul li, section ol li {
  margin-bottom: 7px;
  color: #234184;
}
.text-section a,
section a {
  color: #214580;
  text-decoration: underline;
}
.text-section a:hover, section a:hover {
  color: #e7c212;
  text-decoration: underline wavy;
}

/* ==== Z-INDEX LAYERING ==== */
.mobile-menu,
.mobile-menu.open { z-index: 2000; }
.cookie-banner { z-index: 3000; }
.cookie-modal-overlay { z-index: 4000; }
header { z-index: 100; }

/* ==== MICRO-INTERACTIONS ==== */
.cta-btn.primary::after {
  content: '';
  display: block;
  position: absolute;
  width: 0%;
  height: 100%;
  top: 0; left: 0;
  background: #EBD56544;
  border-radius: var(--radius-btn);
  z-index: -1;
  transition: width 0.23s cubic-bezier(0.17,0.67,0.51,1);
}
.cta-btn.primary:hover::after {
  width: 100%;
}

/* ==== END ==== */