/* ===== 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, 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;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background: #F0EDE0;
  color: #26423A;
}
ul, ol {
  list-style: none;
}
a {
  background: transparent;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  vertical-align: middle;
}
:focus {
  outline: 2px solid #CD9443;
  outline-offset: 1px;
}

/* ===== VARIABLES (WITH FALLBACKS) ===== */
:root {
  --primary: #33665C;
  --primary-alt: #26423A;
  --secondary: #FFFFFF;
  --secondary-bg: #F0EDE0;
  --accent: #CD9443;
  --danger: #e63946;
  --electric-blue: #0CC0DF;
  --hot-pink: #F85C70;
  --lime: #B0F43C;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --shadow: 0 4px 24px 0 rgba(51,102,92,0.08);
  --radius: 18px;
  --radius-sm: 8px;
  --transition: 0.25s cubic-bezier(.61,.39,.31,1.15);
}

/* ===== BASE TYPOGRAPHY ===== */
body {
  font-family: var(--font-body), Arial, sans-serif;
  font-size: 16px;
  background: var(--secondary-bg);
  color: var(--primary-alt);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display), Arial, sans-serif;
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(51,102,92,0.11);
  letter-spacing: -0.5px;
  color: var(--primary);
}
h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--electric-blue);
  text-shadow: 0 8px 32px rgba(12,192,223,0.10);
}
h2 {
  font-size: 2rem;
  margin-bottom: 1.2rem;
  color: var(--hot-pink);
  text-shadow: 0 4px 24px rgba(248,92,112,0.10);
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 0.7rem;
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p, li, address {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 1.1em;
}
strong {
  font-weight: 700;
}

/* ===== CONTAINERS ===== */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 18px;
  margin: 0 auto;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ===== HEADER & NAVBAR ===== */
header {
  width: 100%;
  box-shadow: var(--shadow);
  background: var(--secondary);
  position: relative;
  z-index: 21;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 18px 12px 18px;
}
.header-inner > a img {
  height: 49px;
  width: auto;
  transition: transform .15s;
}
.header-inner > a:hover img {
  transform: scale(1.08) rotate(-7deg);
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  color: var(--primary-alt);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: 0.2px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background .17s, color .17s;
  position: relative;
  z-index: 1;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--accent);
  background: rgba(248,92,112,0.09);
}
.cta-btn {
  background: var(--electric-blue);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  border: none;
  border-radius: var(--radius);
  padding: 13px 32px;
  box-shadow: 0 2px 12px 0 rgba(12,192,223,0.11);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background var(--transition), box-shadow var(--transition), transform .15s;
  margin-left: 12px;
  position: relative;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--hot-pink);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 28px 0 rgba(248,92,112,0.19);
}
.cta-btn-mini {
  display: inline-block;
  background: var(--lime);
  color: var(--primary-alt);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 8px 26px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  transition: background var(--transition), color var(--transition);
  margin-top: 10px;
}
.cta-btn-mini:hover, .cta-btn-mini:focus {
  background: var(--accent);
  color: #fff;
}

/* ===== MOBILE MENU ===== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  right: 18px;
  top: 18px;
  z-index: 1001;
  width: 48px;
  height: 48px;
  background: var(--electric-blue);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  box-shadow: 0 2px 12px rgba(12,192,223,0.13);
  cursor: pointer;
  transition: background var(--transition);
  align-items: center;
  justify-content: center;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--hot-pink);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--secondary);
  box-shadow: 0 0 38px 6px rgba(12,192,223,0.28);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  padding-top: 32px;
  transform: translateX(-100vw);
  transition: transform 0.34s cubic-bezier(.17,.67,.83,.67);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  color: var(--accent);
  background: none;
  border: none;
  font-size: 2.1rem;
  align-self: flex-end;
  margin: 4px 28px 0 0;
  cursor: pointer;
  z-index: 2101;
  padding: 3px 10px;
  transition: color .13s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus { color: var(--hot-pink); }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  padding: 24px 34px 0 34px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--primary-alt);
  padding: 9px 0;
  border-radius: var(--radius-sm);
  transition: background .17s, color .17s;
  width: 100%;
  display: block;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  background: rgba(205,148,67,0.13);
  color: var(--accent);
}
@media (max-width: 1100px) {
  .container, .header-inner { max-width: 100%; }
}
@media (max-width: 900px) {
  .main-nav { gap: 14px; }
}
@media (max-width: 860px) {
  .main-nav { display: none; }
  .cta-btn { display: none; }
  .mobile-menu-toggle { display: flex; }
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(90deg, #F0EDE0 70%, #B0F43C 99%);
  min-height: 330px;
  display: flex;
  align-items: center;
  padding: 48px 0 32px 0;
  box-shadow: 0 6px 28px 0 rgba(51,102,92,0.11);
  position: relative;
  margin-bottom: 60px;
}
.hero .container { padding-top: 21px; }
.hero .content-wrapper {
  align-items: flex-start;
  max-width: 680px;
}
.hero h1 {
  color: var(--electric-blue);
  font-size: 2.7rem;
  margin-bottom: 14px;
  text-shadow: 0 8px 32px rgba(12,192,223,0.11);
}
.hero p {
  color: var(--primary-alt);
  font-size: 1.22rem;
  font-family: var(--font-body);
  margin-bottom: 28px;
}
.hero .cta-btn {
  font-size: 1.12rem;
  background: var(--accent);
  color: #fff;
  margin-left: 0;
}
.hero .cta-btn:hover,
.hero .cta-btn:focus {
  background: var(--hot-pink);
}

/* ===== FEATURES GRID ===== */
.features-grid, .features {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  flex: 1 1 246px;
  min-width: 220px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow .18s, transform .14s;
  border-left: 6px solid var(--accent);
}
.feature img {
  margin-bottom: 8px;
  width: 38px;
  height: 38px;
}
.feature h3 {
  color: var(--hot-pink);
}
.feature:hover, .feature:focus-within {
  box-shadow: 0 10px 36px 3px rgba(12,192,223,0.15);
  transform: translateY(-4px) scale(1.04);
  border-left-color: var(--electric-blue);
}

/* ===== CARDS & CARD CONTAINER ===== */
.card-container, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 18px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow .18s, transform .15s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 16px 0 rgba(51,102,92,0.18);
  transform: translateY(-3px) scale(1.03);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

/* ===== TEXT-IMAGE SECTION ===== */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.text-image-section img {
  border-radius: var(--radius);
  box-shadow: 0 4px 18px rgba(51,102,92,.10);
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ===== SECTIONS - GENERAL ===== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
@media (max-width: 600px) {
  section {
    padding: 26px 8px;
    margin-bottom: 36px;
  }
}

.cta-banner {
  background: linear-gradient(90deg, #0CC0DF 65%, #F85C70 100%);
  padding-top: 48px;
  padding-bottom: 48px;
  border-radius: var(--radius);
  box-shadow: 0 10px 20px 0 rgba(12, 192, 223, 0.13);
}
.cta-banner h2 {
  color: #fff;
  margin-bottom: 16px;
  text-shadow: 0 2px 22px rgba(51,102,92,0.14);
}
.cta-banner .cta-btn {
  background: #fff;
  color: var(--electric-blue);
  font-weight: bold;
  box-shadow: 0 3px 21px 2px rgba(248,92,112,0.10);
}
.cta-banner .cta-btn:hover {
  background: var(--hot-pink);
  color: #fff;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 16px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 3px 16px 0 rgba(51,102,92,0.10);
  min-width: 220px;
  flex: 1 1 285px;
  margin-bottom: 20px;
  transition: box-shadow .15s, transform .13s;
  border-bottom: 6px solid var(--electric-blue);
}
.testimonial-card blockquote {
  font-family: var(--font-display);
  color: var(--primary-alt);
  font-size: 1.09rem;
  font-style: italic;
  margin-bottom: 0.7em;
  text-align: left;
  line-height: 1.5;
}
.testimonial-card div {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent);
  text-align: right;
  width: 100%;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 28px 2px rgba(12,192,223,0.14);
  transform: scale(1.04);
  border-bottom-color: var(--hot-pink);
}

/* ===== FAQ LIST (casto-kladene-dotazy.html) ===== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 28px;
}
.faq-item {
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 8px rgba(51,102,92,0.07);
  padding: 20px 18px 10px 18px;
}
.faq-item h3 {
  color: var(--electric-blue);
  margin-bottom: 10px;
  font-size: 1.14rem;
}

/* ===== UL/OL/LISTS GENERIC ===== */
ul, ol {
  margin-bottom: 1.2em;
}
ul > li, ol > li {
  position: relative;
  padding-left: 23px;
  margin-bottom: 10px;
  font-size: 1.07rem;
  color: var(--primary-alt);
}
ul > li:before {
  content: '';
  display: inline-block;
  position: absolute;
  left: 0;
  top: 11px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--hot-pink);
}
ol > li:before {
  content: counter(li);
  counter-increment: li;
  margin-right: 8px;
  color: var(--accent);
  font-weight: 700;
  background: none;
  position: absolute;
  left: 0;
  top: 6px;
}
ol { counter-reset: li; }

.services-list > li {
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 10px rgba(51,102,92,0.07);
  margin-bottom: 14px;
  padding: 18px 16px 11px 18px;
  font-size: 1.12rem;
}
.services-list > li strong {
  color: var(--accent);
  font-size: 1.01em;
}
.services-list > li span {
  display: inline-block;
  font-size: 0.96em;
  color: var(--hot-pink);
  background: rgba(248,92,112,0.10);
  border-radius: 6px;
  padding: 2px 10px;
  margin-left: 10px;
}
.services-list > li p {
  margin-bottom: 0.4em;
  color: var(--primary-alt);
}

.project-case {
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 10px rgba(51,102,92,0.08);
  padding: 18px 14px 14px 22px;
  margin-bottom: 18px;
  border-left: 5px solid var(--lime);
}
.project-case h3 {
  color: var(--electric-blue);
  margin-bottom: 9px;
}

/* ===== TEXT SECTIONS ===== */
.text-section {
  background: rgba(248,92,112,0.035);
  border-radius: var(--radius-sm);
  padding: 22px 18px 12px 18px;
  margin-bottom: 18px;
}
.text-section h3 {
  color: var(--accent);
  margin-top: 12px;
}

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(90deg, #0CC0DF 20%, var(--secondary-bg) 80%);
  color: var(--primary-alt);
  padding: 34px 0 12px 0;
  box-shadow: 0 -2px 12px 0 rgba(12,192,223,0.04);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  gap: 36px 26px;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-inner > a img {
  height: 36px;
  margin-bottom: 12px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  color: var(--primary-alt);
  font-size: 0.99rem;
  font-family: var(--font-display);
  font-weight: 600;
  transition: color .17s;
}
.footer-nav a:hover {
  color: var(--electric-blue);
}
.footer-contact {
  font-size: 1rem;
  color: var(--primary-alt);
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-left: 24px;
}
.footer-contact address {
  font-style: normal;
  color: var(--accent);
  margin-bottom: 2px;
}
.footer-contact a {
  color: var(--hot-pink);
  font-weight: 600;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 9999;
  background: #fff;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 6px 34px 0 rgba(12,192,223,0.18);
  padding: 22px 28px 16px 28px;
  min-width: 310px;
  max-width: calc(100vw - 36px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 1.05rem;
  animation: fadeInCookie 0.39s cubic-bezier(.46,1.48,.7,1) both;
}
@keyframes fadeInCookie {
  from { opacity: 0; transform: translateX(-50%) translateY(28px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.cookie-banner .cookie-btn-group {
  display: flex;
  gap: 18px;
  margin-top: 7px;
}
.cookie-banner button {
  font-family: var(--font-display);
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 19px;
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  box-shadow: 0 1px 7px 0 rgba(51,102,92,0.09);
}
.cookie-banner .accept-all {
  background: var(--electric-blue);
  color: #fff;
}
.cookie-banner .accept-all:hover {
  background: var(--hot-pink);
}
.cookie-banner .reject-all {
  background: var(--danger);
  color: #fff;
}
.cookie-banner .reject-all:hover {
  background: var(--accent);
}
.cookie-banner .cookie-settings {
  background: #fff;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.cookie-banner .cookie-settings:hover {
  background: var(--accent);
  color: #fff;
}

/* ===== COOKIE PREFS MODAL ===== */
.cookie-modal-overlay {
  position: fixed;
  z-index: 10100;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(51,102,92,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .23s;
}
.cookie-modal-overlay.active { opacity: 1; pointer-events: auto; }
.cookie-modal {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 54px 0 rgba(205,148,67,0.18);
  max-width: 395px;
  min-width: 240px;
  padding: 30px 24px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 19px;
  animation: fadeInCookie .41s both;
  position: relative;
}
.cookie-modal h2 {
  color: var(--accent);
  font-size: 1.32rem;
  margin-bottom: 15px;
  text-align: left;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 1.06rem;
  margin-bottom: 9px;
}
.cookie-modal .cookie-list > div {
  margin-bottom: 8px;
}
.cookie-modal input[type="checkbox"] {
  width: 21px;
  height: 21px;
  accent-color: var(--accent);
  margin-right: 7px;
}
.cookie-modal .cookie-category.essential {
  opacity: .78;
  font-style: italic;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 18px;
}
.cookie-modal .close-cookie-modal {
  color: var(--hot-pink);
  background: none;
  border: none;
  font-size: 2rem;
  position: absolute;
  top: 10px;
  right: 14px;
  cursor: pointer;
  z-index: 12100;
}
.cookie-modal .close-cookie-modal:hover,
.cookie-modal .close-cookie-modal:focus {
  color: var(--electric-blue);
}
.cookie-modal button {
  font-family: var(--font-display);
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 19px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  transition: background var(--transition);
}
.cookie-modal button:hover {
  background: var(--electric-blue);
}

/* ===== MEDIA QUERIES: MOBILE-FIRST ===== */
@media (max-width: 1100px) {
  .container, .header-inner { max-width: 98vw; }
  .footer-inner { flex-wrap: wrap; }
}
@media (max-width: 860px) {
  .header-inner { padding: 10px 10px 7px 10px; gap: 11px; }
  .mobile-menu-toggle { top: 12px; right: 11px; }
  .footer-inner { flex-direction: column; gap: 21px; }
}
@media (max-width: 768px) {
  .content-wrapper, .testimonials, .card-container, .card-grid, .features-grid, .features {
    flex-direction: column;
    gap: 18px;
  }
  .feature, .card, .testimonial-card, .project-case {
    min-width: 0;
    max-width: 100%;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.25rem; }
  .cta-btn, .cta-btn-mini {
    padding: 11px 16px;
    font-size: 1rem;
  }
  .hero { padding: 29px 0 21px 0; }
  .hero .cta-btn { margin-top: 17px; }
}

/* ===== ANIMATIONS/MICRO-INTERACTIONS ===== */
.card, .feature, .testimonial-card, .project-case, .faq-item {
  transition: box-shadow .17s, transform .12s;
}
.card:hover, .feature:hover, .testimonial-card:hover, .project-case:hover {
  box-shadow: 0 8px 32px 1px rgba(51,102,92,0.13);
  transform: scale(1.025);
}
.card:active, .feature:active, .testimonial-card:active, .project-case:active {
  transform: scale(0.985);
}

/* ===== GENERAL UTILITY CLASSES ===== */
.text-center { text-align: center !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-8 { margin-bottom: 8px !important; }
.mb-16 { margin-bottom: 16px !important; }
.nowrap { white-space: nowrap !important; }

/* ===== PRINTING AND DARK MODE RESET ===== */
@media (print) {
  *, *:before, *:after { background: #fff !important; color: #000 !important; box-shadow: none !important; }
}
@media (prefers-color-scheme: dark) {
  body { background: #1a2421; color: #fff; }
  section, .feature, .card, .testimonial-card, .project-case, .text-section, .faq-item {
    background: #222e2b !important;
    color: #fff !important;
    border-color: var(--electric-blue);
  }
}

/* ===== OVERRIDES FOR ACCESSIBILITY ===== */
[tabindex]:focus, a:focus, button:focus {
  outline: 2.5px solid var(--hot-pink) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 5px rgba(248,92,112,.13);
}

/* ===== END OF CSS ===== */
