/* ============================================================
   E-Remeslník WEB2 – HTML/CSS
   Původní grafický design, oranžové barvy z WEB
   ============================================================ */

:root {
  --primary: #ff8c00;
  --primary-dark: #ff6b00;
  --primary-light: #ffa726;
  --primary-rgb: 255, 140, 0;
  --text: #1d1d1f;
  --text-muted: #666;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --max-w: 1280px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 25px 50px rgba(0, 0, 0, 0.15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; font-family: system-ui, -apple-system, sans-serif; color: var(--text); line-height: 1.6; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
@media (max-width: 639px) {
  .container { padding: 0 16px; }
}

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 16px 0;
  transition: background 0.3s, box-shadow 0.3s;
}
.header.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 20px rgba(var(--primary-rgb), 0.08);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
@media (max-width: 639px) {
  .header-inner { padding: 0 16px; }
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--text);
}
@media (max-width: 380px) {
  .header-logo-text { font-size: 0.95rem; }
  .header-logo-icon { width: 28px; height: 28px; }
  .header-logo-icon svg { width: 16px; height: 16px; }
}
.header-logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.25);
}
.header-logo-icon svg {
  width: 20px;
  height: 20px;
  color: white;
}

.header-nav {
  display: none;
  align-items: center;
  gap: 32px;
}
.header-nav a {
  font-weight: 600;
  font-size: 15px;
  color: var(--gray-700);
  transition: color 0.2s;
}
.header-nav a:hover { color: var(--primary); }
.header:not(.is-scrolled) .header-nav a { color: black; }
.header:not(.is-scrolled) .header-nav a:hover { color: black; }

.header-cta {
  display: none;
  align-items: center;
  gap: 12px;
}
.header-btn { padding: 10px 20px; font-size: 14px; }
.header-nav-accent {
  color: var(--primary-dark) !important;
  font-weight: 700;
}
.header-nav-accent:hover {
  color: var(--primary) !important;
}

.header-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: none;
}
.header-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  transition: transform 0.3s, opacity 0.3s;
}
.header:not(.is-scrolled) .header-hamburger span { background: white; }
.header-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header-hamburger.is-open span:nth-child(2) { opacity: 0; }
.header-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: white;
  padding: 24px;
  border-top: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
}
.header-mobile.is-open { display: block; }
.header-mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}
.header-mobile-nav a {
  font-weight: 600;
  color: var(--text);
}
.header-mobile-nav a:hover { color: var(--primary); }

@media (min-width: 768px) {
  .header-nav { display: flex; }
  .header-cta { display: flex; }
  .header-hamburger { display: none; }
  .header-mobile { display: none !important; }
}
@media (max-width: 767px) {
  .header-hamburger { display: flex; }
  .header-mobile-nav a { font-size: 16px; padding: 12px 0; }
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 15px;
  border-radius: 9999px;
  border: 2px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.5);
}
.btn-outline {
  background: transparent;
  color: white;
  border-color: white;
}
.btn-outline:hover {
  background: white;
  color: var(--gray-900);
}
.btn-outline-dark {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--gray-300);
}
.btn-outline-dark:hover {
  background: var(--gray-100);
  border-color: var(--primary);
  color: var(--primary);
}
.btn.ghost {
  background: transparent;
  border-color: var(--gray-200);
  color: var(--text);
}
.btn.ghost:hover { background: rgba(0,0,0,0.04); }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 24px 80px;
  overflow: hidden;
}
@media (max-width: 639px) {
  .hero { padding: 100px 16px 60px; }
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 107, 0, 0.92) 0%, rgba(255, 107, 0, 0.82) 50%, rgba(255, 140, 0, 0.72) 100%);
}

/* Hero light – bílé pozadí, černý text, oranžový gradient */
.hero-light {
  min-height: auto;
  padding: 220px 24px 80px;
}
@media (max-width: 767px) {
  .hero-light { padding: 140px 24px 60px; }
}
@media (max-width: 639px) {
  .hero-light { padding: 120px 16px 48px; }
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  z-index: 0;
  
}
.hero-light .hero-bg-img { display: none; }
.hero-light .hero-bg-overlay { display: none; }
.hero-kicker-light {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.4);
}
.hero-title-dark { color: var(--text) !important; }
.hero-title-dark .hero-title-accent {
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc-dark { color: var(--gray-600) !important; }
.hero-stats-dark { color: var(--text) !important; }
.hero-stats-dark svg { color: var(--primary) !important; }

.hero-card-light-inner .hero-card-item-light {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
}
.hero-card-item-light svg { color: white !important; }

/* Hero card – původní šířka, JS-driven plynulý cyklus */
@keyframes hero-card-item-in {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.hero-card-animated .hero-card-item {
  animation: hero-card-item-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-card-animated .hero-card-item:nth-child(1) { animation-delay: 0.2s; }
.hero-card-animated .hero-card-item:nth-child(2) { animation-delay: 0.3s; }
.hero-card-animated .hero-card-item:nth-child(3) { animation-delay: 0.4s; }
.hero-card-animated .hero-card-item:nth-child(4) { animation-delay: 0.5s; }

.hero-card-item-expand {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease, background 0.3s ease;
}
.hero-card-item-expand.is-open,
.hero-card-item-expand:hover {
  transform: translateX(8px) scale(1.02);
  box-shadow: 0 12px 28px rgba(var(--primary-rgb), 0.45);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary)) !important;
  z-index: 2;
  position: relative;
}
.hero-card-item-expand:hover {
  transform: translateX(10px) scale(1.03);
  box-shadow: 0 14px 32px rgba(var(--primary-rgb), 0.5);
}

.hero-card-item-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-card-item-expand.is-open .hero-card-item-body,
.hero-card-item-expand:hover .hero-card-item-body {
  max-height: 100px;
}

.hero-card-item-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 16px;
  min-height: 52px;
  text-align: left;
}
.hero-card-item-header span {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  text-align: left;
}
.hero-card-item-body p {
  margin: 0;
  padding: 0 16px 16px;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.95;
  text-align: left;
}
.hero-card-item-expand svg {
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hero-card-item-expand.is-open svg,
.hero-card-item-expand:hover svg {
  transform: scale(1.12) rotate(4deg);
}
.hero-light .hero-scroll-icon { border-color: var(--gray-400); }
.hero-light .hero-scroll-icon::after { background: var(--gray-500); }

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 640px) {
  .hero-grid { gap: 40px; }
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
}

.hero-kicker {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  backdrop-filter: blur(8px);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: white;
  margin-bottom: 24px;
}

.hero-title {
  margin: 0 0 24px;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: white;
}
.hero-title-accent {
  display: block;
  background: linear-gradient(90deg, #fff3e0, #ffe0b2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  margin: 0 0 32px;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 32rem;
}
@media (max-width: 639px) {
  .hero-desc { font-size: 1.1rem; margin-bottom: 24px; }
  .hero-title { font-size: clamp(1.75rem, 6vw, 2.5rem); margin-bottom: 16px; }
  .hero-kicker { font-size: 12px; padding: 6px 12px; }
  .hero-btns { margin-bottom: 32px; }
  .hero-btns .btn { width: 100%; justify-content: center; }
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.hero-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  color:black;
  font-weight: 600;
}
.hero-stat svg { flex-shrink: 0; color: #ffe0b2; }

.hero-right { display: none; }
@media (min-width: 1024px) {
  .hero-right { display: block; }
}

.hero-card {
  position: relative;
  padding: 32px;

}
.hero-card::before {
  content: '';
  position: absolute;
  inset: -20px;
 
  border-radius: 24px;
  filter: blur(24px);
  opacity: 0.3;
  z-index: -1;
}
.hero-card-item {
  display: flex;
  justify-content: space-between;
  padding: 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin-bottom: 16px;
  color: white;
}
.hero-card-item:last-child { margin-bottom: 0; }
.hero-card-item svg { color: #ffe0b2; flex-shrink: 0; }

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}
.hero-scroll-icon {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  position: relative;
}
.hero-scroll-icon::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
}

/* ========== MARQUEE INFINITE (Logto style) ========== */
/* ==============================
   FULL-WIDTH MARQUEE (NEKONEČNÝ)
   ============================== */


/* ========== SECTIONS ========== */
.section { padding: 80px 0; }
@media (max-width: 767px) {
  .section { padding: 48px 0; }
}
@media (max-width: 639px) {
  .section { padding: 40px 0; }
}
.section-head {
  text-align: center;
  margin-bottom: 64px;
}
@media (max-width: 767px) {
  .section-head { margin-bottom: 40px; }
}
@media (max-width: 639px) {
  .section-head { margin-bottom: 32px; }
}
.section-kicker {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(var(--primary-rgb), 0.12);
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}
.section-title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
}
@media (max-width: 639px) {
  .section-title { font-size: clamp(1.5rem, 5vw, 2rem); margin-bottom: 12px; }
  .section-desc { font-size: 1rem; }
  .section-kicker { font-size: 12px; padding: 6px 12px; }
}
.section-title-accent {
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-desc {
  margin: 0;
  font-size: 1.25rem;
  color: var(--gray-600);
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ========== FAQ ========== */
.section-faq { background: white; }
.faq-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
}
@media (min-width: 640px) {
  .faq-list { gap: 16px; }
}
@media (min-width: 768px) {
  .faq-list { grid-template-columns: repeat(2, 1fr); }
}
.faq-item {
  display: grid;
  grid-template-rows: auto 0fr;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.2s, grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item:hover { box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.4); }
.faq-item.is-open { grid-template-rows: auto 1fr; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: transparent;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  color: white;
}
@media (max-width: 639px) {
  .faq-q { padding: 16px 20px; font-size: 0.95rem; }
  .faq-a-inner { padding: 0 20px 16px 20px; }
}
.faq-plus {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.15);
  position: relative;
  transition: all 0.2s;
}
.faq-plus::before, .faq-plus::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  background: white;
  transform: translate(-50%, -50%);
}
.faq-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.is-open .faq-plus {
  background: rgba(255, 255, 255, 0.25);
  border-color: white;
}
.faq-item.is-open .faq-plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a {
  overflow: hidden;
  min-height: 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 15px;
  line-height: 1.6;
}
.faq-a-inner { padding: 0 24px 20px 24px; }

/* ========== SERVICES ========== */
.section-services {
  background: linear-gradient(180deg, var(--gray-50), white);
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) {
  .services-grid { gap: 28px; }
}
@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  padding: 32px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  border-radius: 16px;
  transition: box-shadow 0.3s, transform 0.3s;
}
@media (max-width: 639px) {
  .service-card { padding: 24px; }
  .service-card h3 { font-size: 1.25rem; }
}
.service-card:hover {
  box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.4);
  transform: translateY(-4px);
}
.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 12px;
  margin-bottom: 20px;
}
.service-icon svg { width: 28px; height: 28px; color: var(--primary); }
.service-card h3 {
  margin: 0 0 12px;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}
.service-card p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 15px;
  line-height: 1.6;
}
.service-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.service-card li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}
.service-card li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
}

/* ========== ABOUT ========== */
.section-about { background: white; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 768px) {
  .about-grid { gap: 48px; }
}
@media (min-width: 1024px) {
  .about-grid { grid-template-columns: 1.5fr 1fr; }
}

.about-image-wrap { position: relative; }
.about-image {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}
@media (min-width: 768px) {
  .about-image { aspect-ratio: 4 / 5; }
}
@media (min-width: 1024px) {
  .about-image { aspect-ratio: 1 / 1; }
}
.about-media,
.about-image img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
  object-position:-102px;
  
}
@media (min-width: 640px) {
  .about-media, .about-image img { min-height: 380px; }
}
@media (min-width: 768px) {
  .about-media, .about-image img { min-height: 480px; }
}
@media (min-width: 1024px) {
  .about-media, .about-image img { min-height: 520px; }
}
.about-image video.about-media {
  position: absolute;
  inset: 0;
}
.about-float-card {
  position: absolute;
  bottom: 100px;
  right: -32px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 639px) {
  .about-float-card { bottom: -16px; right: 12px; left: 12px; padding: 16px; gap: 12px; }
  .about-float-title { font-size: 1.125rem; }
  .about-float-desc { font-size: 13px; }
  .about-float-icon { width: 40px; height: 40px; }
  .about-float-icon svg { width: 20px; height: 20px; }
}
.about-float-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  flex-shrink: 0;
}
.about-float-icon svg { width: 24px; height: 24px; color: white; }
.about-float-title { font-size: 1.5rem; font-weight: 700; }
.about-float-desc { font-size: 14px; color: var(--gray-600); }

.about-content .section-kicker { margin-bottom: 16px; }
.about-content .section-title { text-align: left; margin-bottom: 24px; }
.about-content p {
  margin: 0 0 16px;
  font-size: 1.125rem;
  color: var(--gray-600);
  line-height: 1.7;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 32px 0;
}
@media (max-width: 639px) {
  .about-stats { gap: 12px; margin: 24px 0; }
  .about-stat { padding: 16px; }
  .about-stat-value { font-size: 1.5rem; }
  .about-content p { font-size: 1rem; }
}
.about-stat {
  padding: 24px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08), rgba(var(--primary-rgb), 0.04));
  border-radius: 12px;
}
.about-stat-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary-dark);
  margin-bottom: 4px;
}
.about-stat-label { font-size: 14px; color: var(--gray-600); }

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.about-badges span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--gray-700);
}
.about-badges i {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

/* ========== PROJECTS (Slider) ========== */
/* ========== PROJECTS (Slider) – px-based jako marquee, pomalejší ========== */

.section-projects {
  background: linear-gradient(180deg, white, var(--gray-50));
}

.projects-slider {
  overflow: hidden;
  width: 100%;
}

.projects-slider-inner {
  overflow: hidden;
}

/* Track stojí, dokud slider nedostane .is-ready (JS dopočítá šířku a rychlost) */
.projects-slider-track {
  display: flex;
  gap: 24px;
  width: max-content;
  padding: 24px 16px;
  will-change: transform;

  animation: projects-scroll var(--projects-dur, 90s) linear infinite;
  animation-play-state: paused;
}

/* Rozjetí až po initu */
.projects-slider.is-ready .projects-slider-track {
  animation-play-state: running;
}

/* Pause na hover / drag / focus (zůstává kompatibilní s tvým JS) */
.projects-slider.is-paused .projects-slider-track {
  animation-play-state: paused;
}

/* Px animace: start a shift nastaví JS přes CSS proměnné */
@keyframes projects-scroll {
  from { transform: translate3d(var(--projects-start, 0px), 0, 0); }
  to   { transform: translate3d(calc(var(--projects-start, 0px) - var(--projects-shift, 0px)), 0, 0); }
}

@media (min-width: 640px) {
  .projects-slider-track { padding: 36px 24px; }
}
@media (min-width: 768px) {
  .projects-slider-track { padding: 50px; }
}

.projects-slider-track .project-card {
  flex: 0 0 280px;
  min-width: 280px;
}
@media (min-width: 480px) {
  .projects-slider-track .project-card { flex: 0 0 300px; min-width: 300px; }
}
@media (min-width: 768px) {
  .projects-slider-track .project-card { flex: 0 0 360px; min-width: 360px; }
}

/* Card */
.project-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s, transform 0.3s;
}
.project-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.project-image {
  position: relative;
  height: 256px;
  overflow: hidden;
}
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.project-card:hover .project-image img { transform: scale(1.08); }

.project-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.6) 100%);
}

.project-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.9);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  border-radius: 9999px;
}

.project-body { padding: 24px; }
@media (max-width: 639px) {
  .project-body { padding: 20px; }
  .project-image { height: 200px; }
}

.project-body h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 700;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 12px;
}

.project-body p {
  margin: 0 0 16px;
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.6;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.project-tags span {
  padding: 6px 12px;
  font-size: 12px;
  border: 1px solid var(--gray-200);
  border-radius: 9999px;
  color: var(--gray-700);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--primary);
  transition: color 0.2s;
}
.project-link:hover { color: var(--primary-dark); }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .projects-slider-track{ animation: none; transform: none !important; }
}
/* ========== CONTACT ========== */
.section-contact {
  background: linear-gradient(180deg, var(--gray-50), white);
}
.contact-tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) {
  .contact-tiles { grid-template-columns: repeat(2, 1fr); }
}

.contact-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s;
}
@media (max-width: 639px) {
  .contact-card { padding: 20px; flex-direction: column; align-items: flex-start; }
  .contact-card-icon { width: 44px; height: 44px; }
  .contact-card a { font-size: 1rem; }
}
.contact-card:hover { box-shadow: var(--shadow-lg); }
.contact-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 12px;
  flex-shrink: 0;
}
.contact-card-icon svg { width: 24px; height: 24px; color: white; }
.contact-card-label {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 4px;
}
.contact-card a {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s;
}
.contact-card a:hover { color: var(--primary); }

.contact-card-accent {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
}
.contact-card-accent .contact-card-icon {
  background: rgba(255, 255, 255, 0.2);
}
.contact-card-accent .contact-card-icon svg { color: white; }
.contact-card-accent .contact-card-label { color: rgba(255, 255, 255, 0.9); }
.contact-card-accent h3 { margin: 0 0 8px; font-size: 1.25rem; }
.contact-card-accent p { margin: 0 0 16px; font-size: 14px; color: rgba(255,255,255,0.9); }
.contact-card-accent a { color: white; }
.contact-card-accent .contact-card-accent-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-card-accent .btn-outline {
  align-self: flex-start;
  margin-top: 4px;
}


/* ========== FOOTER ========== */
.footer {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 48px 0 24px;
}
@media (max-width: 767px) {
  .footer { padding: 40px 0 24px; }
}
@media (max-width: 639px) {
  .footer { padding: 32px 0 20px; }
  .footer-grid { gap: 28px; margin-bottom: 28px; }
  .footer-brand p { font-size: 14px; }
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
}
.footer-logo:hover { color: white; opacity: 0.95; }
.footer-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.footer-logo-icon svg { width: 20px; height: 20px; color: white; }
.footer-logo-text { color: white; }
.footer-brand p {
  margin: 0 0 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 280px;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  color: white;
  transition: background 0.2s, color 0.2s;
}
.footer-social a:hover {
  background: rgba(255, 255, 255, 0.35);
  color: white;
}

.footer-col h4 {
  margin: 0 0 16px;
  font-size: 1rem;
  color: white;
  font-weight: 700;
}
.footer-col a,
.footer-col span {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s;
}
.footer-col a:hover { color: white; }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer-bottom p { margin: 0; font-size: 14px; color: rgba(255, 255, 255, 0.9); }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s;
}
.footer-links a:hover { color: white; }

/* ========== COOKIE BANNER & MODAL ========== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 24px;
  background: rgba(29, 29, 31, 0.97);
  backdrop-filter: blur(12px);
  color: white;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}
@media (max-width: 639px) {
  .cookie-banner { padding: 16px; }
  .cookie-banner-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-banner-actions { justify-content: center; }
}
.cookie-banner--hidden { transform: translateY(100%); }
.cookie-banner-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-banner-text { margin: 0; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,0.9); }
.cookie-banner-text a { color: var(--primary-light); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 10px; }
body.cookie-modal-open { overflow: hidden; }
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
@media (max-width: 639px) {
  .cookie-modal-box { max-height: 85vh; }
  .cookie-modal-head, .cookie-modal-body, .cookie-modal-foot { padding: 16px; }
}
.cookie-modal--open { opacity: 1; visibility: visible; }
.cookie-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  cursor: pointer;
}
.cookie-modal-box {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow: auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.2);
  border: 1px solid var(--gray-200);
}
.cookie-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-200);
}
.cookie-modal-title { margin: 0; font-size: 20px; font-weight: 800; }
.cookie-modal-close {
  width: 40px; height: 40px;
  border: none; background: transparent;
  border-radius: 12px;
  cursor: pointer;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal-close:hover { background: var(--gray-100); color: var(--text); }
.cookie-modal-body { padding: 24px; }
.cookie-modal-desc { margin: 0 0 20px; font-size: 14px; color: var(--gray-600); line-height: 1.5; }
.cookie-toggle { margin-bottom: 14px; }
.cookie-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
}
.cookie-toggle-label { font-size: 14px; font-weight: 600; color: var(--text); }
.cookie-toggle-input { position: absolute; opacity: 0; width: 0; height: 0; }
.cookie-toggle-slider {
  flex-shrink: 0;
  width: 44px;
  height: 24px;
  background: var(--gray-200);
  border-radius: 999px;
  position: relative;
  transition: background 0.2s;
}
.cookie-toggle-slider::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 2px;
  top: 2px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}
.cookie-toggle-input:checked + .cookie-toggle-slider { background: var(--primary); }
.cookie-toggle-input:checked + .cookie-toggle-slider::after { transform: translateX(20px); }
.cookie-modal-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
}
.cookie-modal-foot .btn:not(.primary) {
  background: transparent;
  border: 2px solid var(--gray-200);
  color: var(--text);
}
.cookie-modal-foot .btn:not(.primary):hover { background: rgba(0,0,0,0.04); }
.cookie-modal-foot .btn.primary {
  background: var(--primary);
  color: white;
  border-color: transparent;
}
.cookie-modal-foot .btn.primary:hover { background: var(--primary-dark); }
/*TYPEWRITE*/

.hk-caret{
  display:inline-block;
  width:0;                 
  margin-left:3px;
  border-left:2px solid currentColor; 
  height:1em;
  transform: translateY(0.05em);
  animation: hkBlink 1s steps(1) infinite;
}
@keyframes hkBlink{ 50%{ opacity:0; } }

/* volitelně: aby text neskákal výškou */
.hero-kicker{ min-height: 1.2em; }

/* ============================================================
   MARQUEE – text pruh + logo pruh (reverse), px-based loop
   ============================================================ */

/* Varianta pro loga */
.marquee-inf--logos{
  padding: 14px 0;
  background: #fff;
}

/* Logo “chip” */
.marquee-logo{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 44px;
  padding: 0 10px;
  border-radius: 10px;
  text-decoration: none;
  opacity: .9;
  transition: opacity .2s ease;
  flex-shrink:0;
}
.marquee-logo:hover{ opacity: 1; }

/* Logo obrázek */
.marquee-logo img{
  height: 44px;        /* řídí výšku loga */
  width: auto;
  max-width: 160px;    /* aby to nepřerostlo */
  object-fit: contain;
  display:block;
  filter: grayscale(100%);
  opacity: .9;
}
.marquee-logo:hover img{
  filter: grayscale(0%);
  opacity: 1;
}

/* Wrapper: full-bleed 100vw bez horizontálního scrollu */
.marquee-inf-wrap{
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: clip;
}
@supports not (overflow: clip){
  .marquee-inf-wrap{ overflow: hidden; }
}

/* Pruh */
.marquee-inf{
  width: 100%;
  padding: 18px 0;
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  position: relative;
}

/* Viewport: overflow hidden + zarovnání jako .container */
.marquee-inf__viewport{
  overflow: hidden;

  /* zarovnání stejně jako .container (max 1280 + paddingy) */
  padding-left: max(24px, calc((100vw - var(--max-w)) / 2));
  padding-right: max(24px, calc((100vw - var(--max-w)) / 2));

  /* jemný fade na okrajích */
  -webkit-mask-image: linear-gradient(to right,
    transparent 0%,
    #000 14%,
    #000 86%,
    transparent 100%
  );
  mask-image: linear-gradient(to right,
    transparent 0%,
    #000 14%,
    #000 86%,
    transparent 100%
  );
}

@media (max-width: 639px){
  .marquee-inf__viewport{
    padding-left: max(16px, calc((100vw - var(--max-w)) / 2));
    padding-right: max(16px, calc((100vw - var(--max-w)) / 2));
  }
}

/* Track: flex + px-based animace, start až po .is-ready */
.marquee-inf-wrap .marquee-inf__track{
  display: flex;
  width: max-content;
  will-change: transform;

  animation: marquee-scroll var(--marquee-dur, 45s) linear infinite;
  animation-play-state: paused; /* stojí, než JS nastaví proměnné a přidá .is-ready */
}

/* Reverse track používá opačnou keyframes */
.marquee-inf-wrap .marquee-inf__track.marquee-inf__track--reverse{
  animation-name: marquee-scroll-rev;
}

.marquee-inf-wrap.is-ready .marquee-inf__track{
  animation-play-state: running;
}

/* Pause on hover */
.marquee-inf__track:hover{
  animation-play-state: paused;
}

/* řádky (tile) */
.marquee-inf__row{
  display:flex;
  align-items:center;
  gap: var(--gap, 44px);
  padding-right: var(--gap, 44px);
  flex-shrink:0;
}

/* px-based loop dopředu */
@keyframes marquee-scroll{
  from { transform: translate3d(var(--marquee-start, 0px), 0, 0); }
  to   { transform: translate3d(calc(var(--marquee-start, 0px) - var(--marquee-shift, 0px)), 0, 0); }
}

/* px-based loop dozadu */
@keyframes marquee-scroll-rev{
  from { transform: translate3d(var(--marquee-start, 0px), 0, 0); }
  to   { transform: translate3d(calc(var(--marquee-start, 0px) + var(--marquee-shift, 0px)), 0, 0); }
}

/* Položka (text pruh) */
.marquee-inf__item{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;

  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
}

/* Ikona */
.marquee-inf__item svg{
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--primary);
}

/* Responzivní doladění */
@media (max-width: 768px){
  .marquee-inf{ padding: 14px 0; }
  .marquee-inf__row{ gap: 28px; padding-right: 28px; }
  .marquee-inf__item{ font-size: 14px; }

  .marquee-logo{ height: 34px; }
  .marquee-logo img{ height: 34px; max-width: 130px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .marquee-inf-wrap .marquee-inf__track{ animation: none; transform: none !important; }
}

/* ===================== PROMO MODAL ===================== */
.promo-trigger{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 9999px;
  border: 1px solid var(--gray-200);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  font-weight: 700;
  cursor: pointer;
}

.promo-modal{
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
}

.promo-modal.is-open{
  display: block;
}

.promo-modal__overlay{
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.62);
}

.promo-modal__dialog{
  position: relative;
  width: min(980px, calc(100% - 32px));
  margin: 20vh auto;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  transform: translateY(8px);
  opacity: 0;
  animation: promoIn .22s ease forwards;
}

@keyframes promoIn{
  to { transform: translateY(0); opacity: 1; }
}

.promo-modal__close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.promo-modal__close svg{
  width: 18px;
  height: 18px;
}

.promo-modal__grid{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  min-height: 420px;
}

.promo-modal__left{
  padding: 34px 34px 28px;
}

.promo-modal__right{
  position: relative;
  
  overflow: visible; /* důležité pro přesah obrázku */
}

/* Badge */
.promo-badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 9999px;
  background: rgba(255, 122, 0, .12);
  color: var(--primary-dark, #b34700);
  font-weight: 800;
  font-size: 13px;
}

/* Typography */
.promo-title{
  margin: 14px 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.promo-accent{
  color: var(--primary);
}

.promo-desc{
  margin: 0 0 18px;
  color: var(--gray-700);
  font-size: 16px;
  line-height: 1.65;
  width:400px;
}

/* CTAs */
.promo-ctas{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.promo-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
}

.btn.btn-ghost{
  background: transparent;
  border: 1px solid var(--gray-200);
  color: var(--text);
}

.btn.btn-ghost:hover{
  background: rgba(2,6,23,.04);
}

.promo-footnote{
  margin: 14px 0 0;
  color: var(--gray-500);
  font-size: 13px;
  line-height: 1.4;
}

/* Right side – "blob" + image that sticks out */
.promo-blob{
  position: absolute;
  inset: 18px 18px 18px 18px;
  border-radius: 18px;
  
}

.promo-image{
  position: absolute;
  right: -34px;      /* přesah ven */
  bottom: -20px;     /* přesah ven */
  width: min(420px, 95%);
  height: auto;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,.18));
  transform: rotate(-2deg);
  pointer-events: none;
}

/* Responsive */
@media (max-width: 860px){
  .promo-modal__grid{
    grid-template-columns: 1fr;
    min-height: unset;
  }

  .promo-modal__right{
    min-height: 390px;
  }
  .hero-right{
    display: block;
  }
  .promo-desc{
    width:100%;
  }
  .promo-modal__dialog{
    margin: 6vh auto;
  }
  .promo-image{
    right: 50%;
    transform: translateX(50%) rotate(-2deg);
    bottom: -18px;
    width: min(380px, 100%);
  }
}

/* Prevent body scroll when modal open */
body.is-modal-open{
  overflow: hidden;
}
