/* ===================================================
   RESET & BASE STYLES
   =================================================== */
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: #F6F3E3;
  color: #3A2D16;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #25567B;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus, a:hover {
  color: #B97328;
  outline: none;
}
ol, ul {
  list-style: none;
}
button, input, textarea {
  font-family: inherit;
}

/* ===========================
   VINTAGE RETRO VARIABLES
   =========================== */
:root {
  --vintage-primary: #234D20;
  --vintage-secondary: #25567B;
  --vintage-accent: #F6F3E3;
  --vintage-dark: #3A2D16;
  --vintage-light: #FFF9EF;
  --vintage-orange: #E38C3E;
  --vintage-brown: #9E6635;
  --vintage-cream: #FFF9EF;
  --vintage-shadow: rgba(35, 30, 13, 0.08);
  --vintage-border: #DDC7AE;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Arial Rounded MT Bold', Verdana, sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--vintage-primary);
  margin-bottom: 16px;
}
h1 {
  font-size: 2.25rem; /* 36px */
  margin-bottom: 20px;
  text-shadow: 1px 3px 0 var(--vintage-cream), 0 1px 0 #BF511E44;
}
h2 {
  font-size: 1.75rem; /* 28px */
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem; /* 20px */
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1rem; /* 16px */
  margin-bottom: 8px;
}
p, ul, ol, li {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: var(--vintage-dark);
  margin-bottom: 8px;
  line-height: 1.7;
}
strong {
  color: var(--vintage-secondary);
  font-weight: 700;
}
.text-section h3 {
  font-size: 1.15rem;
}

@media (min-width: 768px) {
  h1 {
    font-size: 3rem;
  }
  h2 {
    font-size: 2.25rem;
  }
  p {
    font-size: 1.12rem;
  }
}

/* ===========================
   LAYOUT: CONTAINER & FLEX UTILITIES
   =========================== */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 900px) {
  .content-wrapper {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: space-between;
  }
}
.text-section {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ===========================
   VINTAGE/RETRO ACCENTS
   =========================== */
body {
  background: var(--vintage-accent);
  /* Diagonal subtle stripes */
  background-image:
    repeating-linear-gradient(135deg, var(--vintage-cream) 0, var(--vintage-cream) 22px, #f0edd6 35px, #f0edd6 44px);
}
hr {
  border: 0;
  border-top: 2px dashed var(--vintage-brown);
  background: none;
  margin: 32px 0;
}

/* ===========================
   HEADER & NAVIGATION
   =========================== */
header {
  background: var(--vintage-primary);
  box-shadow: 0 2px 14px var(--vintage-shadow);
  position: relative;
  z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
}
nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
nav a {
  color: var(--vintage-cream);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-shadow: 0 1px 0 #1a3214a8;
  letter-spacing: 0.25px;
  transition: color .2s;
  position: relative;
}
nav a:after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: var(--vintage-orange);
  border-radius: 1px;
  transition: width 0.2s cubic-bezier(.7,.2,.59,.92);
  position: absolute;
  bottom: -5px; left: 0;
}
nav a:hover:after, nav a:focus:after {
  width: 100%;
}
nav a:hover, nav a:focus {
  color: var(--vintage-orange);
}

.btn-primary {
  padding: 10px 28px;
  background: var(--vintage-orange);
  color: var(--vintage-cream);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  border-radius: 38px;
  box-shadow: 2px 6px 0 0 var(--vintage-shadow);
  letter-spacing: 1px;
  margin-left: 16px;
  cursor: pointer;
  transition: background .18s, transform .15s;
  text-shadow: 0 1px 3px #64442144;
}
.btn-primary:focus, .btn-primary:hover {
  background: var(--vintage-brown);
  color: #fff;
  transform: translateY(-2px) scale(1.02);
}

/* ===========================
   MOBILE BURGER MENU
   =========================== */
.mobile-menu-toggle {
  display: none;
  background: var(--vintage-orange);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 2rem;
  width: 50px;
  height: 46px;
  margin-left: 12px;
  cursor: pointer;
  z-index: 60;
  box-shadow: 1px 2px 8px var(--vintage-shadow);
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--vintage-brown);
  color: #FFF9EF;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 85vw;
  max-width: 370px;
  height: 100vh;
  background: var(--vintage-brown);
  box-shadow: -2px 0 16px 2px #5a432755;
  transform: translateX(110%);
  transition: transform 0.32s cubic-bezier(.63,.27,.69,.97);
  z-index: 1001;
  flex-direction: column;
  align-items: flex-start;
  padding: 36px 24px 32px 24px;
  display: flex;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.1rem;
  color: var(--vintage-accent);
  background: none;
  border: none;
  cursor: pointer;
  margin-bottom: 16px;
  padding: 2px 10px;
  transition: color 0.18s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: #ffdeaf;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  color: var(--vintage-accent);
  font-weight: 600;
  padding: 12px 5px;
  border-radius: 14px;
  transition: background 0.16s, color 0.16s;
  text-shadow: 0 1px 1px #2a140688;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #fff9efa8;
  color: var(--vintage-brown);
}

@media (max-width: 1100px) {
  header .container nav,
  header .container .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    top: 17px;
    right: 16px;
  }
}
@media (min-width: 1101px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* ===========================
   HERO SECTION & INTRO
   =========================== */
.hero {
  background: linear-gradient(120deg, #F6F3E3 60%, #F6E7C1 100%);
  background-size: cover;
  box-shadow: 0 8px 24px -6px #D7CB9A44;
  margin-bottom: 60px;
  padding: 48px 0 36px 0;
  border-bottom: 5px double var(--vintage-brown);
  position: relative;
  z-index: 2;
}
.hero .container .content-wrapper {
  align-items: flex-start;
  gap: 24px;
}
.hero p {
  font-size: 1.15rem;
  color: #5c4840;
}
.hero .btn-primary {
  margin-top: 10px;
}

/* ===========================
   SECTION SPACING (MANDATORY)
   =========================== */
.section, .features, .testimonials, .services, .about, .contact, .form, .cta,
.privacy_policy, .gdpr_info, .cookie_policy, .terms_of_service, .confirmation {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 30px;
  background: var(--vintage-cream);
  box-shadow: 0 4px 12px var(--vintage-shadow);
  position: relative;
}

/* ===========================
   FLEX LAYOUT UTILITIES
   =========================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #FFF8F2;
  border-radius: 24px;
  box-shadow: 0 1px 8px var(--vintage-shadow);
  border: 1px solid var(--vintage-border);
  padding: 24px 18px 18px 18px;
  transition: box-shadow 0.16s, transform 0.18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 22px var(--vintage-shadow);
  transform: translateY(-3px) scale(1.02);
}
.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;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 26px;
  margin-bottom: 20px;
  border-radius: 18px;
  background: #FFF9EF;
  border: 2.5px solid var(--vintage-brown);
  box-shadow: 0 3px 9px #d9b28c33;
  min-width: 0;
  max-width: 470px;
  transition: box-shadow 0.13s, transform 0.15s;
}
.testimonial-card p {
  font-size: 1.09rem;
  color: #3A2D16;
  text-shadow: 0 1px 0 #FFF9EF;
}
.testimonial-card span {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--vintage-secondary);
  text-shadow: 0 1px 0 #fff;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px #E38C3E23;
  transform: scale(1.03);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===========================
   FEATURES / USŁUGI
   =========================== */
.features .content-wrapper ul,
.services .content-wrapper ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.features .content-wrapper ul li,
.services .content-wrapper ul li {
  font-size: 1.08rem;
  line-height: 1.7;
  background: #fff9f0;
  border-left: 7px solid var(--vintage-orange);
  box-shadow: 0 3px 10px var(--vintage-shadow);
  border-radius: 11px;
  padding: 18px 20px 15px 24px;
  color: var(--vintage-primary);
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  font-weight: 500;
  margin-bottom: 0;
}
.features .content-wrapper ul li img {
  width: 32px; height: 32px;
  margin-right: 5px;
}
.price {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  color: var(--vintage-brown);
  background: #FAE6CD;
  border-radius: 14px;
  padding: 6px 17px 5px 17px;
  font-size: 1.07rem;
  margin-top: 10px;
  margin-bottom: 0;
  letter-spacing: 1px;
  box-shadow: 1px 2px 6px #ecb95e13;
}

/* ===========================
   TEAM/ABOUT CARDS
   =========================== */
.team .content-wrapper .text-section {
  background: #fff9ef;
  border-radius: 16px;
  border: 1px dashed #e0b08a;
  padding: 19px 22px 13px 24px;
  color: var(--vintage-dark);
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.08rem;
}
.team .content-wrapper strong {
  color: var(--vintage-orange);
  font-weight: 700;
}

/* ===========================
   FAQ & QUICK LINKS RETRO CARDS
   =========================== */
.faq .content-wrapper ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq .content-wrapper ul li {
  padding: 18px 20px 13px 20px;
  background: #fff6e0;
  border-radius: 16px;
  border: 1.5px dotted var(--vintage-brown);
  box-shadow: 0 2px 9px #dcc49e29;
  margin-bottom: 0;
  font-size: 1.05rem;
}
.quick-links {
  margin-top: 18px;
  font-size: 1.02rem;
  color: var(--vintage-secondary);
}
.quick-links a {
  color: var(--vintage-brown);
  background: #fff9ef;
  border-radius: 6px;
  padding: 5px 10px;
  margin-right: 5px;
  border: 1px solid #ecd5bd;
}

/* ===========================
   CTA
   =========================== */
.cta .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 18px;
}
.cta .btn-primary {
  font-size: 1.19rem;
  margin-bottom: 6px;
}

/* ===========================
   FOOTER
   =========================== */
footer {
  background: var(--vintage-primary);
  padding: 40px 0 24px 0;
  box-shadow: 0 -2px 16px #9E66352b;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  margin-bottom: 14px;
}
.footer-links a {
  color: #fff8e8;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.91;
  letter-spacing: 0.3px;
  transition: color 0.1s, opacity 0.15s;
}
.footer-links a:hover, .footer-links a:focus {
  color: var(--vintage-orange);
  opacity: 1;
}
.legal-notice {
  color: #ECD5B9;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 0.98rem;
  opacity: 0.78;
  margin-top: 6px;
  text-align: center;
}

/* ===========================
   FORMS (simple styling for contact/thank you)
   =========================== */
.form .btn-primary, .confirmation .btn-primary {
  margin-top: 16px;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 900px) {
  .container {
    padding: 0 10px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 7px;
  }
  .section, .features, .testimonials, .services, .about, .contact, .form, .cta, .privacy_policy, .gdpr_info, .cookie_policy, .terms_of_service, .confirmation {
    margin-bottom: 32px;
    padding: 25px 6px;
  }
  .content-wrapper, .content-grid, .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .card {
    padding: 16px 9px 12px 13px;
  }
  .testimonial-card {
    padding: 13px 10px 13px 13px;
    font-size: 1rem;
  }
}

@media (max-width: 540px) {
  .hero {
    padding: 22px 0 18px 0;
    margin-bottom: 28px;
  }
  h1 {
    font-size: 1.4rem;
    margin-bottom: 14px;
  }
  h2 {
    font-size: 1.07rem;
    margin-bottom: 7px;
  }
}

/* ===========================
   MICRO-INTERACTIONS
   =========================== */
.card, .testimonial-card, .btn-primary, .mobile-menu, .mobile-menu-toggle {
  transition: box-shadow 0.14s, transform 0.16s, background 0.14s, color 0.14s;
}
a {
  transition: color 0.18s, text-shadow 0.15s;
}
.btn-primary {
  transition: background 0.13s, color 0.14s, transform 0.13s;
}

/* ===========================
   COOKIE CONSENT BANNER
   =========================== */
#cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--vintage-orange);
  color: #21190C;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  box-shadow: 0 -2px 36px #AE73310e;
  z-index: 1003;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 12px 22px 12px;
  flex-wrap: wrap;
  gap: 16px;
  animation: cookie-slide-in 0.7s cubic-bezier(.63,.15,.62,1.24);
}
@keyframes cookie-slide-in {
  0% { transform: translateY(120%); opacity: 0; }
  80% { opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}
#cookie-banner p {
  margin: 0 16px 0 0;
  color: #2F2714;
  font-size: 0.99rem;
}
#cookie-banner .cookie-btn {
  background: #fff9ef;
  color: var(--vintage-brown);
  border: none;
  border-radius: 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 7px 18px;
  margin-left: 8px;
  box-shadow: 1px 2px 7px #dfa36b27;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.16s, color 0.15s, box-shadow 0.13s;
}
#cookie-banner .cookie-btn:focus,#cookie-banner .cookie-btn:hover {
  background: var(--vintage-brown);
  color: #fff9ef;
}

/* ========= COOKIE SETTINGS MODAL ========= */
#cookie-modal {
  display: none;
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(32,20,7,0.25);
  z-index: 1100;
  align-items: center;
  justify-content: center;
}
#cookie-modal.open {
  display: flex;
  animation: popup-fade-in 0.2s cubic-bezier(.53,.27,.36,.98);
}
@keyframes popup-fade-in {
  from { opacity: 0; } to { opacity: 1; }
}
#cookie-modal .modal-content {
  background: var(--vintage-accent);
  color: var(--vintage-dark);
  border-radius: 18px;
  box-shadow: 0 9px 42px #C9A15118;
  min-width: 325px;
  max-width: 98vw;
  padding: 34px 26px 28px 26px;
  margin: 0 10px;
  display: flex;
  flex-direction: column;
  gap:18px;
  font-family: 'Roboto', Arial, sans-serif;
  position: relative;
}
#cookie-modal h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--vintage-secondary);
  font-size: 1.4rem;
  margin-bottom: 13px;
}
#cookie-modal label {
  font-size: 1rem;
  margin-right: 0;
}
#cookie-modal input[type=checkbox] {
  accent-color: var(--vintage-brown);
  margin-right: 7px;
}
#cookie-modal .cookie-category {
  margin-bottom: 10px;
  padding: 6px 0 6px 0;
}
#cookie-modal .cookie-category.essential {
  font-weight: 700;
  color: var(--vintage-primary);
}
#cookie-modal .modal-actions {
  display: flex;
  gap: 13px;
  margin-top: 15px;
}
#cookie-modal .cookie-btn {
  background: var(--vintage-orange);
  color: #fff9ef;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  padding: 8px 17px 8px 17px;
  cursor: pointer;
  box-shadow: 0 1px 7px #BEA37F18;
  transition: background 0.18s, color 0.14s;
}
#cookie-modal .cookie-btn:focus,#cookie-modal .cookie-btn:hover {
  background: var(--vintage-brown);
  color: #fff;
}
#cookie-modal .modal-close {
  position: absolute;
  top: 9px; right: 13px;
  background: none;
  border: none;
  font-size: 1.4em;
  color: #B97328;
  cursor: pointer;
  padding: 0 8px 1px 8px;
}
#cookie-modal .modal-close:focus,#cookie-modal .modal-close:hover {
  color: var(--vintage-secondary);
}

@media (max-width: 540px) {
  #cookie-modal .modal-content {
    padding: 21px 7px 19px 10px;
    min-width: 0;
    font-size: 0.98rem;
  }
}

/* ===========================
   RETRO PATTERNS FOR NOSTALGIC FEELING
   =========================== */
.section::before, .about::before, .team .content-wrapper .text-section::before {
  content: '';
  display: block;
  position: absolute;
  top: -11px; left: 22px;
  width: 74px;
  height: 15px;
  background: repeating-linear-gradient(90deg, #DDC7AE, #DDC7AE 8px, transparent 8px, transparent 15px);
  opacity: 0.35;
  border-radius: 9px;
  pointer-events: none;
  z-index: 1;
}

.team .content-wrapper .text-section::before {
  top: -7px;
  left: 11px;
  width: 80px;
  opacity: 0.26;
}
/* Decorative soft drop-shade for primary section below hero */
.section, .about, .services, .features {
  box-shadow: 0 12px 38px #F8C2782e;
}

/* ===========================
   MODAL/BANNER OVERLAY & Z-INDEX
   =========================== */
.mobile-menu, .mobile-menu-toggle, #cookie-banner, #cookie-modal {
  z-index: 1003;
}
header { z-index: 30; }

/* ===========================
   ACCESSIBILITY UTILITY
   =========================== */
:focus-visible {
  outline: 2.5px dashed var(--vintage-brown);
  outline-offset: 2px;
}

/* ===========================
   CUSTOM SCROLLBAR (Retro)
   =========================== */
body {
  scrollbar-color: var(--vintage-brown) var(--vintage-accent);
  scrollbar-width: thin;
}
::-webkit-scrollbar {
  width: 7px;
  background: var(--vintage-accent);
}
::-webkit-scrollbar-thumb {
  background: var(--vintage-brown);
  border-radius: 8px;
}

/* ===========================
   MISC
   =========================== */
::selection {
  background: #ffe5ba;
  color: var(--vintage-dark);
}

/* ===========================
   END
   =========================== */
