/* --- CSS RESET and 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;
  vertical-align: baseline;
  background: transparent;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #232323;
  background: #fff;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
ul, ol {
  list-style: none;
}
a {
  color: #232323;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #947149;
  outline: none;
}
button, [type='button'], [type='submit'] {
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
  outline: none;
}
:focus {
  outline: 2px solid #394833;
  outline-offset: 2px;
}

/* --- BRAND COLOR PALETTE and FONTS --- */
:root {
  --brand-primary: #232323;
  --brand-white: #fff;
  --brand-gray-1: #f7f7f7;
  --brand-gray-2: #ececec;
  --brand-gray-3: #d7d7d7;
  --brand-gray-4: #7e7e7e;
  --brand-accent: #947149;
  --brand-shadow: rgba(30,30,30,0.08);
  --brand-shadow-dark: rgba(30,30,30,0.15);
  --brand-green: #394833;
  --brand-cream: #F3DDA3;
  --display-font: 'Lora', Georgia, 'Times New Roman', serif;
  --body-font: 'Open Sans', Arial, sans-serif;
}

/* --- GENERAL STRUCTURE --- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--brand-white);
  border-radius: 16px;
  box-shadow: 0 4px 28px var(--brand-shadow);
  display: flex;
  flex-direction: column;
  gap: 32px;
}
@media (max-width: 768px) {
  .section {
    padding: 24px 8px;
    margin-bottom: 40px;
  }
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--display-font);
  color: var(--brand-primary);
  font-weight: 600;
  letter-spacing: -0.02em;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.1;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.375rem;
  margin-bottom: 8px;
}
h4 {
  font-size: 1.125rem;
  margin-bottom: 6px;
}
p, address {
  font-family: var(--body-font);
  color: #232323;
  font-size: 1rem;
  margin-bottom: 12px;
}
strong {
  font-weight: 700;
  color: #232323;
}
em {
  font-style: italic;
  color: var(--brand-accent);
}
ul, ol {
  margin-left: 0;
  padding-left: 0;
  margin-bottom: 16px;
}
ul li, ol li {
  margin-bottom: 12px;
  font-size: 1rem;
  line-height: 1.6;
}
blockquote {
  border-left: 3px solid var(--brand-gray-4);
  padding-left: 20px;
  font-style: italic;
  color: var(--brand-primary);
  margin: 20px 0;
  background: var(--brand-gray-1);
  border-radius: 6px;
}

/* --- HEADER & NAVIGATION --- */
header {
  background: var(--brand-white);
  box-shadow: 0 1px 8px var(--brand-shadow);
  position: relative;
  z-index: 10;
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 32px;
}
nav > a img {
  height: 38px;
  width: auto;
  margin-right: 10px;
}
nav ul {
  display: flex;
  gap: 28px;
  align-items: center;
  margin: 0 24px 0 0;
  flex-wrap: wrap;
}
nav ul li {
  font-size: 1rem;
  position: relative;
}
nav ul li a {
  color: var(--brand-primary);
  font-weight: 500;
  text-transform: none;
  transition: color 0.15s;
  padding: 6px 0;
  position: relative;
}
nav ul li a:hover,
nav ul li a:focus {
  color: var(--brand-accent);
}
nav .cta.primary {
  margin-left: auto;
}

/* --- MOBILE HEADER --- */
.mobile-menu-toggle {
  display: none;
  font-size: 2.2rem;
  color: var(--brand-primary);
  background: transparent;
  border: none;
  padding: 8px 10px;
  line-height: 1;
  cursor: pointer;
  z-index: 120;
  border-radius: 10px;
  transition: background 0.18s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--brand-gray-2);
}
@media (max-width: 1020px) {
  nav ul {
    display: none;
  }
  nav .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}

/* --- MOBILE MENU --- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #1a1a1aef;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 30px 0 18px 24px;
  font-size: 2rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  align-self: flex-start;
  z-index: 10001;
  transition: color 0.15s;
}

.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--brand-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 16px 28px;
  width: 100%;
  align-items: flex-start;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.25rem;
  font-family: var(--body-font);
  font-weight: 600;
  padding: 10px 4px;
  border-radius: 4px;
  transition: background 0.14s, color 0.16s;
}
.mobile-nav a:active,
.mobile-nav a:focus {
  background: var(--brand-accent);
  color: #fff;
}
.mobile-nav a:hover {
  color: var(--brand-cream);
}
@media (min-width: 1021px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* --- MAIN CALL TO ACTION BUTTONS --- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  font-family: var(--display-font);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--brand-primary);
  background: var(--brand-cream);
  border-radius: 28px;
  box-shadow: 0 2px 8px var(--brand-shadow);
  cursor: pointer;
  border: none;
  transition: background 0.17s, color 0.13s, box-shadow 0.2s, transform 0.18s;
  margin-top: 18px;
  text-align: center;
  position: relative;
}
.cta.primary {
  background: var(--brand-green);
  color: #fff;
}
.cta:hover, .cta:focus {
  background: var(--brand-accent);
  color: #fff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 16px var(--brand-shadow-dark);
}

/* --- SECTION and FLEX LAYOUT PATTERNS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--brand-white);
  border-radius: 16px;
  box-shadow: 0 2px 10px var(--brand-shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  min-width: 290px;
}
.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;
    gap: 20px;
    align-items: flex-start;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--brand-gray-1);
  border-radius: 14px;
  box-shadow: 0 1px 6px var(--brand-shadow);
  margin-bottom: 20px;
  font-family: var(--body-font);
  color: #232323;
}
.testimonial-card p {
  font-size: 1.063rem;
  color: #232323;
  margin-bottom: 0;
  flex: 1;
}
.testimonial-card span {
  font-size: 0.97rem;
  font-style: italic;
  color: var(--brand-accent);
  min-width: 130px;
  text-align: right;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 14px;
}

/* --- FORMS, SELECT --- */
select {
  appearance: none;
  font-family: var(--body-font);
  font-size: 1rem;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--brand-gray-3);
  background: var(--brand-gray-1);
  color: var(--brand-primary);
  margin-left: 8px;
  transition: border 0.16s;
}
select:focus {
  border: 1px solid var(--brand-accent);
}
label {
  font-family: var(--body-font);
  font-size: 1rem;
  color: var(--brand-gray-4);
  margin-right: 8px;
}

/* --- ADDRESS, FOOTER --- */
address {
  font-style: normal;
  background: var(--brand-gray-1);
  border-radius: 8px;
  padding: 16px 18px;
  color: #232323;
  margin-bottom: 10px;
  font-family: var(--body-font);
  font-size: 1rem;
  line-height: 1.7;
}

footer {
  background: #181818;
  color: #fff;
  margin-top: 70px;
}
footer .container {
  padding: 34px 16px 22px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
footer img {
  height: 38px;
  margin-bottom: 12px;
}
footer ul {
  display: flex;
  flex-direction: row;
  gap: 26px;
  align-items: center;
  margin: 0;
}
footer ul li a {
  color: #ececec;
  font-size: 1rem;
  letter-spacing: 0.01em;
  transition: color 0.16s;
  padding: 5px 0;
}
footer ul li a:hover,
footer ul li a:focus {
  color: var(--brand-accent);
  text-decoration: underline;
}
footer p {
  color: #bbb;
  font-size: 0.93rem;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 0;
}
@media (max-width: 670px) {
  footer ul {
    flex-direction: column;
    gap: 9px;
  }
}

/* --- MONOCHROME SOPHISTICATED VISUAL EFFECTS --- */
.section, .card, .testimonial-card, address {
  box-shadow: 0 2px 10px var(--brand-shadow), 0 12px 28px var(--brand-shadow-dark);
}
.card {
  border: 1px solid #e2e2e2;
  transition: box-shadow 0.18s, transform 0.17s;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 6px 22px var(--brand-shadow-dark);
  transform: translateY(-4px) scale(1.015);
  z-index: 2;
}
.testimonial-card {
  border-left: 5px solid var(--brand-accent);
  background: #fafafd;
  color: #232323;
}

/* --- TABLES & PRICE LISTS (for cenik) --- */
table {
  width: 100%;
  border-collapse: collapse;
}
td, th {
  padding: 11px 7px;
  border-bottom: 1px solid var(--brand-gray-3);
  text-align: left;
  font-size: 1rem;
}

/* --- HIERARCHY and MICRO-INTERACTIONS --- */
h1, h2, h3 {
  position: relative;
  z-index: 3;
}
h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--brand-accent);
  margin: 10px 0 0 0;
  border-radius: 2px;
}

.card .cta,
.text-section .cta {
  margin-top: 8px;
  align-self: flex-start;
}

/* --- SPACING & FLEX LAYOUT RESPONSIVE --- */
.card-container, .content-grid, .text-image-section, .testimonial-card, .feature-item {
  gap: 20px;
}
.card, .testimonial-card, .feature-item {
  margin-bottom: 20px;
}
.section {
  margin-bottom: 60px;
}
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
    padding: 0 8px;
  }
  nav {
    gap: 12px;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 1.52rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.1rem; }
  html { font-size: 15px; }
  .section {
    padding: 18px 3px;
    margin-bottom: 28px;
    border-radius: 9px;
  }
}

/* --- BLOG TAG CLOUD --- */
.text-section ul li {
  display: inline-block;
  background: var(--brand-gray-2);
  color: var(--brand-primary);
  padding: 5px 12px;
  border-radius: 18px;
  font-size: 0.95rem;
  margin-right: 6px;
  margin-bottom: 7px;
}

/* --- SHADOWS & EFFECTS --- */
.card, .testimonial-card, .section {
  transition: box-shadow 0.22s cubic-bezier(.5,.6,0,.99), transform 0.15s;
}
.card:hover,
.cta:focus, .cta:hover {
  box-shadow: 0 6px 22px var(--brand-shadow-dark);
  outline: none;
}

/* --- HOVER BUTTONS ON cookie banner, menu, etc. --- */
button, .btn, .cookie-banner button, .cookie-modal-action {
  transition: background 0.18s, color 0.16s, box-shadow 0.2s, transform 0.15s;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #1a1a1aee;
  color: #fff;
  font-family: var(--body-font);
  padding: 20px 18px 16px;
  z-index: 2020;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 -2px 18px var(--brand-shadow-dark);
  animation: fadeInCookieBanner 0.6s;
  gap: 10px;
}
@keyframes fadeInCookieBanner {
  0% { opacity: 0; transform: translateY(100px); }
  90% { opacity: 1; transform: translateY(0); }
  100% { opacity: 1; }
}
.cookie-banner p {
  color: #fff;
  margin-bottom: 6px;
  text-align: center;
  font-size: 1rem;
}
.cookie-banner-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 5px;
}
.cookie-banner button, .cookie-banner .cookie-settings-btn {
  background: var(--brand-gray-3);
  color: #232323;
  font-size: 1rem;
  font-family: var(--body-font);
  border-radius: 28px;
  padding: 10px 22px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  margin: 0;
  transition: background 0.16s, color 0.13s, box-shadow 0.15s;
  box-shadow: 0 1px 4px var(--brand-shadow);
}
.cookie-banner .cookie-accept {
  background: var(--brand-accent);
  color: #fff;
}
.cookie-banner .cookie-accept:hover,
.cookie-banner .cookie-accept:focus {
  background: #232323;
  color: var(--brand-accent);
}
.cookie-banner .cookie-settings-btn {
  background: var(--brand-green);
  color: #fff;
}
.cookie-banner .cookie-settings-btn:hover {
  background: var(--brand-accent);
}
.cookie-banner .cookie-reject {
  background: #424242;
  color: #fff;
}
.cookie-banner .cookie-reject:hover,
.cookie-banner .cookie-reject:focus {
  background: #222;
}

/* --- COOKIE MODAL --- */
.cookie-modal-overlay {
  position: fixed; left: 0; top: 0; right: 0; bottom: 0;
  background: #181818da;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  animation: fadeInCookieModal 0.25s;
}
@keyframes fadeInCookieModal {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: var(--brand-primary);
  padding: 36px 28px 24px;
  border-radius: 18px;
  box-shadow: 0 6px 44px var(--brand-shadow-dark);
  min-width: 340px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: slideInCookieModal 0.34s cubic-bezier(0.43,0.19,0.43,1.11);
}
@keyframes slideInCookieModal {
  0% { transform: translateY(80px) scale(0.9); opacity: .2; }
  90% { transform: translateY(0) scale(1.01); opacity: 1; }
  100% { transform: none; opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.35rem;
  color: var(--brand-primary);
  margin-bottom: 7px;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin: 13px 0 8px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-category label {
  font-size: 1.03rem;
  color: var(--brand-primary);
}
.cookie-category input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: var(--brand-accent);
}
.cookie-category .cookie-essential {
  color: var(--brand-gray-4);
  font-size: 0.97rem;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 13px;
  margin-top: 8px;
  justify-content: flex-end;
}
.cookie-modal-action {
  padding: 8px 21px;
  background: var(--brand-accent);
  border-radius: 22px;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}
.cookie-modal-action:hover,
.cookie-modal-action:focus {
  background: var(--brand-green);
  color: var(--brand-cream);
}
.cookie-modal-close {
  position: absolute;
  top: 16px; right: 18px;
  background: none;
  border: none;
  color: #aaa;
  font-size: 1.59rem;
  cursor: pointer;
  padding: 2px 5px;
  transition: color 0.17s;
}
.cookie-modal-close:hover {
  color: var(--brand-accent);
}
@media (max-width: 520px) {
  .cookie-modal {
    min-width: 90vw;
    padding: 18px 6px 12px;
  }
}

/* --- MISCELLANEOUS --- */
::-webkit-scrollbar {
  width: 9px;
  background: #e6e6e6;
}
::-webkit-scrollbar-thumb {
  background: #989898;
  border-radius: 5px;
}

/* --- FORMATTED LISTS & OL's --- */
ol {
  padding-left: 20px;
  list-style-type: decimal;
}

/* --- OVERRIDES --- */
@media (max-width: 880px) {
  .content-grid {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 680px) {
  .container {
    max-width: 100vw;
  }
}

/* --- ACCESSiBiLITY STYLES --- */
@media (max-width: 400px) {
  html { font-size: 13.5px; }
}

/* --- PRINT OVERRIDES --- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  .section, .card, .testimonial-card { box-shadow: none !important; }
}
