/* ==========================================================================
   CSS RESET & BASICS
   ========================================================================== */
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;
}
html {
  scroll-behavior: smooth;
  background-color: #181a1b;
}
body {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #ECECEC;
  background: #232628;
  line-height: 1.6;
  min-height: 100vh;
  font-size: 16px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #F8EEEC;
  text-decoration: none;
  transition: color 0.25s cubic-bezier(.4,0,.2,1);
}
a:hover, a:focus {
  color: #9F4751;
}
ul, ol {
  list-style: none;
}
strong {
  font-weight: bold;
}
em {
  font-style: italic;
}

/* ==========================================================================
   INDUSTRIAL MODERN VARIABLES (fall-back for CSS custom properties)
   ========================================================================== */
:root {
  --color-primary: #046380;
  --color-secondary: #F8EEEC;
  --color-accent: #9F4751;
  --color-dark: #181a1b;
  --color-bg: #232628;
  --color-metal: #71777A;
  --color-light: #F8EEEC;
  --color-card: #222528;
  --color-border: #384147;
  --color-text: #ECECEC;
  --color-shadow: rgba(38,44,49,0.3);
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Montserrat', Arial, sans-serif;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-secondary);
  letter-spacing: 1px;
  font-weight: 700;
  /* Uppercase for subtle industrial touch on h2/h3 */
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  text-shadow: 0 2px 8px var(--color-shadow);
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  font-weight: 600;
}
h4, h5, h6 {
  font-size:1rem;
  font-family: var(--font-body);
  color: var(--color-accent);
}
p {
  color: var(--color-light);
  font-size: 1rem;
  margin-bottom: 16px;
}
.text-section p {
  color: #B6BCBF;
}

/* Headings in Testimonials and Cards maintain dark-on-light contrast */
.testimonial-card p, .testimonial-detail {
  color: #232628;
}

/* ==========================================================================
   CONTAINERS & SECTIONS
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background-color: transparent;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.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;
  }
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
header {
  background: #181a1b;
  border-bottom: 2px solid #384147;
  box-shadow: 0 2px 8px var(--color-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}
header .container {
  padding: 12px 20px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
header img {
  height: 46px;
  width: auto;
  margin-right: 32px;
}
nav[aria-label="Hlavní navigace"] {
  display: flex;
  gap: 32px;
  align-items: center;
}
header nav a {
  font-family: var(--font-body);
  letter-spacing: 0.5px;
  color: var(--color-secondary);
  font-weight: 500;
  padding: 7px 0;
  border-bottom: 2px solid transparent;
  font-size: 1rem;
  transition: border-color .2s cubic-bezier(.4,0,.2,1), color .2s cubic-bezier(.4,0,.2,1);
}
header nav a:hover, header nav a:focus {
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
}

.cta-btn {
  background: var(--color-accent);
  color: var(--color-light);
  border: none;
  padding: 13px 28px;
  border-radius: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(0,0,0,.22);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  margin-left: 24px;
  transition: background .22s cubic-bezier(.4,0,.2,1), box-shadow .22s cubic-bezier(.4,0,.2,1);
  position: relative;
  outline: none;
}
.cta-btn:hover,.cta-btn:focus {
  background: #d56273;
  box-shadow: 0 8px 24px rgba(185, 64, 84, 0.29);
  color: #fff;
}

/* ==========================================================================
   MOBILE BURGER MENU
   ========================================================================== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--color-secondary);
  cursor: pointer;
  margin-left: 16px;
  z-index: 1202;
  transition: color .2s cubic-bezier(.5,0,.5,1);
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--color-accent);
}

.mobile-menu {
  display: none;
}

@media (max-width: 960px) {
  header .container nav,
  header .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 960px) {
  .mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: #232628cc;
    z-index: 1200;
    transform: translateX(100%);
    transition: transform .33s cubic-bezier(.4,0,.2,1);
    padding-top: 32px;
    overflow-y: auto;
  }
  .mobile-menu.open {
    transform: translateX(0);
  }
  .mobile-menu-close {
    align-self: flex-end;
    background: none;
    border: none;
    color: var(--color-light);
    font-size: 2rem;
    padding: 0 20px;
    cursor: pointer;
    margin-bottom: 24px;
    z-index: 1300;
    transition: color .2s cubic-bezier(.4,0,.2,1);
  }
  .mobile-menu-close:focus {
    outline: 2px solid var(--color-accent);
  }
  .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
    width: 100%;
    padding: 0 32px;
  }
  .mobile-nav a {
    font-size: 1.2rem;
    color: var(--color-light);
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
    background: none;
    transition: color .2s cubic-bezier(.4,0,.2,1), background .2s cubic-bezier(.4,0,.2,1);
  }
  .mobile-nav a:hover,
  .mobile-nav a:focus {
    background: var(--color-primary);
    color: #fff;
    border-radius: 4px;
    outline: none;
  }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  background: linear-gradient(100deg, #181a1b 55%, #232628 100%);
  padding: 60px 0 32px 0;
  box-shadow: 0 2px 18px 0 rgba(50,52,60,0.10);
  border-bottom: 1px solid var(--color-border);
}
.hero .content-wrapper {
  align-items: flex-start;
}
.hero h1 {
  color: var(--color-secondary);
  font-size: 2.5rem;
  font-family: var(--font-display);
  margin-bottom: 18px;
}
.hero p {
  font-size: 1.1rem;
}
@media (min-width: 800px) {
  .hero h1 { font-size: 3rem; }
}

/* ==========================================================================
   CARD CONTAINER & CARDS
   ========================================================================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-card);
  border-radius: 12px;
  box-shadow: 0 3px 16px 0 var(--color-shadow);
  padding: 32px 24px;
  margin-bottom: 20px;
  position: relative;
  border: 1px solid var(--color-border);
  min-width: 240px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .22s cubic-bezier(.4,0,.2,1), border-color .22s cubic-bezier(.4,0,.2,1), transform .2s cubic-bezier(.4,0,.2,1);
}
.card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 8px 36px 0 rgba(159,71,81,0.16), 0 2px 8px var(--color-shadow);
  transform: translateY(-4px) scale(1.01);
}
.card h3 {
  color: var(--color-accent);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

/* ==========================================================================
   FEATURE/FLEXIBLE LISTS
   ========================================================================== */
ul, ol {
  margin-left: 0;
  margin-bottom: 16px;
  padding-left: 0;
}
ul li, ol li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  line-height: 1.65;
  color: #D8DDE1;
  font-size: 1.05rem;
  font-family: var(--font-body);
}
ul li::before, ol li::before {
  content: '';
  background: var(--color-metal);
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 2px;
  margin-right: 14px;
  position: absolute;
  left: 0; top: 7px;
}
ol li {
  counter-increment: li;
  padding-left: 30px;
}
ol {
  counter-reset: li;
}
ol li::before {
  content: counter(li) '.';
  color: var(--color-accent);
  font-family: var(--font-display);
  font-weight: bold;
  background: none;
  position: absolute;
  left: 0; top: 3px;
  width: auto;
  height: auto;
  margin: 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ==========================================================================
   TESTIMONIALS (DISTINCTIVE CARD)
   ========================================================================== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #eef2f3; /* Light for contrast */
  color: #232628;
  border-radius: 12px;
  box-shadow: 0 2px 9px 0 rgba(19, 24, 28, 0.13);
  padding: 20px;
  margin-bottom: 20px;
  border-left: 5px solid var(--color-accent);
  min-width: 220px;
  max-width: 680px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  transition: box-shadow .18s cubic-bezier(.4,0,.2,1);
}
.testimonial-card:hover {
  box-shadow: 0 9px 36px 0 rgba(159,71,81,.09);
}
.testimonial-detail {
  font-size: 0.98rem;
  color: #6a6f74;
  margin-left: auto;
  font-family: var(--font-display);
  letter-spacing: 1px;
  font-style: italic;
}

/* ==========================================================================
   PRICING BOX (STYLING.html)
   ========================================================================== */
.pricing-box {
  background: #181a1b;
  color: #F8EEEC;
  padding: 18px 28px;
  border-radius: 8px;
  border-left: 6px solid var(--color-primary);
  font-family: var(--font-display);
  font-size: 1.13rem;
  font-weight: 500;
  box-shadow: 0 2px 8px 0 rgba(4,99,128,0.09);
  margin-top: 12px;
  letter-spacing: 1px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  background: #181a1b;
  border-top: 2px solid #384147;
  padding: 36px 0;
  margin-top: 60px;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
footer nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 12px;
}
footer nav a {
  color: var(--color-secondary);
  font-size: 1rem;
  letter-spacing: .5px;
  transition: color .22s cubic-bezier(.4,0,.2,1);
  padding: 4px 0;
}
footer nav a:hover {
  color: var(--color-accent);
}
.brand-footer {
  color: #b4b4ba;
  font-size: 0.95rem;
  letter-spacing: .25px;
  text-align: center;
}

/* ==========================================================================
   COOKIE CONSENT BANNER & POPUP
   ========================================================================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #232628;
  color: #F8EEEC;
  padding: 24px 30px;
  box-shadow: 0 -2px 16px 0 rgba(44,54,64,0.24);
  border-top: 3px solid var(--color-accent);
  gap: 16px;
  transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .3s cubic-bezier(.4,0,.2,1);
  font-family: var(--font-body);
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-text {
  flex: 1 1 0%;
  font-size: 1rem;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: 7px;
  border: none;
  padding: 10px 18px;
  font-size: 1rem;
  cursor: pointer;
  transition: background .19s cubic-bezier(.4,0,.2,1), color .19s cubic-bezier(.4,0,.2,1);
  margin: 0;
}
.cookie-banner .accept-btn {
  background: var(--color-primary);
  color: #fff;
}
.cookie-banner .accept-btn:hover { background: #0981ab; }
.cookie-banner .reject-btn {
  background: #71777A;
  color: #fff;
}
.cookie-banner .reject-btn:hover { background: #585e61; }
.cookie-banner .settings-btn {
  background: transparent;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  padding: 8px 17px;
}
.cookie-banner .settings-btn:hover { background: var(--color-accent); color: #fff; }

/* Cookie Settings Modal */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(40,45,52,0.94);
  z-index: 4550;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity .22s cubic-bezier(.4,0,.2,1);
}
.cookie-modal.hide {
  opacity: 0; pointer-events: none;
}
.cookie-modal-dialog {
  background: #F8EEEC;
  color: #232628;
  padding: 34px 26px 28px 26px;
  border-radius: 14px;
  min-width: 325px;
  max-width: 98vw;
  box-shadow: 0 7px 36px rgba(19,24,28,0.22);
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: var(--font-body);
  animation: cookieFadeIn .33s cubic-bezier(.4,0,.2,1);
}
@keyframes cookieFadeIn {
  0% { transform: translateY(50px); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cookie-modal-close {
  background: none;
  border: none;
  font-size: 1.45rem;
  color: #222528;
  cursor: pointer;
  padding: 1px 8px;
  border-radius: 4px;
  transition: background .15s cubic-bezier(.4,0,.2,1);
}
.cookie-modal-close:hover {
  background: #ddd;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 19px;
  margin: 18px 0 4px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-category label {
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: .1px;
}
/* Switch toggle simulation */
.cookie-switch {
  position: relative;
  width: 37px;
  height: 22px;
  display: inline-block;
}
.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #9fa7ac;
  border-radius: 22px;
  transition: background .2s cubic-bezier(.4,0,.2,1);
}
.cookie-switch input:checked + .cookie-slider { background-color: var(--color-primary); }
.cookie-slider:before {
  position: absolute;
  content: '';
  height: 16px;
  width: 16px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s cubic-bezier(.4,0,.2,1);
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(15px);
}
.cookie-category .always {
  color: var(--color-accent);
  font-weight: 600;
}
.cookie-modal-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  margin-top: 9px;
}
.cookie-modal-footer button {
  font-family: var(--font-body);
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  background: var(--color-primary);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background .18s cubic-bezier(.4,0,.2,1);
}
.cookie-modal-footer .close-modal-btn {
  background: #71777A;
}
.cookie-modal-footer .close-modal-btn:hover {
  background: #33383c;
}
.cookie-modal-footer .save-modal-btn:hover {
  background: #0981ab;
}

/* ==========================================================================
   UNIVERSAL UTILITIES
   ========================================================================== */
@media (max-width: 1024px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  .section {
    padding: 24px 8px;
    margin-bottom: 36px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .card, .testimonial-card {
    padding: 16px 10px;
    min-width: unset;
    max-width: 100%;
  }
}

/* ==========================================================================
   SCROLLBAR STYLING (INDUSTRIAL LOOK)
   ========================================================================== */
::-webkit-scrollbar {
  width: 11px; background: #25282a;
}
::-webkit-scrollbar-track {
  background: #222528;
}
::-webkit-scrollbar-thumb {
  background: #71777A;
  border-radius: 9px;
  border: 3px solid #232628;
}

/* ==========================================================================
   MICRO-INTERACTIONS: BUTTONS, CARDS
   ========================================================================== */
button, .cta-btn {
  outline: none;
}
button:active, .cta-btn:active {
  transform: translateY(1px) scale(0.99);
}
.card, .testimonial-card, .pricing-box {
  transition: box-shadow .17s cubic-bezier(.4,0,.2,1), border-color .17s cubic-bezier(.4,0,.2,1), transform .17s cubic-bezier(.4,0,.2,1);
}

/* ==========================================================================
   MEDIA QUERIES FOR RESPONSIVENESS
   ========================================================================== */
@media (max-width: 850px) {
  .container {
    max-width: 98vw;
  }
  nav[aria-label="Hlavní navigace"] {
    gap: 12px;
  }
}
@media (max-width: 660px) {
  .container {
    padding-left: 5px;
    padding-right: 5px;
  }
  .brand-footer {
    font-size: 0.91rem;
  }
  .hero {
    padding: 32px 0 20px 0;
  }
  footer {
    padding: 20px 0;
  }
}

/* ==========================================================================
   INDUSTRIAL MODERN ACCENTS
   ========================================================================== */
.section, .content-wrapper, .card, .testimonial-card, .pricing-box {
  box-shadow: 0 3px 16px 0 var(--color-shadow);
}
.card, .testimonial-card, .pricing-box {
  border-radius: 9px;
}

/* Subtle metallic line for industrial mood */
.section {
  border-left: 4px solid #71777A;
}
@media (max-width: 660px) {
  .section {
    border-left-width: 2px;
  }
}

/* ================= END OF STYLES ================== */
