/* StavKing – obklady a dlažby | 2026 */

@font-face { font-family: "Inter"; src: url("../fonts/Inter-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/InterDisplay-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/InterDisplay-ExtraBold.woff") format("woff"); font-weight: 800; font-display: swap; }

:root {
  --paper: #f3f5f6;
  --paper-2: #e6ecef;
  --line: #d2dce1;
  --ink: #10263a;
  --ink-2: #44535e;
  --ink-3: #71808a;
  --dark: #10263a;
  --dark-2: #173450;
  --brass: #3aa6a0;
  --brass-2: #62bfb9;
  --white: #fff;
  --r: 4px;
  --wrap: 1180px;
  --pad: clamp(16px, 4vw, 32px);
  --sec: clamp(64px, 10vw, 128px);
  --f: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fd: "Inter Display", "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--f); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--fd); font-weight: 800; line-height: 1.05; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
p { margin: 0; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 999; }
.skip:focus { left: 8px; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.eyebrow .dot { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: var(--r); background: var(--brass); color: var(--ink); font-weight: 600; font-size: 1rem; text-decoration: none; border: 1px solid var(--brass); cursor: pointer; transition: background .2s, color .2s, transform .2s var(--ease); }
.btn:hover { background: var(--brass-2); border-color: var(--brass-2); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 19px; height: 19px; }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.sec--dark .btn--ghost:hover, .hero .btn--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--sm { min-height: 42px; padding: 0 16px; font-size: .92rem; }

/* ── Navigace ── */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(16,38,58,.92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); color: var(--paper); border-bottom: 1px solid rgba(255,255,255,.08); }
.nav__in { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.logo__mark { width: 30px; height: 30px; fill: var(--paper); stroke: none; }
.logo__mark .a { fill: var(--brass); }
.logo__txt { font: 800 1.3rem/1 var(--fd); letter-spacing: -.02em; display: flex; flex-direction: column; }
.logo__txt b { color: var(--brass); font-weight: 800; }
.logo__txt small { font: 600 .6rem/1 var(--f); letter-spacing: .2em; text-transform: uppercase; color: rgba(243,245,246,.55); margin-top: 5px; }
.menu { display: flex; gap: 4px; }
.menu a { padding: 8px 12px; text-decoration: none; font-size: .95rem; color: rgba(243,245,246,.78); border-radius: var(--r); transition: color .2s; }
.menu a:hover, .menu a.is-on { color: var(--paper); }
.menu a.is-on { box-shadow: inset 0 -2px 0 var(--brass); border-radius: 0; }
.nav__cta svg { stroke: currentColor; }
.burger { display: none; width: 44px; height: 44px; background: none; border: 0; padding: 0; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--paper); transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ── Hero ── */
.hero { background: var(--dark); color: var(--paper); position: relative; overflow: hidden; }
.hero::before { /* jemná mřížka spár */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 96px 96px; mask-image: linear-gradient(90deg, #000 0%, transparent 70%); -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 70%);
}
.hero__in { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 88px); align-items: center; padding-top: clamp(48px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 112px); }
.hero h1 { font-size: clamp(2.6rem, 7.2vw, 5.6rem); margin-bottom: 26px; }
.hero h1 em { font-style: normal; color: var(--brass); position: relative; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: rgba(243,245,246,.74); max-width: 34em; margin-bottom: 36px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 52px; }
.hero__facts { list-style: none; margin: 0; padding: 26px 0 0; display: flex; gap: clamp(24px, 5vw, 56px); border-top: 1px solid rgba(255,255,255,.12); }
.hero__facts b { display: block; font: 800 1.9rem/1 var(--fd); color: var(--paper); margin-bottom: 6px; }
.hero__facts span { font-size: .85rem; color: rgba(243,245,246,.55); }
.hero__img { margin: 0; position: relative; }
.hero__img img { display: block; width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--r); }
.hero__img::after { content: ""; position: absolute; inset: -10px; border: 1px solid var(--brass); border-radius: calc(var(--r) + 10px); z-index: -1; pointer-events: none; }
.hero__img { z-index: 0; isolation: isolate; }
.hero__img figcaption { position: absolute; left: 14px; bottom: 14px; right: 14px; font-size: .78rem; color: rgba(243,245,246,.9); background: rgba(16,38,58,.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 8px 12px; border-radius: var(--r); width: fit-content; }

/* běžící pás */
.strip { background: var(--brass); color: var(--ink); overflow: hidden; border-block: 1px solid rgba(0,0,0,.1); }
.strip__track { display: flex; width: max-content; animation: run 48s linear infinite; }
.strip span { font: 700 .95rem/1 var(--fd); letter-spacing: .02em; text-transform: uppercase; padding: 17px 26px; white-space: nowrap; display: flex; align-items: center; gap: 52px; }
.strip span::after { content: ""; width: 8px; height: 8px; background: var(--ink); transform: rotate(45deg); margin-left: 26px; }
@keyframes run { to { transform: translateX(-50%); } }

/* ── Sekce ── */
.sec { padding: var(--sec) 0; }
.sec--alt { background: var(--paper-2); }
.sec--dark { background: var(--dark); color: var(--paper); }
.sec__head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec__head h2 { margin-bottom: 20px; }
.sec__lead { color: var(--ink-2); font-size: 1.1rem; max-width: 40em; }
.sec--dark .sec__lead { color: rgba(243,245,246,.7); }
.sec__lead a { color: var(--brass); font-weight: 600; text-decoration: none; }
.sec__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.sec__head--row h2 { margin: 0; }

/* Služby – dlaždice se „spárou“ */
.tiles { list-style: none; margin: 0; padding: 1px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; }
.tile { background: var(--paper); padding: 30px 26px 32px; position: relative; transition: background .25s; }
.tile:hover { background: #fff; }
.tile__no { position: absolute; top: 26px; right: 24px; font: 700 .8rem/1 var(--fd); color: var(--ink-3); letter-spacing: .05em; }
.tile__ico { width: 34px; height: 34px; color: var(--brass); margin-bottom: 26px; stroke-width: 1.4; }
.tile h3 { margin-bottom: 10px; }
.tile p { color: var(--ink-2); font-size: .97rem; }

/* Detaily */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.feat { position: relative; overflow: hidden; border-radius: var(--r); background: var(--dark-2); }
.feat img { width: 100%; aspect-ratio: 3/4; object-fit: cover; transition: transform .8s var(--ease); }
.feat:hover img { transform: scale(1.04); }
.feat__txt { position: absolute; inset: auto 0 0 0; padding: 72px 24px 24px; background: linear-gradient(transparent, rgba(9,26,40,.92) 55%); }
.feat h3 { font-size: 1.35rem; margin-bottom: 8px; }
.feat p { font-size: .95rem; color: rgba(243,245,246,.78); }

/* Galerie */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 600 .9rem/1 var(--f); padding: 11px 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); cursor: pointer; transition: all .2s; }
.chip span { color: var(--ink-3); font-weight: 400; margin-left: 2px; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip.is-on span { color: rgba(243,245,246,.6); }
.gal { list-style: none; margin: 0; padding: 0; columns: 4 240px; column-gap: 12px; }
.gal__it { break-inside: avoid; margin-bottom: 12px; }
.gal__it.is-more, .gal__it.is-hidden { display: none; }
.gal__it a { display: block; overflow: hidden; border-radius: var(--r); background: var(--paper-2); position: relative; }
.gal__it img { width: 100%; transition: transform .6s var(--ease), opacity .3s; }
.gal__it a:hover img { transform: scale(1.035); }
.gal__it a::after { content: "+"; position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(16,38,58,.7); color: #fff; font-size: 1.3rem; opacity: 0; transition: opacity .25s; }
.gal__it a:hover::after { opacity: 1; }
.gal__more { text-align: center; margin-top: 36px; }
.empty { color: var(--ink-3); }

/* Postup */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.steps li { counter-increment: s; padding-top: 22px; border-top: 2px solid var(--ink); }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: 800 3rem/1 var(--fd); color: var(--brass); margin-bottom: 18px; letter-spacing: -.03em; }
.steps b { display: block; font: 700 1.15rem/1.3 var(--fd); margin-bottom: 8px; }
.steps p { color: var(--ink-2); font-size: .97rem; }

/* FAQ */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 48px 24px 0; font: 700 1.12rem/1.35 var(--fd); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -9px; border-right: 2px solid var(--brass); border-bottom: 2px solid var(--brass); transform: rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 48px 26px 0; color: var(--ink-2); }

/* Kontakt */
.kontakt__in { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.kontakt h2 { margin-bottom: 20px; }
.kontakt__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.kontakt__btns .btn { font-size: 1.05rem; }
.kontakt__btns .btn--ghost { word-break: break-all; }
.vizitka { margin: 0; border: 1px solid rgba(255,255,255,.12); border-radius: var(--r); }
.vizitka div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 16px 22px; border-bottom: 1px solid rgba(255,255,255,.08); }
.vizitka div:last-child { border-bottom: 0; }
.vizitka dt { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(243,245,246,.5); padding-top: 3px; }
.vizitka dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.vizitka a { text-decoration: none; color: var(--brass-2); }

/* Patička */
.foot { background: #0b1c2b; color: rgba(243,245,246,.55); font-size: .88rem; padding: 34px 0 40px; }
.foot__in { display: grid; gap: 8px; }
.foot b { color: var(--paper); }
.foot a { color: rgba(243,245,246,.75); }
.foot__seo { font-size: .78rem; color: rgba(243,245,246,.35); }

/* Mobilní lišta */
.callbar { display: none; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(8,20,32,.96); display: flex; align-items: center; justify-content: center; }
.lb[hidden] { display: none; }
.lb figure { margin: 0; max-width: min(92vw, 1400px); text-align: center; }
.lb img { max-width: 100%; max-height: 82vh; margin: 0 auto; border-radius: 2px; user-select: none; }
.lb figcaption { color: rgba(243,245,246,.65); font-size: .9rem; margin-top: 12px; }
.lb__x, .lb__nav { position: absolute; background: rgba(255,255,255,.08); border: 0; color: #fff; cursor: pointer; display: grid; place-items: center; border-radius: 50%; transition: background .2s; }
.lb__x:hover, .lb__nav:hover { background: rgba(255,255,255,.18); }
.lb__x { top: 16px; right: 16px; width: 48px; height: 48px; font-size: 2rem; line-height: 1; }
.lb__nav { top: 50%; width: 56px; height: 56px; margin-top: -28px; font-size: 2.4rem; line-height: 1; padding-bottom: 4px; }
.lb__prev { left: 16px; } .lb__next { right: 16px; }

/* Reveal animace */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }

/* ── Responsivita ── */
@media (max-width: 1080px) {
  .menu a { padding: 8px 9px; }
  .nav__cta span { display: none; }
  .nav__cta { padding: 0 12px; }
}
@media (max-width: 900px) {
  .hero__in, .kontakt__in, .faq { grid-template-columns: 1fr; }
  .hero__img { max-width: 520px; }
  .hero__img img { aspect-ratio: 4/5; }
  .feats { grid-template-columns: 1fr; }
  .feat img { aspect-ratio: 4/3; }
  .steps { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
}
@media (max-width: 760px) {
  .tiles { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav__cta { display: none; }
  .burger { display: block; }
  .menu { position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0; background: var(--dark); padding: 8px var(--pad) 24px; border-bottom: 1px solid rgba(255,255,255,.1); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
  .menu.is-open { opacity: 1; transform: none; visibility: visible; }
  .menu a { padding: 16px 0; font-size: 1.15rem; border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 0; }
  .menu a.is-on { box-shadow: none; color: var(--brass); }
  .foot { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .callbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--dark); border-top: 1px solid rgba(255,255,255,.1); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); gap: 8px; }
  .callbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: var(--r); text-decoration: none; font-weight: 600; color: var(--paper); border: 1px solid rgba(255,255,255,.18); }
  .callbar a:first-child { background: var(--brass); color: var(--ink); border-color: var(--brass); }
  .callbar svg { width: 18px; height: 18px; }
}
@media (max-width: 560px) {
  .tiles { grid-template-columns: 1fr; }
  body { font-size: 1rem; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__facts { gap: 20px; justify-content: space-between; }
  .hero__facts b { font-size: 1.5rem; }
  .hero__img::after { inset: -7px; border-radius: calc(var(--r) + 7px); }
  .gal { columns: 2; column-gap: 8px; }
  .gal__it { margin-bottom: 8px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 4px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { white-space: nowrap; }
  .steps { grid-template-columns: 1fr; }
  .vizitka div { grid-template-columns: 1fr; gap: 2px; }
  .kontakt__btns .btn { flex: 1 1 100%; }
  .lb__nav { top: auto; bottom: 20px; margin: 0; }
  .lb__prev { left: calc(50% - 68px); } .lb__next { right: calc(50% - 68px); }
  .tile { display: grid; grid-template-columns: 30px 1fr; column-gap: 16px; padding: 22px 20px; }
  .tile__no { display: none; }
  .tile__ico { width: 30px; height: 30px; margin: 0; grid-row: span 2; }
  .tile h3 { margin-bottom: 6px; }
  .tile p { font-size: .94rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
}
