/* =========================  CSS RESET & NORMALIZE  ========================= */
html {
  box-sizing: border-box;
  font-size: 16px;
  height: 100%;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  background: linear-gradient(135deg, #F9F9F9 60%, #F0F4FA 100%);
  color: #22344c;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}
img, svg {
  max-width: 100%;
  height: auto;
  display: inline-block;
}
a {
  color: #315D87;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #FAC24C;
}
ul, ol {
  padding-left: 1.5em;
  margin-bottom: 16px;
}
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #25385D;
  letter-spacing: -0.5px;
  font-weight: 700;
  margin-bottom: 16px;
}
h1 {font-size: 2.5rem; margin-bottom: 24px;}
h2 {font-size: 2rem; margin-bottom: 18px;}
h3 {font-size: 1.5rem; margin-bottom: 12px;}
h4 {font-size: 1.2rem; margin-bottom: 10px;}
p, li, span, strong {font-size: 1rem;}
strong {font-weight: bold;}
button, .button-primary, .button-secondary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  cursor: pointer;
}

/* ===========================  VARIABLES (Fallbacks used inline) =========================== */
:root {
  --color-primary: #315D87;
  --color-secondary: #F9F9F9;
  --color-accent: #FAC24C;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --shadow-main: 0 2px 10px 0 rgba(37, 56, 93, 0.09);
  --shadow-card: 0 6px 24px 0 rgba(37, 56, 93, 0.08);
  --radius: 16px;
  --gradient-modern: linear-gradient(102deg, #315D87 0%, #56A7E7 80%, #FAC24C 100%);
}

/* ===========================  GLOBAL STRUCTURE =========================== */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
main {
  margin-top: 40px;
  margin-bottom: 40px;
}

/* ===========================  HEADER & NAVIGATION  =========================== */
header {
  background: linear-gradient(98deg, #315D87 70%, #56A7E7 100%);
  color: #fff;
  box-shadow: var(--shadow-main);
  padding: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
header a img {
  height: 46px;
}

/* ===== Main Desktop Navigation ===== */
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 0;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #FAC24C;
  background: rgba(255,255,255,0.08);
}
.button-primary {
  background: linear-gradient(101deg, #FAC24C 60%, #FFD86C 100%);
  color: #315D87;
  box-shadow: 0 3px 8px rgba(250, 194, 76, 0.10);
  border: none;
  padding: 10px 28px;
  font-size: 1.06rem;
  border-radius: 24px;
  transition: background 0.16s, box-shadow 0.16s, color 0.14s;
  margin-left: 18px;
  display: inline-block;
}
.button-primary:hover, .button-primary:focus {
  background: linear-gradient(99deg, #FFD86C 70%, #FAC24C 100%);
  color: #25385D;
  box-shadow: 0 5px 24px rgba(250, 194, 76, 0.18);
}
.button-secondary {
  background: #fff;
  color: #315D87;
  border: 2px solid #315D87;
  padding: 9px 22px;
  border-radius: 24px;
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 500;
  margin-top: 8px;
  transition: color 0.16s, background 0.16s;
}
.button-secondary:hover, .button-secondary:focus {
  background: #315D87;
  color: #fff;
}

/* ===== Mobile Menu Toggle ===== */
.mobile-menu-toggle {
  display: none;
  background: none;
  font-size: 2.1rem;
  color: #fff;
  border: none;
  padding: 4px 12px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: rgba(41, 89, 155, 0.20);
  color: #FAC24C;
}

@media (max-width: 1024px) {
  .main-nav { gap: 10px; }
  .button-primary { margin-left: 8px; padding: 10px 18px; font-size: 1rem;}
}
@media (max-width: 900px) {
  .main-nav { gap: 6px; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ===========================  MOBILE BURGER MENU OVERLAY  =========================== */
.mobile-menu {
  position: fixed;
  z-index: 9999;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(120deg, #F9F9F9 60%, #315D87 140%);
  box-shadow: 0 18px 48px rgba(41,89,155,0.18);
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(0.54,0.01,0.5,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px 24px 24px 24px;
  width: 100vw;
  height: 100vh;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  font-size: 2.3rem;
  color: #315D87;
  border: none;
  margin-bottom: 24px;
  cursor: pointer;
  border-radius: 8px;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: #FAC24C;
  background: rgba(49,93,135,0.10);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  align-items: flex-start;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #25385D;
  font-size: 1.18rem;
  padding: 12px 0;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.13s, color 0.13s;
  width: 100%;
}
.mobile-nav a:active, .mobile-nav a:hover, .mobile-nav a:focus {
  color: #315D87;
  background: #FAC24C;
  outline: none;
}

@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
  .mobile-menu.open { display: none !important; }
}

/* ==========================  MAIN HERO SECTION  ========================== */
.hero {
  background: linear-gradient(120deg, #F9F9F9 70%, #56A7E7 100%);
  padding: 48px 0 56px 0;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  box-shadow: 0 4px 24px rgba(37,56,93,0.05);
  margin-bottom: 60px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 20px;
}
.hero h1, .hero h2 {
  color: #315D87;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.18;
}
.hero p {
  color: #2d445f;
  margin-bottom: 18px;
}
.hero .button-primary {
  margin-top: 8px;
}

@media (max-width: 600px) {
  .hero { padding: 28px 0 30px 0; border-radius: 0; }
  .hero h1 { font-size: 2rem; }
}

/* ==========================  FEATURE & SECTION LAYOUTS ========================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-main);
}
.features {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 0;
}
.features ul, .features .expert-tips ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 0;
  list-style-type: none;
  align-items: flex-start;
}
.features ul li, .features .expert-tips li {
  display: flex;
  align-items: center;
  background: #F9F9F9;
  color: #315D87;
  gap: 10px;
  border-radius: 14px;
  padding: 14px 22px 14px 12px;
  font-weight: 500;
  min-width: 220px;
  box-shadow: var(--shadow-main);
  font-size: 1.06rem;
  margin-bottom: 0;
}

/* .card-container pattern */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  background: #fff;
  padding: 24px 26px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.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;
}

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

@media (max-width: 900px) {
  .features ul { gap: 8px; }
}
@media (max-width: 768px) {
  .section { padding: 28px 6px; margin-bottom: 36px; }
  .card-container { gap: 12px; }
  .card { padding: 14px 10px; }
  .content-grid {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

/* =========================  ABOUT & VALUES  ========================= */
.values-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 14px;
}
.values-list > div {
  background: #F9F9F9;
  border-radius: 14px;
  box-shadow: var(--shadow-main);
  padding: 18px 16px;
  min-width: 170px;
  flex: 1 1 220px;
}
.innovation {
  margin-top: 12px;
  padding: 18px;
  background: linear-gradient(96deg, #56A7E7 10%, #FAC24C 200%);
  border-radius: var(--radius);
  color: #25385D;
  font-weight: 500;
  box-shadow: var(--shadow-card);
}
@media (max-width: 700px) {
  .values-list { flex-direction: column; gap: 12px; }
}

/* =========================  TEAM  ========================= */
.team ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

/* =========================  SERVICES / PRODUCTS ========================= */
.services ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

/* =========================  CTA & INFO  ========================= */
.cta, .info {
  background: linear-gradient(92deg, #F9F9F9 60%, #56A7E7 120%, #FAC24C 200%);
  box-shadow: var(--shadow-main);
  border-radius: var(--radius);
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.cta .contact-info {
  margin-top: 9px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #315D87;
  font-weight: 500;
  font-size: 1.08rem;
}
.cta img {
  vertical-align: middle;
  margin-right: 7px;
}
@media (max-width: 700px) {
  .cta, .info { padding: 20px 7px; margin-bottom: 26px; }
}

/* =========================  TESTIMONIALS ========================= */
.testimonials, .testimonials-preview {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-main);
  margin-bottom: 60px;
  padding: 40px 20px;
}
.testimonials h1, .testimonials h2, .testimonials-preview h2 {
  color: #315D87;
}
.testimonial-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #F9F9F9;
  color: #22344c;
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  flex: 1 1 310px;
  min-width: 250px;
  max-width: 370px;
  margin-bottom: 20px;
}
.testimonial-card p {
  color: #25385D;
  font-size: 1.08rem;
  margin-bottom: 7px;
}
.testimonial-card strong {
  color: #315D87;
  font-weight: 700;
  font-size: 1rem;
}
.testimonial-card [aria-label="Ocena"] img {
  width: 22px;
  height: 22px;
  display: inline-block;
  filter: drop-shadow(0 0 3px rgba(49,93,135,0.07));
}
.star-ratings-grid {
  margin-top: 18px;
  font-weight: 500;
  color: #25385d;
  font-family: var(--font-display);
  background: #F9F9F9;
  padding: 10px 20px;
  border-radius: 14px;
  box-shadow: var(--shadow-main);
  max-width: 340px;
}
@media (max-width: 900px) {
  .testimonial-list {
    flex-direction: column;
    gap: 14px;
  }
}

/* =========================  MAP, CONTACT, FAQ, STEP TIPS, ETC. ========================= */
.contact-details ul {
  display: flex;
  flex-direction: column;
  gap: 7px;
  list-style: none;
  margin: 12px 0;
}
.map-snippet {
  margin-top: 12px;
  background: #F9F9F9;
  border-radius: var(--radius);
  padding: 13px 18px;
  font-size: 1rem;
}
.step-tips ol {
  padding-left: 1.3em;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.faq ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.faq ul span {
  display: block;
  color: #315D87;
  font-weight: 500;
  margin-left: 10px;
}

/* =============================  FOOTER ============================= */
footer {
  background: linear-gradient(93deg, #315D87 60%, #56A7E7 100%);
  color: #fff;
  box-shadow: 0 -2px 30px rgba(37,56,93,0.12);
  padding-top: 38px;
  padding-bottom: 15px;
  font-size: 0.98rem;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-grid > div, .footer-grid > nav {
  flex: 1 1 190px;
  min-width: 140px;
  margin-bottom: 20px;
}
.footer-grid a img {
  height: 38px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
footer nav a {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  opacity: 0.98;
  letter-spacing: -0.2px;
  margin-right: 0;
  line-height: 1.5;
  transition: color 0.18s, opacity 0.18s;
}
footer nav a:hover,footer nav a:focus {
  color: #FAC24C;
  opacity: 1;
}
.footer-contact > div {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 1rem;
}
.footer-contact img {
  width: 18px;
  height: 18px;
}
.footer-newsletter p {
  margin-bottom: 2px;
  font-weight: 700;
  color: #FAC24C;
}
.footer-newsletter span {
  font-size: 0.95rem;
  opacity: 0.67;
}
@media (max-width: 900px) {
  .footer-grid {
    flex-direction: column;
    gap: 16px;
  }
  .footer-grid > div, .footer-grid > nav {
    min-width: unset;
    margin-bottom: 9px;
  }
}

/* =============================  LEGAL PAGES ============================= */
.legal {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-main);
  margin-bottom: 60px;
  padding: 38px 20px;
}

/* =============================  THANK YOU PAGE ============================= */
.thank-you {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-main);
  margin-bottom: 60px;
  padding: 40px 20px;
  text-align: center;
}
.thank-you h1 {
  color: #FAC24C;
  font-size: 2.6rem;
  margin-bottom: 16px;
}

/* =============================  COOKIE CONSENT BANNER ============================= */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9000;
  display: flex;
  flex-direction: row;
  align-items: center;
  background: #fffdfa;
  box-shadow: 0 -2px 26px rgba(37,56,93,0.09);
  border-top: 2px solid #FAC24C;
  gap: 24px;
  padding: 20px 32px;
  min-height: 48px;
  font-size: 1.06rem;
  transition: transform 0.36s cubic-bezier(0.62,0.16,0.24,1);
}
.cookie-banner.hide {
  transform: translateY(130%);
  pointer-events: none;
}
.cookie-banner__text {
  flex: 1 1 360px;
  color: #22344c;
  font-family: var(--font-body);
}
.cookie-banner__actions {
  display: flex;
  gap: 16px;
}
.cookie-banner__button {
  background: #FAC24C;
  color: #25385D;
  border: none;
  border-radius: 18px;
  padding: 8px 20px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-left: 0;
  box-shadow: 0 2px 8px rgba(250, 194, 76, 0.09);
  transition: background 0.19s, color 0.18s, box-shadow 0.18s;
}
.cookie-banner__button:focus, .cookie-banner__button:hover {
  background: #FFD86C;
  color: #315D87;
  box-shadow: 0 8px 24px rgba(250, 194, 76, 0.18);
}
.cookie-banner__button.settings {
  background: #f6f6f6;
  color: #22344c;
  border: 1px solid #FAC24C;
}
.cookie-banner__button.settings:hover,
.cookie-banner__button.settings:focus {
  background: #FAC24C;
  color: #25385D;
}
@media (max-width: 900px) {
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px 10px; }
  .cookie-banner__actions { justify-content: flex-end; gap: 10px; }
}
@media (max-width: 540px) {
  .cookie-banner__text { font-size: 0.96rem; }
}

/* ===== COOKIE PREFERENCES MODAL ===== */
.cookie-modal-overlay {
  position: fixed;
  z-index: 99999;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(49,93,135,0.13);
  display: none;
  justify-content: center;
  align-items: flex-end;
  transition: background 0.29s;
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: #fff;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -12px 38px rgba(37,56,93,0.13);
  min-width: 330px;
  min-height: 220px;
  padding: 34px 26px 26px 26px;
  max-width: 98vw;
  width: 430px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: cookieModalSlideIn 0.37s cubic-bezier(0.59,0.15,0.33,1);
}
@keyframes cookieModalSlideIn {
  from { transform: translateY(100%); opacity: 0.7; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  color: #315D87;
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}
.cookie-modal .cookie-toggle {
  width: 42px;
  height: 22px;
  border-radius: 11px;
  border: 1px solid #FAC24C;
  background: #F9F9F9;
  display: flex;
  align-items: center;
  position: relative;
  margin-left: 10px;
  cursor: pointer;
  transition: background 0.17s, border 0.17s;
}
.cookie-modal .cookie-toggle .slider {
  transition: transform 0.17s cubic-bezier(0.66,0.17,0.53,1.05);
  display: block;
  height: 17px;
  width: 17px;
  background: #FAC24C;
  border-radius: 50%;
  position: absolute;
  left: 2px; top: 1.5px;
}
.cookie-modal .cookie-toggle.enabled {
  background: #FAC24C;
  border-color: #FAC24C;
}
.cookie-modal .cookie-toggle.enabled .slider {
  background: #315D87;
  transform: translateX(20px);
}
.cookie-modal .cookie-toggle.disabled {
  background: #eee;
  border-color: #eee;
}
.cookie-modal .cookie-toggle .slider {
  left: 2px;
}
.cookie-modal .cookie-toggle.enabled .slider {
  left: 2px;
  transform: translateX(20px);
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 16px;
  margin-top: 18px;
}
.cookie-modal button {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 22px;
  border-radius: 18px;
  border: none;
  background: #FAC24C;
  color: #25385D;
  transition: background 0.18s;
}
.cookie-modal button.close-btn {
  background: #f6f6f6;
  color: #22344c;
  border: 1px solid #FAC24C;
}
.cookie-modal button.close-btn:hover, .cookie-modal button.close-btn:focus {
  background: #FAC24C;
  color: #25385D;
}
.cookie-modal button:focus, .cookie-modal button:hover {
  background: #FFD86C;
  color: #315D87;
}
@media (max-width: 540px) {
  .cookie-modal {
    width: 100vw; min-width: unset; max-width: 100vw;
    border-radius: 16px 16px 0 0; padding: 22px 7px 12px 7px;
  }
}

/* =============================  MICRO-INTERACTIONS & EFFECTS ============================= */
.button-primary, .button-secondary, .cookie-banner__button, .cookie-modal button {
  transition: background 0.15s, color 0.13s, filter 0.19s, box-shadow 0.17s, border 0.15s;
}
.card:hover, .card:focus, .testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 9px 42px rgba(49,93,135,0.12);
  filter: brightness(1.03);
}
.section, .legal, .thank-you {
  transition: box-shadow 0.22s;
}
.section:hover, .legal:focus-within, .thank-you:focus-within {
  box-shadow: 0 10px 38px rgba(49,93,135,0.06);
}

/* ========================== ACCESSIBILITY / PRINT ========================== */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal-overlay, header, footer { display: none !important; }
  .section, .legal, .thank-you { box-shadow: none !important; background: #fff !important; }
}

/* =============================  UTILITIES  ============================= */
.hidden { display: none !important; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }

/* ===================  END OF CSS (NO GRID/COLUMN PROPERTIES USED)  =================== */