/* Responsive and interaction refinements to the original MARQIO design.
   The approved typography, gradients, video hero and animated brand remain in styles.css. */
:root {
  --content-width: 1200px;
  --wide-width: 1480px;
  --gutter: clamp(20px, 3vw, 40px);
  --text-faint: #9c948a;
  color-scheme: dark;
}
html { scroll-behavior: smooth; scroll-padding-top: 105px; }
body { line-height: 1.5; }
button, input, textarea, select { font: inherit; }
button { touch-action: manipulation; }
img, video { max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 5px; }
input:focus-visible, textarea:focus-visible { outline-offset: 2px; }
main:focus { outline: none; }
.page { overflow: clip; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 12px 20px; border-radius: 10px; background: var(--text); color: var(--bg); }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.section, .clients, .cs-shot, .cs-kpis, .cs-gallery, .simple-cta {
  width: min(calc(100% - var(--gutter) * 2), var(--content-width));
  max-width: none; padding-inline: 0; margin-inline: auto;
}
.section-title, .page-title, .cta-title { line-height: 1.2; }
.page-title { overflow-wrap: anywhere; }
.tag-dot { flex-shrink: 0; }
.btn { min-height: 44px; line-height: 1.4; transition: transform .25s, box-shadow .25s, border-color .25s; }
.btn-lg { min-height: 56px; }
.btn-primary:hover { box-shadow: 0 8px 34px #ff5a1f30; }
.lang-toggle, .nav-burger { min-width: 44px; min-height: 44px; }
.nav-inner { max-width: 1320px; }
.nav-links { gap: clamp(22px, 2.3vw, 34px); }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; }
.nav-links a::before { left: -14px; }
.nav-actions { gap: 10px; }
.nav .logo { flex-shrink: 0; }
.nav-contact, .nav-contact a { min-height: 42px; }
.nav-mobile { top: 88px; max-height: calc(100dvh - 108px); overflow-y: auto; }
.nav-mobile a { min-height: 44px; }

/* The original centered headline and inline video, followed by a cinematic showreel. */
.hero { padding: clamp(72px, 7.5vw, 110px) var(--gutter) 24px; }
.hero-inner { max-width: 930px; }
.hero-title { font-size: clamp(38px, 5.6vw, 78px); line-height: 1.12; }
.hero-sub { line-height: 1.7; }
.hero-reassurance { margin: -10px 0 0; color: var(--text-dim); display: flex; align-items: center; gap: 8px; font-size: 12px; }
.hero-check { color: var(--orange); }
.showreel { width: min(calc(100% - 48px), var(--wide-width)); padding: 40px 0 0; margin: 0 auto; }
.showreel-panel { height: auto; aspect-ratio: 16 / 9; box-shadow: 0 35px 100px #0005, 0 0 65px #ff5a1f09; }
.showreel-panel > video { object-fit: cover; }
.showreel-grade { pointer-events: none; }
.showreel-label { bottom: 30px; font-size: 11px; }
.video-toggle { position: absolute; top: 22px; right: 22px; z-index: 2; min-width: 44px; min-height: 40px; border: 1px solid #ffffff33; border-radius: 999px; background: #0d0b09b3; backdrop-filter: blur(12px); color: var(--text); padding: 9px 15px; font: 11px var(--font-mono); cursor: pointer; }
.video-toggle:hover { border-color: var(--orange); }
.hero-stats { flex-wrap: nowrap; }
.stat-card { min-width: 240px; }
.stat-top { gap: 12px; }
.stat-value { white-space: nowrap; }
.stat-card-light .stat-label { color: #5f584f; }
.marquee { max-width: var(--wide-width); margin-inline: auto; }
.clients-row { gap: 18px 30px; }
.client-mark { font-size: 14px; min-height: 32px; }
.impact-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.impact-tile { padding: 28px 24px; }
.impact-value { font-size: clamp(25px, 2.7vw, 37px); line-height: 1.2; }
.impact-label, .impact-src { line-height: 1.6; }
.impact-src { margin-top: auto; }
.impact-src a { text-decoration: underline; text-underline-offset: 3px; }
.benefit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.benefit-card { min-width: 0; }
.service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-text h3 { line-height: 1.4; }
.service-card .card-text { flex: 1; }
.service-card .svc-ex { margin-top: auto !important; padding-top: 12px; }
.work-filter { min-height: 44px; }
.work-filter .n { opacity: 1; }
.work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.work-card { min-width: 0; }
.work-feature { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.work-feature .project-body { padding: 38px; }
.work-feature h3, .work-card h3 { line-height: 1.3; }
.work-card p, .project-body p { line-height: 1.7; }
.work-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; width: 100%; }
.work-metric strong { font-size: 21px; }
.work-metric span, .work-kpi span { line-height: 1.6; }
.work-kpi strong { line-height: 1.3; }

/* Screens keep their natural proportions; perspective, light and depth belong to the showcase. */
.project-media, .work-card-media {
  isolation: isolate; perspective: 1000px;
  background: radial-gradient(ellipse 85% 80% at 50% 110%, #ff440061 0%, #ff440019 55%, transparent 82%), var(--bg-icon-panel);
}
.project-media::before, .work-card-media:not(.is-post)::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(130deg, #ffffff03, transparent 45%, #ff5a1f0c);
}
.work-feature .project-media { padding: 38px; align-items: center; min-height: 390px; }
.project-media img, .work-card-media img {
  display: block; width: auto; height: auto; max-width: 100%; max-height: 100%;
  object-fit: initial; border-radius: 12px; border: 1px solid #ffffff26;
  box-shadow: 0 28px 55px #0008, 0 3px 18px #ff440012;
  transition: transform .65s cubic-bezier(.2,.7,.25,1), box-shadow .65s;
}
.work-feature .project-media:not(.is-phone) img {
  width: 100%; height: auto; max-height: none;
  transform: perspective(1000px) rotateY(-7deg) rotateX(3deg) rotateZ(-1deg) scale(.96);
}
.work-feature.is-flipped .project-media:not(.is-phone) img { transform: perspective(1000px) rotateY(7deg) rotateX(3deg) rotateZ(1deg) scale(.96); }
.work-card-media { height: 250px; padding: 28px; align-items: center; }
.work-card-media:not(.is-phone):not(.is-post) img { transform: perspective(800px) rotateY(-7deg) rotateX(4deg) rotateZ(-1deg) scale(.95); }
.project-media.is-phone img, .work-card-media.is-phone img {
  width: auto; height: auto; max-width: 100%; max-height: 100%; border-radius: 22px;
  transform: perspective(900px) rotateY(-8deg) rotateZ(3deg) scale(.95);
  box-shadow: 12px 20px 40px #0009, -2px 0 0 #ffffff16, 0 0 34px #ff44000d;
}
.work-feature .project-media.is-phone { height: 460px; padding: 36px; }
.work-feature .project-media.is-phone img { max-height: 385px; }
.work-card-media.is-phone { padding: 22px; }
.work-card:hover .project-media img, .work-card:hover .work-card-media img { transform: perspective(1000px) translateY(-6px) rotateY(0) rotateX(0) rotateZ(0) scale(1); box-shadow: 0 36px 65px #0009, 0 0 28px #ff5a1f16; }
.work-card:hover { border-color: #ff5a1f70; }
.ai-section { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
.ai-head { top: 116px; }
.ai-head .btn { align-self: flex-start; }
.ai-item { grid-template-columns: 44px minmax(0, 1fr); }
.ai-item .ai-proj { grid-column: 2; white-space: normal; padding-top: 0; }
.ai-mark { grid-row: span 2; }
.ai-item h3 { line-height: 1.45; }
.proc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.proc-step h3 { line-height: 1.35; font-size: 20px; }
.proc-step .step-tag { padding-right: 40px; }
.proc-step .proc-n { color: #92725b; }
.cta-sub { line-height: 1.65; }
.cta-proof { line-height: 1.6; }
.cta-proof span { font-size: 11px; }

/* Detail screenshots are not letterboxed: the border follows the actual image. */
.cs-hero-inner, .blog-hero-inner { max-width: var(--content-width); }
.cs-hero { padding-inline: var(--gutter); }
.cs-hero .contact-sub { max-width: 710px; }
.cs-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cs-kpi strong { overflow-wrap: anywhere; line-height: 1.2; }
.cs-kpi span { line-height: 1.6; }
.cs-shot { max-width: 1100px; }
.cs-shot img, .cs-gallery img { height: auto; max-height: none; object-fit: initial; background: transparent; }
.cs-shot:not(.is-phone):not(.is-phone-pair) img { width: 100%; border-radius: 18px; box-shadow: 0 28px 80px #0006, 0 0 44px #ff44000a; }
.cs-shot.is-phone img { width: auto; height: auto; max-width: min(100%, 270px); max-height: none; }
.cs-shot.is-phone-pair { display: flex; flex-direction: row; align-items: flex-start; gap: 24px; }
.cs-shot.is-phone-pair img { flex: 1 1 0; width: 0; min-width: 0; max-width: 250px; height: auto; max-height: none; }
.cs-gallery { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.cs-gallery figure { min-width: 0; }
.cs-gallery figure.is-phone img { width: auto; max-width: min(100%, 260px); max-height: none; height: auto; }
.cs-story { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.cs-brief { top: 112px; }
.cs-brief dd, .arch-list li { overflow-wrap: anywhere; }
.cs-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.cs-outcomes { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.oc-value { line-height: 1.2; overflow-wrap: anywhere; }
.arch-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.arch-list li { grid-template-columns: minmax(85px, .7fr) minmax(0, 1.3fr); }
.cs-next h2, .simple-cta h2 { line-height: 1.4; }
.post-hero { padding-inline: var(--gutter); }
.post-hero-inner, .post-body { max-width: 760px; }
.post-body { width: calc(100% - var(--gutter) * 2); padding-inline: 0; }
.post-body h2 { line-height: 1.4; }
.post-body a { text-decoration: underline; text-underline-offset: 4px; }
.post-related { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.contact.blog-hero { padding-inline: var(--gutter); }
.phase { grid-template-columns: 220px minmax(0, 1fr); }
.phase-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.phase-list { grid-template-columns: 1fr; }
.phase-side h3, .need-item h3, .mode-card h3 { line-height: 1.4; }
.need-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.footer-grid, .footer-bottom { max-width: var(--content-width); }
.footer-grid { grid-template-columns: 1.2fr 1fr .7fr 1fr; }
.footer-col a { display: inline-flex; align-items: center; min-height: 32px; line-height: 1.5; }
.footer-copy { line-height: 1.7; }
.reveal { opacity: 1; transform: none; }
html:not(.js) .nav-inner { flex-wrap: wrap; }
html:not(.js) .nav-links { display: flex; flex-wrap: wrap; width: 100%; order: 3; }
html:not(.js) .nav-burger, html:not(.js) .lang-toggle, html:not(.js) .video-toggle, html:not(.js) .work-filters { display: none; }

@media (min-width: 1800px) {
  :root { --content-width: 1320px; --wide-width: 1560px; }
  .nav-inner { max-width: 1400px; }
  .hero-inner { max-width: 1000px; }
  .hero-title { font-size: 84px; }
}
@media (max-width: 1200px) {
  .nav-inner { gap: 18px; }
  .nav-contact { display: none; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-feature .project-body { padding: 30px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stats { right: 24px; bottom: 24px; gap: 12px; }
  .stat-card { min-width: 200px; padding: 20px; }
  .stat-value { font-size: 28px; }
  .showreel-label { left: 24px; font-size: 10px; max-width: 240px; }
}
@media (max-width: 1024px) {
  .ai-section { grid-template-columns: 1fr; }
  .ai-head { position: static; }
  .phase { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-actions .btn-nav { display: none; }
  .work-feature.work-card { grid-template-columns: 1fr; }
  .work-feature.is-flipped .project-media { order: 0; }
  .work-feature .project-media { min-height: 0; height: 340px; padding: 30px; }
  .work-feature .project-media:not(.is-phone) img { width: auto; max-width: 100%; max-height: 100%; }
  .work-feature .project-media.is-phone { height: 360px; }
  .work-feature .project-media.is-phone img { max-height: 290px; }
  .impact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefit-grid { grid-template-columns: 1fr; }
  .benefit-card { display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; }
  .benefit-media { width: 100%; }
  .proc-grid, .cs-cols, .cs-story { grid-template-columns: 1fr; }
  .cs-brief { position: static; }
  .cs-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .showreel-label { top: 22px; bottom: auto; }
  .hero-stats { left: 20px; right: 20px; bottom: 20px; }
  .stat-card { min-width: 0; }
}
@media (max-width: 600px) {
  :root { --gutter: 20px; }
  html { scroll-padding-top: 96px; }
  .nav { padding: 8px 12px 0; }
  .nav-inner, .nav.scrolled .nav-inner { padding: 10px 12px; }
  .nav-mobile { top: 78px; }
  .nav-links { gap: 10px 20px; }
  .hero { padding: 54px 20px 18px; }
  .hero-inner { gap: 24px; }
  .hero-title { font-size: clamp(31px, 8.2vw, 46px); line-height: 1.18; }
  .hero .tag { font-size: 10px; letter-spacing: .03em; padding: 8px 12px; }
  .hero-sub { font-size: 16px; }
  .hero-tags { gap: 8px; }
  .hero-tags .pill { padding: 6px 10px; font-size: 10px; }
  .hero-ctas { width: 100%; gap: 12px; margin-top: 0; }
  .hero-ctas .btn { width: 100%; font-size: 15px; min-height: 52px; padding: 12px 20px; }
  .hero-reassurance { font-size: 11px; margin-top: -6px; }
  .showreel { width: calc(100% - 24px); padding-top: 24px; }
  .showreel-panel { aspect-ratio: auto; border-radius: 22px; }
  .showreel-panel > video { position: relative; width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; }
  .showreel-grade { bottom: 100px; }
  .showreel-label { display: none; }
  .video-toggle { top: 12px; right: 12px; font-size: 10px; padding: 9px 12px; }
  .hero-stats { position: relative; inset: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 12px 12px; }
  .stat-card { padding: 16px 14px; border-radius: 14px; gap: 5px; }
  .stat-value { font-size: clamp(21px, 5.6vw, 29px); white-space: nowrap; }
  .stat-mark { font-size: 15px; }
  .stat-label { font-size: 10px; }
  .section { padding-block: 60px; }
  .section-tight { padding-top: 24px; }
  .section-title { font-size: 26px; }
  .section-head { margin-bottom: 30px; }
  .clients-row { gap: 12px 22px; }
  .client-mark { font-size: 11px; }
  .impact-grid { gap: 12px; }
  .impact-tile { padding: 20px 16px; border-radius: 20px; }
  .impact-value { font-size: clamp(21px, 5.4vw, 31px); white-space: normal; }
  .impact-label { font-size: 13px; }
  .impact-src { font-size: 10px; letter-spacing: 0; }
  .work-grid, .service-grid, .mode-grid { grid-template-columns: 1fr; }
  .work-filters { gap: 8px; }
  .work-filter { font-size: 11px; padding: 9px 12px; letter-spacing: 0; }
  .work-feature .project-media { height: 240px; padding: 24px; }
  .work-feature .project-media.is-phone { height: 320px; padding: 24px; }
  .work-feature .project-media.is-phone img { max-height: 265px; }
  .work-feature .project-body { padding: 26px; }
  .work-feature h3 { font-size: 26px; }
  .work-metrics { gap: 12px; }
  .work-metric strong { font-size: 18px; }
  .work-metric span { font-size: 9px; letter-spacing: 0; }
  .benefit-card { display: flex; padding: 24px; }
  .benefit-media { height: 170px; }
  .ai-item { grid-template-columns: 36px minmax(0, 1fr); gap: 10px 14px; }
  .ai-mark { width: 36px; height: 36px; }
  .ai-item h3 { font-size: 17px; }
  .ai-item p { font-size: 14px; }
  .proc-step { padding: 26px; }
  .cta-panel { padding: 42px 24px; border-radius: 26px; }
  .cta-title { font-size: 29px; }
  .cta-sub { font-size: 15px; }
  .cta-actions { gap: 18px; }
  .cta-proof { flex-direction: column; gap: 8px; }
  .page-hero, .cs-hero { padding-block: 54px 30px; }
  .page-title, .cs-hero .page-title { font-size: clamp(28px, 7.6vw, 42px); }
  .cs-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; width: 100%; }
  .cs-meta div { min-width: 0; }
  .cs-meta dd { font-size: 13px; }
  .cs-kpis { gap: 10px; }
  .cs-kpi { padding: 18px; }
  .cs-kpi strong { font-size: clamp(18px, 5vw, 26px); }
  .cs-shot.is-phone-pair { gap: 12px; }
  .cs-shot.is-phone-pair img { border-radius: 12px; }
  .cs-next { padding: 26px; }
  .phase { padding: 24px; }
  .phase-cols { grid-template-columns: 1fr; }
  .phase-side h3 { font-size: 21px; }
  .mode-card { padding: 26px; }
  .post-hero { padding-block: 54px 26px; }
  .post-hero .page-title { font-size: clamp(28px, 7vw, 39px); }
  .post-body h2 { font-size: 23px; }
  .post-body p, .post-body li { font-size: 16px; }
  .simple-cta { padding-block: 40px 70px; }
  .footer-grid { gap: 30px 20px; }
  .footer-brand, .footer-col:last-child { grid-column: 1 / -1; }
  .footer-col a { font-size: 13px; min-height: 36px; }
  .footer-copy { font-size: 11px; }
}
@media (max-width: 360px) {
  :root { --gutter: 16px; }
  .hero-title { font-size: 29px; }
  .hero .tag { font-size: 9px; }
  .work-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-card { padding: 14px 12px; }
  .stat-mark { display: none; }
}
@media (hover: none) {
  .work-card:hover, .work-card:hover .project-media img, .work-card:hover .work-card-media img { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .nav, .skip-link, #scroll-progress, #scroll-star, .video-toggle, .marquee { display: none; }
  .section { padding-block: 20px; }
}

/* ---------- Právní stránky, 404, patička (10/2026) ---------- */
[data-lang-block="en"] { display: none; }
html[lang="en"] [data-lang-block="cz"] { display: none; }
html[lang="en"] [data-lang-block="en"] { display: block; }
.legal { max-width: 760px; margin: 0 auto; padding: 72px var(--gutter) 96px; }
.legal .page-title { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.2; margin: 22px 0 8px; }
.legal-meta { color: var(--text-dim); font: 12px var(--font-mono); margin: 0 0 40px; }
.legal h2 { font-family: var(--font-display); font-weight: 500; font-size: 21px; letter-spacing: -.02em; line-height: 1.4; margin: 44px 0 14px; }
.legal h3 { font-size: 16px; margin: 24px 0 8px; color: var(--text); }
.legal p, .legal li { color: var(--text-soft); font-size: 16px; line-height: 1.75; }
.legal p { margin: 0 0 14px; }
.legal ul { padding-left: 20px; margin: 0 0 14px; }
.legal a { color: var(--orange); }
.notfound { position: relative; min-height: 62vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; text-align: center; padding: 96px var(--gutter); }
.notfound .page-title { font-size: clamp(36px, 6vw, 72px); line-height: 1.15; margin: 0; }
.notfound p { color: var(--text-soft); max-width: 520px; line-height: 1.7; margin: 0; }
.notfound .hero-ctas { flex-wrap: wrap; justify-content: center; }
.footer-bottom { gap: 10px 24px; align-items: baseline; }
.footer-bottom .footer-copy { line-height: 1.7; }
.footer-legal { color: var(--text-dim); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal:hover { color: var(--text); }
.cs-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.cs-links .btn { gap: 8px; }
.cs-stack { align-items: center; }
.cs-stack-label { font: 11px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); margin-right: 6px; }

/* ---------- Cookie lišta a nastavení (consent.js) ---------- */
.footer-cookies { display: none; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
html.consent-enabled .footer-cookies { display: inline; }
.consent { position: fixed; z-index: 200; left: 50%; bottom: 20px; transform: translateX(-50%); width: min(960px, calc(100% - 32px));
  display: flex; align-items: center; gap: 20px 28px; padding: 20px 24px; border-radius: 20px;
  background: #17130fF2; border: 1px solid #ffffff24; box-shadow: 0 24px 60px #00000080; backdrop-filter: blur(12px);
  animation: consent-in .35s ease-out; }
@keyframes consent-in { from { opacity: 0; transform: translate(-50%, 16px); } }
@media (prefers-reduced-motion: reduce) { .consent { animation: none; } }
.consent-text { flex: 1; min-width: 0; }
.consent h2 { font: 600 15px/1.4 var(--font-body); margin: 0 0 4px; color: var(--text); letter-spacing: 0; }
.consent p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--text-soft); }
.consent a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.consent-actions .btn { min-height: 42px; padding: 0 18px; white-space: nowrap; }
.consent .consent-link { border-color: transparent; text-decoration: underline; text-underline-offset: 3px; }
.consent-dialog { width: min(560px, calc(100% - 32px)); padding: 0; border: 1px solid #ffffff24; border-radius: 22px; background: #17130f; color: var(--text); box-shadow: 0 30px 80px #000000a0; }
.consent-dialog::backdrop { background: #0d0b09bf; backdrop-filter: blur(4px); }
.consent-dialog form { display: flex; flex-direction: column; gap: 14px; padding: 28px; }
.consent-dialog h2 { font: 500 22px/1.3 var(--font-display); letter-spacing: -.03em; margin: 0; }
.consent-dialog > form > p { margin: 0 0 6px; font-size: 14px; line-height: 1.6; color: var(--text-soft); }
.consent-option { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; }
label.consent-option { cursor: pointer; }
.consent-option h3 { margin: 0 0 4px; font-size: 15px; }
.consent-option p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--text-dim); }
.consent-always { font: 11px var(--font-mono); color: var(--text-dim); white-space: nowrap; }
.consent-switch { appearance: none; flex: none; width: 46px; height: 26px; border-radius: 99px; background: #3a332d; position: relative; cursor: pointer; transition: background .2s; }
.consent-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--text); transition: transform .2s; }
.consent-switch:checked { background: var(--orange); }
.consent-switch:checked::after { transform: translateX(20px); }
.consent-switch:focus-visible { outline: 2px solid #ff995e; outline-offset: 3px; }
.consent-dialog .consent-actions { margin-top: 8px; }
@media (max-width: 720px) {
  .consent { flex-direction: column; align-items: stretch; bottom: 12px; padding: 18px; }
  .consent-actions { justify-content: stretch; }
  .consent-actions .btn { flex: 1; }
  .consent .consent-link { order: 3; flex-basis: 100%; }
}
.consent .btn-outline, .consent-dialog .btn-outline { background: transparent; color: var(--text); border: 1px solid #ffffff40; font-family: var(--font-body); }
.consent .btn-outline:hover, .consent-dialog .btn-outline:hover { border-color: var(--text); background: #ffffff0d; }
.consent .consent-link { border-color: transparent; color: var(--text-soft); }
.consent .btn-primary, .consent-dialog .btn-primary { border: 0; font-family: var(--font-body); }
.footer-links { display: inline-flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-links .footer-legal { color: var(--text-dim); font: inherit; }
:root { --font-display: 'Unbounded', 'Unbounded Fallback', sans-serif; }
.footer-col .footer-h { margin: 0 0 14px; font-family: var(--font-mono); font-size: 11px; line-height: 1.5; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); font-weight: 500; }

/* ---------- Stránky služeb (tools/build_services.py) ---------- */
.svc-more { display: inline-flex; gap: 6px; margin-top: 14px; color: var(--orange); font-weight: 600; font-size: 14px; }
.svc-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.svc-ctas { justify-content: flex-start; margin-top: 28px; flex-wrap: wrap; }
.svc-call { gap: 10px; }
.svc-call svg { color: var(--orange); }
.svc-for { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.svc-steps { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.svc-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; }
.svc-box, .svc-others { background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: 24px; padding: 28px; }
.svc-box-title { font: 600 20px/1.35 var(--font-display); letter-spacing: -.02em; margin: 0 0 18px; }
.svc-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-factors { grid-template-columns: 1fr; }
.svc-faq .faq-title { text-align: left; }
.svc-others { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.svc-others .svc-box-title { margin: 0; }
@media (max-width: 900px) {
  .svc-for, .svc-split { grid-template-columns: 1fr; }
}
.svc-steps .proc-step h3 { padding-right: 70px; font-size: 19px; line-height: 1.3; }

/* ---------- Ikony v3 (ruční SVG, geometrie hvězdičky z loga) ---------- */
.service-icon, .cs-col-card .cs-icon { object-fit: contain; padding: 9px; box-sizing: border-box; background: radial-gradient(circle at 50% 120%, rgba(255, 68, 0, .22), transparent 70%), var(--bg-icon-panel); }

/* ---------- Benefit animace v3: plochá geometrie z hvězdičky loga (6/10/2026) ---------- */
.benefit-media { position: relative; overflow: hidden; }
.benefit-media.is-paused .bx * { animation-play-state: paused; }
.benefit-media .bx { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bx * { transform-box: view-box; }
/* 1 — rozházené příčky se složí do hvězdičky MARQIO */
.bx1-bar { animation: 6s cubic-bezier(.65,0,.35,1) infinite; }
.bx1-a { animation-name: bx1-a; } .bx1-b { animation-name: bx1-b; } .bx1-c { animation-name: bx1-c; }
@keyframes bx1-a { 0%, 8% { transform: translate(-118px, -18px) rotate(-28deg); opacity: .4; } 38%, 78% { transform: translate(0, 0) rotate(0deg); opacity: 1; } 100% { transform: translate(-118px, -18px) rotate(-28deg); opacity: .4; } }
@keyframes bx1-b { 0%, 8% { transform: translate(104px, 22px) rotate(10deg); opacity: .4; } 44%, 78% { transform: translate(0, 0) rotate(60deg); opacity: 1; } 100% { transform: translate(104px, 22px) rotate(10deg); opacity: .4; } }
@keyframes bx1-c { 0%, 8% { transform: translate(18px, -6px) rotate(100deg); opacity: .4; } 50%, 78% { transform: translate(0, 0) rotate(120deg); opacity: 1; } 100% { transform: translate(18px, -6px) rotate(100deg); opacity: .4; } }
/* 2 — náčrt se dokreslí, zaplní a vznikne hotová věc */
.bx2-sketch { stroke-dashoffset: 320; animation: bx2-sketch 6s ease-in-out infinite; }
.bx2-fill { transform-origin: 200px 121px; transform: scaleY(0); animation: bx2-fill 6s cubic-bezier(.65,0,.35,1) infinite; }
.bx2-star { opacity: 0; animation: bx2-star 6s ease-out infinite; }
.bx2-star > g { animation: bx2-spin 6s cubic-bezier(.34,1.56,.64,1) infinite; }
@keyframes bx2-sketch { 0% { stroke-dashoffset: 320; opacity: 1; } 32% { stroke-dashoffset: 0; opacity: 1; } 55%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes bx2-fill { 0%, 34% { transform: scaleY(0); } 54%, 86% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
@keyframes bx2-star { 0%, 54% { opacity: 0; } 62%, 84% { opacity: 1; } 92%, 100% { opacity: 0; } }
@keyframes bx2-spin { 0%, 54% { transform: rotate(-60deg) scale(.6); } 66%, 100% { transform: rotate(0) scale(1); } }
/* 3 — jeden zdroj, tři cíle naráz */
.bx3-line { opacity: .22; }
.bx3-pulse { stroke-dasharray: 16 100; stroke-dashoffset: 16; animation: bx3-pulse 3.2s cubic-bezier(.45,0,.25,1) infinite; }
.bx3-target { fill: transparent; animation: bx3-target 3.2s ease-out infinite; }
.bx3-source { transform-origin: 122px 85px; animation: bx3-source 3.2s ease-out infinite; }
@keyframes bx3-pulse { 0%, 10% { stroke-dashoffset: 16; opacity: 1; } 52% { stroke-dashoffset: -88; opacity: 1; } 53%, 100% { stroke-dashoffset: -88; opacity: 0; } }
@keyframes bx3-target { 0%, 50% { fill: transparent; } 58%, 82% { fill: #FF5A1F; } 100% { fill: transparent; } }
@keyframes bx3-source { 0% { transform: scale(1); } 8% { transform: scale(1.25); } 20%, 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .bx * { animation: none !important; }
  .bx1-a { transform: rotate(0deg); } .bx1-b { transform: rotate(60deg); } .bx1-c { transform: rotate(120deg); }
  .bx2-sketch { opacity: 0; } .bx2-fill { transform: none; } .bx2-star { opacity: 1; }
  .bx3-pulse { opacity: 0; } .bx3-target { fill: #FF5A1F; }
}

/* ---------- Hvězdička, šipky a fajfka z geometrie loga (místo znaků ✱ ↗ → ← ✓) ---------- */
:root { --m-ast: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-34 -34 68 68'%3E%3Crect x='-7' y='-32' width='14' height='64' rx='7'/%3E%3Crect x='-7' y='-32' width='14' height='64' rx='7' transform='rotate%2860%29'/%3E%3Crect x='-7' y='-32' width='14' height='64' rx='7' transform='rotate%28120%29'/%3E%3C/svg%3E"); --m-ne: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 17.5 17 7M8.5 7H17v8.5'/%3E%3C/svg%3E"); --m-e: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15.5M13.5 6l6 6-6 6'/%3E%3C/svg%3E"); --m-w: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12H4.5M10.5 6l-6 6 6 6'/%3E%3C/svg%3E"); --m-chk: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.6 4.6L19 7.6'/%3E%3C/svg%3E"); }
.ast, .arr, .chk { display: inline-block; flex: none; background: currentColor; font-size: inherit; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.ast { --m: var(--m-ast); width: .78em; height: .78em; vertical-align: -.04em; }
.chk { --m: var(--m-chk); width: 1em; height: 1em; vertical-align: -.15em; }
.arr { width: 1em; height: 1em; vertical-align: -.14em; }
.arr-ne { --m: var(--m-ne); } .arr-e { --m: var(--m-e); } .arr-w { --m: var(--m-w); }
.logo-ast.ast { width: .74em; height: .74em; margin-left: .04em; vertical-align: -.02em; color: var(--orange); }
/* pseudo-elementy, které dřív vypisovaly znak */
.nav-links a::before, .feature-grid li::before, .client-mark::before, .post-body li::before, .cta-proof span::before,
.btn-nav::after, .project-link::after, .phase-list.is-get li::before {
  content: ""; display: inline-block; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.nav-links a::before { --m: var(--m-ast); width: 9px; height: 9px; }
.feature-grid li::before { --m: var(--m-ast); width: 11px; height: 11px; top: .42em; background: var(--orange); }
.post-body li::before { --m: var(--m-ast); width: 12px; height: 12px; top: .45em; background: var(--orange); }
.client-mark::before { --m: var(--m-ast); width: 8px; height: 8px; background: var(--orange); }
.cta-proof span::before { --m: var(--m-ast); width: .8em; height: .8em; margin-right: .5em; vertical-align: -.05em; }
.phase-list.is-get li::before { --m: var(--m-e); width: .95em; height: .95em; }
.btn-nav::after, .project-link::after { --m: var(--m-ne); width: .9em; height: .9em; margin-left: 6px; vertical-align: -.1em; transition: none; }
/* šipka při najetí vyletí ve svém směru a vrátí se z opačné strany */
@keyframes arr-ne { 0% { transform: none; } 42% { transform: translate(80%, -80%); opacity: 0; } 43% { transform: translate(-80%, 80%); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes arr-e { 0% { transform: none; } 42% { transform: translateX(90%); opacity: 0; } 43% { transform: translateX(-90%); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes arr-w { 0% { transform: none; } 42% { transform: translateX(-90%); opacity: 0; } 43% { transform: translateX(90%); opacity: 0; } 100% { transform: none; opacity: 1; } }
a:hover .arr-ne, button:hover .arr-ne, .work-card:hover .arr-ne, .post-rel:hover .arr-ne,
.btn-nav:hover::after, .project-link:hover::after { animation: arr-ne .55s cubic-bezier(.65,0,.35,1); }
a:hover .arr-e, button:hover .arr-e { animation: arr-e .55s cubic-bezier(.65,0,.35,1); }
a:hover .arr-w { animation: arr-w .55s cubic-bezier(.65,0,.35,1); }
.btn-arrow, .work-arrow { overflow: hidden; }
.btn-arrow .arr { width: 13px; height: 13px; }
.work-arrow .arr { width: 14px; height: 14px; }
@media (prefers-reduced-motion: reduce) { .arr, .btn-nav::after, .project-link::after { animation: none !important; } }

/* ---------- Ikony v4: plné tvary z příček loga, inline SVG s animací při najetí ---------- */
svg.ic { display: block; overflow: visible; }
.service-icon.ic, .cs-col-card .cs-icon.ic { padding: 11px; }
.ic * { transform-box: view-box; }
.ic .ic-spin { transition: transform .7s cubic-bezier(.34,1.56,.64,1); }
.ic .ic-turn { transform-origin: 24px 24px; transition: transform .9s cubic-bezier(.65,0,.35,1); }
.ic .ic-pop { transform-origin: 39.5px 10px; transition: transform .5s cubic-bezier(.34,1.56,.64,1); }
.ic .ic-wave { transform-origin: 19px 8.6px; }
.card:hover .ic .ic-spin { transform: rotate(60deg); }
.card:hover .ic .ic-turn { transform: rotate(360deg); }
.card:hover .ic .ic-pop { transform: rotate(45deg) scale(1.25); }
.card:hover .ic .ic-draw { stroke-dasharray: 1; animation: ic-draw .8s cubic-bezier(.65,0,.35,1); }
.card:hover .ic .ic-wave { animation: ic-wave .9s ease-in-out; }
@keyframes ic-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes ic-wave { 0%, 100% { transform: none; } 30% { transform: scaleX(.55); } 60% { transform: scaleX(1.1); } }
@media (prefers-reduced-motion: reduce) { .ic * { transition: none !important; animation: none !important; } }
.svc-hero-icon { width: 64px; height: 64px; margin-bottom: 4px; }

/* ---------- Šipky v2: jeden styl pro všechna tlačítka a odkazy (6/10/2026) ----------
   Šipka ↗ za textem, barva textu, bez kroužku, při najetí stejná animace. Dodává ji CSS (::after),
   v HTML se šipky nepíšou. Výjimky: karty projektů (.work-arrow) a „zpět“ (←) mají šipku v HTML. */
a.btn-primary::after, a.btn-dark::after, .btn-submit::after, .btn-nav::after, .project-link::after,
.svc-more::after, .cs-links a::after {
  content: ""; display: inline-block; flex: none; width: .82em; height: .82em; margin-left: .55em; vertical-align: -.08em;
  background: currentColor; -webkit-mask: var(--m-ne) center / contain no-repeat; mask: var(--m-ne) center / contain no-repeat;
  transform: none; transition: none;
}
a.btn-primary:hover::after, a.btn-dark:hover::after, .btn-submit:hover::after, .btn-nav:hover::after, .project-link:hover::after,
.svc-more:hover::after, .cs-links a:hover::after { animation: arr-ne .55s cubic-bezier(.65,0,.35,1); }
.btn-primary, .btn-dark, .btn-submit, .project-link, .svc-more { overflow: hidden; }
.svc-more { gap: 0; align-items: center; }
.cs-links .btn { gap: 0; }
/* karty projektů: stejná šipka, bez kroužku */
.work-arrow, .work-card:hover .work-arrow, .post-rel:hover .work-arrow { width: auto; height: auto; border: 0; border-radius: 0; background: none; color: var(--text-dim); overflow: hidden; padding: 4px; }
.work-card:hover .work-arrow, .post-rel:hover .work-arrow { color: var(--orange); }
.work-arrow .arr { width: 17px; height: 17px; }
@media (prefers-reduced-motion: reduce) { a.btn-primary::after, a.btn-dark::after, .btn-submit::after, .svc-more::after, .cs-links a::after { animation: none !important; } }
.btn-submit { gap: 0; }
a.btn-primary, a.btn-dark, .btn-submit, .btn-nav, .project-link, .cs-links .btn { gap: 0; }
a.btn-primary::after, a.btn-dark::after, .btn-submit::after, .btn-nav::after, .project-link::after, .svc-more::after, .cs-links a::after { margin-left: .5em; }
.post-rel > span:not(.project-code):not(.work-arrow)::first-letter { text-transform: uppercase; }

/* ---------- Navigace: rozbalovací menu Služby / Projekty (6/10/2026) ----------
   Panel je ukotvený pod celou lištou (.nav-inner), otevírá se najetím (zařízení s myší) nebo šipkou (.is-open, main.js). */
.nav-inner { position: relative; }
.nav-dd { display: inline-flex; align-items: center; gap: 2px; }
.nav-dd-toggle {
  display: inline-grid; place-items: center; width: 22px; height: 44px; margin-right: -6px; padding: 0;
  border: 0; background: none; color: var(--text-dim); cursor: pointer; border-radius: 8px;
}
.nav-dd-toggle svg { transition: transform .25s ease; }
.nav-dd-toggle:hover, .nav-dd.is-open .nav-dd-toggle { color: var(--text); }
.nav-dd.is-open .nav-dd-toggle svg { transform: rotate(180deg); }
.nav-dd-panel {
  position: absolute; top: calc(100% + 8px); left: 50%; z-index: 51;
  width: min(680px, calc(100vw - 32px)); padding: 10px;
  background: rgba(18, 14, 11, .97); border: 1px solid var(--border-mid); border-radius: 22px;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 90, 31, .05);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
  transition: opacity .18s ease .12s, transform .18s ease .12s, visibility 0s linear .3s;
}
/* most přes mezeru mezi odkazem a panelem, aby se menu při přejezdu myší nezavřelo */
.nav-dd-panel::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 30px; }
.nav-dd.is-open .nav-dd-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .18s ease, transform .18s ease, visibility 0s; }
@media (hover: hover) {
  .nav-dd:hover .nav-dd-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .18s ease .06s, transform .18s ease .06s, visibility 0s .06s; }
  .nav-dd:hover .nav-dd-toggle { color: var(--text); }
  .nav-dd:hover .nav-dd-toggle svg { transform: rotate(180deg); }
}
html:not(.js) .nav-dd:focus-within .nav-dd-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-dd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.nav-links .nav-dd-panel a { display: grid; min-height: 0; color: var(--text-soft); }
.nav-links .nav-dd-panel a::before { display: none; }
.nav-dd-item { gap: 3px; padding: 12px 14px; border-radius: 14px; transition: background .2s ease; }
.nav-dd-item:hover, .nav-dd-item:focus-visible { background: rgba(255, 255, 255, .045); }
.nav-dd-name { color: var(--text); font-weight: 600; font-size: 15px; line-height: 1.35; transition: color .2s ease; }
.nav-dd-desc { color: var(--text-dim); font-size: 13px; line-height: 1.4; }
.nav-dd-item:hover .nav-dd-name, .nav-dd-item[aria-current="page"] .nav-dd-name { color: var(--orange); }
.nav-links .nav-dd-panel .nav-dd-more {
  display: flex; align-items: center; margin: 8px 4px 2px; padding: 12px 10px 4px;
  border-top: 1px solid var(--border); font-size: 14px; color: var(--text-soft); overflow: hidden;
}
.nav-links .nav-dd-panel .nav-dd-more:hover { color: var(--text); }
.nav-dd-more::after {
  content: ""; display: inline-block; flex: none; width: .82em; height: .82em; margin-left: .5em;
  background: currentColor; -webkit-mask: var(--m-ne) center / contain no-repeat; mask: var(--m-ne) center / contain no-repeat;
}
.nav-dd-more:hover::after { animation: arr-ne .55s cubic-bezier(.65,0,.35,1); }
@media (prefers-reduced-motion: reduce) { .nav-dd-panel, .nav-dd-toggle svg { transition: none !important; } .nav-dd-more::after { animation: none !important; } }
html:not(.js) .nav-dd-toggle { display: none; }
/* mobilní menu: podstránky služeb pod položkou Služby */
.nav-mobile-group { display: grid; margin: -6px 0 6px; padding-left: 12px; border-left: 1px solid var(--border-mid); margin-left: 12px; }
.nav-mobile .nav-mobile-sub { font-family: var(--font-body); font-size: 15px; font-weight: 500; color: var(--text-soft); padding: 9px 12px; min-height: 40px; display: flex; align-items: center; }
.nav-mobile .nav-mobile-sub[aria-current="page"] { color: var(--orange); }
/* tlačítko s šipkou .project-link nesmí dědit odsazení textového odkazu z karet projektů (jinak není v rovině s vedlejším) */
.btn.project-link { margin-top: 0; }
/* Karty kroků (.proc-step): číslo má vlastní sloupec místo absolutní pozice, aby do něj nadpis nikdy nevjel. */
.proc-step { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; row-gap: 12px; align-content: start; }
.proc-step > * { grid-column: 1 / -1; }
.proc-step .proc-n { position: static; grid-column: 2; grid-row: 1 / span 2; align-self: start; margin: -8px -4px 0 0; }
.proc-step:not(:has(.step-tag)) .proc-n { grid-row: 1; }
.proc-step .step-tag, .proc-step h3 { grid-column: 1; }
.proc-step .step-tag, .svc-steps .proc-step h3 { padding-right: 0; }
/* úzká karta: dlouhé slovo v nadpisu by se vedle čísla nevešlo → číslo nad nadpis */
.proc-step { container-type: inline-size; }
.proc-step h3 { hyphens: manual; overflow-wrap: normal; }
@container (max-width: 310px) {
  .proc-step .proc-n, .proc-step:not(:has(.step-tag)) .proc-n { grid-column: 1 / -1; grid-row: 1; margin: 0 0 2px; font-size: 38px; }
}
