/* -------------------------------------------------
   CSS RESET, NORMALIZER, & BASE TYPOGRAPHY
---------------------------------------------------*/
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, dd, dt, figure, figcaption, blockquote {
  margin: 0;
  padding: 0;
  font-weight: normal;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}
button {
  border: none;
  background: none;
  cursor: pointer;
}
:focus {
  outline: 2px solid #275879;
  outline-offset: 2px;
}

/* ---------------------------
   ROOT / DESIGN TOKEN SETUP
-----------------------------*/
:root {
  --primary: #275879;
  --secondary: #FFD966;
  --accent: #F4F4F4;
  --body-bg: #F9F7F2;
  --card-bg: #FFF;
  --text: #263139;
  --text-soft: #4E5D6C;
  --headline: #1A3248;
  --shadow: 0 4px 16px rgba(38,49,57,.07);
  --border: #E3E3DF;
  --radius: 12px;
  --brand-serif: 'Merriweather', Georgia, 'Times New Roman', Times, serif;
  --brand-sans: 'Quicksand', 'Roboto', Arial, sans-serif;
}

/* Fallbacks for fonts */
body {
  font-family: var(--brand-serif), "Times New Roman", Times, serif;
  background: var(--body-bg);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.65;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--brand-serif);
  color: var(--headline);
  font-weight: 600;
  letter-spacing: 0.005em;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 1.7rem;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

p, li, address {
  font-family: var(--brand-serif);
  font-size: 1rem;
  color: var(--text-soft);
  margin-bottom: 8px;
}
strong {
  font-weight: bold;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.section:last-child, section:last-child {
  margin-bottom: 0;
}

/* Card/Feature Layout Patterns */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
}
.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: 12px;
  padding: 24px 28px;
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(39, 88, 121, 0.06);
  margin-bottom: 24px;
  border: 1px solid var(--border);
  min-width: 240px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
}

.features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.features-list li {
  flex: 1 1 220px;
  min-width: 210px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px 20px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.features-list img {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
}

.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0;
  margin-top: 18px;
}
.services-list li {
  flex: 1 1 260px;
  min-width: 225px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 18px;  
  margin-bottom: 20px;
}

/* ----------------------------------
   HERO, CTA & CALL TO ACTION SECTIONS
-------------------------------------*/
.hero {
  background: linear-gradient(110deg, var(--secondary) 20%, #FFFBE8 100%);
  padding-top: 48px;
  padding-bottom: 48px;
  border-radius: 0 0 var(--radius) var(--radius);
}
.hero h1 {
  font-size: 2.8rem;
  line-height: 1.18;
  color: var(--primary);
  font-family: var(--brand-serif);
  margin-bottom: 16px;
}
.subheadline {
  font-size: 1.125rem;
  color: var(--text-soft);
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}

.call-to-action .container {
  background: var(--primary);
  border-radius: var(--radius);
}
.call-to-action .content-wrapper {
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #FFF;
  gap: 16px;
  padding: 28px 0;
}
.call-to-action h2, .call-to-action .cta-btn {
  color: #FFF;
}

/* -----------------------------------
    NAVIGATION & HEADER
-------------------------------------*/
header {
  background: var(--card-bg);
  box-shadow: 0 2px 12px rgba(35,44,64,.06);
  border-bottom: 1px solid var(--border);
  z-index: 1001;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 14px 0;
}
.logo-link img {
  height: 46px;
  margin-right: 32px;
  vertical-align: middle;
}
.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0 24px 0 0;
  align-items: center;
  font-family: var(--brand-sans);
}
.main-nav li a {
  color: var(--primary);
  font-size: 1.05em;
  letter-spacing: 0.01em;
  font-weight: 600;
  position: relative;
  padding: 2px 6px;
  transition: color .15s;
}
.main-nav li a:hover, .main-nav li a:focus {
  color: var(--secondary);
}
.cta-btn {
  font-family: var(--brand-serif);
  background: var(--primary);
  color: #fff;
  padding: 10px 28px;
  border-radius: 28px;
  font-size: 1.15rem;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(39,88,121,0.08);
  display: inline-block;
  transition: background .18s, transform .17s, color .14s;
  border: 1px solid var(--primary);
}
.cta-btn:hover, .cta-btn:focus {
  background: #17314B;
  color: var(--secondary);
  transform: translateY(-2px) scale(1.03);
}

/* -----------------------------
    MOBILE NAVIGATION
-------------------------------*/
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1200;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  padding: 12px 16px;
  font-size: 2rem;
  box-shadow: var(--shadow);
  transition: background 0.17s, transform 0.17s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: #143145;
  outline: 2px solid var(--secondary);
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 1300;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.61,.01,.34,1.16);
  box-shadow: 0 8px 32px 0 rgba(39,88,121,0.25);
  padding: 0 34px;
  will-change: transform;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: #fff;
  color: var(--primary);
  font-size: 2.2rem;
  align-self: flex-end;
  padding: 18px 0 9px 0;
  margin-bottom: 14px;
  cursor: pointer;
  border-radius: 9px;
  transition: background 0.19s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 28px;
}
.mobile-nav a {
  font-size: 1.35rem;
  font-family: var(--brand-serif);
  color: var(--primary);
  padding: 9px 0;
  border-radius: 4px;
  transition: background .18s, color .13s;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--secondary);
  color: #143145;
}

/* Show burger nav on small screens */
@media (max-width: 1020px) {
  .main-nav ul {
    display: none;
  }
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* Hide mobile menu on desktop */
@media (min-width: 1021px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* --------------------------------
    FOOTER STYLING
-----------------------------------*/
footer {
  background: var(--accent);
  border-top: 1px solid var(--border);
  padding: 36px 0 15px 0;
  font-family: var(--brand-serif);
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  font-size: 0.97rem;
}
.footer-nav a {
  color: var(--text-soft);
  padding: 2px 3px;
  transition: color 0.16s;
  border-radius: 3px;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--primary);
  background: var(--secondary);
}
.footer-contact {
  text-align: center;
  font-size: 1rem;
  color: var(--text-soft);
}
.footer-contact address,
.footer-contact a {
  color: var(--text-soft);
  font-style: normal;
  font-size: 0.98rem;
}
.footer-contact a:hover {
  text-decoration: underline;
  color: var(--primary);
}

/* --------------------------------
   TESTIMONIALS / CARDS
----------------------------------*/
.testimonials .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.testimonial-card p {
  color: #2c3041;
  font-size: 1.12em;
  margin-bottom: 12px;
  font-family: var(--brand-serif);
}
.testimonial-author {
  font-size: 0.95em;
  font-style: italic;
  color: var(--primary);
  align-self: flex-end;
  font-family: var(--brand-serif);
}

/* Feature card highlights (for index/about/urodziny) */
.feature {
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 20px;
  margin-bottom: 32px;
}
.feature h2 {
  color: var(--primary);
}
.feature img {
  width: 48px;
  margin-bottom: 14px;
}

/* --------------------------------
    PRICES / LIST SECTION
-----------------------------------*/
.prices {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 20px 8px 24px;
  font-size: 1rem;
  margin-bottom: 32px;
}
.prices li {
  margin-bottom: 12px;
}

/* --------------------------------
   THANK YOU SECTION
-----------------------------------*/
.thank-you-section {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding-top: 76px;
  padding-bottom: 32px;
  min-height: 310px;
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

/* ---------------------------------
    FORMS, ADDRESS, ETC.
-----------------------------------*/
address {
  margin-top: 10px;
  line-height: 1.9;
  font-size: 1rem;
  color: var(--text-soft);
  font-style: normal;
}

/* ---------------------------------
    POLICY & RULES SECTIONS
-----------------------------------*/
.policy-section, .cookie-policy-section, .rodo-section, .rules-section {
  background: var(--card-bg);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  margin-bottom: 60px;
  padding: 40px 20px;
}
.policy-section h1, .cookie-policy-section h1, .rodo-section h1, .rules-section h1 {
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 2rem;
}
.policy-section h2, .cookie-policy-section h2, .rodo-section h2, .rules-section h2 {
  margin-top: 18px;
  margin-bottom: 8px;
}
.policy-section ul, .cookie-policy-section ul, .rodo-section ul, .rules-section ul {
  list-style-type: disc;
  padding-left: 22px;
  margin-bottom: 16px;
}
.policy-section li, .cookie-policy-section li, .rodo-section li, .rules-section li {
  margin-bottom: 7px;
}

/* ---------------------------------
    COOKIE CONSENT BANNER & MODAL
-----------------------------------*/
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  width: 100%;
  z-index: 1600;
  background: var(--card-bg);
  color: var(--text);
  box-shadow: 0 -2px 16px rgba(39,88,121,.09);
  padding: 18px 18px 18px 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 1rem;
  font-family: var(--brand-serif);
  transition: transform 0.28s ease;
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner p {
  flex: 1 1 180px;
  margin-bottom: 0;
}
.cookie-banner-btns {
  display: flex;
  gap: 14px;
}
.cookie-btn {
  padding: 7px 23px;
  border-radius: 23px;
  background: var(--primary);
  color: #fff;
  font-family: var(--brand-serif);
  font-weight: bold;
  border: none;
  font-size: 1rem;
  margin-left: 0;
  transition: background .18s, color .13s;
  box-shadow: 0 1px 6px rgba(39,88,121,0.04);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #143145;
  color: var(--secondary);
}
.cookie-btn.secondary {
  background: var(--secondary);
  color: var(--primary);
  border: 1px solid var(--primary);
  font-weight: 500;
}
.cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
  background: #fae37c;
}

/* Cookie settings modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 2000;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(39,88,121,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity .27s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: 0 6px 32px 0 rgba(25,52,90,0.20);
  padding: 40px 26px 28px 26px;
  min-width: 320px;
  max-width: 370px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: var(--brand-serif);
  color: var(--text);
  animation: fadeIn .43s cubic-bezier(.76,.01,.39,.99);
}
@keyframes fadeIn {
  from {transform: translateY(80px); opacity: 0;}
  to {transform: translateY(0); opacity: 1;}
}
.cookie-modal h2 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--accent);
  padding: 10px 14px;
  margin-bottom: 8px;
  border-radius: 6px;
}
.cookie-category label {
  font-size: 1rem;
  font-family: var(--brand-serif);
  font-weight: 500;
}
.cookie-category input[type="checkbox"] {
  width: 20px;
  height: 20px;
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 6px;
  justify-content: flex-end;
}
.cookie-modal .cookie-btn {
  min-width: 104px;
  padding: 9px 10px;
}

/* ---------------------------------
    RESPONSIVE DESIGN
-----------------------------------*/
@media (max-width: 768px) {
  h1 {
    font-size: 1.55rem;
  }
  h2 {
    font-size: 1.12rem;
  }
  .container {
    padding-left: 9px;
    padding-right: 9px;
  }
  .content-wrapper, .section, section, .feature, .policy-section, .cookie-policy-section, .rodo-section, .rules-section {
    padding: 18px 8px;
    border-radius: 9px;
    box-shadow: 0 3px 10px rgba(39,88,121,0.08), 0 6px 18px rgba(39,88,121,0.05);
  }
  .features-list, .card-container, .services-list, .testimonials .content-wrapper {
    flex-direction: column;
    gap: 16px;
  }
  .feature {
    padding: 20px 6px;
    margin-bottom: 20px;
  }
  .hero {
    padding-top: 26px;
    padding-bottom: 22px;
  }
  .testimonial-card {
    padding: 14px 12px;
    margin-bottom: 18px;
  }
  .call-to-action .content-wrapper {
    padding: 14px 0;
    font-size: 0.92rem;
  }
  .thank-you-section {
    padding-top: 40px; padding-bottom: 20px;
  }
  .mobile-menu {
    padding: 0 10px;
  }
  .cookie-modal {
    max-width: 98vw;
    min-width: unset;
    padding: 18px 8px 16px 8px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    padding: 12px 6px 12px 13px;
    font-size: 0.95rem;
  }
}

/* Adjust text-image-section for mobile */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* ---------------------------------
    MICRO-INTERACTIONS & TRANSITIONS
------------------------------------*/
.card, .feature-item, .feature, .testimonial-card, .prices, .policy-section, .cookie-policy-section, .rodo-section, .rules-section {
  transition: box-shadow .18s, transform .14s;
}
.card:hover, .feature-item:hover, .feature:hover, .testimonial-card:hover {
  box-shadow: 0 10px 30px 0 rgba(39,88,121,0.13);
  transform: translateY(-2px) scale(1.02);
}
a, .cta-btn, button, .cookie-btn {
  transition: background 0.16s, color 0.13s, box-shadow 0.13s, transform 0.13s;
}

/* ---------------------------------
    MISC
-----------------------------------*/
::-webkit-scrollbar {
  width: 10px;
  background: var(--card-bg);
}
::-webkit-scrollbar-thumb {
  background: #E9E4D8;
  border-radius: 8px;
}

/* Hide scrollbars on modals for iOS */
.cookie-modal, .mobile-menu.active {
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
}

/* Z-index layering for overlays */
.mobile-menu { z-index: 1300; }
.cookie-banner { z-index: 1600; }
.cookie-modal-overlay { z-index: 2000; }

/* ---------------------------------
    PRINT STYLES
-----------------------------------*/
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  .container, body { background: #fff !important; color: #000 !important; }
}

/* ---------------------------------
    END OF CSS
-----------------------------------*/
