/* JK Bandolero – společný vzhled všech appek (nad Pico CSS).
   Barvy a písma podle letáku; měň je jen tady v :root. */
@font-face{font-family:"Playfair Display";font-weight:700;font-display:swap;src:url(fonts/playfair-display-latin-ext-700-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+1E00-1EFF}
@font-face{font-family:"Playfair Display";font-weight:700;font-display:swap;src:url(fonts/playfair-display-latin-700-normal.woff2) format("woff2")}
@font-face{font-family:"Playfair Display";font-weight:800;font-display:swap;src:url(fonts/playfair-display-latin-ext-800-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+1E00-1EFF}
@font-face{font-family:"Playfair Display";font-weight:800;font-display:swap;src:url(fonts/playfair-display-latin-800-normal.woff2) format("woff2")}
@font-face{font-family:"Cinzel";font-weight:500;font-display:swap;src:url(fonts/cinzel-latin-ext-500-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+1E00-1EFF}
@font-face{font-family:"Cinzel";font-weight:500;font-display:swap;src:url(fonts/cinzel-latin-500-normal.woff2) format("woff2")}
@font-face{font-family:"Allura";font-weight:400;font-display:swap;src:url(fonts/allura-latin-ext-400-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+1E00-1EFF}
@font-face{font-family:"Allura";font-weight:400;font-display:swap;src:url(fonts/allura-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"Source Sans 3";font-weight:400;font-display:swap;src:url(fonts/source-sans-3-latin-ext-400-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+1E00-1EFF}
@font-face{font-family:"Source Sans 3";font-weight:400;font-display:swap;src:url(fonts/source-sans-3-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"Source Sans 3";font-weight:600;font-display:swap;src:url(fonts/source-sans-3-latin-ext-600-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+1E00-1EFF}
@font-face{font-family:"Source Sans 3";font-weight:600;font-display:swap;src:url(fonts/source-sans-3-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:"Source Sans 3";font-weight:700;font-display:swap;src:url(fonts/source-sans-3-latin-ext-700-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+1E00-1EFF}
@font-face{font-family:"Source Sans 3";font-weight:700;font-display:swap;src:url(fonts/source-sans-3-latin-700-normal.woff2) format("woff2")}
@font-face{font-family:"Source Serif 4";font-weight:400;font-display:swap;src:url(fonts/source-serif-4-latin-ext-400-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+1E00-1EFF}
@font-face{font-family:"Source Serif 4";font-weight:400;font-display:swap;src:url(fonts/source-serif-4-latin-400-normal.woff2) format("woff2")}

:root {
  --navy:#13234a; --navy-2:#1f3366; --gold:#b48a3c; --gold-2:#d6b36c; --gold-dark:#8a6a2c; --gold-soft:#f3e6c8;
  --cream:#faf5ea; --paper:#fffdf8; --ink:#1c2233; --muted:#6d6656; --line:#e7dcc4; --line-2:#d9ccb0;
  --ok:#2e6a4c; --ok-bg:#e5f1e9; --warn:#9a5f0c; --warn-bg:#fbefd9; --bad:#962f2f; --bad-bg:#f8e3e1; --info-bg:#e7ecf6;
  --f-display:"Playfair Display",Georgia,serif; --f-caps:"Cinzel",Georgia,serif; --f-script:"Allura",cursive;
  --f-body:"Source Sans 3",system-ui,sans-serif; --f-serif:"Source Serif 4",Georgia,serif;
  --radius:8px;
  --pico-font-family:var(--f-body); --pico-background-color:var(--cream); --pico-color:var(--ink);
  --pico-primary:var(--navy-2); --pico-primary-background:var(--navy); --pico-primary-border:var(--navy);
  --pico-primary-hover:var(--navy); --pico-primary-hover-background:var(--navy-2); --pico-primary-hover-border:var(--navy-2);
  --pico-primary-focus:rgba(180,138,60,.35); --pico-primary-inverse:#fff;
  --pico-secondary:var(--gold-dark); --pico-secondary-background:var(--gold); --pico-secondary-border:var(--gold);
  --pico-secondary-hover-background:#9c7531; --pico-secondary-inverse:var(--navy);
  --pico-muted-color:var(--muted); --pico-muted-border-color:var(--line);
  --pico-card-background-color:var(--paper); --pico-card-sectioning-background-color:#fbf7ee;
  --pico-form-element-background-color:#fff; --pico-form-element-border-color:var(--line-2);
  --pico-form-element-focus-color:var(--gold); --pico-border-radius:.5rem;
  --pico-h1-color:var(--navy); --pico-h2-color:var(--navy); --pico-h3-color:var(--navy); --pico-h4-color:var(--navy);
  --pico-typography-spacing-vertical:1rem; --pico-spacing:1rem;
}
html{scroll-behavior:smooth}
body{background:var(--cream);font-size:17px;min-height:100vh;display:flex;flex-direction:column}
body>main{flex:1}
h1,h2,h3,h4{font-family:var(--f-display);letter-spacing:0;overflow-wrap:anywhere}
h1{font-weight:800}
a{color:var(--navy-2);text-underline-offset:3px}
small,.muted{color:var(--muted)}
.wrap{max-width:1200px;margin:0 auto;padding:0 24px}
.narrow{max-width:760px;margin:0 auto;padding:0 24px}
.caps{font-family:var(--f-caps);text-transform:uppercase;letter-spacing:.14em;font-size:.8rem;color:var(--gold-dark)}
.script{font-family:var(--f-script);font-weight:400;color:var(--gold);line-height:1;font-size:2.6rem}
.serif{font-family:var(--f-serif)}

/* ---------- hlavička ---------- */
.site-head{background:var(--paper);border-bottom:1px solid var(--line);box-shadow:0 1px 0 rgba(180,138,60,.25)}
.site-head .wrap{display:flex;flex-wrap:wrap;align-items:center;gap:12px 28px;padding-top:12px;padding-bottom:12px}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--navy)}
.brand img{height:52px;width:auto}
.brand .mark{width:48px;height:48px;border-radius:50%;background:var(--navy);color:var(--gold-2);display:flex;align-items:center;justify-content:center;font-family:var(--f-display);font-weight:800}
.brand .name{display:flex;flex-direction:column;line-height:1.1}
.brand .name strong{font-family:var(--f-display);font-size:1.2rem}
.brand .name span{font-family:var(--f-caps);font-size:.72rem;letter-spacing:.16em;color:var(--gold-dark);text-transform:uppercase}
.site-nav{display:flex;flex-wrap:wrap;gap:2px 20px;flex:1 1 auto;margin:0;padding:0}
.site-nav a{text-decoration:none;color:#4d4a40;font-weight:600;padding:8px 0;border-bottom:2px solid transparent}
.site-nav a:hover{color:var(--navy)}
.site-nav a[aria-current]{color:var(--navy);border-bottom-color:var(--gold)}
.who{display:flex;align-items:center;gap:10px;font-size:.95rem}
.who form{margin:0}
.avatar{width:38px;height:38px;border-radius:50%;background:var(--navy);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:.9rem;flex:0 0 auto}
.avatar.gold{background:var(--gold);color:var(--navy)}
.btn,a.btn,button.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 20px;border-radius:8px;border:0;font-weight:600;text-decoration:none;cursor:pointer;background:var(--navy);color:#fff;font-size:1rem;width:auto;margin:0}
.btn:hover{background:var(--navy-2);color:#fff}
.btn.gold{background:var(--gold);color:var(--navy)}
.btn.gold:hover{background:var(--gold-2)}
.btn.ghost{background:transparent;color:var(--navy);border:1px solid var(--line-2)}
.btn.ghost:hover{background:#fff}
.btn.small{min-height:44px;padding:6px 14px;font-size:.92rem}
.btn.danger{background:var(--bad)}
.linkbtn{background:none;border:0;padding:0;margin:0;color:var(--navy-2);text-decoration:underline;cursor:pointer;width:auto;font:inherit}

/* ---------- hero ---------- */
.hero{background:var(--navy);color:#fff}
.hero .wrap{display:flex;flex-wrap:wrap;gap:32px;align-items:center;padding-top:56px;padding-bottom:56px}
.hero .text{flex:1 1 460px;display:flex;flex-direction:column;gap:14px}
.hero h1{color:#fff;font-size:clamp(2rem,4vw,2.9rem);line-height:1.1;margin:0}
.hero p{color:var(--line);font-size:1.1rem;margin:0}
.hero .hero-text p+p{margin-top:8px}
.hero .hero-text a{color:var(--gold-2)}
.hero .caps{color:var(--gold-2)}
.hero .facts{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:18px 28px;margin-top:12px}
.hero .facts strong{display:block;font-family:var(--f-display);font-size:1.8rem;color:#fff}
.hero .facts span{color:var(--line-2);font-size:.9rem}
.hero .pic{flex:1 1 360px;min-height:300px;border-radius:16px;background:var(--navy-2) center/cover no-repeat}
.hero .pic.slides{position:relative;overflow:hidden;background:var(--navy-2);min-height:0;aspect-ratio:3/2;align-self:center}
.hero .slides .slide{position:absolute;inset:0;opacity:0;transition:opacity .9s ease;overflow:hidden}
.hero .slides .slide::before,.hero .slides .slide::after{content:"";position:absolute;background:var(--img) center/cover no-repeat}
.hero .slides .slide::before{inset:-24px;filter:blur(22px) brightness(.55);transform:scale(1.06)}  /* výplň okolo */
.hero .slides .slide::after{inset:0;background-size:contain}                                     /* celá fotka */
.hero .slides .slide.on{opacity:1}
.hero .slides .dots{position:absolute;left:0;right:0;bottom:12px;display:flex;justify-content:center;gap:2px;z-index:1}
.hero .slides .dots button{all:unset;cursor:pointer;width:44px;height:44px;display:grid;place-items:center}
.hero .slides .dots button::before{content:"";width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.55);box-shadow:0 0 0 1px rgba(0,0,0,.25);transition:width .2s,background .2s}
.hero .slides .dots button[aria-current]::before{width:20px;border-radius:4px;background:#fff}
.hero .slides .dots button:focus-visible{outline:2px solid var(--gold-2);outline-offset:-2px;border-radius:6px}
@media (prefers-reduced-motion:reduce){.hero .slides .slide{transition:none}}
.hero .pic.logo{background:var(--paper) center/auto 78% no-repeat}
.hero .btn.ghost{color:#fff;border-color:#a89f88}
/* Návrh úvodu 1: na desktopu vedle sebe, na telefonu fotka před textem. */
.hero-foto{background:var(--cream);color:var(--ink)}
.hero-foto-main{max-width:1500px;margin:0 auto;display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);min-height:clamp(440px,60svh,640px)}
.hero-foto-copy{display:flex;align-items:center;min-width:0;padding:clamp(28px,3.5vw,56px);background:var(--cream)}
.hero-foto .text{width:100%;max-width:520px;display:flex;flex-direction:column;align-items:flex-start;gap:16px}
.hero-foto .caps{color:var(--gold-dark)}
.hero-foto h1{color:#394533;font-size:clamp(2rem,3vw,2.8rem);line-height:1.12;margin:0;text-wrap:balance;overflow-wrap:break-word}
.hero-foto p{color:#514e43;font-size:1.15rem;line-height:1.5;margin:0}
.hero-foto .btn{background:#596247;color:#fff}
.hero-foto .btn:hover{background:#414a34;color:#fff}
.hero-foto-photo{min-width:0;min-height:0}
.hero-foto-photo .pic{position:relative;width:100%;height:100%;min-height:0;overflow:hidden;border-radius:0;background:var(--cream) center/contain no-repeat}
.hero-foto-photo .pic.slides{height:100%;aspect-ratio:auto}
.hero-foto .slides .slide{position:absolute;inset:0;overflow:hidden;opacity:0;transition:opacity .9s ease}
.hero-foto .slides .slide::after{content:"";position:absolute;inset:0;background:var(--img) center bottom/contain no-repeat}
.hero-foto .slides .slide.on{opacity:1}
.hero-foto .slides .dots{position:absolute;left:0;right:0;bottom:8px;z-index:1;display:flex;flex-wrap:wrap;justify-content:center;padding:0 12px}
.hero-foto .slides .dots button{all:unset;display:grid;width:44px;height:44px;place-items:center;cursor:pointer}
.hero-foto .slides .dots button::before{content:"";width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.55);box-shadow:0 0 0 1px rgba(0,0,0,.25);transition:width .2s,background .2s}
.hero-foto .slides .dots button[aria-current]::before{width:20px;border-radius:4px;background:#fff}
.hero-foto .slides .dots button:focus-visible{outline:2px solid var(--gold-2);outline-offset:-2px;border-radius:6px}
.hero-foto .pic.logo{background:var(--paper) center/auto 78% no-repeat}
.hero-foto .pic.logo::before{content:none}
@media(prefers-reduced-motion:reduce){.hero-foto .slides .slide{transition:none}}
.hero-foto-photo .pic.logo{background-size:auto 78%}
.hero-foto-facts{background:#e9e9dc;color:#394533}
.hero-foto-facts .wrap{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px 32px;padding-top:20px;padding-bottom:20px}
.hero-foto-facts .wrap>div{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px}
.hero-foto-facts strong{font-family:var(--f-display);font-size:clamp(1.25rem,2vw,1.8rem);white-space:nowrap}
.hero-foto-facts span{color:#514e43}
.hero-foto-links{background:var(--cream);padding:24px 0 44px}
.hero-foto-links .wrap{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.home-feature{display:flex;flex-direction:column;overflow:hidden;border-radius:10px;background:var(--paper);color:#fff;text-decoration:none;box-shadow:0 2px 12px rgba(28,34,51,.1)}
.home-feature img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain;background:var(--cream)}
.home-feature>span{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:58px;padding:12px 20px;background:#596247;font-family:var(--f-display);font-size:1.25rem}
.home-feature>span span{font-family:var(--f-body);font-size:1.5rem}
.home-feature:hover>span{background:#414a34}
.home-feature:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
.home-feature.info{cursor:default}
.home-feature.info:hover>span{background:#596247}
@media(max-width:900px){
  .hero-foto-main{grid-template-columns:minmax(0,1fr);grid-template-rows:auto;height:auto;min-height:0}
  .hero-foto-photo{order:0}
  .hero-foto-photo .pic,.hero-foto-photo .pic.slides{height:auto;min-height:0;aspect-ratio:3/2}
  .hero-foto-photo .pic.slides[data-slides]{overflow:visible;margin-bottom:44px}
  .hero-foto .slides .dots{top:100%;bottom:auto;height:44px;flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;padding:0;scrollbar-width:none}
  .hero-foto .slides .dots button{flex:0 0 44px}
  .hero-foto .slides .dots button:first-child{margin-left:auto}
  .hero-foto .slides .dots button:last-child{margin-right:auto}
  .hero-foto .slides .dots button::before{width:6px;height:6px;background:#a49c88;box-shadow:none}
  .hero-foto .slides .dots button[aria-current]::before{width:16px;background:#596247}
  .hero-foto-copy{order:1;padding:28px 22px 34px}
  .hero-foto .text{gap:12px}
  .hero-foto h1{font-size:clamp(1.9rem,8vw,2.5rem)}
  .hero-foto p{font-size:1.05rem}
  .hero-foto-facts .wrap{grid-template-columns:1fr;gap:8px;padding-top:18px;padding-bottom:18px}
  .hero-foto-facts .wrap>div{gap:12px}
  .hero-foto-links{padding:18px 0 30px}
  .hero-foto-links .wrap{grid-template-columns:1fr;gap:14px}
  .home-feature img{aspect-ratio:3/2}
}
/* ---- rozložení úvodu (Úvodní stránka → Rozložení) ---- */
.hero-rolovani,.hero-pod,.hero-pres{position:relative}
.hero-rolovani .pic.slides,.hero-pod .pic.slides,.hero-pres .pic.slides{border-radius:0;aspect-ratio:auto;width:100%;height:100%}
.hero-rolovani .slides .slide::before,.hero-pod .slides .slide::before{display:none}
.hero-rolovani .slides .slide::after,.hero-pod .slides .slide::after{background-size:cover}
/* text přes fotky: celá fotka na výšku (neořezaná), po stranách tatáž fotka rozmazaně */
.hero-pres .slides .slide::after{background-size:contain}
.hero-pres .slides .slide::before{inset:-30px;filter:blur(26px) brightness(.5);transform:scale(1.08)}
/* fotky přes celou obrazovku, při rolování přes ně najede průhledný panel s textem */
.hero-rolovani .roll-pic{position:sticky;top:0;height:calc(100svh - var(--hdr,140px));min-height:340px;display:flex;flex-direction:column;justify-content:center;background:var(--navy)}
.hero-rolovani .carousel{--car-h:min(calc(100svh - var(--hdr,140px) - 110px),44vw)}  /* fotky + tečky se vejdou pod hlavičku */
.hero-rolovani .roll-hint{position:absolute;left:50%;bottom:4px;z-index:3;transform:translateX(calc(-50% + 150px));width:44px;height:44px;border-radius:50%;
  display:grid;place-items:center;color:#fff;text-decoration:none;font-size:1.4rem;background:rgba(15,22,48,.35);
  border:1px solid rgba(255,255,255,.5);animation:roll-hint 2s ease-in-out infinite}
@keyframes roll-hint{50%{transform:translate(calc(-50% + 150px),4px)}}
.hero-rolovani .roll-text{position:relative;z-index:2;margin-top:0;padding:0 0 14svh}  /* první obrazovka: jen fotky (a šipka), text až pod ní */
.hero-rolovani .roll-text .wrap{padding-top:0;padding-bottom:0}
.hero-rolovani .roll-text .text{background:rgba(15,22,48,.32);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);
  border:1px solid rgba(255,255,255,.14);border-radius:18px;padding:32px 36px;text-shadow:0 1px 3px rgba(0,0,0,.55)}
.hero-rolovani .roll-text p,.hero-pres p{color:#f3ede0}
.hero-rolovani .facts span,.hero-pres .facts span{color:#e6dfcf}
/* fotka přes celou šířku, text hned pod ní */
.hero-pod .pod-pic{padding-top:10px}
.hero-pod .wrap{padding-top:36px;padding-bottom:44px}
/* text přímo přes fotku (ztmavení zdola) */
.hero-pres{min-height:min(80svh,900px);display:flex;align-items:flex-end}
.hero-pres .pres-pic{position:absolute;inset:0}
.hero-pres .pres-pic::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(180deg,rgba(15,22,48,.05) 30%,rgba(15,22,48,.78))}
.hero-pres .wrap{position:relative;z-index:1;padding-top:120px;padding-bottom:48px;width:100%}
.hero-pres .text{text-shadow:0 1px 3px rgba(0,0,0,.6)}
.hero-pres .slides .dots{bottom:auto;top:16px}
.hero-rolovani .facts,.hero-pod .facts,.hero-pres .facts{display:flex;flex-wrap:wrap;gap:18px 48px}  /* čísla vedle sebe, nezalamovat */
.hero-rolovani .facts strong,.hero-pod .facts strong,.hero-pres .facts strong{white-space:nowrap}
.hero-rolovani .roll-hint{transition:opacity .3s}
.hero-rolovani.roll-on .roll-hint{opacity:0;pointer-events:none}
@media (prefers-reduced-motion:reduce){.hero-rolovani .roll-hint{animation:none}}
@media (max-width:700px){.hero-rolovani .roll-text .text{padding:22px 18px}.hero-rolovani .carousel{--car-h:56vw}}

/* ---------- obsah ---------- */
.page{padding-top:40px;padding-bottom:64px}
.cols{display:flex;flex-wrap:wrap;gap:32px}
.cols>.main{flex:999 1 560px;min-width:0;display:flex;flex-direction:column;gap:24px}
.cols>.side{flex:1 1 300px;display:flex;flex-direction:column;gap:22px}
.box{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:22px}
.box h2,.box h3{margin:0 0 12px}
.box.dark{background:var(--navy);color:#fff;border:0}
.box.dark h2,.box.dark h3{color:#fff}
.box.soft{background:var(--gold-soft);border:0}
.box.locked{background:var(--gold-soft);border:2px dashed var(--gold)}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:20px}
.card{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;text-decoration:none;color:inherit}
.card .pic{height:160px;background:var(--line) url(logo.png) center/72px no-repeat;background-blend-mode:multiply}
.card .pic[style]{background-size:cover;background-blend-mode:normal}
.portrait-grid .card .pic{height:auto;aspect-ratio:3/2;background-position:center top}
.card .body{padding:18px 20px;display:flex;flex-direction:column;gap:8px;flex:1}
.card h3{font-size:1.15rem;margin:0}
.card .meta{font-size:.88rem;color:var(--muted)}
.card.wide{flex-direction:row;flex-wrap:wrap}
.grid-sm{gap:20px}  /* o 20 % menší karty (koně klientů) */
.grid-sm .card .pic{height:128px}
.grid-sm .card .body{padding:14px 16px;gap:6px}
.grid-sm .card h3{font-size:.95rem}
.grid-sm .card .meta{font-size:.8rem}
.grid-xs{gap:20px}  /* o 30 % menší (koně, kteří nás ovlivnili) */
.grid-xs .card .pic{height:112px}
.grid-xs .card .body{padding:12px 14px;gap:5px}
.grid-xs .card h3{font-size:.9rem}
.grid-xs .card .meta{font-size:.78rem}
/* stránka Naši koně: stáj 4, klienti 5, koně, kteří nás ovlivnili 6 na řádek (menší obrazovky méně) */
.grid-4{grid-template-columns:repeat(4,1fr)}
.grid-sm{grid-template-columns:repeat(5,1fr)}
.grid-xs{grid-template-columns:repeat(6,1fr)}
@media (max-width:1000px){.grid-4{grid-template-columns:repeat(3,1fr)}.grid-sm,.grid-xs{grid-template-columns:repeat(4,1fr)}}
@media (max-width:700px){.grid-4,.grid-sm{grid-template-columns:repeat(2,1fr)}.grid-xs{grid-template-columns:repeat(3,1fr)}}
@media (max-width:420px){.grid-4{grid-template-columns:1fr}.grid-xs{grid-template-columns:repeat(2,1fr)}}
.card.wide .pic{flex:1 1 300px;min-height:240px;height:auto}
.card.wide .body{flex:1 1 320px;padding:26px}
.card.wide h3{font-size:1.6rem}
a.card:hover{border-color:var(--gold)}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{display:inline-block;padding:7px 14px;border-radius:999px;border:1px solid var(--line);background:#fff;color:var(--navy);text-decoration:none;font-size:.95rem}
.chip[aria-current]{background:var(--navy);border-color:var(--navy);color:#fff;font-weight:600}
.badge{display:inline-block;font-size:.78rem;font-weight:600;padding:3px 10px;border-radius:999px;background:var(--info-bg);color:var(--navy);white-space:nowrap}
.badge.ok{background:var(--ok-bg);color:var(--ok)}.badge.warn{background:var(--warn-bg);color:var(--warn)}
.badge.bad{background:var(--bad-bg);color:var(--bad)}.badge.gold{background:var(--gold-soft);color:#7a5a1d}
.badge.navy{background:var(--navy);color:#fff}
.list-links{display:flex;flex-direction:column}
.list-links a,.list-links>div{padding:10px 0;border-bottom:1px solid var(--line);text-decoration:none;color:var(--navy);display:flex;justify-content:space-between;gap:12px}
.list-links>:last-child{border-bottom:0}
.prose{font-family:var(--f-serif);font-size:1.12rem;line-height:1.7}
.prose h2,.prose h3{margin-top:1.6rem}
.prose img{border-radius:10px;max-width:100%;height:auto}
.crumbs{font-size:.9rem;color:var(--muted)}
.dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 24px;margin:0}
.dl dt{font-size:.82rem;color:var(--muted)}.dl dd{margin:0;font-weight:600}
.horse-pic{flex:1 1 420px;min-height:360px;border-radius:16px;background:var(--line) center/120px no-repeat;background-blend-mode:multiply}
.timeline{border-left:3px solid var(--line);padding-left:22px;display:flex;flex-direction:column;gap:18px}
.timeline .tl-year{font-family:var(--f-display);color:var(--gold-dark);font-size:1.2rem}
.timeline .tl-text p{margin:2px 0}
.timeline .tl-text ul{margin:4px 0 0;padding-left:1.2em}
.timeline .tl-text li{margin:2px 0}
.flash{padding:12px 16px;border-radius:8px;background:var(--info-bg);margin:0 0 16px}
.flash.ok{background:var(--ok-bg);color:var(--ok)}.flash.err{background:var(--bad-bg);color:var(--bad)}.flash.warn{background:var(--warn-bg);color:var(--warn)}
.pager{display:flex;gap:12px;justify-content:center;align-items:center}

/* ---------- komentáře ---------- */
.comments{display:flex;flex-direction:column;gap:14px}
.comment{background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:16px 18px;display:flex;gap:14px}
.comment .c-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.comment .c-head{display:flex;flex-wrap:wrap;gap:8px;align-items:baseline}
.comment p{margin:0}
.comment.hidden{opacity:.55}

/* ---------- formuláře ---------- */
form.stack{display:flex;flex-direction:column;gap:4px}
label.check{display:flex;gap:8px;align-items:center}
.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin-bottom:18px}
.tabs a{padding:10px 16px;text-decoration:none;color:#4d4a40;border-bottom:3px solid transparent;font-weight:600}
.tabs a[aria-current]{color:var(--navy);border-bottom-color:var(--gold)}
.pin-input{font-size:1.8rem;letter-spacing:.4em;text-align:center;font-family:var(--f-display)}
.creds{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}
.creds div{background:#fff;border:1px dashed var(--gold);border-radius:8px;padding:12px;text-align:center}
.creds code{font-size:1.5rem;background:none;color:var(--navy);font-weight:700}

/* ---------- administrace ---------- */
.admin-main{flex:999 1 560px;min-width:0;padding:28px 28px 56px;display:flex;flex-direction:column;gap:20px}
.admin-main h1{margin:0;font-size:2rem}
.toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between}
.toolbar form{display:flex;flex-wrap:wrap;gap:10px;margin:0;flex:1 1 300px}
.toolbar input:not([type=checkbox]),.toolbar select{margin:0;width:auto;flex:1 1 200px}
.toolbar label.check{margin:0}
.table-wrap{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);overflow-x:auto}
.table-wrap table{margin:0;min-width:620px}
.table-wrap th{font-size:.78rem;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);background:transparent}
.table-wrap td,.table-wrap th{padding:12px 16px;background:transparent}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}
.stat{border-radius:12px;padding:16px;background:var(--info-bg)}
.stat strong{display:block;font-family:var(--f-display);font-size:1.6rem}
.stat.warn{background:var(--warn-bg)}.stat.warn strong{color:var(--warn)}

/* ---------- média ---------- */
.thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px}
.thumbs.big{grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:14px}
.thumb{display:flex;flex-direction:column;gap:4px;font-size:.82rem;background:#fff;border:1px solid var(--line);border-radius:8px;padding:6px;margin:0}
.thumb img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:6px;background:var(--line)}
.thumb form{margin:0}
button.thumb.pick{cursor:pointer;width:auto}
button.thumb.pick:hover{border-color:var(--gold)}
.bnd-editor{background:#fff;border-radius:8px}
.bnd-editor .toastui-editor-defaultUI{border-color:var(--line-2)}
/* editor ve stylu webu: písmo textu, lišta, okna (odkaz, obrázek, tabulka) */
.bnd-editor .toastui-editor-contents,.bnd-editor .toastui-editor-contents p{font-family:var(--f-serif);font-size:1.02rem;line-height:1.65;color:var(--ink)}
.bnd-editor .toastui-editor-contents h1,.bnd-editor .toastui-editor-contents h2,.bnd-editor .toastui-editor-contents h3{font-family:var(--f-display);color:var(--ink);border:0}
.bnd-editor .toastui-editor-contents a{color:var(--navy-2);text-decoration:underline}
.bnd-editor .toastui-editor-defaultUI-toolbar{background:var(--paper);border-bottom-color:var(--line)}
.bnd-editor .toastui-editor-popup{font-family:var(--f-body);border:1px solid var(--line-2);border-radius:12px;box-shadow:0 12px 30px rgba(19,35,74,.14)}
.bnd-editor .toastui-editor-popup-body{padding:16px}
.bnd-editor .toastui-editor-popup-body label{font-size:.9rem;color:var(--muted);font-weight:600;margin:0 0 4px}
.bnd-editor .toastui-editor-popup-body input[type=text]{font:inherit;font-size:1rem;height:auto;padding:9px 12px;border:1px solid var(--line-2);border-radius:8px;background:#fff;margin:0 0 12px;width:100%}
.bnd-editor .toastui-editor-popup-body input[type=text]:focus{outline:2px solid var(--gold-2);border-color:var(--gold)}
.bnd-editor .toastui-editor-button-container{display:flex;justify-content:flex-end;gap:8px;margin-top:4px}
.bnd-editor .toastui-editor-popup-body button{font:600 .95rem/1 var(--f-body);height:auto;width:auto;padding:10px 18px;border-radius:8px;margin:0;cursor:pointer}
.bnd-editor .toastui-editor-popup-body .toastui-editor-ok-button{background:var(--navy);border:1px solid var(--navy);color:#fff}
.bnd-editor .toastui-editor-popup-body .toastui-editor-ok-button:hover{background:var(--navy-2)}
.bnd-editor .toastui-editor-popup-body .toastui-editor-close-button{background:#fff;border:1px solid var(--line-2);color:var(--ink)}
.bnd-editor .toastui-editor-popup-body .toastui-editor-close-button:hover{background:var(--cream)}
/* tlačítka „Odkaz na web“ a „Karta z webu“ v liště editoru; hustší lišta, ať se vejde i do užšího sloupce */
.bnd-editor .toastui-editor-defaultUI-toolbar{display:flex;align-items:center;flex-wrap:nowrap;height:auto;min-height:44px;padding:6px 8px}
.bnd-editor .toastui-editor-toolbar-group{display:flex;align-items:center;gap:2px}
.bnd-editor .toastui-editor-toolbar-icons{margin:0 1px}
.bnd-editor .toastui-editor-toolbar-divider{margin:0 6px;height:18px;align-self:center}
.bnd-editor button.bnd-webbtn{display:inline-flex;align-items:center;gap:5px;width:auto;height:30px;margin:0 3px 0 0;padding:0 8px;
  background:var(--gold-soft);border:1px solid var(--gold-2);border-radius:8px;color:var(--navy);font:600 .85rem/1 var(--f-body);cursor:pointer;white-space:nowrap}
.bnd-editor button.bnd-webbtn:hover{background:var(--gold-2)}
.bnd-editor button.bnd-webbtn svg{flex:none}
.bnd-editor button.bnd-fullbtn{background:#fff;border-color:var(--line-2);padding:0 7px}
.bnd-editor button.bnd-fullbtn[aria-pressed=true]{background:var(--navy);color:#fff;border-color:var(--navy)}
/* editor na celou obrazovku */
.bnd-editor.ed-full{position:fixed;inset:0;z-index:80;border-radius:0;background:#fff}
.bnd-editor.ed-full .toastui-editor-defaultUI{border:0;border-radius:0}
.bnd-editor.ed-full .toastui-editor-contents{max-width:820px;margin:0 auto}
html.ed-full-open{overflow:hidden}
.bnd-editor .toastui-editor-defaultUI{overflow:visible}
.bnd-editor .toastui-editor-toolbar{position:sticky;top:0;z-index:25;background:var(--paper);box-shadow:0 1px 0 var(--line)}
.bnd-editor .toastui-editor-defaultUI-toolbar{border-radius:8px 8px 0 0}
/* okno „Vložit z webu“ */
.webpick{width:min(680px,94vw);max-height:min(640px,86vh);padding:0;border:0;border-radius:16px;background:var(--paper);color:var(--ink);
  box-shadow:0 24px 60px rgba(19,35,74,.28);overflow:hidden;font-family:var(--f-body)}
.webpick[open]{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start}
dialog.webpick{position:fixed;inset:0;margin:auto;min-width:0;min-height:0;height:auto;backdrop-filter:none}  /* Pico dělá z dialogu celou obrazovku */
.webpick .wp-search input[type=search]{width:100%;border-radius:10px}
.webpick::backdrop{background:rgba(19,35,74,.35);backdrop-filter:blur(2px)}
.webpick .wp-head{display:flex;justify-content:space-between;align-items:center;padding:12px 14px 0}
.webpick .wp-mode{display:inline-flex;background:var(--cream);border:1px solid var(--line);border-radius:10px;padding:3px;gap:2px}
.webpick .wp-mode button{all:unset;cursor:pointer;padding:7px 14px;border-radius:8px;font-weight:600;font-size:.92rem;color:var(--muted)}
.webpick .wp-mode button[aria-selected=true]{background:var(--navy);color:#fff}
.webpick .wp-close{all:unset;cursor:pointer;font-size:1.6rem;line-height:1;width:36px;height:36px;display:grid;place-items:center;border-radius:8px;color:var(--muted)}
.webpick .wp-close:hover{background:var(--cream)}
.webpick .wp-search{display:block;padding:10px 14px;margin:0}
.webpick .wp-search input{margin:0;font-size:1.05rem;padding:12px 14px;border-radius:10px;border:1px solid var(--line-2);background:#fff}
.webpick .wp-list{list-style:none;margin:0;padding:0 8px 8px;overflow:auto;flex:1}
.webpick .wp-list li{display:flex;align-items:center;gap:12px;padding:8px 10px;border-radius:10px;cursor:pointer;margin:0}
.webpick .wp-list li[aria-selected=true]{background:var(--gold-soft)}
.webpick .wp-img{flex:none;width:52px;height:40px;border-radius:7px;background:var(--line) center/cover no-repeat}
.webpick .wp-noimg{background:var(--cream) url("logo.png") center/60% no-repeat}
.webpick .wp-text{flex:1;min-width:0;display:flex;flex-direction:column}
.webpick .wp-text strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.webpick .wp-text small{color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.webpick .wp-type{flex:none;font-size:.78rem;font-weight:600;color:var(--gold-dark);background:var(--cream);border:1px solid var(--line);border-radius:999px;padding:3px 9px}
.webpick .wp-empty{color:var(--muted);cursor:default}
.webpick .wp-hint{margin:0;padding:8px 16px 12px;font-size:.8rem;color:var(--muted);border-top:1px solid var(--line)}
.webpick kbd{font:600 .75rem var(--f-body);background:#fff;border:1px solid var(--line-2);border-radius:5px;padding:1px 5px;margin-right:2px;color:var(--ink)}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
/* karta vložená do textu */
.web-card{display:flex;align-items:center;gap:16px;margin:20px 0;padding:14px;border:1px solid var(--line);border-radius:var(--radius);
  background:var(--paper);color:var(--ink);text-decoration:none;font-family:var(--f-body);transition:box-shadow .15s,border-color .15s}
a.web-card:hover{border-color:var(--gold-2);box-shadow:0 8px 24px rgba(19,35,74,.08)}
.web-card .wc-img{flex:none;width:120px;height:90px;border-radius:10px;background:var(--line) center/cover no-repeat}
.web-card .wc-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.web-card .wc-title{font-family:var(--f-display);font-size:1.2rem;line-height:1.25}
.web-card .wc-act{flex:none;font-size:1.4rem;color:var(--gold-dark)}
.seminar-card .wc-act{font-size:1rem}
@media (max-width:560px){.web-card{flex-wrap:wrap}.web-card .wc-img{width:100%;height:150px}.seminar-card .wc-act{width:100%}}
.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px}
.gallery a{display:block}.gallery img{border-radius:10px;aspect-ratio:4/3;object-fit:cover;width:100%}

/* ---------- patička ---------- */
.site-foot{background:var(--paper);border-top:1px solid var(--line);color:#4d4a40;font-size:.95rem}
.site-foot .wrap{display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px 32px;padding-top:26px;padding-bottom:26px}
.site-foot strong{color:var(--navy)}
.demo-bar{background:var(--gold-soft);color:#5c4515;text-align:center;font-size:.88rem;padding:6px 12px}

@media (max-width:640px){
  body{font-size:16px}
  .wrap,.narrow{padding:0 16px}
  .hero .wrap{padding-top:36px;padding-bottom:36px}
  .admin-main{padding:20px 16px 40px}
  .site-head .wrap{gap:8px 16px}
  .who{margin-left:auto}
  .site-nav{order:3;flex:1 1 100%;flex-wrap:nowrap;overflow-x:auto;gap:18px;scrollbar-width:none;margin:0 -16px;padding:0 16px}
  .site-nav a{white-space:nowrap}
  .dl{grid-template-columns:1fr}
  .horse-pic{min-height:240px}
}

/* semináře: leták v přirozené velikosti (bez barevné výplně pod ním) a obsazenost */
.card.wide .poster{flex:1 1 300px;max-width:520px;margin:0;padding:20px 0 20px 20px;align-self:flex-start}
.card.wide .poster img{display:block;width:100%;height:auto;border-radius:10px;box-shadow:0 2px 10px rgba(19,35,74,.12)}
@media (max-width:700px){.card.wide .poster{padding:16px 16px 0;max-width:none}}
.occupancy{display:flex;flex-direction:column;gap:10px;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:var(--paper)}
.occ-head{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:.95rem}
.occ-left{color:var(--navy);font-weight:600}
.occ-full{color:var(--bad);font-weight:600}
.occ-bar{height:8px;border-radius:99px;background:var(--line);overflow:hidden;margin-top:4px}
.occ-bar span{display:block;height:100%;background:var(--gold);border-radius:99px}

/* aktuality: hlavní zprávy přes celou šířku, starší jako menší karty */
.news-list{display:flex;flex-direction:column;gap:16px}
.news-row{display:flex;gap:24px;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:22px 26px;text-decoration:none;color:inherit;transition:border-color .15s,box-shadow .15s}
.news-row:hover,.card:hover{border-color:var(--gold);box-shadow:0 4px 18px rgba(19,35,74,.08)}
.news-row .thumb{flex:0 0 220px;min-height:150px;border-radius:10px;background:var(--line) center/cover no-repeat}
.news-row .txt{display:flex;flex-direction:column;gap:8px;min-width:0;flex:1}
.news-row h2{font-size:1.45rem;margin:0;line-height:1.25}
.news-row p{margin:0;color:var(--ink);max-width:75ch;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.news-row .more{margin-top:auto;color:var(--gold);font-weight:600;font-size:.95rem}
.label{font-family:Cinzel,serif;font-size:.78rem;letter-spacing:.08em;text-transform:uppercase;color:var(--gold);font-weight:600}
.news-sub{margin:12px 0 0;font-size:1.3rem}
.card .excerpt{margin:0;font-size:.92rem}
.card .excerpt.clamp{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
@media (max-width:700px){.news-row{flex-direction:column;padding:18px;gap:14px}.news-row .thumb{flex-basis:auto;min-height:180px}.news-row h2{font-size:1.25rem}}

/* správa: workshopy a DressageLine */
.ws-row{display:flex;flex-direction:column;gap:12px}
.ws-head{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}
.ws-money{display:flex;flex-direction:column;align-items:flex-end}
.ws-stats{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px;margin-top:16px}
.ws-stats .box{margin:0;display:flex;flex-direction:column;gap:6px}
.row-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.row-actions form{margin:0}
.dl-mod{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.dl-mod form{margin:0;display:inline}
button.linkish{all:unset;cursor:pointer;color:var(--bad);font-weight:700;padding:0 6px;border-radius:6px}
button.linkish:hover{background:var(--bad-bg)}
.list-links form{margin:0}
.dl-checks{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:2px 12px;padding:8px 0}
.dl-checks label.check{flex-wrap:nowrap;align-items:center;gap:10px;margin:0;padding:6px 0;line-height:1.3}
.dl-checks label.check input{flex:none;margin:0}
.dl-checks label.check span{min-width:0}
.dl-items details{margin:4px 0}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width:600px){.grid-2{grid-template-columns:1fr}}
label.check{display:flex;flex-wrap:wrap;align-items:center;gap:2px 10px}
label.check > small{flex-basis:100%;padding-left:32px;margin-top:-2px}
.demo-bar.warn-bar{background:var(--bad-bg);color:var(--bad)}
.demo-bar.warn-bar a{color:inherit;font-weight:700}

details.puvodni{padding:14px 20px}
details.puvodni summary{cursor:pointer;font-weight:600;color:var(--navy)}
details.puvodni[open] summary{margin-bottom:10px}

/* tabulka aktualita × kůň */
.hl-wrap{max-height:72vh;overflow:auto}
.hl-table thead th{position:sticky;top:0;background:var(--paper);z-index:2}
.hl-table th.hl-horse{text-align:center;vertical-align:bottom;min-width:44px;max-width:60px;padding:6px 4px}
.hl-table th.hl-horse span{writing-mode:vertical-rl;transform:rotate(180deg);white-space:nowrap;font-size:.8rem;max-height:150px;overflow:hidden;text-overflow:ellipsis}
.hl-table th.hl-horse.client span{color:var(--gold-dark)}
.hl-table th.hl-horse.sold span{color:var(--muted);font-style:italic}
.hl-table td.hl-cell{text-align:center;padding:4px;position:relative}
.hl-table td.hl-cell label{display:grid;place-items:center;min-height:36px;margin:0;cursor:pointer}
.hl-table td.hl-cell input{margin:0}
.hl-table td.hl-in-text::after,.hl-dot{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--gold)}
.hl-table td.hl-in-text::after{position:absolute;top:6px;right:6px}
.hl-table tr.hl-mismatch td{background:#fdf6e6}
.table-wrap .cl-table{min-width:800px;table-layout:fixed}
.cl-table th:first-child{width:100px}
.cl-table th:nth-child(n+3){width:94px;text-align:center;white-space:normal}
.cl-table td:nth-child(2){overflow-wrap:anywhere}
.cl-table td.hl-cell label{min-width:44px;min-height:44px}
/* historie změn */
.audit-table td{vertical-align:top}
.audit-diff{margin:0;padding-left:1.1em;font-size:.88rem}
.audit-diff li{margin:0 0 2px;list-style:disc}
.audit-diff del{color:var(--muted);text-decoration:line-through}
.audit-diff ins{text-decoration:none;background:#eef6e8;padding:0 3px;border-radius:3px}
.audit-table .badge.audit-smazáno{background:#f6e1df;color:#8a2a1f}
.audit-table .badge.audit-archivováno,.audit-table .badge.audit-skryto{background:#f3ecdc;color:#6b5420}
.audit-table .badge.audit-vytvořeno,.audit-table .badge.audit-nahráno{background:#e5f0e0;color:#2f5a22}
/* mapa na stránce (Kontakt, Stáj) */
.map-box{display:flex;flex-direction:column;gap:14px;border-top:1px solid var(--line);padding-top:24px}
.map-frame{border-radius:16px;overflow:hidden;border:1px solid var(--line);aspect-ratio:16/9;background:var(--line)}
.map-frame iframe{display:block;width:100%;height:100%;border:0}
.map-links{display:flex;flex-wrap:wrap;gap:10px}
@media (max-width:640px){.map-frame{aspect-ratio:4/3}}
/* správa: řádek „adresa + ikona“ (sociální sítě v patičce, obrázek u mapy) – vždy na jednom řádku */
.soc-row{display:flex;align-items:flex-end;gap:8px;flex-wrap:nowrap;margin:0 0 6px}
.soc-row label{margin:0;flex:1 1 auto;min-width:0}
.soc-row label input{margin-bottom:0}
.soc-pv{width:38px;height:38px;flex:0 0 38px;object-fit:contain;border:1px solid var(--line);border-radius:8px;background:#fff;margin-bottom:4px}
.soc-pv.round{border-radius:50%;object-fit:cover}
.soc-row .soc-btn{flex:0 0 auto;margin:0 0 4px;white-space:nowrap}
.soc-del{flex:0 0 38px;width:38px;height:38px;margin:0 0 4px;padding:0;display:inline-flex;align-items:center;justify-content:center;
  border:1px solid var(--line-2);border-radius:8px;background:#fff;color:#8a2a1f;cursor:pointer;box-shadow:none}
.soc-del:hover{background:#f6e1df}
.soc-del[hidden]{display:none}
.soc-pick:empty{display:none}
/* správa: kariéra koně – řádky rok + text */
.kar{border:1px solid var(--line);border-radius:12px;padding:12px 14px}
.kar-row{display:grid;grid-template-columns:90px 1fr auto;gap:10px;align-items:start;padding:10px 0;border-bottom:1px dashed var(--line)}
.kar-row:last-child{border-bottom:0}
.kar-row input.kar-rok{margin:0;font-weight:700}
.kar-text{display:flex;flex-direction:column;gap:4px}
.kar-text textarea{margin:0;min-height:62px;resize:vertical;overflow:hidden}
.kar-tools,.kar-act{display:flex;gap:4px}
.kar-tools button,.kar-act button{width:auto;min-height:0;margin:0;padding:2px 9px;font-size:.85rem;line-height:1.6;border:1px solid var(--line-2);
  background:#fff;color:var(--navy);border-radius:6px;cursor:pointer;box-shadow:none}
.kar-tools button:hover,.kar-act button:hover{background:var(--gold-soft)}
.kar-act{padding-top:28px}
@media (max-width:640px){.kar-row{grid-template-columns:1fr}.kar-act{padding-top:0;justify-content:flex-end}}
/* Kontakt: text o cestě + kulatý obrázek obce z výšky */
.map-intro.with-pic{display:grid;grid-template-columns:1fr 280px;gap:28px;align-items:center}
.map-pic{margin:0;text-align:center}
.map-pic img{width:100%;max-width:280px;aspect-ratio:1;object-fit:cover;border-radius:50%;display:block;margin:0 auto;
  filter:drop-shadow(0 10px 24px rgba(19,35,74,.18));transition:transform .6s ease}
.map-pic img:hover{transform:rotate(-8deg) scale(1.02)}
.map-pic figcaption{margin-top:10px;font-family:var(--f-caps,"Cinzel",serif);font-size:.78rem;letter-spacing:.14em;text-transform:uppercase;color:var(--gold-dark)}
@media (max-width:720px){.map-intro.with-pic{grid-template-columns:1fr}.map-pic img{max-width:220px}}
/* Semináře: další termíny a proběhlé jako karty */
.ws-more,.ws-past{display:flex;flex-direction:column;gap:16px}
.ws-grid{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}
.ws-card .ws-pic{aspect-ratio:4/3;background-size:cover;background-position:center top}
.ws-card .body{display:flex;flex-direction:column;gap:8px;height:100%}
.ws-card h3{margin:0;font-size:1.2rem}
.ws-sum{margin:0;font-size:.95rem}
.ws-free{font-weight:600;color:var(--gold-dark)}
.ws-btn{margin-top:auto;align-self:flex-start}
.ws-done{opacity:.82;filter:saturate(.75)}
.ws-done:hover{opacity:1;filter:none}
/* Semináře: vstup do aplikace Workshopy (archiv, přihlášky, podklady jsou tam) */
.ws-app{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:18px 32px;padding:28px 32px;border-radius:18px;
  background:linear-gradient(120deg,var(--navy),var(--navy-2));color:#fff;margin-top:8px}
.ws-app h2{margin:4px 0 6px;color:#fff}
.ws-app p{margin:0;color:#dfe3ef;max-width:560px}
.ws-app .caps{color:var(--gold-2)}
.ws-app-btns{display:flex;flex-wrap:wrap;gap:10px}
.ws-app .btn.light{color:#fff;border-color:rgba(255,255,255,.5);background:transparent}
.ws-app .btn.light:hover{background:rgba(255,255,255,.1)}
@media (max-width:640px){.ws-app{padding:22px 18px}}
.mpick-sec{display:flex;flex-direction:column;gap:4px;margin-top:10px}
.mpick-sec .caps{color:var(--gold-dark);font-size:.72rem;letter-spacing:.12em}
/* velikost písma z editoru (A+ / A−) */
.t-big{font-size:1.25em;line-height:1.35}
.t-small{font-size:.85em}
/* správa: Vzhled */
.lk-colors{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.lk-color{display:flex;align-items:center;gap:10px}
.lk-color input[type=color]{width:64px;height:40px;padding:2px;margin:0;border-radius:8px;cursor:pointer}
.lk-code{font:13px/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:pre;tab-size:2}
.lk-preview{--lk-navy:#13234a;--lk-gold:#b48a3c;--lk-gold-dark:#8a6a2c;--lk-gold-soft:#f3e6c8;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#faf5ea}
.lk-nav{display:flex;gap:12px;align-items:center;padding:10px 12px;background:#fffdf8;border-bottom:1px solid var(--line);font-size:13px}
.lk-brand{font-family:var(--f-display,serif);font-weight:700;color:var(--lk-navy);margin-right:auto}
.lk-link{color:#4d4a40;font-weight:600;padding-bottom:2px;border-bottom:2px solid transparent}
.lk-link.on{color:var(--lk-navy);border-bottom-color:var(--lk-gold)}
.lk-body{padding:14px;display:flex;flex-direction:column;gap:6px}
.lk-body h3{margin:0;color:var(--lk-navy);font-size:1.3rem}
.lk-body p{margin:0;font-size:14px}
.lk-caps{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--lk-gold-dark)}
.lk-year{font-family:var(--f-display,serif);color:var(--lk-gold-dark);font-size:1.1rem}
.lk-btns{display:flex;gap:8px;flex-wrap:wrap}
.lk-btn{padding:6px 12px;border-radius:8px;font-weight:700;font-size:13px}
.lk-btn.gold{background:var(--lk-gold);color:var(--lk-navy)}
.lk-btn.navy{background:var(--lk-navy);color:#fff}
@media (max-width:640px){.lk-colors{grid-template-columns:1fr}}
.map-edit{padding:12px 14px}
.map-edit summary{cursor:pointer;list-style-position:outside}
.map-edit:not([open]){background:transparent;border-style:dashed}
.del-list{margin:0;padding-left:1.1em}
.del-list li{margin:6px 0}
.badge.online{background:#e7ecf6;color:var(--navy)}
/* správa DL: délka přístupu */
.dl-len{color:var(--muted)}
.dl-len.perm{color:#2f5a22;font-weight:600}
.dl-perm{font-size:.82rem;color:var(--navy);text-decoration:underline}
.dl-len-pick{display:flex;flex-wrap:wrap;gap:6px 20px;align-items:center}
.dl-len-pick label{margin:0;display:flex;align-items:center;gap:6px}
/* správa: příručka */
.help{display:grid;grid-template-columns:240px 1fr;gap:28px;align-items:start}
.help-toc{position:sticky;top:16px;padding:14px 16px;font-size:.92rem}
.help-toc ol{margin:8px 0 0;padding:0;list-style:none}
.help-toc li{margin:0;padding:0;list-style:none}
.help-toc li a{display:block;padding:5px 0;line-height:1.3}
.help-text{max-width:860px}
.help-text h2{margin-top:2rem;padding-top:.6rem;border-top:1px solid var(--line);scroll-margin-top:16px}
.help-text h3{scroll-margin-top:16px}
.help-text table{font-size:.95rem}
.help-text code{background:var(--gold-soft);padding:1px 5px;border-radius:4px;font-size:.88em}
.help-text blockquote{border-left:3px solid var(--gold);margin:1rem 0;padding:.4rem 1rem;background:#fff}
@media (max-width:900px){.help{grid-template-columns:1fr}.help-toc{position:static}}

/* ---------- správa: kompaktní vzhled (jako administrace DressageLine) ----------
   Pico na širokých obrazovkách zvětšuje písmo až na 131 % a formuláře mají velké okraje – ve správě je to
   roztahané. html.bnd-admin (admin_base.html) drží písmo 15 px a zmenšuje mezery; veřejný web se nemění. */
html.bnd-admin{--pico-font-size:93.75%;--pico-line-height:1.45;--pico-spacing:.75rem;
  --pico-form-element-spacing-vertical:.42rem;--pico-form-element-spacing-horizontal:.7rem;
  --pico-typography-spacing-vertical:.75rem;--pico-block-spacing-vertical:.9rem;--pico-block-spacing-horizontal:1.1rem;
  --pico-border-radius:.4rem}
html.bnd-admin body{font-size:1rem}
html.bnd-admin .admin-main{gap:14px;padding:20px 26px 48px;max-width:1500px}
html.bnd-admin .admin-main h1{font-size:1.75rem;line-height:1.15}
html.bnd-admin .admin-main h2{font-size:1.3rem;margin-bottom:.5rem}
html.bnd-admin .admin-main h3{font-size:1.08rem}
html.bnd-admin label,html.bnd-admin legend{font-size:.9rem;font-weight:600;margin-bottom:.25rem}
html.bnd-admin label.check,html.bnd-admin fieldset label{font-weight:400}
html.bnd-admin input:not([type=checkbox]):not([type=radio]):not([type=range]),html.bnd-admin select,html.bnd-admin textarea{
  font-size:.95rem;margin-bottom:.6rem}
html.bnd-admin input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),html.bnd-admin select{height:auto}
html.bnd-admin button,html.bnd-admin [role=button],html.bnd-admin input[type=submit],html.bnd-admin .btn{font-size:.92rem}
html.bnd-admin input[type=checkbox],html.bnd-admin input[type=radio]{width:1.1em;height:1.1em}
html.bnd-admin fieldset{margin-bottom:.6rem}
html.bnd-admin details{margin-bottom:.4rem}
html.bnd-admin details summary{font-size:.95rem}
html.bnd-admin table{font-size:.92rem}
html.bnd-admin :where(th,td){padding:.45rem .6rem}
html.bnd-admin .box,html.bnd-admin article{padding:14px 18px}
@media (max-width:700px){html.bnd-admin .admin-main{padding:16px 12px 40px}}
html.bnd-admin .admin-main .stack{gap:12px}
html.bnd-admin .admin-main .cols{gap:20px}
html.bnd-admin label > input:not([type=checkbox]):not([type=radio]),html.bnd-admin label > select,html.bnd-admin label > textarea{margin-bottom:0}
@media (max-width:700px){html.bnd-admin input:not([type=checkbox]):not([type=radio]):not([type=range]),html.bnd-admin select,html.bnd-admin textarea{font-size:16px}}  /* iPhone jinak při psaní přiblíží stránku */
.lay-opt{flex-wrap:nowrap!important;align-items:flex-start!important;gap:10px!important;margin:0;line-height:1.3}
.lay-opt input{flex:none;margin:2px 0 0}
.lay-opt span{min-width:0}
/* pás fotek (rozložení „při rolování“ a „text pod fotkami“): aktuální celá uprostřed, kraje předchozí a další */
.carousel{--car-h:min(64svh,44vw);position:relative;overflow:hidden;padding:14px 0}
.car-track{position:relative;height:var(--car-h)}
.car-slide{--d:0;position:absolute;top:0;left:50%;margin:0;height:var(--car-h);aspect-ratio:3/2;border-radius:14px;overflow:hidden;
  background:var(--navy-2);opacity:.35;cursor:pointer;
  transform:translateX(calc(-50% + var(--d) * (var(--car-h) * 1.5 + 18px))) scale(.9);
  transition:transform .8s cubic-bezier(.4,0,.2,1),opacity .8s}
.car-slide.on{opacity:1;transform:translateX(-50%);cursor:default;box-shadow:0 18px 40px rgba(0,0,0,.35);z-index:1}
.car-slide.far{opacity:0;pointer-events:none}
.car-slide.jump{transition:none;opacity:0}
.car-slide img{display:block;width:100%;height:100%;object-fit:cover}
.car-btn{position:absolute;top:50%;transform:translateY(-50%);z-index:2;width:44px;height:44px;border-radius:50%;padding:0;margin:0;
  border:1px solid rgba(255,255,255,.55);background:rgba(15,22,48,.45);color:#fff;font-size:1.6rem;line-height:1;cursor:pointer}
.car-btn:hover{background:rgba(15,22,48,.75)}
.car-prev{left:max(10px,calc(50% - var(--car-h) * .75 - 64px))}
.car-next{right:max(10px,calc(50% - var(--car-h) * .75 - 64px))}
.car-foot{display:flex;justify-content:center;align-items:center;gap:14px;padding:2px 0 12px;color:#e6dfcf;font-size:.9rem}
.car-foot .dots{display:flex;gap:2px}
.car-foot .dots button{all:unset;cursor:pointer;width:24px;height:24px;display:grid;place-items:center}
.car-foot .dots button::before{content:"";width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.45);transition:width .2s,background .2s}
.car-foot .dots button[aria-current]::before{width:20px;border-radius:4px;background:var(--gold-2)}
.car-foot .dots button:focus-visible{outline:2px solid var(--gold-2);border-radius:6px}
.car-count{font-variant-numeric:tabular-nums;min-width:3.5em;text-align:center}
@media (max-width:700px){.carousel{--car-h:56vw}.car-slide{transform:translateX(calc(-50% + var(--d) * (var(--car-h) * 1.5 + 10px))) scale(.9)}.car-slide.on{transform:translateX(-50%)}.car-btn{display:none}}
@media (prefers-reduced-motion:reduce){.car-slide{transition:none}}
.home-carousel{background:var(--cream);padding:12px 0 40px;color:#394533}
.home-carousel .carousel{--car-h:min(56svh,48vw,560px)}
.home-carousel .car-slide{background:var(--cream)}
.home-carousel .car-slide img{object-fit:contain}
.home-carousel .car-foot{max-width:1200px;margin:0 auto;padding:0 16px;color:#514e43}
.home-carousel .car-foot .dots{position:relative;min-width:0;max-width:calc(100% - 80px);overflow-x:auto;scrollbar-width:none}
.home-carousel .car-foot .dots button{flex:0 0 44px;width:44px;height:44px}
.home-carousel .car-foot .dots button::before{background:#a49c88}
.home-carousel .car-foot .dots button[aria-current]::before{background:#596247}
.home-carousel .car-btn{display:block}
@media(max-width:700px){
  .home-carousel .carousel{--car-h:56vw}
  .home-carousel .car-foot .dots button::before{width:6px;height:6px}
  .home-carousel .car-foot .dots button[aria-current]::before{width:16px}
}
