/* --- CSS RESET & BASE STYLES --- */
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-family: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.7;
  background: #151a1f;
  color: #f8f8f5;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #F1B824;
  text-decoration: none;
  transition: color 0.22s;
}
a:hover, a:focus {
  color: #ffe388;
}
ul, ol {
  list-style: none;
}

:root {
  --primary: #2A6A3D;
  --primary-rgb: 42,106,61;
  --secondary: #F9F7F4;
  --accent: #F1B824;
  --accent-neon: #ffe388;
  --surface: #21242a;
  --surface-elevate: #262a2f;
  --neon-shadow: 0 0 16px #F1B82466;
  --font-display: 'Montserrat', 'Arial', sans-serif;
  --font-body: 'Roboto', 'Segoe UI', sans-serif;
}

body, html {
  font-family: var(--font-body);
  font-size: 16px;
  background: linear-gradient(135deg, #181d21 0%, #213126 100%);
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 1 auto;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: #F1B824;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 16px #2A6A3D88;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 24px;
  line-height: 1.2;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  line-height: 1.22;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
p {
  font-size: 1rem;
  color: #f8f8f5;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}
strong, b {
  color: var(--accent);
  font-weight: bold;
}

/* --- HEADER & NAVIGATION --- */
header {
  background: var(--surface);
  box-shadow: 0 2px 24px #2A6A3D33;
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 120;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 80px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
}
header nav a {
  color: #F9F7F4;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  position: relative;
  padding: 4px 8px;
}
header nav a:after {
  content: '';
  display: block;
  width: 0%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  margin: 0 auto;
  transition: width .3s cubic-bezier(.7,.21,.62,.91);
}
header nav a:hover:after, header nav a:focus:after {
  width: 100%;
}
header a.cta-primary {
  padding: 10px 26px;
  border-radius: 32px;
  background: var(--accent);
  color: #192618;
  font-size: 1.1rem;
  font-family: var(--font-display);
  font-weight: 700;
  box-shadow: 0 0 16px #F1B82477;
  transition: background 0.18s, color 0.18s, box-shadow 0.3s;
  border: none;
}
header a.cta-primary:hover, header a.cta-primary:focus {
  background: #ffe388;
  color: #2A6A3D;
  box-shadow: 0 0 24px #ffe38899;
}

/* --- BURGER MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 24px;
  font-size: 2.2rem;
  background: var(--accent);
  color: #2A6A3D;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  z-index: 220;
  box-shadow: var(--neon-shadow);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: #2A6A3D;
  color: #F1B824;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(21,26,31,0.98);
  transform: translateX(-100%);
  transition: transform 0.45s cubic-bezier(.56,.35,0,1.15);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 32px 24px 24px 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.2rem;
  background: none;
  color: #F1B824;
  border: none;
  margin-bottom: 24px;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #ffe388;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  margin-top: 16px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 12px 0;
  border-radius: 3px;
  transition: background 0.2s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent);
  color: #232a23;
}

@media (max-width: 1080px) {
  header .container {
    gap: 16px;
  }
  header nav {
    gap: 16px;
  }
}
@media (max-width: 850px) {
  header nav, header a.cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* --- LAYOUT SECTIONS & FLEX PATTERNS --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  align-items: flex-start;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 30px;
}
.card {
  background: var(--surface-elevate);
  border-radius: 18px;
  box-shadow: 0 4px 32px #181c1c77, var(--neon-shadow);
  padding: 28px 28px 24px 28px;
  flex: 1 1 330px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.22s, box-shadow 0.28s;
}
.card:hover {
  transform: translateY(-6px) scale(1.012);
  box-shadow: 0 8px 48px #F1B82444, 0 0 32px #2A6A3D22;
  border-color: var(--accent);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  width: 100%;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  width: 100%;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #00000067;
  color: #181c20;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px #2A6A3D15, 0 0 8px #F1B82425;
  position: relative;
  flex: 1 1 320px;
  transition: box-shadow 0.25s, transform 0.14s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 28px #F1B82455, 0 0 16px #2A6A3D33;
  transform: translateY(-3px) scale(1.013);
}
.testimonial-client {
  color: var(--primary);
  font-weight: 700;
  margin-left: 10px;
  font-family: var(--font-display);
  font-size: 1rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- CATEGORY CARDS --- */
.category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.category-card {
  background: var(--surface-elevate);
  border-radius: 15px;
  box-shadow: 0 2px 16px #2A6A3D33, 0 0 12px #F1B82433;
  padding: 32px 22px 28px 22px;
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin-bottom: 20px;
  transition: box-shadow 0.23s, transform 0.18s;
}
.category-card:hover {
  box-shadow: 0 8px 42px #F1B82480, 0 2px 20px #2A6A3D88;
  transform: translateY(-8px) scale(1.025);
}
.category-card img {
  width: 56px;
  margin-bottom: 14px;
  filter: drop-shadow(0px 0px 6px #ffe38877);
}
.category-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 10px;
}
.category-card p {
  margin-bottom: 12px;
  color: #f9f7f4;
  font-size: 1rem;
  text-align: center;
}
.category-card a {
  margin-top: 12px;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  text-shadow: 0 1px 4px #2A6A3D55;
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 2px;
  transition: color 0.18s, border-color 0.16s;
}
.category-card a:hover {
  color: #ffe388;
  border-color: #ffe388;
}

.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  margin-top: 20px;
}
.category-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
}
.category-icon img {
  width: 48px;
  margin-bottom: 8px;
}
.category-icon span {
  font-family: var(--font-display);
  color: var(--accent);
  font-weight: 700;
}

/* --- ARTICLE CARDS/FAQ (Poradnik) --- */
.article-preview {
  background: var(--surface-elevate);
  border-radius: 16px;
  box-shadow: 0 2px 16px #F1B82422, var(--neon-shadow);
  padding: 22px 24px 19px 24px;
  margin-bottom: 20px;
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.24s, transform 0.18s;
}
.article-preview:hover {
  box-shadow: 0 8px 38px #F1B82466, 0 2px 18px #2A6A3D66;
  transform: scale(1.018) translateY(-5px);
}
.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.faq-item {
  background: #fff;
  color: #181a19;
  border-radius: 14px;
  box-shadow: 0 2px 12px #2A6A3D15, 0 0 10px #F1B82413;
  padding: 19px 26px;
  margin-bottom: 18px;
  flex: 1 1 320px;
}
.faq-item h3 {
  color: var(--primary);
  font-size: 1.12rem;
}
.faq-item b {
  color: var(--accent);
}

/* --- CTA BUTTONS --- */
.cta-primary, .cta-secondary {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: bold;
  border-radius: 32px;
  border: none;
  box-shadow: 0 0 14px #F1B82488;
  padding: 11px 32px;
  font-size: 1.1rem;
  margin-top: 10px;
  margin-bottom: 10px;
  transition: background 0.17s, color 0.14s, box-shadow 0.22s, transform 0.15s;
  text-align: center;
  cursor: pointer;
}
.cta-primary {
  background: var(--accent);
  color: #181d21;
}
.cta-primary:hover, .cta-primary:focus {
  background: #ffe388;
  color: #2A6A3D;
  box-shadow: 0 0 24px #ffe388aa;
  transform: scale(1.03);
}
.cta-secondary {
  background: none;
  color: var(--accent);
  border: 2.5px solid var(--accent);
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--accent);
  color: #2A6A3D;
  box-shadow: 0 0 24px #ffe38899;
  transform: scale(1.03);
}

/* --- CONTACT / SOCIAL / ADDRESS --- */
.contact-info, .contact-details, .contact-methods {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.contact-info ul, .contact-details ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-info li, .contact-details li {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1rem;
  color: #f8f8f5;
}
.contact-info img, .contact-details img {
  width: 22px;
}
.address-map {
  margin: 20px 0 0 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.open-hours {
  font-size: 1rem;
  color: #f8f8f5;
}
.social-links {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-top: 12px;
}
.social-links a img {
  width: 38px;
  filter: drop-shadow(0px 0px 7px #F1B82433);
  transition: filter 0.20s;
}
.social-links a:hover img {
  filter: drop-shadow(0px 0px 16px #F1B824cc) brightness(1.17);
}

/* --- FOOTER --- */
footer {
  background: var(--surface);
  color: #f9f7f4;
  padding: 28px 0 18px 0;
  border-top: 2px solid var(--primary);
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
}
footer nav a {
  color: #F1B824;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.13s;
}
footer nav a:hover, footer nav a:focus {
  color: #ffe388;
}
.footer-contact {
  font-size: 0.98rem;
  color: #f9f7f4;
  line-height: 1.5;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 5000;
  background: #fff;
  box-shadow: 0 -2px 32px #2A6A3D33, 0 0 8px #F1B82466;
  color: #181c20;
  padding: 30px 20px 24px 20px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  justify-content: space-between;
  font-size: 1rem;
  transition: transform .44s cubic-bezier(.49,.44,.13,1.18);
  transform: translateY(110%);
}
.cookie-banner.show {
  transform: translateY(0);
}
.cookie-banner-content {
  flex: 2 1 auto;
}
.cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-btn {
  border-radius: 18px;
  border: none;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 10px 22px;
  font-size: 1rem;
  cursor: pointer;
  margin: 0;
  transition: background 0.16s, color 0.13s, box-shadow 0.14s, transform 0.11s;
}
.cookie-btn.accept {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 8px #2A6A3D33;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #43ab5b;
  color: #ffe388;
  transform: scale(1.04);
}
.cookie-btn.reject {
  background: #F1B824;
  color: #232a23;
  box-shadow: 0 0 8px #F1B82455;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #ffe388;
  color: #2A6A3D;
  transform: scale(1.04);
}
.cookie-btn.settings {
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  box-shadow: none;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--primary);
  color: #fff;
  transform: scale(1.04);
}

/* --- COOKIE MODAL POPUP --- */
.cookie-modal-overlay {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: rgba(21,26,31,0.75);
  z-index: 6500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(.7,.34,.21,1), visibility 0.06s;
  visibility: hidden;
}
.cookie-modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
.cookie-modal {
  background: #fff;
  color: #181c20;
  border-radius: 16px;
  box-shadow: 0 8px 48px #2A6A3D38, 0 0 12px #F1B82433;
  min-width: 320px;
  max-width: 98vw;
  width: 420px;
  padding: 32px 28px 26px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cookie-modal-close {
  position: absolute;
  top: 13px;
  right: 16px;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  transition: color 0.13s;
  z-index: 1;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--accent);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 8px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
}
.cookie-category input[type=checkbox] {
  width: 21px;
  height: 21px;
  accent-color: var(--primary);
}
.cookie-category.essential input[type=checkbox] {
  accent-color: #bbb;
}
.cookie-category .category-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.07rem;
  color: var(--primary);
}
.cookie-category .category-info {
  font-size: .95rem;
  color: #555;
}
.cookie-category.essential label {
  opacity: 0.7;
}

.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 13px;
  margin-top: 10px;
}

/* --- SPACING & GAPS --- */
@media (max-width: 1080px) {
  .container {
    max-width: 940px;
    padding: 0 10px;
  }
  .category-grid, .content-grid, .faq-list, .card-container {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 95vw;
    padding: 0 8px;
  }
  .content-wrapper {
    gap: 14px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 2vw;
  }
  .category-grid, .content-grid, .faq-list, .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
  .section {
    padding: 32px 0;
    margin-bottom: 38px;
  }
  .content-wrapper {
    gap: 12px;
  }
  header .container {
    min-height: 64px;
    padding: 0 6px;
  }
  footer .container {
    flex-direction: column;
    gap: 18px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 7vw;
    font-size: 0.97rem;
  }
  .cookie-modal {
    width: 95vw;
    max-width: 99vw;
    min-width: 0;
    padding: 19px 7vw 17px 7vw;
  }
}
@media (max-width: 540px) {
  h1 {font-size: 1.35rem;}
  h2 {font-size: 1.11rem;}
  h3 {font-size: 1rem;}
  .card, .article-preview, .testimonial-card, .faq-item, .category-card {
    padding: 16px 7vw 12px 7vw;
  }
  .section {
    padding: 14px 0 24px 0;
    margin-bottom: 24px;
  }
}

/* --- UTILITY --- */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 12px;
}

/* Hide mobile nav on desktop */
@media (min-width: 851px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* --- VISUAL FUTURISTIC EFFECTS --- */
.card, .category-card, .article-preview {
  border: 1.5px solid rgba(241,184,36,0.08);
  box-shadow: 0 0 30px rgba(241,184,36,0.10), 0 4px 18px #2A6A3D22;
}
.card:hover, .category-card:hover, .article-preview:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 42px #F1B824AA, 0 2px 15px #2A6A3D99;
}
h1, h2 {
  text-shadow: 0 0 7px #ffe38888, 0 1px 10px #2A6A3D44;
}
.cta-primary, .cta-secondary, .cookie-btn, .mobile-menu-toggle {
  box-shadow: 0 0 18px #ffe38877, var(--neon-shadow);
}

::-webkit-scrollbar {
  width: 8px;
  background: #1A3530;
}
::-webkit-scrollbar-thumb {
  background: #213126;
  border-radius: 7px;
}

/* --- BRAND PERSONALITY TOOLTIP --- */
[title]:hover:after {
  content: attr(title);
  background: #232a23;
  color: #F1B824;
  font-family: var(--font-display);
  font-size: 0.94rem;
  padding: 6px 16px;
  border-radius: 16px;
  box-shadow: 0 2px 14px #2A6A3D44;
  position: absolute;
  left: 50%;
  top: 120%;
  transform: translateX(-50%);
  white-space: pre;
  pointer-events: none;
  z-index: 50;
  opacity: 0.92;
  animation: tooltipFadeIn 0.23s;
}
@keyframes tooltipFadeIn {
  from { opacity: 0; }
  to { opacity: 0.92; }
}

/* --- FOCUS STATES --- */
a:focus, button:focus, .cta-primary:focus, .cta-secondary:focus, .cookie-btn:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus {
  outline: 2px dashed var(--accent);
  outline-offset: 3px;
}

/* --- REMOVE GRID PROPERTIES (CRITICAL) --- */
/* Absolutely NO display: grid or grid-* props used anywhere. All layout uses flexbox and flex wrap. */
