@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --xm-orange: #FF6900;
  --xm-orange-light: #FFF0E6;
  --xm-dark: #111111;
  --xm-gray: #F5F5F5;
  --xm-gray-2: #E8E8E8;
  --xm-text-muted: #888888;
  --xm-white: #FFFFFF;
  --xm-radius: 14px;
  --xm-radius-sm: 8px;
  --xm-font: 'Inter', sans-serif;
  --xm-font-display: 'Outfit', sans-serif;
}

/* ─── SCROLL-SNAP POTLAČENÍ ── */
html, body {
  scroll-snap-type: none !important;
  overflow-anchor: none !important;
}
#xm-root,
#xm-root *,
.xm-homepage,
.xm-homepage * {
  scroll-snap-align: none !important;
  scroll-snap-stop: normal !important;
}

/* ZAOBlení + plná šířka bez mezer */
#xm-root {
  width: 100% !important;
  max-width: 100% !important;
  margin: 14px 0 0 0 !important;
  padding: 0 !important;
  border-radius: 18px;
  overflow: hidden;
}

.xm-homepage {
  font-family: var(--xm-font);
  color: var(--xm-dark);
  background: transparent;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── ANIMATIONS ─────────────────────────────────────── */
@keyframes xmFadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes xmFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes xmSlideInLeft {
  from { opacity: 0; transform: translateX(-32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes xmSlideInRight {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes xmScaleIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes xmBadgePop {
  0%   { opacity: 0; transform: scale(0.7); }
  70%  { transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}

/* Scroll-reveal base state */
.xm-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  will-change: opacity, transform;
}
.xm-reveal.xm-visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}
.xm-reveal-left {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  will-change: opacity, transform;
}
.xm-reveal-left.xm-visible {
  opacity: 1;
  transform: translateX(0);
  will-change: auto;
}
.xm-reveal-right {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  will-change: opacity, transform;
}
.xm-reveal-right.xm-visible {
  opacity: 1;
  transform: translateX(0);
  will-change: auto;
}

/* Stagger delays */
.xm-delay-1 { transition-delay: 0.08s; }
.xm-delay-2 { transition-delay: 0.16s; }
.xm-delay-3 { transition-delay: 0.24s; }
.xm-delay-4 { transition-delay: 0.32s; }
.xm-delay-5 { transition-delay: 0.40s; }
.xm-delay-6 { transition-delay: 0.48s; }

/* ─── HERO ─────────────────────────────────────────── */
.xm-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 540px;
  background: #0F0F0F;
  position: relative;
  overflow: hidden;
}
.xm-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 24px;
  z-index: 2;
}
.xm-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--xm-orange);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  width: fit-content;
  margin-bottom: 20px;
  animation: xmBadgePop 0.6s ease 0.2s both;
}
.xm-hero-title {
  font-family: var(--xm-font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  animation: xmFadeInUp 0.65s ease 0.35s both;
}
.xm-hero-title span { color: var(--xm-orange); }

.xm-hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  max-width: 360px;
  margin-bottom: 36px;
  font-weight: 300;
  animation: xmFadeInUp 0.65s ease 0.5s both;
}
.xm-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: xmFadeInUp 0.65s ease 0.62s both;
}

/* Carousel text fade */
.xm-hero-slide-text {
  position: absolute;
  bottom: 90px;
  left: 56px;
  z-index: 3;
  pointer-events: none;
}
.xm-hero-slide-name {
  font-family: var(--xm-font-display);
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s, transform 0.4s;
}
.xm-hero-slide-name.active {
  opacity: 1;
  transform: translateY(0);
}

.xm-btn-primary {
  background: var(--xm-orange);
  color: #fff;
  border: none;
  padding: 13px 28px;
  border-radius: var(--xm-radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--xm-font);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, transform 0.15s;
}
.xm-btn-primary:hover { background: #e05e00; transform: translateY(-1px); }
.xm-btn-secondary {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 13px 28px;
  border-radius: var(--xm-radius-sm);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--xm-font);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, border-color 0.2s;
}
.xm-btn-secondary:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.3); }

/* ─── CAROUSEL ──────────────────────────────────────── */
.xm-hero-visual {
  position: relative;
  background-color: #1a1a1a;
  overflow: hidden;
}
.xm-hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #0F0F0F 0%, transparent 40%);
  z-index: 2;
  pointer-events: none;
}

.xm-carousel-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
  transform: scale(1.03);
  will-change: opacity, transform;
}
.xm-carousel-slide.active { opacity: 1; transform: scale(1); }
.xm-carousel-slide.leaving { opacity: 0; transform: scale(0.98); }

.xm-carousel-dots {
  position: absolute;
  bottom: 100px;
  right: 24px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.xm-carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background 0.3s, height 0.3s, transform 0.3s;
  border: none;
  padding: 0;
}
.xm-carousel-dot.active {
  background: var(--xm-orange);
  height: 18px;
  border-radius: 3px;
}

.xm-carousel-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--xm-orange);
  width: 0%;
  z-index: 4;
  transition: width linear;
}

.xm-hero-stats {
  position: absolute;
  bottom: 32px;
  left: 32px;
  z-index: 3;
  display: flex;
  gap: 24px;
  animation: xmFadeInUp 0.65s ease 0.8s both;
}
.xm-hero-stat {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--xm-radius-sm);
  padding: 10px 16px;
  text-align: center;
}
.xm-hero-stat-num {
  font-family: var(--xm-font-display);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.xm-hero-stat-label {
  font-size: 10px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 3px;
}

/* ─── USP STRIP ──────────────────────────────────────── */
.xm-usp {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--xm-gray-2);
  background: rgba(255, 255, 255, 0.92);
}
.xm-usp-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  border-right: 1px solid var(--xm-gray-2);
  transition: background 0.2s;
}
.xm-usp-item:hover { background: var(--xm-orange-light); }
.xm-usp-item:last-child { border-right: none; }
.xm-usp-icon {
  width: 36px;
  height: 36px;
  background: var(--xm-orange-light);
  border-radius: var(--xm-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--xm-orange);
  font-size: 18px;
  flex-shrink: 0;
  transition: transform 0.3s;
}
.xm-usp-item:hover .xm-usp-icon { transform: scale(1.15) rotate(-5deg); }
.xm-usp-text strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--xm-dark);
}
.xm-usp-text span { font-size: 12px; color: var(--xm-text-muted); }

/* ─── SECTION ─────────────────────────────────────────── */
.xm-section {
  padding: 56px 24px;
  contain: layout style;
  background: rgba(255, 255, 255, 0.92);
}
.xm-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
}
.xm-section-title {
  font-family: var(--xm-font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.xm-section-title span { color: var(--xm-orange); }
.xm-section-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--xm-orange);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: gap 0.2s;
}
.xm-section-link:hover { gap: 8px; text-decoration: underline; }

/* ─── CATEGORIES ──────────────────────────────────────── */
.xm-cats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.xm-cat {
  background: var(--xm-gray);
  border-radius: var(--xm-radius);
  padding: 20px 16px;
  text-align: center;
  text-decoration: none;
  color: var(--xm-dark);
  transition: background 0.2s, transform 0.25s ease, border-color 0.2s;
  cursor: pointer;
  border: 1.5px solid transparent;
}
.xm-cat:hover {
  background: var(--xm-orange-light);
  border-color: var(--xm-orange);
  transform: translateY(-4px) scale(1.02);
}
.xm-cat-img {
  width: 64px; height: 64px; margin: 0 auto 12px;
  background-image: var(--img); background-size: cover; background-position: center;
  background-color: #e0e0e0; border-radius: var(--xm-radius-sm);
  transition: transform 0.3s ease;
}
.xm-cat:hover .xm-cat-img { transform: scale(1.1) rotate(-2deg); }
.xm-cat-name { font-size: 12px; font-weight: 600; line-height: 1.3; color: var(--xm-dark); }

/* ─── PRODUCT GRID ────────────────────────────────────── */
.xm-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.xm-product {
  background: var(--xm-white);
  border: 1.5px solid var(--xm-gray-2);
  border-radius: var(--xm-radius);
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: var(--xm-dark);
  transition: border-color 0.2s, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}
.xm-product:hover {
  border-color: var(--xm-orange);
  transform: translateY(-4px);
}
.xm-product-img {
  aspect-ratio: 1;
  background: var(--xm-gray);
  position: relative;
  overflow: hidden;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}
.xm-product:hover .xm-product-img { transform: none; }
.xm-product-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--xm-orange); color: #fff; font-size: 10px;
  font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 4px;
}
.xm-product-badge-sale { background: #E53935; }
.xm-product-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.xm-product-brand { font-size: 10px; font-weight: 600; color: var(--xm-orange); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.xm-product-name { font-size: 14px; font-weight: 500; line-height: 1.4; margin-bottom: 10px; flex: 1; }
.xm-product-price-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.xm-product-price { font-family: var(--xm-font-display); font-size: 18px; font-weight: 700; color: var(--xm-dark); }
.xm-product-price-old { font-size: 13px; color: var(--xm-text-muted); text-decoration: line-through; }
.xm-product-price-discount { font-size: 11px; font-weight: 700; color: #E53935; background: #FFF0F0; padding: 2px 6px; border-radius: 4px; }
.xm-product-btn {
  width: 100%; background: var(--xm-dark); color: #fff; border: none; padding: 10px;
  border-radius: var(--xm-radius-sm); font-size: 13px; font-weight: 600; font-family: var(--xm-font);
  cursor: pointer; transition: background 0.2s, transform 0.15s; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.xm-product-btn:hover { background: var(--xm-orange); transform: scale(1.02); }

/* ─── FEATURED ────────────────────────────────────────── */
.xm-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--xm-gray);
  border-radius: var(--xm-radius);
  overflow: hidden;
  margin: 0;
}
.xm-featured-img {
  min-height: 380px;
  background: #1a1a1a;
  position: relative;
  background-image: url('/user/documents/xiaomi/obrazek2.png');
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.xm-featured-content {
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.xm-featured-eyebrow {
  font-size: 11px; font-weight: 600; color: var(--xm-orange);
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px;
}
.xm-featured-title {
  font-family: var(--xm-font-display); font-size: 32px; font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 12px;
}
.xm-featured-sub { font-size: 14px; color: var(--xm-text-muted); line-height: 1.6; margin-bottom: 24px; }
.xm-featured-specs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px;
  margin-bottom: 28px; border-top: 1px solid var(--xm-gray-2); padding-top: 20px;
}
.xm-featured-spec-label { font-size: 11px; color: var(--xm-text-muted); margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.06em; }
.xm-featured-spec-val { font-size: 14px; font-weight: 600; }
.xm-featured-price-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.xm-featured-price { font-family: var(--xm-font-display); font-size: 30px; font-weight: 800; }
.xm-featured-price-old { font-size: 16px; color: var(--xm-text-muted); text-decoration: line-through; }
.xm-featured-actions { display: flex; gap: 12px; flex-wrap: wrap; }
/* Tlačítka u vlajkového produktu — rámeček + hover efekt */
.xm-featured-actions .xm-btn-dark,
.xm-featured-actions .xm-btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 30px; border-radius: 12px;
  font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; box-sizing: border-box;
  transition: background-color .22s ease, color .22s ease, border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}
/* Přidat do košíku — tmavé tlačítko s rámečkem, hover → oranžová + zvednutí */
.xm-featured-actions .xm-btn-dark {
  background: #111; color: #fff; border-color: #111;
}
.xm-featured-actions .xm-btn-dark:hover {
  background: var(--xm-orange); border-color: var(--xm-orange); color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -8px rgba(242,101,34,.55);
}
.xm-featured-actions .xm-btn-dark:active { transform: translateY(0); }
/* Detail — orámované tlačítko, hover → oranžový rámeček */
.xm-featured-actions .xm-btn-outline {
  background: #fff; color: #111; border-color: #d9d9d9;
}
.xm-featured-actions .xm-btn-outline:hover {
  border-color: var(--xm-orange); color: var(--xm-orange);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -10px rgba(0,0,0,.25);
}
.xm-featured-actions .xm-btn-outline:active { transform: translateY(0); }

/* ─── BANNER ROW ──────────────────────────────────────── */
.xm-banners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 0 24px 56px;
  background: rgba(255, 255, 255, 0.92);
}
.xm-banner {
  border-radius: var(--xm-radius);
  overflow: hidden;
  position: relative;
  min-height: 200px;
  background: var(--xm-gray);
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: transform 0.2s ease;
}
.xm-banner:hover { transform: scale(1.02); }
.xm-banner::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 60%);
  transition: opacity 0.3s;
}
.xm-banner:hover::before { opacity: 0.8; }
.xm-banner-content { position: relative; z-index: 1; }
.xm-banner-label { font-size: 11px; font-weight: 700; color: var(--xm-orange); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }
.xm-banner-title { font-family: var(--xm-font-display); font-size: 20px; font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 12px; }
.xm-banner-cta { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--xm-dark); font-size: 12px; font-weight: 700; padding: 7px 14px; border-radius: var(--xm-radius-sm); text-decoration: none; transition: background 0.2s, transform 0.2s; }
.xm-banner-cta:hover { background: var(--xm-orange); color: #fff; transform: translateX(3px); }

/* ─── PROMO STRIP ─────────────────────────────────────── */
.xm-promo-strip {
  background: var(--xm-orange);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.xm-promo-text { font-size: 15px; font-weight: 600; color: #fff; }
.xm-promo-text span { opacity: 0.75; font-weight: 400; margin-left: 8px; font-size: 14px; }
.xm-btn-white { background: #fff; color: var(--xm-orange); border: none; padding: 10px 22px; border-radius: var(--xm-radius-sm); font-size: 13px; font-weight: 700; font-family: var(--xm-font); cursor: pointer; text-decoration: none; white-space: nowrap; transition: opacity 0.2s, transform 0.15s; }
.xm-btn-white:hover { opacity: 0.9; transform: translateY(-1px); }

/* ─── PROČ NAKOUPIT U NÁS (WHY US) ───────────────────── */
.xm-whyus {
  padding: 48px 24px;
  background: rgba(255, 255, 255, 0.92);
}
.xm-whyus-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.xm-whyus-item {
  text-align: center;
  padding: 24px 18px;
  border: 1px solid var(--xm-gray-2);
  border-radius: var(--xm-radius);
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.xm-whyus-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.10);
  border-color: var(--xm-orange);
}
.xm-whyus-icon { font-size: 34px; line-height: 1; margin-bottom: 14px; }
.xm-whyus-title { font-family: var(--xm-font-display); font-size: 17px; font-weight: 700; color: var(--xm-dark); margin-bottom: 8px; }
.xm-whyus-desc { font-size: 13px; color: var(--xm-text-muted); line-height: 1.5; }

/* ─── GOOGLE RECENZE — CAROUSEL (ÚKOL 2) ─────────────── */
/* Tmavá sekce s oranžovými akcenty, zlaté hvězdičky, auto-scroll. */
.xm-grev {
  padding: 60px 24px 64px;
  background: #0d0d0d;
  background-image:
    radial-gradient(ellipse 600px 420px at 0% 0%, rgba(255, 102, 0, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 500px 420px at 100% 100%, rgba(255, 102, 0, 0.12) 0%, transparent 62%);
  overflow: hidden;
}
.xm-grev-head { text-align: center; margin-bottom: 40px; }
.xm-grev-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 18px;
}
.xm-grev-badge svg { display: block; }
.xm-grev-score {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-bottom: 4px;
}
.xm-grev-score-num {
  font-family: var(--xm-font-display);
  font-size: 52px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.xm-grev-score-of { font-size: 22px; font-weight: 600; color: rgba(255,255,255,0.5); }
.xm-grev-score-stars { color: #FFB400; font-size: 26px; letter-spacing: 2px; margin-left: 10px; }
.xm-grev-score-sub { font-size: 14px; color: rgba(255,255,255,0.6); }
.xm-grev-score-sub strong { color: var(--xm-orange); }

/* Viewport + posuvný track */
.xm-grev-viewport {
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}
.xm-grev-track {
  display: flex;
  gap: 20px;
  will-change: transform;
}
/* Karta recenze — desktop: 3 vedle sebe */
.xm-grev-card {
  flex: 0 0 calc((100% - 40px) / 3);
  box-sizing: border-box;
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--xm-radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.xm-grev-card:hover { border-color: var(--xm-orange); transform: translateY(-4px); }
.xm-grev-card-top { display: flex; align-items: center; gap: 12px; }
.xm-grev-avatar {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--xm-orange), #ff9248);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  font-family: var(--xm-font-display);
  display: flex;
  align-items: center;
  justify-content: center;
}
.xm-grev-id { flex: 1; min-width: 0; }
.xm-grev-author { font-weight: 700; font-size: 15px; color: #fff; }
.xm-grev-date { font-size: 12px; color: rgba(255,255,255,0.5); }
.xm-grev-glogo { flex-shrink: 0; opacity: 0.95; }
.xm-grev-glogo svg { display: block; }
.xm-grev-stars { color: #FFB400; font-size: 16px; letter-spacing: 2px; }
.xm-grev-star.is-empty { color: rgba(255,255,255,0.18); }
.xm-grev-text { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.82); margin: 0; }

/* Responzivita: tablet 2 karty, mobil 1 karta (breakpoint 768px) */
@media (max-width: 1024px) {
  .xm-grev-card { flex: 0 0 calc((100% - 20px) / 2); }
}
@media (max-width: 768px) {
  .xm-grev-card { flex: 0 0 100%; }
  .xm-grev-score-num { font-size: 44px; }
}

/* ─── GOOGLE RECENZE — souhrnná karta (reálná data 4,1 / 43) ─── */
/* Bez smyšlených recenzí — jen ověřené souhrnné hodnocení + odkaz. */
.xm-grev-box {
  max-width: 460px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--xm-radius);
  padding: 36px 32px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* Hvězdičky s částečným vyplněním — oranžové (Xiaomi Market styl) */
.xm-grev-starbar {
  position: relative;
  display: inline-block;
  font-size: 30px;
  letter-spacing: 4px;
  line-height: 1;
  margin: 8px 0 14px;
}
.xm-grev-starbar-bg { color: rgba(255, 255, 255, 0.18); }
.xm-grev-starbar-fill {
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  overflow: hidden;
  color: var(--xm-orange);
}
/* Tlačítko na Google profil */
.xm-grev-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  background: var(--xm-orange);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.xm-grev-link:hover { background: #e05a00; transform: translateY(-2px); }
.xm-grev-link svg { transition: transform 0.2s ease; }
.xm-grev-link:hover svg { transform: translateX(3px); }

@media (max-width: 768px) {
  .xm-grev-box { padding: 28px 20px; }
}

@media (max-width: 860px) {
  .xm-whyus-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .xm-whyus-grid { grid-template-columns: 1fr; }
}

/* ─── BODY / BACKGROUND (pouze homepage) ─────────────────────────────── */
body.is-homepage { background: #0a0a0a; }

body.is-homepage::before {
  content: ''; position: fixed; inset: 0; z-index: -1;
  background-image: url('/user/documents/xiaomi/obrazek14.png');
  background-size: cover; background-position: center top; background-repeat: no-repeat;
}

.xm-usp, .xm-section, .xm-banners { background: rgba(255, 255, 255, 0.92); }