/* =======================
   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,
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;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
  background: #FBF9F6;
}
*, *:before, *:after {
  box-sizing: inherit;
}
:focus-visible {
  outline: 2px solid #ECCFA6;
  outline-offset: 2px;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  color: #2C3E33;
  background: #FBF9F6;
  line-height: 1.6;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
  border: none;
}
a {
  color: #2C3E33;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #ECCFA6;
}
ul, ol {
  margin-left: 1.5rem;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  text-align: left;
  padding: 12px 16px;
}
th {
  background: #2C3E33;
  color: #fff;
  font-weight: 700;
}
td {
  background: #fff;
  color: #2C3E33;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: #2C3E33;
  font-weight: 700;
  letter-spacing: 0.04em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  line-height: 1.2;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
  line-height: 1.2;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
p {
  margin-bottom: 16px;
}
.subheadline {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.15rem;
  color: #90857F;
  font-weight: 400;
  margin-bottom: 24px;
}
strong {
  font-weight: 700;
  color: #2C3E33;
}

/* =======================
   LUXURY_COLOR VARIABLES
   ======================= */
:root {
  --color-primary: #2C3E33;
  --color-secondary: #90857F;
  --color-accent: #ECCFA6;
  --color-bg: #FBF9F6;
  --color-white: #fff;
  --color-dark: #262925;
  --color-neutral: #C8B09F;
  --color-shadow: rgba(44,62,51,0.04);
  --radius-base: 18px;
  --radius-btn: 26px;
  --shadow-card: 0 6px 16px rgba(44,62,51,0.09);
  --shadow-btn: 0 3px 10px rgba(236,207,166,0.21);
  --transition-fast: 0.22s cubic-bezier(0.7,0,0.3,1);
}

/* =======================
   CONTAINER & LAYOUT
   ======================= */
.container {
  width: 100%;
  max-width: 1240px;
  padding: 0 24px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: var(--radius-base);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-fast);
  padding: 28px 24px;
}
.card:hover {
  box-shadow: 0 4px 28px rgba(44,62,51,0.14);
}
.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;
  margin-bottom: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 28px;
  background: #fff;
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
  border-left: 6px solid var(--color-accent);
  transition: box-shadow var(--transition-fast), border var(--transition-fast);
}
.testimonial-card:hover {
  box-shadow: 0 6px 32px rgba(44,62,51,0.16);
  border-left: 6px solid var(--color-primary);
}
.testimonial-card p {
  color: var(--color-dark);
  font-size: 1.1rem;
  font-family: 'Roboto', Arial, sans-serif;
}
.customer-name {
  color: var(--color-secondary);
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =======================
   HEADER & NAVIGATION
   ======================= */
header {
  background: var(--color-white);
  box-shadow: 0 2px 12px rgba(44,62,51,0.07);
  position: sticky;
  top: 0;
  z-index: 60;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 20px 0;
  flex-wrap: wrap;
}
.main-nav a {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-primary);
  letter-spacing: 0.02em;
  padding: 6px 12px;
  border-radius: 5px;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}
.main-nav img {
  height: 36px;
  width: auto;
  margin-right: 18px;
}
.cta-primary {
  background: var(--color-accent);
  color: var(--color-primary) !important;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 8px 28px;
  border: none;
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-btn);
  margin-left: 10px;
  cursor: pointer;
  transition: background var(--transition-fast), box-shadow var(--transition-fast), color var(--transition-fast);
  outline: none;
  display: inline-block;
}
.cta-primary:hover,
.cta-primary:focus {
  background: var(--color-primary);
  color: #fff !important;
  box-shadow: 0 6px 24px rgba(44,62,51,0.16);
}

/* =======================
   MOBILE NAVIGATION
   ======================= */
.mobile-menu-toggle {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: var(--color-accent);
  color: var(--color-primary);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  margin-left: auto;
  font-size: 2rem;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: background var(--transition-fast);
  z-index: 170;
}
.mobile-menu-toggle:focus {
  background: var(--color-neutral);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100vh;
  background: rgba(44,62,51, 0.96);
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.7,0,0.35,1);
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  padding: 20px 20px 10px 20px;
  cursor: pointer;
  align-self: flex-end;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 32px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid rgba(236,207,166,0.15);
  transition: color var(--transition-fast), background var(--transition-fast);
  display: block;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--color-accent);
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
}

@media (min-width: 1025px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

@media (min-width: 1025px) {
  .main-nav {
    display: flex !important;
  }
}

/* =======================
   HERO SECTION
   ======================= */
.hero {
  background: linear-gradient(180deg, #fbf9f6 70%, var(--color-neutral) 100%);
  border-radius: 0 0 var(--radius-base) var(--radius-base);
  box-shadow: 0 2px 32px rgba(44,62,51,0.06);
  margin-bottom: 60px;
  position: relative;
  padding: 60px 0 50px 0;
}
.hero .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 24px;
}
.hero h1 {
  font-size: 2.4rem;
}
.hero .cta-primary {
  font-size: 1.1rem;
}

/* =======================
   FEATURES, SERVICES, CARDS
   ======================= */
.features {
  background: none;
}
.features ul, .feature_grid, .service_list, .benefit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.features ul li, .feature_grid li, .service_list li, .benefit-list li {
  background: var(--color-white);
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-card);
  padding: 20px 24px 18px 24px;
  transition: box-shadow var(--transition-fast), border var(--transition-fast);
  border: 1.5px solid rgba(236,207,166,0.12);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.features ul li:hover,
.feature_grid li:hover,
.service_list li:hover {
  box-shadow: 0 6px 28px rgba(44,62,51,0.12);
  border: 1.5px solid var(--color-accent);
}
.features ul li img, .feature_grid li img {
  width: 56px;
  height: 56px;
  margin-bottom: 4px;
}
.price {
  color: var(--color-accent);
  font-family: 'Playfair Display', serif;
  font-size: 1.09rem;
  font-weight: 700;
  margin-top: 6px;
  background: rgba(236,207,166,0.16);
  border-radius: 22px;
  padding: 3px 17px;
  align-self: flex-start;
}

/* Pricing Table */
.pricing_table {
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-base);
  margin: 24px 0 36px 0;
  overflow: hidden;
}
.pricing_table caption {
  background: var(--color-secondary);
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 12px 20px;
}
.pricing_table tr:not(:first-child):nth-child(even) td {
  background: #f7f1e7;
}
.pricing_table th, .pricing_table td {
  font-size: 1rem;
  border-bottom: 1px solid #eee;
}

/* Feature Highlights */
.feature-highlights {
  background: var(--color-neutral);
  padding: 20px 24px;
  border-radius: var(--radius-base);
  color: #fff;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.06rem;
  margin-top: 18px;
  box-shadow: var(--shadow-card);
}

/* =======================
   TEXT & ABOUT SECTIONS
   ======================= */
.text-section {
  margin-bottom: 26px;
}
.text-section ul {
  list-style: disc inside;
  color: var(--color-primary);
  margin-bottom: 10px;
  margin-left: 0;
}
.text-section li {
  margin-bottom: 8px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
}

/* =======================
   TIPS, FAQ, HOW TO, ADVICE
   ======================= */
.tips-grid, .how-to-guides, .faq, .advice-list {
  margin-bottom: 28px;
}
.faq dt {
  font-weight: bold;
  color: var(--color-primary);
  margin-top: 12px;
}
.faq dd {
  margin-left: 0;
  margin-bottom: 10px;
  color: var(--color-secondary);
}

/* =======================
   FOOTER
   ======================= */
footer {
  background: var(--color-primary);
  color: #ffffff;
  padding: 56px 0 20px 0;
  margin-top: 60px;
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  min-width: 200px;
}
.footer-brand img {
  width: 90px;
  height: auto;
  margin-bottom: 5px;
}
.footer-brand p {
  color: #ECF0ED;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 170px;
}
.footer-nav a {
  color: #FBF9F6;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  text-decoration: none;
  transition: color var(--transition-fast);
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-accent);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 230px;
  font-size: 0.99rem;
}
.footer-contact img {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  vertical-align: middle;
  display: inline-block;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
}
.footer-social a {
  background: var(--color-accent);
  border-radius: 50%;
  padding: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}
.footer-social a:hover {
  background: var(--color-secondary);
}
.footer-social img {
  width: 24px;
  height: 24px;
}

@media (max-width: 860px) {
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
    padding: 0 10px;
  }
}

/* =======================
   COOKIE CONSENT BANNER
   ======================= */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 300;
  padding: 28px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 -2px 16px rgba(44,62,51,0.08);
  border-top: 2px solid var(--color-accent);
  gap: 16px;
  animation: cookieSlideIn 0.55s cubic-bezier(0.6,0,0.3,1);
  font-family: 'Roboto', Arial, sans-serif;
}
@keyframes cookieSlideIn {
  from {
    transform: translateY(100%);
    opacity: 0.7;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.cookie-consent-banner p {
  color: var(--color-primary);
  text-align: center;
  font-size: 1rem;
  margin-bottom: 0;
}
.cookie-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 5px;
}
.cookie-btn {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-accent);
  border: none;
  border-radius: var(--radius-btn);
  padding: 8px 28px;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.cookie-btn.cookie-accept {
  background: var(--color-accent);
}
.cookie-btn.cookie-accept:hover {
  background: var(--color-primary);
  color: #fff;
}
.cookie-btn.cookie-reject {
  background: #ecedef;
  color: var(--color-primary);
}
.cookie-btn.cookie-reject:hover {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-btn.cookie-settings {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  box-shadow: none;
}
.cookie-btn.cookie-settings:hover {
  background: var(--color-secondary);
  color: #fff;
  border-color: var(--color-secondary);
}

/* Cookie Preferences Modal */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(44,62,51,0.38);
  z-index: 340;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInBG 0.3s;
}
@keyframes fadeInBG {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  padding: 36px 30px;
  border-radius: var(--radius-base);
  min-width: 310px;
  max-width: 95vw;
  box-shadow: var(--shadow-card);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 360;
  animation: cookieModalIn 0.35s cubic-bezier(0.7,0,0.3,1);
}
@keyframes cookieModalIn {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--color-primary);
  font-size: 1.7rem;
  cursor: pointer;
}
.cookie-modal h2 {
  font-size: 1.45rem;
  color: var(--color-primary);
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-category input[type=checkbox] {
  accent-color: var(--color-accent);
  width: 19px;
  height: 19px;
  border-radius: 5px;
}
.cookie-category label {
  font-size: 1rem;
  color: var(--color-primary);
}
.cookie-category span {
  color: var(--color-secondary);
  margin-left: 9px;
}

/* Essential cookies always enabled */
.cookie-category.essential label:after {
  content: '(zawsze aktywne)';
  color: var(--color-secondary);
  font-size: 0.98em;
  margin-left: 6px;
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}

/* =======================
   MISCELLANEOUS & DETAILS
   ======================= */
::-webkit-input-placeholder { color: #90857F; }
::-moz-placeholder { color: #90857F; }
:-ms-input-placeholder { color: #90857F; }
::placeholder { color: #90857F; }

hr {
  border: none;
  border-top: 1.5px solid #e7ddd2;
  margin: 30px 0;
}

blockquote {
  border-left: 5px solid var(--color-accent);
  margin: 18px 0;
  padding-left: 20px;
  color: var(--color-secondary);
  font-style: italic;
}

/* =======================
   RESPONSIVENESS
   ======================= */
@media (max-width: 1100px) {
  .container {
    max-width: 98vw;
    padding: 0 10px;
  }
}
@media (max-width: 900px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .hero { padding: 30px 0 25px 0; }
}
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
  h1 {
    font-size: 1.5rem;
  }
  .container, .footer-container {
    padding: 0 4vw;
    max-width: 100vw;
  }
  .content-wrapper {
    gap: 22px;
  }
  .section {
    margin-bottom: 32px;
    padding: 18px 2vw;
  }
  .hero {
    padding: 22px 0 18px 0;
    border-radius: 0 0 18px 18px;
    margin-bottom: 28px;
  }
  .hero h1 {
    font-size: 1.24rem;
  }
  .main-nav,
  .footer-container {
    flex-direction: column !important;
    align-items: flex-start;
    gap: 12px;
  }
  .features ul, .feature_grid, .service_list, .benefit-list {
    gap: 14px;
  }
  .testimonial-card {
    padding: 20px 12px;
  }
}
@media (max-width: 550px) {
  .footer-container {
    padding: 0 2vw;
    gap: 15px;
  }
  .card, .feature-highlights, .about, .feature_grid li, .service_list li {
    padding: 14px 7px !important;
  }
  .service_list li, .feature_grid li {
    font-size: 0.95rem;
  }
  .testimonials {
    padding-left: 0; padding-right: 0;
  }
}

/* ========================
   FLEXBOX UTILITY CLASSES
   ======================== */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-12 { gap: 12px; }
.gap-24 { gap: 24px; }

/* ========================
   VISUAL MICRO-INTERACTIONS
   ======================== */
.button, button, .cta-primary {
  transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), border var(--transition-fast), transform 0.13s;
}
.button:active, button:active, .cta-primary:active,
.cookie-btn:active {
  transform: scale(0.96);
}
.card:hover,
.feature_grid li:hover,
.service_list li:hover,
.testimonial-card:hover {
  transition: box-shadow 0.20s cubic-bezier(0.13,0.42,0.23,1.12);
}

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

/* ========================
   A11Y – HIDE FOR SCREENREADERS
   ======================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
