:root {
  --bg-cream: #FAF7F2;
  --bg-sand: #F2ECE3;
  --bg-card: #FFFFFF;
  --text-main: #1C1B1A;
  --text-soft: #57524B;
  --brand-red: #9E1B24;
  --brand-red-dark: #7D131B;
  --border-soft: #E6DDD0;
  --shadow-soft: 0 14px 34px rgba(28, 27, 26, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-cream);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigace */
header {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 82px;
}
.logo img {
  height: 56px;
  width: auto;
  display: block;
}
nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
nav a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 0;
  position: relative;
  transition: color 0.2s;
}
nav a:hover, nav a.active {
  color: var(--brand-red);
}
nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: var(--brand-red);
  border-radius: 2px;
}
.nav-cta {
  background-color: var(--brand-red);
  color: #FFFFFF !important;
  padding: 10px 22px !important;
  border-radius: 10px;
  font-weight: 600 !important;
  transition: background-color 0.2s, transform 0.2s !important;
}
.nav-cta:hover {
  background-color: var(--brand-red-dark);
  transform: translateY(-1px);
}

/* Tlačítka */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: all 0.22s ease;
  cursor: pointer;
  border: 1.5px solid transparent;
}
.btn-red {
  background-color: var(--brand-red);
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(158, 27, 36, 0.22);
}
.btn-red:hover {
  background-color: var(--brand-red-dark);
  transform: translateY(-2px);
}
.btn-outline {
  background-color: rgba(255, 255, 255, 0.7);
  border-color: var(--text-main);
  color: var(--text-main);
}
.btn-outline:hover {
  background-color: var(--text-main);
  color: #FFFFFF;
}

/* Hero sekce */
.hero {
  position: relative;
  background: linear-gradient(90deg, #FAF7F2 0%, #F5EFE6 48%, #EFE7DC 100%);
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  min-height: 540px;
  gap: 32px;
}
.hero-content {
  padding: 64px 0;
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-size: clamp(2.6rem, 4.6vw, 3.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 8px;
}
.thread-divider {
  width: 240px;
  height: auto;
  margin: 4px 0 18px 0;
  display: block;
}
.hero-lead {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-soft);
  max-width: 440px;
  margin-bottom: 34px;
  line-height: 1.5;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-media {
  position: relative;
  height: 100%;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #F5EFE6 0%, rgba(245, 239, 230, 0) 24%);
  z-index: 1;
  pointer-events: none;
}
.hero-media img {
  width: 100%;
  height: 540px;
  object-fit: cover;
  display: block;
  border-radius: 24px 0 0 24px;
}

/* Záhlaví podstránek (Ukázky práce, GDPR) */
.page-banner {
  background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-sand) 100%);
  border-bottom: 1px solid var(--border-soft);
  padding: 56px 0 48px;
  text-align: center;
}
.page-banner h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 10px;
}
.page-banner p {
  color: var(--text-soft);
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Sekce obecně */
.section-header {
  text-align: center;
  margin-bottom: 44px;
}
.section-header h2 {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.section-header p {
  color: var(--text-soft);
  max-width: 580px;
  margin: 0 auto;
  font-size: 1.02rem;
}

/* Karty služeb */
.services-section {
  padding: 68px 0 80px;
}
.service-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.service-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(28, 27, 26, 0.09);
}
.service-card-body {
  padding: 26px 22px 26px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.service-icon {
  width: 38px;
  height: 38px;
  color: var(--brand-red);
  margin-bottom: 12px;
}
.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}
.service-card p {
  font-size: 0.91rem;
  color: var(--text-soft);
  margin-bottom: 14px;
}
.price-badge {
  display: inline-block;
  background-color: var(--bg-sand);
  border: 1px solid var(--border-soft);
  color: var(--text-main);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  line-height: 1.45;
}
.price-badge strong {
  color: var(--brand-red);
  font-weight: 700;
}
.card-arrow {
  color: var(--brand-red);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.02rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s;
}
.service-card:hover .card-arrow {
  transform: translateX(5px);
}
.service-card-img {
  position: relative;
  background-color: var(--bg-sand);
  min-height: 240px;
}
.service-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 32%);
  pointer-events: none;
}
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Jak probíhá zakázka */
.process-section {
  background-color: var(--bg-sand);
  padding: 76px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.process-step {
  background-color: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 26px 22px;
}
.step-badge {
  display: inline-block;
  background-color: rgba(158, 27, 36, 0.1);
  color: var(--brand-red);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.process-step h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}
.process-step p {
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* Galerie ukázek (ukazky.html) */
.gallery-section {
  padding: 60px 0 84px;
}
.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.filter-btn {
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-soft);
  color: var(--text-main);
  padding: 10px 20px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
}
.filter-btn.active {
  background-color: var(--brand-red);
  border-color: var(--brand-red);
  color: #FFFFFF;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.gallery-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.gallery-item.hidden {
  display: none;
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(28, 27, 26, 0.09);
}
.gallery-thumb {
  aspect-ratio: 4 / 3;
  background-color: var(--bg-sand);
  overflow: hidden;
  cursor: zoom-in;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.gallery-item:hover .gallery-thumb img {
  transform: scale(1.04);
}
.gallery-caption {
  padding: 20px 22px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.gallery-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-red);
  margin-bottom: 6px;
}
.gallery-caption h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.gallery-caption p {
  font-size: 0.88rem;
  color: var(--text-soft);
  margin-bottom: 12px;
}
.gallery-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  padding-top: 10px;
  border-top: 1px solid var(--border-soft);
}
.gallery-price span {
  color: var(--brand-red);
}

/* Lightbox (zvětšení fotky po kliknutí) */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(28, 27, 26, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
  cursor: zoom-out;
}
.lightbox.open {
  display: flex;
}
.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

/* Sekce Poptávka a Kontakt */
.contact-section {
  padding: 80px 0;
}
.contact-wrapper {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: start;
}
.contact-card, .info-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 36px;
  box-shadow: var(--shadow-soft);
}
.contact-card h3, .info-box h3 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}
.contact-card > p, .info-box > p {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin-bottom: 24px;
}
.info-row {
  padding: 14px 0;
  border-top: 1px solid var(--border-soft);
  font-size: 0.95rem;
}
.info-row span.label-small {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-soft);
  margin-bottom: 2px;
}
.info-row a {
  color: var(--brand-red);
  font-weight: 700;
  text-decoration: none;
}
.checklist {
  padding-left: 20px;
  color: var(--text-main);
  font-size: 0.95rem;
  margin-bottom: 28px;
  line-height: 1.85;
}
.gdpr-info {
  font-size: 0.82rem;
  color: var(--text-soft);
  margin-top: 16px;
}
.gdpr-info a {
  color: var(--brand-red);
  font-weight: 600;
}

/* Právní dokumenty (GDPR) */
.legal-box {
  max-width: 820px;
  margin: 56px auto 80px;
  background: var(--bg-card);
  padding: 44px;
  border-radius: 20px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}
.legal-box h1 { font-size: 1.9rem; margin-bottom: 22px; color: var(--brand-red); }
.legal-box h2 { font-size: 1.2rem; margin-top: 28px; margin-bottom: 10px; }
.legal-box p, .legal-box ul { margin-bottom: 14px; font-size: 0.95rem; color: var(--text-soft); }
.legal-box ul { padding-left: 20px; }
.legal-box a { color: var(--brand-red); font-weight: 600; }

/* Patička se všemi povinnými informacemi OSVČ */
footer {
  background-color: #1C1B1A;
  color: #DDD6CC;
  padding: 54px 0 32px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
footer h4 {
  color: #FFFFFF;
  font-size: 1rem;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
footer p {
  margin-bottom: 6px;
  color: #B8B0A4;
}
footer a {
  color: #FFFFFF;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.35);
}
footer a:hover {
  border-bottom-color: #FFFFFF;
}
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: #8E867B;
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { min-height: 320px; }
  .hero-media img { height: 340px; border-radius: 18px; }
  .hero-media::before { display: none; }
  .service-cards, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-wrapper { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  nav a:not(.nav-cta):not(.mobile-keep) { display: none; }
  .service-cards, .gallery-grid, .process-grid { grid-template-columns: 1fr; }
  .service-card { grid-template-columns: 1fr; }
  .service-card-img { height: 210px; order: -1; }
  .service-card-img::after { display: none; }
  .legal-box { padding: 28px 20px; margin: 32px 16px 56px; }
}
/* Lightbox (fotogalerie se šipkami vlevo/vpravo) */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(28, 27, 26, 0.92);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 64px;
  z-index: 1000;
  user-select: none;
}
.lightbox.open {
  display: flex;
}
.lightbox-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 85vh;
}
.lightbox img {
  max-width: 100%;
  max-height: 76vh;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}
.lightbox-caption {
  color: #FAF7F2;
  margin-top: 14px;
  text-align: center;
  font-size: 0.98rem;
}
.lightbox-counter {
  display: block;
  font-size: 0.82rem;
  color: #B8B0A4;
  margin-top: 4px;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  z-index: 1010;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--brand-red);
  border-color: var(--brand-red);
}
.lightbox-close {
  top: 20px;
  right: 24px;
  font-size: 1.7rem;
}
.lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-prev.hidden,
.lightbox-next.hidden {
  display: none;
}

@media (max-width: 640px) {
  .lightbox { padding: 16px; }
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; font-size: 1.25rem; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}
/* Stránka Ihned k odběru (skladem.html) */
.stock-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background-color: #2E6F40;
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  z-index: 2;
}
.stock-badge.last-piece {
  background-color: var(--brand-red);
}
.gallery-thumb {
  position: relative;
}
.stock-specs {
  list-style: none;
  padding: 0;
  margin: 0 0 14px 0;
  font-size: 0.84rem;
  color: var(--text-soft);
}
.stock-specs li {
  padding: 2px 0;
}
.stock-footer {
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.stock-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-red);
}
.btn-reserve {
  background-color: var(--brand-red);
  color: #FFFFFF;
  border: none;
  padding: 10px 16px;
  border-radius: 9px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
  white-space: nowrap;
}
.btn-reserve:hover {
  background-color: var(--brand-red-dark);
  transform: translateY(-1px);
}
/* Vycentrování poslední karty služeb při lichém počtu (5 karet) */
@media (min-width: 961px) {
  .service-cards .service-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 12px);
    margin: 0 auto;
    width: 100%;
  }
}
.gallery-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-inquire-card {
  color: var(--brand-red);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 0;
  font-family: inherit;
  transition: transform 0.2s;
}
.btn-inquire-card:hover {
  text-decoration: underline;
  transform: translateX(3px);
}