/* Šperky z bazaru a zastavárny — styly.
   Ladění proti webu s nářadím: tam industriální oranžová, tady tlumené
   zlato na teplé neutrální ploše. Stejná kostra, jiná nálada. */

@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-latin-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #fffdfa;
  --bg-alt: #f6f1e8;
  --panel: #ffffff;
  --panel-2: #f0e9dd;
  --text: #1c1814;
  --muted: #5f584e;
  --border: #e2d9c9;
  --accent: #8a6612;          /* bílý text na tomhle drží 4,9:1 */
  --accent-strong: #6f5210;
  --accent-ink: #ffffff;
  --focus: #0b62d6;
  --radius: 12px;
  --radius-sm: 7px;
  --shadow: 0 1px 2px rgba(28,24,20,.05), 0 6px 18px rgba(28,24,20,.06);
  --maxw: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17150f;
    --bg-alt: #1e1b14;
    --panel: #221e17;
    --panel-2: #2b261d;
    --text: #f2ede4;
    --muted: #aaa294;
    --border: #38311f;
    --accent: #d7ab4a;
    --accent-strong: #e8c168;
    --accent-ink: #1a1408;
    --focus: #6aa8ff;
    --shadow: 0 1px 2px rgba(0,0,0,.45), 0 8px 24px rgba(0,0,0,.4);
  }
}
:root[data-theme="dark"] {
  --bg: #17150f; --bg-alt: #1e1b14; --panel: #221e17; --panel-2: #2b261d;
  --text: #f2ede4; --muted: #aaa294; --border: #38311f;
  --accent: #d7ab4a; --accent-strong: #e8c168; --accent-ink: #1a1408;
  --focus: #6aa8ff; --shadow: 0 1px 2px rgba(0,0,0,.45), 0 8px 24px rgba(0,0,0,.4);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-strong); }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: var(--accent-ink);
  padding: .7rem 1.1rem; border-radius: 0 0 var(--radius-sm) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.container.uzky { max-width: 760px; }

/* ---------- hlavička ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 66px; }
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); font-weight: 800; }
.logo-mark { width: 30px; height: 30px; color: var(--accent); flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; font-size: .98rem; letter-spacing: .01em; }
.logo-sub { font-weight: 500; font-size: .71rem; color: var(--muted); letter-spacing: .07em; text-transform: uppercase; }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.nav-link { color: var(--text); text-decoration: none; padding: .45rem .6rem; border-radius: var(--radius-sm); font-weight: 500; font-size: .95rem; }
.nav-link:hover { background: var(--panel-2); color: var(--text); }
@media (max-width: 780px) { .nav-link { display: none; } }
.theme-toggle {
  background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
  width: 38px; height: 38px; border-radius: var(--radius-sm); cursor: pointer;
  font-size: 1rem; display: grid; place-items: center;
}
.theme-toggle:hover { border-color: var(--accent); }
.ico-light { display: none; }
:root[data-theme="dark"] .ico-dark { display: none; }
:root[data-theme="dark"] .ico-light { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ico-dark { display: none; }
  :root:not([data-theme="light"]) .ico-light { display: block; }
}

/* ---------- tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .7rem 1.2rem; border-radius: var(--radius-sm);
  font-weight: 650; font-size: .96rem; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .06s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-ink); }
.btn-secondary { background: var(--panel); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--text); }
.btn-sm { padding: .5rem .85rem; font-size: .9rem; }
.btn-lg { padding: .85rem 1.6rem; font-size: 1.02rem; }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
  border-bottom: 1px solid var(--border);
  padding: clamp(2.5rem, 7vw, 4.8rem) 0;
}
.hero-inner {
  display: grid; gap: 2.5rem; align-items: center;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
}
@media (max-width: 940px) { .hero-inner { grid-template-columns: 1fr; gap: 1.8rem; } }
.eyebrow { text-transform: uppercase; letter-spacing: .13em; font-size: .77rem; font-weight: 700; color: var(--accent-strong); margin: 0 0 .6rem; }
h1 { font-size: clamp(1.85rem, 4.6vw, 2.95rem); line-height: 1.14; letter-spacing: -.02em; margin: 0 0 1rem; font-weight: 800; }
.hl { color: var(--accent-strong); }
.lead { font-size: clamp(1.02rem, 2vw, 1.14rem); color: var(--muted); margin: 0 0 1.6rem; max-width: 60ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1.6rem; }
.trust-strip { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; list-style: none; padding: 0; margin: 0; font-size: .93rem; color: var(--muted); }
.trust-strip li { position: relative; padding-left: 1.3rem; }
.trust-strip li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-strong); font-weight: 800; }
.trust-strip strong { color: var(--text); }

.hero-foto { position: relative; min-height: 330px; }
@media (max-width: 940px) {
  .hero-foto { min-height: 0; }
  .hero-foto .foto-mala { display: none; }
  .hero-foto .foto-velka { width: 100%; aspect-ratio: 16 / 10; }
}
.hero-foto img { border-radius: var(--radius); border: 1px solid var(--border); background: var(--panel); box-shadow: 0 10px 30px rgba(28,24,20,.14); }
.foto-velka { width: 70%; aspect-ratio: 1 / 1; object-fit: cover; margin-left: auto; }
.foto-mala { position: absolute; width: 46%; aspect-ratio: 1 / 1; object-fit: cover; }
.foto-mala-1 { left: 0; top: 6%; }
.foto-mala-2 { left: 7%; bottom: 4%; }

/* ---------- sekce ---------- */
.section { padding: clamp(2.5rem, 6vw, 4.4rem) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-title { font-size: clamp(1.5rem, 3.3vw, 2.05rem); line-height: 1.22; letter-spacing: -.015em; margin: 0 0 .7rem; font-weight: 780; }
.section-lead { color: var(--muted); max-width: 68ch; margin: 0 0 2rem; }

.grid-3 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 .5rem; font-size: 1.05rem; font-weight: 700; }
.card p { margin: 0; color: var(--muted); font-size: .96rem; }
.karta-ikona {
  display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: .85rem;
  border-radius: var(--radius-sm); background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-strong);
}
.karta-ikona svg { width: 22px; height: 22px; }

.split { display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 1rem 0; }
.ticks li { position: relative; padding-left: 1.7rem; margin-bottom: .55rem; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-strong); font-weight: 800; }
.note { font-size: .9rem; color: var(--muted); background: var(--panel-2); border-left: 3px solid var(--accent); padding: .8rem 1rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* ---------- galerie ---------- */
.gal-grid { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
@media (max-width: 520px) { .gal-grid { grid-template-columns: repeat(2, 1fr); gap: .55rem; } }
.gal-item { margin: 0; }
.gal-obraz {
  display: block; width: 100%; padding: 0; border: 1px solid var(--border);
  background: var(--panel); border-radius: var(--radius-sm); overflow: hidden;
  cursor: zoom-in; aspect-ratio: 1 / 1;
}
.gal-obraz:hover { border-color: var(--accent); }
.gal-obraz img { width: 100%; height: 100%; object-fit: cover; }
.gal-item figcaption { font-size: .83rem; color: var(--muted); padding: .5rem .15rem 0; line-height: 1.4; }
@media (max-width: 520px) { .gal-item figcaption { font-size: .77rem; } }

.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(10,8,5,.94); display: grid; place-items: center; padding: 3rem 1rem; }
.lightbox[hidden] { display: none; }
body.lightbox-otevren { overflow: hidden; }
.lb-obsah { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.lightbox img { max-width: min(1100px, 94vw); max-height: 78vh; width: auto; border-radius: var(--radius-sm); }
#lb-popis { color: #f3efe7; font-size: .95rem; text-align: center; }
.lb-close, .lb-nav {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0;
  cursor: pointer; border-radius: 50%; width: 46px; height: 46px; font-size: 1.5rem; line-height: 1;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.24); }
.lb-close { top: 1rem; right: 1rem; font-size: 1.15rem; }
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }

/* ---------- rozcestník článků ---------- */
.clanky-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.clanek-karta {
  display: block; text-decoration: none; color: inherit;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow);
}
.clanek-karta:hover { border-color: var(--accent); color: inherit; }
.clanek-karta h3 { margin: 0 0 .45rem; font-size: 1.06rem; font-weight: 700; }
.clanek-karta p { margin: 0 0 .7rem; color: var(--muted); font-size: .94rem; }
.clanek-karta .vice { color: var(--accent-strong); font-weight: 650; font-size: .92rem; }

/* ---------- článek ---------- */
.drobky { font-size: .88rem; color: var(--muted); padding: 1.2rem 0 0; }
.drobky a { text-decoration: none; }
.clanek { padding: 1.5rem 0 clamp(2.5rem, 6vw, 4rem); }
.clanek h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin-bottom: 1.2rem; }
.clanek h2 { font-size: clamp(1.25rem, 2.6vw, 1.55rem); margin: 2.2rem 0 .8rem; font-weight: 750; letter-spacing: -.01em; }
.clanek p { margin: 0 0 1.1rem; }
.clanek ul { margin: 0 0 1.2rem; padding-left: 1.3rem; }
.clanek li { margin-bottom: .5rem; }
.clanek .perex { font-size: 1.1rem; color: var(--muted); margin-bottom: 1.8rem; }
.clanek figure { margin: 1.8rem 0; }
.clanek figure img { border-radius: var(--radius); border: 1px solid var(--border); }
.clanek figcaption { font-size: .87rem; color: var(--muted); padding-top: .5rem; }
.punc-rada { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; margin: 1.5rem 0; }
.punc-rada figure { margin: 0; text-align: center; }
.punc-rada img { background: #fff; padding: .5rem; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.punc-rada figcaption { font-size: .8rem; max-width: 16ch; }

.cta-blok {
  background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; margin: 2.2rem 0 0;
}
.cta-blok h2 { margin-top: 0; }
.cta-blok p { margin-bottom: 1rem; }

/* ---------- kontakt ---------- */
.kontakt-list { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.2rem; margin: 1.2rem 0; }
.kontakt-list dt { font-weight: 700; color: var(--muted); font-size: .9rem; }
.kontakt-list dd { margin: 0; }
.muted { color: var(--muted); }
.adresa { font-size: 1.05rem; line-height: 1.5; }
.mapa-placeholder {
  background: var(--panel-2); border: 1px dashed var(--border); border-radius: var(--radius);
  padding: 2rem 1.5rem; text-align: center; min-height: 300px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
}
.mapa-placeholder p { color: var(--muted); font-size: .93rem; margin: 0; max-width: 40ch; }
.mapa-pin { color: var(--accent-strong); }
.mapa-pin svg { width: 38px; height: 38px; }
.mapa-adresa { font-size: 1.05rem !important; color: var(--text) !important; font-weight: 650; line-height: 1.45; }
.mapa-pozn { font-size: .82rem !important; }
.mapa-placeholder:has(iframe) { padding: 0; border: 0; display: block; }
.mapa-placeholder iframe { width: 100%; min-height: 320px; border: 0; border-radius: var(--radius); }

/* ---------- patička ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 2.2rem 0; font-size: .92rem; }
.footer-mrizka { display: grid; gap: 1.8rem; grid-template-columns: 1.6fr repeat(3, 1fr); }
@media (max-width: 1000px) { .footer-mrizka { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px)  { .footer-mrizka { grid-template-columns: 1fr; } }
.footer-blok h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0 0 .7rem; font-weight: 700; }
.footer-blok p { margin: 0 0 .7rem; line-height: 1.55; }
.footer-znacka { font-size: 1.05rem; }
.footer-odkazy { list-style: none; padding: 0; margin: 0; }
.footer-odkazy li { margin-bottom: .45rem; }
.footer-odkazy a { text-decoration: none; }
.footer-odkazy a:hover { text-decoration: underline; }
.footer-pata { margin: 2rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--border); font-size: .86rem; }

/* Na úzkých displejích se dvouřádkový název s podtitulem lámal na tři řádky
   a hlavička kvůli tomu zabírala třetinu obrazovky. */
@media (max-width: 430px) {
  .logo-text { font-size: .86rem; }
  .logo-sub { font-size: .64rem; letter-spacing: .04em; }
  .header-inner { min-height: 58px; }
}
