/* ================================================== */
/*  1. 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,
main, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0; padding: 0; border: 0;
  vertical-align: baseline;
  background: transparent;
  box-sizing: border-box;
}
html { box-sizing: border-box; font-size: 100%; }
*, *:before, *:after { box-sizing: inherit; }
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  background-color: #fff;
  color: #212529;
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input { font: inherit; }
button { cursor: pointer; background: none; border: none; outline: none; }

/* ================================================== */
/*  2. CSS Variables (Brand Colors & Fonts)           */
/* ================================================== */
:root {
  --color-primary: #28527a;
  --color-secondary: #43aa8b;
  --color-accent: #f4f1de;
  --color-bg: #fff;
  --color-light: #f7f8fa;
  --color-grey: #e7e7e7;
  --color-text: #212529;
  --color-subtle: #888;
  --color-danger: #b90434;
  --border-radius: 12px;
  --shadow-card: 0 2px 12px rgba(40, 82, 122, 0.08), 0 1.5px 5px rgba(67,170,139,0.04);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* ================================================== */
/*  3. Layout Containers & General Spacing Patterns   */
/* ================================================== */
.container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* Utility Spacing */
.mb-20 { margin-bottom: 20px !important; }
.mb-32 { margin-bottom: 32px !important; }
.mt-32 { margin-top: 32px !important; }
.gap-24 { gap: 24px !important; }
.gap-20 { gap: 20px !important; }
.gap-16 { gap: 16px !important; }
.gap-8  { gap: 8px !important; }

/* ================================================== */
/*  4. Typography & Hierarchy                        */
/* ================================================== */
h1, .h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4rem;
  letter-spacing: -1px;
  color: var(--color-primary);
  margin-bottom: 24px;
  line-height: 1.15;
}
h2, .h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.75rem;
  color: var(--color-primary);
  margin-bottom: 18px;
  line-height: 1.18;
}
h3, .h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--color-secondary);
  margin-bottom: 12px;
  line-height: 1.2;
}
h4, .h4 { font-size: 1rem; font-weight: 500; }
p, ul, ol, blockquote, dl, dd {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 12px;
}
ul, ol { padding-left: 18px; }
li { margin-bottom: 8px; }
strong { font-weight: 600; }
blockquote {
  border-left: 4px solid var(--color-primary);
  padding-left: 18px;
  margin: 0 0 12px;
  color: var(--color-primary);
  font-style: italic;
  font-size: 1.07rem;
}

.hero h1, .hero .h1 {
  font-size: 2.6rem;
  color: var(--color-primary);
}
.hero-sub {
  color: var(--color-secondary);
  font-size: 1.2rem;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-weight: 400;
}

/* ================================================== */
/*  5. Minimalist Button Styles                       */
/* ================================================== */
.cta-primary, .cta-secondary {
  display: inline-block;
  padding: 0.85em 1.7em;
  border-radius: var(--border-radius);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-align: center;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  font-size: 1rem;
  box-shadow: 0 1px 6px rgba(40,82,122,0.10);
  border: none;
  outline: none;
}
.cta-primary {
  background: var(--color-primary);
  color: #fff;
  border: 1px solid var(--color-primary);
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--color-secondary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(40,82,122,0.20);
}
.cta-secondary {
  background: #fff;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
  border-color: var(--color-secondary);
  box-shadow: 0 2px 8px rgba(67, 170, 139, 0.13);
}

/* Feature, Card, Testimonial Minimalism */
.card-container, .feature-grid, .blog-list {
  display: flex; flex-wrap: wrap; gap: 24px;
}
.card, .feature, .team-profile, .testimonial-card, .newsletter-signup, .blog-list > article, .featured-post {
  background: var(--color-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  padding: 24px 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s, transform 0.13s;
}
.card:hover, .feature:hover, .testimonial-card:hover, .blog-list > article:hover, .featured-post:hover {
  box-shadow: 0 4px 20px rgba(40,82,122,0.13);
  transform: translateY(-2px) scale(1.01);
}

.feature-grid { gap: 24px; }
.feature {
  flex: 1 1 230px;
  min-width: 210px;
  align-items: flex-start;
  text-align: left;
  gap: 12px;
}
.feature img { width: 42px; height: 42px; margin-bottom: 10px; }

.newsletter-signup {
  background: var(--color-accent);
  border: 1px solid #ede9df;
  gap: 12px;
}

/* Card/Section Structure Utilities */
.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: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  min-width: 240px;
  max-width: 460px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s;
}
.testimonial-card blockquote {
  color: var(--color-primary);
  font-style: italic;
  text-align: center;
  font-size: 1.09rem;
  margin-bottom: 0;
  border: 0;
  padding: 0 16px;
}
.testimonial-meta {
  font-size: 0.97rem;
  color: var(--color-secondary);
  font-family: var(--font-display);
  font-weight: 400;
  text-align: center;
}
.rating-summary {
  background: var(--color-accent);
  border-radius: var(--border-radius);
  padding: 18px 16px;
  margin: 32px 0 0 0;
}
.rating-summary h3 {
  margin-bottom: 10px;
}

.team-profile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--color-accent);
  border: 1px solid #ebeacd;
}

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

/* Blog & Featured Post */
.blog-list {
  width: 100%;
  gap: 24px;
}
.blog-list > article {
  flex: 1 1 290px;
  min-width: 260px;
  border-left: 4px solid var(--color-secondary);
}
.featured-post {
  border-left: 4px solid var(--color-primary);
}

/* CTA section inside content */
.cta-section {
  margin-top: 32px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

/* ================================================== */
/*  6. Header, Navigation, Main & Footer              */
/* ================================================== */
header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-grey);
  padding: 0;
  z-index: 60;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
header img { height: 44px; width: auto; }

.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  padding: 2px 0;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-primary);
  position: relative;
  transition: color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-secondary);
}
.main-nav .cta-primary {
  margin-left: 12px;
  margin-right: 0;
}

footer {
  border-top: 1px solid var(--color-grey);
  background: #fff;
  padding: 38px 0 18px 0;
  font-size: 0.98rem;
}
footer .container {
  padding-top: 0;
  padding-bottom: 0;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: flex-start;
  justify-content: space-between;
}
footer .footer-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
footer .footer-nav a {
  color: var(--color-secondary);
  font-family: var(--font-display);
  font-size: 0.99rem;
  font-weight: 500;
  transition: color 0.18s;
}
footer .footer-nav a:hover {
  color: var(--color-primary);
}
footer .contact-details p, .contact-details img {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.94rem;
  color: var(--color-subtle);
  margin: 0 0 8px 0;
}
footer .newsletter-signup {
  min-width: 220px;
  flex: 1 1 250px;
}
footer img { height: 36px; }

/* ================================================== */
/*  7. Mobile Navigation Hamburger & Overlay          */
/* ================================================== */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--color-primary);
  background: none;
  border: none;
  z-index: 102;
  transition: color 0.2s;
  margin-left: auto;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  color: var(--color-secondary);
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(244, 241, 222, 0.97);
  z-index: 200;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0 0;
  overflow-y: auto;
  transition: transform 0.4s cubic-bezier(0.87, 0, 0.13, 1);
  transform: translateX(-100%);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 28px 24px 16px 0;
  font-size: 2.2rem;
  color: var(--color-secondary);
  z-index: 222;
  background: none; border: none;
  transition: color 0.15s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--color-primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 100%;
  align-items: flex-start;
  padding: 0 32px;
}
.mobile-nav a {
  color: var(--color-primary);
  font-size: 1.25rem;
  font-family: var(--font-display);
  font-weight: 500;
  padding: 7px 0;
  margin-bottom: 8px;
  border-radius: 8px;
  transition: color 0.18s, background 0.10s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  color: var(--color-secondary);
  background: var(--color-accent);
}

/* Hamburger - show on mobile, hide main-nav */
@media (max-width: 990px) {
  .main-nav { display: none !important; }
  .mobile-menu-toggle { display: block; }
  .mobile-menu { display: flex; }
}
@media (min-width: 991px) {
  .main-nav { display: flex !important; }
  .mobile-menu, .mobile-menu.open { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* Layout correction for mobile menu overlay */
@media (max-width: 768px) {
  .mobile-menu {
    padding-top: 0px;
  }
  .mobile-nav {
    padding: 0 14vw;
  }
}

/* ================================================== */
/*  8. Cookie Consent Banner + Modal Styles           */
/* ================================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 3000;
  background: #fff;
  color: var(--color-text);
  box-shadow: 0 -2px 16px rgba(40, 82, 122, 0.10);
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 100vw;
  transition: transform 0.3s;
}
.cookie-banner.hide {
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-banner .cookie-banner-text {
  max-width: 760px;
  font-size: 0.99rem;
  text-align: center;
}
.cookie-banner-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.cookie-btn {
  padding: 0.65em 1.3em;
  font-family: var(--font-display);
  font-size: 1rem;
  border: none;
  border-radius: 24px;
  margin: 0 2px;
  background: var(--color-secondary);
  color: #fff;
  font-weight: 600;
  transition: background 0.16s, color 0.16s, box-shadow 0.2s;
  box-shadow: 0 1.5px 5px rgba(67, 170, 139, 0.12);
}
.cookie-btn.settings {
  background: var(--color-primary);
}
.cookie-btn.reject {
  background: #f4f1de;
  color: var(--color-secondary);
  border: 1.5px solid var(--color-secondary);
}
.cookie-btn:focus, .cookie-btn:hover {
  background: var(--color-primary);
  color: #fff !important;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #fff1f1;
  color: var(--color-danger);
  border-color: var(--color-danger);
}

/* Cookie Modal */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 3200;
  inset: 0;
  background: rgba(40,82,122,0.12);
  animation: fadeIn 0.22s;
  display: flex;
  justify-content: center;
  align-items: center;
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 28px rgba(40,82,122,0.12);
  min-width: 310px;
  max-width: 90vw;
  padding: 30px 22px 24px 22px;
  margin: auto;
  position: relative;
  z-index: 3400;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: slideUp 0.25s cubic-bezier(0.4,0,0.4,1);
}
@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1;}
}
.cookie-modal-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--color-primary);
  cursor: pointer;
  z-index: 3600;
}
.cookie-modal h2 { font-size: 1.26rem; margin-bottom: 6px; }
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-accent);
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 1rem;
}
.cookie-category label {
  font-family: var(--font-body);
}
.cookie-category input[type=checkbox] {
  accent-color: var(--color-secondary);
  width:18px; height:18px;
  margin-left: 10px;
}
.cookie-category.essential input { display: none; }
.cookie-category.essential label:after {
  content: "(wymagane)";
  color: var(--color-subtle);
  margin-left: 4px;
  font-size: 0.94em;
}
.cookie-modal-actions {
  margin-top: 10px;
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}

/* ================================================== */
/*  9. Miscellaneous & Utility                        */
/* ================================================== */
.hero {
  min-height: 38vh;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  padding: 48px 0;
}
.hero .container { display: flex; align-items: center; justify-content: center; }
.hero .content-wrapper {
  align-items: flex-start;
  gap: 22px;
}

.contact-info ul {
  display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px;
}
.contact-info li { display: flex; align-items: center; gap: 8px; }

.faq, dl { margin-top: 18px; }
dt { font-family: var(--font-display); color: var(--color-primary); font-weight: 600; margin-bottom: 3px; margin-top: 14px; }
dd { margin-left: 16px; margin-bottom: 8px; }

/* -------------------------------------------------- */
/* NO ABSOLUTE LAYOUT/CONTENT CARDS, ONLY DECORATIVE! */
/* -------------------------------------------------- */

/* ================================================== */
/* 10. Responsive Design & Flexbox Alignment           */
/* ================================================== */
@media (max-width: 1200px) {
  .container { max-width: 99vw; }
}
@media (max-width: 990px) {
  .footer .content-wrapper, .content-wrapper {
    gap: 24px;
  }
}
@media (max-width: 900px) {
  .footer .content-wrapper, .content-wrapper {
    flex-wrap: wrap;
    gap: 24px;
  }
}
@media (max-width: 800px) {
  .footer .content-wrapper, .content-wrapper {
    flex-direction: column;
    gap: 24px;
  }
}
@media (max-width: 768px) {
  html { font-size: 98%; }
  .container { padding-left: 8px; padding-right: 8px; }
  .section { padding: 26px 6px; margin-bottom: 34px; }
  .hero { padding: 30px 0 22px 0; }
  .hero h1 { font-size: 2rem; }
  h1, .h1 { font-size: 2rem; }
  h2, .h2 { font-size: 1.28rem; }
  h3, .h3 { font-size: 1.08rem; }
  .content-wrapper { gap: 18px; }
  .card-container, .feature-grid, .content-grid, .blog-list {
    flex-direction: column;
    gap: 20px;
  }
  .testimonial-card {
    max-width: 100%;
    padding: 16px 6px;
    font-size: 1em;
  }
  .contact-info ul { gap: 5px; }
  footer .content-wrapper { gap: 18px; }
}
@media (max-width: 480px) {
  .hero { min-height: auto; padding: 18px 0; }
  .section { padding-left: 2px; padding-right: 2px; margin-bottom: 22px; }
  .footer .content-wrapper { gap: 8px; }
}

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

/* DON'T USE grid, break-inside, columns, etc. */

/* ================================================== */
/*  11. Focus Outlines & Accessibility                */
/* ================================================== */
a, button, .cta-primary, .cta-secondary, .cookie-btn {
  outline: none;
}
a:focus-visible, button:focus-visible, .cta-primary:focus-visible, .cta-secondary:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 3px;
}

/* ================================================== */
/*  END OF MINIMALIST FLEXBOX CSS                     */
/* ================================================== */
