/* ================================================
   CHLAZENÍ – ELEKTRO  |  Patrik Diviš
   Moderní, elegantní, profesionální
   ================================================ */

/* ── Custom Properties ─────────────────────────── */
:root {
  --bg:          #f2f7ff;
  --bg-alt:      #e6effa;
  --bg-card:     #ffffff;
  --bg-card2:    #f8fafd;
  --border:      rgba(15,23,42,0.1);
  --border-h:    rgba(2,132,199,0.3);

  --blue:        #0284c7;
  --blue-dim:    #0369a1;
  --blue-glow:   rgba(2,132,199,0.15);
  --blue-soft:   rgba(2,132,199,0.08);

  --orange:      #d97706;
  --orange-glow: rgba(217,119,6,0.12);
  --orange-soft: rgba(217,119,6,0.07);

  --teal:        #0d9488;
  --teal-soft:   rgba(13,148,136,0.07);

  --white:       #0f172a;
  --text:        #334155;
  --text-dim:    #64748b;
  --text-bright: #1e293b;

  --r:           12px;
  --r-lg:        20px;
  --r-xl:        28px;

  --shadow:      0 4px 24px rgba(15,23,42,0.1);
  --shadow-lg:   0 12px 48px rgba(15,23,42,0.15);
  --shadow-blue: 0 8px 32px rgba(2,132,199,0.2);

  --ease:        cubic-bezier(.4,0,.2,1);
  --dur:         0.3s;

  --font:        'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --w:           1200px;
}

/* ── Reset ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--dur) var(--ease); }
ul { list-style: none; }
button { font-family: inherit; }

/* ── Container ─────────────────────────────────── */
.container {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ══════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
  line-height: 1;
}
.btn-primary {
  background: var(--blue);
  color: #ffffff;
}
.btn-primary:hover {
  background: #7dd3fc;
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}
.btn-ghost {
  border-color: rgba(255,255,255,0.2);
  color: var(--text-bright);
}
.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-soft);
}
.btn-nav {
  background: var(--blue);
  color: #ffffff;
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}
.btn-nav:hover {
  background: #7dd3fc;
  transform: translateY(-1px);
  box-shadow: var(--shadow-blue);
}
.btn-lg { padding: 0.95rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* ══════════════════════════════════════════════════
   SECTIONS
══════════════════════════════════════════════════ */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--bg-alt); }

.section-hd {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-hd h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 580px;
  margin: 0 auto;
}
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

/* ══════════════════════════════════════════════════
   HEADER & NAV
══════════════════════════════════════════════════ */


.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  padding: 1.1rem 0;
  background: rgba(242,247,255,0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              padding var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.header.scrolled {
  background: rgba(242,247,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 0;
  box-shadow: 0 4px 24px rgba(15,23,42,0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo */
.logo {
  flex-shrink: 0;
  line-height: 0;
}
.logo-img {
  height: 52px;
  width: auto;
  max-width: 180px;
  display: block;
}
@media (max-width: 640px) {
  .logo-img { height: 42px; max-width: 140px; }
}

/* Footer logo */
.footer-logo-img {
  height: 72px;
  width: auto;
  max-width: 220px;
  display: block;
  margin-bottom: 1rem;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
.nav-links a:not(.btn-nav) {
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-links a:not(.btn-nav):hover,
.nav-links a.nav-active {
  color: var(--white);
  background: rgba(15,23,42,0.06);
}
.nav-links a.nav-active { color: var(--blue); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: background var(--dur);
}
.hamburger:hover { background: rgba(255,255,255,0.06); }
.hamburger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile menu ────────────────────────────────── */
@media (max-width: 800px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    inset: 64px 0 0 0;
    background: rgba(242,247,255,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform var(--dur) var(--ease);
    border-top: 1px solid var(--border);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a:not(.btn-nav) {
    font-size: 1.15rem;
    padding: 0.85rem 1.25rem;
    border-radius: 8px;
    display: block;
    text-align: center;
  }
  .nav-links li:last-child { margin-top: 0.5rem; }
  .btn-nav { font-size: 1rem; padding: 0.85rem 2rem; }
}

/* ══════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

/* Ambient glow */
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 65% 45%, rgba(2,132,199,0.09) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 15% 85%, rgba(217,119,6,0.05) 0%, transparent 55%),
    linear-gradient(160deg, #f2f7ff 0%, #e8f2fb 40%, #f2f7ff 100%);
}
.hero-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 15% 25%, rgba(2,132,199,0.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 75% 15%, rgba(2,132,199,0.18) 0%, transparent 100%),
    radial-gradient(1px 1px at 45% 65%, rgba(2,132,199,0.15) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 75%, rgba(2,132,199,0.12) 0%, transparent 100%);
  background-size: 500px 500px, 380px 380px, 600px 600px, 420px 420px;
  opacity: 0.4;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: calc(100svh - 80px);  /* vyplní celý viewport pod headerem */
  padding: 4rem 0;
}

/* Hero left */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  padding: 0.45rem 1rem;
  border: 1px solid rgba(2,132,199,0.3);
  border-radius: 100px;
  background: rgba(2,132,199,0.07);
  margin-bottom: 1.5rem;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  line-height: 1.5;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero-accent {
  display: block;
  color: var(--blue);
  background: linear-gradient(90deg, #0284c7, #4f46e5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text);
  max-width: 500px;
  margin-bottom: 1.5rem;
  line-height: 1.75;
}

/* Kontaktní řádek v hero */
.hero-contact {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 2rem;
}
.hero-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color var(--dur);
}
.hero-contact-link:hover { color: var(--blue); }
.hero-contact-link svg { opacity: 0.55; flex-shrink: 0; }

/* Telefon – výrazný */
.hero-contact-phone {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}
.hero-contact-phone svg { opacity: 0.7; }
.hero-contact-phone:hover { color: var(--blue); }

.hero-contact-sep {
  color: var(--text-dim);
  user-select: none;
  font-size: 1rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 3rem;
}

/* Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.stat strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat span {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.2rem;
  display: block;
}
.stat-sep {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* Hero right – kontaktní karta */
.hero-visual { position: relative; }
.hero-card {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  height: clamp(440px, 60vh, 720px);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: stretch;
  background: linear-gradient(150deg, #0369a1 0%, #0c2461 100%);
}

/* Fotka v pravém dolním rohu – viditelná, postupně mizí */
.hero-card-img {
  position: absolute;
  bottom: 0; right: 0;
  width: 68%; height: 92%;
  object-fit: cover;
  opacity: 0.68;
  filter: saturate(0.45) brightness(0.85);
  -webkit-mask-image: linear-gradient(to top left, black 0%, rgba(0,0,0,0.65) 40%, transparent 68%);
  mask-image: linear-gradient(to top left, black 0%, rgba(0,0,0,0.65) 40%, transparent 68%);
}

/* Obsah karty */
.hero-card-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.75rem 2.5rem;
  width: 100%;
}
.hero-card-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.4rem;
}
.hero-card-phone {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.9rem;
  transition: opacity var(--dur);
}
.hero-card-phone:hover { opacity: 0.8; }
.hero-card-phone svg { opacity: 0.7; flex-shrink: 0; }
.hero-card-mail {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color var(--dur);
}
.hero-card-mail:hover { color: #fff; }
.hero-card-mail svg { opacity: 0.7; flex-shrink: 0; }
.hero-card-divider {
  height: 1px;
  background: rgba(255,255,255,0.12);
  margin-bottom: 1.4rem;
}
.hero-card-location {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}
.hero-card-location svg { opacity: 0.7; flex-shrink: 0; }

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--text-dim);
  transition: color var(--dur);
}
.hero-scroll:hover { color: var(--blue); }
.scroll-chevron {
  display: block;
  animation: chevron-bounce 2s ease-in-out infinite;
}
@keyframes chevron-bounce {
  0%, 100% { transform: translateY(0);   opacity: 0.55; }
  50%       { transform: translateY(7px); opacity: 1; }
}

/* ── Hero responsive ────────────────────────────── */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
    padding-top: 2rem;
  }
  .hero-badge    { margin: 0 auto 1.5rem; }
  .hero-desc     { margin: 0 auto 1.5rem; }
  .hero-contact  { justify-content: center; margin-bottom: 1.75rem; }
  .hero-cta      { justify-content: center; }
  .hero-stats    { justify-content: center; }
  .hero-card   { height: 340px; }
  .hero-card-phone { font-size: 1.5rem; }
  .hero-card-body  { padding: 2rem 1.75rem; }
  .hero-scroll { display: none; }
}
@media (max-width: 480px) {
  .hero-card   { height: 260px; }
  .hero-title  { font-size: 2.2rem; }
}

/* ══════════════════════════════════════════════════
   SERVICES
══════════════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (min-width: 1100px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
}
.service-card {
  padding: 2.25rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  transition: opacity var(--dur);
}
.service-card:hover {
  transform: translateY(-5px);
}

.sc-blue::after  { background: var(--blue); }
.sc-orange::after { background: var(--orange); }
.sc-teal::after  { background: var(--teal); }
.sc-gray::after  { background: #475569; }

.sc-blue:hover   { border-color: var(--border-h); box-shadow: 0 12px 40px rgba(56,189,248,0.1); }
.sc-orange:hover { border-color: rgba(245,158,11,0.25); box-shadow: 0 12px 40px rgba(245,158,11,0.1); }
.sc-teal:hover   { border-color: rgba(45,212,191,0.25); box-shadow: 0 12px 40px rgba(45,212,191,0.1); }
.sc-gray:hover   { border-color: rgba(71,85,105,0.4); box-shadow: 0 12px 40px rgba(71,85,105,0.1); }

.sc-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.sc-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sc-icon svg { width: 22px; height: 22px; }

.sc-blue  .sc-icon { background: var(--blue-soft);   color: var(--blue); }
.sc-orange .sc-icon { background: var(--orange-soft);  color: var(--orange); }
.sc-teal  .sc-icon { background: var(--teal-soft);   color: var(--teal); }
.sc-gray  .sc-icon { background: rgba(71,85,105,0.15); color: #94a3b8; }

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
}
.service-card > p {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.sc-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.sc-list li {
  font-size: 0.85rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sc-list li::before {
  content: '→';
  font-weight: 700;
  flex-shrink: 0;
}
.sc-blue   .sc-list li::before { color: var(--blue); }
.sc-orange .sc-list li::before { color: var(--orange); }
.sc-teal   .sc-list li::before { color: var(--teal); }
.sc-gray   .sc-list li::before { color: #475569; }

/* ══════════════════════════════════════════════════
   FEATURES
══════════════════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.feature {
  padding: 2rem;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--bg-card);
  text-align: center;
  transition: transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              background var(--dur) var(--ease);
}
.feature:hover {
  transform: translateY(-4px);
  border-color: var(--border-h);
  background: var(--blue-soft);
}
.feat-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.1rem;
}
.feat-icon svg { width: 24px; height: 24px; }
.feat-blue { background: var(--blue-soft); color: var(--blue); }
.feat-gold { background: rgba(217,119,6,0.1); color: #b45309; }

.feature h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
}
.feature p {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ══════════════════════════════════════════════════
   BRANDS
══════════════════════════════════════════════════ */
.brands-wrap {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-bottom: 2rem;
}
.brands-cat-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.brands-cat-label svg { color: var(--blue); flex-shrink: 0; }

.brands-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.brand-pill {
  padding: 0.7rem 1.75rem;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-bright);
  letter-spacing: 0.02em;
  cursor: default;
  transition: all var(--dur) var(--ease);
}
.brand-pill:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2,132,199,0.15);
}
.brands-divider {
  height: 1px;
  background: var(--border);
}
.brands-note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-dim);
  font-style: italic;
}

/* ══════════════════════════════════════════════════
   GALLERY
══════════════════════════════════════════════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  grid-auto-flow: dense;
  gap: 0.875rem;
}
.g-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r);
  border: 1px solid var(--border);
  cursor: pointer;
}
.g-wide { grid-column: span 2; }

.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.g-item:hover img { transform: scale(1.06); }

.g-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,14,28,0.85) 0%, rgba(6,14,28,0.2) 50%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.1rem 1.25rem;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.g-item:hover .g-overlay { opacity: 1; }
.g-overlay span {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ── Gallery filters ─────────────────────────────── */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.gf-btn {
  padding: 0.45rem 1.2rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  font-family: var(--font);
}
.gf-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-soft);
}
.gf-btn.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.g-item.g-hidden { display: none; }

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 180px;
  }
}
@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }
  .g-wide { grid-column: span 1; }
}

/* ══════════════════════════════════════════════════
   ABOUT
══════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.about-text .eyebrow { display: block; }
.about-text h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.about-lead {
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 500;
  margin-bottom: 1rem;
  line-height: 1.6;
}
.about-text > p:not(.eyebrow):not(.about-lead) {
  color: var(--text);
  font-size: 0.925rem;
  margin-bottom: 0.85rem;
  line-height: 1.75;
}

.cert-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--r);
  border: 1px solid rgba(245,158,11,0.3);
  background: var(--orange-soft);
  margin-top: 1.75rem;
  margin-bottom: 1.5rem;
}
.cert-card-icon { font-size: 1.75rem; flex-shrink: 0; }
.cert-card strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.2rem;
}
.cert-card span {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.about-meta {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--bg-alt);
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
}
.meta-label {
  color: var(--text-dim);
  min-width: 130px;
  flex-shrink: 0;
}
.meta-val { color: var(--white); font-weight: 600; }

/* About strengths list */
.about-strengths {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 1.75rem;
}
.about-strengths li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
}
.as-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 800;
}

/* About images collage */
.about-imgs {
  position: relative;
  height: 500px;
}
.about-img-main {
  position: absolute;
  top: 0; left: 0;
  width: 73%;
  height: 80%;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.about-img-side {
  position: absolute;
  bottom: 0; right: 0;
  width: 52%;
  height: 52%;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--bg);
}
.about-img-main img,
.about-img-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 860px) {
  .about-imgs {
    height: 360px;
  }
}
@media (max-width: 480px) {
  .about-imgs { height: 280px; }
  .about-img-main { width: 72%; height: 78%; }
  .about-img-side { width: 55%; height: 50%; }
}

/* ══════════════════════════════════════════════════
   CONTACT
══════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.65fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* Contact info items */
.ci-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: var(--r);
  border: 1px solid transparent;
  transition: border-color var(--dur), background var(--dur);
}
a.ci-item:hover {
  border-color: var(--border-h);
  background: var(--blue-soft);
}
.ci-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ci-icon svg { width: 18px; height: 18px; }
.ci-item strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
}
.ci-item span, .ci-item a {
  font-size: 0.95rem;
  color: var(--text-bright);
  font-weight: 500;
}

.contact-note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 1rem;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--bg-alt);
  font-size: 0.83rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-top: 0.5rem;
}
.contact-note svg { color: var(--blue); flex-shrink: 0; margin-top: 1px; }

/* Contact form */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2.5rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 0.45rem;
}
.req { color: var(--blue); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: #f1f7ff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  color: var(--text-bright);
  font-family: var(--font);
  font-size: 0.9rem;
  line-height: 1.4;
  transition: border-color var(--dur) var(--ease),
              background var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 16px;
  padding-right: 2.5rem;
  cursor: pointer;
}
.form-group select option { background: #ffffff; color: var(--text-bright); }
.form-group textarea { resize: vertical; min-height: 120px; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(2,132,199,0.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(100,116,139,0.6);
}

.form-note {
  margin-top: 0.9rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.5;
}
.form-error {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: rgba(239,68,68,0.07);
  border: 1px solid rgba(239,68,68,0.2);
  color: #dc2626;
  font-size: 0.85rem;
  line-height: 1.55;
  text-align: center;
}
.form-error a { color: inherit; font-weight: 600; text-decoration: underline; }

/* Form success */
.form-success {
  text-align: center;
  padding: 3rem 2rem;
}
.fs-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(52,211,153,0.15);
  color: #34d399;
  font-size: 1.75rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  border: 1px solid rgba(52,211,153,0.3);
}
.form-success h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
}
.form-success p { color: var(--text-dim); }

/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
.footer {
  background: #dae5f5;
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.footer-brand p:not(.footer-logo) {
  font-size: 0.83rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.footer-nav h4,
.footer-services h4,
.footer-contact h4 {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.footer-nav ul,
.footer-services ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.footer-nav a,
.footer-services li,
.footer-contact p {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.4;
}
.footer-nav a:hover { color: var(--blue); }
.footer-contact a:hover { color: var(--blue); }
.footer-contact p { margin-bottom: 0.4rem; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: var(--text-dim);
}
.footer-bottom a:hover { color: var(--blue); }
.footer-credit { font-style: italic; opacity: 0.75; }
.footer-credit a:hover { color: var(--blue); opacity: 1; }

/* ══════════════════════════════════════════════════
   SCROLL ANIMATIONS
══════════════════════════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grids */
.services-grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
.services-grid .fade-in:nth-child(3) { transition-delay: 0.2s; }
.services-grid .fade-in:nth-child(4) { transition-delay: 0.3s; }

.features-grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
.features-grid .fade-in:nth-child(3) { transition-delay: 0.2s; }
.features-grid .fade-in:nth-child(4) { transition-delay: 0.3s; }

.gallery-grid .fade-in:nth-child(2)  { transition-delay: 0.06s; }
.gallery-grid .fade-in:nth-child(3)  { transition-delay: 0.12s; }
.gallery-grid .fade-in:nth-child(4)  { transition-delay: 0.18s; }
.gallery-grid .fade-in:nth-child(5)  { transition-delay: 0.06s; }
.gallery-grid .fade-in:nth-child(6)  { transition-delay: 0.12s; }
.gallery-grid .fade-in:nth-child(7)  { transition-delay: 0.18s; }
.gallery-grid .fade-in:nth-child(8)  { transition-delay: 0.24s; }
.gallery-grid .fade-in:nth-child(9)  { transition-delay: 0.06s; }
.gallery-grid .fade-in:nth-child(10) { transition-delay: 0.12s; }
.gallery-grid .fade-in:nth-child(11) { transition-delay: 0.18s; }
.gallery-grid .fade-in:nth-child(12) { transition-delay: 0.24s; }
.gallery-grid .fade-in:nth-child(13) { transition-delay: 0.06s; }
.gallery-grid .fade-in:nth-child(14) { transition-delay: 0.12s; }

/* ══════════════════════════════════════════════════
   MOBILE — komplexní responzivita
══════════════════════════════════════════════════ */

/* Zabrání horizontálnímu scrollování */
body { overflow-x: hidden; }

/* ── Globální zmenšení paddingu sekcí ── */
@media (max-width: 640px) {
  .section          { padding: 3.5rem 0; }
  .section-alt      { padding: 3.5rem 0; }
  .section-hd       { margin-bottom: 2.25rem; }
  .section-hd h2    { font-size: 1.7rem; }
  .section-sub      { font-size: 0.95rem; }
  .container        { padding: 0 1.1rem; }
}

/* ── Hero ── */
@media (max-width: 640px) {
  .hero-inner {
    padding-top: 1rem;
    padding-bottom: 3rem;
    gap: 2rem;
  }
  .hero-badge {
    font-size: 0.66rem;
    padding: 0.4rem 0.85rem;
    letter-spacing: 0.1em;
    text-align: center;
  }
  .hero-title  { font-size: 2rem; }
  .hero-desc   { font-size: 0.95rem; margin-bottom: 1.75rem; }

  /* CTA tlačítka pod sebou na úzkém displeji */
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta .btn { width: 100%; text-align: center; }

  /* Stats kompaktněji */
  .hero-stats   { gap: 1.1rem; }
  .stat strong  { font-size: 1.5rem; }
  .stat span    { font-size: 0.72rem; }
  .stat-sep     { height: 28px; }

  /* Hero karta — kontakty */
  .hero-card        { height: 220px; border-radius: var(--r); }
  .hero-card-body   { padding: 1.5rem; }
  .hero-card-eyebrow { margin-bottom: 0.75rem; }
  .hero-card-phone  { font-size: 1.3rem; margin-bottom: 0.5rem; }
  .hero-card-mail   { font-size: 0.82rem; margin-bottom: 0; }
  .hero-card-divider, .hero-card-location { display: none; }
}

/* ── Navigace — menší výška při otevřeném menu ── */
@media (max-width: 380px) {
  .nav-links a:not(.btn-nav) { font-size: 1rem; padding: 0.7rem 1rem; }
  .logo { font-size: 1.1rem; }
}

/* ── Služby — 1 sloupec na úzkých displejích ── */
@media (max-width: 580px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card  { padding: 1.75rem 1.5rem; }
}

/* ── Přednosti — 2 sloupce na mobilu, pak 1 ── */
@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr 1fr; gap: 0.875rem; }
  .feature       { padding: 1.5rem 1rem; }
  .feat-icon     { width: 44px; height: 44px; }
  .feature h4    { font-size: 0.95rem; }
  .feature p     { font-size: 0.82rem; }
}
@media (max-width: 380px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ── Značky ── */
@media (max-width: 640px) {
  .brand-pill { padding: 0.6rem 1.25rem; font-size: 0.9rem; }
  .brands-cat-label { font-size: 0.68rem; }
}

/* ── Galerie — overlay vždy viditelný na dotykovém zařízení ── */
@media (hover: none) {
  .g-overlay { opacity: 1; }
}
@media (max-width: 640px) {
  .gallery-grid  { grid-auto-rows: 170px; gap: 0.6rem; }
}
@media (max-width: 420px) {
  .gallery-grid  { grid-template-columns: 1fr; grid-auto-rows: 210px; }
  .g-wide        { grid-column: span 1; }
}

/* ── O nás — collage výška ── */
@media (max-width: 640px) {
  .about-imgs         { height: 260px; }
  .about-img-main     { width: 70%; height: 76%; }
  .about-img-side     { width: 55%; height: 52%; }
}
@media (max-width: 400px) {
  .about-imgs         { height: 220px; }
}

/* Certifikát karta — zalamování textu */
@media (max-width: 480px) {
  .cert-card         { flex-direction: column; gap: 0.75rem; }
  .about-meta        { gap: 0.75rem; }
  .meta-item         { flex-direction: column; gap: 0.25rem; }
  .meta-label        { min-width: unset; }
}

/* ── Kontakt ── */
@media (max-width: 640px) {
  .contact-form-wrap { padding: 1.75rem 1.25rem; border-radius: var(--r-lg); }
  .ci-item           { padding: 0.75rem; }
  .ci-icon           { width: 36px; height: 36px; border-radius: 8px; }
}

/* ── Footer ── */
@media (max-width: 640px) {
  .footer            { padding: 2.5rem 0 0; }
  .footer-grid       { gap: 1.5rem; margin-bottom: 2rem; }
  .footer-bottom     {
    flex-direction: column;
    text-align: center;
    gap: 0.4rem;
  }
}

/* ── Touch target minimum 44 px ── */
@media (max-width: 800px) {
  .btn          { min-height: 44px; }
  .hamburger    { width: 44px; height: 44px; }
}

/* ── Velké obrazovky (≥1400 px) ─────────────────── */
@media (min-width: 1400px) {
  .hero-inner    { gap: 5rem; }
  .hero-title    { font-size: clamp(3.2rem, 4vw, 5rem); }
  .hero-subtitle { font-size: 1.25rem; }
  .stat strong   { font-size: 2.1rem; }
  .hero-card { border-radius: var(--r-xl); }
  .services-grid { gap: 2rem; }
  .service-card  { padding: 2.75rem 2.25rem; }
  .about-inner   { gap: 5rem; }
}

/* ══════════════════════════════════════════════════
   UTILITIES
══════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .fade-in { opacity: 1; transform: none; }
}

/* Lightbox always stays dark – looks better for photos */
#lightbox { color-scheme: dark; }
