/* =============================================================
   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, main, menu, nav, section {
  display: block;
}
html { line-height: 1.15; -webkit-text-size-adjust: 100%; }
body { line-height: 1.5; background: #F6F7FB; color: #333; font-family: 'Roboto', Arial, sans-serif; }
*, *:before, *:after { box-sizing: inherit; }
ol, ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; transition: color .2s; }
img { max-width: 100%; display: block; border: 0; }
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  margin-bottom: 16px;
  font-weight: bold;
  text-shadow: 1px 1px 0 #f8deae, 2px 2px 0 #fff1c9;
}
h1 { font-size: 2.6rem; letter-spacing: -0.03em; margin-bottom: 20px; color: #1B2947; }
h2 { font-size: 2rem; margin-bottom: 18px; color: #b3542c; }
h3 { font-size: 1.4rem; color: #624a09; margin-bottom: 16px; }
h4, h5, h6 { color: #1B2947; }

/* =============================================================
   RETRO VINTAGE COLOR PALETTE/BRAND
   ============================================================= */
:root {
  --color-primary: #1B2947;
  --color-secondary: #FFB800;
  --color-accent: #F6F7FB;
  --color-dark: #45332b;
  --color-light: #fffcef;
  --color-soft-orange: #ffe7bf;
  --color-vintage-mustard: #ffe18c;
  --color-vintage-red: #d95a3b;
  --color-vintage-blue: #2581b4;
  --color-card-border: #d3c5a3;
}

/* =============================================================
   BODY & TYPOGRAPHY
   ============================================================= */
body {
  min-height: 100vh;
  background: var(--color-accent) url('../assets/bg-retro-pattern.png') repeat top left;
  letter-spacing: 0.01em;
}
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
p, ul, ol, li, span, a {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.12rem;
  line-height: 1.8;
  color: var(--color-dark);
  letter-spacing: 0.02em;
}
strong { font-weight: 700; }

/* Typography SCALING */
@media (max-width: 768px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.3rem; }
  .container { padding-left: 10px; padding-right: 10px; }
}

/* =============================================================
   SECTION, LAYOUT & FLEXBOX SPACING
   ============================================================= */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-light);
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 rgba(97, 63, 37, 0.07), 0 0px 2px #e2c47a;
}
.section { /* for layout extension if class used */
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: var(--color-light);
  border: 2px solid var(--color-card-border);
  margin-bottom: 20px;
  border-radius: 14px;
  box-shadow: 1px 3px 10px 0 rgba(170,122,57,0.11);
  padding: 24px 20px;
  transition: transform 0.13s, box-shadow 0.13s;
  position: relative;
}
.card:hover {
  transform: translateY(-4px) scale(1.03) rotate(-1deg);
  box-shadow: 3px 6px 24px 0 rgba(170,122,57,0.21);
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: var(--color-soft-orange);
  border-radius: 24px;
  border: 2px solid #dabc7c;
  box-shadow: 0 3px 16px 0 rgba(140, 110, 60, 0.11); 
  color: #222;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 18px;
}
.text-section {
  margin-bottom: 24px;
  padding: 16px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.icons-row {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 24px 0 10px 0;
  flex-wrap: wrap;
}

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

/* =============================================================
   HEADER: MAIN NAV & BRAND
   ============================================================= */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-primary);
  padding: 20px 0 14px 0;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 101;
  min-height: 80px;
  box-shadow: 0 4px 9px rgba(80,62,20,0.08);
}
header > a img {
  height: 40px;
  border-radius: 0;
  box-shadow: none;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: 36px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--color-light);
  padding: 6px 12px;
  border-radius: 6px;
  transition: background .12s, color .15s;
  position: relative;
}
.main-nav a:not(.cta-btn):hover, .main-nav a:not(.cta-btn):focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cta-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  font-size: 1rem;
  padding: 8px 26px;
  background: var(--color-secondary);
  color: var(--color-primary)!important;
  border-radius: 24px;
  border: 2px solid #ffe18c;
  box-shadow: 0 4px 16px 0 rgba(255,184,0,0.12);
  letter-spacing: 0.03em;
  margin-left: 22px;
  transition: background .18s, color .15s, box-shadow .17s;
}
.cta-btn:hover, .cta-btn:focus {
  background: #ff9500;
  color: #fffbee !important;
  box-shadow: 0 6px 32px 0 rgba(255,184,0,0.25);
}

@media (max-width: 980px) {
  .main-nav {
    gap: 13px;
    margin-left: 10px;
  }
  .cta-btn {
    margin-left: 12px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
}

/* =============================================================
   MOBILE MENU (HAMBURGER)
   ============================================================= */
.mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  color: var(--color-primary);
  border: none;
  font-size: 2.2rem;
  padding: 2px 10px 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .18s, color .13s;
  z-index: 122;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #efc34a;
  color: var(--color-dark);
}
@media (max-width: 900px) {
  .mobile-menu-toggle {
    display: block;
  }
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(27,41,71,0.97);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.76, 0.17, 0.4, 0.87);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100vw;
  min-height: 100vh;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 24px 0 0 24px;
  background: none;
  color: #ffe18c;
  border: none;
  font-size: 2.3rem;
  cursor: pointer;
  align-self: flex-start;
  transition: color .15s;
  z-index: 10001;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #fff8e4;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin: 50px 0 0 36px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-light);
  font-size: 1.25rem;
  padding: 11px 14px;
  border-radius: 8px;
  background: none;
  transition: background .14s, color .15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
@media (min-width: 901px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* =============================================================
   FOOTER
   ============================================================= */
footer {
  background: var(--color-primary);
  padding-top: 32px;
  padding-bottom: 28px;
  box-shadow: 0 -4px 18px 0 rgba(80,62,20,0.08);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #ffe18c;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 2px;
  transition: color .12s;
  padding: 1px 0;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #FFB800;
}
footer img {
  height: 36px;
  margin-bottom: 16px;
}
.contact-block {
  min-width: 220px;
  color: #fffceb;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.contact-block p {
  color: #ffe18c;
  font-size: 1rem;
  margin-bottom: 3px;
}
@media (max-width: 840px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* =============================================================
   BUTTONS & INTERACTIVE
   ============================================================= */
button, .cta-btn, .mobile-menu-close, .mobile-menu-toggle {
  outline: none;
  border: none;
}
button:focus-visible, .cta-btn:focus-visible {
  outline: 2px dashed var(--color-secondary);
  outline-offset: 3px;
}
button, .cta-btn {
  cursor: pointer;
  transition: background .18s, color .14s, transform .11s;
}
a:focus { outline: 2px dashed var(--color-vintage-blue); outline-offset: 2px; }

/* =============================================================
   ICONS - RETRO STYLE
   ============================================================= */
.icons-row img {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 1px 1px #ffe18c);
  background: #fffbe4;
  padding: 7px;
  border-radius: 14px;
  border: 2px solid #ffe18c;
}

/* =============================================================
   CUSTOM LIST STYLES - NOSTALGIC BULLETS
   ============================================================= */
ul, .text-section ul {
  list-style: none;
  margin-bottom: 0;
  padding-left: 0;
}
ul li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 14px;
  font-size: 1.1rem;
}
ul li:before {
  content: '\25C6';
  color: var(--color-vintage-red);
  position: absolute;
  left: 0;
  top: 3px;
  font-size: 1.18em;
  text-shadow: 1px 1px 0 #ffe18c;
}
section ul li strong { color: #ab4817; }

/* =============================================================
   LINK STYLES
   ============================================================= */
a {
  transition: color 0.16s, text-decoration 0.14s;
}
a:hover, a:focus {
  color: var(--color-vintage-blue);
  text-decoration: underline dashed;
}
.cta-btn[href^="mailto:"] {
  display: inline-block;
  margin-top: 10px;
}

/* =============================================================
   TESTIMONIALS
   ============================================================= */
.testimonial-card {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.18rem;
  font-style: italic;
  border-left: 10px solid var(--color-vintage-red);
  background: linear-gradient(90deg, #ffe7bf 0%, #faf6eb 100%);
  box-shadow: 0 4px 18px 0 rgba(70,30,3,0.08);
  margin-bottom: 24px;
  color: #552202;
  padding: 26px 24px 20px 26px;
  align-items: flex-start;
  position: relative;
}
.testimonial-card span {
  align-self: flex-end;
  font-size: 0.98rem;
  font-style: normal;
  color: #9f6d1c;
  margin-top: 12px;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.03em;
}
@media (max-width: 600px) {
  .testimonial-card {
    font-size: 1rem;
    padding: 18px 10px 16px 12px;
  }
}

/* =============================================================
   FORMS (for 'dodaj-wydarzenie' & contact)
   ============================================================= */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  padding: 9px 11px;
  border-radius: 7px;
  border: 2px solid #ffe18c;
  background: #fffbee;
  margin-bottom: 17px;
  width: 100%;
  box-sizing: border-box;
  transition: border .15s, box-shadow .13s;
}
input:focus, textarea:focus, select:focus {
  border: 2px solid var(--color-primary);
  box-shadow: 0 0 0 1.5px var(--color-secondary);
  outline: none;
}
label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.02rem;
  color: #5a4921;
  margin-bottom: 5px;
  font-weight: 700;
}

/* =============================================================
   COOKIE CONSENT BANNER & MODAL
   ============================================================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fde7b7;
  color: #614800;
  border-top: 2px solid #ffb800;
  box-shadow: 0 -4px 32px #b3813b33;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  justify-content: center;
  z-index: 20100;
  padding: 22px 10px 24px 10px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  animation: bannerIn 0.7s cubic-bezier(.69,0,.41,1.01);
}
@keyframes bannerIn {
  from { transform: translateY(140%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner__buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 18px;
  outline: none;
  border: none;
  background: var(--color-secondary);
  color: #1B2947;
  margin-left: 0;
  margin-right: 0;
  border: 2px solid #ffe18c;
  box-shadow: 0 2px 7px 0 rgba(185,144,43,0.10);
  cursor: pointer;
  transition: background .17s, color .15s, transform .13s;
}
.cookie-banner button:hover,
.cookie-banner button:focus {
  background: #ffae00;
  color: #fffbe3;
}
.cookie-banner button:last-child {
  background: #FFD8CD;
  color: #802b23;
  border: 2px solid #e7a598;
}
.cookie-banner button:last-child:hover {
  background: #ffc3b0;
  color: #471004;
}
@media (max-width: 700px) {
  .cookie-banner { flex-direction: column; gap: 12px; padding: 10px 4px; }
  .cookie-banner__buttons { gap: 9px; }
}

.cookie-modal__overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(50,39,23,0.56);
  z-index: 20250;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: modalIn .4s;
}
@keyframes modalIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fffbe3;
  border-radius: 32px;
  box-shadow: 0 8px 44px -8px #b3813b66;
  border: 3px solid #ffe18c;
  padding: 32px 32px 26px 36px;
  max-width: 420px;
  width: 90vw;
  color: #45332b;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: modalContentIn .6s cubic-bezier(.65,0,.34,1.1);
  position: relative;
}
@keyframes modalContentIn {
  from { transform: scale(0.92) translateY(30px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.28rem;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 10px;
  color: #9f6000;
  text-shadow: none;
}
.cookie-options-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 11px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 17px;
  font-size: 1.06rem;
}
.cookie-category input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--color-vintage-red);
  border-radius: 7px;
  border: 2px solid #b3542c;
  margin-right: 6px;
}

.cookie-modal .modal-actions {
  margin-top: 22px;
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
}
.cookie-modal button,
.cookie-modal .cookie-modal__close {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 7px 20px;
  border-radius: 15px;
  border: none;
  background: #ffe18c;
  color: var(--color-primary);
  cursor: pointer;
  transition: background .1s, color .1s;
}
.cookie-modal button:hover,
.cookie-modal button:focus {
  background: #ffb800;
  color: #fffbe3;
}
.cookie-modal__close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  color: #b36e16;
  font-size: 2rem;
  padding: 2px 7px;
  border-radius: 7px;
  border: 2px solid transparent;
}
.cookie-modal__close:hover,
.cookie-modal__close:focus {
  background: #ffe18c;
  color: #45332b;
  border: 2px solid #b36e16;
}
@media (max-width: 600px) {
  .cookie-modal { padding: 13px 5vw 12px 5vw; }
}

/* =============================================================
   SPECIAL VINTAGE/RETRO EFFECTS (PATTERNS, SHADOWS, BORDERS)
   ============================================================= */
section {
  position: relative;
  overflow: visible;
  border: 3px double #ffe18c;
  background-image: repeating-linear-gradient(-45deg, transparent 0 18px, #ffe18c 19px 22px, transparent 23px 54px);
  background-size: 230px 54px;
}
section:nth-child(even) {
  background-image: repeating-linear-gradient(45deg, transparent 0 24px, #f3dd9c 25px 26px, transparent 27px 54px);
  background-size: 192px 54px;
}
.card {
  background: #fffdf7;
  border: 2px dashed #ffe18c;
}

/* =============================================================
   UTILITIES
   ============================================================= */
.hide { display: none !important; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* =============================================================
   RESPONSIVE MOBILE TWEAKS
   ============================================================= */
@media (max-width: 768px) {
  .container { max-width: 98vw; padding-left: 6px; padding-right: 6px; }
  section { margin-bottom: 34px; border-radius: 13px; padding: 16px 3px 20px 5px; }
  h1, h2 { margin-bottom: 8px; }
  .text-section, .content-wrapper { gap: 10px; }
  .icons-row img { width: 40px; height: 40px; }
  .cta-btn { padding: 7px 10vw; min-width: 52vw; }
  .footer-nav, .contact-block { font-size: 0.97rem; }
}

/* =============================================================
   RETRO MICROINTERACTIONS/ANIMATIONS
   ============================================================= */
.cta-btn, .card, .mobile-menu-toggle, .main-nav a, .mobile-nav a, .cookie-banner button {
  transition: background .14s, color .14s, box-shadow .13s, transform .12s;
}
.cta-btn:active { transform: scale(0.97); }
button:active, .mobile-menu-close:active { transform: scale(0.96) rotate(-2deg); }
.card:active { transform: scale(0.985) rotate(1deg); }

/* =============================================================
   PRINT STYLES
   ============================================================= */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal__overlay { display: none !important; }
  section { page-break-inside: avoid !important; }
}

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