/* 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;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background: #fff;
  color: #1b232a;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}
a {
  color: #164178;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #FFD600;
  outline: none;
}
ul,ol {
  padding-left: 24px;
  margin-bottom: 20px;
}
li+li {
  margin-top: 12px;
}
h1,h2,h3,h4,h5,h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #164178;
  line-height: 1.2;
  letter-spacing: -0.5px;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.3rem; margin-bottom: 10px; }
h4 { font-size: 1.12rem; margin-bottom: 6px; color: #222; font-weight: 600;}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.05rem; }
}

/* LAYOUT CONTAINERS & SPACING */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: transparent;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  width: 100%;
}

/* HERO / MAIN HEADERS */
.hero {
  background: #EAEAEA;
  padding: 0;
  margin-bottom: 60px;
}
.hero .container {
  padding-top: 35px;
  padding-bottom: 35px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 16px;
}
.hero h1 {
  color: #164178;
  margin-bottom: 10px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.hero p {
  font-size: 1.12rem;
  color: #232323;
  margin-bottom: 16px;
}

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 32px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  background: #164178;
  color: #fff !important;
  border-radius: 28px;
  border: none;
  box-shadow: 0 2px 8px 0 rgba(22,65,120,0.08);
  outline: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.22s;
  cursor: pointer;
}
.btn-primary:hover, .btn-primary:focus {
  background: #0e2c4b;
  color: #FFD600 !important;
  box-shadow: 0 4px 16px 0 rgba(22,65,120,0.14);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 32px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  background: #FFD600;
  color: #164178 !important;
  border-radius: 28px;
  border: none;
  box-shadow: 0 2px 8px 0 rgba(22,65,120,0.06);
  outline: none;
  transition: background 0.22s, color 0.22s, box-shadow 0.22s;
  cursor: pointer;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #ffe340;
  color: #0e2c4b !important;
  box-shadow: 0 4px 16px 0 rgba(22,65,120,0.10);
}

/* NAVIGATION */
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  background: #fff;
  padding: 16px 0 10px 0;
  position: relative;
  z-index: 11;
}
.main-nav > a:first-child {
  margin-right: 28px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #164178;
  margin-bottom: 0;
  padding: 7px 8px;
  border-radius: 8px;
  transition: background 0.12s, color 0.17s;
}
.main-nav a.btn-primary {
  margin-left: auto;
  margin-right: 0;
  padding: 8px 26px;
  font-size: 1rem;
}
.main-nav a:hover, .main-nav a:focus {
  background: #EAEAEA;
  color: #164178;
}

/* HAMBURGER MENU (Mobile) */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #164178;
  position: absolute;
  top: 20px;
  right: 22px;
  z-index: 1002;
  cursor: pointer;
  height: 42px;
  width: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.1s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: #EAEAEA;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255,255,255,0.98);
  box-shadow: 0 6px 32px rgba(22,65,120,0.08);
  z-index: 1000;
  transform: translateX(-110vw);
  transition: transform 0.25s cubic-bezier(0.5,0.2,0.1,1);
  display: flex;
  flex-direction: column;
  padding: 0;
  justify-content: flex-start;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #164178;
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 26px;
  z-index: 2002;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  transition: background 0.1s;
}
.mobile-menu-close:active, .mobile-menu-close:focus {
  background: #EAEAEA;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 84px;
  align-items: center;
}
.mobile-nav a {
  font-size: 1.15rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  color: #164178;
  background: none;
  border-radius: 8px;
  padding: 12px 20px;
  margin: 0;
  width: 90vw;
  max-width: 336px;
  text-align: center;
  transition: background 0.13s;
}
.mobile-nav a:active, .mobile-nav a:hover, .mobile-nav a:focus {
  background: #EAEAEA;
  color: #164178;
}
/* Hide main-nav on mobile; show burger */
@media (max-width: 991px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 992px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none;
  }
}

/* FOOTER */
footer {
  background: #F9F9F9;
  padding: 36px 0 12px;
}
.footer-nav {
  display: flex;
  gap: 28px;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.footer-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #164178;
  opacity: 0.85;
  transition: opacity 0.12s, color 0.12s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #FFD600;
  opacity: 1;
}
footer address {
  margin-top: 12px;
  font-size: 0.97rem;
  color: #444;
  line-height: 1.6;
  font-style: normal;
}
footer address a { color: #164178; text-decoration: underline; transition: color 0.13s; }
footer address a:hover,footer address a:focus{ color:#FFD600; }

/* FEATURE GRID (FOR ATUTY & WHY US & USŁUGI) */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
  margin-top: 12px;
  margin-bottom: 4px;
}
.feature-grid > div {
  background: #fff;
  border-radius: 18px;
  border: 1px solid #ededed;
  box-shadow: 0 2px 16px 0 rgba(51,54,74,0.09);
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
  padding: 28px 22px 22px 22px;
  min-width: 220px;
  flex: 1 1 200px;
  max-width: 290px;
  transition: box-shadow 0.15s, transform 0.11s;
  margin-bottom: 20px;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 27px 0 rgba(51,54,74,0.14);
  transform:translateY(-3px) scale(1.01);
}
.feature-grid img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  margin-bottom: 10px;
  filter: grayscale(0.35) contrast(1.15);
}
.feature-grid h3 {
  font-size: 1.13rem;
  margin-bottom: 6px;
  margin-top: 0;
  color: #164178;
}
.feature-grid p {
  font-size: 1rem;
  color: #3e4852;
}

/* TESTIMONIALS */
.testimonial-slider, .testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 16px 0 rgba(40,40,55,0.10);
  border: 1px solid #ededed;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 28px;
  margin-bottom: 20px;
  max-width: 390px;
  min-width: 250px;
  transition: box-shadow 0.17s, transform 0.11s;
  color: #21313f;
}
.testimonial-card p {
  font-size: 1.07rem;
  color: #21313f;
  margin-bottom: 6px;
}
.testimonial-card span {
  color: #777;
  font-size: 0.97rem;
  letter-spacing: 0.02em;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
}
.testimonial-card:hover {
  box-shadow: 0 10px 36px 0 rgba(40,40,55,0.14);
  transform: translateY(-2px) scale(1.01);
}

/* CARD & GRID STYLES */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
}
.card {
  background: #fff;
  border: 1px solid #ededed;
  box-shadow: 0 2px 16px 0 rgba(51,54,74,0.09);
  border-radius: 18px;
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 280px;
  max-width: 340px;
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.16s, transform 0.10s;
}
.card:hover {
  box-shadow: 0 10px 36px 0 rgba(40,40,55,0.11);
  transform: scale(1.02);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  width: 100%;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

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

.summary {
  margin-top: 22px;
  padding: 20px 22px;
  background: #F4F7FB;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(51,54,74,0.05);
  color: #164178;
}
.summary h3 {
  margin-bottom: 6px;
  color: #164178;
}

/* BLOG, GALLERY */
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}
.blog-list article {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #ededed;
  box-shadow: 0 2px 12px 0 rgba(51,54,74,0.07);
  padding: 22px 20px;
  flex: 1 1 250px;
  max-width: 320px;
  margin-bottom: 20px;
  transition: box-shadow 0.17s, transform 0.12s;
}
.blog-list article:hover {
  box-shadow: 0 8px 32px 0 rgba(40,40,55,0.13);
  transform: scale(1.01);
}
.featured-post {
  margin-top: 28px;
  background: #EAEAEA;
  border-radius: 14px;
  padding: 20px 21px;
  color: #1b232a;
  font-size: 1.06rem;
}
.featured-post h3 {
  color: #164178;
  font-size: 1.13rem;
  margin-bottom: 8px;
}

.map-location {
  background: #f0f4f8;
  border-radius: 12px;
  padding: 20px 22px;
  margin: 22px 0 0 0;
  color: #164178;
}
.map-location h3 {
  font-size: 1.07rem;
  margin-bottom: 6px;
}

/* GENERIC LISTS IN GALLERY / OFFER W GALLERY */
.content-wrapper ul {
  list-style-type: disc;
  margin-bottom: 10px;
  color: #444e5a;
  font-size: 1rem;
}
.content-wrapper li img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 10px;
  filter: grayscale(0.25) contrast(1.1);
}
.content-wrapper ul li {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* COOKIES BANNER & MODAL */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  color: #164178;
  box-shadow: 0 -4px 24px rgba(22,65,120,0.09);
  border-top: 1px solid #ededed;
  padding: 28px 18px 20px 18px;
  z-index: 12000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: transform 0.23s;
  transform: translateY(0);
  font-size: 1rem;
}
.cookie-banner.hide {
  transform: translateY(120%);
  pointer-events: none;
  opacity: 0;
}
.cookie-banner-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-banner .btn-primary,
.cookie-banner .btn-secondary {
  font-size: .98rem;
  padding: 9px 22px;
  min-width: 115px;
}
.cookie-banner .btn-secondary {
  background: #EAEAEA;
  color: #164178 !important;
}
.cookie-banner .btn-secondary:hover {
  background: #FFD600;
  color: #164178;
}

/* COOKIE MODAL POPUP */
.cookie-modal-overlay {
  position: fixed;
  z-index: 13000;
  inset: 0;
  background: rgba(40,50,60,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  max-width: 420px;
  width: 96vw;
  padding: 36px 22px 22px 22px;
  box-shadow: 0 10px 60px 0 rgba(22,65,120,0.16);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: cookies-popup-in 0.32s cubic-bezier(0.6,0,0.3,1);
}
@keyframes cookies-popup-in {
  0% {transform: scale(0.90) translateY(120px);opacity:0;}
  100% {transform: scale(1) translateY(0); opacity:1;}
}
.cookie-modal h2 {
  font-size: 1.32rem;
  color: #164178;
  margin-bottom: 18px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0 7px 0;
}
.cookie-category-row label {
  font-size: 1.05rem;
  color: #164178;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
}
.cookie-category-row input[type='checkbox'] {
  accent-color: #FFD600;
  width: 18px;
  height: 18px;
}
.cookie-category-row .cookie-required {
  background: #EAEAEA;
  color: #777;
  padding: 5px 16px;
  border-radius: 16px;
  font-size: 0.89rem;
  border: none;
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #164178;
  font-size: 1.43rem;
  cursor: pointer;
  padding: 3px 9px;
  border-radius: 8px;
  transition: background 0.1s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #EAEAEA;
}

/* FORM ELEMENTS (for Contact etc.) */
input,textarea,select {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #d5d9dd;
  padding: 9px 15px;
  background: #fafbfc;
  margin-bottom: 18px;
  width: 100%;
  color: #22313f;
  transition: border-color 0.14s;
  outline: none;
}
input:focus,textarea:focus,select:focus {
  border-color: #164178;
  background: #fff;
}
label {
  display: block;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  color: #164178;
  margin-bottom: 7px;
  font-size: 1rem;
}

/* GENEROUS SPACING between all major sections */
section + section {
  margin-top: 14px;
}

/* Utility flex classes (to enable anywhere) */
.flex {
  display: flex;
}
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.flex-col {
  display: flex;
  flex-direction: column;
}
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.gap-30 { gap: 30px; }

/* RESPONSIVE RULES */
@media (max-width: 1200px) {
  .container { max-width: 95vw; }
}
@media (max-width: 991px) {
  .feature-grid > div { min-width: 180px; max-width: 100%; }
  .card { max-width: 100%; }
}
@media (max-width: 850px) {
  .feature-grid { gap: 18px; }
}
@media (max-width: 768px) {
  .container { padding: 0 8px; }
  .section { padding: 27px 7px; }
  .feature-grid {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .feature-grid > div { min-width: 0; }
  .card-container, .content-grid, .testimonial-slider, .testimonial-list, .blog-list {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    max-width: 100%;
    min-width: 0;
    padding: 16px 14px;
  }
  .main-nav {
    display: none;
  }
  .text-image-section {
    flex-direction: column;
    gap: 17px;
  }
}
@media (max-width: 480px) {
  .section { padding: 14px 2px; }
  .hero .container { padding: 20px 0 !important; }
}

/* --- MICRO-INTERACTIONS & TRANSITIONS ---*/
.btn-primary, .btn-secondary, .card, .testimonial-card, .feature-grid > div, .blog-list article {
  transition: box-shadow 0.17s, transform 0.13s, background 0.13s, color 0.13s;
}

/* --- HIGHLIGHT ACTIVE NAV-LINK */
.main-nav a.active, .footer-nav a.active, .mobile-nav a.active {
  background:#FFD600;
  color:#164178 !important;
  font-weight:700;
}

/* --- SCROLLBAR (minimalist custom) ---*/
body::-webkit-scrollbar {
  width: 9px;
}
body::-webkit-scrollbar-thumb {
  background: #EAEAEA;
  border-radius: 20px;
}

/* --- MISC ---*/
::selection {
  background: #FFD60099;
  color: #164178;
}

/* Hide outline for mouse, show for keyboard */
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid #FFD600; outline-offset: 2px; }

/********* END: CSS **********/
