/* ==========================================================================
   Beries — veřejný web
   Vizuál převzatý 1:1 z prototypu Beries_black_and_white.html; inline styly
   z prototypu jsou tady vytažené do tříd, aby šel obsah plnit z administrace.
   ========================================================================== */

:root{
  --gold:#C9A961;
  --ink:#1C1C1C;
  --cream:#F5EFE7;
  --cream-2:#FBF8F2;
  --sand:#EDE7DC;
  --muted:#5a564f;
  --muted-dark:#b3ab9e;
  --line:#e0d8c9;
  --serif:'Playfair Display',Georgia,serif;
  --sans:'Inter',-apple-system,BlinkMacSystemFont,sans-serif;
}

*{box-sizing:border-box;}
[hidden]{display:none !important;}
html{scroll-behavior:smooth;}
body{margin:0;-webkit-font-smoothing:antialiased;background:var(--cream);color:var(--ink);font-family:var(--sans);}
img{max-width:100%;display:block;}
a{color:inherit;}

.ber-page{width:100%;overflow-x:hidden;}

/* ---------- sdílené prvky ---------- */
.ber-eyebrow{font-family:var(--sans);font-size:18px;font-weight:500;letter-spacing:.28em;text-transform:uppercase;color:var(--gold);}
.ber-rule{width:56px;height:1px;background:var(--gold);margin-top:18px;}
.ber-head{margin-bottom:30px;}
.ber-head-center{text-align:center;margin-bottom:clamp(56px,7vw,96px);position:relative;z-index:2;}
.ber-head-center .ber-rule{margin:18px auto 0;}
.ber-h2{font-family:var(--serif);font-weight:500;font-size:clamp(34px,4.2vw,56px);line-height:1.12;letter-spacing:-.01em;margin:0 0 30px;}
.ber-lead{font-size:18px;line-height:1.9;font-weight:300;color:var(--muted);max-width:460px;margin:0 0 40px;}
.ber-link{display:inline-flex;align-items:center;gap:12px;font-family:var(--sans);font-size:17px;letter-spacing:.04em;color:var(--ink);border-bottom:1.5px solid var(--gold);padding-bottom:8px;cursor:pointer;text-decoration:none;}
.ber-link .chev{color:var(--gold);font-size:20px;line-height:1;transition:transform .3s ease;}
.ber-link:hover .chev{transform:translateX(4px);}
.ber-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:clamp(48px,7vw,110px);align-items:center;max-width:1360px;margin:0 auto;}

/* ---------- NAV ---------- */
.ber-nav{position:fixed;top:0;left:0;right:0;z-index:50;display:flex;align-items:center;justify-content:space-between;
  padding:34px clamp(24px,4vw,64px);transition:background-color .4s ease,backdrop-filter .4s ease,padding .4s ease;}
.ber-nav.scrolled{backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-bottom:1px solid rgba(28,28,28,.07);padding-top:18px;padding-bottom:18px;}
.ber-nav-logo{height:26px;width:auto;opacity:0;transform:translateY(-22px);transition:opacity .6s ease,transform .6s cubic-bezier(.22,1,.36,1),filter .4s ease;}
.ber-nav[data-logo="light"] .ber-nav-logo{filter:brightness(0) invert(1);}
.ber-nav[data-logo="dark"] .ber-nav-logo{filter:none;}
.ber-nav-right{display:flex;align-items:center;gap:44px;}
.ber-nav-links{display:flex;gap:44px;font-size:16px;letter-spacing:.14em;text-transform:uppercase;color:#F1EBDF;transition:color .4s ease;}
.ber-nav-links a{color:inherit;text-decoration:none;position:relative;padding-bottom:3px;}
.ber-nav-links a::after{content:'';position:absolute;left:0;bottom:0;width:0;height:1px;background:var(--gold);transition:width .35s ease;}
.ber-nav-links a:hover::after{width:100%;}
.ber-nav[data-links="dark"] .ber-nav-links{color:var(--ink);}
.ber-nav[data-links="light"] .ber-nav-links{color:#F1EBDF;}
.ber-menu-icon{display:none;flex-direction:column;gap:5px;width:26px;background:none;border:0;padding:0;cursor:pointer;}
.ber-menu-icon span{height:1.5px;background:#F1EBDF;transition:background .4s ease;}
.ber-menu-icon span:last-child{background:var(--gold);width:60%;}
.ber-nav[data-links="dark"] .ber-menu-icon span{background:var(--ink);}
.ber-nav[data-links="dark"] .ber-menu-icon span:last-child{background:var(--gold);}

.ber-mobile-menu{position:fixed;inset:0;z-index:60;background:#141310;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:28px;}
.ber-mobile-menu a{font-family:var(--serif);font-size:30px;color:var(--cream);text-decoration:none;}
.ber-mobile-menu a.gold{font-family:var(--sans);font-size:13px;letter-spacing:.16em;text-transform:uppercase;color:var(--gold);border:1px solid var(--gold);padding:16px 30px;margin-top:12px;}
.ber-mobile-close{position:absolute;top:24px;right:28px;background:none;border:0;color:var(--cream);font-size:38px;line-height:1;cursor:pointer;}

/* ---------- HERO ---------- */
.ber-hero{position:relative;width:100%;height:100vh;min-height:640px;overflow:hidden;background:var(--ink);}
.ber-hero-layerR{position:absolute;inset:0;clip-path:polygon(52% 0,100% 0,100% 100%,42% 100%);background:var(--ink);}
.ber-hero-layerR img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:right center;mix-blend-mode:multiply;}
.ber-hero-veilR{position:absolute;inset:0;background:linear-gradient(180deg,rgba(20,19,16,.42) 0%,rgba(20,19,16,.32) 45%,rgba(20,19,16,.6) 100%);}
.ber-hero-layerL{position:absolute;inset:0;clip-path:polygon(0 0,52% 0,42% 100%,0 100%);background:var(--sand);}
.ber-hero-layerL img{position:absolute;left:0;bottom:0;width:62%;height:56%;object-fit:contain;object-position:left bottom;}
.ber-hero-veilL{position:absolute;inset:0;background:linear-gradient(115deg,rgba(245,239,231,.55) 0%,rgba(245,239,231,.12) 55%,rgba(245,239,231,0) 100%);}
.ber-hero-seam{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:3;}
.ber-hero-copyL{position:absolute;top:17%;left:clamp(40px,6vw,104px);z-index:6;}
.ber-hero-copyR{position:absolute;bottom:17%;right:clamp(40px,6vw,104px);z-index:6;text-align:right;}
.ber-hero-copyL h1,.ber-hero-copyR h2{font-family:var(--serif);font-weight:600;font-size:clamp(34px,3.6vw,52px);line-height:1;letter-spacing:-.01em;margin:0;}
.ber-hero-copyL h1{color:var(--ink);}
.ber-hero-copyR h2{color:var(--cream);}
/* Dělicí čára loga musí ležet přesně na švu hera. Hodnoty níže jsou jen
   výchozí (pro případ bez JS) — přesné dopočítá syncHeroSplit v site.js. */
.ber-hero-logo{--split-top:41%;--split-bot:36%;
  position:absolute;top:50%;left:52%;transform:translate(-50%,-50%);z-index:5;width:clamp(300px,42vw,600px);pointer-events:none;}
.ber-hero-logo-inner{position:relative;width:100%;}
.ber-logo-mask{width:100%;aspect-ratio:542.7243/155.0214;
  -webkit-mask-image:url("/assets/img/logo-beries.svg");mask-image:url("/assets/img/logo-beries.svg");
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;
  -webkit-mask-size:contain;mask-size:contain;}
.ber-logo-mask-dark{background-color:var(--ink);clip-path:polygon(0 0,var(--split-top) 0,var(--split-bot) 100%,0 100%);}
.ber-logo-mask-light{position:absolute;inset:0;background-color:var(--cream);clip-path:polygon(var(--split-top) 0,100% 0,100% 100%,var(--split-bot) 100%);}
.ber-scroll-hint{position:absolute;bottom:34px;left:50%;transform:translateX(-50%);z-index:6;width:1px;height:56px;background:rgba(201,169,97,.35);overflow:hidden;}
.ber-scroll-hint span{position:absolute;top:0;left:0;width:100%;height:40%;background:var(--gold);animation:berScroll 2.4s ease-in-out infinite;}
@keyframes berScroll{0%{transform:translateY(-100%);}60%,100%{transform:translateY(250%);}}

/* ---------- O NÁS ---------- */
.ber-about{background:var(--cream-2);padding:clamp(72px,9vw,140px) clamp(24px,4vw,64px);scroll-margin-top:80px;}
.ber-about-imgwrap{overflow:hidden;}
.ber-about-img{width:100%;height:clamp(360px,42vw,520px);object-fit:cover;}
.ber-reveal-lines > span{display:block;}

/* ---------- PROCES ---------- */
.ber-proces{background:var(--cream);padding:clamp(80px,10vw,150px) clamp(24px,4vw,64px);position:relative;overflow:hidden;scroll-margin-top:80px;}
.ber-proces-artL,.ber-proces-artR{position:absolute;top:50%;transform:translateY(-50%);height:auto;object-fit:contain;opacity:.22;pointer-events:none;}
.ber-proces-artL{left:0;width:44%;}
.ber-proces-artR{right:0;width:52%;}
.ber-dual{position:relative;z-index:2;display:grid;grid-template-columns:1fr 1fr;gap:clamp(40px,8vw,120px);max-width:1360px;margin:0 auto;}
.ber-dual-seam{position:absolute;left:50%;top:0;width:1px;height:100%;transform:translateX(-50%);overflow:hidden;}
.ber-dual-seam > div{width:100%;height:100%;background:var(--gold);transform-origin:top center;}
.ber-dual-col{text-align:center;padding:0 clamp(0px,2vw,24px);}
.ber-dual-ico{color:var(--gold);margin-bottom:20px;display:flex;justify-content:center;}
.ber-dual-label{margin-bottom:26px;}
.ber-dual-text{font-family:var(--serif);font-weight:400;font-size:clamp(24px,2.6vw,34px);line-height:1.4;letter-spacing:-.005em;margin:0;color:var(--ink);}

/* ---------- PROJEKTY ---------- */
.ber-projects{background:var(--cream-2);padding:clamp(80px,10vw,150px) clamp(24px,4vw,64px);scroll-margin-top:80px;}
.ber-projects-inner{max-width:1360px;margin:0 auto;}
.ber-projects-head{display:grid;grid-template-columns:1.1fr 1fr;gap:clamp(32px,6vw,90px);align-items:end;margin-bottom:clamp(40px,5vw,64px);}
.ber-projects-head .ber-h2{margin:26px 0 0;}
.ber-projects-head .ber-lead{margin:0;max-width:420px;}

.ber-proj-filters{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:clamp(28px,3.5vw,44px);}
.ber-filter{background:none;border:1px solid var(--line);color:var(--muted);font-family:var(--sans);font-size:12px;letter-spacing:.16em;text-transform:uppercase;padding:11px 20px;cursor:pointer;transition:border-color .3s ease,color .3s ease,background-color .3s ease;}
.ber-filter:hover{border-color:var(--gold);color:var(--ink);}
.ber-filter.active{background:var(--ink);border-color:var(--ink);color:var(--cream);}

.ber-proj-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(24px,3vw,44px);}
.ber-proj-card{position:relative;background:none;border:0;padding:0;margin:0;text-align:left;cursor:pointer;font-family:var(--sans);color:inherit;}
.ber-proj-media{position:relative;overflow:hidden;background:var(--sand);aspect-ratio:4/5;}
.ber-proj-media img{width:100%;height:100%;object-fit:cover;transition:transform 1.1s cubic-bezier(.22,1,.36,1);}
.ber-proj-card:hover .ber-proj-media img{transform:scale(1.05);}
.ber-proj-media::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(20,19,16,0) 45%,rgba(20,19,16,.5) 100%);opacity:0;transition:opacity .5s ease;}
.ber-proj-card:hover .ber-proj-media::after{opacity:1;}
.ber-proj-badge{position:absolute;top:16px;left:16px;z-index:2;background:rgba(245,239,231,.92);color:var(--ink);font-size:11px;letter-spacing:.16em;text-transform:uppercase;padding:7px 12px;}
.ber-proj-badge[data-status="Dokončeno"]{background:rgba(28,28,28,.88);color:var(--cream);}
.ber-proj-badge[data-status="V prodeji"]{background:var(--gold);color:#141310;}
.ber-proj-body{padding:22px 2px 0;}
.ber-proj-cat{font-size:11px;letter-spacing:.24em;text-transform:uppercase;color:var(--gold);}
.ber-proj-title{font-family:var(--serif);font-weight:600;font-size:25px;line-height:1.25;margin:12px 0 8px;}
.ber-proj-meta{font-size:14px;font-weight:300;color:var(--muted);display:flex;gap:14px;flex-wrap:wrap;}
.ber-proj-meta span+span::before{content:'·';margin-right:14px;color:var(--line);}
.ber-proj-empty{grid-column:1/-1;padding:40px 0;color:var(--muted);font-weight:300;}

/* detail projektu */
.ber-modal{position:fixed;inset:0;z-index:80;display:flex;align-items:center;justify-content:center;padding:clamp(0px,4vw,48px);}
.ber-modal-backdrop{position:absolute;inset:0;background:rgba(20,19,16,.72);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);}
.ber-modal-panel{position:relative;background:var(--cream);max-width:1100px;width:100%;max-height:92vh;overflow-y:auto;}
.ber-modal-close{position:absolute;top:14px;right:18px;z-index:3;background:rgba(245,239,231,.9);border:0;font-size:30px;line-height:1;width:44px;height:44px;cursor:pointer;color:var(--ink);}
.ber-modal-hero{width:100%;aspect-ratio:16/9;object-fit:cover;background:var(--sand);}
.ber-modal-content{padding:clamp(28px,4vw,52px);}
.ber-modal-content h3{font-family:var(--serif);font-weight:600;font-size:clamp(28px,3.4vw,42px);margin:14px 0 16px;}
.ber-modal-content .ber-proj-meta{margin-bottom:26px;}
.ber-modal-content p{font-size:17px;line-height:1.9;font-weight:300;color:var(--muted);white-space:pre-line;margin:0 0 26px;}
.ber-modal-specs{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:1px;background:var(--line);border:1px solid var(--line);margin-bottom:30px;}
.ber-modal-specs div{background:var(--cream);padding:18px 20px;}
.ber-modal-specs dt{font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:var(--gold);margin-bottom:8px;}
.ber-modal-specs dd{margin:0;font-size:16px;font-weight:300;}
.ber-modal-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px;margin-bottom:30px;}
.ber-modal-gallery img{width:100%;aspect-ratio:4/3;object-fit:cover;}

/* ---------- SLUŽBY ---------- */
.ber-services{background:var(--cream-2);padding:clamp(80px,10vw,150px) clamp(24px,4vw,64px);scroll-margin-top:80px;}
.ber-services-grid{grid-template-columns:.85fr 1.6fr;gap:clamp(48px,7vw,96px);align-items:start;}
.ber-services-grid .ber-h2{font-size:clamp(32px,3.8vw,50px);line-height:1.16;margin:0;}
.ber-svc-grid{position:relative;display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(32px,4vw,52px);}
.ber-svc-rule{position:absolute;top:0;width:1px;height:100%;background:var(--line);transform-origin:top;transform:translateX(-50%);}
.ber-svc-ico{color:var(--gold);margin-bottom:24px;}
.ber-svc-col h3{font-family:var(--serif);font-weight:600;font-size:23px;margin:0 0 16px;}
.ber-svc-col p{font-size:16px;line-height:1.8;font-weight:300;color:var(--muted);margin:0;}

/* ---------- POPTÁVKA (uvnitř tmavé sekce Kontakt) ---------- */
.ber-inquiry-grid{position:relative;display:grid;grid-template-columns:.9fr 1.1fr;gap:clamp(48px,7vw,110px);
  max-width:1360px;margin:0 auto;align-items:start;padding:clamp(72px,9vw,130px) clamp(24px,4vw,64px);}
.ber-inquiry-copy .ber-h2{font-size:clamp(32px,4vw,52px);color:var(--cream);margin-bottom:20px;}
.ber-inquiry-copy .ber-lead{color:var(--muted-dark);margin-bottom:44px;}
.ber-contact-list{display:flex;flex-direction:column;gap:1px;background:#34302a;border-top:1px solid #34302a;border-bottom:1px solid #34302a;}
.ber-contact-item{display:flex;align-items:baseline;gap:20px;background:var(--ink);padding:18px 2px;text-decoration:none;}
.ber-contact-label{font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:var(--gold);min-width:76px;}
.ber-contact-val{font-size:17px;font-weight:300;color:var(--cream);transition:color .3s ease;}
a.ber-contact-item:hover .ber-contact-val{color:var(--gold);}

.ber-form{display:flex;flex-direction:column;gap:22px;}
.ber-form-row{display:grid;grid-template-columns:1fr 1fr;gap:22px;}
.ber-field{display:flex;flex-direction:column;gap:9px;}
.ber-field label{font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:#918a7e;}
.ber-field label i{color:var(--gold);font-style:normal;}
.ber-field input,.ber-field select,.ber-field textarea{
  font-family:var(--sans);font-size:16px;font-weight:300;color:var(--cream);background:transparent;
  border:0;border-bottom:1px solid #3a352d;padding:12px 2px;transition:border-color .3s ease;border-radius:0;}
/* Roletky na tmavém pozadí: rozbalený seznam kreslí OS, proto tmavé i option. */
.ber-field select option{background:#1C1C1C;color:var(--cream);}
.ber-field select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--gold) 50%),linear-gradient(135deg,var(--gold) 50%,transparent 50%);
  background-position:calc(100% - 13px) 21px,calc(100% - 8px) 21px;background-size:5px 5px;background-repeat:no-repeat;padding-right:28px;}
.ber-field textarea{resize:vertical;line-height:1.7;}
.ber-field input:focus,.ber-field select:focus,.ber-field textarea:focus{outline:none;border-bottom-color:var(--gold);}
.ber-field input::placeholder,.ber-field textarea::placeholder{color:#6d675d;}
.ber-field.invalid input,.ber-field.invalid select,.ber-field.invalid textarea{border-bottom-color:#c4756c;}
.ber-check{display:flex;align-items:flex-start;gap:12px;font-size:14px;font-weight:300;line-height:1.6;color:var(--muted-dark);cursor:pointer;}
.ber-check input{margin-top:3px;accent-color:var(--gold);width:16px;height:16px;}
.ber-check.invalid span{color:#c4756c;}
.ber-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden;}
.ber-btn{align-self:flex-start;background:transparent;border:1px solid var(--gold);color:var(--gold);font-family:var(--sans);
  padding:18px 34px;font-size:13px;font-weight:500;letter-spacing:.16em;text-transform:uppercase;cursor:pointer;
  transition:background-color .35s ease,color .35s ease;}
.ber-btn:hover:not(:disabled){background:var(--gold);color:#141310;}
.ber-btn:disabled{opacity:.5;cursor:default;}
.ber-form-msg{font-size:15px;font-weight:300;line-height:1.7;}
.ber-form-msg.ok{color:#9ec7a4;}
.ber-form-msg.err{color:#e0a19a;}

/* ---------- KONTAKT (tmavá sekce) + FOOTER ---------- */
.ber-cta-sec{position:relative;background:var(--ink);overflow:hidden;scroll-margin-top:80px;}
.ber-foot-wrap{position:relative;border-top:1px solid #34302a;}
.ber-foot{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:36px clamp(24px,4vw,64px);max-width:1360px;margin:0 auto;}
.ber-foot-logo{height:28px;width:auto;opacity:.9;}
.ber-foot-copy{font-size:13px;letter-spacing:.03em;color:#8a8278;}
.ber-foot-social{display:flex;gap:30px;font-size:14px;color:#c3bbb0;}
.ber-foot-social a{text-decoration:none;transition:color .3s ease;}
.ber-foot-social a:hover{color:var(--gold);}

/* ---------- patička: právní odkazy ---------- */
.ber-foot-legal{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 26px;
  padding:0 clamp(24px,4vw,64px) 30px;font-size:13px;color:#8a8278;}
.ber-foot-legal a,.ber-foot-consent{color:#8a8278;text-decoration:none;transition:color .3s ease;}
.ber-foot-legal a:hover,.ber-foot-consent:hover{color:var(--gold);}
.ber-foot-consent{border:0;background:none;padding:0;font:inherit;cursor:pointer;}

/* odkaz na zásady pod zaškrtávátkem ve formuláři */
.ber-check-link{font-size:13px;color:var(--muted-dark);text-decoration:none;border-bottom:1px solid rgba(201,169,97,.5);
  align-self:flex-start;margin-top:-6px;}
.ber-check-link:hover{color:var(--gold);}

/* ---------- lišta se souhlasem (cookies) ---------- */
.ber-consent{position:fixed;left:0;right:0;bottom:0;z-index:70;background:rgba(20,19,16,.97);
  border-top:1px solid #34302a;color:var(--cream);
  transform:translateY(102%);visibility:hidden;transition:transform .45s cubic-bezier(.16,1,.3,1),visibility .45s;}
.ber-consent.is-open{transform:none;visibility:visible;}
.ber-consent-inner{max-width:1360px;margin:0 auto;display:grid;grid-template-columns:1fr auto;
  align-items:center;gap:20px clamp(24px,4vw,64px);padding:24px clamp(24px,4vw,64px);}
.ber-consent-title{font-family:var(--serif);font-weight:500;font-size:20px;line-height:1.2;margin:0 0 8px;}
.ber-consent-text{font-size:14px;line-height:1.7;font-weight:300;color:var(--muted-dark);margin:0;max-width:72ch;}
.ber-consent-cats{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,1fr);gap:18px;
  padding-top:20px;border-top:1px solid #34302a;}
.ber-consent-cat{display:flex;gap:10px;font-size:13px;line-height:1.6;color:var(--muted-dark);cursor:pointer;}
.ber-consent-cat input{margin-top:3px;accent-color:var(--gold);flex:0 0 auto;}
.ber-consent-cat input:disabled{opacity:.55;}
.ber-consent-cat strong{display:block;font-weight:500;color:var(--cream);margin-bottom:3px;}
.ber-consent-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end;}
.ber-consent-btn{height:46px;padding:0 22px;border-radius:23px;font-family:var(--sans);font-size:14px;
  letter-spacing:.02em;cursor:pointer;transition:background .3s ease,color .3s ease,border-color .3s ease;}
.ber-consent-ghost{background:none;border:1px solid rgba(241,235,223,.28);color:#F1EBDF;}
.ber-consent-ghost:hover{border-color:var(--gold);color:var(--gold);}
.ber-consent-gold{background:var(--gold);border:1px solid var(--gold);color:#141310;}
.ber-consent-gold:hover{background:#d8bb79;border-color:#d8bb79;}
.ber-consent :focus-visible{outline:2px solid var(--gold);outline-offset:3px;}

/* ---------- právní stránky (zásady, cookies) ---------- */
.ber-doc{max-width:860px;margin:0 auto;padding:clamp(36px,6vw,72px) clamp(24px,6vw,64px) 96px;}
.ber-doc-logo{height:26px;width:auto;}
.ber-doc-body{margin-top:clamp(40px,7vw,72px);}
.ber-doc-title{font-family:var(--serif);font-weight:500;font-size:clamp(32px,5vw,52px);line-height:1.12;
  letter-spacing:-.01em;margin:0;}
.ber-doc-updated{font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:#8a8278;margin:22px 0 0;}
.ber-doc-body h2{font-family:var(--serif);font-weight:500;font-size:clamp(22px,2.6vw,28px);line-height:1.25;
  margin:46px 0 14px;}
.ber-doc-body h3{font-family:var(--sans);font-weight:500;font-size:16px;letter-spacing:.02em;margin:30px 0 10px;}
.ber-doc-body p,.ber-doc-body li{font-size:16px;line-height:1.85;font-weight:300;color:var(--muted);}
.ber-doc-body p{margin:0 0 16px;max-width:68ch;}
.ber-doc-body ul{margin:0 0 20px;padding-left:20px;max-width:68ch;}
.ber-doc-body li{margin-bottom:8px;}
.ber-doc-body strong{font-weight:500;color:var(--ink);}
.ber-doc-body a{color:var(--ink);text-decoration:none;border-bottom:1px solid var(--gold);}
.ber-doc-body a:hover{color:var(--gold);}
.ber-doc-table{overflow-x:auto;margin:0 0 24px;}
.ber-doc-table table{border-collapse:collapse;width:100%;min-width:440px;font-size:14px;}
.ber-doc-table th{text-align:left;font-weight:500;font-size:11px;letter-spacing:.16em;text-transform:uppercase;
  color:#8a8278;padding:10px 16px 10px 0;border-bottom:1px solid var(--line);}
.ber-doc-table td{padding:12px 16px 12px 0;border-bottom:1px solid var(--line);color:var(--muted);
  font-weight:300;vertical-align:top;}
.ber-doc-foot{display:flex;flex-wrap:wrap;gap:10px 26px;margin-top:64px;padding-top:24px;
  border-top:1px solid var(--line);font-size:13px;color:#8a8278;}
.ber-doc-foot a,.ber-doc-consent{color:#8a8278;text-decoration:none;transition:color .3s ease;}
.ber-doc-foot a:hover,.ber-doc-consent:hover{color:var(--gold);}
.ber-doc-consent{border:0;background:none;padding:0;font:inherit;cursor:pointer;}

/* ---------- chybové stránky (404, 500) ---------- */
.ber-err{min-height:100vh;min-height:100svh;background:var(--ink);color:var(--cream);
  display:flex;flex-direction:column;justify-content:center;gap:clamp(48px,8vh,96px);
  padding:clamp(40px,6vw,72px) clamp(24px,6vw,96px);}
.ber-err-logo-link{align-self:flex-start;}
.ber-err-logo{height:26px;width:auto;opacity:.9;}
.ber-err-body{max-width:640px;}
.ber-err-code{display:block;margin:0 0 22px;}
.ber-err-title{font-family:var(--serif);font-weight:500;font-size:clamp(38px,6vw,72px);line-height:1.1;
  letter-spacing:-.01em;margin:0;color:var(--cream);}
.ber-err-text{font-size:18px;line-height:1.9;font-weight:300;color:var(--muted-dark);margin:32px 0 44px;}
.ber-err-btn{display:inline-block;text-decoration:none;}

/* ---------- responzivita ---------- */
@media (max-width:1000px){
  .ber-projects-head{grid-template-columns:1fr;align-items:start;gap:22px;}
  .ber-proj-grid{grid-template-columns:repeat(2,1fr);}
  .ber-inquiry-grid{grid-template-columns:1fr;gap:52px;}
}
@media (max-width:900px){
  .ber-hero-layerL{clip-path:none;width:100%;height:52%;}
  .ber-hero-layerR{clip-path:none;top:52%;height:48%;left:0;}
  .ber-hero-seam{display:none;}
  .ber-hero-copyL{top:auto;bottom:54%;left:24px;right:24px;}
  .ber-hero-copyR{top:auto;bottom:5%;left:24px;right:24px;text-align:left;}
  .ber-hero-logo{top:44%;}
  .ber-scroll-hint{display:none;}
  .ber-nav-links{display:none;}
  .ber-menu-icon{display:flex;}
  .ber-grid-2{grid-template-columns:1fr;gap:40px;}
  .ber-services-grid{grid-template-columns:1fr;}
  .ber-dual{grid-template-columns:1fr;}
  .ber-dual-seam{display:none;}
  .ber-svc-grid{grid-template-columns:1fr;gap:0;}
  .ber-svc-col{border-top:1px solid #d9d0c1;padding-top:34px;margin-top:34px;}
  .ber-svc-col:first-of-type{border-top:0;padding-top:0;margin-top:0;}
  .ber-svc-rule{display:none;}
  .ber-foot{flex-direction:column;gap:24px;text-align:center;}
  .ber-form-row{grid-template-columns:1fr;}
}
@media (max-width:640px){
  .ber-proj-grid{grid-template-columns:1fr;}
}
@media (max-width:760px){
  .ber-consent-inner{grid-template-columns:1fr;gap:18px;padding:20px;}
  .ber-consent-cats{grid-template-columns:1fr;gap:14px;padding-top:16px;}
  .ber-consent-actions{justify-content:stretch;}
  .ber-consent-btn{flex:1 1 44%;padding:0 12px;}
  /* nad trvalou mobilní lištou, jinak by ji lišta se souhlasem překryla */
  .ber-consent{bottom:0;padding-bottom:env(safe-area-inset-bottom);}
  .ber-foot-legal{justify-content:flex-start;padding:0 22px 26px;font-size:12px;}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto;}
  .ber-consent{transition:none;}
}

/* ==========================================================================
   MOBIL — varianta 1a
   Tmavé provedení zaměřené na poptávku: sticky hlavička, fotohero s CTA,
   pořadí Služby → Projekty → Poptávka a trvalá spodní lišta Zavolat/Poptávka.
   Desktop (nad 900 px) zůstává beze změny — vše níže žije jen v media query,
   prvky jen pro mobil jsou mimo ni schované.
   ========================================================================== */

.ber-hero-m,.ber-actionbar{display:none;}
.ber-svc-col::before{display:none;}

/* pilulková tlačítka — používá je jen mobilní hero a spodní lišta */
.ber-pill{display:flex;align-items:center;justify-content:center;height:54px;padding:0 22px;border-radius:27px;
  font-family:var(--sans);font-size:15px;font-weight:500;letter-spacing:.04em;text-decoration:none;text-align:center;}
.ber-pill-gold{background:var(--gold);color:#141310;}
.ber-pill-ghost{border:1px solid rgba(241,235,223,.28);color:#F1EBDF;}

@media (max-width:900px){
  :root{
    --m-bg:#141310;      /* základní pozadí stránky */
    --m-bg-2:#1C1A16;    /* poptávkový blok a modál */
    --m-text:#F1EBDF;
    --m-muted:#9A948A;
    --m-dim:#7E7869;
    --m-line:rgba(241,235,223,.12);
  }

  body{background:var(--m-bg);color:var(--m-text);}

  /* pořadí sekcí: hero → o nás → proces → služby → projekty → poptávka */
  .ber-page{display:flex;flex-direction:column;padding-bottom:calc(86px + env(safe-area-inset-bottom));}
  .ber-nav,.ber-mobile-menu{order:0;}
  .ber-hero{order:1;}
  .ber-about{order:2;}
  .ber-proces{order:3;}
  .ber-services{order:4;}
  .ber-projects{order:5;}
  .ber-cta-sec{order:6;}

  /* ---------- sdílená typografie ---------- */
  .ber-eyebrow{font-size:12px;letter-spacing:.22em;}
  .ber-rule{width:44px;margin-top:14px;}
  .ber-head{margin-bottom:22px;}
  .ber-h2{font-size:27px;line-height:1.2;font-weight:400;color:var(--m-text);margin:0 0 18px;}
  .ber-lead{font-size:15px;line-height:1.6;color:var(--m-muted);margin-bottom:26px;}
  .ber-link{color:var(--m-text);}

  /* ---------- HLAVIČKA ---------- */
  .ber-nav{padding:14px 20px;background:rgba(20,19,16,.88);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
    border-bottom:1px solid var(--m-line);}
  .ber-nav.scrolled{padding:14px 20px;}
  .ber-nav-logo{height:20px;}
  .ber-nav[data-logo] .ber-nav-logo{filter:brightness(0) invert(1);}
  .ber-nav[data-links] .ber-menu-icon span{background:var(--m-text);}
  .ber-nav[data-links] .ber-menu-icon span:last-child{background:var(--gold);}

  /* ---------- HERO ---------- */
  .ber-hero{height:auto;min-height:0;background:var(--m-bg);overflow:hidden;}
  .ber-hero-layerL,.ber-hero-layerR,.ber-hero-seam,
  .ber-hero-copyL,.ber-hero-copyR,.ber-hero-logo,.ber-scroll-hint{display:none;}

  .ber-hero-m{display:flex;flex-direction:column;justify-content:flex-end;position:relative;
    min-height:74vh;min-height:74svh;overflow:hidden;padding:112px 22px 34px;}
  .ber-hero-m-img{position:absolute;left:0;top:-8%;width:100%;height:116%;object-fit:cover;}
  .ber-hero-m-veil{position:absolute;inset:0;
    background:linear-gradient(180deg,rgba(20,19,16,.15) 25%,rgba(20,19,16,.94) 100%);}
  .ber-hero-m-copy{position:relative;display:flex;flex-direction:column;gap:18px;}
  .ber-hero-m-copy .ber-eyebrow:empty{display:none;}
  .ber-hero-m-title{font-family:var(--serif);font-weight:400;font-size:clamp(30px,9vw,40px);line-height:1.1;
    letter-spacing:-.01em;color:var(--m-text);text-wrap:balance;margin:0;}
  .ber-hero-m-text{font-size:15px;line-height:1.55;font-weight:300;color:#B3ACA0;max-width:30ch;margin:0;}

  /* ---------- O NÁS ---------- */
  .ber-about{background:var(--m-bg);padding:44px 22px;border-top:1px solid var(--m-line);}
  .ber-grid-2{gap:28px;}
  .ber-about-img{height:clamp(240px,58vw,320px);}

  /* ---------- PROCES ---------- */
  .ber-proces{background:var(--m-bg);padding:44px 22px;border-top:1px solid var(--m-line);}
  .ber-proces-artL,.ber-proces-artR{display:none;}
  .ber-dual{gap:32px;}
  .ber-dual-col{text-align:left;padding:0;}
  .ber-dual-ico{justify-content:flex-start;margin-bottom:14px;}
  .ber-dual-label{margin-bottom:12px;}
  .ber-dual-text{font-size:22px;line-height:1.35;color:var(--m-text);}

  /* ---------- SLUŽBY (číslovaný seznam 01–03) ---------- */
  .ber-services{background:var(--m-bg);padding:44px 22px;border-top:1px solid var(--m-line);}
  .ber-services-grid{gap:26px;}
  .ber-services-grid .ber-h2{font-size:27px;line-height:1.2;}
  .ber-svc-grid{display:block;counter-reset:svc;}
  .ber-svc-ico{display:none;}
  .ber-svc-col{display:grid;grid-template-columns:auto 1fr;column-gap:16px;
    padding:20px 0;margin:0;border-top:1px solid var(--m-line);}
  .ber-svc-col:first-of-type{padding-top:20px;margin-top:0;border-top:1px solid var(--m-line);}
  .ber-svc-col:last-of-type{border-bottom:1px solid var(--m-line);}
  .ber-svc-col::before{display:block;grid-column:1;grid-row:1/3;counter-increment:svc;
    content:counter(svc,decimal-leading-zero);
    font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;line-height:1.6;color:var(--m-dim);}
  .ber-svc-col h3{grid-column:2;font-weight:400;font-size:20px;line-height:1.2;color:var(--m-text);margin:0 0 6px;}
  .ber-svc-col p{grid-column:2;font-size:14px;line-height:1.5;color:var(--m-muted);}

  /* ---------- PROJEKTY (vodorovný carousel) ---------- */
  .ber-projects{background:var(--m-bg);padding:44px 0;border-top:1px solid var(--m-line);}
  .ber-projects-head{padding:0 22px;gap:12px;margin-bottom:20px;}
  .ber-projects-head .ber-h2{margin:14px 0 0;}
  .ber-projects-head .ber-lead{margin:0;}
  .ber-proj-filters{padding:0 22px;margin-bottom:20px;flex-wrap:nowrap;overflow-x:auto;
    scrollbar-width:none;-ms-overflow-style:none;}
  .ber-proj-filters::-webkit-scrollbar{height:0;}
  .ber-filter{flex:0 0 auto;border-color:var(--m-line);color:var(--m-muted);}
  .ber-filter:hover{color:var(--m-text);}
  .ber-filter.active{background:var(--gold);border-color:var(--gold);color:#141310;}
  /* scroll-padding: bez něj by snap zarovnal první kartu k okraji a padding sežral */
  .ber-proj-grid{display:flex;gap:14px;padding:0 22px 6px;overflow-x:auto;
    scroll-snap-type:x mandatory;scroll-padding-left:22px;scrollbar-width:none;-ms-overflow-style:none;}
  .ber-proj-grid::-webkit-scrollbar{height:0;}
  .ber-proj-card{flex:0 0 236px;scroll-snap-align:start;}
  .ber-proj-media{aspect-ratio:236/290;background:#23211C;border-radius:4px;}
  .ber-proj-body{padding:12px 0 0;}
  .ber-proj-title{font-size:18px;font-weight:400;line-height:1.2;color:var(--m-text);margin:8px 0 4px;}
  /* na úzké kartě musí meta zůstat na jednom řádku, jinak odskočí oddělovač */
  .ber-proj-meta{display:block;font-size:12px;color:var(--m-dim);
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .ber-proj-meta span+span::before{margin:0 7px 0 5px;color:var(--m-line);}
  .ber-proj-empty{padding:0 22px;color:var(--m-muted);}

  /* detail projektu */
  .ber-modal-panel{background:var(--m-bg-2);}
  .ber-modal-close{background:rgba(20,19,16,.9);color:var(--m-text);}
  .ber-modal-content h3{font-weight:400;color:var(--m-text);}
  .ber-modal-content p{font-size:15px;line-height:1.6;color:var(--m-muted);}
  .ber-modal-specs{background:var(--m-line);border-color:var(--m-line);}
  .ber-modal-specs div{background:var(--m-bg-2);}
  .ber-modal-specs dd{color:var(--m-text);}

  /* ---------- POPTÁVKA + PATIČKA ---------- */
  .ber-cta-sec{background:var(--m-bg);}
  .ber-inquiry-grid{background:var(--m-bg-2);padding:44px 22px 40px;gap:30px;}
  .ber-inquiry-copy .ber-h2{font-size:27px;margin-bottom:10px;}
  .ber-inquiry-copy .ber-lead{margin-bottom:26px;}
  .ber-contact-list{gap:0;background:transparent;border-color:var(--m-line);}
  .ber-contact-item{flex-direction:column;gap:4px;background:transparent;padding:14px 0;}
  .ber-contact-item+.ber-contact-item{border-top:1px solid var(--m-line);}
  .ber-contact-val{font-size:16px;color:var(--m-text);}

  .ber-form{gap:16px;}
  .ber-form-row{gap:16px;}
  .ber-field{gap:7px;}
  .ber-field label{font-size:11px;letter-spacing:.14em;color:var(--m-dim);}
  .ber-field input,.ber-field select,.ber-field textarea{
    height:52px;padding:0 16px;border:1px solid var(--m-line);border-radius:4px;background:rgba(0,0,0,.28);}
  .ber-field textarea{height:auto;padding:14px 16px;}
  .ber-field select{background-position:calc(100% - 17px) 24px,calc(100% - 12px) 24px;padding-right:34px;}
  .ber-field input:focus,.ber-field select:focus,.ber-field textarea:focus{border-color:var(--gold);}
  .ber-field.invalid input,.ber-field.invalid select,.ber-field.invalid textarea{border-color:#c4756c;}
  .ber-check{font-size:12px;line-height:1.5;color:var(--m-dim);}
  /* line-height místo flexu — v detailu projektu je tlačítko inline-block ze skriptu */
  .ber-btn{align-self:stretch;width:100%;height:56px;padding:0;border-radius:4px;line-height:56px;text-align:center;
    background:var(--gold);border-color:var(--gold);color:#141310;font-size:15px;letter-spacing:.04em;text-transform:none;}
  .ber-btn:hover:not(:disabled){background:var(--gold);color:#141310;}

  .ber-foot-wrap{background:var(--m-bg);border-color:var(--m-line);}
  .ber-foot{flex-direction:row;text-align:left;gap:16px;padding:26px 22px;}
  .ber-foot-logo{display:none;}
  .ber-foot-copy{font-size:11px;}
  .ber-foot-social{gap:16px;font-size:12px;}

  /* ---------- TRVALÁ LIŠTA ---------- */
  .ber-actionbar{display:flex;gap:10px;position:fixed;left:0;right:0;bottom:0;z-index:55;
    padding:14px 16px calc(14px + env(safe-area-inset-bottom));
    background:rgba(20,19,16,.92);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
    border-top:1px solid var(--m-line);}
  .ber-actionbar .ber-pill{height:52px;border-radius:26px;}
  .ber-actionbar .ber-pill-ghost{flex:0 0 44%;}
  .ber-actionbar .ber-pill-gold{flex:1;}
}
