/* ===============================
   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;
}

html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  color: #222;
  background: #F8F6F2;
  font-size: 1rem;
  line-height: 1.75;
  min-height: 100vh;
  letter-spacing: 0.01em;
}

img, picture {
  max-width: 100%;
  display: block;
}
ol, ul {
  list-style: none;
}
a {
  color: #34658C;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #FB9032;
  text-decoration: underline;
}

/* ===============================
   VARIABLES & BRAND COLORS
   =============================== */
:root {
  --primary: #34658C;
  --secondary: #F4E8C1;
  --accent: #FB9032;
  --dark: #222;
  --surface-light: #fff;
  --surface-muted: #F8F6F2;
  --border-card: #E6DFCC;
  --shadow-card: 0 2px 16px 0 rgba(44,54,79,0.06);
}

/* ===============================
   TYPOGRAPHY
   =============================== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-weight: 700;
  color: #1B3851;
}
h1 {
  font-size: 2.75rem;
  margin-bottom: 24px;
  letter-spacing: 0.019em;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  letter-spacing: 0.015em;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p, li, blockquote {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1.06rem;
}
blockquote {
  border-left: 4px solid var(--accent);
  background: var(--surface-light);
  color: #333;
  margin: 16px 0;
  padding: 18px 26px;
  border-radius: 8px;
  font-style: italic;
  box-shadow: var(--shadow-card);
}
span.tagline {
  display: block;
  font-family: 'Montserrat', Georgia, serif;
  color: var(--primary);
  font-size: 1.18rem;
  letter-spacing: 0.09em;
  margin-top: 18px;
  font-weight: 700;
}
strong {
  font-weight: 700;
  color: var(--primary);
}

/* ===============================
   CONTAINER & LAYOUT
   =============================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

/* Section spacing (MANDATORY) */
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: 10px;
}
@media (max-width: 768px) {
  .section, section {
    padding: 24px 7px;
    margin-bottom: 30px;
  }
  .container {
    padding: 0 8px;
  }
}

/* ===============================
   HEADER & NAVIGATION
   =============================== */
header {
  background: var(--surface-light);
  border-bottom: 1px solid var(--border-card);
  box-shadow: 0 2px 8px 0 rgba(52,101,140,0.04);
  padding: 0;
  position: sticky;
  z-index: 30;
  top: 0;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 1rem;
  color: var(--primary);
  font-weight: 600;
  padding: 6px 3px;
  letter-spacing: 0.03em;
  border-radius: 2px;
  transition: color 0.18s, background 0.16s;
}
header nav a:hover, header nav a:focus {
  color: var(--accent);
  background: var(--secondary);
}

/* Call To Action header button */
.cta.primary {
  background: var(--primary);
  color: #fff;
  border-radius: 27px;
  padding: 12px 36px;
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 1.08rem;
  font-weight: bold;
  letter-spacing: 0.04em;
  margin-left: 24px;
  box-shadow: 0 2px 12px 0 rgba(52,101,140,0.07);
  border: none;
  transition: background 0.19s, color 0.16s, box-shadow 0.17s;
  display: inline-block;
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--accent);
  color: var(--dark);
  box-shadow: 0 4px 18px 0 rgba(251,144,50,0.13);
}

button {
  font-family: 'Georgia', serif;
  font-size: 1.06rem;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 2.2rem;
  width: 44px;
  height: 44px;
  justify-content: center;
  align-items: center;
  margin-left: auto;
  transition: background 0.16s;
  z-index: 103;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--accent);
  color: #fff;
}

/* MOBILE NAVIGATION */
@media (max-width: 992px) {
  header .container nav, .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(244,232,193,0.99);
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform 0.34s cubic-bezier(0.36,0.66,0.04,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 42px 28px 18px 30px;
  gap: 38px;
  box-shadow: 2px 0 18px 0 rgba(44,54,79,0.13);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.2rem;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  border: none;
  padding: 3px 14px 3px 14px;
  margin-bottom: 12px;
  transition: background 0.13s;
  z-index: 1230;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  align-items: flex-start;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 1.15rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 10px 3px;
  border-radius: 4px;
  background: transparent;
  transition: background 0.18s, color 0.18s;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--accent);
  background: #f3f3ea;
}

/* Hide mobile menu outside mobile */
@media (min-width: 993px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* ===============================
   MAIN ELEMENTS & CARDS
   =============================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}
.card {
  background: var(--surface-light);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  padding: 28px 24px;
  flex: 1 1 280px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.22s, border-color 0.19s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 32px 0 rgba(52,101,140,0.16);
  border-color: var(--accent);
}

.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;
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
}

/* ===============================
   BUTTONS & LINK STYLES
   =============================== */
.cta {
  background: var(--accent);
  color: #fff2e2;
  border-radius: 27px;
  padding: 11px 32px;
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 16px 0 rgba(251,144,50,0.11);
  border: none;
  text-align: center;
  display: inline-block;
  transition: background 0.16s, color 0.15s, box-shadow 0.13s;
  margin-top: 12px;
  cursor: pointer;
}
.cta:hover, .cta:focus {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 5px 22px 0 rgba(52,101,140,0.18);
}

/* Badge for "nowość" / 'bestseller' */
.badge {
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  padding: 2px 12px;
  font-size: 0.85rem;
  margin-left: 6px;
  font-weight: bold;
  font-family: 'Montserrat', Georgia, serif;
  letter-spacing: 0.04em;
}

/* ===============================
   FEATURE & TESTIMONIAL CARDS
   =============================== */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 22px 20px;
  border-radius: 10px;
  background: var(--surface-light);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 28px 18px 22px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  color: var(--dark);
  font-size: 1.08rem;
  font-style: italic;
  transition: box-shadow 0.18s, border-color 0.12s;
}
.testimonial-card:hover {
  box-shadow: 0 10px 32px 0 rgba(52,101,140,0.12);
  border-color: var(--primary);
}
.testimonial-card p {
  font-size: 1.08rem;
  margin-bottom: 0;
  flex: 1 1 auto;
  color: #21253d;
}
.testimonial-card span {
  font-size: 0.97rem;
  color: #555;
  min-width: 140px;
  text-align: right;
}
@media (max-width: 768px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 10px;
  }
  .testimonial-card span {
    text-align: left;
    min-width: 0;
  }
}

/* ===============================
   FOOTER & CONTACT DETAILS
   =============================== */
footer {
  background: var(--surface-light);
  border-top: 1px solid var(--border-card);
  padding: 38px 0 26px 0;
  margin-top: 38px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}
footer img {
  width: 60px; height: auto;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer nav a {
  color: var(--primary);
  font-size: 1rem;
  padding: 4px;
  transition: color 0.16s;
  border-radius: 3px;
}
footer nav a:hover {
  color: var(--accent);
  background: var(--secondary);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.98rem;
  color: #535455;
  margin-top: 6px;
}
.footer-contact img {
  width: 16px; height: 16px;
  margin-right: 5px;
  vertical-align: middle;
}
@media (max-width: 900px) {
  footer .container {
    gap: 18px;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===============================
   FORMS & INPUTS
   =============================== */
input, textarea, select {
  font-family: 'Georgia', serif;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-card);
  padding: 12px 14px;
  margin-bottom: 18px;
  background: var(--surface-light);
  outline: none;
  transition: border 0.15s;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--primary);
}
label {
  font-family: 'Montserrat', 'Georgia', serif;
  font-weight: 600;
  font-size: 1.04rem;
  color: #234;
  margin-bottom: 7px;
}

/* ===============================
   RESPONSIVE ADJUSTMENTS
   =============================== */
@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.36rem; }
  .cta, .cta.primary { font-size: 1rem; padding: 10px 19px; }
  .container { padding: 0 4px; }
}

/* Layout fix for FAQ and similar blocks */
ul, li {
  list-style: outside disc;
  padding-left: 19px;
  margin-bottom: 9px;
}
ul > li > a {
  color: var(--accent);
  font-weight: bold;
  text-decoration: underline;
}

/* ===============================
   COOKIE CONSENT BANNER & MODAL
   =============================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fffef7;
  color: #25201C;
  box-shadow: 0 -2px 28px 0 rgba(52,101,140,0.10);
  border-top: 2px solid var(--accent);
  z-index: 20000;
  padding: 18px 14px 18px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 1rem;
  transition: transform 0.25s, opacity 0.18s;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0.1;
  pointer-events: none;
}
.cookie-banner .cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}
.cookie-btn {
  border: none;
  background: var(--accent);
  color: #fff;
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 700;
  font-size: 0.94rem;
  border-radius: 24px;
  padding: 8px 23px;
  margin-left: 4px;
  box-shadow: 0 0 5px 0 rgba(251,144,50,0.08);
  transition: background 0.16s, color 0.15s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--primary);
  color: #fff;
}
.cookie-settings-btn {
  background: var(--primary);
  color: #fff;
}
.cookie-settings-btn:hover {
  background: var(--accent);
}

/* Cookie modal */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.23);
  z-index: 20001;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadein 0.19s;
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: #fffcf7;
  border-radius: 17px;
  padding: 35px 32px 24px 32px;
  box-shadow: 0 4px 40px 0 rgba(52,101,140,0.18);
  min-width: 320px;
  max-width: 95vw;
  font-family: 'Georgia', serif;
  color: #23253d;
  font-size: 1.05rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.cookie-modal h3 {
  font-family: 'Montserrat', Georgia, serif;
  color: var(--primary);
  font-size: 1.18rem;
  margin-bottom: 9px;
}
.cookie-modal-close {
  position: absolute;
  top: 13px;
  right: 15px;
  background: var(--accent);
  color: #fff;
  border-radius: 7px;
  border: none;
  font-size: 1.3rem;
  padding: 3px 10px 3px 10px;
  transition: background 0.13s;
  cursor: pointer;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--primary);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
  margin-bottom: 10px;
}
.cookie-category-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-category-row label {
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1rem;
  color: #21304d;
}
.cookie-category-row input[type="checkbox"] {
  accent-color: var(--accent);
  width: 18px; height: 18px;
}
.cookie-category-essential label {
  color: #aaa;
}
.cookie-category-essential input {
  pointer-events: none;
  opacity: 0.4;
}
.cookie-modal-buttons {
  display: flex;
  gap: 14px;
  margin-top: 13px;
  flex-wrap: wrap;
}
.cookie-modal-buttons .cookie-btn {
  min-width: 90px;
}

/* Animation for modal */
@keyframes fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (max-width: 600px) {
  .cookie-modal {
    padding: 20px 6px 17px 12px;
  }
}

/* ===============================
   TRANSITIONS & ANIMATIONS
   =============================== */
.card, .testimonial-card, .feature-item, .cta, .cta.primary, .mobile-nav a, .cookie-btn {
  transition: box-shadow 0.19s, border-color 0.18s, background 0.18s, color 0.16s, transform 0.12s;
}

/* Micro-interactions */
.cta:active, .cta.primary:active, .cookie-btn:active {
  transform: scale(0.96);
}
.mobile-nav a:active { transform: scale(0.98); }
.card:active, .testimonial-card:active, .feature-item:active {
  transform: scale(0.985);
}

/* ===============================
   ACCESSIBILITY & FOCUS STYLES
   =============================== */
a:focus, button:focus, .cta:focus, .cta.primary:focus, .cookie-btn:focus, .mobile-nav a:focus {
  box-shadow: 0 0 0 2px var(--primary);
  outline: none;
}

/* ===============================
   UTILS
   =============================== */
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
.gap-16 { gap: 16px; }
.text-center { text-align: center; }
.rounded { border-radius: 8px; }

/* ===============================
   FORMS (if ever present in the future)
   =============================== */
.form-row {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 15px;
}

/* ===============================
   PRINT STYLES
   =============================== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  section, .container, main { box-shadow: none !important; background: none !important; }
}
