/* RS s.r.o. — sdílený vzhled webu sro.rs */
:root {
  --bg: #101010;
  --bg-2: #151718;
  --card: #1a1c1e;
  --card-2: #212427;
  --line: #2a2d30;
  --text: #eff1f0;
  --muted: #9aa19d;
  --accent: #34d399;
  --accent-strong: #5ee8b7;
  --accent-dim: #1fa870;
  --accent-glow: rgba(52, 211, 153, 0.12);
  --amber: #f5b14c;
  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.025em; margin: 0; line-height: 1.12; text-wrap: balance; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #06130d; padding: 8px 12px; z-index: 300; border-radius: 6px; }
.skip:focus { left: 8px; }

/* Hlavička */
.site-head {
  position: sticky; top: 0; z-index: 100; background: rgba(15, 16, 17, 0.88);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 60px; }
.nav-logo { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.03em; color: #fff; text-decoration: none; }
.nav-logo span { color: var(--accent); }
.menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.menu > li { position: relative; }
.menu a.lnk, .menu .drop-btn {
  display: block; color: var(--muted); text-decoration: none; font: inherit; font-size: .95rem; font-weight: 500;
  padding: 8px 12px; border-radius: 8px; background: none; border: 0; cursor: pointer;
}
.menu a.lnk:hover, .menu .drop-btn:hover { color: #fff; }
.menu a.lnk[aria-current="page"], .menu .drop-btn.is-current { color: #fff; }
.menu a.lnk[aria-current="page"]::after, .menu .drop-btn.is-current::after {
  content: ''; display: block; height: 2px; margin-top: 4px; background: var(--accent); border-radius: 2px;
}
.drop-btn svg { display: inline-block; vertical-align: middle; margin-left: 4px; transition: transform .2s; }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: -8px; min-width: 300px; list-style: none; margin: 0; padding: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 24px 48px -16px rgba(0,0,0,.6); display: none;
}
.has-drop.open .dropdown { display: block; }
.has-drop.open .drop-btn svg { transform: rotate(180deg); }
@media (hover: hover) and (min-width: 821px) {
  .has-drop:hover .dropdown { display: block; }
  .has-drop::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 8px; }
}
.dropdown a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--text); }
.dropdown a:hover, .dropdown a[aria-current="page"] { background: var(--card-2); }
.dropdown strong { display: block; font-weight: 600; }
.dropdown span { display: block; font-size: .85rem; color: var(--muted); }
.lang {
  font: inherit; font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); background: var(--line);
  border: 0; border-radius: 6px; padding: 6px 11px; cursor: pointer; margin-left: 8px;
}
.lang:hover { background: var(--accent-dim); color: #fff; }
.menu-btn { display: none; background: none; border: 0; color: var(--text); padding: 8px; cursor: pointer; }

/* Tlačítka */
.btn {
  display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 600; font-size: .95rem;
  padding: 11px 20px; border-radius: 9px; text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background .2s, border-color .2s, color .2s;
}
.btn-primary { background: var(--accent); color: #07140e; }
.btn-primary:hover { background: var(--accent-strong); }
.btn-outline { color: var(--text); border-color: var(--line); background: transparent; }
.btn-outline:hover { border-color: var(--accent-dim); background: var(--accent-glow); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Rámeček snímku */
.frame {
  background: #0b0c0d; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.85);
}
.frame-bar { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; background: var(--card); border-bottom: 1px solid var(--line); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3e42; }
.frame-bar span { margin-left: 10px; font-size: .78rem; color: var(--muted); }
.frame img { width: 100%; }

/* Sekce */
section { padding: clamp(48px, 9vh, 80px) 0; }
section + section { border-top: 1px solid var(--line); }
.sec-head { max-width: 700px; margin-bottom: 32px; }
.sec-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 10px; }
.sec-head p { color: var(--muted); font-size: 1rem; margin: 0; }
.lede { font-size: clamp(1rem, 1.3vw, 1.1rem); color: var(--muted); max-width: 600px; }

/* Úvod: hero s koláží snímků */
.hero { padding: clamp(32px, 6vh, 56px) 0 clamp(40px, 8vh, 72px); position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 55% at 78% 30%, rgba(52,211,153,.10), transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 3.4vw, 2.9rem); margin-bottom: 16px; }
.hero .lede { margin-bottom: 24px; }
.collage { position: relative; aspect-ratio: 1.55; }
.collage > div { position: absolute; }
.collage .c1 { left: 0; top: 0; width: 88%; z-index: 1; }
.collage .c2 { right: 0; bottom: 0; width: 60%; z-index: 3; }
.collage .c3 { left: 4%; bottom: 2%; width: 30%; z-index: 2; }
.collage .c3 img { aspect-ratio: 900 / 760; object-fit: cover; object-position: top; }

/* Úvod: produkty */
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.p-card {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; text-decoration: none; color: inherit; transition: border-color .2s;
}
.p-card:hover { border-color: var(--accent-dim); }
.p-card .shot { aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); background: #0b0c0d; }
.p-card .shot .frame { height: 100%; }
.p-card .shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.p-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.p-card h3 { font-size: 1.25rem; margin: 10px 0 6px; }
.p-card p { color: var(--muted); font-size: .93rem; margin: 0 0 14px; }
.p-card .more { margin-top: auto; color: var(--accent); font-weight: 600; font-size: .95rem; }

.status {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; font-size: .82rem; font-weight: 500;
  padding: 4px 11px 4px 9px; border-radius: 999px; background: rgba(245,177,76,.12); color: var(--amber);
}
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }

/* Úvod: pásy */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.points li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.points strong { display: block; font-weight: 600; margin-bottom: 2px; }
.points span { color: var(--muted); font-size: .95rem; }
.cta-band {
  background: linear-gradient(135deg, rgba(52,211,153,.14), rgba(52,211,153,.03));
  border: 1px solid rgba(52,211,153,.25); border-radius: 20px; padding: clamp(24px, 4vw, 40px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center;
}
.cta-band h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 6px; }
.cta-band p { color: var(--muted); margin: 0; }

/* Podstránky */
.page-hero { padding: clamp(28px, 5vh, 48px) 0 clamp(32px, 6vh, 48px); }
.ph-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 44px; align-items: center; }
.crumb { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--text); }
.page-hero h1 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin: 12px 0 8px; }
.page-hero .sub { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--text); margin-bottom: 14px; font-weight: 400; }
.page-hero .lede { margin-bottom: 22px; }
.fig.hero-shot { margin: 0; }
.page-hero + section { border-top: 0; padding-top: 24px; }
.hero-shot figcaption, .fig figcaption { font-size: .88rem; color: var(--muted); margin-top: 12px; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 6px; letter-spacing: -0.01em; }
.feature p { color: var(--muted); font-size: .92rem; margin: 0; }
.feature .tag { display: inline-block; margin-left: 6px; font-size: .75rem; font-weight: 500; color: var(--amber); vertical-align: middle; }

.figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
.figs .wide { grid-column: 1 / -1; }
.fig { margin: 0; }
.figs-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }

.for-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.for-list li { border-left: 2px solid var(--accent); padding: 4px 0 4px 14px; color: var(--text); }
.for-list span { display: block; color: var(--muted); font-size: .92rem; }
.note { color: var(--muted); font-size: .92rem; max-width: 760px; margin-top: 28px; }

.next { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.next a {
  display: block; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text);
  background: var(--card); transition: border-color .2s;
}
.next a:hover { border-color: var(--accent-dim); }
.next small { display: block; color: var(--muted); font-size: .85rem; margin-bottom: 4px; }
.next strong { font-size: 1.15rem; font-weight: 600; }

/* Spolupráce, vývoj */
.offer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.offer .feature h3 { font-size: 1.15rem; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.steps li { counter-increment: s; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent-glow); border: 1px solid rgba(52,211,153,.3); color: var(--accent); font-weight: 600; margin-bottom: 14px;
}
.steps h3 { font-size: 1.08rem; margin-bottom: 4px; letter-spacing: -0.01em; }
.steps p { color: var(--muted); font-size: .94rem; margin: 0; }

/* Kontakt */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; }
.mail { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 600; letter-spacing: -0.03em; color: #fff; text-decoration: none; border-bottom: 2px solid var(--accent-dim); }
.mail:hover { border-color: var(--accent); }
.contact .actions { margin-top: 32px; }
.facts { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; color: var(--muted); line-height: 1.75; }
.facts strong { color: var(--text); font-weight: 600; }
.facts p:last-child { margin: 0; }

/* Patička */
.site-foot { border-top: 1px solid var(--line); padding: 40px 0 32px; color: var(--muted); font-size: .88rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; margin-bottom: 32px; }
.foot-grid h3 { font-size: .95rem; color: var(--text); letter-spacing: 0; margin-bottom: 10px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-grid a { color: var(--muted); text-decoration: none; }
.foot-grid a:hover { color: var(--text); }
.foot-legal { border-top: 1px solid var(--line); padding-top: 20px; }
.foot-legal p { margin: 0 0 4px; }

/* Responzivita */
@media (max-width: 980px) {
  .hero-grid, .split, .contact, .ph-grid { grid-template-columns: 1fr; gap: 32px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collage { max-width: 680px; }
  .products { grid-template-columns: 1fr; max-width: 640px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .figs-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .menu {
    display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter) 20px; background: var(--bg-2); border-bottom: 1px solid var(--line);
    max-height: calc(100vh - 60px); overflow-y: auto;
  }
  .menu.open { display: flex; }
  .menu a.lnk, .menu .drop-btn { padding: 12px 4px; font-size: 1.05rem; width: 100%; text-align: left; }
  .menu a.lnk[aria-current="page"]::after, .menu .drop-btn.is-current::after { display: none; }
  .menu a.lnk[aria-current="page"], .menu .drop-btn.is-current { color: var(--accent); }
  .dropdown { position: static; display: none; min-width: 0; box-shadow: none; margin: 0 0 8px; }
  .lang { align-self: flex-start; margin: 10px 0 0; }
  .features, .offer, .figs, .next, .cta-band { grid-template-columns: 1fr; }
  .figs-3 { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
  .hero { padding: 28px 0 48px; }
  .page-hero { padding: 28px 0 32px; }
  .frame-bar span { display: none; }
}
@media (max-width: 520px) {
  .steps, .foot-grid { grid-template-columns: 1fr; }
}
/* Na úzkém displeji koláž nepřekrývat: jen jeden snímek přes celou šířku */
@media (max-width: 820px) {
  .collage { aspect-ratio: auto; }
  .collage { max-width: none; }
  .collage > div, .collage .c1 { position: static; width: 100%; }
  .collage .c2, .collage .c3 { display: none; }
  .zoom-hint { width: 28px; height: 28px; right: 8px; bottom: 8px; }
  .zoom-hint svg { width: 13px; height: 13px; }
}

/* Jazyk: obsah je v obou jazycích, zobrazí se jen aktivní */
html[data-lang="en"] [data-l="cs"], html:not([data-lang="en"]) [data-l="en"] { display: none !important; }
.foot-grid .nav-logo { color: #fff; }

/* Zvětšení snímků */
.zoomable { cursor: zoom-in; position: relative; }
.zoomable:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.zoom-hint {
  position: absolute; right: 10px; bottom: 10px; z-index: 2; display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 50%; background: rgba(16,16,16,.78); border: 1px solid var(--line); color: var(--text); pointer-events: none;
  opacity: .85; transition: opacity .2s;
}
.zoomable:hover .zoom-hint { opacity: 1; border-color: var(--accent-dim); }
.lightbox {
  position: fixed; inset: 0; z-index: 500; background: rgba(6,7,7,.94); display: none; flex-direction: column;
}
.lightbox.open { display: flex; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; flex: none; }
.lb-cap { color: var(--muted); font-size: .9rem; margin: 0; }
.lb-close {
  flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card);
  color: var(--text); font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.lb-stage { flex: 1; overflow: auto; display: flex; align-items: center; justify-content: center; padding: 0 14px 14px; -webkit-overflow-scrolling: touch; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 8px; cursor: zoom-in; }
.lb-stage.full { display: block; }
.lb-stage.full img { max-width: none; max-height: none; cursor: zoom-out; }
body.lb-open { overflow: hidden; }
@media (max-width: 820px) { .lb-cap { font-size: .82rem; } }

/* Řada tří snímků (Navi): stejné rámečky, aby byly horní i spodní hrany a popisky v jedné linii */
@media (min-width: 821px) {
  .figs-3 { align-items: stretch; }
  .figs-3 .frame { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; background: #0e0f11; }
  .figs-3 .frame img { width: 100%; height: 100%; object-fit: contain; }
  .figs-3 .zoom-hint { top: 10px; bottom: auto; }
}
