@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Red+Hat+Display:wght@300;400;500;600;700&display=swap');

/* =============================================
   DESIGN TOKENS
   ============================================= */
:root {
  --black:   #232323;
  --white:   #FFFFFF;
  --orange:  #ec9700;
  --purple:  #7a77b3;
  --cream:   #FAF7F2;
  --cream2:  #F3EDE3;
  --cream3:  #EDE5D8;
  --border:  rgba(35,35,35,0.09);
  --serif:   'DM Serif Display', Georgia, serif;
  --sans:    'Red Hat Display', sans-serif;
  --r-card:  28px;
  --r-pill:  99px;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--black);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* =============================================
   NAVIGATION
   ============================================= */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 44px 56px;
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-nav.scrolled { border-bottom-color: var(--border); }

.nav-logo {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--black);
  line-height: 1;
  font-style: italic;
}
.nav-logo span { color: var(--orange); font-style: normal; }

.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
  list-style: none;
}
.nav-links a {
  font-size: 16px;
  font-weight: 400;
  color: var(--black);
  opacity: .55;
  transition: opacity .2s;
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
}
.nav-links a:hover { opacity: 1; }
.nav-links a.active { opacity: 1; font-weight: 600; }

.nav-links .nav-cta {
  background: var(--black);
  color: var(--white);
  padding: 12px 28px;
  border-radius: var(--r-pill);
  opacity: 1;
  font-size: 15px;
  font-weight: 500;
  transition: background .2s;
  border: none;
}
.nav-links .nav-cta:hover { background: var(--orange); color: var(--black); }

/* Hamburger (mobile) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: all .3s;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  padding: 14px 30px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--sans);
  border: none;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-primary:hover { background: var(--orange); color: var(--black); }

.btn-promo {
  display: inline-block;
  background: var(--white);
  color: var(--purple);
  padding: 14px 30px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--sans);
  border: none;
  cursor: pointer;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.btn-promo:hover { background: var(--orange); color: var(--black); }

.btn-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--sans);
  border: none;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-tile:hover { background: var(--orange); color: var(--black); }

/* =============================================
   LAYOUT WRAPPER — obsah centrovaný, max šířka
   ============================================= */
.layout-wrap {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* =============================================
   SECTION UTILITIES
   ============================================= */
.section-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
  display: block;
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(26px, 2.8vw, 36px);
  color: var(--black);
  letter-spacing: -0.3px;
  line-height: 1.12;
  margin-bottom: 16px;
}
.section-title em { font-style: italic; }

/* Podtextový odstavec pod section-title */
.section-body {
  font-size: clamp(16px, 1.1vw, 17px);
  color: rgba(35,35,35, .62);
  line-height: 1.9;
  font-weight: 400;
  max-width: 560px;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  padding: 40px 56px 80px;
  background: var(--white);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 22px;
}
.hero-tag-line { width: 28px; height: 1.5px; background: var(--orange); border-radius: 2px; }
.hero-h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 4.5vw, 64px);
  line-height: 1.06;
  color: var(--black);
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}
.hero-h1 em { font-style: italic; color: var(--orange); }
.hero-body {
  font-size: clamp(16px, 1.2vw, 18px);
  color: rgba(35,35,35,0.58);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 440px;
  font-weight: 400;
}

/* Hero mosaic */
.hero-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 220px 150px;
  gap: 12px;
}

@media (min-width: 1080px) {
  .hero-mosaic {
    grid-template-rows: 300px 200px;
    gap: 16px;
  }
  .hero-inner {
    gap: 80px;
  }
}
.hero-tile {
  border-radius: 20px;
  background: var(--cream2);
  overflow: hidden;
  position: relative;
}
.hero-tile:first-child { grid-row: 1 / 3; border-radius: 24px; }
.hero-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.hero-tile:hover img { transform: scale(1.04); }
.hero-tile-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(255,255,255,0.92);
  border-radius: var(--r-pill);
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--black);
  backdrop-filter: blur(4px);
}

/* =============================================
   ADVANTAGES
   ============================================= */
.advantages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0 56px 72px;
  max-width: 1200px;
  margin: 0 auto;
}
.adv-item {
  background: var(--cream);
  border-radius: var(--r-card);
  padding: 28px 28px 26px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.adv-num {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--orange);
  opacity: .35;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.adv-title { font-size: 17px; font-weight: 600; color: var(--black); margin-bottom: 6px; }
.adv-body { font-size: 16px; color: rgba(35,35,35,0.55); line-height: 1.65; font-weight: 400; }

/* =============================================
   TILE CARDS (Produkty & Služby — shared)
   ============================================= */
.tiles-section {
  padding: 72px 56px;
  background: var(--white);
}
.tiles-section > .section-tag,
.tiles-section > .section-title,
.tiles-section > h2,
.tiles-section > .tile-grid {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.tile-card {
  background: var(--cream2);
  border-radius: var(--r-card);
  border: none;
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .22s, transform .22s;
}
.tile-card:hover { box-shadow: 0 10px 36px rgba(35,35,35,0.10); transform: translateY(-3px); }

.tile-img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 18px;
  background: var(--cream3);
  overflow: hidden;
  margin-bottom: 18px;
  cursor: pointer;
  position: relative;
}
.tile-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.tile-img-wrap:hover img { transform: scale(1.04); }
.tile-img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: rgba(35,35,35,0.28);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.tile-name {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
  line-height: 1.3;
}
.tile-desc {
  font-size: 16px;
  color: rgba(35,35,35,.55);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 20px;
  font-weight: 400;
}

/* =============================================
   PROMO BLOCK (fialový — sdílený)
   ============================================= */
.promo-wrap {
  padding: 0 56px 80px;
}
.promo-block {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--purple);
  border-radius: var(--r-card);
  padding: 56px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  position: relative;
  overflow: hidden;
}
.promo-block::before {
  content: '';
  position: absolute; right: -60px; top: -60px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
}
.promo-block::after {
  content: '';
  position: absolute; left: -30px; bottom: -50px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}
.promo-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
}
.promo-title {
  font-family: var(--serif);
  font-size: clamp(28px, 2.8vw, 38px);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
}
.promo-title em { font-style: italic; color: rgba(255,255,255,0.65); }
.promo-body {
  font-size: clamp(16px, 1.1vw, 17px);
  color: rgba(255,255,255,0.62);
  line-height: 1.78;
  max-width: 400px;
  font-weight: 400;
}
.promo-actions { flex-shrink: 0; text-align: center; position: relative; z-index: 1; }
.promo-sub { font-size: 13px; color: rgba(255,255,255,0.32); margin-top: 10px; font-weight: 400; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer { background: var(--white); padding: 0 56px 48px; }
.footer-inner {
  background: var(--cream2);
  border-radius: var(--r-card);
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 52px 48px 40px;
  border-bottom: 1px solid var(--border);
}
.footer-logo { font-family: var(--serif); font-size: 22px; margin-bottom: 12px; color: var(--black); font-style: italic; }
.footer-logo span { color: var(--orange); font-style: normal; }
.footer-desc { font-size: 14px; color: rgba(35,35,35,0.5); line-height: 1.8; max-width: 220px; font-weight: 400; }
.footer-col-title { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(35,35,35,0.35); margin-bottom: 16px; }
.footer-col-links { display: flex; flex-direction: column; gap: 10px; list-style: none; }
.footer-col-links a { font-size: 15px; color: rgba(35,35,35,0.6); transition: color .15s; font-weight: 400; }
.footer-col-links a:hover { color: var(--black); }
.footer-contact-label { font-size: 11px; color: rgba(35,35,35,0.35); letter-spacing: .08em; text-transform: uppercase; margin-top: 14px; margin-bottom: 4px; font-weight: 600; }
.footer-contact-val { font-size: 16px; color: var(--black); font-weight: 500; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
}
.footer-copy { font-size: 13px; color: rgba(35,35,35,0.35); font-weight: 400; }
.footer-legal { display: flex; gap: 20px; list-style: none; }
.footer-legal a { font-size: 13px; color: rgba(35,35,35,0.35); transition: color .15s; }
.footer-legal a:hover { color: var(--black); }

/* =============================================
   PAGE HEADER (inner pages)
   ============================================= */
.page-header {
  padding: 56px 56px 52px;
  background: var(--white);
}
.page-header-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.page-header-tag { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: 12px; display: block; }
.page-header-title { font-family: var(--serif); font-size: clamp(38px, 4vw, 56px); color: var(--black); letter-spacing: -0.5px; line-height: 1.08; }
.page-header-title em { font-style: italic; color: rgba(35,35,35,0.32); }

/* =============================================
   SERVICES PAGE
   ============================================= */
.services-intro {
  padding: 56px 56px 52px;
  background: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.services-intro-img {
  border-radius: var(--r-card);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--cream2);
}
.services-intro-img img { width: 100%; height: 100%; object-fit: cover; }
.services-intro-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: rgba(35,35,35,0.3);
  letter-spacing: .08em; text-transform: uppercase;
}

/* =============================================
   ABOUT PAGE
   ============================================= */
.about-wrap {
  padding: 56px;
  background: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.about-wrap .inner {
  max-width: 1200px;
  margin: 0 auto;
}
.about-img {
  border-radius: var(--r-card);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--cream2);
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-img-placeholder {
  width: 100%; height: 100%;
  min-height: 380px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: rgba(35,35,35,0.3);
  letter-spacing: .08em; text-transform: uppercase;
}
.about-body { font-size: clamp(16px, 1.1vw, 17px); color: rgba(35,35,35,.65); line-height: 1.9; margin-top: 14px; font-weight: 400; }

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-wrap {
  padding: 56px;
  background: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}
.contact-label { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(35,35,35,0.35); margin-bottom: 6px; margin-top: 28px; }
.contact-label:first-of-type { margin-top: 0; }
.contact-val { font-family: var(--serif); font-size: clamp(24px, 2.2vw, 30px); color: var(--black); }
.contact-divider { height: 1px; background: var(--border); margin: 28px 0; }
.contact-text-body { font-size: clamp(16px, 1.1vw, 17px); color: rgba(35,35,35,.62); line-height: 1.9; font-weight: 400; }

/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20,18,15,0.92);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.lightbox-overlay.active { opacity: 1; pointer-events: all; }

.lightbox-inner {
  position: relative;
  max-width: 900px;
  width: 90vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.lightbox-img-wrap {
  width: 100%;
  max-height: 70vh;
  border-radius: 20px;
  overflow: hidden;
  background: var(--cream3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
}
.lightbox-caption {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--white);
  text-align: center;
}
.lightbox-counter {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
  letter-spacing: .06em;
}
.lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  transition: color .2s;
}
.lightbox-close:hover { color: var(--white); }

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  z-index: 1001;
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.18); }

@keyframes slideUp {
  from { transform: translateX(-50%) translateY(20px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0);    opacity: 1; }
}
.cookie-text { font-size: 12px; color: rgba(255,255,255,0.65); line-height: 1.55; flex: 1; }
.cookie-text a { color: var(--orange); }
.cookie-btn {
  background: var(--orange);
  color: var(--black);
  border: none;
  border-radius: var(--r-pill);
  padding: 9px 20px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--sans);
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .2s;
}
.cookie-btn:hover { opacity: .85; }
.cookie-hide { display: none !important; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .site-nav { padding: 24px 32px; }
  .nav-logo { font-size: 26px; }
  .nav-links a { font-size: 15px; }
  .nav-links .nav-cta { font-size: 14px; padding: 11px 22px; }
  .hero { padding: 32px 32px 64px; }
  .hero-inner { gap: 40px; }
  .advantages { padding: 0 32px 56px; }
  .tiles-section { padding: 56px 32px; }
  .promo-wrap { padding: 0 32px 64px; }
  .site-footer { padding: 0 32px 40px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; }
  .about-wrap, .contact-wrap, .services-intro { padding: 40px 32px; }
  .page-header { padding: 40px 32px 36px; }
}

@media (max-width: 768px) {
  .site-nav { padding: 18px 24px; }
  .nav-logo { font-size: 24px; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); padding: 20px 24px 28px; border-bottom: 1px solid var(--border); gap: 16px; }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 16px; }
  .nav-hamburger { display: flex; }

  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-mosaic { grid-template-rows: 160px 110px; }
  .hero { padding: 24px 24px 48px; }

  .advantages { grid-template-columns: 1fr; padding: 0 24px 48px; }
  .tile-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .tiles-section { padding: 48px 24px; }

  .promo-wrap { padding: 0 24px 56px; }
  .promo-block { flex-direction: column; padding: 36px 32px; gap: 28px; }
  .promo-title { font-size: 26px; }
  .promo-body { max-width: 100%; }

  .footer-main { grid-template-columns: 1fr; padding: 36px 32px 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; padding: 16px 32px; }
  .site-footer { padding: 0 24px 32px; }

  .services-intro { grid-template-columns: 1fr; padding: 36px 24px; }
  .about-wrap { grid-template-columns: 1fr; gap: 28px; padding: 36px 24px; }
  .contact-wrap { grid-template-columns: 1fr; gap: 28px; padding: 36px 24px; }
  .page-header { padding: 36px 24px 28px; }
  .page-header-title { font-size: 32px; }
}

@media (max-width: 480px) {
  .tile-grid { grid-template-columns: 1fr; }
  .hero-mosaic { grid-template-rows: 140px 95px; gap: 8px; }
}

/* =============================================
   FACEBOOK & PARTNER LOGO (patička + kontakt)
   ============================================= */
.footer-social-fb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(35,35,35,0.55);
  transition: color .2s;
  text-decoration: none;
}
.footer-social-fb:hover { color: #1877F2; }
.footer-social-fb svg { flex-shrink: 0; }

.contact-social .footer-social-fb {
  font-size: 15px;
  color: rgba(35,35,35,0.6);
}

.footer-partner { margin-top: 20px; }
.footer-partner-link { display: inline-block; opacity: .75; transition: opacity .2s; }
.footer-partner-link:hover { opacity: 1; }
.footer-partner-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

/* =============================================
   MATFIX LIŠTA
   ============================================= */
.matfix-bar {
  width: 100%;
  background: #111110;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 56px;
  gap: 20px;
}

.matfix-tvorba-link {
  display: inline-flex;
  align-items: center;
  opacity: .5;
  transition: opacity .2s;
  text-decoration: none;
}
.matfix-tvorba-link:hover { opacity: .85; }
.matfix-tvorba-img {
  height: 14px;
  width: auto;
  display: block;
}

.matfix-logo-link {
  display: inline-flex;
  align-items: center;
  opacity: .75;
  transition: opacity .2s;
  text-decoration: none;
}
.matfix-logo-link:hover { opacity: 1; }
.matfix-logo-img {
  height: 18px;
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  .matfix-bar { padding: 11px 24px; }
}
