/* Light clean theme for clarity */

@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap');

:root {
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-text: #0f172a;
  --color-muted: #64748b;
  --color-border: #e5e7eb;
  --color-accent: #E11D48; /* brand red (rose-600) */
  --color-accent-2: #DC2626; /* deeper red */
  --color-soft: #f8fafc;

  --container: 1180px;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.06);
  --shadow-md: 0 12px 28px rgba(0,0,0,0.10);

  --space-1: 6px; --space-2: 10px; --space-3: 14px; --space-4: 20px; --space-5: 28px; --space-6: 40px; --space-7: 56px; --space-8: 84px;
  --size-1: 12px; --size-2: 14px; --size-3: 16px; --size-4: 18px; --size-5: 22px; --size-6: 28px; --size-7: 36px; --size-8: 46px;
}

/* Section background circles - different circles for each section */
.section-circles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.section-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: none !important;
  transform: translateY(-5px);
}

/* Allow circles to appear across section boundaries */
.section .section-circle {
  filter: none;
}

/* Hero section circles */
.hero--cover {
  position: relative;
  overflow: visible;
}

.hero--cover .section-circles .section-circle:nth-child(1) {
  width: 80px;
  height: 80px;
  background: rgba(225, 29, 72, 0.08);
  top: 15%;
  left: 10%;
  animation-delay: 0s;
}

.hero--cover .section-circles .section-circle:nth-child(2) {
  width: 60px;
  height: 60px;
  background: rgba(220, 38, 38, 0.06);
  top: 25%;
  right: 15%;
  animation-delay: 2s;
}

.hero--cover .section-circles .section-circle:nth-child(3) {
  width: 100px;
  height: 100px;
  background: rgba(225, 29, 72, 0.05);
  top: 60%;
  left: 5%;
  animation-delay: 4s;
}

.hero--cover .section-circles .section-circle:nth-child(4) {
  width: 45px;
  height: 45px;
  background: rgba(220, 38, 38, 0.07);
  top: 70%;
  right: 10%;
  animation-delay: 6s;
}

/* Services section circles */
#sluzby {
  position: relative;
  overflow: visible;
}

#sluzby .section-circles .section-circle:nth-child(1) {
  width: 70px;
  height: 70px;
  background: rgba(225, 29, 72, 0.06);
  top: 20%;
  left: 8%;
  animation-delay: 1s;
}

#sluzby .section-circles .section-circle:nth-child(2) {
  width: 50px;
  height: 50px;
  background: rgba(220, 38, 38, 0.05);
  top: 40%;
  right: 12%;
  animation-delay: 3s;
}

#sluzby .section-circles .section-circle:nth-child(3) {
  width: 85px;
  height: 85px;
  background: rgba(225, 29, 72, 0.04);
  top: 70%;
  left: 15%;
  animation-delay: 5s;
}

#sluzby .section-circles .section-circle:nth-child(4) {
  width: 35px;
  height: 35px;
  background: rgba(220, 38, 38, 0.06);
  top: 80%;
  right: 20%;
  animation-delay: 7s;
}

/* Gallery section circles */
.gallery-section {
  position: relative;
  overflow: visible;
}

.gallery-section .section-circles .section-circle:nth-child(1) {
  width: 90px;
  height: 90px;
  background: rgba(225, 29, 72, 0.05);
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.gallery-section .section-circles .section-circle:nth-child(2) {
  width: 65px;
  height: 65px;
  background: rgba(220, 38, 38, 0.06);
  top: 30%;
  right: 8%;
  animation-delay: 2s;
}

.gallery-section .section-circles .section-circle:nth-child(3) {
  width: 55px;
  height: 55px;
  background: rgba(225, 29, 72, 0.07);
  top: 60%;
  left: 12%;
  animation-delay: 4s;
}

.gallery-section .section-circles .section-circle:nth-child(4) {
  width: 75px;
  height: 75px;
  background: rgba(220, 38, 38, 0.04);
  top: 85%;
  right: 15%;
  animation-delay: 6s;
}

/* Contact section circles */
.contact {
  position: relative;
  overflow: hidden;
}

.contact .section-circles .section-circle:nth-child(1) {
  width: 60px;
  height: 60px;
  background: rgba(225, 29, 72, 0.06);
  top: 15%;
  left: 10%;
  animation-delay: 1s;
}

.contact .section-circles .section-circle:nth-child(2) {
  width: 80px;
  height: 80px;
  background: rgba(220, 38, 38, 0.05);
  top: 35%;
  right: 10%;
  animation-delay: 3s;
}

.contact .section-circles .section-circle:nth-child(3) {
  width: 45px;
  height: 45px;
  background: rgba(225, 29, 72, 0.07);
  top: 65%;
  left: 8%;
  animation-delay: 5s;
}

.contact .section-circles .section-circle:nth-child(4) {
  width: 70px;
  height: 70px;
  background: rgba(220, 38, 38, 0.04);
  top: 80%;
  right: 12%;
  animation-delay: 7s;
}

/* Story section circles */
.story-section {
  position: relative;
  overflow: visible;
}

.story-section .section-circles .section-circle:nth-child(1) {
  width: 65px;
  height: 65px;
  background: rgba(225, 29, 72, 0.05);
  top: 10%;
  left: 12%;
  animation-delay: 0s;
}

.story-section .section-circles .section-circle:nth-child(2) {
  width: 40px;
  height: 40px;
  background: rgba(220, 38, 38, 0.06);
  top: 30%;
  right: 15%;
  animation-delay: 2s;
}

.story-section .section-circles .section-circle:nth-child(3) {
  width: 55px;
  height: 55px;
  background: rgba(225, 29, 72, 0.04);
  top: 60%;
  left: 8%;
  animation-delay: 4s;
}

.story-section .section-circles .section-circle:nth-child(4) {
  width: 75px;
  height: 75px;
  background: rgba(220, 38, 38, 0.05);
  top: 85%;
  right: 10%;
  animation-delay: 6s;
}

/* Partner brands section circles */
.partner-brands-section {
  position: relative;
  overflow: visible;
}

.partner-brands-section .section-circles .section-circle:nth-child(1) {
  width: 50px;
  height: 50px;
  background: rgba(225, 29, 72, 0.06);
  top: 20%;
  left: 15%;
  animation-delay: 1s;
}

.partner-brands-section .section-circles .section-circle:nth-child(2) {
  width: 80px;
  height: 80px;
  background: rgba(220, 38, 38, 0.04);
  top: 45%;
  right: 12%;
  animation-delay: 3s;
}

.partner-brands-section .section-circles .section-circle:nth-child(3) {
  width: 35px;
  height: 35px;
  background: rgba(225, 29, 72, 0.07);
  top: 70%;
  left: 10%;
  animation-delay: 5s;
}

.partner-brands-section .section-circles .section-circle:nth-child(4) {
  width: 60px;
  height: 60px;
  background: rgba(220, 38, 38, 0.05);
  top: 90%;
  right: 18%;
  animation-delay: 7s;
}

/* References section circles */
.references {
  position: relative;
  overflow: visible;
}

.references .section-circles .section-circle:nth-child(1) {
  width: 70px;
  height: 70px;
  background: rgba(225, 29, 72, 0.05);
  top: 15%;
  left: 8%;
  animation-delay: 0s;
}

.references .section-circles .section-circle:nth-child(2) {
  width: 45px;
  height: 45px;
  background: rgba(220, 38, 38, 0.06);
  top: 35%;
  right: 15%;
  animation-delay: 2s;
}

.references .section-circles .section-circle:nth-child(3) {
  width: 85px;
  height: 85px;
  background: rgba(225, 29, 72, 0.04);
  top: 65%;
  left: 12%;
  animation-delay: 4s;
}

.references .section-circles .section-circle:nth-child(4) {
  width: 55px;
  height: 55px;
  background: rgba(220, 38, 38, 0.05);
  top: 85%;
  right: 8%;
  animation-delay: 6s;
}

@keyframes floatCircles {
  0%, 100% {
    transform: translateY(0px) scale(1);
    opacity: 1;
  }
  25% {
    transform: translateY(-5px) scale(1.02);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-2px) scale(1.01);
    opacity: 0.9;
  }
  75% {
    transform: translateY(-8px) scale(1.03);
    opacity: 0.7;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { height: 100%; }
body { margin: 0; font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji"; color: var(--color-text); background: var(--color-bg); line-height: 1.7; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; }

/* Fix for iOS Safari viewport units */
@supports (-webkit-touch-callout: none) {
  body {
    min-height: -webkit-fill-available;
  }
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; -webkit-appearance: none; -moz-appearance: none; appearance: none; }

/* Selection and touch tweaks */
* { -webkit-tap-highlight-color: rgba(0,0,0,0); }
*, *::before, *::after { -webkit-user-select: text; -ms-user-select: text; user-select: text; }

/* Enhanced touch interactions for mobile */
@media (max-width: 768px) {
  /* Improve touch targets */
  a, button, input, select, textarea { 
    min-height: 44px; 
    min-width: 44px; 
  }
  
  /* Better touch feedback */
  .gallery a:active, 
  .service-card:active, 
  .brand-card:active, 
  .contact-card:active { 
    transform: scale(0.98); 
    transition: transform 0.1s ease; 
  }
  
  /* Improved button states */
  .cta:active, 
  .btn-outline:active { 
    transform: scale(0.95); 
    transition: transform 0.1s ease; 
  }
  
  /* Better scroll behavior */
  html { 
    scroll-behavior: smooth; 
    -webkit-overflow-scrolling: touch; 
  }
  
  /* Prevent zoom on input focus */
  input, select, textarea { 
    font-size: 16px; 
  }
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

@media (max-width: 640px) {
  .container { padding: 0 16px; }
}

@media (max-width: 380px) {
  .container { padding: 0 14px; }
}

/* Header */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 1000; background: transparent; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 160px; }
.logo { display: inline-flex; align-items: center; gap: 12px; margin-left: -26px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.logo img { height: 140px; width: auto; border-radius: 0; box-shadow: none; background: transparent; }
.logo__title { display: none; }

.nav { position: relative; }
.nav__toggle { display: none; background: transparent; border: 0; color: var(--color-text); cursor: pointer; padding: 8px; min-width: 44px; min-height: 44px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.nav__bar { display: block; width: 22px; height: 2px; background: var(--color-text); margin: 5px 0; border-radius: 2px; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; }
.nav a { opacity: 0.9; position: relative; padding: 6px 10px; border-radius: 8px; transition: color .25s ease, transform .25s ease, opacity .25s ease, background-color .25s ease, box-shadow .25s ease; min-height: 44px; display: inline-flex; align-items: center; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.nav a:hover { color: var(--color-accent); opacity: 1; transform: translateY(-1px); background-color: rgba(225,29,72,0.10); box-shadow: 0 0 0 1px rgba(225,29,72,0.25) inset; }
.nav a[aria-current="page"] { background-color: rgba(225,29,72,0.12); box-shadow: 0 0 0 1px rgba(225,29,72,0.28) inset; color: var(--color-accent); }
.nav a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; color: var(--color-accent); }

/* Hide CTA button in desktop navigation */
.nav__list .cta { 
  display: none; 
}

.cta { display: inline-flex; align-items: center; gap: 10px; background: var(--color-accent); color: #ffffff; padding: 10px 16px; border-radius: 999px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; font-weight: 700; min-height: 44px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.cta:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.cta:active { transform: translateY(0); }
.btn-outline { border: 1px solid var(--color-border); border-radius: 999px; padding: 10px 16px; display: inline-flex; align-items: center; gap: 8px; color: var(--color-text); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; box-shadow: var(--shadow-sm); min-height: 44px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.btn-outline:hover { transform: translateY(-1px); box-shadow: var(--shadow-md);}
.btn-outline:active { transform: translateY(0); }
.btn-link { color: var(--color-accent); font-weight: 600; }

.hero--cover { position: relative; min-height: 88vh; min-height: 88svh; min-height: 88dvh; display: grid; align-items: start; padding: var(--space-7) 0; padding-top: 180px; background: var(--color-soft); }
.hero__inner { position: relative; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.hero__content { max-width: 720px; }
.hero__image {
  position: relative;
  z-index: 10;
  width: 100%;
  height: auto;
  max-height: 80vh;
}
.hero__image img { width: 100%; height: auto; display: block; object-fit: contain; object-position: center; image-rendering: auto; }
.eyebrow { display: inline-block; font-size: var(--size-1); letter-spacing: .12em; text-transform: uppercase; color: var(--color-accent); background: rgba(225,29,72,0.08); border: 1px solid rgba(225,29,72,0.25); padding: 6px 10px; border-radius: 999px; margin-bottom: 12px; font-weight: 800; }
.hero--cover h1 { font-size: var(--size-8); line-height: 1.06; margin: 0 0 12px; }
.hero--cover p { font-size: var(--size-4); color: var(--color-muted); margin: 0 0 24px; }
.hero__actions { display: flex; gap: 12px; align-items: center; }

/* Use Lexend only for hero section */
.hero--cover { font-family: "Lexend", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji"; }

/* Sections */
.section { padding: var(--space-7) 0; background: #ffffff; }
.section-title { font-size: 28px; margin: 0 0 12px; }
.section-sub { color: var(--color-muted); margin: 0 0 24px; }

/* Section title animation enhancement */
.section-title.slide-up {
    transition-delay: 0ms;
}
.section-sub.slide-up {
    transition-delay: 150ms;
}

/* Make services section overlap the hero so headings are visible inside hero */
#sluzby { position: relative; z-index: 2; margin-top: clamp(-200px, -25vw, -350px); scroll-margin-top: 140px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { border: 1px solid var(--color-border); border-radius: var(--radius); padding: 20px; background: var(--color-surface); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #223041; }
.card h3 { margin: 0 0 8px; font-size: 20px; }
.card p { margin: 0 0 14px; color: var(--color-muted); }
.card__num { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 999px; background: rgba(220,38,38,0.10); color: var(--color-accent); font-weight: 700; margin-bottom: 8px; }

/* Services - new visual style */
.services { position: relative; margin-top: 24px; }
.services-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { position: relative; background: #0b0b0b; color: #ffffff; padding: 28px; border-radius: 16px; overflow: hidden; isolation: isolate; box-shadow: 0 10px 30px rgba(0,0,0,0.12); border: 1px solid rgba(255,255,255,0.08); touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.service-card:before { content: ""; position: absolute; inset: -1px; background: radial-gradient(800px 240px at -10% -10%, rgba(225,29,72,0.22), transparent 60%), radial-gradient(800px 240px at 110% 110%, rgba(225,29,72,0.18), transparent 60%); z-index: -1; opacity: 0.9; transform: scale(1); }
.service-card:after { content: ""; position: absolute; top: -60px; right: -60px; width: 160px; height: 160px; background: rgba(225,29,72,0.12); -webkit-filter: blur(20px); filter: blur(20px); border-radius: 50%; z-index: -1; opacity: 0.8; transform: translate(0, 0) scale(1); }
.service-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, rgba(225,29,72,0.95), rgba(220,38,38,0.9)); color: #ffffff; box-shadow: 0 10px 22px rgba(225,29,72,0.35); margin-bottom: 14px; }
.service-icon i { font-size: 22px; }
.service-card h3 { margin: 0 0 8px; font-size: 22px; font-weight: 700; letter-spacing: 0.2px; color: #ffffff; }
.service-card p { margin: 0 0 16px; color: rgba(255,255,255,0.9); }
.service-badge { position: absolute; top: 14px; right: 14px; background: #ffffff; color: #0b0b0b; font-weight: 800; font-size: 12px; padding: 6px 10px; border-radius: 999px; letter-spacing: .04em; box-shadow: 0 4px 14px rgba(0,0,0,0.15); }
.service-list { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 8px; }
.service-list li { display: grid; grid-template-columns: 16px 1fr; align-items: start; gap: 8px; color: #e5e5e5; font-size: 15px; }
.service-list li:before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: #E11D48; font-size: 12px; line-height: 1.9; }
.service-link { display: inline-flex; gap: 8px; align-items: center; color: #fff; font-weight: 700; text-decoration: none; border-bottom: 2px solid rgba(255,255,255,0.2); padding-bottom: 2px; transition: gap .25s cubic-bezier(0.22, 1, 0.36, 1), border-color .25s ease, color .25s ease, padding-right .28s cubic-bezier(0.22, 1, 0.36, 1); position: relative; padding-right: 36px; }
/* Hide FA icon; we'll draw our own CSS arrow to allow shaft extension */
.service-link i.fas.fa-arrow-right { display: none; }
/* CSS Arrow inspired by Shawn Looi's arrow hover technique */
.service-link::after { content: ""; position: absolute; right: 0; top: 50%; height: 2px; width: 16px; background: currentColor; transform: translateY(-50%); transition: width .4s cubic-bezier(0.22, 1, 0.36, 1), transform .4s cubic-bezier(0.22, 1, 0.36, 1); }
.service-link::before { content: ""; position: absolute; right: 0; top: 50%; width: 8px; height: 8px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: translateY(-50%) rotate(45deg); transition: transform .4s cubic-bezier(0.22, 1, 0.36, 1); }
.service-link:hover { gap: 10px; border-color: rgba(255,255,255,0.55); color: #ffffff; padding-right: 36px; }
.service-link:hover::after { width: 24px; transform: translateY(-50%) translateX(2px); }
.service-link:hover::before { transform: translateY(-50%) translateX(2px) rotate(45deg); }
.service-card:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,0,0,0.16); }

/* Smooth hover enhancements for service items */
.service-card { transition: transform .35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow .35s ease, border-color .35s ease, background-color .35s ease; }
.service-card::before,
.service-card::after { transition: opacity .45s cubic-bezier(0.22, 1, 0.36, 1), transform .45s cubic-bezier(0.22, 1, 0.36, 1); }
.service-card:hover::before { opacity: 1; transform: scale(1.02); }
.service-card:hover::after { opacity: 1; transform: translate(6px, -6px) scale(1.06); }

.service-icon { transition: transform .35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow .35s ease, background-color .35s ease; }
.service-card:hover .service-icon { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(225,29,72,0.40); }

.service-card h3,
.service-card p { transition: color .3s ease, transform .3s ease; }
.service-card:hover h3 { transform: translateY(-0.5px); }

.service-list li { transition: transform .3s ease; }
.service-list li:before { transition: transform .3s ease; }
.service-card:hover .service-list li { transform: translateX(1px); }
.service-card:hover .service-list li:before { transform: translateX(1px); }

/* Photo cards variant */
.services--photo .service-photo { position: relative; min-height: 320px; border-radius: 18px; overflow: hidden; background: #111; display: grid; align-items: end; box-shadow: 0 12px 28px rgba(0,0,0,0.22); }
.services--photo .service-photo { background-image: var(--photo); background-size: cover; background-position: center; }
.services--photo .service-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0.2) 50%, rgba(0,0,0,0)); transition: opacity .35s ease; }
.services--photo .service-glass { position: relative; z-index: 1; margin: 16px; padding: 18px; border-radius: 14px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16); color: #fff; }
.services--photo .service-glass h3 { margin: 6px 0 6px; font-size: 22px; font-weight: 800; }
.services--photo .service-glass p { margin: 0 0 8px; color: #f2f2f2; }
.services--photo .service-icon { margin-bottom: 8px; }
.services--photo .service-badge { top: -10px; right: -10px; }
.services--photo .service-link { border-bottom-color: rgba(255,255,255,0.35); }
.services--photo .service-photo:hover .service-overlay { opacity: 0.85; }
.services--photo .service-photo:hover .service-glass { transform: translateY(-2px); transition: transform .25s ease; }

/* Clean cards variant */
.services--clean .service-card { position: relative; background: #E11D48; color: #ffffff; border: 1px solid rgba(255,255,255,0.2); box-shadow: var(--shadow-sm); will-change: transform, box-shadow; transition: transform .35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow .35s ease, border-color .35s ease, background-color .35s ease; }
.services--clean .service-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(225,29,72,0.4); border-color: rgba(255,255,255,0.4); }
.services--clean .service-icon { background: rgba(255,255,255,0.2); color: #ffffff; box-shadow: none; }
.services--clean .service-badge { background: #ffffff; color: #E11D48; box-shadow: 0 6px 16px rgba(0,0,0,0.2); }
.services--clean .service-list li { color: #ffffff; }
.services--clean .service-link { color: #ffffff; border-bottom-color: rgba(255,255,255,0.5); }
.services--clean .service-link:hover { border-bottom-color: rgba(255,255,255,1); padding-right: 36px; }
.services--clean .service-link:hover::after { width: 28px; }
.services--clean .service-link:hover::before { transform: translateY(-50%) translateX(3px) rotate(45deg); }

/* Services Grid Mobile Optimizations */
@media (max-width: 980px) {
  .services-grid { 
    grid-template-columns: 1fr 1fr; 
    gap: 20px; 
  }
  .service-card { 
    padding: 24px; 
  }
  .service-card h3 { 
    font-size: 20px; 
  }
  .service-card p { 
    font-size: 15px; 
  }
}

@media (max-width: 640px) {
  .services-grid { 
    grid-template-columns: 1fr; 
    gap: 0; 
    margin: 0;
    padding: 0;
  }
  .service-card { 
    padding: 20px 16px; 
    margin: 0; 
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  .service-card h3 { 
    font-size: 18px; 
    margin-bottom: 10px; 
  }
  .service-card p { 
    font-size: 14px; 
    margin-bottom: 12px; 
  }
  .service-list li { 
    font-size: 13px; 
    margin-bottom: 6px; 
  }
  .service-link { 
    font-size: 14px; 
    padding-bottom: 4px; 
    padding-right: 32px; 
  }
  .service-icon { 
    width: 48px; 
    height: 48px; 
    margin-bottom: 12px; 
  }
  .service-icon i { 
    font-size: 18px; 
  }
  .service-badge { 
    top: 12px; 
    right: 12px; 
    font-size: 11px; 
    padding: 4px 8px; 
  }
}

/* Mobile: make services not full-screen, add gutters and rounding */
@media (max-width: 640px) {
  #sluzby .container { padding: 0 16px; }
  #sluzby .services-grid { gap: 16px; }
  #sluzby .service-card { border-radius: 12px; border-left: initial; border-right: initial; }
}

/* Split */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.split .media { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); }
.split img { width: 100%; height: auto; display: block; }
.split .content { text-align: center; position: relative; width: 400px; margin: 0 auto; }
.split .content:before { content: ''; position: absolute; inset: 0; border: 1px solid var(--color-border); border-radius: 12px; background: #faf7f2; z-index: 1; }
.split .content:after { content: ''; position: absolute; right: 10px; top: 70px; width: 150px; height: 150px; background-image: url('/icon_dlabanec.png'); background-size: contain; background-repeat: no-repeat; opacity: 0.08; z-index: 2; pointer-events: none; }
.split .content .content-inner { position: relative; z-index: 3; padding: 24px; }
.split .content h3 { margin: 0 0 8px; font-size: 24px; }
.split .content p { margin: 0 0 12px; color: var(--color-muted); }
.split .content a { position: relative; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery a { position: relative; display: block; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; -webkit-filter: grayscale(8%); filter: grayscale(8%); transform: scale(1.01); transition: transform .35s ease, filter .35s ease; }
.gallery a:hover img { -webkit-filter: grayscale(0%); filter: grayscale(0%); transform: scale(1.05); }
@media (hover: none) and (pointer: coarse) {
  .gallery a:active img { -webkit-filter: grayscale(0%); filter: grayscale(0%); transform: scale(1.05); }
}

/* Gallery Mobile Optimizations */
@media (max-width: 768px) {
  .gallery { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 8px; 
  }
  .gallery a { 
    border-radius: 8px; 
  }
  .gallery img { 
    aspect-ratio: 1; 
  }
}

@media (max-width: 480px) {
  .gallery { 
    grid-template-columns: 1fr; 
    gap: 0; 
    margin: 0;
    padding: 0;
  }
  .gallery a {
    border-radius: 0;
    margin: 0;
  }
  .gallery img { 
    aspect-ratio: 4/3; 
  }
}

/* Gallery Section - Full showcase style */
.gallery-section {
    padding: var(--space-8) 0;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.gallery-section::before {
    content: none;
    display: none;
}

.gallery-header {
    text-align: center;
    margin-bottom: 3rem;
}

.gallery-showcase {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Gallery Showcase Mobile Optimizations */
@media (max-width: 768px) {
  .gallery-showcase {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .showcase-carousel .carousel-container {
    height: 250px;
    margin-top: 20px;
  }
  
  .showcase-carousel .carousel-item[data-pos="0"] { 
    width: 120px; 
    height: 120px; 
    transform: translateX(-140px) translateZ(-120px) scale(0.7) rotateY(15deg); 
  }
  
  .showcase-carousel .carousel-item[data-pos="1"] { 
    width: 200px; 
    height: 200px; 
  }
  
  .showcase-carousel .carousel-item[data-pos="2"] { 
    width: 120px; 
    height: 120px; 
    transform: translateX(140px) translateZ(-120px) scale(0.7) rotateY(-15deg); 
  }
  
  .showcase-main img { 
    height: 300px; 
  }
  
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .showcase-item {
    aspect-ratio: 4/3;
  }
}

@media (max-width: 480px) {
  .showcase-carousel .carousel-container {
    height: 200px;
    margin-top: 15px;
  }
  
  .showcase-carousel .carousel-item[data-pos="0"] { 
    width: 100px; 
    height: 100px; 
    transform: translateX(-120px) translateZ(-100px) scale(0.6) rotateY(20deg); 
  }
  
  .showcase-carousel .carousel-item[data-pos="1"] { 
    width: 160px; 
    height: 160px; 
  }
  
  .showcase-carousel .carousel-item[data-pos="2"] { 
    width: 100px; 
    height: 100px; 
    transform: translateX(120px) translateZ(-100px) scale(0.6) rotateY(-20deg); 
  }
  
  .showcase-main img { 
    height: 250px; 
  }
  
  .more-number {
    font-size: 4rem;
  }
}

.showcase-carousel {
    position: relative;
    background: transparent;
    border: none;
    box-shadow: none;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.showcase-carousel .hero-carousel {
    width: 100%;
    height: auto;
    max-width: 100%;
    margin: 0;
    pointer-events: auto;
    overflow: visible;
}

.showcase-carousel .carousel-container {
    position: relative;
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    overflow: visible;
    z-index: 6;
    margin-top: 50px;
}

.showcase-carousel .carousel-item {
    position: absolute;
    transition: all 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
    pointer-events: none;
    will-change: transform, opacity, filter;
    z-index: 7;
}

.showcase-carousel .carousel-item img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 15px;
    transition: filter 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.showcase-carousel .carousel-item[data-pos="0"] { 
    width: 200px; 
    height: 200px; 
    transform: translateX(-220px) translateZ(-180px) scale(0.75) rotateY(12deg); 
    opacity: 0.65; 
    z-index: 1; 
}

.showcase-carousel .carousel-item[data-pos="0"] img { 
    -webkit-filter: grayscale(95%) brightness(0.5); 
    filter: grayscale(95%) brightness(0.5); 
}

.showcase-carousel .carousel-item[data-pos="1"] { 
    width: 320px; 
    height: 320px; 
    transform: translateX(0) translateZ(0) scale(1) rotateY(0deg); 
    opacity: 1; 
    z-index: 3; 
}

.showcase-carousel .carousel-item[data-pos="1"] img { 
    -webkit-filter: none; 
    filter: none; 
}

.showcase-carousel .carousel-item[data-pos="2"] { 
    width: 200px; 
    height: 200px; 
    transform: translateX(220px) translateZ(-180px) scale(0.75) rotateY(-12deg); 
    opacity: 0.65; 
    z-index: 1; 
}

.showcase-carousel .carousel-item[data-pos="2"] img { 
    -webkit-filter: grayscale(95%) brightness(0.5); 
    filter: grayscale(95%) brightness(0.5); 
}

.showcase-main {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
    cursor: pointer;
}

.showcase-main img { width: 100%; height: 500px; object-fit: cover; display: block; image-rendering: auto; }

.showcase-main:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0,0,0,0.2);
}

.showcase-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.showcase-main:hover .showcase-overlay {
    opacity: 1;
}

.showcase-badge {
    background: #E11D48;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 20px rgba(225,29,72,0.3);
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.showcase-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    aspect-ratio: 1;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.showcase-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); image-rendering: auto; }

.showcase-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.showcase-item:hover img {
    transform: scale(1.08);
}

.showcase-item .showcase-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent 60%);
    padding: 1rem;
}

.showcase-label {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.more-number {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    font-weight: 900;
    color: #E11D48;
    background: linear-gradient(135deg, rgba(225,29,72,0.1), rgba(220,38,38,0.05));
    border-radius: 15px;
    text-shadow: 0 4px 12px rgba(225,29,72,0.3);
    font-family: "Roboto Condensed", Arial, sans-serif;
    letter-spacing: -0.02em;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect for the "20+" item */
.showcase-item:has(.more-number):hover {
    transform: translateY(-3px);
}

.showcase-item:has(.more-number):hover .more-number {
    transform: scale(1.08);
}



.gallery-footer {
    text-align: center;
    margin-top: 3rem;
}

.cta--large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(225,29,72,0.2);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.cta--large:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(225,29,72,0.3);
}

.cta--large i {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.cta--large:hover i {
    transform: translateX(4px);
}

.gallery-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    color: var(--color-muted);
}

.gallery-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.gallery-stats i {
    color: #E11D48;
    opacity: 0.7;
}

/* Remove any tinted background circles in the gallery section */
.gallery-section .section-circles .section-circle { background: transparent !important; }

/* Animation delays for showcase items */
.showcase-main.fade-in { transition-delay: 0ms; }
.showcase-grid .fade-in:nth-child(1) { transition-delay: 100ms; }
.showcase-grid .fade-in:nth-child(2) { transition-delay: 200ms; }
.showcase-grid .fade-in:nth-child(3) { transition-delay: 300ms; }
.showcase-grid .fade-in:nth-child(4) { transition-delay: 400ms; }

/* Logos */
.logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: center; }
.logos img { max-height: 44px; width: auto; justify-self: center; align-self: center; opacity: 0.85; -webkit-filter: grayscale(100%); filter: grayscale(100%); transition: opacity .25s ease, filter .25s ease, transform .25s ease; }
.logos img:hover { opacity: 1; -webkit-filter: grayscale(0%); filter: grayscale(0%); transform: translateY(-1px); }
.logo-badge { border: 1px dashed var(--color-border); border-radius: 10px; padding: 16px; text-align: center; color: var(--color-muted); background: #f8fafc; }

/* Story */
.story { display: grid; grid-template-columns: 1fr; gap: 18px; }
.story__item { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 16px; border: 1px solid var(--color-border); border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); }
.story__num { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 999px; background: rgba(225,29,72,0.08); color: var(--color-accent); font-weight: 700; }
.story__content h3 { margin: 0 0 6px; font-size: 20px; }

/* Brands */
.cards--brands { grid-template-columns: repeat(3, 1fr); }
.brand-card { display: grid; grid-template-rows: auto 1fr; gap: 10px; }
.brand-card__media img { width: 100%; height: 160px; object-fit: cover; border-radius: 10px; }
.brand-card__body h3 { margin: 0 0 4px; font-size: 18px; }

/* Partner logos strip */
.partner-logos { display: flex; align-items: center; justify-content: center; gap: 32px; padding: 12px 0; flex-wrap: wrap; }
.partner-logo { height: clamp(56px, 7vw, 72px); width: auto; -webkit-filter: grayscale(0%) contrast(1); filter: grayscale(0%) contrast(1); opacity: 1; transition: opacity 0.6s ease, filter 0.6s ease, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
.partner-logo--boost { height: calc(clamp(56px, 7vw, 72px) + 10px); }
.partner-logo.visible { opacity: 1; -webkit-filter: grayscale(0%) contrast(1); filter: grayscale(0%) contrast(1); transform: translateY(0) scale(1); }

/* References (Důvěřují nám) */
.references { background: transparent; text-align: center; }
.references .section-title { font-family: "Roboto Condensed", Arial, sans-serif; font-size: 3rem; margin-bottom: 2rem; position: relative; display: inline-block; }
.references .section-title::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 80px; height: 3px; background: #E11D48; }
.references .section-sub { color: #64748b; margin-bottom: 1.5rem; }
.references .partner-logos { gap: 22px; padding: 16px 0 6px 0; }
.references .partner-logos a { display: grid; place-items: center; background: transparent; border: 1px solid #eaeaea; border-radius: 12px; padding: clamp(10px, 2.2vw, 18px) clamp(14px, 3vw, 22px); box-shadow: 0 6px 18px rgba(0,0,0,0.04); touch-action: manipulation; -webkit-tap-highlight-color: transparent; min-height: 44px; }
.references .partner-logo { height: clamp(46px, 6vw, 68px); opacity: 1; -webkit-filter: grayscale(0%) contrast(1); filter: grayscale(0%) contrast(1); }

/* Remove any tinted background circles in the references section */
.references .section-circles .section-circle { background: transparent !important; }


/* Contact */
.contact {
    padding: 5rem 2rem 5rem 2rem;
    margin-top: 0;
    background: transparent;
    text-align: center;
}

.contact-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    text-align: left;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card {
    background: #faf7f2;
    padding: 2rem;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    text-align: center;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 2rem;
    color: #000000;
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #333333;
}

.contact-card p {
    font-size: 1.1rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
    color: #333333;
}

.contact-card a {
    color: #E11D48;
    text-decoration: none;
    font-size: 1.1rem;
    transition: opacity 0.3s ease;
    margin-top: 0.5rem;
    padding: 8px 12px;
    border-radius: 6px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.contact-card a:hover {
    opacity: 1;
    text-decoration: underline;
}

.map-container {
    padding: 0;
    height: 100%;
}

.map-container iframe {
    border-radius: 0;
    height: 100%;
    min-height: 400px;
}

/* Footer */
footer {
    background: transparent !important;
    background-color: transparent !important;
    color: #333333;
    padding: 1rem 1rem;
    text-align: center;
    border-top: none;
    margin-top: auto;
    flex-shrink: 0;
}

.footer-content p { margin: 0; opacity: 0.9; }

.footer-content { position: relative; }
.footer-content { background: transparent; background-color: transparent; }

/* Inline footer row */
.footer-line {
    display: inline-flex;
    align-items: center;
    gap: 150px;
    flex-wrap: nowrap;
    white-space: nowrap;
    font-size: 14px;
}

.footer-line a { text-decoration: none; }
.footer-line a:hover { text-decoration: underline; }
.footer-line .separator { opacity: 0.5; }

.footer-credit a {
    transition: text-decoration 0.3s ease;
}

.footer-credit a:hover {
    text-decoration: underline !important;
}

/* Remove old multi-row footer layout */
.footer-links { display: none; }

.footer-links a {
    color: #333333;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    padding: 8px 12px;
    display: inline-block;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Scroll to top arrow */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #000000;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: opacity 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55),
                transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55),
                background 0.3s ease,
                box-shadow 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.scroll-to-top.stuck {
    position: absolute;
    bottom: auto;
    right: 30px;
    top: auto;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    animation: scrollToTopAppear 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.scroll-to-top.hiding {
    opacity: 0;
    transform: translateY(20px) scale(0.8) rotate(180deg);
    animation: scrollToTopHide 0.4s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.scroll-to-top:hover {
    background: #E11D48;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

@keyframes scrollToTopAppear {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.5) rotate(-180deg);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-10px) scale(1.1) rotate(0deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

@keyframes scrollToTopHide {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.3;
        transform: translateY(10px) scale(0.9) rotate(90deg);
    }
    100% {
        opacity: 0;
        transform: translateY(20px) scale(0.8) rotate(180deg);
    }
}

@keyframes scrollToTopPulse {
    0% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 8px rgba(0, 0, 0, 0.1);
    }
    100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
}

.scroll-to-top.pulse {
    animation: scrollToTopPulse 2s ease-in-out infinite;
}

.scroll-to-top i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.scroll-to-top.visible i {
    animation: iconBounce 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.2s;
}

@keyframes iconBounce {
    0% {
        transform: translateY(0) scale(1);
    }
    25% {
        transform: translateY(-3px) scale(1.1);
    }
    50% {
        transform: translateY(0) scale(1);
    }
    75% {
        transform: translateY(-2px) scale(1.05);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2001;
}

.lightbox-close:hover {
    opacity: 0.8;
    background: rgba(0, 0, 0, 0.7);
}

.lightbox-nav i {
    color: white;
    font-size: 24px;
}

/* Animation on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Slide-in animations for various elements */
.slide-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-left {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-right {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.7s cubic-bezier(0.34, 1.56, 0.64, 1), 
                transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Slower pop-in for service cards */
.services-grid .fade-in {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
    transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0ms;
}
.services-grid .fade-in.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.services-grid .fade-in:nth-child(1) { transition-delay: 0ms; }
.services-grid .fade-in:nth-child(2) { transition-delay: 180ms; }
.services-grid .fade-in:nth-child(3) { transition-delay: 360ms; }

/* Staggered animations for brand cards */
.brands-grid .fade-in:nth-child(1) { transition-delay: 0ms; }
.brands-grid .fade-in:nth-child(2) { transition-delay: 150ms; }
.brands-grid .fade-in:nth-child(3) { transition-delay: 300ms; }

/* Staggered animations for contact cards */
.contact-info .fade-in:nth-child(1) { transition-delay: 0ms; }
.contact-info .fade-in:nth-child(2) { transition-delay: 120ms; }
.contact-info .fade-in:nth-child(3) { transition-delay: 240ms; }

/* Staggered animations for hero elements */
.hero__content .slide-up:nth-child(1) { transition-delay: 100ms; }
.hero__content .slide-up:nth-child(2) { transition-delay: 250ms; }
.hero__content .slide-up:nth-child(3) { transition-delay: 400ms; }

/* Partner logos animation */
.partner-logos a {
    display: inline-block;
    transition: transform 0.3s ease;
}

/* Scale-in for hero image with delay */
.hero__image.scale-in {
    transition-delay: 200ms;
}

@keyframes gradientBG {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Tablet Responsive: keep desktop-like alternating layout on tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    .story-timeline::before {
        left: 50%;
        transform: translateX(-50%);
        width: 3px; /* match desktop thickness */
    }

    .story-chapter {
        margin-bottom: -0.5rem;
    }

    .chapter-content {
        width: 48%;
        margin: 0; /* allow even items to push right via margin-left:auto */
    }

    .story-chapter:nth-child(odd) .chapter-content {
        text-align: right;
    }

    .story-chapter:nth-child(even) .chapter-content {
        margin-left: auto;
        text-align: left;
    }

    .timeline-dot {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 12px;
        height: 12px;
    }

    .brands-grid {
        gap: 2.5rem;
    }

    .brand-logo {
        height: 100px;
    }
}

/* Mobile Fullscreen Optimizations */
@media (max-width: 768px) {
  /* Remove all margins and padding for fullscreen */
  * {
    margin: 0;
    padding: 0;
  }
  
  body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }
  
  /* Fullscreen container */
  .container { 
    padding: 0; 
    margin: 0;
    width: 100%;
    max-width: 100%;
  }
  
  /* Typography improvements */
  .section-title { 
    font-size: 24px; 
    margin-bottom: 16px; 
    line-height: 1.2; 
    padding: 0 16px;
  }
  
  .section-sub { 
    font-size: 16px; 
    margin-bottom: 20px; 
    line-height: 1.5; 
    padding: 0 16px;
  }
  
  /* Section padding adjustments - minimal */
  .section { 
    padding: 20px 0; 
    margin: 0;
  }
  
  /* Card improvements */
  .card { 
    padding: 16px; 
    margin: 0; 
    border-radius: 0;
  }
  
  .card h3 { 
    font-size: 18px; 
    margin-bottom: 10px; 
  }
  
  .card p { 
    font-size: 14px; 
    margin-bottom: 12px; 
  }
  
  /* Button improvements */
  .cta, .btn-outline { 
    min-height: 48px; 
    padding: 12px 20px; 
    font-size: 16px; 
    border-radius: 8px; 
  }
  
  /* Logo adjustments */
  .logos img { 
    max-height: 36px; 
  }
  
  /* Footer improvements */
  .footer-line { 
    flex-direction: column; 
    gap: 8px; 
    text-align: center; 
    font-size: 13px; 
    padding: 0 16px;
  }
  
  /* Prevent horizontal scroll on some devices */
  html {
    overflow-x: hidden;
  }
}

/* Mobile: Optimize 'Náš příběh' (story) section */
@media (max-width: 640px) {
  .story-section { 
    padding: 24px 0; 
    scroll-margin-top: 120px; 
  }
  .story-timeline { 
    padding: 16px 12px; 
  }
  .story-chapter { 
    margin-bottom: 20px; 
    align-items: stretch; 
    display: block; 
  }
  .chapter-content { 
    width: calc(100% - 32px); 
    max-width: none; 
    margin: 0 12px 0 20px !important; 
    padding: 20px; 
    border-radius: 16px; 
    box-shadow: 0 6px 18px rgba(0,0,0,0.08); 
    text-align: left; 
  }
  .story-chapter:nth-child(odd) .chapter-content,
  .story-chapter:nth-child(even) .chapter-content { 
    margin: 0 12px 0 20px !important; 
    text-align: left; 
  }
  .chapter-content h3 { 
    font-size: 1.35rem; 
    line-height: 1.35; 
    margin-bottom: 0.75rem; 
    word-break: normal; 
    hyphens: none; 
  }
  .chapter-content p { 
    font-size: 0.98rem; 
    line-height: 1.6; 
    hyphens: none; 
    word-break: normal; 
  }
  .highlight-box { 
    margin: 14px 0 0 0; 
    padding: 12px; 
  }
  .timeline-dot { 
    left: 0.8rem; 
    width: 8px; 
    height: 8px; 
  }
  .story-intro { 
    padding: 20px 12px; 
    margin-bottom: 32px; 
  }
  .story-intro h2 { 
    font-size: 2.1rem; 
  }
}

/* Final mobile overrides for 'Náš příběh' to win cascade */
@media (max-width: 640px) {
  /* Timeline to the far-left on mobile (with padding gutter) */
  .story-timeline::before { left: 12px; transform: none; width: 2px; }
  .story-chapter { display: block; margin-bottom: 24px; }
  .chapter-content { 
    width: calc(100% - 32px) !important;
    margin: 0 12px 0 20px !important;
    padding: 20px; 
    border-radius: 16px; 
    text-align: left; 
  }
  .story-chapter:nth-child(odd) .chapter-content,
  .story-chapter:nth-child(even) .chapter-content { 
    margin: 0 12px 0 20px !important; 
    text-align: left; 
  }
  /* Align dot center to global timeline; fine-tuned a bit closer to axis */
  .timeline-dot { left: -3px; width: 8px; height: 8px; transform: translateY(-50%); }
}

/* ABSOLUTE LAST mobile overrides (placed at end of file) */
@media (max-width: 640px) {
  .story-timeline::before { left: 12px !important; transform: none !important; width: 2px !important; }
  .timeline-dot { left: -3px !important; transform: translateY(-50%) !important; width: 8px !important; height: 8px !important; }
  .story-section { padding: 16px 0 !important; }
  .story-intro { margin-bottom: 16px !important; padding: 12px 12px !important; }
  .story-timeline { padding: 8px 12px !important; }
  .story-chapter { display: block !important; margin-bottom: 28px !important; }
  .story-chapter:last-child { margin-bottom: 16px !important; }
  .chapter-content { width: calc(100% - 32px) !important; margin: 0 12px 0 20px !important; text-align: left !important; padding: 20px !important; border-radius: 16px !important; }
  /* Restore original heading size on mobile */
  .chapter-content h3 { font-size: 2rem !important; line-height: 1.3 !important; margin-bottom: 1.5rem !important; }
  .chapter-content p { font-size: 0.92rem !important; line-height: 1.55 !important; hyphens: none !important; -webkit-hyphens: none !important; -ms-hyphens: none !important; word-break: normal !important; overflow-wrap: normal !important; }
  .story-chapter:nth-child(odd) .chapter-content,
  .story-chapter:nth-child(even) .chapter-content { margin: 0 12px 0 20px !important; text-align: left !important; }
}

/* Emphasized stat number (e.g., "300.") across all devices */
.stat-number {
  color: #E11D48;
  font-weight: 900;
  font-size: 3rem;
  line-height: 1;
  display: inline-block;
  letter-spacing: normal;
  font-family: inherit;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .story-chapter img {
        display: none !important;
    }

    .story-section {
        padding: 3rem 1rem;
    }

    .story-timeline {
        padding: 2rem 1rem;
    }

    .story-timeline::before {
        left: 1.5rem;
        transform: none;
        width: 2px;
    }

    .story-chapter {
        margin-bottom: 3rem;
    }

    .chapter-content {
        width: calc(100% - 3rem);
        margin-left: 3rem !important;
        padding: 2rem 1.5rem;
        text-align: left !important;
    }

    .timeline-dot {
        left: 0.55rem;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 8px;
        height: 8px;
    }

    .story-intro h2,
    .partner-brands-section .section-title,
    .contact .section-title,
    .gallery-section .section-title {
        font-size: 2rem;
    }

    .chapter-content h3 {
        font-size: 1.5rem;
    }

    .chapter-content p {
        font-size: 1.05rem;
        line-height: 1.7;
        letter-spacing: 0.3px;
        word-spacing: 1px;
        hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
    }

    .stat-number {
        font-size: 2.4rem;
    }

    .partner-brands-section {
        padding: 3rem 1rem;
    }

    .brands-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .brand-card:nth-child(3) {
        grid-column: auto;
        justify-self: stretch;
        width: 100%;
        max-width: none;
    }

    .brand-card a {
        padding: 1.5rem 1rem;
    }

    .brand-logo {
        height: 70px;
        margin-bottom: 1rem;
    }

    .brand-card h3 {
        font-size: 1.1rem;
        white-space: normal;
        line-height: 1.2;
        min-height: 3.5rem;
    }

    .brand-card p {
        font-size: 0.9rem;
        line-height: 1.4;
        min-height: 3rem;
    }

    .brand-link {
        font-size: 0.9rem;
    }

    .contact {
        padding: 3rem 1rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-card {
        padding: 1.5rem;
        margin: 0 8px;
    }

    .contact-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .contact-card p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .contact-card a {
        font-size: 1rem;
        padding: 12px 16px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
        white-space: nowrap;
    }

    .map-container {
        margin: 0 8px;
    }

    .map-container iframe {
        min-height: 300px;
        height: 50vh;
        border-radius: 8px;
    }
    
    .contact-info {
        gap: 1rem;
    }

    .lightbox-nav {
        width: 45px;
        height: 45px;
        background: rgba(0, 0, 0, 0.6);
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        width: 45px;
        height: 45px;
        font-size: 24px;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .scroll-to-top i {
        font-size: 1rem;
    }

    .footer-credit {
        position: static;
        text-align: center;
        margin-top: 1rem;
        font-size: 0.8rem;
        opacity: 0.7;
    }
}

/* Small mobile devices */
@media (max-width: 380px) {
    .container { 
        padding: 0 12px; 
    }
    
    .hero--cover { 
        padding: 80px 0 var(--space-5); 
    }
    
    .hero--cover h1 { 
        font-size: 28px; 
    }
    
    .hero--cover p { 
        font-size: 15px; 
    }
    
    .section-title { 
        font-size: 22px; 
    }
    
    .section-sub { 
        font-size: 15px; 
    }
    
    .service-card { 
        padding: 16px 12px; 
        margin: 0 4px; 
    }
    
    .service-card h3 { 
        font-size: 16px; 
    }
    
    .service-card p { 
        font-size: 13px; 
    }
    
    .contact-card { 
        padding: 1.2rem; 
        margin: 0 4px; 
    }
    
    .contact-card h3 { 
        font-size: 1.1rem; 
    }
    
    .contact-card p { 
        font-size: 0.9rem; 
    }
    
    .footer-credit {
        font-size: 0.75rem;
        margin-top: 0.8rem;
    }
}

/* Extra small devices (below 320px) */
@media (max-width: 320px) {
    .story-intro h2,
    .partner-brands-section .section-title,
    .contact .section-title,
    .gallery-section .section-title {
        font-size: 1.8rem;
    }

    .chapter-content {
        padding: 1.5rem 1rem;
    }

    .chapter-content h3 {
        font-size: 1.3rem;
    }

    .chapter-content p {
        font-size: 1rem;
        line-height: 1.6;
        letter-spacing: 0.2px;
        word-spacing: 1px;
        hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
    }

    .brands-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .brand-card:nth-child(3) {
        justify-self: stretch;
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .brand-card a {
        padding: 1.2rem 0.8rem;
    }

    .brand-logo {
        height: 60px;
        margin-bottom: 0.8rem;
    }

    .brand-card h3 {
        font-size: 1rem;
        min-height: 3rem;
    }

    .brand-card p {
        font-size: 0.85rem;
        min-height: 2.5rem;
    }

    .contact-card {
        padding: 1.2rem;
    }

    .contact-card h3 {
        font-size: 1.1rem;
    }

    .contact-card p {
        font-size: 0.9rem;
    }

    .contact-card a {
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .map-container iframe {
        min-height: 250px;
        height: 40vh;
    }

    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }

    .scroll-to-top i {
        font-size: 0.9rem;
    }
}

/* Section circles responsive adjustments */
@media (max-width: 768px) {
  .section-circle {
    animation: none !important;
    transform: translateY(-5px);
  }
  
  .hero--cover .section-circles .section-circle:nth-child(1) { width: 60px; height: 60px; }
  .hero--cover .section-circles .section-circle:nth-child(2) { width: 45px; height: 45px; }
  .hero--cover .section-circles .section-circle:nth-child(3) { width: 75px; height: 75px; }
  .hero--cover .section-circles .section-circle:nth-child(4) { width: 35px; height: 35px; }
  
  #sluzby .section-circles .section-circle:nth-child(1) { width: 55px; height: 55px; }
  #sluzby .section-circles .section-circle:nth-child(2) { width: 40px; height: 40px; }
  #sluzby .section-circles .section-circle:nth-child(3) { width: 65px; height: 65px; }
  #sluzby .section-circles .section-circle:nth-child(4) { width: 30px; height: 30px; }
  
  .gallery-section .section-circles .section-circle:nth-child(1) { width: 70px; height: 70px; }
  .gallery-section .section-circles .section-circle:nth-child(2) { width: 50px; height: 50px; }
  .gallery-section .section-circles .section-circle:nth-child(3) { width: 45px; height: 45px; }
  .gallery-section .section-circles .section-circle:nth-child(4) { width: 60px; height: 60px; }
  
  .contact .section-circles .section-circle:nth-child(1) { width: 45px; height: 45px; }
  .contact .section-circles .section-circle:nth-child(2) { width: 65px; height: 65px; }
  .contact .section-circles .section-circle:nth-child(3) { width: 35px; height: 35px; }
  .contact .section-circles .section-circle:nth-child(4) { width: 55px; height: 55px; }
}

@media (max-width: 480px) {
  .section-circle {
    animation: none !important;
    transform: translateY(-5px);
  }
  
  .hero--cover .section-circles .section-circle:nth-child(1) { width: 50px; height: 50px; }
  .hero--cover .section-circles .section-circle:nth-child(2) { width: 35px; height: 35px; }
  .hero--cover .section-circles .section-circle:nth-child(3) { width: 60px; height: 60px; }
  .hero--cover .section-circles .section-circle:nth-child(4) { width: 30px; height: 30px; }
  
  #sluzby .section-circles .section-circle:nth-child(1) { width: 45px; height: 45px; }
  #sluzby .section-circles .section-circle:nth-child(2) { width: 32px; height: 32px; }
  #sluzby .section-circles .section-circle:nth-child(3) { width: 55px; height: 55px; }
  #sluzby .section-circles .section-circle:nth-child(4) { width: 25px; height: 25px; }
  
  .gallery-section .section-circles .section-circle:nth-child(1) { width: 60px; height: 60px; }
  .gallery-section .section-circles .section-circle:nth-child(2) { width: 40px; height: 40px; }
  .gallery-section .section-circles .section-circle:nth-child(3) { width: 35px; height: 35px; }
  .gallery-section .section-circles .section-circle:nth-child(4) { width: 50px; height: 50px; }
  
  .contact .section-circles .section-circle:nth-child(1) { width: 35px; height: 35px; }
  .contact .section-circles .section-circle:nth-child(2) { width: 55px; height: 55px; }
  .contact .section-circles .section-circle:nth-child(3) { width: 28px; height: 28px; }
  .contact .section-circles .section-circle:nth-child(4) { width: 45px; height: 45px; }
}

@keyframes floatCirclesMobile {
  0%, 100% {
    transform: translateY(0px) scale(1);
    opacity: 0.8;
  }
  25% {
    transform: translateY(-2px) scale(1.01);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-1px) scale(1.005);
    opacity: 0.75;
  }
  75% {
    transform: translateY(-3px) scale(1.015);
    opacity: 0.65;
  }
}

/* Tablet Optimizations (tablet-only; keeps mobile <=768 and desktop >=1025 intact) */
@media (min-width: 769px) and (max-width: 1024px) {
  /* Header & nav: keep desktop-like menu visible, larger tap targets */
  .site-header { position: sticky; top: 0; background: #ffffff; z-index: 1100; border-bottom: 1px solid var(--color-border); box-shadow: 0 2px 10px rgba(0,0,0,0.04); }
  .site-header__inner { height: 130px; }
  .logo { margin-left: 0; }
  .logo img { height: 110px; }
  .nav__toggle { display: none; }
  .nav__list { position: static; display: flex !important; flex-direction: row; gap: 14px; padding: 0; border: 0; box-shadow: none; background: transparent; }
  .nav a { padding: 10px 12px; font-size: 16px; border-radius: 10px; }
  /* Show CTA in header on tablet */
  .site-header .cta { display: inline-flex; }
  .nav__list .cta { display: none !important; }

  /* Hero adjustments */
  .hero--cover { min-height: 76vh; min-height: 76svh; min-height: 76dvh; padding-top: 150px; }
  .hero__inner { grid-template-columns: 1.1fr 1fr; gap: 28px; }
  .hero--cover h1 { font-size: 44px; }
  .hero--cover p { font-size: 18px; }
  .hero__actions { gap: 10px; }

  /* Services grid: two columns with breathing room */
  .services-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .service-card { padding: 26px; }

  /* Gallery hybrid on homepage */
  .gallery-showcase { grid-template-columns: 1fr; gap: 1.5rem; }
  .showcase-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .showcase-main img { height: 420px; }

  /* Logos/brands */
  .logos { grid-template-columns: repeat(3, 1fr); }

  /* Story timeline: gently widen content */
  .chapter-content { width: 48%; }

  /* Contact: stack columns */
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }

  /* Footer: reduce large gaps for single-line row on tablet */
  .footer-line { gap: 40px; font-size: 14px; }
}

/* Mobile Navigation and Layout */
@media (max-width: 980px) {
  /* Sticky header on mobile/tablet */
  .site-header { 
    position: sticky; 
    top: 0; 
    background: #ffffff; 
    z-index: 1100; 
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  }
  .nav__toggle { 
    display: inline-block; 
    padding: 12px; 
    min-width: 48px; 
    min-height: 48px; 
  }
  .nav__list { 
    position: absolute; 
    right: 0; 
    top: 70px; 
    background: #ffffff; 
    border: 1px solid var(--color-border); 
    border-radius: 12px; 
    padding: 16px; 
    display: none; 
    flex-direction: column; 
    gap: 12px; 
    min-width: 220px; 
    box-shadow: var(--shadow-md); 
    z-index: 100; 
  }
  .nav__list.open { display: flex; }
  .nav a { 
    padding: 12px 16px; 
    min-height: 48px; 
    font-size: 16px; 
    border-radius: 8px; 
  }
  
  /* Hide CTA button on mobile - move to menu */
  .site-header .cta { 
    display: none; 
  }
  
  /* Add CTA button to mobile menu */
  .nav__list .cta { 
    display: inline-flex !important; 
    margin-top: 8px; 
    padding: 12px 16px; 
    background: var(--color-accent) !important; 
    color: #ffffff !important; 
    border-radius: 8px; 
    font-weight: 700; 
    text-align: center; 
    justify-content: center; 
    min-height: 48px; 
    font-size: 16px; 
    box-shadow: var(--shadow-sm); 
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; 
    width: 100%; 
    border: none; 
  }
  
  .nav__list .cta:hover { 
    transform: translateY(-1px); 
    box-shadow: var(--shadow-md); 
    background: var(--color-accent-2) !important; 
    color: #ffffff !important; 
  }
  
  .nav__list .cta:focus-visible { 
    outline: 2px solid var(--color-accent); 
    outline-offset: 2px; 
    color: #ffffff !important; 
  }
  
  .site-header__inner { height: 120px; }
  .logo { margin-left: 8px; }
  .logo img { height: 100px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .logos { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  
  /* Hero section for tablet */
  .hero--cover { min-height: 70vh; min-height: 70svh; min-height: 70dvh; padding-top: 140px; }
  
  /* Fix services overlapping hero on mobile/tablet */
  #sluzby { 
    margin-top: 0; 
    scroll-margin-top: 120px; 
  }
}
@media (min-width: 981px) and (max-width: 1440px) {
  .hero--cover { padding-top: 160px; min-height: 72vh; min-height: 72svh; min-height: 72dvh; }
  .hero__inner { grid-template-columns: 1.1fr 1fr; gap: 28px; }
  .hero--cover h1 { font-size: 40px; }
  .hero--cover p { font-size: 18px; }
  /* Make sure services slightly overlap but not too much */
  #sluzby { margin-top: clamp(-140px, -18vw, -220px); }
}
/* Final tablet nav override (placed after mobile rules to win cascade on iPad widths) */
@media (min-width: 769px) and (max-width: 1024px) {
  .nav__toggle { 
    display: none !important; 
  }
  .nav__list { 
    position: static !important; 
    display: flex !important; 
    flex-direction: row !important; 
    gap: 14px; 
    padding: 0; 
    border: 0; 
    background: transparent; 
    box-shadow: none; 
    min-width: 0; 
  }
  .nav__list.open { display: flex !important; }
}
/* Mobile Hero Fullscreen Optimization */
@media (max-width: 640px) {
  /* Hero Mobile - fullscreen */
  .hero--cover { 
    min-height: calc(100vh - 120px); 
    min-height: calc(100svh - 120px); 
    min-height: calc(100dvh - 120px); 
    padding: 0; 
    margin: 0;
    background: var(--color-soft);
    display: flex;
    align-items: center;
  }
  
  /* Ensure hero has enough height for CTA buttons to be visible on iPhone 11 and similar devices */
  @media (max-width: 414px) {
    .hero--cover {
      min-height: calc(100vh - 120px + 60px); /* Add extra 60px to ensure CTA buttons are visible */
      min-height: calc(100svh - 120px + 60px);
      min-height: calc(100dvh - 120px + 60px);
    }
  }
  
  /* iPhone SE and smaller devices - increase hero height more significantly */
  @media (max-width: 375px) {
    .hero--cover {
      min-height: calc(100vh - 120px + 100px); /* Add extra 100px for iPhone SE */
      min-height: calc(100svh - 120px + 100px);
      min-height: calc(100dvh - 120px + 100px);
    }
  }
  
  /* Medium small devices (iPhone 12 mini, etc.) - between iPhone SE and iPhone 11 */
  @media (max-width: 390px) and (min-width: 376px) {
    .hero--cover {
      min-height: calc(100vh - 120px + 80px); /* Add extra 80px for medium small devices */
      min-height: calc(100svh - 120px + 80px);
      min-height: calc(100dvh - 120px + 80px);
    }
  }
  
  .hero__inner { 
    grid-template-columns: 1fr; 
    gap: 0; 
    text-align: center; 
    width: 100%;
    height: calc(100vh - 120px);
    height: calc(100svh - 120px);
    height: calc(100dvh - 120px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 16px;
  }
  
  .hero__content { 
    order: 2; 
    max-width: 100%; 
    width: 100%;
    padding: 0 16px;
  }
  
  .hero__image { 
    order: 1; 
    max-height: 50vh; 
    width: 100%;
    padding: 0 16px;
  }
  
  .hero--cover h1 { 
    font-size: 28px; 
    line-height: 1.1; 
    margin-bottom: 16px; 
    padding: 0;
  }
  
  .hero--cover p { 
    font-size: 16px; 
    margin-bottom: 20px; 
    padding: 0;
  }
  
  .hero__actions { 
    flex-direction: column; 
    gap: 16px; 
    align-items: center; 
    width: 100%;
    padding: 0 16px;
  }
  
  /* Extra safety: ensure services do not overlap hero on small mobile */
  #sluzby { 
    margin-top: 0; 
    scroll-margin-top: 120px; 
  }
  
  /* Additional safety for iPhone 11 and similar devices */
  @media (max-width: 414px) {
    #sluzby {
      margin-top: 20px; /* Add small margin to ensure CTA buttons are fully visible */
    }
  }
  
  /* iPhone SE and smaller devices - more margin for services section */
  @media (max-width: 375px) {
    #sluzby {
      margin-top: 40px; /* Larger margin for iPhone SE to give more breathing room */
    }
  }
  
  /* Medium small devices - moderate margin for services section */
  @media (max-width: 390px) and (min-width: 376px) {
    #sluzby {
      margin-top: 30px; /* Moderate margin for medium small devices */
    }
  }
  
  /* Safety for medium mobile devices (between 640px and 414px) */
  @media (max-width: 480px) and (min-width: 415px) {
    .hero--cover {
      min-height: calc(100vh - 120px + 40px); /* Add extra 40px for medium devices */
      min-height: calc(100svh - 120px + 40px);
      min-height: calc(100dvh - 120px + 40px);
    }
    
    #sluzby {
      margin-top: 10px; /* Small margin for medium devices */
    }
  }
  
  .cta, .btn-outline { 
    width: 100%; 
    max-width: 100%; 
    justify-content: center; 
    padding: 14px 20px; 
    font-size: 16px; 
  }
}

/* iPad family: add small left gutter for hero text and CTA */
@media (min-width: 768px) and (max-width: 1024px) {
  .hero__content {
    padding-left: 10px;
  }
}

/* Fallback for :has() where unsupported */
.showcase-item:hover .more-number { transform: scale(1.08); }

/* Aspect-ratio fallbacks for older browsers */
@supports not (aspect-ratio: 1) {
  .showcase-item { position: relative; }
  .showcase-item::before { content: ""; display: block; padding-top: 100%; }
  .showcase-item img,
  .showcase-item .more-number,
  .showcase-item .showcase-overlay { position: absolute; inset: 0; }
}

@supports not (aspect-ratio: 4 / 3) {
  .gallery a { position: relative; }
  .gallery a::before { content: ""; display: block; padding-top: 75%; }
  .gallery img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; }
}

/* Story Section with Storytelling */
.story-section {
    padding: 0;
    background: transparent;
    overflow: hidden;
}

.story-timeline {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

/* Timeline line with fade effects */
.story-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        #E11D48 10%, 
        #000000 90%, 
        transparent 100%);
    top: 0;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.story-chapter {
    position: relative;
    margin-bottom: -1rem;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: flex-start;
}

.story-chapter.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Chapter content containers */
.chapter-content {
    position: relative;
    width: 45%;
    padding: 2.5rem;
    background: #faf7f2;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Left side chapters */
.story-chapter:nth-child(odd) .chapter-content {
    margin-left: 0;
    text-align: right;
}

/* Right side chapters */
.story-chapter:nth-child(even) .chapter-content {
    margin-left: auto;
    text-align: left;
}

/* Timeline dots with dynamic gradient colors - centered on axis */
.timeline-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #E11D48;
}

/* Chapter numbers */
.chapter-number {
    display: none;
}

/* Story content styling */
.story-intro {
    text-align: center;
    margin-bottom: 5rem;
    padding: 3rem 0;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.story-intro.visible {
    opacity: 1;
    transform: translateY(0);
}

.story-intro h2 {
    font-family: "Roboto Condensed", Arial, sans-serif;
    font-size: 3rem;
    color: #000000;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.story-intro h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #E11D48;
}

.chapter-content h3 {
    font-family: 'Merriweather', serif;
    font-size: 2rem;
    color: #000000;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.chapter-content p {
    font-family: 'Lexend', sans-serif;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #666666;
    margin-bottom: 1.5rem;
    hyphens: none;
    -webkit-hyphens: none;
    -ms-hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
}

.chapter-content strong {
    color: #000000;
    font-weight: 600;
}

.highlight-box {
    background: #ffffff;
    padding: 1.5rem;
    border-left: 4px solid #E11D48;
    margin: 2rem 0;
    border-radius: 5px;
}

/* Unified styling for section titles (Partner Brands, Contact, Gallery) */
.partner-brands-section .section-title,
.contact .section-title,
.gallery-section .section-title {
    font-family: "Roboto Condensed", Arial, sans-serif;
    font-size: 3rem;
    color: #000000;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.partner-brands-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #E11D48;
}

.contact .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #E11D48;
}

.gallery-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #E11D48;
}

/* Partner Brands Section */
.partner-brands-section {
    padding: 5rem 2rem;
    background: transparent;
}

.partner-brands-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
    justify-items: center;
}

@media (min-width: 1025px) {
    .partner-brands-container {
        max-width: 1440px;
    }
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .brand-card {
        max-width: none;
        width: 100%;
    }
}

.brand-card {
    background: #faf7f2;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.brand-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.brand-card-strelnice {
    background: linear-gradient(rgba(250, 247, 242, 0.9), rgba(250, 247, 242, 0.9)), url('/strelnice.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.brand-card-plzenskydvur {
    background: linear-gradient(rgba(250, 247, 242, 0.9), rgba(250, 247, 242, 0.9)), url('/plzenskydvur.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.brand-card-zermanicky {
    background: linear-gradient(rgba(250, 247, 242, 0.9), rgba(250, 247, 242, 0.9)), url('/zermanice.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.brand-card a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    padding: 2.5rem;
    text-align: center;
    height: 100%;
    justify-content: space-between;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.brand-logo {
    height: 120px;
    width: auto;
    object-fit: contain;
    margin: 0 auto 2rem auto;
    -webkit-filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    flex-shrink: 0;
}

.brand-card h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.6rem;
    color: #000000;
    margin-bottom: 1rem;
    font-weight: 600;
    text-align: center;
    width: 100%;
    display: block;
    white-space: normal;
    line-height: 1.3;
    min-height: 4.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-card p {
    color: #666666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-link {
    color: #E11D48;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
    margin-top: auto;
    padding-top: 1rem;
}

.brand-link:hover {
    text-decoration: underline;
}

.brand-link i {
    font-size: 0.9rem;
}

/* Mobile tightening for "Naše jídla" carousel */
@media (max-width: 480px) {
  .showcase-carousel .carousel-container {
    height: 225px;
    margin-top: 12px;
  }

  .showcase-carousel .carousel-item[data-pos="0"] {
    width: 130px;
    height: 130px;
    transform: translateX(-120px) translateZ(-120px) scale(0.6) rotateY(18deg);
  }

  .showcase-carousel .carousel-item[data-pos="1"] {
    width: 190px;
    height: 190px;
  }

  .showcase-carousel .carousel-item[data-pos="2"] {
    width: 130px;
    height: 130px;
    transform: translateX(120px) translateZ(-120px) scale(0.6) rotateY(-18deg);
  }
}

/* Four-image grid: equal spacing from sides and between items on small screens */
@media (max-width: 768px) {
  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding-left: 1rem; /* side spacing equals gap */
    padding-right: 1rem; /* side spacing equals gap */
    justify-items: stretch;
  }
  .showcase-item {
    width: 100%;
    margin: 0; /* let grid/padding control spacing */
  }
}

/* Final mobile override for brands: single column on small screens */
@media (max-width: 768px) {
    .brands-grid {
        grid-template-columns: 1fr;
    }
    .brand-card:nth-child(3) {
        grid-column: auto;
        justify-self: stretch;
        width: 100%;
        max-width: none;
        margin: 0;
    }
}

/* Mobile spacing for References (Důvěřují nám) section */
@media (max-width: 768px) {
    .references {
        padding-top: 10rem;
        padding-bottom: 10rem;
    }
}

/* iPad Air portrait refinements: ensure straight, centered navbar on all pages */
@media (min-width: 810px) and (max-width: 912px) {
  /* Keep desktop-like layout and center-align all header elements */
  .site-header { position: sticky; top: 0; background: #ffffff; z-index: 1100; border-bottom: 1px solid var(--color-border); box-shadow: 0 2px 10px rgba(0,0,0,0.04); }
  .site-header__inner { height: 112px; align-items: center; }
  .logo { margin-left: 0; }
  .logo img { height: 96px; }
  .nav__toggle { display: none !important; }
  .nav__list { position: static !important; display: flex !important; flex-direction: row !important; align-items: center; gap: 14px; padding: 0; border: 0; background: transparent; box-shadow: none; }
  .nav a { display: inline-flex; align-items: center; padding: 10px 12px; line-height: 1; }
  /* Keep CTA on the right; hide any CTA duplicated inside the list */
  .site-header .cta { display: inline-flex; align-self: center; }
  .nav__list .cta { display: none !important; }
}
