/* -------------------- 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;
}
body {
  line-height: 1;
  background: #F6F2EB;
  color: #312a1c;
}
ol, ul, li {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  outline: none;
}
img {
  border: 0;
  max-width: 100%;
  height: auto;
  display: inline-block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  color: inherit;
  outline: none;
}
:focus {
  outline: 2px solid #D65C38;
  outline-offset: 2px;
}

/* ------------- VINTAGE RETRO PALETTE (Brand + retro accents) ------------- */
:root {
  --primary: #1D3557;
  --secondary: #F6F2EB;
  --accent: #D65C38;
  --accent-bright: #E07A5F;
  --vintage-yellow: #F7C873;
  --vintage-brown: #854442;
  --vintage-blue: #49747D;
  --vintage-light: #FFFBF4;
  --vintage-green: #99B898;
}

/* -------------------- FONTS (Retro + Brand) -------------------- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 0.03em;
  background-color: var(--secondary);
  min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Arial Black', Arial, sans-serif;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  letter-spacing: 0.03em;
  text-shadow: 1px 2px 0px #E07A5F33;
}
h1 {
  font-size: 2.4rem;
  margin-top: 0;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.4rem;
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p, li, ul {
  font-size: 1rem;
}
strong {
  color: var(--accent);
  font-weight: 700;
}

/* ------------------ GLOBAL SPACING & CONTAINER ------------------ */
.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--vintage-light);
  border-radius: 24px;
  box-shadow: 0 4px 20px 0 #1d355715;
  position: relative;
}
@media (max-width: 768px) {
  .section {
    padding: 24px 8px;
    margin-bottom: 36px;
  }
  .container { padding: 0 8px; }
}

/* -------------- HEADER, LOGO, NAVIGATION, CTA BUTTON --------------- */
header {
  background-color: var(--primary);
  color: #fff;
  padding: 0;
  border-bottom: 8px solid var(--accent);
  box-shadow: 0 2px 12px #584E4A20;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 26px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', 'Arial Black', Arial, sans-serif;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  font-size: 1rem;
  padding: 8px 2px;
  letter-spacing: 0.02em;
  position: relative;
  transition: color .2s;
}
header nav a.cta {
  background-color: var(--accent);
  color: #fff;
  border-radius: 32px;
  padding: 10px 28px;
  margin-left: 20px;
  font-size: 1.05rem;
  box-shadow: 0 3px 10px 0 #D65C3814;
  border: 2px solid #fff2;
  text-shadow: 1px 1px #E07A5F22;
  transition: background .2s, color .2s, box-shadow .3s;
}
header nav a.cta:hover, header nav a.cta:focus {
  background-color: var(--vintage-yellow);
  color: var(--primary);
  border-color: var(--accent);
  box-shadow: 0 6px 18px 0 #1d355711;
}
header nav a:hover, header nav a:focus {
  color: var(--accent);
  text-shadow: 0 1px 0 var(--vintage-yellow);
}
header .container img {
  height: 56px;
  width: auto;
  margin-right: 32px;
  display: block;
}
/* Mobile menu button */
.mobile-menu-toggle {
  display: none;
  padding: 10px 14px;
  font-size: 28px;
  color: #fff;
  background: var(--accent);
  border-radius: 8px;
  cursor: pointer;
  margin-left: 24px;
  transition: background .2s, color .2s;
  position: relative;
  z-index: 1102;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--vintage-yellow);
  color: var(--primary);
}
@media (max-width: 840px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* -------------------- MOBILE MENU NAVIGATION -------------------- */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(100deg, var(--vintage-yellow) 10%, var(--secondary) 70%);
  z-index: 1101;
  transform: translateX(-100%);
  transition: transform .5s cubic-bezier(.7,0,.3,1);
  box-shadow: 0 0 24px #D65C381f;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 28px 32px 16px 0;
  align-self: flex-end;
  padding: 10px 17px;
  font-size: 34px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid #1d355755;
  box-shadow: 0 2px 10px #D65C3822;
  transition: background .2s, color .2s;
  z-index: 1103;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--primary);
  color: var(--vintage-yellow);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
  width: 90%;
  padding: 24px 0 23px 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Arial Black', Arial, sans-serif;
  font-size: 1.23rem;
  font-weight: 700;
  color: var(--primary);
  padding: 10px 0 10px 10px;
  border-left: 8px solid transparent;
  border-radius: 8px 32px 32px 8px;
  transition: color .2s, border-color .2s, background .15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--accent);
  border-left: 8px solid var(--accent);
  background: var(--vintage-yellow);
}
.mobile-nav a.cta, .mobile-nav a:last-child {
  background: var(--accent);
  color: #fff;
  border-left: 8px solid var(--primary);
}
.mobile-nav a.cta:hover, .mobile-nav a.cta:focus { background: var(--primary); color: var(--vintage-yellow); }

@media (max-width: 480px) {
  .mobile-nav {
    gap: 22px;
    padding: 24px 0 24px 14px;
  }
}

/* -------------------- MAIN CONTENT SPACING -------------------- */
main {
  margin-top: 36px;
  margin-bottom: 32px;
  width: 100%;
  background: none;
}

/* -------------------- TYPOGRAPHY RETRO DECOR -------------------- */
h1, h2 {
  border-bottom: 5px double var(--primary);
  display: inline-block;
  padding-bottom: 6px;
  margin-bottom: 20px;
  background: linear-gradient(90deg, var(--vintage-yellow) 60%, transparent);
  border-radius: 3px 24px 24px 3px;
  box-shadow: 0 3px 6px #D65C3811;
}
h1 {
  font-size: 2.4rem;
}

/* --------------- FLEX LAYOUTS (NO GRID PROPERTIES!) --------------- */
.card-container, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 18px #1d355712;
  padding: 26px 22px;
  min-width: 200px;
  max-width: 350px;
  flex: 1 1 240px;
  position: relative;
  transition: box-shadow .21s;
}
.card:hover {
  box-shadow: 0 8px 32px #E07A5F1b;
}
.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) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
}

/* Feature Items for Uslugi & values etc */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--vintage-yellow);
  border-radius: 18px;
  padding: 22px 20px;
  color: #312a1c;
  box-shadow: 0 1px 4px #1d355712;
}
/* Icon lists (eg. dlaczego warto, podejście) */
ul > li {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 1.04rem;
  background: none;
  padding: 0;
  border-radius: 3px;
  line-height: 1.6;
}
ul > li img {
  width: 32px;
  height: 32px;
  margin-right: 9px;
  filter: drop-shadow(1px 2px 0 #F7C87344);
}

/* -------------------- TESTIMONIAL CARD -------------------- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 30px;
  background: #fffdf7;
  border: 3px dashed var(--vintage-yellow);
  border-radius: 18px;
  box-shadow: 0 5px 18px #E07A5F08;
  margin-bottom: 24px;
  flex: 1 1 320px;
  font-size: 1.09rem;
  color: #222;
  transition: box-shadow .22s;
}
.testimonial-card:hover {
  box-shadow: 0 12px 48px #E07A5F18;
}
.testimonial-card p {
  font-family: 'Open Sans', Arial, sans-serif;
  font-style: italic;
  color: #553015;
  margin-bottom: 0;
  margin-right: 20px;
}
.testimonial-card strong {
  color: var(--primary);
  font-size: 1.01em;
  letter-spacing: 0.01em;
}
.testimonial-card img {
  height: 26px;
  width: 26px;
  margin-top: 2px;
  margin-right: 2px;
  vertical-align: middle;
  filter: drop-shadow(0 1px 0 #F7C87388);
}
@media (max-width: 768px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px 10px;
  }
}

/* -------------- BUTTONS, CALL TO ACTIONS -------------- */
.cta, .btn {
  background: var(--accent);
  color: #fff;
  border-radius: 32px;
  padding: 12px 32px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.09rem;
  transition: background .18s, color .16s, box-shadow .26s, transform .18s;
  box-shadow: 0 3px 16px #D65C3834;
  border: none;
  letter-spacing: 0.02em;
  text-shadow: 1px 1px 0 #E07A5F33;
  cursor: pointer;
  display: inline-block;
  margin-top: 20px;
}
.cta:hover, .cta:focus, .btn:hover, .btn:focus {
  background: var(--vintage-yellow);
  color: var(--primary);
  box-shadow: 0 7px 35px #453a1930;
  transform: translateY(-3px) scale(1.04) rotate(-0.7deg);
}

/* -------------- FOOTER ------------------- */
footer {
  background: var(--primary);
  color: #fff;
  padding: 40px 0 18px 0; 
  box-shadow: 0 -2px 12px #312a1c15;
  position: relative;
  margin-top: 44px;
}
footer .container {
  flex-direction: column;
  gap: 20px;
}
footer .content-wrapper {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 36px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
footer nav a {
  color: var(--vintage-yellow);
  font-size: 1.04rem;
  padding: 2px 0;
  text-decoration: underline;
}
footer nav a:hover, footer nav a:focus {
  color: var(--accent);
  text-decoration: underline #fff78f 3px;
}
footer ul li {
  color: #fffdeb;
  gap: 9px;
  font-size: 0.98rem;
  margin-bottom: 6px;
}
footer img[src*='logo-mark'],
footer img[src*='logo'] {
  height: 43px;
  width: auto;
  margin-bottom: 3px;
}
footer .social-links {
  display: flex;
  gap: 18px;
  align-items: center;
}
footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  width: 38px;
  background: var(--accent);
  border-radius: 50%;
  transition: background .22s, transform .16s;
  box-shadow: 0 1px 7px #D65C3812;
}
footer .social-links a:hover, footer .social-links a:focus {
  background: var(--vintage-yellow);
  transform: scale(1.12) rotate(-5deg);
}
footer .social-links img {
  width: 22px;
  height: 22px;
  filter: drop-shadow(1px 1px 1px #1D355799);
}

@media (max-width: 1000px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

@media (max-width: 700px) {
  footer {
    padding: 18px 0 9px 0;
  }
}

/* -------------- MODALS AND OVERLAYS (eg. COOKIE BANNER) ----------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 2022;
  background: #312a1c;
  color: #fffbe8;
  box-shadow: 0 -8px 30px #1D355772;
  padding: 22px 32px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  font-size: 0.98rem;
  transition: transform .41s cubic-bezier(.7,0,.3,1), opacity .41s;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(120%);
  pointer-events: none;
}
.cookie-banner p {
  margin: 0;
  flex: 1 0 180px;
  color: #fffbe8;
}
.cookie-banner .banner-btns {
  display: flex;
  flex-direction: row;
  gap: 18px;
}
.cookie-banner .cta,
.cookie-banner .btn {
  background: var(--vintage-yellow);
  color: var(--primary);
  border: none;
  border-radius: 16px;
  padding: 7px 21px;
  font-size: 1em;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  box-shadow: 0 1px 7px #F7C87333;
  margin: 0;
}
.cookie-banner .btn.settings {
  background: #fffbe8;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.cookie-banner .btn.reject {
  background: #fff4eb;
  color: #943823;
  border: 2px solid #94382333;
}
.cookie-banner .btn:hover, .cookie-banner .btn:focus {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
    padding: 18px 10px;
    border-radius: 14px 14px 0 0;
  }
  .cookie-banner .banner-btns {
    gap: 10px;
  }
}

.cookie-modal-backdrop {
  position: fixed;
  z-index: 2050;
  left: 0; right: 0; top: 0; bottom: 0;
  background: #2C150EA0;
  backdrop-filter: blur(1.2px);
  transition: opacity .4s;
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-backdrop.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  position: fixed;
  z-index: 2052;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(1);
  background: #fffdfa;
  border-radius: 15px;
  box-shadow: 0 8px 64px 0 #2C150E44;
  min-width: 290px;
  max-width: 96vw;
  width: 390px;
  padding: 35px 32px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 1;
  transition: opacity .35s, transform .35s cubic-bezier(.63,-0.26,.49,1.25);
}
.cookie-modal.hide {
  opacity: 0;
  transform: translate(-50%,100%) scale(.94);
}
.cookie-modal h3 {
  margin-bottom: 2px;
  font-size: 1.22rem;
}
.cookie-modal p {
  font-size: 1rem;
  color: #312a1c;
}
.cookie-modal .modal-section {
  background: var(--vintage-yellow);
  padding: 14px 9px;
  border-radius: 8px;
  margin-bottom: 10px;
}
.cookie-modal .toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 1rem;
  margin: 7px 0;
}
.cookie-modal .toggle-checkbox {
  width: 38px;
  height: 21px;
  background: var(--vintage-blue);
  border-radius: 12px;
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: background .22s;
}
.cookie-modal .toggle-checkbox input {
  display: none;
}
.cookie-modal .toggle-slider {
  position: absolute;
  left: 3px; top: 2.6px;
  height: 16px; width: 16px;
  background: #fff;
  border-radius: 50%;
  border: 2px solid var(--primary);
  transition: left .21s, background .21s, border .17s;
}
.cookie-modal .toggle-checkbox input:checked + .toggle-slider {
  left: 19px;
  background: var(--accent);
  border: 2px solid var(--accent);
}
.cookie-modal .modal-btns { display: flex; gap: 13px; margin-top: 16px; }
.cookie-modal .btn {
  padding: 8px 28px;
  border-radius: 10px;
  font-size: 1em;
}
.cookie-modal .btn.cancel {
  background: #fff4eb;
  color: #b16451;
  border: 2px solid #e07a5f66;
}
.cookie-modal .btn.save {
  background: var(--accent);
  color: #fff;
}
.cookie-modal .btn:disabled,
.cookie-modal .btn[aria-disabled='true'] {
  background: #dfdfdf;
  color: #aaa;
  border: none;
  cursor: not-allowed;
}
.cookie-modal .btn.save:hover { background: var(--primary); color: var(--vintage-yellow); }
@media (max-width: 510px) {
  .cookie-modal { padding: 19px 7vw 18px 7vw; min-width: unset; width: 98vw; }
}

/* -------------- RETRO/NOSTALGIC ELEMENTS + PATTERNS -------------- */
.section {
  background-image: repeating-linear-gradient(135deg, #FFFBF4 0px, #FFF7E0 4px, transparent 4px, transparent 26px);
  background-blend-mode: multiply;
}
.card, .testimonial-card, .feature-item, .cookie-modal, .cookie-banner {
  border-bottom: 5px solid var(--accent);
}
.card:before, .testimonial-card:before {
  content: '';
  position: absolute;
  top: -12px; left: 18px;
  width: 72px; height: 9px;
  border-radius: 8px;
  background: repeating-linear-gradient(90deg, var(--vintage-yellow), var(--vintage-yellow) 20px, #fffdf7 25px, #fffdf7 35px);
  opacity: .55;
  z-index: 1;
}
.card:after, .testimonial-card:after {
  content: '';
  position: absolute;
  bottom: -14px; right: 18px;
  width: 64px; height: 8px;
  border-radius: 7px;
  background: repeating-linear-gradient(90deg, var(--vintage-blue), var(--vintage-blue) 12px, #fffdf7 17px, #fffdf7 27px);
  opacity: .38;
  z-index: 1;
}
@media (max-width: 700px) {
  .card:before, .card:after, .testimonial-card:before, .testimonial-card:after { display: none; }
}

/* -------------- MISC RESPONSIVE/UTILITY --------------- */
.text-section ul {
  margin-top: 8px;
  padding-left: 18px;
  font-size: 1rem;
}
.text-section li {
  list-style: disc;
  margin-left: 15px;
}
@media (max-width: 800px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.22rem; }
}

@media (max-width: 500px) {
  h1, h2 { font-size: 1.13rem; }
  body { font-size: 14px; }
}

/* --------------------------------- ANIMATIONS --------------------------------- */
.card, .testimonial-card, .feature-item, .cta, .btn, .cookie-modal, .cookie-banner {
  transition: box-shadow .22s, background .22s, color .22s, border .22s, transform .15s;
}

/* ------------------------------ ACCESSIBILITY ------------------------------- */
:root { scroll-behavior: smooth; }
a:active, button:active { outline: 2px dashed var(--accent); }

/* ------------------------ SPECIALS: THANK YOU SCREEN ------------------------- */
.thankyou-announcement {
  text-align: center;
  font-size: 2rem;
  color: var(--primary);
  margin: 32px auto;
}

/* ------------------------------ PRINT ------------------------------- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-backdrop, .cookie-modal { display: none !important; }
  main { margin:0; background:none; }
  .section { padding:0; margin-bottom:16px; }
}
