/* 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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F6F5F1;
  color: #3B3836;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  min-height: 100vh;
  font-size: 16px;
  transition: background 0.3s;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #35764d; /* deep green accent */
  text-decoration: none;
  transition: color 0.15s;
}
a:hover, a:focus {
  color: #136d41;
}
ul, ol {
  list-style: none;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #264127;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.16;
}
h2 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.25;
}
h3 {
  font-size: 1.3rem;
  font-weight: 600;
}
p, li, blockquote, cite, dt, dd {
  font-size: 1rem;
  margin-bottom: 12px;
  color: #3B3836;
}
strong {
  font-weight: 700;
  color: #23463b;
}

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  max-width: 1120px;
  box-sizing: border-box;
}

/* NATURE ORGANIC: EARTH TONE PALETTE */
:root {
  --brand-primary: #264127; /* deep moss green */
  --brand-secondary: #DFBA89; /* warm beige */
  --brand-accent: #dff0da; /* soft natural light green */
  --brand-dark: #3B3836;
  --bg-earth: #F6F5F1;
  --organic-green: #35764d;
  --organic-brown: #7d5e2a;
  --box-shadow-main: 0 3px 18px 0 rgba(70,89,64,0.10);
  --shadow-btn: 0 1px 5px 0 rgba(53,118,77,0.15);
  --border-radius-main: 24px;
  --border-radius-btn: 30px;
  --surface: #fff;
  --link: #35764d;
  --accent-hover: #3d8f5c;
  --beige-light: #F3E9DB;
  --red: #d74c38;
}


/* HEADER & NAVIGATION */
header {
  background-color: var(--surface);
  box-shadow: var(--box-shadow-main);
  position: relative;
  z-index: 20;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  gap: 24px;
}
.logo img {
  height: 46px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  color: var(--brand-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.02em;
  font-size: 1rem;
  padding: 4px 0;
  position: relative;
}
.main-nav a:after {
  content: '';
  display: block;
  height: 2.5px;
  width: 0;
  background: var(--organic-green);
  border-radius: 2px;
  transition: width 0.18s;
  margin-top: 2.5px;
}
.main-nav a:hover:after, .main-nav a:focus:after {
  width: 100%;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--organic-green);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--border-radius-btn);
  padding: 12px 30px;
  box-shadow: var(--shadow-btn);
  outline: none;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background 0.18s, box-shadow 0.22s, color 0.18s;
  text-align: center;
  margin-left: 12px;
}
.cta:not(.primary) {
  background: var(--brand-secondary);
  color: var(--brand-primary);
}
.cta.primary {
  background: var(--organic-green);
  color: #fff;
}
.cta:hover, .cta:focus {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: 0 3px 12px rgba(53,118,77,0.22);
}
.cta:not(.primary):hover, .cta:not(.primary):focus {
  background: #ca954d;
  color: #fff;
}

/* BURGER FOR MOBILE */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--organic-green);
  font-size: 2.1rem;
  padding: 7px 15px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.16s;
  z-index: 21;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--beige-light);
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(38,65,39,0.93);
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(0.77,0,0.175,1);
  z-index: 222;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  overflow-y: auto;
  padding-top: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 24px 0 16px 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  align-self: flex-start;
  z-index: 223;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-left: 36px;
  margin-top: 16px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 5px 0;
  border-radius: 10px;
  transition: background 0.14s, color 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: rgba(223,186,137,0.17);
  color: #DFBA89;
}

/* MAIN SECTIONS */
main {
  padding-bottom: 90px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 0;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--beige-light);
  border-radius: var(--border-radius-main);
  box-shadow: 0 2px 12px rgba(61,143,92,0.05);
  padding: 32px 28px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--surface);
  box-shadow: var(--box-shadow-main);
  border-radius: var(--border-radius-main);
  flex: 1 1 260px;
  min-width: 230px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  padding: 20px 18px 24px 18px;
  transition: box-shadow 0.2s, transform 0.18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 28px 0 rgba(53,118,77,0.07);
  transform: translateY(-4px) scale(1.02);
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* RECENZE / TESTIMONIALS */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: 0 2px 14px rgba(53,118,77,0.07);
  flex: 1 1 335px;
  min-width: 0px;
  max-width: 500px;
  transition: box-shadow 0.22s;
}
.testimonial-card blockquote {
  color: #25462a;
  font-size: 1.08rem;
  font-style: italic;
  margin: 0 0 7px 0;
  line-height: 1.6;
  font-family: 'Source Sans Pro', Arial, sans-serif;
}
.testimonial-card cite {
  display: block;
  color: #59684e;
  font-size: 0.97rem;
  font-style: normal;
  margin-top: 3px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.testimonial-card:hover,
.testimonial-card:focus-within {
  box-shadow: 0 6px 28px 0 rgba(38,65,39,0.14);
}

/* HERO & ORGANIC SHAPES */
section:first-of-type .content-wrapper,
main section:first-child .content-wrapper {
  background: var(--brand-accent);
  border-radius: 0 0 48px 8px;
  box-shadow: 0 15px 36px -16px rgba(61,143,92,0.09);
  padding: 48px 28px 42px 28px;
  margin-bottom: 38px;
}

/* ICONS IN LI STYLES */
ul li img {
  width: 28px;
  height: 28px;
  margin-right: 10px;
  vertical-align: middle;
  display: inline-block;
}
ul li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.06rem;
  margin-bottom: 10px;
  line-height: 1.55;
  color: #45572a;
}
.service-price {
  background: #eff9d6;
  color: var(--organic-brown);
  font-size: 0.95em;
  border-radius: 10px;
  padding: 2px 10px;
  margin-left: 10px;
}

.trend-highlight {
  background: rgba(53, 118, 77, 0.10);
  color: #265832;
  border-radius: 10px;
  padding: 4px 10px;
  font-weight: 600;
  margin-bottom: 12px;
}


/* FOOTER */
footer {
  background: var(--beige-light);
  margin-top: 60px;
  border-radius: 30px 30px 0 0;
  box-shadow: 0px -2px 16px rgba(70,89,64,0.04);
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 48px 20px 24px 20px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 6px;
}
.footer-nav a {
  color: var(--brand-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.015em;
  border-radius: 12px;
  padding: 4px 10px;
  transition: background 0.18s, color 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--brand-accent);
  color: var(--organic-green);
}
.footer-info {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 10px;
}
.footer-info img {
  height: 38px;
  border-radius: 50%;
  background: var(--organic-green);
  padding: 4px;
}
footer p {
  font-size: 0.98rem;
  color: #57694e;
}

/* CARDS SUPPORT (for example in katalog) */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: stretch;
}

/* MAP-PROXY */
.map-placeholder {
  background: var(--brand-accent);
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(53,118,77,0.10);
  padding: 14px 12px;
  margin-top: 12px;
  flex: 1 1 300px;
  min-width: 180px;
  max-width: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* SOCIAL LINKS */
.social-links {
  display: flex;
  gap: 14px;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 12px;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  color: var(--organic-green);
  font-weight: 600;
  transition: color 0.18s;
}
.social-links img {
  margin-right: 8px;
  width: 22px;
  height: 22px;
}

/* DL for contacts */
dl {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
dt {
  font-weight: 600;
  color: var(--organic-green);
  margin-bottom: 1px;
}
dd {
  margin-bottom: 6px;
}

/* =================*
   COOKIE BANNER
 =================*/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fff9ed;
  color: #23463b;
  box-shadow: 0 -4px 18px 0 rgba(61,143,92,0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4010;
  padding: 26px 16px 20px 16px;
  gap: 24px;
  flex-wrap: wrap;
  animation: cookieBannerIn 0.5s;
}
@keyframes cookieBannerIn {
  from { opacity: 0; transform: translateY(100%) }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner p {
  font-size: 1rem;
  color: #23463b;
  margin-bottom: 0;
  margin-right: 14px;
}
.cookie-banner .cookie-btn {
  background: var(--brand-secondary);
  color: var(--brand-primary);
  border: none;
  border-radius: var(--border-radius-btn);
  font-weight: 600;
  padding: 9px 22px;
  margin-right: 5px;
  margin-bottom: 0;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.17s, color 0.17s, box-shadow 0.13s;
  box-shadow: 0 2px 13px rgba(53,118,77,0.05);
  letter-spacing: 0.01em;
}
.cookie-banner .cookie-btn.accept {
  background: var(--organic-green);
  color: #fff;
}
.cookie-banner .cookie-btn.reject {
  background: #d74c38;
  color: #fff;
}
.cookie-banner .cookie-btn:focus, .cookie-banner .cookie-btn:hover {
  box-shadow: 0 3px 16px rgba(53,118,77,0.19);
  background: #bcedc2;
  color: #136d41;
}
.cookie-banner .cookie-btn.accept:focus, .cookie-banner .cookie-btn.accept:hover {
  background: var(--accent-hover);
  color: #fff;
}
.cookie-banner .cookie-btn.reject:focus, .cookie-banner .cookie-btn.reject:hover {
  background: #be2c12;
  color: #fff;
}
.cookie-banner .cookie-btn.settings:focus, .cookie-banner .cookie-btn.settings:hover {
  background: #e7c391;
  color: var(--brand-primary);
}

/* Cookie Modal Overlay */
.cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(33,56,29,0.31);
  z-index: 4041;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}
.cookie-modal .modal-content {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 10px 60px 0 rgba(53,118,77,0.17);
  padding: 30px 24px 24px 24px;
  max-width: 96vw;
  width: 400px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modalPopIn 0.28s cubic-bezier(.85,-0.01,.46,1.04);
}
@keyframes modalPopIn {
  from { opacity:0; transform: scale(0.95); }
  to { opacity:1; transform: scale(1); }
}
.cookie-modal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.cookie-modal .modal-header h3 {
  font-size: 1.22rem;
}
.cookie-modal .modal-close {
  background: none;
  border: none;
  font-size: 1.45rem;
  color: var(--brand-primary);
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 8px;
}
.cookie-modal .modal-section {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cookie-modal .cookie-category-name {
  font-weight: 600;
  color: var(--organic-green);
}
.cookie-modal .cookie-category-desc {
  font-size: 0.97em;
  color: #57694e;
}
.cookie-modal .category-toggle {
  accent-color: var(--organic-green);
  width: 22px;
  height: 22px;
  cursor: pointer;
}
.cookie-modal .modal-footer {
  display: flex;
  gap: 11px;
  justify-content: flex-end;
  margin-top: 11px;
}
.cookie-modal .modal-footer .cookie-btn {
  padding: 8px 18px;
  font-size: 1rem;
}

/* MEDIA QUERIES - RESPONSIVE */
@media (max-width:1024px) {
  .container { max-width: 960px; }
}
@media (max-width:900px) {
  .container { max-width: 97vw; }
}
@media (max-width: 900px) {
  header .container {
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px 10px;
  }
  .footer-info { flex-direction: column; gap: 10px; align-items: center; }
}
@media (max-width: 1020px) {
  .main-nav { gap: 17px; }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .footer-info { flex-direction: column; gap: 10px; align-items: center; }
  section .content-wrapper, main section:first-child .content-wrapper {
    padding: 18px 8px 23px 8px;
    border-radius: 0 0 30px 8px;
  }
  .text-section {
    padding: 17px 10px;
    border-radius: 18px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    gap: 4px;
    padding: 11px 5px;
  }
  .logo img {
    height: 36px;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (max-width: 650px) {
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.25rem; }
  .container { padding-left: 5px; padding-right: 5px; }
  .footer-nav { gap: 6px; flex-direction: column; align-items: flex-start; }
  .footer-info img { height: 32px; }
  .card, .testimonial-card, .map-placeholder {
    min-width: unset;
    max-width: 100%;
  }
}
@media (max-width: 555px) {
  .cookie-banner { flex-direction: column; gap: 12px; padding: 17px 6px 15px 6px; }
  .mobile-nav { margin-left: 14px; }
  .mobile-menu-close { margin-left: 12px; }
}
@media (max-width: 480px) {
  .section { margin-bottom: 32px; padding: 24px 4px; }
  main { padding-bottom: 56px; }
  .footer-info { flex-direction: column; gap: 9px; }
}
@media (max-width:420px) {
  .content-wrapper, .text-section { padding: 7px 2px; }
}

/* FLEX LAYOUTS + SPACING RULES (mandatory) */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
/* Responsive change for horizontal-to-column flex containers */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 20px; }
  .content-grid { flex-direction: column; gap: 16px; }
}

/* HOVERS & INTERACTIONS */
button, .cta, .cookie-banner .cookie-btn {
  transition: background 0.14s, color 0.14s, box-shadow 0.17s, transform 0.13s;
}
button:active, .cta:active, .cookie-banner .cookie-btn:active {
  transform: scale(0.98);
}

input[type=checkbox],input[type=radio] {
  accent-color: var(--organic-green);
}

/* Scrollbar for menu/modal */
.mobile-menu, .cookie-modal {
  scrollbar-width: thin;
  scrollbar-color: var(--organic-green) #dff0da;
}
.mobile-menu::-webkit-scrollbar, .cookie-modal::-webkit-scrollbar {
  width: 9px;
  background: #e7e2cc;
}
.mobile-menu::-webkit-scrollbar-thumb, .cookie-modal::-webkit-scrollbar-thumb {
  background: var(--organic-green);
  border-radius: 10px;
}

/* Hide cookie banner if not active (JS logic assumed to control .show/hide classes) */
.cookie-banner.hidden { display: none !important; }
.cookie-modal.hidden { display: none !important; }
