/* === CSS RESET & NORMALIZE === */
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;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  font-family: 'Roboto', Arial, sans-serif;
  background: #F8FBFB;
  color: #283045;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img,
svg {
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  font: inherit;
  border: none;
  outline: none;
  background: none;
  color: inherit;
}

:root {
  --color-primary: #1B263B;
  --color-secondary: #00A896;
  --color-accent: #F4F4F6;
  --color-pastel-mint: #d2f7f5;
  --color-pastel-blue: #e4efff;
  --color-pastel-pink: #ffe3ee;
  --color-pastel-yellow: #fff9e8;
  --color-pastel-purple: #eae5fa;
  --color-soft-bg: #f8fbfb;
  --text-dark: #253045;
  --text-light: #f6fafd;
  --box-shadow: 0 4px 24px 0 rgba(30, 45, 75, 0.07);
}

/* === TYPOGRAPHY === */
h1, .h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 20px;
  letter-spacing: 0.03em;
}
@media (max-width: 768px) {
  h1, .h1 { font-size: 2rem; }
}
h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 18px;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: 12px;
}
h4, .h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-primary);
}
p, li, label, input, textarea {
  font-size: 1rem;
  color: var(--color-primary);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.01em;
}
strong { font-weight: 600; color: var(--color-primary); }

/* === UTILITY CLASSES === */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
  margin: 0 auto;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-soft-bg);
  border-radius: 32px;
  box-shadow: var(--box-shadow);
}
@media (max-width: 768px) {
  .section { padding: 28px 6px; }
}

/* === HEADER === */
header {
  width: 100%;
  background: linear-gradient(90deg, var(--color-pastel-mint) 0%, var(--color-soft-bg) 60%);
  box-shadow: 0 2px 16px 0 rgba(30,45,75,0.05);
  position: relative;
  z-index: 10;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 18px 20px;
  flex-wrap: wrap;
  gap: 18px;
}
header nav {
  display: flex;
  gap: 22px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: var(--color-primary);
  padding: 8px 12px;
  border-radius: 18px;
  transition: background .18s, color .18s;
  position: relative;
}
header nav a:hover, header nav a:focus {
  background: var(--color-pastel-blue);
  color: var(--color-secondary);
}
.cta-btn {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  background: var(--color-secondary);
  color: var(--text-light);
  padding: 12px 36px;
  border-radius: 28px;
  box-shadow: 0 2px 10px 0 rgba(0, 168, 150, 0.10);
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  cursor: pointer;
  margin-left: 18px;
}
.cta-btn:hover, .cta-btn:focus {
  background: #11bda9;
  color: #fff;
  box-shadow: 0 4px 18px 0 rgba(0, 168, 150, 0.16);
}
@media (max-width:992px) {
  header .container { flex-direction: column; gap: 12px; }
  .cta-btn { margin-left: 0; }
}

/* === MOBILE MENU === */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 22px;
  right: 18px;
  width: 48px;
  height: 48px;
  background: var(--color-secondary);
  color: #fff;
  border-radius: 50%;
  font-size: 2rem;
  z-index: 1002;
  box-shadow: 0 2px 10px 0 rgba(0,168,150,0.17);
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.mobile-menu-toggle:active { background: #25c3b2; }
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  max-width: 350px;
  height: 100vh;
  background: linear-gradient(120deg, var(--color-pastel-mint) 10%, var(--color-pastel-blue) 70%, var(--color-soft-bg) 100%);
  box-shadow: -8px 0 28px 0 rgba(30,45,75,0.08);
  padding: 32px 28px 28px 28px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.67,.03,.15,1);
  z-index: 1005;
  gap: 28px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--color-primary);
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--color-pastel-pink);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 16px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  color: var(--color-primary);
  padding: 14px 10px;
  border-radius: 14px;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-pastel-mint);
  color: var(--color-secondary);
}

@media (max-width: 992px) {
  header nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

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

/* === MAIN SECTIONS & CARDS === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}
.card {
  margin-bottom: 20px;
  background: var(--color-pastel-yellow);
  border-radius: 18px;
  box-shadow: var(--box-shadow);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.18s, transform 0.16s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 24px 0 rgba(0,168,150,0.14);
  transform: translateY(-4px) scale(1.018);
}
.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;
  margin-bottom: 32px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
@media (max-width:768px) {
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 16px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
}

/* === BENEFIT/FEATURE & LIST STYLES === */
ul, ol {
  margin: 0 0 0 1.1em;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
ul li, ol li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  padding: 6px 0;
}
ul li img {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--color-pastel-mint);
  padding: 4px;
}

/* === TESTIMONIALS === */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: var(--color-pastel-purple);
  color: var(--text-dark);
  padding: 20px;
  border-radius: 24px;
  margin-bottom: 20px;
  box-shadow: var(--box-shadow);
  transition: box-shadow .18s, transform .14s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 36px 0 rgba(30,45,75,.14);
  transform: scale(1.015);
}
.testimonial-card p {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-primary);
  text-align: center;
}
.testimonial-card strong {
  color: var(--color-secondary);
  font-size: 1rem;
}
.testimonial-card span {
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  color: #FFB400;
  margin-top: -10px;
}

/* === SEARCH & CATEGORY TABS (PORADNIK) === */
.search-bar {
  margin-bottom: 16px;
}
.search-bar input[type="text"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-pastel-blue);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 8px 0 rgba(0,168,150,0.08);
  font-size: 1rem;
}
.category-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.category-tabs a {
  padding: 8px 18px;
  border-radius: 15px;
  background: var(--color-pastel-mint);
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  transition: background .15s, color .15s;
}
.category-tabs a:hover, .category-tabs a.active {
  background: var(--color-secondary);
  color: #fff;
}

/* === NEWSLETTER SIGNUP === */
.newsletter-signup {
  margin-top: 18px;
  background: var(--color-pastel-blue);
  padding: 18px 22px;
  border-radius: 16px;
  box-shadow: 0 2px 8px 0 rgba(30,45,75,.07);
  text-align: center;
}
.newsletter-signup p {
  color: var(--color-primary);
  font-size: 1.07rem;
}

/* === FOOTER === */
footer {
  width: 100%;
  background: linear-gradient(120deg, var(--color-pastel-blue) 30%, var(--color-soft-bg) 100%);
  margin-top: 28px;
  border-top-left-radius: 38px;
  border-top-right-radius: 38px;
  box-shadow: 0 -2px 20px rgba(37, 60, 87, 0.04);
}
footer section {
  padding: 28px 0 12px 0;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
footer nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 12px 0;
  justify-content: center;
}
footer nav a {
  color: var(--color-primary);
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  transition: color 0.19s;
}
footer nav a:hover {
  color: var(--color-secondary);
}
footer .content-wrapper > div {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: center;
}
footer .content-wrapper img[alt="MasclinVol"] {
  height: 48px;
  margin-bottom: 8px;
  margin-top: 8px;
}
footer .content-wrapper a {
  color: var(--color-secondary);
  transition: color .15s;
}
footer .content-wrapper a:hover {
  color: var(--color-primary);
}
@media (max-width: 768px) {
  footer .content-wrapper { gap: 18px; }
  footer section { padding: 20px 0 8px 0; }
  footer .content-wrapper img[alt="MasclinVol"] { height: 38px; }
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(250, 255, 252, 0.96);
  box-shadow: 0 -8px 34px rgba(0,168,150,0.10);
  z-index: 1200;
  padding: 26px 16px 22px 16px;
  gap: 20px;
  width: 100vw;
  transition: transform 0.4s cubic-bezier(.77,0,.18,1);
  transform: translateY(0);
}
.cookie-banner.hide {
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-banner p {
  color: var(--color-primary);
  text-align: center;
  font-size: 1.02rem;
  margin-bottom: 0;
}
.cookie-banner-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2px;
}
.cookie-btn {
  padding: 10px 26px;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 22px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--color-secondary);
  margin: 0 6px;
  cursor: pointer;
  box-shadow: 0 2px 12px 0 rgba(0, 168, 150, 0.10);
  transition: background 0.2s, box-shadow 0.19s;
  border: none;
}
.cookie-btn:focus, .cookie-btn:hover {
  background: #11bda9;
  box-shadow: 0 4px 18px 0 rgba(0,168,150,0.14);
}
.cookie-btn.settings {
  background: var(--color-primary);
  color: #fff;
}
.cookie-btn.settings:focus, .cookie-btn.settings:hover {
  background: #243352;
}

/* === COOKIE MODAL === */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(39,55,88,0.23);
  z-index: 1203;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
@media (min-width: 500px) {
  .cookie-modal-overlay { align-items: center; }
}
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 6px 48px rgba(30,45,75,0.12);
  padding: 38px 22px 32px 22px;
  width: 95vw;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 19px;
  animation: slideUpModal .33s cubic-bezier(.67,.03,.15,1);
}
@keyframes slideUpModal {
  from { transform: translateY(80px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.36rem;
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 4px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 10px 0 10px 0;
}
.cookie-category label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-primary);
}
.cookie-category input[type='checkbox'] {
  width: 24px; height: 24px;
  accent-color: var(--color-secondary);
  cursor: pointer;
}
.cookie-category input[disabled] {
  filter: grayscale(1);
  opacity: 0.6;
  pointer-events: none;
}
.cookie-modal .cookie-btn {
  margin-top: 9px;
  width: 100%;
}
.cookie-modal .close {
  position: absolute;
  top: 18px; right: 18px;
  background: none;
  font-size: 1.2rem;
  color: var(--color-secondary);
  border: none;
  cursor: pointer;
}

/* === ANIMATIONS & MICROINTERACTIONS === */
a, .cta-btn, .card, .testimonial-card, .mobile-menu, .cookie-btn {
  transition: background 0.22s, color 0.17s, box-shadow 0.19s, transform 0.17s;
}
/* Soft fade for main */
main { animation: pastelFadeIn 0.55s cubic-bezier(0.42, 0, 0.58, 1); }
@keyframes pastelFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* === RESPONSIVE LAYOUTS === */
@media (max-width: 992px) {
  .container {
    max-width: 96vw;
    padding: 0 12px;
  }
  .section { padding: 24px 6px; }
}
@media (max-width: 768px) {
  body {
    font-size: 15px;
    background: var(--color-soft-bg);
  }
  h1, .h1 { font-size: 1.55rem; }
  h2, .h2 { font-size: 1.17rem; }
  h3, .h3 { font-size: 1.08rem; }
  .card { padding: 22px 12px; }
  .section { padding: 18px 0; margin-bottom: 34px; }
}

/* === FORM ELEMENTS (IF ANY) === */
input[type="text"], input[type="email"], textarea {
  border: 1px solid var(--color-pastel-blue);
  border-radius: 15px;
  padding: 10px 16px;
  background: #fff;
  margin-bottom: 12px;
  font-size: 1rem;
  box-shadow: 0 2px 8px 0 rgba(0,168,150,0.08);
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  outline: 2px solid var(--color-secondary);
}

/* === MISC UTILITY === */
::-webkit-scrollbar { width: 10px; background: var(--color-soft-bg); }
::-webkit-scrollbar-thumb { background: var(--color-pastel-blue); border-radius: 6px; }

/* === PASTEL DECORATIVE ACCENTS === */
.section {
  /* Soft pastel background alternation */
  background: linear-gradient(125deg, var(--color-pastel-blue) 2%, var(--color-soft-bg) 90%);
}
.section:nth-of-type(even) {
  background: linear-gradient(130deg, var(--color-pastel-mint) 5%, var(--color-pastel-yellow) 90%);
}

@media (max-width: 600px) {
  .container { padding: 0 3vw; }
  header .container { padding: 14px 8px; }
  .section { padding: 11px 2px; }
}

/* === ACCESSIBILITY === */
:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 2px;
}

/* === NO ABSOLUTE POSITIONING FOR CONTENT CARDS === */
.card, .testimonial-card, .newsletter-signup,
.section, .card-container, .content-grid,
.text-image-section, .footer .content-wrapper {
  position: relative;
  z-index: 1;
}


/* === ENSURE CLASSES EXIST FROM HTML === */
/* All mandatory .section, .card-container, .card, .content-grid, .text-image-section, .testimonial-card, .feature-item selectors included above. */

