/* ---- CSS RESET & BASE ---- */
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.5;
  background-color: #F8F9F5;
  color: #232A34;
  font-family: 'Open Sans', Arial, sans-serif;
}
a {
  color: #AF6030;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #CA771B;
  text-decoration: underline;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, .cta-btn {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
}
ul, ol {
  list-style: none;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #232A34;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.17rem; }

@media (min-width: 481px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2rem; }
}

/* ---- VINTAGE RETRO THEME COLORS & UTILS ---- */
:root {
  --primary: #232A34;   /* Deep blue-gray */
  --secondary: #F0AB39; /* Warm retro amber */
  --accent: #F8F9F5;    /* Vintage pale */
  --retro-red: #C84438;
  --retro-blue: #376E8C;
  --retro-green: #A5B36B;
  --retro-cream: #FAF3E2;
  --retro-brown: #AF6030;
  --vintage-shadow: 0 2px 8px 0 rgba(125, 84, 16, 0.10);
}

body {
  background-color: var(--accent);
  color: var(--primary);
}

/* Classic patterns using subtle background textures */
body {
  background: repeating-linear-gradient(135deg, #FAF3E2 0 20px, #FFEBC1 20px 40px);
}

/* ---- CONTAINERS & LAYOUT ---- */
.container {
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 16px;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 20px 0 0 0;
}

.card {
  background: var(--accent);
  border-radius: 18px;
  box-shadow: var(--vintage-shadow);
  padding: 28px 18px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.18s, transform 0.18s;
  border: 3px solid #FFEBC1;
}
.card:hover {
  box-shadow: 0 8px 32px 0 rgba(125, 84, 16, 0.13);
  transform: translateY(-3px) scale(1.016);
}

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

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

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  background: #FAF3E2;
  color: #232A34;
  border-left: 6px solid var(--secondary);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(200,117,40,0.06);
  font-family: 'Open Sans', Arial, sans-serif;
}
.testimonial-card p {
  font-size: 1.10rem;
  line-height: 1.5;
  color: #232A34;
  font-style: italic;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: #AF6030;
  font-weight: 700;
}

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

/* ---- HEADER ---- */
header {
  background: #FFEBC1;
  border-bottom: 2px solid var(--secondary);
  padding: 0;
  position: relative;
  font-family: 'Montserrat', Arial, sans-serif;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
}
.logo img {
  height: 48px;
}
.desktop-nav {
  display: flex;
  flex-direction: row;
  gap: 32px;
  align-items: center;
}
.desktop-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #232A34;
  font-size: 1.07rem;
  padding: 10px 6px;
  border-radius: 6px;
  transition: background 0.16s, color 0.18s;
}
.desktop-nav a:hover, .desktop-nav a:focus {
  background: var(--secondary);
  color: #232A34;
  text-decoration: none;
}

.cta-btn {
  display: inline-block;
  background: var(--secondary);
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 10px 28px;
  border-radius: 28px 6px 28px 6px;
  box-shadow: 0 1px 8px rgba(200,117,40,0.08);
  margin-left: 18px;
  border: 2px solid var(--primary);
  letter-spacing: 0.03em;
  transition: background 0.16s, color 0.18s, transform 0.17s, box-shadow 0.18s;
  text-shadow: 0 1px 0 #fff6dc;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--retro-red);
  color: #fff;
  box-shadow: 0 6px 24px rgba(200,117,40,0.11);
  transform: translateY(-2px) scale(1.025);
}

.mobile-menu-toggle {
  display: none;
  background: var(--retro-brown);
  color: #fff;
  font-size: 2.1rem;
  border: none;
  padding: 6px 15px 6px 10px;
  border-radius: 50%;
  margin-left: 20px;
  transition: background 0.16s, color 0.17s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--retro-red);
  color: #fffbd1;
}

/* --- MOBILE HEADER --- */
@media (max-width: 900px) {
  .desktop-nav,
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ---- HERO ---- */
.hero {
  color: #232A34;
  border-bottom: 6px double var(--primary);
  min-height: 270px;
  display: flex;
  align-items: center;
  margin-bottom: 36px;
  padding: 36px 0;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  align-items: flex-start;
  text-align: left;
  gap: 24px;
}
.hero h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.5rem;
  color: var(--retro-brown);
  text-shadow: 0 2px 6px #ffe19b44;
  letter-spacing: 0.03em;
  margin-bottom: 14px;
}
.hero p {
  max-width: 650px;
  font-size: 1.15rem;
  color: #232A34;
  margin-bottom: 18px;
}

@media (max-width: 768px) {
  .hero .container {
    padding: 0 4vw;
  }
  .hero h1 { font-size: 2.05rem; }
  .hero {
    padding: 28px 0;
    min-height: 160px;
  }
}

/* ---- COOKIE CONSENT BANNER ---- */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 1200;
  background: #232A34;
  color: #fffbd1;
  font-size: 1rem;
  padding: 18px 16px 18px 32px;
  box-shadow: 0 -6px 18px rgba(35,42,52, 0.15);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: 'Open Sans', Arial, sans-serif;
  animation: cookieSlideUp 0.64s cubic-bezier(.68,-0.55,.27,1.55);
}
@keyframes cookieSlideUp {
  from {transform: translateY(100%); opacity: 0;}
  to {transform: translateY(0); opacity: 1;}
}
.cookie-consent-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}
.cookie-btn {
  padding: 8px 18px;
  border-radius: 24px 6px 24px 6px;
  font-size: 1.02rem;
  border: 2px solid #F0AB39;
  background: #F8F9F5;
  color: #AF6030;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  transition: background 0.16s, color 0.17s, transform 0.12s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #F0AB39;
  color: #232A34;
}
.cookie-settings-btn {
  border-color: #376E8C;
  color: #376E8C;
  background: #F8F9F5;
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: #376E8C;
  color: #fff;
}

/* Cookie modal overlay */
.cookie-modal-overlay {
  position: fixed;
  z-index: 1300;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(35,42,52,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal {
  background: #FAF3E2;
  color: #232A34;
  padding: 36px 28px 32px 28px;
  border-radius: 18px;
  max-width: 425px;
  width: 94vw;
  box-shadow: 0 10px 28px 0 rgba(36,24,5,0.21);
  position: relative;
  animation: flyIn 0.41s cubic-bezier(.82,-0.6,.32,1.34);
  font-family: 'Montserrat', Arial, sans-serif;
}
@keyframes flyIn {
  from {transform: translateY(-50px); opacity: 0;}
  to {transform: translateY(0); opacity: 1;}
}
.cookie-modal h2 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}
.cookie-modal-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.cookie-modal-category input[type='checkbox'] {
  accent-color: #F0AB39;
  width: 20px;
  height: 20px;
}
.cookie-prefs-btns {
  margin-top: 18px;
  display: flex;
  gap: 20px;
  flex-direction: row;
}
.cookie-modal-close {
  position: absolute;
  top: 12px; right: 18px;
  background: none;
  font-size: 1.6rem;
  color: #C84438;
  border: none;
  cursor: pointer;
}

@media (max-width: 560px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 4vw;   
  }
  .cookie-consent-actions {
    gap: 11px;
    margin-top: 10px;
  }
}

/* ---- MOBILE MENU ---- */
.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #232A34;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  transition: transform 0.3s cubic-bezier(.77,0,.18,1.1);
  transform: translateX(100%);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0%);
  opacity: 1;
  pointer-events: auto;
  animation: menuSlideIn 0.4s cubic-bezier(.77,0,.18,1.1);
}
@keyframes menuSlideIn {
  from {transform: translateX(100%); opacity:0;}
  to {transform: translateX(0); opacity:1;}
}
.mobile-menu-close {
  background: none;
  color: var(--secondary);
  font-size: 2.2rem;
  border: none;
  cursor: pointer;
  margin:18px 22px 0 0;
  align-self: flex-end;
  transition: color 0.19s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #fffbd1;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100vw;
  align-items: flex-start;
  margin-top: 28px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.36rem;
  color: #FFEBC1;
  padding: 15px 32px;
  width: 100vw;
  transition: background 0.15s, color 0.16s;
  border-radius: 0 18px 18px 0;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: #232A34;
}
@media (max-width: 900px) {
  .mobile-menu {
    display: flex;
  }
}

/* ---- FOOTER ---- */
footer {
  background: #FFEBC1;
  border-top: 2px solid var(--secondary);
  padding: 0;
  width: 100%;
  margin-top: 80px;
}
footer .container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0 12px;
  max-width: 1200px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: row;
  gap: 20px;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
}
.footer-nav a {
  color: #232A34;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 0.97rem;
  transition: color 0.17s;
  padding: 4px 10px;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--retro-red);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.12rem;
  color: #AF6030;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}

/* MOBILE FOOTER NAV */
@media (max-width: 700px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    padding: 16px 0;
  }
  .footer-nav {
    gap: 10px;
    flex-wrap: wrap;
  }
}

/* ---- TYPOGRAPHY RETRO ---- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Open+Sans:wght@400;700&display=swap');

body {
  font-family: 'Open Sans', Arial, Verdana, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  background: repeating-linear-gradient(135deg, #FAF3E2 0 24px, #FFEBC1 24px 48px);
}
h1, h2, h3, .logo, .footer-brand {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: none;
}
blockquote {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.27rem;
  color: #376E8C;
  background: #f7e1be;
  border-left: 6px solid #F0AB39;
  margin: 16px 0 8px 0;
  padding: 16px 30px 16px 18px;
  border-radius: 12px;
  font-style: italic;
}
strong {
  color: #232A34;
  font-weight: 700;
}

/* ---- CARD & LIST DESIGN ---- */
.card {
  background: var(--accent);
  border-radius: 15px;
  border: 3px solid #FFEBC1;
  box-shadow: var(--vintage-shadow);
  transition: box-shadow 0.17s, border 0.12s, transform 0.15s;
}
.card:hover {
  border-color: var(--secondary);
}

ul li, ol li {
  margin-bottom: 18px;
  font-size: 1.09rem;
  line-height: 1.55;
  position: relative;
  padding-left: 28px;
}
ul li:before, ol li:before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--retro-brown);
  font-size: 1.45em;
  font-weight: bold;
  top: 2px;
  font-family: 'Montserrat', Arial, sans-serif;
}
ol li:before {
  content: counters(item, ".") ". ";
  color: var(--retro-brown);
  font-size: 0.94em;
}

ol {
  counter-reset: item;
}
ol li {
  counter-increment: item;
}

@media (max-width: 620px) {
  ul li, ol li {
    padding-left: 18px;
  }
}

/* ---- SPACING & RETRO FRAMES ---- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(200,117,40,0.05);
  background: #fff;
  border: 2px dashed #F0AB39;
}

@media (max-width: 600px) {
  section { padding: 26px 5vw; }
}

/* -- INPUTS -- */
input, textarea, select {
  border: 2px solid #F0AB39;
  border-radius: 7px;
  font-size: 1rem;
  font-family: inherit;
  padding: 10px 10px;
  margin-bottom: 14px;
  background: #fff;
  transition: border-color 0.17s;
  color: #232A34;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #CA771B;
}

/* ---- BUTTONS (other than cta-btn) ---- */
button, .btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  background: var(--secondary);
  color: #232A34;
  border: 2px solid #232A34;
  border-radius: 24px 6px 24px 6px;
  padding: 10px 24px;
  box-shadow: 0 2px 8px rgba(36,24,5,0.10);
  margin-top: 7px;
  cursor: pointer;
  transition: background 0.15s, color 0.16s, border 0.13s, transform 0.13s;
}
button:hover, .btn:hover, button:focus, .btn:focus {
  background: var(--retro-blue);
  color: #fff;
  border-color: var(--retro-blue);
  transform: translateY(-1.5px) scale(1.03);
}

/* -- TABLES (for GDPR/polityka pages if any) -- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 1rem;
  background: #FFFAED;
}
th, td {
  border: 1.5px solid #F0AB39;
  padding: 9px 18px;
  text-align: left;
}
th {
  background: #FFF1C2;
  color: #232A34;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* ---- UTILITIES ---- */
.text-center { text-align: center; }
.flex-row {display: flex; flex-direction: row;}
.flex-col {display: flex; flex-direction: column;}
.align-center {align-items: center;}
.justify-center {justify-content: center;}
.gap-12 {gap: 12px;}

/* ---- RESPONSIVE DESIGN ---- */
@media (max-width: 768px) {
  body { font-size: 0.98rem; }
  .section, section { padding: 26px 8px; margin-bottom: 32px; }
  .container { padding: 0 6px; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.22rem; }
  .card, .testimonial-card, .cookie-modal {
    padding: 16px 9px;
    font-size: 0.97rem;
  }
  .footer-brand img {
    height: 29px !important;
  }
  .footer-brand {
    font-size: 0.99rem;
  }
  .content-wrapper {
    gap: 15px;
  }
}

/* ---- ANIMATIONS ---- */
.card, .testimonial-card, .footer-brand, .cta-btn, .cookie-consent-banner, .mobile-menu {
  transition: box-shadow 0.17s, background 0.19s, color 0.19s, transform 0.19s;
}
.animated {
  animation: fadeInMove 0.54s cubic-bezier(.64,.04,.28,1.11);
}
@keyframes fadeInMove {
  0% { opacity: 0; transform: translateY(22px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* --- RETRO DECORATIVE ELEMENTS --- */
.card:before, .testimonial-card:before, .cta-btn:before {
  content: '';
  display: block;
  position: absolute;
  top: -12px; left: -12px;
  width: 32px; height: 32px;
  background: url('data:image/svg+xml;utf8,<svg fill="%23F0AB39" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><circle cx="16" cy="16" r="15"/></svg>') no-repeat center center;
  opacity: 0.18;
  z-index: 0;
  pointer-events: none;
}
.card:before { left: -12px; top: -12px; }
.testimonial-card:before { left: -10px; top: -10px; }
.cta-btn:before { display: none; }
/* Remove from mobile for clarity */
@media (max-width: 600px) {
  .card:before, .testimonial-card:before { display: none; }
}

/* ---- SPECIAL RETRO ELEMENTS FOR HEADINGS ---- */
h2, .section-title {
  position: relative;
  padding-left: 22px;
}
h2:before, .section-title:before {
  content: '';
  display: block;
  position: absolute;
  left: 0; top: 8px;
  width: 10px; height: 36px;
  border-radius: 9px;
  background: var(--secondary);
  box-shadow: 0 1px 8px 0 rgba(240,171,57,0.19);
}
@media (max-width: 900px) {
  h2, .section-title { padding-left: 16px; }
  h2:before, .section-title:before { height: 22px; top:6px; }
}

/* ---- END ---- */