/* =========================================================
   Moderní Stavitel — redesign 2026
   Concept: "Blueprint → Build"
   ========================================================= */
:root {
  --bg: #f3f1ec;
  --bg-2: #e9e6df;
  --paper: #ffffff;
  --ink: #131416;
  --ink-2: #3a3c40;
  --muted: #5f6166;
  --line: rgba(19, 20, 22, .1);
  --dark: #0e0f11;
  --dark-2: #17191c;
  --dark-3: #22252a;
  --accent: #ff5b14;
  --accent-2: #ffb01f;
  --accent-soft: #ffe7da;
  --accent-strong: #cf430b; /* bg under white text (AA) */
  --accent-ink: #c2410c;    /* accent text on light bg (AA) */
  --bp: #8fb2ff;
  --ice: #e6eef7;
  --r: 22px;
  --r-sm: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px -12px rgba(20,20,25,.18);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.04), 0 30px 60px -20px rgba(20,20,25,.3);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input { font: inherit; color: inherit; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent-strong); color: #fff; }

.wrap { width: min(1280px, 100% - 48px); margin-inline: auto; }
.section { padding-block: clamp(72px, 10vw, 140px); }
.center { display: flex; justify-content: center; margin-top: 40px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: fixed; left: 16px; top: -60px; z-index: 999; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; transition: top .2s; }
.skip:focus { top: 16px; }

.eyebrow {
  font: 600 15px/1.3 var(--sans); letter-spacing: 0;
  color: #c2410c; margin: 0 0 14px; display: block;
}
.h2 {
  font: 700 clamp(34px, 5vw, 64px)/1.02 var(--display); letter-spacing: -.035em; margin: 0;
  text-wrap: balance;
}
.accent-text { color: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  --h: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: transform .4s var(--ease), background .25s, color .25s, box-shadow .3s;
  white-space: nowrap; position: relative;
}
.btn--sm { --h: 42px; padding: 0 18px; font-size: 14px; }
.btn--accent { background: var(--accent-strong); color: #fff; box-shadow: 0 10px 30px -10px rgba(255,91,20,.7); }
.btn--accent:hover { background: #ff6d2c; box-shadow: 0 14px 40px -10px rgba(255,91,20,.85); }
.btn--ghost { border: 1.5px solid var(--line); background: var(--paper); }
.btn--ghost:hover { border-color: var(--ink); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--accent-ink); }
.link-arrow::after { content: "→"; transition: transform .3s var(--ease); }
.link-arrow:hover::after { transform: translateX(5px); }

/* ---------- progress ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 200; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100; padding: 14px 0;
  transition: padding .4s var(--ease), transform .45s var(--ease);
}
.nav__inner {
  display: flex; align-items: center; gap: 28px; height: 64px; padding: 0 12px 0 20px;
  border-radius: 20px; transition: background .4s, box-shadow .4s, border-color .4s;
  border: 1px solid transparent; color: #fff;
}
.nav.is-scrolled .nav__inner, .nav.is-solid .nav__inner {
  background: rgba(14, 15, 17, .94); border-color: rgba(255,255,255,.08);
  backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.5);
}
.nav.is-light .nav__inner { background: rgba(255,255,255,.78); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow); }
.nav.is-hidden { transform: translateY(-110%); }

.logo { display: inline-flex; align-items: center; gap: 10px; font: 500 18px/1 var(--display); letter-spacing: -.02em; }
.logo b { font-weight: 800; }
.logo__mark { width: 34px; height: 34px; fill: none; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.logo__roof { stroke: var(--accent); stroke-dasharray: 50; stroke-dashoffset: 50; animation: draw 1.2s .2s var(--ease-out) forwards; }
.logo__m { stroke: currentColor; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 1.2s .5s var(--ease-out) forwards; }
.logo:hover .logo__roof { animation: bounceRoof .6s var(--ease); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes bounceRoof { 0%,100% { transform: none; } 40% { transform: translateY(-3px); } }

.menu { display: flex; gap: 4px; margin-left: 12px; }
.menu__link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 12px;
  font-size: 15px; font-weight: 500; opacity: .82; transition: opacity .2s, background .2s;
}
.menu__link:hover, .menu__item:hover .menu__link { opacity: 1; background: rgba(127,127,127,.12); }
.menu__link svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .3s; }
.has-mega { position: relative; }
.has-mega:hover svg, .has-mega:focus-within svg { transform: rotate(180deg); }

.mega {
  position: absolute; top: calc(100% + 14px); left: -20px; width: min(860px, 80vw);
  display: grid; grid-template-columns: 1fr 240px; gap: 8px; padding: 10px;
  background: var(--paper); color: var(--ink); border-radius: 22px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(8px) scale(.98); transform-origin: 20% 0;
  transition: opacity .25s, transform .35s var(--ease), visibility .25s;
}
.mega::before { content: ""; position: absolute; inset: -16px 0 auto; height: 16px; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.mega__grid a {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; font-size: 14px; font-weight: 500;
  transition: background .2s;
}
.mega__grid a:hover { background: var(--bg); }
.mega__grid a small { margin-left: auto; color: var(--muted); font: 500 12px var(--mono); }
.mega__ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--bg); flex: none; transition: background .2s, color .2s; }
.mega__ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mega__grid a:hover .mega__ic { background: var(--accent-strong); color: #fff; }
.mega__aside { background: var(--dark); color: #fff; border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.mega__aside .muted { color: #a3a6ab; font-size: 14px; margin: 0 0 auto; }
.mega__title { font: 700 22px/1.1 var(--display); margin: 0; letter-spacing: -.02em; }

.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search-btn {
  display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 8px 0 14px; border-radius: 12px;
  background: rgba(127,127,127,.14); font-size: 14px; color: inherit; opacity: .9; transition: background .2s;
}
.search-btn:hover { background: rgba(127,127,127,.22); }
.search-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
.search-btn span { opacity: .7; }
kbd { font: 600 11px var(--mono); padding: 4px 7px; border-radius: 7px; background: rgba(127,127,127,.18); }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; background: rgba(127,127,127,.14); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 90; background: var(--dark); color: #fff; padding: 110px 24px 40px;
  clip-path: circle(0 at calc(100% - 46px) 46px); transition: clip-path .7s var(--ease-out); overflow-y: auto;
}
.drawer.is-open { clip-path: circle(150% at calc(100% - 46px) 46px); }
.drawer__nav a { display: block; font: 700 40px/1.25 var(--display); letter-spacing: -.03em; opacity: 0; transform: translateY(20px); transition: .5s var(--ease); }
.drawer.is-open .drawer__nav a { opacity: 1; transform: none; }
.drawer.is-open .drawer__nav a:nth-child(2) { transition-delay: .05s; } .drawer.is-open .drawer__nav a:nth-child(3) { transition-delay: .1s; }
.drawer.is-open .drawer__nav a:nth-child(4) { transition-delay: .15s; } .drawer.is-open .drawer__nav a:nth-child(5) { transition-delay: .2s; }
.drawer__cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.drawer__cats a { padding: 8px 14px; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; font-size: 14px; }

/* =========================================================
   HERO (pinned, scroll-driven exploded house)
   ========================================================= */
.hero { position: relative; height: 230vh; background: var(--dark); color: #fff; overflow: clip; }
.hero__sticky { position: sticky; top: 0; height: 100vh; min-height: 680px; display: flex; align-items: center; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(143,178,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143,178,255,.07) 1px, transparent 1px),
    linear-gradient(rgba(143,178,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143,178,255,.035) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 45%, #000 30%, transparent 85%);
}
.hero__glow {
  position: absolute; width: 900px; height: 900px; left: 68%; top: 42%;
  transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(circle, rgba(255,91,20,.22), rgba(255,91,20,0) 60%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 40px; align-items: center; padding-top: 70px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; margin: 0 0 28px;
  border: 1px solid rgba(255,255,255,.14); border-radius: 999px; font-size: 13px; color: #c9cbcf;
  background: rgba(255,255,255,.04); backdrop-filter: blur(6px);
}
.dot { display: none; }

.hero__title { font: 800 clamp(52px, 8.4vw, 124px)/.9 var(--display); letter-spacing: -.055em; margin: 0 0 28px; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; transform: translateY(110%); animation: rise 1.1s var(--ease-out) forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: .12s; }
.hero__title .line:nth-child(3) > span { animation-delay: .24s; }
.hero__title .line--sm { font-size: .36em; letter-spacing: -.03em; font-weight: 600; color: #a7aab0; margin-top: .25em; }
@keyframes rise { to { transform: none; } }
.hero__lead { font-size: clamp(17px, 1.4vw, 20px); color: #b5b8bd; max-width: 520px; margin: 0 0 32px; }

.hero-search {
  display: flex; align-items: center; gap: 12px; max-width: 560px; height: 64px; padding: 0 8px 0 22px;
  border-radius: 20px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px); cursor: text; transition: border-color .3s, background .3s, transform .4s var(--ease);
}
.hero-search:hover { border-color: rgba(255,91,20,.6); background: rgba(255,255,255,.1); }
.hero-search svg { width: 20px; height: 20px; fill: none; stroke: #9a9ea4; stroke-width: 2; flex: none; }
.hero-search input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; font-size: 16px; color: #fff; cursor: text; }
.hero-search input::placeholder { color: #8a8e94; }
.hero-search__btn { color: #fff; flex: none; height: 48px; padding: 0 22px; display: grid; place-items: center; border-radius: 14px; background: var(--accent-strong); font-weight: 600; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; }
.chips .muted { color: #8a8e94; margin-right: 4px; }
.chip { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); font-size: 13px; color: #d5d7da; transition: .25s; }
.chip:hover { background: #fff; color: var(--ink); border-color: #fff; }

.hero__visual { position: relative; aspect-ratio: 1 / .88; width: 100%; }
#house { width: 100%; height: 100%; overflow: visible; }
.hero__badge {
  position: absolute; display: flex; flex-direction: column; padding: 14px 18px; border-radius: 18px;
  background: rgba(23,25,28,.7); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px -20px #000; animation: float 6s ease-in-out infinite; opacity: 0;
  animation: badgeIn .9s 1.6s var(--ease-out) forwards, float 6s 2.5s ease-in-out infinite;
}
.hero__badge b { font: 800 30px/1 var(--display); letter-spacing: -.03em; }
.hero__badge span { font-size: 12px; color: #9a9ea4; margin-top: 4px; }
.hero__badge--a { left: 2%; top: 10%; }
.hero__badge--b { left: 4%; bottom: 4%; animation-delay: 1.8s, 3.5s; }
.hero__badge--b b { color: #3ddc84; }
@keyframes badgeIn { from { opacity: 0; transform: translateY(20px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes float { 0%,100% { translate: 0 0; } 50% { translate: 0 -10px; } }

.scroll-hint {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px;
  font: 500 13px var(--sans); color: #8a8e94; transition: opacity .3s;
}
.scroll-hint span { width: 22px; height: 36px; border: 1.5px solid #5a5e64; border-radius: 12px; position: relative; }
.scroll-hint span::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; border-radius: 2px; background: var(--accent-strong); transform: translateX(-50%); }
@keyframes wheel { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 12px); } }

/* --- iso house --- */
.layer { transition: opacity .3s; }
.layer__inner { transform: translateY(-260px); opacity: 0; animation: drop .9s var(--ease-out) forwards; }
@keyframes drop { 60% { opacity: 1; } to { transform: none; opacity: 1; } }
.f-top { fill: #e9e4da; } .f-r { fill: #c9c2b4; } .f-l { fill: #a59d8e; }
.slab .f-top { fill: #8c9096; } .slab .f-r { fill: #6d7177; } .slab .f-l { fill: #575b61; }
.membrane .f-top { fill: #2d3138; } .membrane .f-r { fill: #22252b; } .membrane .f-l { fill: #1a1d22; }
.insul .f-top { fill: #ffcc4d; } .insul .f-r { fill: #f2b322; } .insul .f-l { fill: #d99a10; }
.walls .f-top { fill: #f6f2ea; } .walls .f-r { fill: #ece6da; } .walls .f-l { fill: #d4ccbc; }
.ceil .f-top { fill: #b9bcc1; } .ceil .f-r { fill: #9a9da3; } .ceil .f-l { fill: #80848a; }
.roofA { fill: #2a2d33; } .roofB { fill: #3a3e45; } .roofEdge { fill: none; stroke: #ff5b14; stroke-width: 2.2; }
.gable { fill: #e2dbcd; } .gable-l { fill: #c6beaf; }
.win { fill: #1d2a3a; } .win-glass { fill: url(#glass); } .frame { fill: none; stroke: #ffffff; stroke-width: 1.4; opacity: .7; }
.door { fill: #ff5b14; }
.chim .f-top { fill: #4a4e55; } .chim .f-r { fill: #8b4a36; } .chim .f-l { fill: #6e3829; }
.solar { fill: #19305c; stroke: #8fb2ff; stroke-width: .7; }
.grass { fill: #1b1e22; stroke: rgba(143,178,255,.25); stroke-dasharray: 4 6; }
.shadow-ell { fill: #000; opacity: .5; filter: blur(14px); }
.lbl { opacity: 0; transition: opacity .2s; }
.lbl line { stroke: rgba(255,255,255,.35); stroke-width: 1; stroke-dasharray: 3 3; }
.lbl circle { fill: var(--accent); }
.lbl text { fill: #fff; font: 600 15px var(--sans); }
.lbl text.n { fill: var(--accent); font: 600 11px var(--mono); letter-spacing: .1em; }
.dim-line { stroke: rgba(143,178,255,.55); stroke-width: 1; fill: none; }
.dim-txt { fill: rgba(143,178,255,.9); font: 500 10px var(--mono); }
.smoke { display: none; }
.smoke circle:nth-child(2) { animation-delay: 1.3s; } .smoke circle:nth-child(3) { animation-delay: 2.6s; }
@keyframes smoke { 0% { opacity: 0; transform: translate(0, 0) scale(.4); } 20% { opacity: .35; } 100% { opacity: 0; transform: translate(18px, -60px) scale(1.6); } }

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee { background: var(--accent-strong); color: #fff; overflow: hidden; padding: 18px 0; transform: rotate(-1.2deg) scale(1.03); margin-top: -24px; position: relative; z-index: 2; }
.marquee__track { display: flex; gap: 40px; width: max-content; font: 700 22px/1 var(--display); letter-spacing: -.01em; white-space: nowrap; }
.marquee__track span { display: inline-flex; align-items: center; gap: 40px; }
.marquee__track span::after { content: "✦"; font-size: 14px; opacity: .7; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-50%); } }

/* =========================================================
   FEATURED + STATS
   ========================================================= */
.featured { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; }
.feat-card {
  position: relative; border-radius: var(--r); overflow: hidden; min-height: 460px; display: flex; align-items: flex-end;
  color: #fff; isolation: isolate; box-shadow: var(--shadow-lg);
}
.feat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease-out); }
.feat-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.85)); }
.feat-card:hover img { transform: scale(1.06); }
.feat-card__body { padding: clamp(24px, 3vw, 40px); max-width: 680px; }
.feat-card__tag { display: inline-flex; gap: 8px; align-items: center; font: 600 13px var(--sans); padding: 7px 12px; border-radius: 999px; background: var(--accent-strong); margin-bottom: 18px; }
.feat-card h3, .feat-card__h { font: 700 clamp(26px, 3vw, 40px)/1.05 var(--display); letter-spacing: -.03em; margin: 0 0 12px; text-wrap: balance; }
.feat-card p { color: #d6d8db; margin: 0 0 22px; }
.feat-card .go { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.go__circ { width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; transition: transform .4s var(--ease), background .3s; }
.feat-card:hover .go__circ { transform: rotate(-45deg); background: var(--accent-strong); color: #fff; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.stat {
  background: var(--paper); border-radius: var(--r); padding: 26px; display: flex; flex-direction: column; justify-content: flex-end;
  border: 1px solid var(--line); position: relative; overflow: hidden;
}
.stat::before { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; border: 1px dashed var(--line); }
.stat b { font: 800 clamp(40px, 4.4vw, 60px)/1 var(--display); letter-spacing: -.05em; }
.stat:nth-child(1) b { color: var(--accent-ink); }
.stat span { color: var(--muted); font-size: 14px; margin-top: 8px; }
.stat:nth-child(4) { background: var(--dark); color: #fff; border-color: var(--dark); }

/* =========================================================
   SECTION HEAD
   ========================================================= */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 48px; flex-wrap: wrap; }
.sec-head__aside { max-width: 380px; margin: 0; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i) * 45ms); }
.split.in .w > span { transform: none; }

/* =========================================================
   BENTO CATEGORIES
   ========================================================= */
.bento { display: grid; grid-auto-flow: dense; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 16px; }
.cat {
  position: relative; border-radius: var(--r); padding: 24px; background: var(--paper); border: 1px solid var(--line);
  display: flex; flex-direction: column; overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .5s, border-color .3s;
  transform-style: preserve-3d;
}
.cat:hover { box-shadow: var(--shadow-lg); border-color: transparent; }
.cat::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(400px circle at var(--px, 50%) var(--py, 50%), rgba(255,91,20,.12), transparent 50%);
}
.cat:hover::after { opacity: 1; }
.cat__n { font: 600 12px var(--mono); color: var(--muted); }
.cat__ic { width: 52px; height: 52px; border-radius: 16px; background: var(--bg); display: grid; place-items: center; margin-bottom: auto; transition: background .3s, color .3s, transform .5s var(--ease); }
.cat__ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cat:hover .cat__ic { background: var(--accent-strong); color: #fff; transform: rotate(-8deg) scale(1.05); }
.cat__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: auto; }
.cat h3 { font: 700 21px/1.15 var(--display); letter-spacing: -.02em; margin: 0 0 4px; }
.cat p { margin: 0; color: var(--muted); font-size: 14px; display: flex; justify-content: space-between; align-items: center; }
.cat p i { font-style: normal; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: .35s var(--ease); }
.cat:hover p i { background: var(--ink); color: #fff; border-color: var(--ink); transform: rotate(-45deg); }
.cat--xl { grid-column: span 2; grid-row: span 2; background: var(--dark); color: #fff; border-color: var(--dark); padding: 32px; }
.cat--xl h3 { font-size: clamp(30px, 3vw, 44px); }
.cat__desc { margin: 0 0 18px !important; max-width: 360px; display: block !important; }
.cat--xl .cat__ic { background: rgba(255,255,255,.08); }
.cat--xl p { color: #a3a6ab; }
.cat--xl p i { border-color: rgba(255,255,255,.2); }
.cat--xl .cat__art { position: absolute; right: -40px; top: -20px; width: 70%; opacity: .9; z-index: -1; }
.cat--wide { grid-column: span 2; }
.cat--accent { background: var(--accent-strong); color: #fff; border-color: var(--accent-strong); }
.cat--accent p, .cat--accent .cat__n { color: rgba(255,255,255,.8); }
.cat--accent .cat__ic { background: rgba(255,255,255,.18); }
.cat--accent p i { border-color: rgba(255,255,255,.35); }
.cat--accent:hover .cat__ic { background: #fff; color: var(--accent-ink); }

/* =========================================================
   CALCULATORS
   ========================================================= */
.calc-sec { background: var(--dark); color: #fff; position: relative; overflow: hidden; border-radius: 40px 40px 0 0; }
.calc-sec::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(143,178,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(143,178,255,.05) 1px, transparent 1px);
  background-size: 32px 32px; mask-image: linear-gradient(180deg, #000, transparent 80%);
}
.sec-head--dark .muted { color: #9a9ea4; }
.calc { position: relative; background: var(--dark-2); border: 1px solid rgba(255,255,255,.08); border-radius: 28px; padding: 10px; }
.calc__tabs { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: rgba(0,0,0,.3); border-radius: 20px; padding: 6px; }
.calc__tabs button { position: relative; z-index: 1; padding: 16px 12px; border-radius: 15px; font-weight: 600; font-size: 15px; color: #9a9ea4; display: flex; align-items: center; justify-content: center; gap: 10px; transition: color .3s; }
.calc__tabs button span { font: 500 11px var(--mono); opacity: .6; }
.calc__tabs button.is-active { color: #fff; }
.calc__ink { position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 0; width: 0; border-radius: 15px; background: var(--dark-3); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 0 0 0 var(--accent); transition: transform .5s var(--ease), width .5s var(--ease); }
.calc__ink::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: -1px; height: 2px; background: var(--accent-strong); border-radius: 2px; box-shadow: 0 0 12px var(--accent); }
.calc__panel { display: grid; grid-template-columns: 1fr 1.25fr; gap: 10px; padding-top: 10px; }
.calc__panel[hidden] { display: none; }
.calc__panel.is-active { animation: panelIn .6s var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } }
.calc__form { padding: clamp(20px, 3vw, 40px); display: flex; flex-direction: column; gap: 26px; }
.calc__viz { background: #0b0c0e; border-radius: 22px; padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: 440px; position: relative; overflow: hidden; }
.field { display: grid; grid-template-columns: 1fr auto; gap: 12px 16px; align-items: center; }
.field > span { font-size: 14px; color: #b5b8bd; font-weight: 500; }
.field output { font: 600 18px var(--mono); color: #fff; min-width: 90px; text-align: right; }
.field input[type=range] { grid-column: 1 / -1; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; outline: none; cursor: pointer;
  background: linear-gradient(90deg, var(--accent) 0 var(--p, 50%), rgba(255,255,255,.12) var(--p, 50%)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 6px solid var(--accent); box-shadow: 0 0 0 6px rgba(255,91,20,.18); transition: transform .2s var(--ease), box-shadow .2s; }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.18); box-shadow: 0 0 0 10px rgba(255,91,20,.2); }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 6px solid var(--accent); }
.formula { margin: 0; color: #8a8e94; font-size: 14px; }
.formula code { font: 600 15px var(--mono); color: var(--bp); background: rgba(143,178,255,.08); padding: 6px 10px; border-radius: 8px; border: 1px solid rgba(143,178,255,.15); }
.result { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.result > div { background: var(--dark-2); border: 1px solid rgba(255,255,255,.06); border-radius: 16px; padding: 16px; }
.result small { display: block; font-size: 12px; color: #8a8e94; margin-bottom: 6px; }
.result b { font: 700 26px/1.1 var(--display); letter-spacing: -.02em; }
.result > div:first-child b { color: var(--accent); }
.result__txt { font-size: 16px !important; line-height: 1.25 !important; }

.roof-viz { width: 100%; max-height: 300px; color: var(--bp); }
.rv-wall { fill: url(#hatch); stroke: rgba(143,178,255,.5); stroke-width: 1.2; }
.rv-roof { fill: rgba(255,91,20,.14); stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; transition: all .15s; }
.rv-dim { stroke: var(--bp); stroke-dasharray: 4 4; stroke-width: 1.2; }
.rv-arc { fill: none; stroke: var(--accent-2); stroke-width: 2; }
.rv-angle { fill: var(--accent-2); font: 600 14px var(--mono); }
.rv-h { fill: var(--bp); font: 600 13px var(--mono); }

.slab { flex: 1; display: grid; place-items: center; perspective: 900px; min-height: 240px; }
.slab__box { --l: 6; --w: 4; --t: 15; position: relative; width: calc(var(--l) * 14px); height: calc(var(--w) * 14px); transform: rotateX(58deg) rotateZ(-38deg); transform-style: preserve-3d; transition: width .25s var(--ease), height .25s var(--ease); }
.slab__box i { position: absolute; display: block; }
.slab__box i:nth-child(1) { inset: 0; background: linear-gradient(135deg, #9a9ea4, #7b7f85); transform: translateZ(calc(var(--t) * 1.4px)); box-shadow: 0 0 0 1px rgba(255,255,255,.2) inset; background-image: radial-gradient(rgba(0,0,0,.18) 1px, transparent 1.5px), linear-gradient(135deg, #a5a9ae, #80848a); background-size: 7px 7px, auto; }
.slab__box i:nth-child(2) { left: 0; right: 0; bottom: 0; height: calc(var(--t) * 1.4px); background: #5d6167; transform-origin: bottom; transform: rotateX(-90deg); }
.slab__box i:nth-child(3) { top: 0; bottom: 0; right: 0; width: calc(var(--t) * 1.4px); background: #4a4e54; transform-origin: right; transform: rotateY(90deg); }
.buckets { flex: 1; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 12px; min-height: 240px; }
.bucket { width: 46px; height: 54px; position: relative; animation: pop .5s var(--ease-out) backwards; }
.bucket::before { content: ""; position: absolute; inset: 8px 2px 0; border-radius: 4px 4px 10px 10px; background: linear-gradient(180deg, #f3f1ec, #cfcac0); clip-path: polygon(0 0, 100% 0, 92% 100%, 8% 100%); }
.bucket::after { content: ""; position: absolute; left: 6px; right: 6px; top: 16px; height: 14px; background: var(--accent-strong); border-radius: 2px; }
.bucket.half { opacity: .45; }
@keyframes pop { from { transform: scale(0) translateY(20px); opacity: 0; } }
.ratio-form { grid-column: 1 / -1; align-items: center; text-align: center; padding-block: 50px; }
.calc__panel[data-panel=ratio] { grid-template-columns: 1fr; }
.ratio-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px 20px; align-items: center; width: min(560px, 100%); }
.num { display: flex; align-items: center; gap: 12px; background: #0b0c0e; border: 1px solid rgba(255,255,255,.08); border-radius: 18px; padding: 8px 18px; transition: border-color .3s; }
.num:focus-within { border-color: var(--accent); }
.num span { font: 600 14px var(--mono); color: var(--bp); }
.num input { width: 100%; min-width: 0; background: none; border: 0; outline: 0; font: 700 28px var(--display); color: #fff; padding: 8px 0; }
.num--res { background: var(--accent-strong); border-color: var(--accent); }
.num--res span { color: rgba(255,255,255,.8); }
.num--res b { font: 700 28px var(--display); padding: 8px 0; }
.ratio-arrow { color: #5a5e64; font-size: 24px; }

/* =========================================================
   POSTS
   ========================================================= */
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 28px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters button { flex: none; padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; border: 1px solid var(--line); background: var(--paper); transition: .25s; }
.filters button:hover { border-color: var(--ink); }
.filters button.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters button small { opacity: .55; margin-left: 4px; font-family: var(--mono); }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
a.post { display: flex; flex-direction: column; gap: 16px; animation: cardIn .7s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(30px); } }
.post__img { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-sm); overflow: hidden; background: var(--bg-2); }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out), filter .5s; }
a.post:hover .post__img img { transform: scale(1.07); }
.post__img::after { content: "Číst →"; position: absolute; right: 14px; bottom: 14px; padding: 8px 14px; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; transform: translateY(12px); opacity: 0; transition: .4s var(--ease); }
a.post:hover .post__img::after { transform: none; opacity: 1; }
.post__meta { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.post__meta b { color: #c2410c; font-weight: 600; }
.post__meta i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
a.post h3 { font: 700 21px/1.2 var(--display); letter-spacing: -.02em; margin: -6px 0 0; text-wrap: balance;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .5s var(--ease); display: inline; }
a.post:hover h3 { background-size: 100% 1.5px; }
a.post p { margin: 0; color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post--lead { grid-column: span 2; grid-row: span 2; }
.post--lead .post__img { aspect-ratio: auto; flex: 1; min-height: 320px; }
.post--lead h3 { font-size: clamp(26px, 2.6vw, 34px); }
.empty { grid-column: 1 / -1; text-align: center; padding: 60px; color: var(--muted); }

/* =========================================================
   WINTER CHECKLIST
   ========================================================= */
.winter { background: linear-gradient(180deg, var(--ice), #f5f8fb); position: relative; overflow: hidden; }
.snow { position: absolute; inset: 0; pointer-events: none; }
.snow i { display: none; }
@keyframes fall { to { transform: translate(var(--x), 110vh); } }
.winter__inner { position: relative; display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.winter__intro { position: sticky; top: 120px; }
.winter__intro .muted { max-width: 420px; margin: 20px 0 32px; }
.winter .eyebrow { color: #2c6fd6; }
.ring { position: relative; width: 150px; height: 150px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: rgba(44,111,214,.12); stroke-width: 10; }
.ring .ring__bar { stroke: #2c6fd6; stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; transition: stroke-dashoffset .8s var(--ease-out), stroke .4s; }
.ring.is-done .ring__bar { stroke: #1fb86a; }
.ring__txt { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring__txt b { font: 800 44px/1 var(--display); }
.ring__txt span { font-size: 12px; color: var(--muted); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: c; }
.check {
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 20px 22px;
  background: rgba(255,255,255,.75); backdrop-filter: blur(8px); border: 1px solid rgba(44,111,214,.12); border-radius: 18px;
  transition: transform .4s var(--ease), box-shadow .4s, background .3s;
}
.check:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.check__box { width: 30px; height: 30px; border-radius: 10px; border: 2px solid rgba(44,111,214,.35); display: grid; place-items: center; transition: .3s var(--ease); flex: none; }
.check__box svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .4s .1s var(--ease); }
.check.is-done .check__box { background: #1fb86a; border-color: #1fb86a; transform: scale(1.08); }
.check.is-done .check__box svg { stroke-dashoffset: 0; }
.check.is-done { background: rgba(255,255,255,.45); }
.check.is-done h3 { text-decoration: line-through; text-decoration-color: rgba(0,0,0,.35); color: var(--muted); }
.check h3 { margin: 0 0 2px; font: 600 17px/1.3 var(--sans); transition: color .3s; }
.check p { margin: 0; font-size: 14px; color: var(--muted); }
.check__when { font: 600 12px var(--sans); color: #2c6fd6; background: rgba(44,111,214,.08); padding: 4px 8px; border-radius: 6px; margin-right: 8px; }
.check a { font-size: 13px; font-weight: 600; color: #2c6fd6; white-space: nowrap; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(44,111,214,.2); transition: .25s; }
.check a:hover { background: #2c6fd6; color: #fff; }
.confetti { position: fixed; width: 8px; height: 12px; pointer-events: none; z-index: 300; border-radius: 2px; }

/* =========================================================
   TOOLS
   ========================================================= */
.tool-search { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); min-width: 300px; transition: border-color .25s, box-shadow .25s; }
.tool-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,91,20,.12); }
.tool-search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; }
.tool-search input { border: 0; outline: 0; background: none; flex: 1; font-size: 15px; }
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tool {
  position: relative; padding: 22px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px; min-height: 172px; overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s, border-color .3s; animation: cardIn .6s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 25ms);
}
.tool:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.tool__f { font: 600 14px var(--mono); color: var(--ink-2); background: var(--bg); border-radius: 10px; padding: 10px 12px; align-self: flex-start; transition: background .3s, color .3s; }
.tool:hover .tool__f { background: var(--dark); color: var(--accent-2); }
.tool__shape { position: absolute; right: 16px; top: 16px; width: 44px; height: 44px; fill: none; stroke: var(--line); stroke-width: 1.5; transition: stroke .4s, transform .6s var(--ease); }
.tool:hover .tool__shape { stroke: var(--accent); transform: rotate(-12deg) scale(1.1); }
.tool h3 { margin: auto 0 0; font: 600 17px/1.25 var(--display); letter-spacing: -.01em; }
.tool small { color: var(--muted); font-size: 13px; }
.tool--guide .tool__f { background: var(--accent-soft); color: #b93d05; font-family: var(--sans); font-weight: 600; font-size: 13px; }

/* =========================================================
   NEWSLETTER
   ========================================================= */
.news {
  position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
  background: var(--accent-strong); color: #fff; border-radius: 36px; padding: clamp(32px, 5vw, 72px); overflow: hidden; isolation: isolate;
}
.news__bp { position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.25) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.25) 1px, transparent 1px);
  background-size: 40px 40px; mask-image: radial-gradient(circle at 100% 0, #000, transparent 70%); }
.news::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 460px; height: 460px; border-radius: 50%; border: 60px solid rgba(255,255,255,.1); z-index: -1; border-top-color: rgba(255,255,255,.22); }
@keyframes spin { to { transform: rotate(360deg); } }
.news .eyebrow { color: #fff; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; font-size: 12px; font-weight: 700; margin-top: 2px; }
.news__form { display: flex; flex-direction: column; gap: 12px; background: rgba(0,0,0,.14); padding: 10px; border-radius: 24px; }
.news__form input { height: 60px; border-radius: 16px; border: 0; padding: 0 22px; font-size: 16px; color: var(--ink); outline: 0; }
.news__form input:focus { box-shadow: 0 0 0 4px rgba(255,255,255,.4); }
.news__form .btn { --h: 60px; background: var(--dark); box-shadow: none; border-radius: 16px; }
.news__form .btn:hover { background: #000; }
.news__ok { margin: 4px 8px; font-weight: 600; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--dark); color: #fff; padding: 100px 0 32px; margin-top: 40px; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer .muted { color: #8a8e94; max-width: 340px; margin: 20px 0; }
.footer__h { font: 600 15px var(--sans); color: #fff; margin: 0 0 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: #d5d7da; transition: color .2s; }
.footer ul a:hover { color: var(--accent); }
.footer__bottom { margin-top: 64px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #9a9ea4; font-size: 13px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); }

.totop { position: fixed; right: 24px; bottom: 24px; z-index: 80; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); transform: translateY(120px); transition: transform .5s var(--ease), background .25s; }
.totop.is-on { transform: none; }
.totop:hover { background: var(--accent-strong); }
.totop svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* =========================================================
   COMMAND PALETTE
   ========================================================= */
.cmdk { position: fixed; inset: 0; z-index: 500; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.cmdk[hidden] { display: none; }
.cmdk__backdrop { position: absolute; inset: 0; background: rgba(10,11,13,.55); backdrop-filter: blur(6px); animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.cmdk__panel { position: relative; width: min(680px, 100%); max-height: 70vh; display: flex; flex-direction: column; background: var(--paper); border-radius: 22px; box-shadow: 0 40px 100px -20px rgba(0,0,0,.6); overflow: hidden; animation: cmdIn .35s var(--ease-out); }
@keyframes cmdIn { from { opacity: 0; transform: translateY(-14px) scale(.97); } }
.cmdk__input { display: flex; align-items: center; gap: 14px; padding: 0 20px; height: 66px; border-bottom: 1px solid var(--line); }
.cmdk__input svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; }
.cmdk__input input { flex: 1; border: 0; outline: 0; font-size: 18px; background: none; }
.cmdk__input kbd { cursor: pointer; background: var(--bg); }
.cmdk__list { list-style: none; margin: 0; padding: 8px; overflow-y: auto; }
.cmdk__group { font: 600 13px var(--sans); color: var(--muted); padding: 14px 12px 6px; }
.cmdk__item a { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 12px; }
.cmdk__item.is-sel a { background: var(--bg); }
.cmdk__item.is-sel .cmdk__ic { background: var(--accent-strong); color: #fff; }
.cmdk__ic { width: 38px; height: 38px; flex: none; border-radius: 10px; background: var(--bg); display: grid; place-items: center; font: 600 12px var(--mono); overflow: hidden; transition: .2s; }
.cmdk__ic img { width: 100%; height: 100%; object-fit: cover; }
.cmdk__ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.cmdk__t { font-weight: 500; font-size: 15px; line-height: 1.3; }
.cmdk__t mark { background: var(--accent-soft); color: inherit; border-radius: 3px; padding: 0 1px; }
.cmdk__s { font-size: 12px; color: var(--muted); }
.cmdk__ret { margin-left: auto; opacity: 0; font-size: 13px; color: var(--muted); }
.cmdk__item.is-sel .cmdk__ret { opacity: 1; }
.cmdk__foot { display: flex; gap: 18px; padding: 12px 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.cmdk__foot kbd { background: var(--bg); margin-right: 4px; }
.cmdk__none { padding: 40px; text-align: center; color: var(--muted); }

/* =========================================================
   REVEAL
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
.hero .reveal { animation: heroIn 1s var(--ease-out) forwards; opacity: 0; transform: translateY(20px); transition: none; }
.hero .reveal:nth-of-type(1) { animation-delay: .05s; }
.hero__lead.reveal { animation-delay: .45s; } .hero-search.reveal { animation-delay: .55s; } .chips.reveal { animation-delay: .65s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .menu, .search-btn span, .search-btn kbd { display: none; }
  .search-btn { padding: 0; width: 44px; justify-content: center; }
  .burger { display: block; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tools { grid-template-columns: repeat(3, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero { height: auto; }
  .hero__sticky { position: relative; height: auto; min-height: 0; padding: 110px 0 80px; }
  .hero__inner { grid-template-columns: 1fr; padding-top: 0; }
  .hero__visual { max-width: 520px; margin: 0 auto; width: 100%; }
  .scroll-hint, .lbl { display: none; }
  .hero__badge { padding: 10px 14px; } .hero__badge b { font-size: 22px; } .hero__badge--a { top: 0; }
  .featured, .winter__inner, .news, .calc__panel { grid-template-columns: 1fr; }
  .winter__intro { position: static; }
  .posts { grid-template-columns: 1fr 1fr; }
  .post--lead { grid-column: span 2; grid-row: auto; }
  .calc__tabs { grid-template-columns: 1fr 1fr; }
  .calc__ink { display: none; }
  .calc__tabs button.is-active { background: var(--dark-3); }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 32px); }
  .nav { padding: 8px 0; }
  .nav__actions .btn { display: none; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .cat { min-height: 150px; } .cat--xl { grid-column: auto; grid-row: auto; min-height: 280px; } .cat--wide { grid-column: auto; }
  .stats { gap: 12px; } .stat { padding: 20px; }
  .posts, .tools { grid-template-columns: 1fr; }
  .post--lead { grid-column: auto; }
  .tool-search { min-width: 0; width: 100%; }
  .result { grid-template-columns: 1fr; }
  .result b { font-size: 22px; }
  .check { grid-template-columns: auto 1fr; } .check a { grid-column: 2; justify-self: start; }
  .footer__top { grid-template-columns: 1fr; }
  .hero-search__btn { display: none; }
  .ratio-grid { grid-template-columns: 1fr auto 1fr; gap: 10px; }
  .num { padding: 6px 12px; } .num input, .num--res b { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .split .w > span, .hero__title .line > span { opacity: 1 !important; transform: none !important; }
  .snow { display: none; }
}

/* =========================================================
   WORDPRESS THEME ADDITIONS — shared bits
   ========================================================= */
.ic { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.logo__img { max-height: 44px; width: auto; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.news__legal { margin: 2px 8px 0; font-size: 12px; opacity: .85; }
.news__legal a { text-decoration: underline; }
.news__err { margin: 4px 8px; font-weight: 600; color: #fff; background: rgba(0,0,0,.25); padding: 8px 12px; border-radius: 10px; }
.news--compact { grid-template-columns: 1fr 1fr; padding: clamp(28px, 4vw, 44px); border-radius: 28px; margin: 56px 0; }
.news--compact .h2 { font-size: clamp(24px, 2.6vw, 32px); }
.post__ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--muted); font-size: 48px; background: repeating-linear-gradient(45deg, var(--bg-2) 0 10px, var(--bg) 10px 20px); }
.posts--3 { grid-template-columns: repeat(3, 1fr); }
.tools--4 { grid-template-columns: repeat(4, 1fr); margin-top: 40px; text-align: left; }
.chip--light { border-color: var(--line); color: var(--ink); background: var(--paper); }
.chip--light:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
a.post.is-hidden, .tool.is-hidden { display: none; }

/* breadcrumbs */
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; }
.crumbs li + li::before { content: "/"; opacity: .5; }
.crumbs li:last-child span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; display: inline-block; vertical-align: bottom; }
.crumbs a:hover { color: var(--accent-ink); }

/* pagination */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 64px 0 0; }
.pager .page-numbers { min-width: 48px; height: 48px; padding: 0 14px; display: inline-grid; place-items: center; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); font-weight: 600; transition: .25s var(--ease); }
.pager a.page-numbers:hover { border-color: var(--ink); transform: translateY(-2px); }
.pager .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager .dots { border: 0; background: none; }

/* =========================================================
   LISTING HERO (archives, search, pages, 404)
   ========================================================= */
.list-hero { position: relative; background: var(--dark); color: #fff; overflow: hidden; padding-top: 150px; }
.list-hero__inner { position: relative; padding-bottom: 52px; }
.list-hero .crumbs { color: #8a8e94; }
.list-hero .crumbs a:hover { color: #fff; }
.list-hero__row { display: flex; align-items: center; gap: 24px; }
.list-hero__ic { width: 84px; height: 84px; border-radius: 24px; background: var(--accent-strong); display: grid; place-items: center; font-size: 40px; color: #fff; flex: none; box-shadow: 0 20px 40px -16px rgba(255,91,20,.7); animation: icIn 1s var(--ease-out) both; }
@keyframes icIn { from { transform: rotate(-20deg) scale(.6); opacity: 0; } }
.list-hero .eyebrow { margin-bottom: 10px; }
.list-hero__title { font: 800 clamp(40px, 6.4vw, 92px)/.95 var(--display); letter-spacing: -.05em; margin: 0; text-wrap: balance; animation: heroIn 1s .1s var(--ease-out) both; }
.list-hero__desc { color: #b5b8bd; max-width: 680px; font-size: 18px; margin-top: 20px; }
.list-hero__desc p { margin: 0 0 .6em; }
.list-hero .pill { margin: 24px 0 0; }
.list-hero .hero-search { margin-top: 28px; }
.cat-strip { position: relative; border-top: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.25); }
.cat-strip__track { display: flex; gap: 8px; overflow-x: auto; padding: 16px 0; scrollbar-width: none; }
.cat-strip__track::-webkit-scrollbar { display: none; }
.cat-strip a { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); color: #c9cbcf; font-size: 14px; font-weight: 500; transition: .25s; }
.cat-strip a small { opacity: .5; font-family: var(--mono); font-size: 11px; }
.cat-strip a .ic { font-size: 16px; }
.cat-strip a:hover { background: rgba(255,255,255,.08); color: #fff; }
.cat-strip a.is-active { background: var(--accent-strong); border-color: var(--accent); color: #fff; }
.list-main { padding-top: 64px; }
.list-sub { font-size: clamp(28px, 3vw, 40px); margin: 80px 0 32px; }
.calc-sec--inline { border-radius: 32px; padding: clamp(28px, 4vw, 56px); }

/* empty state */
.empty-state { text-align: center; max-width: 980px; margin: 0 auto; }
.empty-state__art { width: 220px; margin: 0 auto 24px; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.es-ground { stroke: var(--line); } .es-house { stroke: var(--ink); stroke-dasharray: 260; animation: draw 2s var(--ease-out) both; }
.es-door { stroke: var(--accent); } .es-crane { stroke: var(--muted); }
.es-rope, .es-load { stroke: var(--accent); transform-origin: 118px 20px; }
.es-load { fill: var(--accent-soft); }
@keyframes swing { 0%,100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
.empty-state .h2 { font-size: clamp(28px, 4vw, 48px); }
.empty-state .muted { margin: 14px auto 24px; max-width: 520px; }
.empty-state__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* =========================================================
   ARTICLE
   ========================================================= */
.art-hero { position: relative; padding: 140px 0 8px; overflow: hidden; }
.art-hero__grid { position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(19,20,22,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(19,20,22,.05) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse 70% 90% at 50% 0, #000, transparent 75%); }
.art-hero__inner { position: relative; max-width: 1000px; }
.art-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: 14px; color: var(--muted); margin-bottom: 22px; animation: heroIn .8s var(--ease-out) both; }
.art-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.art-cat { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--accent-soft); color: #c2410c; font-weight: 600; transition: .25s; }
.art-cat:hover { background: var(--accent-strong); color: #fff; }
.art-formula { font: 600 14px var(--mono); padding: 6px 12px; border-radius: 10px; background: var(--dark); color: var(--accent-2); }
.art-title { font: 800 clamp(36px, 5.4vw, 74px)/1 var(--display); letter-spacing: -.045em; margin: 0 0 24px; text-wrap: balance; max-width: 22ch; animation: heroIn 1s .08s var(--ease-out) both; }
.art-lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; color: var(--ink-2); max-width: 720px; margin: 0 0 30px; animation: heroIn 1s .16s var(--ease-out) both; }
.art-byline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; animation: heroIn 1s .24s var(--ease-out) both; }
.art-byline b { display: block; font-weight: 600; }
.art-byline .muted { font-size: 14px; }
.art-jump { margin-left: auto; }
.art-jump .ic { font-size: 18px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--dark); color: #fff; display: grid; place-items: center; font: 700 15px var(--display); flex: none; position: relative; }
.avatar::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--accent); clip-path: polygon(0 0, 100% 0, 100% 40%, 0 40%); }
.avatar--lg { width: 72px; height: 72px; font-size: 22px; }

.art-cover { margin: 44px auto 0; }
.art-cover__img { border-radius: 28px; overflow: hidden; background: var(--bg-2); box-shadow: var(--shadow-lg); }
.art-cover__img img { width: 100%; aspect-ratio: 21 / 9; max-height: 640px; object-fit: cover; transform: scale(var(--s, 1.06)); transition: transform .2s linear; }
.art-cover figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 12px; }

.art-layout { display: grid; grid-template-columns: 270px minmax(0, 760px); gap: clamp(32px, 5vw, 80px); justify-content: center; padding: 64px 0 40px; }
.art-layout--notoc { grid-template-columns: 56px minmax(0, 760px); }
.art-aside__sticky { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 18px; }
.toc { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 18px 10px 12px 18px; }
.toc__title { display: flex; justify-content: space-between; align-items: center; margin: 0 8px 10px 0; font: 600 15px var(--sans); color: var(--ink); cursor: default; }
.toc__pct { color: var(--accent-ink); }
.toc__list { list-style: none; margin: 0; padding: 0 6px 0 0; max-height: calc(100vh - 330px); overflow-y: auto; scrollbar-width: thin; }
.toc__item a { position: relative; display: flex; gap: 10px; padding: 7px 10px; border-radius: 10px; font-size: 14px; line-height: 1.35; color: var(--muted); transition: color .2s, background .2s; }
.toc__item a span { font: 600 11px/1.9 var(--mono); color: var(--line); color: #b4b6ba; flex: none; }
.toc__item--sub a { padding-left: 38px; font-size: 13px; }
.toc__item a:hover { color: var(--ink); background: var(--bg); }
.toc__item a.is-active { color: var(--ink); background: var(--bg); font-weight: 600; }
.toc__item a.is-active::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--accent-strong); }
.toc__item a.is-active span { color: var(--accent-ink); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share__label { font: 600 13px var(--sans); color: var(--muted); margin-right: 4px; }
.share__btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); display: grid; place-items: center; font: 700 13px var(--sans); transition: .25s var(--ease); }
.share__btn .ic { font-size: 17px; }
.share__btn:hover { background: var(--accent-strong); color: #fff; border-color: var(--accent); transform: translateY(-2px); }
.share__btn.is-ok { background: #1fb86a; color: #fff; border-color: #1fb86a; }
.art-layout--notoc .share { flex-direction: column; }
.art-layout--notoc .share__label { writing-mode: vertical-rl; transform: rotate(180deg); margin: 0 0 6px; }

/* entry content typography */
.entry-content { font-size: 18px; line-height: 1.75; color: #26282c; overflow-wrap: break-word; }
.entry-content > :first-child { margin-top: 0; }
.entry-content p { margin: 0 0 1.25em; }
.entry-content h2 { font: 700 clamp(26px, 2.6vw, 34px)/1.15 var(--display); letter-spacing: -.03em; margin: 2.3em 0 .7em; color: var(--ink); scroll-margin-top: 100px; text-wrap: balance; }
.entry-content h2::before { content: ""; display: block; width: 44px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); margin-bottom: 18px; }
.entry-content h3 { font: 700 clamp(20px, 1.8vw, 24px)/1.25 var(--display); letter-spacing: -.02em; margin: 1.9em 0 .55em; color: var(--ink); scroll-margin-top: 100px; }
.entry-content h4 { font: 700 18px/1.3 var(--sans); margin: 1.6em 0 .5em; }
.entry-content a { color: #c2410c; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: rgba(194,65,12,.35); transition: text-decoration-color .2s, color .2s; }
.entry-content a:hover { color: var(--accent-ink); text-decoration-color: currentColor; }
.entry-content strong, .entry-content b { color: var(--ink); font-weight: 650; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin: 0 0 1.4em; }
.entry-content li { margin: .45em 0; padding-left: .3em; }
.entry-content ul li::marker { color: var(--accent-ink); font-size: 1.1em; }
.entry-content ol li::marker { color: var(--accent-ink); font: 600 .9em var(--mono); }
.entry-content blockquote { margin: 2em 0; padding: 24px 28px; border-left: 4px solid var(--accent); background: var(--paper); border-radius: 0 18px 18px 0; font: 500 20px/1.5 var(--display); color: var(--ink); box-shadow: var(--shadow); }
.entry-content blockquote p:last-child { margin: 0; }
.entry-content img { border-radius: 18px; height: auto; }
.entry-content figure { margin: 2em 0; }
.entry-content figcaption, .entry-content .wp-caption-text { font-size: 14px; color: var(--muted); text-align: center; margin-top: 10px; }
.entry-content code { font: 500 .88em var(--mono); background: var(--bg-2); padding: 2px 7px; border-radius: 6px; }
.entry-content pre { background: var(--dark); color: #e6e6e6; padding: 20px; border-radius: 16px; overflow-x: auto; font-size: 14px; }
.entry-content pre code { background: none; padding: 0; }
.entry-content hr { border: 0; height: 1px; background: var(--line); margin: 3em 0; }
.entry-content .table-responsive { overflow-x: auto; margin: 2em 0; border-radius: 16px; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; margin: 0; }
.entry-content th { background: var(--dark); color: #fff; text-align: left; font: 600 14px/1.4 var(--sans); padding: 14px 16px; }
.entry-content td { padding: 13px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.entry-content tr:nth-child(even) td { background: rgba(19,20,22,.025); }
.entry-content tbody tr:hover td { background: var(--accent-soft); }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.entry-content .alignwide { margin-left: -80px; margin-right: -80px; max-width: none; }
.entry-content iframe, .entry-content video { max-width: 100%; border-radius: 16px; }
.entry-content .wp-block-button__link { background: var(--accent-strong); color: #fff; text-decoration: none; border-radius: 999px; }

/* FAQ accordion (built by JS from "Časté dotazy" sections) */
.faq { margin: 0 0 2em; display: grid; gap: 10px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; transition: box-shadow .3s, border-color .3s; }
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; position: relative; font: 600 17px/1.4 var(--sans); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font-size: 18px; transition: transform .35s var(--ease), background .3s, color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--accent-strong); color: #fff; }
.faq .faq__a { padding: 0 22px 6px; }
.faq h3 { all: unset; }

/* Legacy inline calculators inside posts → styled like the homepage calculator */
.legacy-calc { position: relative; margin: 2.2em 0; padding: clamp(22px, 3vw, 34px); background: var(--dark); color: #fff; border-radius: 26px; box-shadow: var(--shadow-lg); overflow: hidden; isolation: isolate; }
.legacy-calc::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(143,178,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(143,178,255,.06) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(180deg, #000, transparent); }
.legacy-calc__badge { display: inline-flex; align-items: center; gap: 8px; font: 600 14px var(--sans); color: var(--accent); margin-bottom: 14px; }
.legacy-calc__badge .ic { font-size: 16px; }
.legacy-calc h2, .legacy-calc h3 { color: #fff; margin-top: 0 !important; }
.legacy-calc h2::before { display: none; }
.legacy-calc br { display: none; }
.legacy-calc p { margin: 0 0 14px; color: #c9cbcf; }
.legacy-calc p:has(input, select) { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; align-items: center; }
.legacy-calc label { display: block; grid-column: 1 / -1; font-size: 14px; font-weight: 500; color: #b5b8bd; margin-top: 8px; }
.legacy-calc input[type=number], .legacy-calc input[type=text], .legacy-calc select { width: 100%; height: 52px; padding: 0 16px; border-radius: 14px; background: #0b0c0e; border: 1px solid rgba(255,255,255,.12); color: #fff; font: 600 17px var(--mono); outline: none; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.legacy-calc select { width: auto; min-width: 90px; padding-right: 34px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%23ff5b14' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.legacy-calc input:focus, .legacy-calc select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,91,20,.18); }
.legacy-calc input[type=button], .legacy-calc input[type=submit], .legacy-calc button { grid-column: 1 / -1; height: 56px; margin-top: 10px; border: 0; border-radius: 14px; background: var(--accent-strong); color: #fff; font: 600 16px var(--sans); cursor: pointer; transition: background .2s, transform .3s var(--ease); box-shadow: 0 10px 30px -10px rgba(255,91,20,.7); width: 100%; }
.legacy-calc input[type=button]:hover, .legacy-calc button:hover { background: #ff6d2c; transform: translateY(-1px); }
.legacy-calc [id*=result i], .legacy-calc [class*=result i], .legacy-calc output { display: block; margin-top: 14px; padding: 16px 18px; border-radius: 14px; background: rgba(255,91,20,.12); border: 1px solid rgba(255,91,20,.35); color: #fff; font: 600 18px/1.45 var(--display); }
.legacy-calc [id*=result i]:empty, .legacy-calc [class*=result i]:empty { display: none; }
.legacy-calc .is-flash { animation: flash .6s var(--ease-out); }
@keyframes flash { from { background: rgba(255,91,20,.45); } }
.legacy-calc table { color: var(--ink); }
.legacy-calc__live { font-size: 12px; color: #8a8e94; margin: 10px 0 0; display: flex; align-items: center; gap: 8px; }


.art-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0 0; }
.art-tags a { padding: 7px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); transition: .2s; }
.art-tags a:hover { border-color: var(--ink); }
.art-author { display: flex; gap: 22px; align-items: flex-start; margin: 48px 0 0; padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; }
.art-author .eyebrow { margin-bottom: 8px; }
.art-author__name { font: 700 24px/1.2 var(--display); letter-spacing: -.02em; margin: 0 0 6px; }
.art-author .muted { margin: 0; font-size: 15px; }
.art-widgets { margin-top: 40px; display: grid; gap: 24px; }
.art-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 24px; }
.art-nav__item { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s; }
.art-nav__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.art-nav__item img { width: 76px; height: 76px; border-radius: 14px; object-fit: cover; flex: none; }
.art-nav__item small { display: block; font: 600 13px var(--sans); color: var(--accent-ink); margin-bottom: 4px; }
.art-nav__item b { font: 600 16px/1.3 var(--display); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.art-nav__item--next { flex-direction: row-reverse; text-align: right; }
.related { padding-top: 64px; }

/* pages */
.page-main { max-width: 860px; }
.page-content { margin: 0 auto; }
.page-main .art-cover { margin: 0 0 40px; }

/* comments & widgets */
.comments { margin-top: 56px; }
.comments__title { font: 700 26px var(--display); letter-spacing: -.02em; }
.comments__list { list-style: none; padding: 0; }
.comments__list .comment-body { padding: 20px; background: var(--paper); border-radius: 18px; border: 1px solid var(--line); margin-bottom: 12px; }
.comment-form input:not([type=submit]):not([type=checkbox]), .comment-form textarea, .search-form .search-field { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); font-size: 16px; outline: none; }
.comment-form input:focus, .comment-form textarea:focus, .search-form .search-field:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,91,20,.12); }
.search-form { display: flex; gap: 8px; }
.widget { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.widget-title { font: 700 18px var(--display); margin: 0 0 12px; }

/* responsive (theme additions) */
@media (max-width: 1100px) {
  .art-layout, .art-layout--notoc { grid-template-columns: minmax(0, 760px); }
  .art-aside__sticky { position: static; }
  .art-layout--notoc .share { flex-direction: row; }
  .art-layout--notoc .share__label { writing-mode: initial; transform: none; margin: 0 4px 0 0; }
  .toc__title { cursor: pointer; margin-bottom: 0; }
  .toc__title::after { content: "▾"; margin-left: 8px; transition: transform .3s; }
  .toc.is-open .toc__title::after { transform: rotate(180deg); }
  .toc__pct { margin-left: auto; }
  .toc__list { display: none; max-height: 60vh; margin-top: 10px; }
  .toc.is-open .toc__list { display: block; }
  .entry-content .alignwide { margin-left: 0; margin-right: 0; }
  .tools--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .posts--3 { grid-template-columns: 1fr 1fr; }
  .news--compact { grid-template-columns: 1fr; }
  .art-cover__img img { aspect-ratio: 16 / 10; }
  .art-cover { width: 100%; }
  .art-cover__img { border-radius: 0; }
}
@media (max-width: 620px) {
  .art-hero { padding-top: 112px; }
  .entry-content { font-size: 17px; }
  .art-jump { margin-left: 0; width: 100%; }
  .art-nav { grid-template-columns: 1fr; }
  .posts--3, .tools--4 { grid-template-columns: 1fr; }
  .list-hero { padding-top: 116px; }
  .list-hero__ic { width: 60px; height: 60px; font-size: 28px; border-radius: 18px; }
  .list-hero__row { gap: 16px; }
  .art-author { flex-direction: column; }
  .legacy-calc { margin-left: -16px; margin-right: -16px; border-radius: 0; }
}

/* print */
@media print {
  .nav, .drawer, .progress, .footer, .art-aside, .news, .related, .art-nav, .totop, .cmdk, .art-jump, .comments { display: none !important; }
  body { background: #fff; }
  .art-layout { display: block; padding: 0; }
  .art-hero { padding-top: 0; }
  .entry-content { font-size: 12pt; }
  .entry-content a::after { content: " (" attr(href) ")"; font-size: 9pt; color: #666; }
}

/* =========================================================
   AA contrast + tap targets (ux_qa gate, 4. 10. 2026)
   ========================================================= */
.calc-sec .link-arrow, .footer .link-arrow, .hero .link-arrow, .legacy-calc .link-arrow { color: #ff7a3d; }
.calc-sec .eyebrow, .sec-head--dark .eyebrow { color: #ff7a3d; }
.news, .news .eyebrow, .news__legal, .news__legal a { color: #fff; }
.news__legal { opacity: 1; }
.btn { padding-block: 10px; }
.hero-search__btn { padding-block: 10px; }
.calc__tabs button { padding-inline: 16px; }
.share__btn { width: 44px; height: 44px; }
.check__box { width: 44px; height: 44px; border-radius: 14px; }
.art-cat { color: #a8380a; }
.stat:nth-child(4) span { color: #b5b8bd; }
.cat-strip a:not(.is-active) { background: #17191c; }
.js .reveal { transition-duration: .6s; }
.cat-strip a:not(.is-active):hover { background: #2a2d32; }
.tool, a.post { animation-delay: calc(min(var(--i, 0), 6) * 50ms); }
.drawer { visibility: hidden; transition: clip-path .7s var(--ease-out), visibility 0s .7s; }
.drawer.is-open { visibility: visible; transition: clip-path .7s var(--ease-out), visibility 0s 0s; }
.list-calc { margin-top: clamp(48px, 7vw, 96px); }
.list-main + #newsletter { padding-top: 0; }

/* =========================================================
   CookieYes (plugin) — ported from the previous theme, restyled.
   Prefix body = beats the plugin's injected mobile styles.
   ========================================================= */
.cky-consent-container { font-family: var(--sans) !important; }
.cky-consent-bar { border-radius: 20px !important; box-shadow: var(--shadow-lg) !important; border: 1px solid var(--line) !important; }
.cky-title { font-family: var(--display) !important; color: var(--ink) !important; }
.cky-notice-des { font-size: 14px !important; line-height: 1.55 !important; color: var(--ink-2) !important; }
body .cky-btn { padding: 10px 18px !important; border-radius: 999px !important; font-weight: 600 !important; font-family: var(--sans) !important; }
body .cky-btn-accept { background: var(--accent-strong) !important; border-color: var(--accent-strong) !important; color: #fff !important; }
body .cky-btn-accept:hover { background: #b23a0a !important; }
body .cky-accordion-btn { padding: 8px 14px !important; }
body .cky-show-desc-btn { padding: 8px 14px !important; }
body .cky-btn-close { min-width: 44px !important; min-height: 44px !important; padding: 8px 14px !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; }
@media (max-width: 620px) {
  .cky-consent-container.cky-box-bottom-left { left: .5rem !important; right: .5rem !important; bottom: .5rem !important; max-width: calc(100vw - 1rem) !important; }
  .cky-consent-bar { padding: .85rem !important; }
  .cky-title { font-size: .95rem !important; margin-bottom: .25rem !important; }
  .cky-notice-des { font-size: .8rem !important; line-height: 1.45 !important; max-height: none !important; overflow: visible !important; }
  .cky-notice-des p { margin: 0 !important; }
  .cky-notice-btn-wrapper { flex-direction: row !important; flex-wrap: wrap !important; gap: .4rem !important; }
  body .cky-btn { flex: 1 1 auto !important; min-height: 2.75rem !important; padding: 10px 14px !important; font-size: .85rem !important; }
}
body:has(.cky-consent-container:not(.cky-hide)) .totop { display: none; }

[hidden] { display: none !important; }
