/* ===============================
   LUXURY PREMIUM CSS FOR Mistrz Słowa
   =============================== */

/* 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;
}
html {
  scroll-behavior: smooth;
}
body {
  line-height: 1.6;
  background-color: #F2E8DC;
  color: #21242d;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #204166;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #FFB800;
}
ul, ol {
  padding-left: 22px;
  margin-bottom: 24px;
}
strong {
  font-weight: bold;
}

/* =========================
   BRAND FONTS
   ========================= */
h1, h2, h3, .footer-brand span {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
}
h1 {
  font-size: 2.75rem;
  font-weight: 700;
  color: #204166;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}
h2 {
  font-size: 2rem;
  font-weight: 600;
  color: #204166;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 16px;
  color: #204166;
}
p,li,span {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #21242d;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background-color: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 18px 2px rgba(32,65,102,0.05);
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 16px;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 2px 12px 0 rgba(32,65,102,0.07);
  transition: box-shadow 0.18s, transform 0.18s;
  padding: 28px 22px;
}
.card:hover {
  box-shadow: 0 6px 26px 0 rgba(32,65,102,0.17);
  transform: translateY(-4px) scale(1.025);
}

.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;
  background: #fff;
  border-left: 5px solid #FFB800;
  border-radius: 13px;
  box-shadow: 0 3px 18px 2px rgba(32,65,102,0.07);
  margin-bottom: 20px;
  transition: box-shadow 0.18s, border-color 0.18s;
}
.testimonial-card p {
  color: #222;
  font-size: 1.08rem;
  line-height: 1.7;
  font-style: italic;
}
.testimonial-card strong {
  color: #204166;
  font-size: 1rem;
}
.testimonial-card:hover {
  border-left: 5px solid #204166;
  box-shadow: 0 6px 18px 0 rgba(32, 65, 102, 0.19);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* ---------------------------------------
    HEADER & NAVIGATION
--------------------------------------- */
header {
  background: #fff;
  box-shadow: 0 1px 16px 0 rgba(32, 65, 102, 0.08);
  position: relative;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 18px;
}
nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
}
nav a {
  padding: 5px 0 5px 0;
  border-radius: 4px;
  position: relative;
  color: #204166;
  font-size: 1.02rem;
  transition: color 0.17s, background 0.17s;
}
nav a:not(.cta-btn):hover,
nav a:not(.cta-btn):focus {
  color: #FFB800;
  background: rgba(255,184,0,0.11);
}

/* CTA Button */
.cta-btn {
  background: #204166;
  color: #fff !important;
  padding: 11px 38px;
  border-radius: 28px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border: none;
  font-size: 1rem;
  box-shadow: 0 3px 14px 0 rgba(32,65,102,0.13);
  transition: background 0.21s, color 0.21s, box-shadow 0.18s, transform 0.18s;
  letter-spacing: 0.6px;
  position: relative;
  z-index: 1;
  cursor: pointer;
  outline: none;
  margin-left: 16px;
}
.cta-btn.secondary {
  background: #FFB800;
  color: #204166 !important;
  box-shadow: 0 2px 14px 0 rgba(255,184,0,0.12);
}
.cta-btn:hover, .cta-btn:focus {
  background: #FFB800;
  color: #204166 !important;
  box-shadow: 0 8px 26px 0 rgba(32,65,102,0.17);
  transform: translateY(-2px) scale(1.02);
}
.cta-btn.secondary:hover, .cta-btn.secondary:focus {
  background: #204166;
  color: #fff !important;
}

.mobile-menu-toggle {
  background: #204166;
  color: #fff;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  justify-content: center;
  align-items: center;
  transition: background 0.18s, transform 0.2s;
  z-index: 130;
  margin-left: 18px;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #FFB800;
  color: #204166;
  outline: 2px solid #FFB800;
  transform: scale(1.08);
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(32, 41, 70, 0.98);
  z-index: 120;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(0.86,0,0.07,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 36px 32px 32px 30px;
}
.mobile-menu.open {
  transform: translateX(0);
  box-shadow: 0 8px 54px 6px rgba(32,41,70,0.24);
}
.mobile-menu-close {
  background: #FFB800;
  color: #204166;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.25rem;
  align-self: flex-end;
  cursor: pointer;
  margin-bottom: 18px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: #fff;
  color: #FFB800;
  outline: 2px solid #FFB800;
  transform: scale(1.12);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 20px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.2rem;
  padding: 9px 0 9px 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border-radius: 3px;
  transition: color 0.15s, background 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #FFB800;
  background: rgba(255,184,0,0.12);
}

/* Hide main nav on mobile */
@media (max-width: 991px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 992px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ===================
      MAIN STRUCTURE
   =================== */
main {
  min-height: 75vh;
  margin-bottom: 48px;
}
section {
  margin-bottom: 60px;
  padding: 40px 0;
  display: flex;
  justify-content: center;
}
.section:last-child, section:last-child {
  margin-bottom: 0;
}

/* Variant content layouts   */
.info-text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 20px;
}
.contact-info {
  display: flex;
  flex-direction: row;
  gap: 36px;
  align-items: center;
  margin-bottom: 18px;
}
.contact-info > div {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-size: 1.08rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #204166;
}

/* =====================
    FOOTER DESIGN
====================== */
footer {
  background: #204166;
  color: #fff;
  padding: 38px 0 18px 0;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -4px 32px 0 rgba(32,65,102,0.15);
  width: 100%;
  z-index: 1;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 21px;
  margin-bottom: 12px;
}
.footer-brand img {
  max-height: 42px;
}
.footer-brand span {
  font-size: 1.05rem;
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.5px;
}
footer nav {
  display: flex;
  gap: 14px;
  margin-bottom: 10px;
}
footer nav a {
  color: #FFB800;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.98rem;
  font-weight: 500;
  transition: color 0.16s, background 0.16s;
  padding: 2px 9px;
  border-radius: 3px;
}
footer nav a:hover, footer nav a:focus {
  background: #fff;
  color: #204166;
}
.footer-contact {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  font-size: 1rem;
  color: #fff;
}
.footer-contact img {
  width: 18px;
  height: 18px;
}
.footer-credits {
  color: #aaa;
  font-size: 0.95rem;
  margin-top: 10px;
  letter-spacing: 0.4px;
}

/* =================================================================
   LUXURY ACCENTS (Gold, Shadow, Borders)
   ================================================================= */
hr {
  border: 0;
  border-top: 2px solid #FFB800;
  margin: 28px 0;
}
.section, .card, .testimonial-card {
  position: relative;
}
.section:before {
  content: '';
  display: block;
  position: absolute;
  top: -10px;
  left: 30px;
  width: 44px;
  height: 4px;
  background: #FFB800;
  border-radius: 2px 2px 8px 8px;
  z-index: 1;
  opacity: 0.70;
}
.card:before {
  content: '';
  display: none;
}

/* =====================
   LUXURY BUTTONS
   ===================== */
button, .cta-btn {
  cursor: pointer;
}

button:active, .cta-btn:active {
  transform: scale(0.98);
}

/* ================================
   FORMS (Newsletter Contact, etc.)
   ================================ */
input, textarea, select {
  background: #fff;
  font-family: 'Open Sans', Arial, sans-serif;
  border: 2px solid #204166;
  border-radius: 6px;
  padding: 12px 15px;
  font-size: 1rem;
  margin-bottom: 18px;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  border-color: #FFB800;
  outline: none;
  background: #f5f1e6;
  transition: border-color 0.15s, background 0.13s;
}
label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: #204166;
  margin-bottom: 6px;
}

/* =====================
   COOKIE BANNER & MODAL
======================= */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-top: 2px solid #FFB800;
  box-shadow: 0 -2px 24px 0 rgba(32,65,102,0.09);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px 28px;
  z-index: 900;
  font-size: 1rem;
  animation: cookieBannerAppear 0.7s ease;
}
@keyframes cookieBannerAppear {
  from { opacity: 0; transform: translateY(45px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner-text {
  flex: 1;
  color: #204166;
}
.cookie-banner-actions {
  display: flex;
  gap: 14px;
}
.cookie-btn {
  padding: 10px 24px;
  border-radius: 24px;
  border: none;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  background: #FFB800;
  color: #204166;
  margin-right: 4px;
  transition: background 0.19s, color 0.19s, box-shadow 0.18s;
  box-shadow: 0 2px 7px 0 rgba(255,184,0,0.08);
}
.cookie-btn.settings {
  background: #fff;
  color: #204166;
  border: 1px solid #FFB800;
}
.cookie-btn.reject {
  background: #204166;
  color: #fff;
  border: 1px solid #204166;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #204166 !important;
  color: #FFB800 !important;
  box-shadow: 0 4px 14px 0 rgba(32,65,102,0.14);
  outline: none;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #FFB800 !important;
  color: #204166 !important;
  border-color: #204166;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #FFB800 !important;
  color: #204166 !important;
  border-color: #FFB800;
}

.cookie-modal {
  position: fixed;
  left: 0; right: 0;
  top: 0; bottom: 0;
  background: rgba(32,41,70, 0.78);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInModal 0.7s cubic-bezier(0.86,0,0.07,1);
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  border-radius: 18px;
  padding: 38px 32px 22px 32px;
  min-width: 320px;
  max-width: 94vw;
  width: 400px;
  box-shadow: 0 13px 62px 0 rgba(32,41,70,0.18);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: popInModal 0.6s cubic-bezier(0.86,0,0.07,1);
}
@keyframes popInModal {
  from { transform: scale(0.80) translateY(50px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: #FFB800;
  color: #204166;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 1001;
  transition: background 0.16s, color 0.14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #204166;
  color: #FFB800;
  outline: 2px solid #FFB800;
}
.cookie-modal-title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.32rem;
  font-weight: 600;
  color: #204166;
}
.cookie-category {
  margin-bottom: 12px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 11px;
}
.cookie-category label {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #204166;
  font-size: 1rem;
  cursor: pointer;
}
.cookie-toggle {
  appearance: none;
  background: #F2E8DC;
  width: 38px;
  height: 22px;
  border: 2px solid #FFB800;
  border-radius: 16px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.15s;
}
.cookie-toggle:checked {
  background: #FFB800;
}
.cookie-toggle:before {
  content: '';
  display: block;
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.19s;
}
.cookie-toggle:checked:before {
  left: 19px;
}

.cookie-category.essential label {
  color: #aaa;
  font-style: italic;
}
.cookie-category.essential .cookie-toggle {
  background: #eee;
  border-color: #ccc;
  pointer-events: none;
  opacity: 0.65;
}

.cookie-modal-actions {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  margin-top: 16px;
}

/* =========================
   RESPONSIVE STYLES
   ========================= */
@media (max-width: 1199px) {
  .container {
    max-width: 98vw;
  }
  h1 {
    font-size: 2.15rem;
  }
  h2 {
    font-size: 1.35rem;
  }
}
@media (max-width: 991px) {
  h1 {
    font-size: 1.7rem;
    line-height: 1.13;
  }
  .section, section {
    padding: 28px 5px;
    margin-bottom: 38px;
  }
  .container {
    padding: 0 6px;
  }
  .footer-brand img {
    max-height: 32px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  h1 {
    font-size: 1.38rem;
  }
  h2 {
    font-size: 1.03rem;
  }
  .content-grid, .card-container, .features {
    flex-direction: column !important;
    gap: 16px !important;
  }
  .text-image-section, .testimonial-card, .footer-contact {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 20px !important;
  }
  .footer-brand {
    flex-direction: column !important;
    gap: 12px !important;
    align-items: flex-start !important;
  }
  .footer-contact {
    gap: 7px !important;
    font-size: 0.93rem;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 13px 10px 17px 12px;
    gap: 18px;
    font-size: 0.97rem;
  }
  .cookie-btn {
    font-size: 0.93rem;
    padding: 8px 14px;
  }
  .cookie-modal-content {
    min-width: 90vw;
    max-width: 97vw;
    padding: 22px 7vw 18px 7vw;
  }
}
@media (max-width: 520px) {
  .footer-brand img {
    max-height: 28px;
  }
  .footer-brand span {
    font-size: 0.92rem;
  }
  .cookie-banner {
    font-size: 0.92rem;
    padding: 8px 6px 12px 9px;
  }
}

/* =========================
    UTILITIES & MODIFIERS
   ========================= */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-24 { margin-top: 24px !important; }
.mb-24 { margin-bottom: 24px !important; }
.gap-12 { gap: 12px !important; }
.gap-24 { gap: 24px !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* ==========================
   ACCESSIBILITY FOCUS VISIBLE
============================ */
a:focus, button:focus, input:focus, .cta-btn:focus {
  outline: 2px solid #FFB800;
  outline-offset: 1px;
}

/* ==========================
   MISC OVERRIDES FOR LUXURY FEEL
============================ */
.card, .section, .testimonial-card, .cookie-modal-content {
  box-shadow: 0 3px 20px 2px rgba(32,65,102,0.09);
  /* Fine shadow for a "floating card" look */
}
.section {
  border: 1.5px solid #F2E8DC;
}

.card {
  border: 1.5px solid #eee;
}

.testimonial-card {
  border: 1.5px solid #F2E8DC;
}

.card strong, .feature-item strong, .content-wrapper strong {
  color: #204166;
  font-weight: bold;
}

/* =======================================
   OVERRIDES FOR GOLD ACCENTS
   ======================================= */
.card strong,
.section strong,
.cta-btn,
footer nav a,
.mobile-menu-close,
.mobile-menu-toggle,
.cookie-btn {
  letter-spacing: 0.4px !important;
}

/* =======================================
   LUXURY MICRO-INTERACTIONS
   ======================================= */
a, button, .cta-btn, .cookie-btn, .mobile-menu-close, .mobile-menu-toggle {
  transition: background 0.21s, color 0.16s, box-shadow 0.18s, border 0.16s, transform 0.16s;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 10px 34px 0 rgba(32,65,102,0.19);
  border-color: #FFB800;
  transition: box-shadow 0.19s, border-color 0.14s;
}

/* =======================================
   NO OVERLAP/PROPER SPACING ENFORCEMENT
   ======================================= */
.card, .testimonial-card, .feature-item, .section, .content-wrapper > *, .card-container > *, .content-grid > * {
  margin-bottom: 20px;
}
.content-wrapper > *:last-child,
.section > *:last-child,
.card-container > *:last-child,
.content-grid > *:last-child {
  margin-bottom: 0;
}

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