/* ============================================
   KIRSERVIS - Main Stylesheet
   Mobile-first responsive design
   ============================================ */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Brand Colors */
  --color-primary: #ee3d39;
  --color-primary-dark: #c9302c;
  --color-primary-light: #f4706d;
  --color-secondary: #57423e;
  --color-secondary-light: #7a6460;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-bg: #ffffff;
  --color-bg-light: #f8f6f5;
  --color-bg-dark: #1a1a1a;
  --color-border: #e0dbd9;

  /* Spacing (8px grid) */
  --space-xs: 0.5rem;   /* 8px */
  --space-sm: 1rem;     /* 16px */
  --space-md: 1.5rem;   /* 24px */
  --space-lg: 2rem;     /* 32px */
  --space-xl: 3rem;     /* 48px */
  --space-2xl: 4rem;    /* 64px */
  --space-3xl: 6rem;    /* 96px */

  /* Typography */
  --font-family: 'Outfit', sans-serif;
  --font-size-base: 1rem;
  --line-height-body: 1.7;
  --line-height-heading: 1.2;
  --border-radius: 8px;
  --border-radius-lg: 16px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.6s ease;

  /* Shadows */
  --shadow-card: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-card-hover: 0 4px 16px rgba(0,0,0,0.10);

  /* Layout */
  --site-width: 85%;
  --max-text-width: 70ch;
  --section-padding-y: var(--space-2xl);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
}

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: var(--line-height-heading);
  font-weight: 800;
  color: var(--color-text);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: var(--line-height-heading);
  font-weight: 700;
  color: var(--color-text);
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.3;
  font-weight: 600;
  color: var(--color-text);
}

h4 {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 600;
}

p {
  max-width: var(--max-text-width);
  margin-bottom: var(--space-sm);
}

/* --- Layout Utilities --- */
.container {
  width: var(--site-width);
  max-width: 1400px;
  margin: 0 auto;
}

.section {
  padding-block: var(--section-padding-y);
  position: relative;
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header h2 {
  position: relative;
  display: inline-block;
  padding-bottom: var(--space-sm);
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(238, 61, 57, 0.35);
}

.btn-primary .btn-gear {
  display: inline-block;
  width: 1em;
  height: 1em;
  transition: transform 0.4s ease;
}

.btn-primary:hover .btn-gear {
  transform: rotate(90deg);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

/* --- CONTACT ITEMS (shared between header and elsewhere) --- */
.topbar-contact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar-contact i {
  color: var(--color-primary);
  font-size: 1.4rem;
  flex-shrink: 0;
}

.topbar-contact-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.topbar-label {
  color: var(--color-primary);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.topbar-contact a {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  transition: color var(--transition-fast);
}

.topbar-contact a:hover {
  color: var(--color-primary);
}

/* --- HEADER & NAVIGATION --- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow var(--transition-base);
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  padding: var(--space-xs) var(--space-lg) var(--space-xs) 7.5%;
  flex-shrink: 0;
}

.logo img {
  height: 80px;
  width: auto;
  max-width: none;
}

@media (max-width: 767px) {
  .header-inner {
    align-items: center;
    justify-content: space-between;
    padding-right: var(--space-md);
  }
  .logo {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
  .logo img {
    height: 60px;
  }
}

/* Header contacts – dark right block */
.header-contacts {
  display: none;
  align-items: center;
  gap: var(--space-lg);
  background: var(--color-bg-dark);
  padding: 0 var(--space-lg) 0 calc(var(--space-lg) + 24px);
  clip-path: polygon(24px 0%, 100% 0%, 100% 100%, 0% 100%);
  flex-shrink: 0;
}

/* Desktop Navigation */
.nav-desktop {
  display: none;
}

.nav-desktop ul {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: var(--space-lg);
  height: 100%;
  width: 100%;
}

.nav-desktop a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.25rem 0;
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-base);
}

.nav-desktop a:hover::after,
.nav-desktop a.active::after {
  width: 100%;
}

.nav-desktop a:hover {
  color: var(--color-primary);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
.nav-mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
  transition: right var(--transition-slow);
  z-index: 1050;
}

.nav-mobile.open {
  right: 0;
}

.nav-mobile ul {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.nav-mobile a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
}

.nav-mobile a:hover {
  color: var(--color-primary);
}

.nav-mobile-contacts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  width: 80%;
}

.nav-mobile-contacts .topbar-contact {
  justify-content: center;
}

.nav-mobile-contacts .topbar-contact i {
  color: var(--color-primary);
  font-size: 1.2rem;
}

.nav-mobile-contacts .topbar-contact-info {
  align-items: flex-start;
}

.nav-mobile-contacts .topbar-label {
  color: var(--color-text-light);
  font-size: 0.65rem;
}

.nav-mobile-contacts .topbar-contact a {
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 600;
}

/* --- HERO SECTION (Split-screen) --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (max-width: 767px) {
  .hero {
    min-height: auto;
  }

  .hero-left {
    padding: 2rem var(--space-lg) 2rem;
    min-height: 70vh;
    justify-content: flex-start;
  }

  .hero-text {
    width: 100%;
    position: relative;
    z-index: 2;
  }

  .hero-text h1 {
    font-size: clamp(2rem, 7vw, 2.4rem);
  }

  .hero-text p {
    max-width: 100%;
  }

  .hero-right {
    min-height: auto;
  }
}

.hero-left {
  background: url('Obrazky/Hero/kirservis_zemedelske_sluzby_stredocesky_kraj.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 4rem var(--space-lg) var(--space-2xl);
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 80vh;
}

/* Desktop override: replace hero image with Kirservis_hero_pc_v2.jpg */
@media (min-width: 768px) {
  .hero {
    min-height: auto;
  }

  .hero-left {
    background: url('Obrazky/Hero/Kirservis_hero_pc_v2.jpg') 60% center/cover no-repeat;
    background-position: 60% center;
    background-size: cover;
    min-height: 100vh;
    height: 100vh;
  }
}

/* Subtle gear watermark in the background of the left panel */
.hero-left::before {
  display: none;
  content: '';
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 250px;
  height: 250px;
  background-image: url('Obrazky/kruh.png');
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  transform: rotate(var(--scroll-rot, 0deg));
}

/* Mobile: radial overlay — darkest under text, fading outward */
@media (max-width: 767px) {
  .hero-left::before {
    display: block;
    content: '';
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(
      ellipse 155% 115% at 50% 38%,
      rgba(0, 0, 0, 0.82) 0%,
      rgba(0, 0, 0, 0.74) 25%,
      rgba(0, 0, 0, 0.6) 45%,
      rgba(0, 0, 0, 0.35) 65%,
      rgba(0, 0, 0, 0.12) 85%,
      rgba(0, 0, 0, 0) 100%
    );
    background-color: transparent;
    pointer-events: none;
    transform: none;
    z-index: 1;
  }
}

.hero-right {
  display: none!important;
  flex: 1;
  min-height: 300px;
  position: relative;
  overflow: hidden;
}

.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-text {
  max-width: 500px;
}

.hero-text h1 {
  color: #fff;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: var(--space-md);
  line-height: 1.3;
}

.hero-text h1 span {
  color: inherit;
}

.hero-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  margin-bottom: var(--space-lg);
  max-width: 440px;
  line-height: 1.7;
}

.hero-accent {
  display: none !important;
}

.hero-accent span {
  display: none !important;
}

/* Tablet: side-by-side */
@media (min-width: 768px) {
  .hero {
    flex-direction: column;
  }

  .hero-left {
    width: 100%;
    padding: 4rem var(--space-xl) var(--space-2xl);
  }

  .hero-right {
    display: none;
    width: 50%;
    min-height: 100vh;
  }
}

/* Desktop: refine spacing */
@media (min-width: 1024px) {
  .hero-left {
    padding: 0 var(--space-3xl);
  }
}

.hero-content {
  position: relative;
  z-index: 3;
  width: var(--site-width);
  max-width: 1400px;
  margin: 0 auto;
  padding: 8rem 0 var(--space-2xl);
}

.hero-text {
  max-width: 100%;
}

.hero-text h1 {
  color: #fff;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: var(--space-md);
  line-height: 1.3;
  max-width: none;
}

.hero-text h1 .hero-line {
  display: inline-block;
  white-space: nowrap;
}

.hero-text h1 .hero-highlight {
  color: var(--color-primary);
}

.hero-text p {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  margin-bottom: var(--space-lg);
  max-width: 500px;
  line-height: 1.7;
}

.hero-accent {
  display: none !important;
  gap: 4px;
  margin-bottom: var(--space-md);
}

.hero-accent span {
  display: none !important;
}

/* --- BENEFITS SECTION --- */
.benefits {
  background: var(--color-bg-light);
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.benefit-card {
  background: var(--color-bg);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-sm);
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.benefit-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.benefit-icon i {
  line-height: 1;
}

.benefit-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* --- SERVICES SECTION --- */
.services {
  background: var(--color-bg);
  position: relative;
  overflow: visible;
}

.services .container {
  position: relative;
  z-index: 1;
}

.services-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.services-hub {
  display: grid;
  gap: var(--space-lg);
  align-items: start;
}

.services-mobile-image {
  width: calc(100vw);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: var(--space-lg);
}

.services-mobile-image__photo {
  width: 100%;
  display: block;
  border-radius: 0;
  box-shadow: var(--shadow-card);
  object-fit: cover;
}

.services-hub__photo-wrap {
  justify-self: center;
  width: 100%;
  max-width: none;
  display: none;
}

.services-hub__photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-card);
}

.services-hub__cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  width: 100%;
  padding-bottom: var(--space-xl);
}

.service-card {
  background: var(--color-bg-light);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0;
  line-height: 1.4;
}

.services-hub__cards .service-card {
  width: 100%;
  max-width: none;
  opacity: 0;
  transform: translateY(2rem);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease,
    box-shadow var(--transition-base);
}

.services-hub__cards .service-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.services-hub__cards .service-card.is-visible:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

@media (prefers-reduced-motion: reduce) {
  .services-hub__cards .service-card {
    opacity: 1;
    transform: none;
  }
}

.services-cta {
  margin-top: var(--space-sm);
  text-align: center;
}

@media (max-width: 767px) {
  .services-cta {
    margin-top: var(--space-xs);
  }

  .services-hub__cards {
    padding-bottom: var(--space-sm);
  }

  .about {
    padding-bottom: 0;
  }

  .services {
    padding-top: 0;
  }

  .services-mobile-image {
    margin-bottom: var(--space-2xl);
  }
}

/* Gear decoration peeking from sides */
.gear-decoration {
  position: absolute;
  z-index: 0;
  opacity: 0.04;
  pointer-events: none;
}

.gear-decoration--left {
  left: -100px;
  bottom: -100px;
  top: auto;
  width: 200px;
  height: 200px;
}

.gear-decoration--right {
  right: -125px;
  top: -125px;
  bottom: auto;
  width: 250px;
  height: 250px;
}

/* --- WHO WE ARE (KDO JSME) SECTION --- */
.about {
  background: var(--color-bg-light);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.about-image-wrap {
  position: relative;
  z-index: 1;
}

.gear-decoration-about {
  bottom: -60px;
  right: -60px;
  top: auto;
  left: auto;
  width: 250px;
  height: 250px;
  opacity: 0.40;
  z-index: -1;
  filter: grayscale(100%);
}

.about-image {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.about-image:hover img {
  transform: scale(1.03);
}

.about-text h2 {
  margin-bottom: var(--space-md);
  position: relative;
  display: inline-block;
  padding-bottom: var(--space-sm);
}

.about-text h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

.about-text p {
  color: var(--color-text-light);
  font-size: 1rem;
  margin-bottom: var(--space-lg);
}

/* Oblast působení */
.about-area {
  margin-top: var(--space-md);
  background: var(--color-bg-light);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--border-radius);
  padding: var(--space-md) var(--space-lg);
}

.about-area__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.about-area__title i {
  color: var(--color-primary);
  font-size: 1.1rem;
}

.about-area__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.about-area__list li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.about-area__list li:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.about-area__list li i {
  color: var(--color-primary);
  font-size: 0.7rem;
  flex-shrink: 0;
}

.about-area__more {
  font-style: italic;
  color: var(--color-text-light) !important;
  background: transparent !important;
  border-color: var(--color-border) !important;
  opacity: 0.75;
}

.about-area__more i {
  color: var(--color-secondary-light) !important;
}

@media (max-width: 767px) {
  .about-area {
    margin-bottom: var(--space-lg);
  }
}

/* --- REVIEWS SECTION --- */
.reviews {
  background: #111;
  content-visibility: auto;
  contain-intrinsic-size: 0 500px;
}

.reviews .section-header h2 {
  color: #fff;
}

.reviews-slider-outer {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.reviews-viewport {
  overflow: hidden;
  flex: 1 1 auto;
}

#reviews-track-new {
  display: flex;
  gap: 24px;
  transition: transform 0.45s ease;
  will-change: transform;
}

.review-slide {
  flex: 0 0 auto;
}

.reviews-arrow {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.reviews-arrow:hover:not(:disabled) {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.reviews-arrow:disabled {
  opacity: 0.25;
  cursor: default;
}

.review-card {
  background: #1e1e1e;
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 320px;
  height: 100%;
  box-sizing: border-box;
}

.review-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: var(--space-sm);
  overflow: hidden;
}

.review-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.2rem;
}

.review-role {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: var(--space-md);
}

.review-text {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.65;
  font-style: italic;
  flex: 1;
  margin-bottom: var(--space-md);
  max-width: none;
}

.review-stars {
  color: #f5a623;
  font-size: 1.1rem;
  letter-spacing: 3px;
  margin-top: auto;
}

.reviews-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--space-lg);
}

.reviews-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  padding: 0;
  transition: background var(--transition-fast);
}

.reviews-dot.active {
  background: var(--color-primary);
}

.reviews-dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* --- GALLERY SECTION --- */
.gallery {
  background: var(--color-bg);
  content-visibility: auto;
  contain-intrinsic-size: 0 700px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  grid-auto-rows: auto;
  grid-auto-flow: dense;
}

.gallery-item {
  border-radius: var(--border-radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  position: relative;
}

.gallery-item.landscape {
  aspect-ratio: 16 / 9;
}

.gallery-item.portrait {
  aspect-ratio: 3 / 4;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-load-more-wrap {
  text-align: center;
  margin-top: var(--space-lg);
}

.gallery-load-more {
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  padding: 0.95rem 1.6rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background var(--transition-base), transform var(--transition-base);
}

.gallery-load-more:hover,
.gallery-load-more:focus {
  background: rgba(255,255,255,0.16);
  transform: translateY(-1px);
}

/* carousel and main image */
.gallery-main {
  display: none;
  margin-bottom: var(--space-lg);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  width: 100%;
  cursor: pointer;
}

.gallery-main img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  max-height: 80vh;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  border-radius: var(--border-radius-lg);
}

.gallery-carousel-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  position: relative;
  margin-top: 1.5rem;
}

.gallery-viewport {
  overflow: hidden;
  flex: 1 1 auto;
}

.gallery-track {
  display: flex;
  gap: 12px;
  transition: transform 0.45s ease;
  will-change: transform;
}

.gallery-slide .carousel-item.gallery-item {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

@media (max-width: 767px) {
  .gallery-main {
    display: none;
  }

  .gallery-slide .gallery-item {
    aspect-ratio: 4/3;
  }

  .gallery-slide .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
  }
}

@media (min-width: 768px) {
  .gallery-main {
    display: block;
  }

  .gallery-carousel-wrap {
    margin-top: var(--space-lg);
  }

  .gallery-dots {
    display: none;
  }

  .gallery-slide .gallery-item {
    aspect-ratio: auto;
  }

  .gallery-slide .carousel-item img {
    height: clamp(72px, 9vw, 120px);
    width: auto;
    max-width: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
  }

  .gallery-carousel-wrap .gallery-arrow {
    position: static;
    transform: none;
    flex-shrink: 0;
  }
}

.gallery-carousel {
  overflow: hidden;
  flex: 1 1 auto;
}

.carousel-track {
  display: flex;
  gap: var(--space-sm);
  padding: 6px 2px;
  overflow-x: auto;
  scroll-behavior: smooth;
}


.carousel-item {
  flex: 0 0 auto;
  width: auto;
  height: auto;
  border-radius: var(--border-radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-item img {
  height: clamp(64px, 12vw, 160px);
  width: auto;
  object-fit: contain;
  display: block;
  transition: transform var(--transition-base);
  border-radius: var(--border-radius);
}

.carousel-item:hover img {
  transform: scale(1.05);
}

.carousel-btn {
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  font-size: 1.4rem;
  padding: 0.45rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
}

/* hide native scrollbar for most browsers */
.carousel-track::-webkit-scrollbar { height: 8px; }
.carousel-track::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 8px; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--border-radius);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
  transition: transform var(--transition-fast);
}

.lightbox-close:hover {
  transform: scale(1.2);
}

/* --- FOOTER / CONTACT SECTION --- */
.site-footer {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 1)), url("Obrazky/paticka.jpg") center/cover no-repeat;
  color: rgba(255, 255, 255, 0.85);
  padding-top: var(--section-padding-y);
  padding-bottom: var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-col {
  background: rgba(0, 0, 0, 0.45);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
}

.footer-col h3 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: var(--space-md);
  position: relative;
  padding-bottom: var(--space-xs);
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.3;
  margin-bottom: 0.25rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-col a {
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--color-primary);
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  line-height: 1.3;
}

.contact-line i {
  color: var(--color-primary);
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.footer-company-info p {
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-sm) 0 var(--space-xs);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
  text-align: center;
}

.footer-legal {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-credit {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-credit a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-credit a:hover {
  color: var(--color-primary);
}

/* --- SCROLL ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal.reveal--fade {
  transform: none;
}

.reveal.reveal--fade.visible {
  transform: none;
}

/* Stagger children */
.reveal-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-children.visible > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-children.visible > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-children.visible > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-children.visible > *:nth-child(4) { transition-delay: 0.4s; }
.reveal-children.visible > *:nth-child(5) { transition-delay: 0.5s; }
.reveal-children.visible > *:nth-child(6) { transition-delay: 0.6s; }
.reveal-children.visible > *:nth-child(7) { transition-delay: 0.7s; }

.reveal-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* --- GEAR SPIN ANIMATION --- */
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* --- RESPONSIVE: TABLET (768px+) --- */
@media (min-width: 768px) {
  .services-hub {
    grid-template-columns: minmax(220px, 340px) 1fr;
    align-items: stretch;
    gap: var(--space-xl);
  }

  .services-hub__photo-wrap {
    align-self: stretch;
    max-width: 340px;
    z-index: 2;
    display: block;
  }

  .services-mobile-image {
    display: none;
  }

  .services-hub__photo {
    position: sticky;
    top: var(--services-sticky-top, 6.5rem);
    height: 70vh;
    min-height: 500px;
    max-height: 750px;
    object-fit: cover;
  }

  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    align-items: stretch;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }

  .about-image-wrap {
    order: 2;
  }

  .about-text {
    order: 1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gear-decoration--left {
    width: 280px;
    height: 280px;
    left: -100px;
  }

  .gear-decoration--right {
    width: 320px;
    height: 320px;
    right: -100px;
  }
}

/* --- RESPONSIVE: DESKTOP (1024px+) --- */
@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }

  .nav-desktop {
    display: flex;
    flex: 1;
    justify-content: center;
  }

  .nav-desktop ul {
    gap: var(--space-md);
  }

  .header-contacts {
    display: flex;
  }

  .logo img {
    height: 56px;
  }

  :root {
    --section-padding-y: var(--space-3xl);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1.2fr;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  .services-content {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .services-hub {
    max-width: 1100px;
    margin-inline: auto;
    grid-template-columns: minmax(260px, 380px) 1fr;
  }

  .services-hub__photo-wrap {
    max-width: 380px;
  }

  .gear-decoration--left {
    width: 350px;
    height: 350px;
    left: -120px;
  }

  .gear-decoration--right {
    width: 400px;
    height: 400px;
    right: -120px;
  }
}

/* --- RESPONSIVE: LARGE DESKTOP (1440px+) --- */
@media (min-width: 1440px) {
  :root {
    --font-size-base: 1.05rem;
  }

  .logo img {
    height: 80px;
  }

  .nav-desktop ul {
    gap: var(--space-lg);
  }
}

/* --- RESPONSIVE: 4K (2560px+) --- */
@media (min-width: 2560px) {
  :root {
    --font-size-base: 1.15rem;
    --space-xs: 0.75rem;
    --space-sm: 1.25rem;
    --space-md: 2rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 5.5rem;
    --space-3xl: 8rem;
  }

  .logo img {
    height: 72px;
  }
}

/* --- SKIP LINK (Accessibility) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-primary);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  z-index: 9999;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
  color: #fff;
}

/* --- Honeypot (spam protection) --- */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* --- Contact Form in Footer --- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
}

.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  color: #fff;
  font-family: var(--font-family);
  font-size: 0.9rem;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* --- Custom Icon (Kruh) --- */
.icon-kruh {
  display: inline-block;
  width: 1em;
  height: 1em;
  background-color: currentColor;
  -webkit-mask-image: url('Obrazky/kruh.png');
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-image: url('Obrazky/kruh.png');
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

/* --- POPUP POPTÁVKA --- */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  padding: var(--space-sm);
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup-box {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius-lg);
  width: 100%;
  max-width: 500px;
  padding: var(--space-xl);
  position: relative;
  transform: translateY(20px);
  transition: all var(--transition-base);
  color: var(--color-text);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.popup-overlay.active .popup-box {
  transform: translateY(0);
}

.popup-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: rgba(0, 0, 0, 0.4);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition-fast);
}

.popup-close:hover {
  color: var(--color-text);
}

.popup-icon {
  font-size: 2.5rem;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: var(--space-sm);
}

#popup-heading {
  text-align: center;
  margin-bottom: 0.5rem;
}

.popup-sub {
  text-align: center;
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: var(--space-lg);
  font-size: 0.95rem;
}

.popup-box .form-group label {
  color: var(--color-text);
  font-weight: 600;
}

.popup-box .form-group input,
.popup-box .form-group textarea {
  background: #f8f9fa;
  border: 1px solid #ced4da;
  color: var(--color-text);
}

.popup-box .form-group input:focus,
.popup-box .form-group textarea:focus {
  background: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(119, 172, 40, 0.2);
}

.form-error {
  color: #dc3545;
  font-size: 0.85rem;
  margin-bottom: var(--space-sm);
  text-align: center;
}

.popup-thankyou {
  text-align: center;
  padding: var(--space-lg) 0;
}

.thankyou-icon {
  font-size: 4rem;
  color: #4CAF50;
  margin-bottom: var(--space-md);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* --- GALLERY CAROUSEL SPECIFICS --- */
.gallery-carousel-wrap .gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  color: rgba(0, 0, 0, 0.7);
  border-color: rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.gallery-carousel-wrap .gallery-arrow:hover:not(:disabled) {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.gallery-carousel-wrap .reviews-arrow--prev {
  left: -20px;
}

.gallery-carousel-wrap .reviews-arrow--next {
  right: -20px;
}

.gallery-dots .reviews-dot {
  background: rgba(0, 0, 0, 0.15);
}

.gallery-dots .reviews-dot.active {
  background: var(--color-primary);
}

.gallery-dots .reviews-dot:hover {
  background: rgba(0, 0, 0, 0.35);
}
