/* --- 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;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  background: #FFF6E5;
  color: #2D2D2D;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
*, *::before, *::after {
  box-sizing: inherit;
}
a {
  color: #BF3B31;
  text-decoration: none;
  transition: color 0.16s;
}
a:hover, a:focus {
  color: #294C37;
  outline: none;
}
ul, ol {
  list-style: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
}
address {
  font-style: normal;
}

/* --- FONT IMPORTS (for Montserrat and Roboto) --- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

/* --- ROOT VARIABLES --- */
:root {
  --primary: #BF3B31;
  --primary-dark: #951f17;
  --secondary: #294C37;
  --secondary-dark: #1d3a2a;
  --accent: #FFF6E5;
  --white: #fff;
  --shadow: 0 4px 18px rgba(47, 42, 52, 0.08), 0 1.5px 4px rgba(191, 59, 49, 0.13);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 32px;
  --transition: 0.3s cubic-bezier(.47,1.64,.41,.8);
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
h1 {
  font-size: 2.75rem;
  line-height: 1.1;
}
h2 {
  font-size: 2rem;
  color: var(--secondary);
  line-height: 1.2;
}
h3 {
  font-size: 1.35rem;
  color: var(--primary);
  line-height: 1.2;
  font-weight: 700;
}
h4, h5, h6 {
  font-weight: 700;
}
p, li, address {
  font-family: 'Roboto', Arial, sans-serif;
  color: #222;
  font-size: 1rem;
  margin-bottom: 12px;
}
strong {
  font-weight: 700;
  color: var(--primary);
}
em {
  font-style: italic;
  color: var(--secondary);
}
blockquote {
  margin: 0 0 8px 0;
  font-style: italic;
  color: #222;
  font-size: 1.1rem;
  border-left: 4px solid var(--primary);
  padding-left: 18px;
  font-family: 'Roboto', Arial, sans-serif;
}

/* --- CONTAINER --- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0; /* For contained layouts use .content-wrapper flex properties */
}

/* --- HEADER & NAV --- */
header {
  background: var(--white);
  box-shadow: 0 3px 14px rgba(191, 59, 49, 0.06);
  position: relative;
  z-index: 20;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 22px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 1rem;
  color: var(--secondary);
  letter-spacing: 0.05em;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.25s;
}
header nav a:hover, header nav a:focus {
  background: var(--primary);
  color: var(--white);
}

header img {
  max-height: 48px;
}

.cta {
  background: var(--primary);
  color: var(--white) !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  font-size: 1.08rem;
  text-transform: uppercase;
  border-radius: var(--radius)
;
  padding: 0.75em 2em;
  box-shadow: var(--shadow);
  transition: background var(--transition), transform var(--transition);
  letter-spacing: 0.02em;
  display: inline-block;
  margin-left: 16px;
}
.cta:hover, .cta:focus {
  background: var(--secondary);
  color: var(--accent) !important;
  transform: translateY(-2px) scale(1.03);
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: var(--white);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 2.2rem;
  z-index: 30;
  margin-left: 10px;
  transition: background var(--transition);
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--secondary);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--accent);
  box-shadow: 0 0 60px rgba(47, 42, 52, 0.13);
  z-index: 99;
  transform: translateX(-110vw);
  opacity: 0;
  transition: transform 0.37s cubic-bezier(.47,1.64,.41,.8), opacity 0.23s;
  padding: 40px 32px 32px 32px;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--secondary);
  color: var(--white);
  text-align: center;
  font-size: 2.5rem;
  border-radius: var(--radius-sm);
  padding: 8px 20px 10px 20px;
  margin-bottom: 18px;
  transition: background var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 1.1rem;
  color: var(--secondary);
  border-radius: var(--radius-sm);
  transition: background 0.17s, color 0.17s;
  padding: 13px 10px;
  width: 100%;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--primary);
  color: var(--white);
}

@media (max-width: 1100px) {
  header .container { flex-direction: row; gap: 10px; }
  header nav { gap: 12px; }
  .cta { margin-left: 6px; padding: 0.7em 1.4em; }
}
@media (max-width: 900px) {
  header .container nav, header .container .cta {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    margin-right: 0;
  }
}
@media (min-width: 900px) {
  .mobile-menu-toggle, .mobile-menu {
    display: none !important;
  }
}

/* --- MAIN LAYOUT & SECTIONS --- */
main {
  padding-top: 24px;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: var(--radius-lg);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: flex-start;
}
.section:last-of-type, section:last-of-type {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .section, section { padding: 24px 4px; }
}

/* --- CARDS AND FLEX LAYOUTS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 250px;
  max-width: 100%;
  transition: box-shadow var(--transition), transform 0.23s;
}
.card:hover {
  box-shadow: 0 7px 32px rgba(47,42,52,0.17), 0 2.5px 6px rgba(191, 59, 49, 0.19);
  transform: translateY(-4px) scale(1.025);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .content-grid {
    flex-direction: column;
    gap: 22px;
  }
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}
.features-grid > * {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px;
  min-width: 170px;
  flex: 1 1 180px;
  color: #222;
  font-weight: 500;
  font-size: 1.05rem;
  text-align: center;
  margin-bottom: 0;
  transition: box-shadow 0.24s, transform 0.21s;
}
.features-grid img {
  margin: 0 auto 10px auto;
  max-height: 56px;
}
.features-grid > *:hover {
  box-shadow: 0 7px 32px rgba(47,42,52,0.13), 0 2.5px 6px rgba(191, 59, 49, 0.14);
  transform: translateY(-2px) scale(1.015);
}
.features-grid > li, .features-grid > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
/* For category buttons (przepisy) */
.features-grid > li {
  background: var(--accent);
  color: var(--secondary);
  font-weight: 900;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: var(--radius-sm);
  box-shadow: none;
  padding: 16px 12px;
  font-size: 1.06rem;
  cursor: pointer;
  margin-bottom: 0;
  transition: background 0.14s, color 0.19s;
}
.features-grid > li:hover, .features-grid > li:focus {
  background: var(--primary);
  color: var(--white);
}

/* --- SPECIAL LISTS (Offer) --- */
ul:not(.features-grid) li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 0px;
}
ul:not(.features-grid) li strong {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-weight: bold;
}

/* --- SEARCH BAR --- */
.search-bar {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
  margin-top: 15px;
}
.search-bar label {
  font-weight: 700;
  margin-right: 5px;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--secondary);
}
.search-bar input[type="text"] {
  border: 2px solid var(--secondary);
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  background: var(--accent);
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  outline: none;
  transition: border 0.18s;
}
.search-bar input[type="text"]:focus {
  border: 2px solid var(--primary);
}
.search-bar button[type="button"], .search-bar button {
  background: var(--secondary);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 9px 20px;
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  font-size: 1.05rem;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, box-shadow 0.2s;
  box-shadow: 0 1.5px 4px rgba(41,76,55,0.11);
}
.search-bar button:hover, .search-bar button:focus {
  background: var(--primary);
  color: var(--accent);
}
@media (max-width: 600px) {
  .search-bar {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
}

/* --- TESTIMONIALS --- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 22px;
  background: var(--accent);
  border-left: 7px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: 0 2.5px 10px rgba(41,76,55,0.07);
  min-width: 250px;
  max-width: 800px;
  color: #222;
  font-size: 1.1rem;
  transition: box-shadow 0.16s;
}
.testimonial-card strong {
  color: var(--secondary);
}
.testimonial-card:hover {
  box-shadow: 0 5px 32px rgba(191,59,49,0.11), 0 2.5px 15px rgba(41,76,55,0.10);
}

@media (max-width: 600px) {
  .testimonial-card { padding: 15px; font-size: 1rem; }
}

/* --- FEATURE SECTION GENERAL --- */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- TEXT SECTION --- */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* --- SOCIAL MEDIA LINKS --- */
.social-media-links {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
}
.social-media-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  border-radius: 100px;
  width: 44px; height: 44px;
  transition: background 0.16s, transform 0.13s;
}
.social-media-links a:hover, .social-media-links a:focus {
  background: var(--primary);
  transform: scale(1.09);
}
.social-media-links img {
  max-width: 24px;
  max-height: 24px;
}

/* --- FOOTER --- */
footer {
  background: var(--secondary);
  color: var(--accent);
  padding: 48px 0 32px 0;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
}
footer .container {
  flex-direction: row;
  gap: 48px;
  justify-content: space-between;
  align-items: flex-start;
}
footer .brand-links,
footer .contact-info,
footer .social-media-links {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
footer .brand-links nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
footer .brand-links a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 3px 0px;
}
footer .brand-links a:hover, footer .brand-links a:focus {
  color: var(--primary);
}
footer address, footer a {
  color: var(--accent); opacity: 0.89;
  font-size: 0.98rem;
}
footer img {
  max-height: 38px;
  filter: brightness(0.95) contrast(1.09);
  margin-bottom: 4px;
}

@media (max-width: 850px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }
  footer .brand-links, footer .contact-info, footer .social-media-links {
    flex-direction: row;
    gap: 28px;
  }
}
@media (max-width: 620px) {
  footer .container {
    gap: 18px;
  }
  footer .brand-links, footer .contact-info, footer .social-media-links {
    flex-direction: column;
    gap: 12px;
  }
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-consent-banner {
  position: fixed;
  z-index: 1060;
  bottom: 0;
  left: 0; right: 0;
  width: 100vw;
  padding: 20px 28px 18px 28px;
  background: var(--accent);
  color: #2d2d2d;
  box-shadow: 0 -2px 16px rgba(41, 76, 55, 0.08);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  max-width: 100vw;
  animation: cookieBannerIn 0.68s cubic-bezier(.47,1.64,.41,.8) both;
}
@keyframes cookieBannerIn {
  from { transform: translateY(80px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner p {
  margin-bottom: 0;
  font-size: 1.05rem;
  color: #2b2b2b;
}
.cookie-consent-actions {
  display: flex;
  flex-direction: row;
  gap: 17px;
  margin-left: auto;
}
.cookie-btn {
  background: var(--primary);
  color: var(--white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.01rem;
  letter-spacing: 0.01em;
  border-radius: var(--radius-sm);
  border: none;
  padding: 0.7em 1.7em;
  margin-right: 0;
  transition: background 0.16s, color 0.16s, transform .15s;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.cookie-btn.secondary {
  background: var(--secondary);
  color: var(--accent);
}
.cookie-btn.settings {
  background: var(--accent);
  color: var(--primary);
  border: 2px solid var(--primary);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--secondary);
  color: var(--white);
  transform: scale(1.04);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--primary);
  color: var(--white);
  border-color: var(--secondary);
}
@media (max-width: 630px) {
  .cookie-consent-banner {
    flex-direction: column;
    gap: 13px;
    align-items: flex-start;
    padding: 13px 7px 12px 7px;
  }
  .cookie-consent-actions {
    margin-left: 0;
    gap: 10px;
  }
}

/* --- COOKIE MODAL --- */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(41,76,55,0.22);
  z-index: 1070;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieBackdropIn 0.38s linear both;
}
@keyframes cookieBackdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: var(--white);
  color: #222;
  border-radius: var(--radius-lg);
  padding: 38px 36px 30px 36px;
  box-shadow: 0 7px 42px rgba(41,76,55,0.15), 0 2.5px 4px rgba(191,59,49,0.11);
  max-width: 420px;
  width: 97vw;
  font-family: 'Roboto', Arial, sans-serif;
  display: flex;
  flex-direction: column;
  gap: 23px;
  animation: cookieModalIn 0.49s cubic-bezier(.47,1.64,.41,.8) both;
  z-index: 1100;
}
@keyframes cookieModalIn {
  from { transform:  scale(0.86) translateY(60px); opacity: 0.2; }
  to   { transform:  scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.38rem;
  color: var(--primary);
  margin-bottom: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background: var(--accent);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: 0 1.5px 4px rgba(41,76,55,0.08);
}
.cookie-category label {
  font-size: 1.07rem;
  font-weight: 600;
  color: var(--secondary);
}
.cookie-category input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--primary);
  border-radius: 7px;
  border: 1.3px solid var(--secondary);
  margin-left: 8px;
}
.cookie-category .category-essential {
  color: #555;
  font-weight: 700;
  margin-left: 10px;
  padding: 4px 12px;
  background: #e6e3e0;
  border-radius: 8px;
  font-size: 0.97rem;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 23px;
  background: var(--accent);
  color: var(--primary);
  font-size: 2.1rem;
  border-radius: var(--radius-sm);
  width: 36px;
  height: 36px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.16s;
  z-index: 1200;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--primary);
  color: var(--white);
}
@media (max-width: 500px) {
  .cookie-modal { padding: 18px 6vw 14px 6vw; }
  .cookie-modal h2 { font-size: 1.15rem; }
}

/* --- GEOMETRIC DECORATIVE (OPTIONAL) --- */
.section {
  position: relative;
}
.section:before {
  content: '';
  display: block;
  position: absolute;
  top: 12px; right: 12px;
  width: 40px; height: 40px;
  background: var(--primary);
  opacity: 0.08;
  border-radius: 50% 40% 60% 50%/60% 50% 40% 50%;
  z-index: 1;
}
@media (max-width: 700px) {
  .section:before { display: none; }
}

/* --- ANIMATIONS / MICROS --- */
.cta, .card, .features-grid > *, .testimonial-card, .search-bar button, .cookie-btn {
  transition: box-shadow 0.18s, transform 0.18s, background 0.25s, color 0.22s;
}

/* --- ACCESSIBILITY / FOCUS STATES --- */
a:focus, button:focus, input:focus, .cta:focus {
  outline: 2px dashed var(--primary-dark);
  outline-offset: 2px;
}

/* --- SPACING HELPERS --- */
.mb-0, .mb0 { margin-bottom:0 !important; }
.mb-16 { margin-bottom:16px !important; }
.mt-16 { margin-top:16px !important; }
.mt-32 { margin-top:32px !important; }

/* --- MEDIA QUERIES FOR TYPOGRAPHY --- */
@media (max-width: 600px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.39rem; }
  h3 { font-size: 1.12rem; }
  .cta { font-size: 0.96rem; padding: 0.55em 1.25em; }
  .card, .features-grid > * { padding: 15px 9px; min-width: 130px; }
}

/* --- CUSTOM SCROLL & SELECT --- */
::-webkit-scrollbar {
  width: 10px; background: #F7EEDE;
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 6px;
}

/* END CSS */
