/* ==========================================================================
   Hebel.sk – koncernový vzhľad Xella (podľa hebel-wohnbau.xella.de)
   Predchádzajúci dizajn (DIN Pro, #ea5b0b) je zálohovaný v ../web-1-0/.
   ========================================================================== */

/* Roboto – podmnožina latinka + slovenčina (tools/fonty_roboto.sh) */
@font-face { font-family: "Roboto"; font-weight: 300; font-style: normal; font-display: swap; src: url(../fonts/roboto/roboto-light.woff2) format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/roboto/roboto-regular.woff2) format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 500 600; font-style: normal; font-display: swap; src: url(../fonts/roboto/roboto-medium.woff2) format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 700 900; font-style: normal; font-display: swap; src: url(../fonts/roboto/roboto-bold.woff2) format("woff2"); }

:root {
  --o: #ff5a00;          /* Xella primary */
  --o-d: #d94c00;        /* hover */
  --o-50: rgba(255,90,0,.5);
  --ink: #111111;
  --mut: #6b6a68;
  --line: #e7e7e7;
  --line-2: #d9d7d4;
  --sv: #e8e7e5;         /* šedá plocha (ikony kariet) */
  --bg2: #f6f5f5;        /* šedá sekcia */
  --white: #fff;
  --shadow: 0 2px 4px rgba(0,0,0,.06), 0 10px 30px rgba(0,0,0,.08);
  --hd: "Roboto", Arial, sans-serif;
  --tx: "Roboto", Arial, sans-serif;
  --wrap: 1440px;
  --gut: clamp(16px, 3.2vw, 45px);
  --odsad: clamp(0px, 8vw, 115px);   /* odsadenie nadpisov sekcií */
  /* Štúdiové oranžové pozadie produktových fotiek (ako na xella.de): svetlo zhora, horizont, podlaha */
  --studio:
    radial-gradient(ellipse 34% 46% at 50% 22%, rgba(248,165,108,.95), rgba(248,165,108,0) 100%),
    radial-gradient(ellipse 46% 34% at 50% 52%, rgba(247,160,104,.85), rgba(247,160,104,0) 100%),
    linear-gradient(180deg, rgba(255,255,255,0) 40%, rgba(255,214,180,.28) 46.5%, rgba(255,255,255,0) 62%),
    linear-gradient(90deg, #ea6022 0%, #f07c3c 30%, #f07c3c 70%, #ea6022 100%);
  --hh: 93px;
  --logo: 106px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hh) + 16px); }
body { margin: 0; padding-top: var(--hh); font: 400 1rem/1.65 var(--tx); color: var(--ink); background: var(--white); }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--o); text-underline-offset: .18em; }
a:hover { color: var(--o-d); }
h1, h2, h3 { font-family: var(--hd); line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 3.4vw, 2.625rem); font-weight: 400; }
h2 { font-size: clamp(1.75rem, 2.8vw, 2.25rem); font-weight: 500; }
h3 { font-size: 1.25rem; font-weight: 500; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--o); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.o { color: var(--o); }
.mut { color: var(--mut); }
.ikona { width: 1em; height: 1em; flex: none; overflow: visible; }

/* Nadpis sekcie: vyblednutý štítok s čiarou siahajúcou doľava + odsadený nadpis */
.nadtitul { position: relative; display: inline-block; font: 500 .8125rem/1.2 var(--hd); letter-spacing: .01em; text-transform: uppercase; color: var(--o-50); padding-bottom: 6px; margin-bottom: 14px; }
.sekcia__hlava { max-width: 900px; padding-left: var(--odsad); margin-bottom: clamp(28px, 3vw, 40px); }
.sekcia__hlava .nadtitul::after, .split .nadtitul::after { content: ""; position: absolute; left: calc(20px - var(--odsad)); right: 0; bottom: 0; height: 3px; background: var(--o-50); }
.split .nadtitul::after { left: -20px; }
.sekcia__hlava h2 { margin-bottom: .35em; }
.sekcia__hlava--stred { margin-left: auto; margin-right: auto; padding-left: 0; text-align: center; }
.sekcia__hlava--stred .nadtitul::after { left: -20px; right: -20px; }
.sekcia__hlava--stred .perex { margin-left: auto; margin-right: auto; }
.perex { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink); max-width: 66ch; }
.sekcia { padding: clamp(56px, 7vw, 96px) 0; }
.sekcia--siva, .sekcia--broskyna { background: var(--bg2); }

/* Tlačidlá ------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .8em 1.5em; border: 1px solid var(--o); background: var(--o); color: #fff; font: 500 1rem/1.2 var(--tx); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--o-d); border-color: var(--o-d); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--biele { background: #fff; color: var(--ink); border-color: #fff; }
.btn--biele:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn svg { width: 1.1em; height: 1.1em; fill: currentColor; }
.tlacidla { display: flex; flex-wrap: wrap; gap: 12px; }
.odkaz { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
/* Odkaz s podčiarknutím ako na xella.de („Jetzt Kontakt aufnehmen“) */
.odkaz-pod, .sipka { display: inline-block; font-weight: 500; color: var(--o); text-decoration: none; background: linear-gradient(var(--o-50), var(--o-50)) left bottom / 100% 6px no-repeat; padding: 0 4px 1px; transition: background-size .2s; }
.odkaz-pod:hover, .sipka:hover { color: var(--ink); background-size: 100% 100%; }

/* Hlavička ------------------------------------------------------------- */
.hlavicka { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.hlavicka.je-scroll { box-shadow: 0 4px 18px rgba(0,0,0,.08); }
.hlavicka__in { position: relative; display: flex; align-items: stretch; justify-content: flex-end; height: var(--hh); max-width: 1600px; margin: 0 auto; padding: 0 30px; }
.logo { position: absolute; left: 30px; top: 0; width: var(--logo); height: var(--logo); box-shadow: 0 4px 12px rgba(0,0,0,.18); z-index: 2; }
.logo img { width: 100%; height: 100%; }
.menu { display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-end; }
.menu ul { display: flex; list-style: none; margin: 0; padding: 0; }
.menu__male { gap: 20px; margin-bottom: 6px !important; }
.menu__male a { font-size: .8125rem; color: var(--mut); text-decoration: none; }
.menu__male a:hover, .menu__male a[aria-current] { color: var(--o); }
.menu__hlavne { gap: 2px; }
.menu__hlavne > li > a { position: relative; display: block; padding: 4px 8px 18px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1rem; }
.menu__hlavne > li > a::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 4px; background: var(--ink); transform: scaleX(0); transition: transform .2s; }
.menu__hlavne > li > a:hover::after, .menu__hlavne > li > a[aria-current]::after, .ma-podmenu:hover > a::after { transform: none; }
.menu__hlavne > li > a:hover { color: var(--ink); }
/* Podmenu */
.ma-podmenu { position: relative; display: flex; align-items: flex-start; }
.podmenu-tl { border: 0; background: none; color: var(--ink); width: 22px; height: 30px; margin-left: -8px; padding: 0; cursor: pointer; font-size: 18px; display: grid; place-items: center; }
.podmenu-tl .ikona { transition: transform .2s; }
.ma-podmenu:hover .podmenu-tl .ikona, .ma-podmenu.je-otvorene .podmenu-tl .ikona { transform: rotate(180deg); }
.menu .podmenu { position: absolute; top: 100%; left: 0; min-width: 320px; flex-direction: column; padding: 8px 0; background: #fff; box-shadow: 0 18px 40px rgba(0,0,0,.14); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 5; }
.ma-podmenu:hover .podmenu, .ma-podmenu:focus-within .podmenu, .ma-podmenu.je-otvorene .podmenu { opacity: 1; visibility: visible; transform: none; }
.menu .podmenu a { display: block; padding: 12px 22px; color: var(--ink); text-decoration: none; font-weight: 500; }
.menu .podmenu a small { display: block; font-size: .85rem; font-weight: 400; color: var(--mut); margin-top: 2px; }
.menu .podmenu a:hover, .menu .podmenu a[aria-current] { background: var(--bg2); color: var(--o); }
/* Hľadať */
.hladat-tl { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; margin: 22px 0 18px 22px; padding: 0 0 0 22px; border: 0; border-left: 1px solid var(--line-2); background: none; cursor: pointer; color: var(--o); font: 500 .95rem/1 var(--tx); }
.hladat-tl .ikona { font-size: 30px; --ik2: var(--ink); }
.hladat-tl:hover span { color: var(--ink); }
.burger { display: none; align-self: center; width: 46px; height: 46px; border: 0; background: none; cursor: pointer; padding: 0; margin-left: 8px; font-size: 34px; color: var(--ink); }
.burger .ikona { margin: auto; }
.burger__zav, .burger[aria-expanded="true"] .burger__otv { display: none; }
.burger[aria-expanded="true"] .burger__zav { display: block; }

@media (max-width: 1100px) {
  :root { --hh: 68px; --logo: 76px; }
  .hlavicka__in { padding: 0 var(--gut); align-items: center; }
  .logo { left: var(--gut); }
  .burger { display: flex; }
  .hladat-tl { margin: 0; padding: 0 12px; border: 0; }
  .hladat-tl span { display: none; }
  .menu { position: absolute; top: 100%; left: 0; right: 0; display: flex; flex-direction: column-reverse; align-items: stretch; padding: 24px var(--gut) 28px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 24px 40px rgba(0,0,0,.12); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s; max-height: calc(100dvh - var(--hh)); overflow: auto; }
  .menu.je-otvorene { opacity: 1; transform: none; visibility: visible; }
  .menu ul { flex-direction: column; }
  .menu__male { margin: 14px 0 0 !important; }
  .menu__male a { font-size: 1.2rem; font-weight: 500; color: var(--ink); padding: 14px 4px; display: block; }
  .menu__hlavne > li > a { padding: 14px 4px; font-size: 1.2rem; border-bottom: 1px solid var(--line); }
  .menu__hlavne > li > a::after { display: none; }
  .menu__hlavne > li > a[aria-current] { color: var(--o); }
  .ma-podmenu { display: block; }
  .podmenu-tl { display: none; }
  .menu .podmenu { position: static; min-width: 0; padding: 0 0 0 18px; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .menu .podmenu a { padding: 12px 4px; font-size: 1.05rem; }
  .menu .podmenu a:hover, .menu .podmenu a[aria-current] { background: none; }
}

/* Vyhľadávanie (dialóg pod hlavičkou) ---------------------------------- */
.hladanie { margin: 0; top: 0; left: 0; width: 100%; max-width: none; max-height: 85vh; border: 0; padding: 0; background: #fff; box-shadow: 0 20px 50px rgba(0,0,0,.2); overflow: auto; }
.hladanie::backdrop { background: rgba(17,17,17,.55); }
.hladanie__in { max-width: 960px; margin: 0 auto; padding: 32px var(--gut) 36px; }
.hladanie__pole { display: flex; align-items: center; gap: 14px; border-bottom: 3px solid var(--o); padding-bottom: 8px; }
.hladanie__pole > .ikona { font-size: 32px; --ik2: var(--ink); }
.hladanie__pole input { flex: 1; min-width: 0; border: 0; font: 300 clamp(1.3rem, 2.5vw, 1.75rem)/1.3 var(--tx); color: var(--ink); padding: 6px 0; background: none; }
.hladanie__pole input:focus { outline: none; }
.hladanie__pole input::-webkit-search-cancel-button { display: none; }
.hladanie__zavriet { border: 0; background: none; cursor: pointer; font-size: 30px; padding: 4px; color: var(--ink); }
.hladanie__vysledky { list-style: none; margin: 16px 0 0; padding: 0; }
.hladanie__vysledky a { display: block; padding: 14px 12px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.hladanie__vysledky a:hover, .hladanie__vysledky a:focus-visible { background: var(--bg2); outline: none; }
.hladanie__vysledky small { display: block; font: 500 .75rem/1.2 var(--tx); text-transform: uppercase; color: var(--o); margin-bottom: 3px; }
.hladanie__vysledky strong { display: block; font-weight: 500; font-size: 1.1rem; }
.hladanie__vysledky span { display: block; color: var(--mut); font-size: .93rem; }
.hladanie__vysledky mark { background: rgba(255,90,0,.18); color: inherit; }
.hladanie__nic { padding: 14px 12px; color: var(--mut); }

/* Hero (úvod) ---------------------------------------------------------- */
/* Fotka je orezaná šikminami so sklonom nohy loga Hebel (≈ 2,02 : 1). */
.hero { --h: clamp(400px, 40vw, 600px); --r: 78%; position: relative; height: var(--h); background: var(--o); overflow: hidden; }
.hero__foto { position: absolute; inset: 0; clip-path: polygon(calc(var(--h) * .19) 0, var(--r) 0, calc(var(--r) - var(--h) / 2.02) 100%, 0 100%, 0 calc(var(--h) * .384)); }
.hero__foto img { width: 80%; height: 100%; object-fit: cover; object-position: 50% 55%; }   /* fotka len pod viditeľnou časťou, dom nezakryje znak */
.hero__znak { position: absolute; right: 4%; top: 50%; height: 64%; width: auto; transform: translateY(-48%); fill: #fff; filter: drop-shadow(-14px 16px 22px rgba(90,25,0,.45)); }
.hero__claim { position: absolute; bottom: 0; left: max(var(--gut), calc((100% - var(--wrap)) / 2 + var(--gut))); width: min(660px, 52%); background: var(--o); color: #fff; padding: 30px 30px 22px; }
.hero__claim .nadtitul { color: #fff; font-weight: 700; padding: 0; margin-bottom: 10px; }
.hero__claim h1 { margin: 0; color: #fff; }
@media (max-width: 760px) {
  .hero { --h: 300px; --r: 86%; height: auto; overflow: visible; }
  .hero__foto img { width: 100%; object-position: 40% 60%; }
  .hero__foto { position: relative; height: var(--h); clip-path: polygon(0 0, var(--r) 0, calc(var(--r) - var(--h) / 2.02) 100%, 0 100%); }
  .hero__znak { top: auto; bottom: calc(100% - var(--h) + 18px); right: 3%; height: 34%; transform: none; }
  .hero__claim { position: relative; left: 0; width: auto; padding: 24px var(--gut) 28px; }
}

/* Úvodný text a fakty ---------------------------------------------------- */
.uvod .wrap { max-width: 980px; }
.uvod__h { font-weight: 300; text-align: center; margin-bottom: 1em; }
.uvod__text { font-size: 1.06rem; }
.uvod .tlacidla { margin: 28px 0 0; }
.fakty { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: clamp(40px, 5vw, 64px); text-align: center; }
.fakty .ikona { font-size: 56px; margin: 0 auto 12px; }
.fakty strong { display: block; font: 500 clamp(1.5rem, 2.4vw, 1.9rem)/1.1 var(--hd); }
.fakty span { color: var(--mut); font-size: .93rem; }
@media (max-width: 760px) { .fakty { grid-template-columns: 1fr 1fr; gap: 32px 16px; } }

/* Dlaždice „Ďalšie informácie“ ------------------------------------------- */
.dlazdice { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.dlazdica { display: flex; flex-direction: column; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; transition: box-shadow .18s; }
.dlazdica:hover { box-shadow: var(--shadow); color: var(--ink); }
.dlazdica__obr { position: relative; display: grid; place-items: center; height: 156px; background: var(--sv); }
.dlazdica__obr .ikona { font-size: 84px; transition: transform .2s; }
.dlazdica:hover .dlazdica__obr .ikona { transform: scale(1.06); }
.dlazdica__znacka { position: absolute; right: 30px; bottom: -14px; width: 44px; height: 44px; border: 2px solid #fff; }
.dlazdica__telo { padding: 26px 30px 28px; }
.dlazdica__telo strong { display: block; color: var(--o); font-size: 1.2rem; font-weight: 500; margin-bottom: 4px; }
@media (max-width: 1000px) { .dlazdice { grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (max-width: 520px) { .dlazdice { grid-template-columns: 1fr; } }

/* Karty produktov -------------------------------------------------------- */
.karty { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.karta { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); text-decoration: none; color: inherit; transition: box-shadow .18s; }
.karta:hover { box-shadow: var(--shadow); color: inherit; }
.karta__obr { position: relative; background: var(--studio); padding: 28px 28px 32px; display: flex; gap: 8px; align-items: flex-end; justify-content: center; min-height: 230px; }
.karta__obr::after { content: ""; position: absolute; right: 30px; bottom: -14px; width: 44px; height: 44px; border: 2px solid #fff; background: url(../img/hebel-logo.svg) center / cover; }
.karta__obr .blok { width: 50%; min-width: 0; filter: drop-shadow(0 10px 10px rgba(90,25,0,.3)); transition: transform .25s; }
.karta:hover .karta__obr .blok { transform: translateY(-4px); }
.karta__telo { padding: 26px 30px 28px; display: flex; flex-direction: column; flex: 1; }
.karta__telo h3 { font-size: 1.5rem; font-weight: 500; color: var(--o); margin-bottom: .4em; }
.karta__telo p { color: var(--ink); }
.karta__pata { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.karta__cena small { display: block; color: var(--mut); font-size: .85rem; }
.karta__cena strong { font: 500 1.8rem/1 var(--hd); color: var(--ink); }
.karta__sipka { color: var(--o); font-size: 1.6rem; flex: none; transition: transform .18s; }
.karta:hover .karta__sipka { transform: translateX(4px); }
.stitky { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.stitky li { font-size: .82rem; font-weight: 500; padding: 4px 10px; background: var(--bg2); }
.karta--siroka { grid-column: 1 / -1; flex-direction: row; }
.karta--siroka .karta__obr { flex: 0 0 42%; align-items: center; min-height: 0; }
.karta--siroka .karta__obr::after { bottom: 30px; right: -14px; }
.karta--siroka .karta__obr .blok { width: 100%; max-width: 420px; }
@media (max-width: 760px) { .karty { grid-template-columns: 1fr; } .karta--siroka { flex-direction: column; } .karta--siroka .karta__obr::after { bottom: -14px; right: 30px; } }

/* Piliere ---------------------------------------------------------------- */
.piliere { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.pilier { background: #fff; border: 1px solid var(--line); }
.pilier__ikona { height: 156px; background: var(--sv); display: grid; place-items: center; }
.pilier__ikona .ikona { font-size: 84px; }
.pilier h3 { color: var(--o); font-size: 1.35rem; margin: 26px 30px .1em; }
.pilier h3 + .fakt { font: 500 .8125rem/1 var(--hd); color: var(--o-50); text-transform: uppercase; margin: 0 30px 14px; }
.pilier ul { list-style: none; margin: 0 30px 26px; padding: 0; }
.pilier li { padding: 12px 0 12px 32px; border-top: 1px solid var(--line); position: relative; }
.pilier li::before { content: ""; position: absolute; left: 0; top: 13px; width: 22px; height: 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 6.5' fill='none' stroke='%23ff5a00' stroke-width='2.4'/%3E%3C/svg%3E") center / 20px no-repeat; }
.pilier li strong { display: block; font-weight: 500; }
.pilier li span { color: var(--mut); font-size: .96rem; }
@media (max-width: 900px) { .piliere { grid-template-columns: 1fr; } }

/* Split (foto + text) ------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split > div:not([class*="foto"]) { padding-left: clamp(0px, 4vw, 70px); }
.split__foto { position: relative; }
.split__foto img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.split__foto--o { clip-path: polygon(0 0, 100% 0, 100% 100%, 12% 100%, 0 76%); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split > div:not([class*="foto"]) { padding-left: 0; } .split--obrat .split__foto { order: -1; } }

/* CTA pás -------------------------------------------------------------- */
.cta { background: var(--o); color: #fff; padding: clamp(30px, 4vw, 48px) clamp(24px, 4vw, 56px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; position: relative; overflow: hidden; }
.cta h2 { font-weight: 400; margin-bottom: .3em; }
.cta p { margin: 0; font-size: 1.06rem; }
.cta .tlacidla { justify-content: flex-end; position: relative; z-index: 1; }
.cta__tel { font: 500 clamp(1.6rem, 3vw, 2.2rem)/1 var(--hd); color: #fff; text-decoration: none; display: block; margin-top: 12px; }
.cta__tel:hover { color: var(--ink); }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } .cta .tlacidla { justify-content: flex-start; } }

/* Podstránky – omrvinky a oranžový pás s nadpisom ---------------------- */
.drobky-pas { border-bottom: 1px solid var(--line); font-size: .8125rem; }
.drobky-pas .wrap { max-width: none; padding: 0 30px; }
.drobky { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 14px 0; color: var(--ink); }
.drobky li { display: flex; align-items: center; gap: 8px; }
.drobky li + li::before { content: ">"; color: var(--ink); }
.drobky a { color: var(--ink); text-decoration: none; }
.drobky a:hover { color: var(--o); }
.drobky .ikona { font-size: 16px; --ik2: var(--ink); }
.podhlava { background: var(--o); color: #fff; padding: clamp(32px, 3.4vw, 44px) 0 clamp(36px, 4vw, 54px); position: relative; overflow: hidden; }
.podhlava .wrap { position: relative; z-index: 1; }
.podhlava .nadtitul { color: #fff; font-weight: 700; padding: 0; margin-bottom: 8px; }
.podhlava h1 { color: #fff; margin-bottom: .35em; }
.podhlava .perex { color: #fff; margin-bottom: 0; }
.podhlava .perex + .stitky { margin-top: 18px; }
.podhlava a { color: #fff; }
.podhlava a:hover { color: var(--ink); }
.podhlava .stitky li { background: rgba(255,255,255,.2); color: #fff; }
.podhlava--split .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.podhlava--split .blok { width: 100%; max-width: 440px; margin-left: auto; filter: drop-shadow(0 24px 30px rgba(90,25,0,.35)); }
@media (max-width: 760px) { .podhlava--split .wrap { grid-template-columns: 1fr; } .podhlava--split .blok { max-width: 260px; margin: 0; } .drobky-pas .wrap { padding: 0 var(--gut); } }

/* Varianty (rozmery) ------------------------------------------------------ */
.prepinac-dph { display: inline-flex; background: var(--bg2); padding: 4px; margin-bottom: 22px; }
.prepinac-dph button { border: 0; background: none; padding: 8px 16px; font: 700 .95rem/1 var(--tx); cursor: pointer; color: var(--mut); }
.prepinac-dph button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.sekcia--siva .prepinac-dph { background: var(--line-2); }
.varianty { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2.5vw, 28px); }
.varianta { border: 1px solid var(--line); overflow: hidden; background: #fff; }
.varianta__hlava { display: flex; align-items: center; gap: 18px; padding: 22px 24px; background: var(--o); color: #fff; }
.varianta__hlava .blok { width: 150px; flex: none; filter: drop-shadow(0 12px 12px rgba(80,25,0,.35)); }
.varianta__hlava .lupa { flex: none; display: block; position: relative; cursor: zoom-in; }
.varianta__hlava .lupa .blok { transition: transform .25s; }
.varianta__hlava .lupa:hover .blok { transform: scale(1.06); }
.varianta__hlava .lupa::after { content: ""; position: absolute; right: -4px; bottom: -2px; width: 26px; height: 26px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff5a00' stroke-width='2.5' stroke-linecap='square'%3E%3Cpath d='M4 10h12M10 4v12M15 15l6 6'/%3E%3C/svg%3E") center / 16px no-repeat; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.varianta__hlava .lupa:focus-visible { outline-color: #fff; }

/* Lightbox ----------------------------------------------------------------- */
.lightbox { --lb-pad: clamp(16px, 4vw, 48px); border: 0; padding: 0; margin: auto; background: transparent; max-width: min(94vw, 1400px); max-height: none; overflow: visible; }
.lightbox::backdrop { background: rgba(29,29,27,.88); }
.lightbox figure { margin: 0; background: var(--o); padding: var(--lb-pad); }
.lightbox img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(92vh - 2 * var(--lb-pad) - 44px); margin: 0 auto; filter: drop-shadow(0 24px 30px rgba(80,25,0,.35)); }
.lightbox figcaption { color: #fff; font: 700 1.15rem/1.3 var(--hd); text-align: center; margin-top: 12px; }
.lightbox__zavriet { position: absolute; top: 0; right: 0; width: 48px; height: 48px; border: 0; background: #fff; color: var(--ink); font: 400 2rem/1 var(--tx); cursor: pointer; }
.lightbox__zavriet:hover { background: var(--ink); color: #fff; }
.varianta__hlava h3 { margin: 0; font-size: 2rem; font-weight: 800; }
.varianta__hlava p { margin: 0; color: #fff; font-size: .95rem; }
.varianta__ceny { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; border-bottom: 1px solid var(--line); }
.varianta__ceny div { padding: 16px 8px; }
.varianta__ceny div + div { border-left: 1px solid var(--line); }
.varianta__ceny strong { display: block; font: 800 1.6rem/1 var(--hd); color: var(--o-d); }
.varianta__ceny div:first-child strong { font-size: 2rem; }
.varianta__ceny small { color: var(--mut); font-size: .82rem; }
.varianta dl { margin: 0; padding: 8px 24px 18px; display: grid; grid-template-columns: 1fr auto; }
.varianta dt, .varianta dd { padding: 9px 0; border-bottom: 1px solid var(--line); margin: 0; }
.varianta dt { color: var(--mut); }
.varianta dd { font-weight: 600; text-align: right; }
.varianta dl > :nth-last-child(-n+2) { border-bottom: 0; }
.poznamka { font-size: .9rem; color: var(--mut); margin-top: 18px; }
@media (max-width: 860px) { .varianty { grid-template-columns: 1fr; } }

/* Tabuľky -------------------------------------------------------------- */
.tab-wrap { overflow-x: auto; border: 1px solid var(--line); background: #fff; -webkit-overflow-scrolling: touch; }
.tab { width: 100%; border-collapse: collapse; font-size: .97rem; }
.tab th, .tab td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tab thead th { background: var(--o); color: #fff; font: 700 .9rem/1.25 var(--tx); white-space: nowrap; }
.tab tbody tr:last-child > * { border-bottom: 0; }
.tab tbody tr:nth-child(even) { background: var(--bg2); }
.tab td.cislo, .tab th.cislo { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tab th[scope="row"] { font-weight: 600; }

/* Betónové preklady ------------------------------------------------------ */
.podhlava--split .lupa--velka { display: block; width: 100%; margin-left: auto; max-width: 440px; cursor: zoom-in; }
.podhlava--split .lupa--velka:has(.blok--preklad) { max-width: 520px; }
.podhlava--split .lupa--velka .blok { transition: transform .25s; }
.podhlava--split .blok--preklad { max-width: 520px; }
.podhlava--split .lupa--velka:hover .blok { transform: scale(1.03); }
.podhlava--split .lupa--velka:focus-visible { outline-color: #fff; }
@media (max-width: 760px) { .podhlava--split .lupa--velka { margin: 0; max-width: 260px; } .podhlava--split .lupa--velka:has(.blok--preklad), .podhlava--split .blok--preklad { max-width: 340px; } }
.vyhody { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1000px) { .vyhody { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .vyhody { grid-template-columns: 1fr; } }
.vyber-otvor { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; background: #fff; border-left: 5px solid var(--o); padding: 18px 22px; margin-bottom: 32px; }
.vyber-otvor label { font-weight: 700; }
.vyber-otvor__pole { display: flex; align-items: center; border: 1px solid var(--line-2); background: #fff; }
.vyber-otvor__pole input { width: 130px; border: 0; padding: 10px 12px; font: 700 1.15rem/1 var(--tx); background: transparent; }
.vyber-otvor__pole input:focus { outline: none; }
.vyber-otvor__pole:focus-within { outline: 3px solid var(--o); outline-offset: 2px; }
.vyber-otvor__pole span { padding: 0 12px; color: var(--mut); }
.vyber-otvor__vysledok { margin: 0; flex: 1 1 320px; }
.vyber-otvor__vysledok:empty { display: none; }
.tab-nadpis { font-size: 1.35rem; margin: 28px 0 12px; }
.tab-nadpis span { display: block; font: 400 .95rem/1.4 var(--tx); color: var(--mut); margin-top: 2px; }
.tab--preklady th, .tab--preklady td { white-space: nowrap; padding: 11px 12px; }
.tab--preklady thead th { white-space: normal; vertical-align: bottom; }
.tab--preklady tr.je-vybrany > * { background: var(--o); color: #fff; }
.tab--preklady tr.je-mimo > * { color: #aaa49e; }
.tab--skladby td, .tab--skladby th { vertical-align: middle; }
.tab--skladby th small { display: block; font-size: .78rem; font-weight: 700; color: var(--o-d); white-space: nowrap; }
.tab--skladby tr.je-hebel > th { box-shadow: inset 5px 0 0 var(--o); }
.upozornenie { background: #fff; border-left: 5px solid var(--o); padding: 16px 18px; margin: 0; }
.skladba { display: block; overflow: visible; }
.skladba .stena { fill: var(--bg2); stroke: var(--line-2); }
.skladba .p60, .skladba .p115 { fill: #b9b5b0; stroke: var(--ink); stroke-width: 1; }
.skladba .p115 { fill: #8f8a85; }
.skladba .lice { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; }
.split--hore { align-items: start; }
.kroky { counter-reset: k; list-style: none; padding: 0; margin: 0 0 20px; }
.kroky li { counter-increment: k; position: relative; padding: 10px 0 10px 46px; border-top: 1px solid var(--line); }
.kroky li::before { content: counter(k); position: absolute; left: 0; top: 10px; width: 30px; height: 30px; background: var(--o); color: #fff; font: 800 1rem/30px var(--hd); text-align: center; }
.parametre-zoznam { margin: 0; }
.parametre-zoznam dt { font-weight: 700; padding-top: 14px; border-top: 1px solid var(--line); }
.parametre-zoznam dd { margin: 4px 0 14px; color: var(--mut); }

/* Doplnky ---------------------------------------------------------------- */
.doplnky { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.doplnok { padding: 26px; background: #fff; border: 1px solid var(--line); }
.doplnok h3 { font-size: 1.3rem; }
.doplnok p { margin: 0; color: var(--mut); }
.doplnok .sipka { margin-top: 14px; }
.doplnok__cislo { font: 800 1rem/1 var(--hd); color: var(--o); display: block; margin-bottom: 10px; }
@media (max-width: 860px) { .doplnky { grid-template-columns: 1fr; } }

/* Súbory ------------------------------------------------------------------ */
.subory { display: grid; gap: 14px; }
.subor { display: flex; align-items: center; gap: 18px; padding: 20px 22px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.subor:hover { border-color: var(--o); box-shadow: var(--shadow); color: inherit; transform: translateY(-1px); }
.subor__ikona { width: 52px; height: 60px; flex: none; background: var(--o); color: #fff; display: grid; place-items: center; font: 800 .9rem/1 var(--hd); letter-spacing: .05em; clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%); }
.subor__ikona--web { background: var(--ink); clip-path: none; width: 52px; height: 52px; }
.subor strong { display: block; font-size: 1.1rem; }
.subor span { color: var(--mut); font-size: .95rem; }
.subor__akcia { margin-left: auto; font-weight: 700; color: var(--o-d); white-space: nowrap; }
@media (max-width: 560px) { .subor__akcia { display: none; } }

/* FAQ ---------------------------------------------------------------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; font: 700 1.3rem/1.25 var(--hd); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; background: var(--bg2); color: var(--o-d); display: grid; place-items: center; font: 400 1.6rem/1 var(--tx); transition: background .2s; }
.faq details[open] summary::after { content: "–"; background: var(--o); color: #fff; }
.faq details p { padding: 0 48px 22px 0; margin: 0; color: var(--mut); }

/* Mapa a poradcovia -------------------------------------------------- */
.mapa-blok { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.mapa { position: relative; }
.mapa svg { width: 100%; height: auto; overflow: visible; }
.mapa .kraj { fill: var(--sv); stroke: #fff; stroke-width: 2.5; stroke-linejoin: round; cursor: pointer; transition: fill .15s; outline: none; }
.mapa .kraj:hover, .mapa .kraj:focus-visible { fill: var(--line-2); }
.mapa .kraj.je-aktivny { fill: var(--o); }
.mapa text { font-family: var(--hd); font-weight: 700; font-size: 15px; fill: var(--ink); pointer-events: none; text-anchor: middle; text-transform: uppercase; letter-spacing: .04em; }
.mapa text.je-aktivny { fill: #fff; }
.poradca { background: #fff; box-shadow: var(--shadow); padding: 28px; border-top: 5px solid var(--o); }
.poradca label { font-weight: 600; display: block; margin-bottom: 6px; }
.poradca h3 { margin: 22px 0 8px; font-size: 1.6rem; text-transform: uppercase; font-weight: 800; }
.poradca__osoba { margin: 0; }
.poradca__info { color: var(--mut); font-size: .96rem; }
.poradca .btn { margin-top: 8px; }
@media (max-width: 900px) { .mapa-blok { grid-template-columns: 1fr; } .mapa text { font-size: 30px; } }

/* Formulár ---------------------------------------------------------------- */
.formular { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.pole { display: flex; flex-direction: column; gap: 6px; }
.pole--cele { grid-column: 1 / -1; }
.pole label { font-weight: 600; font-size: .95rem; }
.pole input, .pole select, .pole textarea { font: inherit; color: inherit; padding: 13px 15px; border: 1.5px solid var(--line); background: #fff; transition: border-color .15s, box-shadow .15s; width: 100%; }
.pole textarea { min-height: 150px; resize: vertical; }
.pole input:focus, .pole select:focus, .pole textarea:focus { outline: 0; border-color: var(--o); box-shadow: 0 0 0 4px rgba(255,90,0,.15); }
.suhlas { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.suhlas input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--o); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hlaska { grid-column: 1 / -1; padding: 16px 18px; font-weight: 600; }
.hlaska--ok { background: #e6f5ea; color: #1e6b34; }
.hlaska--chyba { background: #fdeaea; color: #9b1c1c; }
.formular .btn { justify-self: start; }
.recaptcha-info { grid-column: 1 / -1; font-size: .8rem; color: var(--mut); margin: 0; }
@media (max-width: 640px) { .formular { grid-template-columns: 1fr; } }

/* Text (právne stránky, O nás) ------------------------------------------ */
.text { max-width: 780px; }
.text h2 { font-size: 1.8rem; margin-top: 1.6em; }
.text h3 { margin-top: 1.4em; }
.text ul { padding-left: 1.2em; }
.text li { margin-bottom: .4em; }

/* 404 ---------------------------------------------------------------- */
.e404 { text-align: center; padding: clamp(60px, 10vw, 120px) 0; }
.e404 strong { display: block; font: 800 clamp(6rem, 18vw, 11rem)/1 var(--hd); color: var(--o); }

/* Úpravy starších blokov na koncernový vzhľad ------------------------------ */
.faq summary { font: 500 1.2rem/1.3 var(--hd); }
.faq summary::after { background: none; color: var(--o); font-size: 2rem; }
.faq details[open] summary::after { background: none; color: var(--o); }
.faq details p { color: var(--ink); }
.poradca h3, .pilier h3 { text-transform: none; }
.poradca h3 { font-weight: 500; color: var(--o); }
.poradca { border-top: 0; border: 1px solid var(--line); box-shadow: none; }
.doplnok { border: 1px solid var(--line); }
.doplnok h3 { color: var(--o); font-size: 1.2rem; }
.doplnok--ikona > .ikona { font-size: 64px; margin-bottom: 16px; }
.doplnok__cislo { font-weight: 500; }
.subor__ikona { font-weight: 700; }
.varianta__hlava h3, .varianta__ceny strong, .varianta__ceny div:first-child strong { font-weight: 500; }
.varianta__ceny strong { color: var(--ink); }
.tab thead th { font-weight: 500; }
.tab-nadpis { font-weight: 500; }
.kroky li::before { font-weight: 500; }
.e404 strong { font-weight: 300; }
.text h2 { font-size: 1.75rem; }
.mapa .kraj { fill: var(--sv); }
.mapa .kraj:hover, .mapa .kraj:focus-visible { fill: var(--line-2); }
.mapa text { font-weight: 500; }
.vyber-otvor label { font-weight: 500; }
.lightbox figure { background: var(--o); }

/* Kontaktný pás pred pätičkou (ako „Xella Kundeninformation“) ------------ */
.kontakt-pas { background: var(--bg2); text-align: center; padding: clamp(44px, 5vw, 60px) 0 clamp(48px, 5vw, 64px); }
.kontakt-pas .ikona { font-size: 48px; margin: 0 auto 14px; }
.kontakt-pas h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.kontakt-pas p { max-width: 820px; margin: 0 auto 22px; }
.kontakt-pas p a { color: var(--ink); }
.kontakt-pas p a:hover { color: var(--o); }
.sekcia--siva + .kontakt-pas, .sekcia--broskyna + .kontakt-pas { margin-top: 0; border-top: 1px solid var(--line); }

/* Pätička – oranžová ------------------------------------------------------ */
.paticka { background: var(--o); color: #fff; padding-top: clamp(36px, 4vw, 44px); font-size: 1rem; }
.paticka a, .paticka .odkaz { color: #fff; text-decoration: none; font-weight: 500; }
.paticka a:hover, .paticka .odkaz:hover { color: var(--ink); }
.paticka h2 { font: 700 1rem/1.2 var(--hd); color: #fff; margin-bottom: 14px; }
.paticka ul { list-style: none; margin: 0; padding: 0; }
.paticka li { margin-bottom: 8px; }
.paticka p { margin-bottom: 1em; }
.paticka__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 44px; }
.paticka__znacka p { max-width: 330px; margin-top: 34px; }
.xella img { width: 88px; height: auto; }
.xella:hover img { opacity: .85; }
.paticka__grid > div:not(.paticka__znacka) { padding-top: 86px; }
.paticka__spodok { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; border-top: 1px solid rgba(255,255,255,.6); padding-top: 18px; padding-bottom: 22px; font-size: .75rem; }
.paticka__spodok p { margin: 0; }
.paticka__spodok ul { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.paticka__spodok li { margin: 0; }
.paticka__spodok a, .paticka__spodok .odkaz { font-weight: 500; font-size: .75rem; }
@media (max-width: 900px) { .paticka__grid { grid-template-columns: 1fr 1fr; } .paticka__znacka { grid-column: 1 / -1; } .paticka__grid > div:not(.paticka__znacka) { padding-top: 0; } }
@media (max-width: 560px) { .paticka__grid { grid-template-columns: 1fr; } .paticka__spodok { flex-direction: column; align-items: flex-start; } }

/* Cookie lišta ------------------------------------------------------- */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; display: flex; justify-content: flex-start; pointer-events: none; }
.cookie[hidden] { display: none; }
.cookie__box { pointer-events: auto; max-width: 480px; background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.22); padding: 22px 24px; border-top: 4px solid var(--o); }
.cookie__box h2 { font-size: 1.25rem; font-weight: 500; margin-bottom: .3em; }
.cookie__box p { font-size: .93rem; color: var(--mut); }
.cookie__volby { display: flex; gap: 22px; margin-bottom: 16px; }
.cookie__volby[hidden] { display: none; }
.prepinac { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.prepinac input { width: 20px; height: 20px; accent-color: var(--o); }
.cookie__tlacidla { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie__tlacidla .btn { padding: .7em 1.1em; font-size: .95rem; }
.cookie__tlacidla .btn--ghost { border-color: var(--line-2); }

/* Animácia pri zobrazení (len ak to používateľ nemá vypnuté) ------------ */
@media (prefers-reduced-motion: no-preference) {
  .js .anim { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .js .anim.je-viditelne { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

@media print {
  .hlavicka, .paticka, .kontakt-pas, .cookie, .cta, .prepinac-dph, .hladanie { display: none !important; }
  body { padding-top: 0; }
}
