/* ==========================================================================
   QRLAB – základní styly šablony (převzato ze šablony QRLAB-template/styles.css)
   Barvy a rozměry upravíte v :root. Úpravy oproti originálu:
   - fotografie jsou samostatné soubory v assets/img (místo CSS výřezů),
   - šablonová karta .card → .tcard (aplikace používá .card pro panely),
   - obecné třídy .icon/.number jsou omezené na své sekce,
   - logo je SVG (assets/logo-mark.svg) místo znaku ▦.
   ========================================================================== */

:root {
  --blue: #0866ff;
  --blue-dark: #0054dc;
  --navy: #0b1736;
  --muted: #64748b;
  --pale: #eff7ff;
  --line: #e2e8f0;
  --radius: 18px;
  --max: 1240px;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 95px; }
body {
  margin: 0;
  color: var(--navy);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  background: #fff;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 3px solid #74aaff; outline-offset: 5px; }
p { color: var(--muted); line-height: 1.75; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { letter-spacing: -.045em; line-height: 1.1; }
h2 { font-size: clamp(30px, 3vw, 44px); margin-bottom: 20px; }
h3 { letter-spacing: -.025em; }
section[id] { scroll-margin-top: 90px; }

.container { width: min(var(--max), calc(100% - 80px)); margin: auto; }
.section { padding-top: 90px; padding-bottom: 90px; }

/* ---------- Hlavička ---------- */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: #ffffffed;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid #edf1f6;
}
.nav { display: flex; align-items: center; gap: 40px; height: 88px; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 25px; font-weight: 800; letter-spacing: .03em; flex-shrink: 0; color: var(--navy); line-height: 1; }
.brand small { display: block; font-size: 9px; font-weight: 600; letter-spacing: .4em; margin-top: 4px; }
.mark { color: var(--blue); width: 44px; height: 44px; display: inline-flex; flex-shrink: 0; line-height: 1; }
.mark svg, .mark img { width: 100%; height: 100%; display: block; }
.nav nav { display: flex; gap: 30px; margin: auto; font-size: 14px; font-weight: 600; }
.nav nav a { position: relative; padding: 6px 0; }
.nav nav a:hover, .nav nav a.active, .account > a:first-child:hover { color: var(--blue); }
.nav nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--blue); }
.account { display: flex; gap: 22px; align-items: center; font-size: 13px; }

/* ---------- Tlačítka ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 22px;
  padding: 17px 23px; border: 1px solid transparent;
  background: var(--blue); color: #fff;
  font-size: 14px; font-weight: 650; border-radius: 10px;
  transition: background .18s, transform .18s, border-color .18s;
  white-space: nowrap; cursor: pointer; text-decoration: none; line-height: 1.2;
}
.button:hover { background: var(--blue-dark); transform: translateY(-2px); color: #fff; }
.button.small { padding: 13px 18px; }
.button.secondary, .secondary { background: #fff; color: var(--navy); border-color: #d5e0ed; }
.button.secondary:hover, .secondary:hover { background: var(--pale); color: var(--navy); }
.button.full { width: 100%; }
.menu { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 20px rgba(11, 23, 54, 0.03);
}
.hero-bg-layer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 62%;
  background-image: url('../assets/img/hero.webp?v=20261022_ultra');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  z-index: 1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.06) 10%, rgba(0, 0, 0, 0.6) 28%, #000000 55%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.06) 10%, rgba(0, 0, 0, 0.6) 28%, #000000 55%);
}
.hero-bg-layer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #ffffff 0%, #ffffff 12%, rgba(255, 255, 255, 0.9) 30%, rgba(255, 255, 255, 0) 75%);
  pointer-events: none;
}
.hero-copy { max-width: 580px; padding: 50px 48px; position: relative; z-index: 2; }
.pill { display: inline-flex; gap: 8px; align-items: center; border-radius: 100px; background: #e4f0ff; color: var(--blue); padding: 9px 14px; font-size: 10px; letter-spacing: .09em; font-weight: 700; text-transform: uppercase; }
.pill i, .live { display: inline-block; width: 7px; height: 7px; background: #1ec993; border-radius: 50%; }
.hero h1 { font-size: clamp(34px, 4vw, 52px); margin: 0 0 20px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.hero h1 span, .blue { color: var(--blue); }
.lead { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 0 0 24px; }
.actions { display: flex; gap: 12px; margin: 0 0 22px; flex-wrap: wrap; }
.checks { display: flex; gap: 20px; font-size: 13px; font-weight: 500; color: var(--navy); flex-wrap: wrap; }
.checks span::first-letter { color: var(--blue); }
.photo { background-repeat: no-repeat; background-size: cover; background-position: center; background-color: #e9f1fb; }

/* ---------- Výhody ---------- */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); padding: 40px 0; gap: 32px; }
.benefits article { display: flex; gap: 20px; align-items: flex-start; }
.benefits article + article { border-left: 1px solid var(--line); padding-left: 32px; }
.benefits .icon { font-size: 30px; line-height: 1; color: var(--blue); width: 40px; flex-shrink: 0; }
.benefits h3 { font-size: 16px; margin: 0 0 8px; }
.benefits p { font-size: 13px; margin: 0; }

/* ---------- Řešení / karty ---------- */
.solutions { background: var(--pale); }
.section-heading { text-align: center; max-width: 800px; margin: 0 auto 42px; }
.eyebrow { display: block; color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: .16em; margin-bottom: 16px; text-transform: uppercase; }
.section-heading p { font-size: 16px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tcard { overflow: hidden; border-radius: var(--radius); background: #fff; box-shadow: 0 8px 24px #152d4c04; transition: transform .2s, box-shadow .2s; }
.tcard:hover { transform: translateY(-5px); box-shadow: 0 15px 40px #152d4c12; }
.card-photo { aspect-ratio: 1.8; }
.restaurant { background-image: url('../assets/img/restaurant.webp?v=20261022_ultra'); }
.parcel { background-image: url('../assets/img/parcel.webp?v=20261022_ultra'); }
.business { background-image: url('../assets/img/business.webp?v=20261022_ultra'); }
.tech { background-image: url('../assets/img/tech.webp?v=20261022_ultra'); }
.nfc-photo { background-image: url('../assets/img/nfc.webp?v=20261022_ultra'); }
.tcard .card-body { padding: 25px; }
.category { font-size: 9px; color: #8190a6; letter-spacing: .14em; font-weight: 700; }
.tcard h3 { font-size: 21px; margin: 12px 0; }
.tcard p { font-size: 14px; margin-bottom: 22px; }
.text-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--blue); border: 0; background: none; padding: 0; font-size: 13px; font-weight: 650; cursor: pointer; }
.text-link:hover { text-decoration: underline; }

.section-badge-center {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border-radius: 100px;
  background: #e4f0ff;
  color: var(--blue);
  padding: 9px 16px;
  font-size: 10px;
  letter-spacing: .09em;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 auto 18px;
}
.section-badge-center::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #1ec993;
  border-radius: 50%;
}
.overview-section-title { font-size: clamp(34px, 4vw, 50px) !important; font-weight: 780 !important; color: var(--navy) !important; margin-bottom: 15px !important; text-align: center; }
.overview-section-subtitle { font-size: 16px !important; color: var(--muted) !important; max-width: 760px; margin: 0 auto 35px !important; text-align: center; line-height: 1.6; }

/* ---------- Interaktivní ukázka ---------- */
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 100px; }
.scene-buttons { display: grid; gap: 12px; margin-top: 28px; }
.scene-buttons button { display: flex; align-items: center; gap: 17px; text-align: left; padding: 16px 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--navy); transition: .18s; }
.scene-buttons button.selected { border-color: var(--blue); background: #f4f8ff; box-shadow: 0 0 0 1px var(--blue); }
.scene-buttons button > span { font-size: 22px; color: var(--blue); width: 32px; text-align: center; }
.scene-buttons strong { font-size: 14px; }
.scene-buttons small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.scene-buttons b { margin-left: auto; color: var(--blue); }
.demo-note { font-size: 11px; margin: 16px 0 0; }
.demo-stage { min-height: 510px; position: relative; background: radial-gradient(ellipse at center, #dfedff, transparent 70%); display: flex; align-items: center; justify-content: flex-end; padding-right: 30px; }
.fixed-code { position: absolute; left: 0; top: 150px; width: 170px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; text-align: center; transform: rotate(-7deg); box-shadow: 0 16px 36px #0b173615; }
.mini-qr { display: block; width: 100px; height: 100px; margin: 0 auto; color: var(--navy); line-height: 1; }
.mini-qr svg { width: 100%; height: 100%; display: block; }
.fixed-code strong { display: block; font-size: 11px; margin-top: 10px; }
.fixed-code small { font-size: 10px; color: var(--muted); }
.connector { position: absolute; left: 165px; top: 215px; z-index: 3; font-size: 66px; color: var(--blue); line-height: 1; }
.phone { position: relative; width: 245px; min-height: 465px; background: #fff; border: 8px solid #101b2f; border-radius: 36px; padding: 34px 13px 25px; box-shadow: 12px 24px 45px #0b173625; transform: rotate(5deg); overflow: hidden; }
.notch { position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 85px; height: 18px; background: #101b2f; border-radius: 12px; }
.phone-url { font-size: 9px; color: var(--muted); text-align: center; padding-bottom: 18px; border-bottom: 1px solid #edf1f7; }
.phone h3 { font-size: 25px; margin: 20px 0 10px; line-height: 1.15; }
.phone p { font-size: 12px; }
.phone .phone-label { font-size: 8px; letter-spacing: .1em; color: var(--blue); display: block; margin-top: 25px; }
.phone-row { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 14px 0; font-size: 11px; gap: 10px; }
.phone-cta { background: var(--blue); color: #fff; text-align: center; border-radius: 8px; padding: 12px; margin-top: 20px; font-size: 11px; }
.phone-home { position: absolute; bottom: 9px; width: 70px; height: 4px; background: #101b2f; left: 50%; transform: translateX(-50%); border-radius: 9px; }
.demo-tag { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); background: #fff; box-shadow: 0 6px 25px #0b173610; padding: 12px 18px; border-radius: 30px; font-size: 11px; white-space: nowrap; }
.demo-tag i { margin-right: 6px; }

/* ---------- Jak to funguje ---------- */
.how { padding-top: 55px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 70px; margin-top: 50px; }
.steps article { border-top: 1px solid var(--line); padding-top: 25px; }
.steps .number { color: var(--blue); font-size: 12px; font-weight: 700; background: var(--pale); display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; margin-bottom: 20px; }
.steps h3 { font-size: 21px; margin-bottom: 10px; }
.steps p { font-size: 14px; margin-bottom: 0; }

/* ---------- Tmavý NFC blok ---------- */
.nfc { position: relative; background: #0c1d30; border-radius: 22px; overflow: hidden; min-height: 420px; color: #fff; display: flex; align-items: center; }
.nfc-bg-layer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 65%;
  background-image: url('../assets/img/nfc.webp?v=20261022_ultra');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  z-index: 1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.1) 8%, rgba(0, 0, 0, 0.65) 28%, #000000 55%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.1) 8%, rgba(0, 0, 0, 0.65) 28%, #000000 55%);
}
.nfc-bg-layer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #0c1d30 0%, #0c1d30 15%, rgba(12, 29, 48, 0.85) 35%, rgba(12, 29, 48, 0) 75%);
  pointer-events: none;
}
.nfc-copy { padding: 55px 48px; position: relative; z-index: 2; max-width: 520px; }
.pill.dark { color: #bfcee3; background: transparent; border: 1px solid #ffffff30; margin-bottom: 22px; }
.nfc h2 { font-size: 42px; margin-bottom: 18px; color: #fff; }
.nfc p { font-size: 14px; color: #c2cedd; margin-bottom: 26px; }
.nfc small { display: block; font-size: 10px; color: #91a5bc; margin-top: 17px; }

/* ---------- Výzva k akci & patička ---------- */
.cta { background: var(--pale); border: 1px solid #e8f1fe; padding: 45px 50px; border-radius: 20px; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.cta h2 { font-size: 34px; margin-bottom: 12px; }
.cta p { font-size: 14px; margin-bottom: 0; }
.site-footer { margin-top: 30px; }
.footer-main { display: flex; align-items: center; gap: 35px; padding: 5px 0 35px; font-size: 12px; flex-wrap: wrap; }
.footer-main p { margin: 0 auto 0 0; font-size: 13px; }
.footer-main a:hover, .footer-bottom a:hover { color: var(--blue); }
.footer-bottom { padding: 22px 0; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); font-size: 10px; color: var(--muted); flex-wrap: wrap; }

/* ---------- Responzivita ---------- */
@media (max-width: 1100px) {
  .container { width: calc(100% - 48px); }
  .nav { gap: 20px; }
  .nav nav { gap: 18px; }
  .account > a:first-child { display: none; }
  .hero-grid { min-height: 540px; }
  .hero-bg-layer { width: 58%; }
  .hero-copy { max-width: 500px; }
  .hero h1 { font-size: 47px; }
  .demo-grid { gap: 40px; }
  .fixed-code { left: -5px; width: 140px; }
  .connector { left: 120px; }
  .demo-stage { padding-right: 0; }
  .nfc-bg-layer { width: 60%; }
  .nfc-copy { padding: 40px 32px; }
  .nfc h2 { font-size: 35px; }
  .footer-main { gap: 20px; }
}

/* Base styles for site navigation & backdrop */
.nav-links { display: contents; }
.mobile-nav-actions { display: none; }
.site-nav-backdrop { display: none; }

@media (max-width: 992px) {
  .site-header .nav nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(11, 23, 54, 0.16);
    padding: 16px 20px 22px;
    z-index: 1001;
  }
  .site-header .nav nav.open {
    display: grid;
    gap: 8px;
    animation: siteMenuSlide 0.22s ease-out forwards;
  }
  .site-header .nav nav .nav-links {
    display: grid;
    gap: 4px;
  }
  .site-header .nav nav a {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 650;
    color: var(--navy);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
  }
  .site-header .nav nav a:hover,
  .site-header .nav nav a.active {
    background: var(--pale);
    color: var(--blue);
  }
  .site-header .nav nav a.active::after {
    display: none;
  }
  .site-header .mobile-nav-actions {
    display: grid;
    gap: 10px;
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
  }
  .site-header .mobile-nav-login {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border-radius: 10px;
    border: 1px solid #d5e0ed;
    background: #ffffff;
    color: var(--navy);
    font-weight: 650;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
  }
  .site-header .mobile-nav-login:hover {
    background: var(--pale);
    border-color: var(--blue);
    color: var(--blue);
  }
  .site-header .account > a:first-child {
    display: none;
  }
  .site-header .menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: var(--pale);
    width: 42px;
    height: 42px;
    color: var(--navy);
    border-radius: 9px;
    font-size: 19px;
    cursor: pointer;
    line-height: 1;
    order: 3;
    transition: background 0.15s, color 0.15s;
  }
  .site-header .menu.is-active {
    background: #e1edfc;
    color: var(--blue);
  }
  .site-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    top: 72px;
    background: rgba(11, 23, 54, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }
  .site-nav-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }
}

@keyframes siteMenuSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767px) {
  html { scroll-padding-top: 75px; }
  .container { width: calc(100% - 36px); }
  .section { padding: 55px 0; }
  .nav { height: 72px; justify-content: space-between; gap: 12px; }
  .brand { font-size: 22px; }
  .mark { width: 37px; height: 37px; }
  .account { margin-left: auto; gap: 10px; }
  .account .button { font-size: 11px; padding: 11px 13px; gap: 8px; }
  .menu { display: inline-flex; align-items: center; justify-content: center; border: 0; background: var(--pale); padding: 8px 11px; color: var(--navy); border-radius: 8px; font-size: 20px; order: 3; line-height: 1; }
  .nav nav { display: none; position: absolute; top: 72px; left: 0; right: 0; padding: 22px; background: #fff; border-bottom: 1px solid var(--line); }
  .nav nav.open { display: grid; gap: 22px; }
  .hero { min-height: auto; display: block !important; }
  .hero-copy { padding: 35px 25px 20px; }
  .hero-bg-layer {
    position: relative;
    width: 100%;
    height: 240px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000000 25%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000000 25%);
  }
  .hero-bg-layer::before { display: none; }
  .hero h1 { font-size: clamp(38px, 9.5vw, 58px); margin-top: 23px; }
  .desktop { display: none; }
  .lead { font-size: 15px; }
  .hero .lead br { display: none; }
  .actions { margin-top: 25px; gap: 10px; }
  .actions .button { font-size: 12px; padding: 15px 16px; gap: 12px; }
  .checks { font-size: 10px; gap: 16px; }
  .benefits { grid-template-columns: 1fr; padding: 26px 0; gap: 22px; }
  .benefits article + article { padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .benefits p br { display: none; }
  .benefits h3 { font-size: 15px; }
  .cards { grid-template-columns: 1fr; gap: 22px; }
  .tcard .card-body { padding: 24px; }
  .section-heading { margin-bottom: 30px; }
  .section-heading h2 { font-size: 32px; }
  .section-heading p { font-size: 14px; }
  .demo-grid { grid-template-columns: 1fr; gap: 32px; }
  .demo-stage { min-height: 500px; max-width: 390px; width: 100%; margin: auto; padding-right: 10px; }
  .fixed-code { left: 0; top: 145px; width: 135px; }
  .mini-qr { width: 80px; height: 80px; }
  .connector { left: 119px; top: 210px; font-size: 49px; }
  .phone { width: 220px; min-height: 440px; }
  .steps { grid-template-columns: 1fr; gap: 26px; margin-top: 20px; }
  .steps article { position: relative; padding: 24px 0 0 62px; }
  .steps .number { position: absolute; left: 0; top: 24px; }
  .steps h3 { font-size: 20px; }
  .nfc { min-height: auto; display: block; }
  .nfc-copy { padding: 35px 27px 20px; }
  .nfc h2 { font-size: 35px; }
  .nfc-bg-layer {
    position: relative;
    width: 100%;
    height: 260px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000000 25%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000000 25%);
  }
  .nfc-bg-layer::before { display: none; }
  .cta { padding: 30px 25px; display: block; }
  .cta h2 { font-size: 29px; }
  .cta .button { margin-top: 25px; }
  .footer-main { gap: 20px; padding-bottom: 28px; }
  .footer-main p { margin: 0; width: 100%; }
  .footer-bottom { gap: 15px; line-height: 1.7; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
