/* ================= Reset & Base =================== */
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;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #FAF7F3;
  color: #29313A;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: #192A43;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus,
a:hover {
  text-decoration: underline;
  color: #C76B43;
}
ul, ol {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}

/* ================= Brand Variables =================== */
:root {
  --color-primary: #192A43;
  --color-secondary: #70909D;
  --color-accent: #F5F7FB;
  --color-background: #FAF7F3;
  --color-warm-1: #FFE7D2;
  --color-warm-2: #FFD7C3;
  --color-warm-3: #F8CFC1;
  --color-cta: #C76B43;
  --color-success: #389465;
  --color-danger: #D9534F;
  --color-neutral: #E9EEF2;
  --color-shadow: rgba(73,43,14,0.08);
  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 32px;
  --shadow-s: 0 1px 4px var(--color-shadow);
  --shadow-m: 0 4px 16px var(--color-shadow);
  --shadow-card: 0 2px 12px rgba(73,43,14,0.10);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* ================= Layout Structure =================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 8px;
  margin-bottom: 8px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.text-center {
  text-align: center;
  align-items: center;
  justify-content: center;
}

/* =================== Typography ===================== */
h1, .h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -1px;
  margin-bottom: 18px;
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 10px;
}
h4, .h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 8px;
}
p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #29313A;
  margin-bottom: 12px;
  line-height: 1.7;
}
strong {
  font-weight: 700;
  color: var(--color-primary);
}
blockquote {
  font-family: var(--font-body);
  font-style: italic;
  background: var(--color-neutral);
  color: #333;
  border-left: 4px solid var(--color-cta);
  padding: 16px 18px;
  border-radius: var(--radius-s);
  margin-bottom: 10px;
  box-shadow: 0 1px 4px var(--color-shadow);
}

/* =================== Spacing & Sections =================== */
section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
  width: 100%;
  background: transparent;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* =================== Flex Patterns =================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  padding: 24px 22px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.2s;
}
.card:hover,
.card:focus-within {
  box-shadow: 0 8px 32px rgba(77,45,10,0.13);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background-color: var(--color-warm-1);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  margin-bottom: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 14px 0;
}

ul, ol {
  margin-left: 0;
  padding-left: 0;
}
ul li, ol li {
  position: relative;
  margin-bottom: 16px;
  padding-left: 36px;
  font-size: 1rem;
  font-family: var(--font-body);
  color: #29415E;
  display: flex;
  align-items: center;
  min-height: 32px;
  gap: 10px;
}
ul li img {
  width: 28px;
  height: 28px;
  margin-right: 10px;
  border-radius: 8px;
  box-shadow: 0 1px 6px var(--color-shadow);
  background: var(--color-accent);
}

/* =================== Header & Navigation =================== */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 10px var(--color-shadow);
  position: sticky;
  top: 0;
  z-index: 101;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  gap: 28px;
}
header a img {
  height: 48px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-primary);
  padding: 7px 14px;
  border-radius: var(--radius-s);
  transition: background 0.2s, color 0.2s;
}
.main-nav a.cta.primary {
  background-color: var(--color-cta);
  color: #fff;
  font-weight: 600;
  margin-left: 10px;
  box-shadow: 0 1px 4px var(--color-shadow);
  transition: box-shadow 0.2s, background 0.2s;
}
.main-nav a.cta.primary:hover,
.main-nav a.cta.primary:focus {
  background-color: #ad522b;
  color: #fff;
  box-shadow: 0 4px 16px var(--color-shadow);
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--color-warm-2);
  color: #C76B43;
}

/* =================== Mobile Navigation =================== */
.mobile-menu-toggle {
  display: none;
  background: var(--color-cta);
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 120;
  cursor: pointer;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #ad522b;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(25, 42, 67, 0.94);
  color: #fff;
  z-index: 250;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(0.5,0,0.3,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2.2rem;
  border: none;
  align-self: flex-end;
  margin: 6px 28px 20px 0;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  color: #FFD7C3;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  align-items: flex-start;
  margin-left: 32px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #fff;
  padding: 10px 0;
  margin-right: auto;
  border: none;
  border-radius: var(--radius-s);
  box-sizing: border-box;
  width: 100%;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-warm-2);
  color: var(--color-primary);
}

@media (max-width: 992px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 8px;
  }
  header .container {
    gap: 6px;
    padding: 10px 8px;
  }
}

/* =========== Footer =================== */
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 40px 0 24px 0;
  font-size: 1rem;
  border-top-left-radius: var(--radius-l);
  border-top-right-radius: var(--radius-l);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-start;
  gap: 32px;
  justify-content: space-between;
}
.footer-logo {
  flex: 1 1 140px;
}
.footer-logo img {
  height: 44px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 2 1 220px;
  min-width: 140px;
}
.footer-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  border-radius: var(--radius-s);
  padding: 4px 12px;
  transition: background 0.2s, color 0.2s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  background: var(--color-warm-1);
  color: var(--color-cta);
}
.contact-summary {
  flex: 2 1 240px;
  font-size: 0.96rem;
  line-height: 1.6;
  opacity: 0.93;
}
.contact-summary p { color: #F8CFC1; margin-bottom: 6px; }

.copyright {
  width: 100%;
  text-align: center;
  font-size: 0.93rem;
  margin-top: 32px;
  color: #ffe6da;
}

/* =========== Cards, Article, Features ================ */
article {
  background: #fff;
  padding: 24px 18px;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
  transition: box-shadow 0.18s;
}
article:hover { box-shadow: 0 6px 36px var(--color-shadow); }

.feature-item strong {
  color: #C76B43;
  font-weight: 600;
}
section > .container > h2, section > .container > h1 {
  margin-bottom: 24px;
  text-align: left;
}

/****** Lists with icons: / values ******/
.content-wrapper ul li img {
  min-width: 28px;
  min-height: 28px;
  margin-right: 12px;
}

/* ========= CTA Buttons ============ */
.cta, button, .btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  padding: 12px 36px;
  border-radius: var(--radius-m);
  background: var(--color-cta);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-s);
  cursor: pointer;
  letter-spacing: 0.08em;
  transition: background 0.17s, box-shadow 0.17s, transform 0.13s;
  outline: none;
}
.cta.secondary {
  background: var(--color-primary);
  color: #fff;
}
.cta.secondary:hover,
.cta.secondary:focus {
  background: var(--color-secondary);
}
.cta.primary:hover,
.cta.primary:focus, button.cta:focus {
  background: #ad522b;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 32px rgba(77,45,10,0.13);
}
.cta:active {
  background: #C97A4E;
  color: #fff;
}

/****** Other buttons (cookie banner etc.) ******/
.btn {
  padding: 10px 22px;
  font-size: 1rem;
  border-radius: var(--radius-m);
  border: none;
  margin: 6px 10px 6px 0;
  background: var(--color-secondary);
  color: #fff;
  box-shadow: var(--shadow-s);
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}
.btn.accept {
  background: var(--color-success);
}
.btn.reject {
  background: var(--color-danger);
}
.btn.settings {
  background: var(--color-cta);
}
.btn:hover,
.btn:focus {
  filter: brightness(0.98) saturate(0.95);
}

/* == Microinteractions/Transitions == */
*, *:before, *:after {
  transition-property: box-shadow, background, color, transform, opacity;
  transition-duration: 0.18s;
  transition-timing-function: cubic-bezier(0.5,0,0.3,1);
}

/* ========== Testimonials ============ */
.testimonial-card {
  background: var(--color-warm-1);
  color: #2E373C;
  font-family: var(--font-body);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  padding: 22px 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 550px;
}
.testimonial-card blockquote {
  background: transparent;
  color: #192A43;
  font-size: 1.1rem;
  border: none;
  padding: 0;
  margin-bottom: 6px;
  box-shadow: none;
}
.testimonial-card span {
  font-family: var(--font-display);
  font-weight: 500;
  color: #C76B43;
  margin-left: 10px;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .testimonial-card {
    max-width: 100%;
    padding: 16px 10px;
  }
}

/* ========== Cookie Consent Banner ============= */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  width: 100vw;
  background: #fff1e5;
  color: #3D2F21;
  box-shadow: 0 -2px 24px var(--color-shadow);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  padding: 22px 8vw 22px 8vw;
  font-size: 1rem;
  border-top-left-radius: var(--radius-l);
  border-top-right-radius: var(--radius-l);
  transition: transform 0.33s cubic-bezier(0.5,0,0.3,1), opacity 0.22s;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-text {
  flex: 3 1 280px;
  line-height: 1.7;
}
.cookie-banner .cookie-actions {
  flex: 2 1 180px;
  display: flex;
  flex-direction: row;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    gap: 16px;
    padding: 13px 3vw;
    font-size: 0.98rem;
  }
  .cookie-banner .cookie-actions {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(25, 42, 67, 0.56);
  z-index: 12001;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.28s cubic-bezier(0.5,0,0.3,1);
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: #fff;
  border-radius: var(--radius-m);
  box-shadow: 0 12px 80px var(--color-shadow);
  padding: 36px 28px 24px 32px;
  min-width: 340px;
  max-width: 94vw;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
.cookie-modal-content h3 {
  font-size: 1.5rem;
  margin-bottom: 13px;
}
.cookie-options {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-option {
  background: var(--color-accent);
  border-radius: var(--radius-s);
  padding: 12px 14px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  font-size: 1.03rem;
}
.cookie-option input[type='checkbox'] {
  accent-color: var(--color-cta);
  width: 19px;  height: 19px;
}
.cookie-option.essential input[type='checkbox'] {
  accent-color: var(--color-success);
}
.cookie-option.essential input[type='checkbox'] {
  display: none;
}
.cookie-option.essential label:after {
  content: ' (zawsze włączone)';
  color: #269c57;
  font-size: 0.97rem;
}
.cookie-modal-close {
  position: absolute;
  right: 12px;
  top: 10px;
  background: none;
  font-size: 2.1rem;
  color: #C76B43;
  border: none;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  transition: color 0.18s;
}
.cookie-modal-close:hover {
  color: #ad522b;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 18px;
}
@media (max-width: 600px) {
  .cookie-modal-content {
    padding: 18px 4vw 18px 4vw;
    min-width: 90vw;
    max-width: 97vw;
  }
}
/* ========== Responsive ========================= */
@media (max-width: 1100px) {
  .container { max-width: 98vw; }
}
@media (max-width: 992px) {
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  h1, .h1 { font-size: 1.9rem; }
  h2, .h2 { font-size: 1.3rem; }
  .section, section { padding: 32px 7px; }
  .content-wrapper, .content-grid, .card-container, .footer-nav, .feature-item { gap: 12px; }
  .text-image-section { flex-direction: column; gap: 12px; }
  .main-nav { display: none !important; }
  .testimonial-card { padding: 14px 6px; }
  .copyright { margin-top: 18px; font-size: 0.89rem; }
}

/* =================== Utility =================== */
.mt-20 { margin-top: 20px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mt-32 { margin-top: 32px !important; }
.hide { display: none !important; }
.show { display: block !important; }
.text-right { text-align: right !important; }
.text-left { text-align: left !important; }
.rounded {
  border-radius: var(--radius-m) !important;
}
.soft-shadow {
  box-shadow: var(--shadow-s) !important;
}

/* Accessibility: Focus Outline */
a, button, .cta {
  outline: none;
}
a:focus-visible, button:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--color-cta);
  outline-offset: 2px;
}

/* Forms (for contact) */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 10px 14px;
  border-radius: var(--radius-m);
  border: 1px solid var(--color-secondary);
  background: #fff;
  transition: border 0.18s;
  margin-bottom: 16px;
  width: 100%;
  box-shadow: 0 1px 6px var(--color-shadow);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-cta);
}

/* ============ Misc Polish Styles ============ */
body {
  scrollbar-width: thin;
  scrollbar-color: var(--color-secondary) var(--color-accent);
}
::-webkit-scrollbar {
  width: 8px;
  background: var(--color-accent);
}
::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
  border-radius: 6px;
}

/* =========== Thank you page/CTA ========== */
.content-wrapper.text-center {
  align-items: center;
  justify-content: center;
  gap: 20px;
}

/* ========== End of style.css ========== */
