/* =====================================================================
   Ell-Medical – hlavní styl
   Motiv: prstenec z loga. Gradient azure → petrol → orchid jen na tahu
   prstence, nikde jako plošná výplň.
   ===================================================================== */

/* ---------- Písma (hostovaná lokálně, OFL) ---------- */
@font-face {
  font-family: "Red Hat Display";
  src: url("../fonts/red-hat-display-latin-ext.woff2") format("woff2");
  font-weight: 300 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Red Hat Display";
  src: url("../fonts/red-hat-display-latin.woff2") format("woff2");
  font-weight: 300 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Red Hat Text";
  src: url("../fonts/red-hat-text-latin-ext.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Red Hat Text";
  src: url("../fonts/red-hat-text-latin.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokeny ---------- */
:root {
  --ink: #14212b;
  --ink-soft: #3a4a55;
  --muted: #5a6a74;
  --paper: #f3f6f7;
  --white: #ffffff;
  --mist: #dce6ea;
  --line: #c6d4da;
  --petrol: #0e7490;
  --petrol-deep: #0a5a70;
  --azure: #56c3e8;
  --orchid: #a6529a;
  --danger: #b42318;
  --ok: #17784a;

  --on-ink: #e9f0f2;
  --on-ink-muted: #a9bbc4;
  --on-ink-line: rgba(233, 240, 242, .14);

  --f-display: "Red Hat Display", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-text: "Red Hat Text", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Typová škála ~ kvarta (1.333) */
  --t-xs: .8125rem;
  --t-sm: .9375rem;
  --t-base: 1.0625rem;
  --t-md: 1.25rem;
  --t-lg: clamp(1.375rem, 1.1rem + .9vw, 1.75rem);
  --t-xl: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  --t-2xl: clamp(2.125rem, 1.4rem + 2.7vw, 3.5rem);
  --t-3xl: clamp(2.75rem, 1.6rem + 4.6vw, 5.75rem);

  --gutter: clamp(16px, 4vw, 56px);
  --wrap: 1360px;
  --section: clamp(5rem, 3rem + 8vw, 10rem);
  --header-h: 76px;
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* ---------- Základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: var(--t-base);
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
a { color: var(--petrol); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: var(--petrol-deep); text-decoration-thickness: 2px; }
:where(ul[role="list"], ol) { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
dl, dd { margin: 0; }
main:focus { outline: none; }
::selection { background: var(--azure); color: var(--ink); }

:focus-visible { outline: 2px solid var(--petrol); outline-offset: 3px; border-radius: 2px; }
.process :focus-visible, .cta :focus-visible, .site-footer :focus-visible, .lightbox :focus-visible { outline-color: var(--azure); }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 200; padding: .75rem 1rem; background: var(--ink); color: var(--white); border-radius: var(--radius); }
.skip-link:focus { top: 16px; color: var(--white); }

/* ---------- Tlačítka a odkazy ---------- */
/* Výplň se při najetí rozlije z kruhu se šipkou (motiv prstence), šipka vyjede a vrátí se. */
.btn {
  --bg: var(--petrol); --fg: var(--white); --bd: var(--petrol);
  --fill: var(--ink); --fill-fg: var(--white);
  --knob-bg: var(--white); --knob-fg: var(--petrol); --knob-hot-bg: var(--azure); --knob-hot-fg: var(--ink);
  --kx: 50%;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .9rem;
  min-height: 52px; padding: 0 1.6rem;
  border: 1px solid var(--bd); border-radius: 999px; background: var(--bg); color: var(--fg);
  font-family: var(--f-display); font-weight: 600; font-size: var(--t-sm); letter-spacing: .005em; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: color .5s var(--ease), border-color .5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; background: var(--fill);
  clip-path: circle(0 at var(--kx) 50%); transition: clip-path .65s var(--ease);
}
.btn--knob { --kx: calc(100% - 26px); padding: 0 5px 0 1.5rem; }
.btn__knob {
  position: relative; flex: none; display: grid; place-items: center; overflow: hidden;
  width: 40px; height: 40px; border-radius: 50%; background: var(--knob-bg); color: var(--knob-fg);
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
.btn__arrow { grid-area: 1 / 1; display: grid; place-items: center; transition: transform .5s var(--ease); }
.btn__arrow--in { transform: translateX(-160%); }
.btn__arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.btn:hover, .btn:focus-visible, :is(.sector:hover, .sector:focus-visible) .btn--fake { color: var(--fill-fg); border-color: var(--fill); text-decoration: none; }
.btn:hover::before, .btn:focus-visible::before, :is(.sector:hover, .sector:focus-visible) .btn--fake::before { clip-path: circle(150% at var(--kx) 50%); }
.btn:hover .btn__knob, .btn:focus-visible .btn__knob, :is(.sector:hover, .sector:focus-visible) .btn--fake .btn__knob { background: var(--knob-hot-bg); color: var(--knob-hot-fg); }
.btn:hover .btn__arrow, .btn:focus-visible .btn__arrow, :is(.sector:hover, .sector:focus-visible) .btn--fake .btn__arrow { transform: translateX(160%); }
.btn:hover .btn__arrow--in, .btn:focus-visible .btn__arrow--in, :is(.sector:hover, .sector:focus-visible) .btn--fake .btn__arrow--in { transform: translateX(0); }
.btn:active { transform: scale(.985); }

.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: #9fb2bb; --fill: var(--ink); --fill-fg: var(--paper); --knob-bg: var(--petrol); --knob-fg: var(--white); }
.btn--light { --bg: var(--paper); --fg: var(--ink); --bd: var(--paper); --fill: var(--azure); --fill-fg: var(--ink); --knob-bg: var(--ink); --knob-fg: var(--white); --knob-hot-bg: var(--ink); --knob-hot-fg: var(--azure); }
.btn--on-dark { --bg: transparent; --fg: var(--on-ink); --bd: rgba(233, 240, 242, .3); --fill: var(--azure); --fill-fg: var(--ink); --knob-bg: var(--azure); --knob-fg: var(--ink); --knob-hot-bg: var(--ink); --knob-hot-fg: var(--azure); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn--fake { pointer-events: none; }
.link-button { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: .22em; cursor: pointer; }

.section-title { font-size: var(--t-2xl); max-width: 20ch; }

/* ---------- Hlavička ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 104px;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), height .45s var(--ease);
}
.site-header.is-scrolled { height: var(--header-h); }
html.motion .site-header { transition: background-color .3s var(--ease), box-shadow .3s var(--ease); }
.site-header.is-scrolled { background: rgba(243, 246, 247, .86); box-shadow: 0 1px 0 var(--mist); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 2rem; }
.brand { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: .75rem; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 72px; height: 72px; transition: width .45s var(--ease), height .45s var(--ease); will-change: transform; }
.is-scrolled .brand__mark { width: 46px; height: 46px; }
html.motion .brand__mark { transition: none; }
@media (max-width: 959px) {
  .site-header { height: 84px; }
  .brand__mark { width: 58px; height: 58px; }
  .is-scrolled .brand__mark { width: 42px; height: 42px; }
}
.site-nav__list { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.site-nav__link {
  display: block; padding: .5rem .875rem; border-radius: 999px;
  font-family: var(--f-display); font-weight: 500; font-size: var(--t-sm); color: var(--ink); text-decoration: none;
}
.site-nav__link:hover { color: var(--ink); background: var(--mist); text-decoration: none; }
.site-nav__link[aria-current="page"] { background: var(--ink); color: var(--paper); }
/* Burger: čáry se při otevření „přetočí“ do křížku (stroke-dasharray) */
.burger { display: none; }
.burger svg { width: 56px; height: 56px; display: block; }
.burger__line {
  fill: none; stroke: var(--ink); stroke-width: 5.5; stroke-linecap: round;
  transition: stroke-dasharray .6s cubic-bezier(.4, 0, .2, 1), stroke-dashoffset .6s cubic-bezier(.4, 0, .2, 1), stroke .4s;
}
.burger__line--1, .burger__line--3 { stroke-dasharray: 60 207; }
.burger__line--2 { stroke-dasharray: 60 60; }
.burger[aria-expanded="true"] .burger__line--1, .burger[aria-expanded="true"] .burger__line--3 { stroke-dasharray: 90 207; stroke-dashoffset: -134; }
.burger[aria-expanded="true"] .burger__line--2 { stroke-dasharray: 1 60; stroke-dashoffset: -30; }
.burger:hover .burger__line { stroke: var(--petrol); }

@media (max-width: 959px) {
  .site-nav, .site-header__cta { display: none; }
  .burger {
    display: grid; place-items: center; width: 56px; height: 56px; margin-right: -10px; padding: 0;
    background: none; border: 0; border-radius: 50%; cursor: pointer; position: relative; z-index: 2;
  }
}

/* Mobilní menu: samostatná vrstva mimo hlavičku (backdrop-filter hlavičky by ji uzavřel do lišty) */
.mnav {
  position: fixed; inset: 0; z-index: 45; display: flex; overflow: hidden;
  background: var(--paper); visibility: hidden;
  clip-path: circle(0 at calc(100% - var(--gutter) - 18px) 42px);
}
.mnav.is-open { visibility: visible; }
html:not(.motion) .mnav { clip-path: none; opacity: 0; transition: opacity .3s var(--ease), visibility 0s linear .3s; }
html:not(.motion) .mnav.is-open { opacity: 1; transition: opacity .3s var(--ease); }
@media (min-width: 960px) { .mnav { display: none; } }

.mnav__grid { inset: 0; -webkit-mask-image: radial-gradient(ellipse 80% 60% at 90% 15%, #000, transparent 72%); mask-image: radial-gradient(ellipse 80% 60% at 90% 15%, #000, transparent 72%); }
.mnav__arc { position: absolute; z-index: 0; pointer-events: none; width: 150vw; max-width: 760px; right: -62vw; top: 4vh; overflow: visible; }
.mnav__arc circle { fill: none; stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.mnav__arc--small { width: 62vw; right: auto; left: -24vw; top: auto; bottom: -14vw; }
.mnav__arc--small circle { stroke: var(--azure); stroke-opacity: .55; stroke-dasharray: 4 7; }

.mnav__inner { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; min-height: 100%; padding: calc(var(--header-h) + 3.5rem) 0 2rem; overflow-y: auto; }
.mnav__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.mnav__link {
  position: relative; display: inline-flex; align-items: center; gap: .9rem; overflow: clip; overflow-clip-margin: .1em;
  padding: .2rem 0; color: var(--ink); text-decoration: none;
  font-family: var(--f-display); font-weight: 600; font-size: clamp(2.25rem, 10.5vw, 3.25rem); line-height: 1.12; letter-spacing: -.03em;
}
.mnav__text { display: inline-block; }
.mnav__link::after {
  content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); flex: none;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.mnav__link[aria-current="page"]::after { background: var(--orchid); border-color: var(--orchid); }
.mnav__link:hover, .mnav__link:active { color: var(--petrol); }
.mnav__link:hover::after { border-color: var(--petrol); }
.mnav__foot { display: grid; gap: 1.25rem; justify-items: start; }
.mnav__contact { display: grid; gap: .35rem; margin: 0; font-family: var(--f-display); font-weight: 600; font-size: var(--t-md); }
.mnav__contact a { color: var(--ink); text-decoration: none; }
.mnav__address { margin: 0; font-size: var(--t-sm); color: var(--muted); }

/* Při otevřeném menu je lišta průhledná, aby logo a křížek ležely na vrstvě menu */
body.menu-open .site-header { background: transparent !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }

/* ---------- Hero: kruhový průhled ---------- */
.hero {
  --cx: 74%;
  --cy: 53%;
  --r: min(25vw, 35svh);
  position: relative; min-height: 100svh; overflow: hidden; isolation: isolate;
}
.hero__stage { position: absolute; inset: 0; z-index: 0; }
.hero__aperture {
  position: absolute; inset: 0; overflow: hidden; background: var(--mist);
  clip-path: circle(var(--r) at var(--cx) var(--cy));
}
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; max-width: none; }
.hero__ring {
  position: absolute; pointer-events: none; overflow: visible;
  width: calc(var(--r) * 2 + 32px); height: calc(var(--r) * 2 + 32px);
  left: calc(var(--cx) - var(--r) - 16px); top: calc(var(--cy) - var(--r) - 16px);
}
.hero__ring circle { fill: none; vector-effect: non-scaling-stroke; }
.hero__ring-track { stroke: var(--line); stroke-width: 1; }
.hero__ring-arc { stroke: url(#hero-ring-gradient); stroke-width: 3; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; }
.hero__caption {
  position: absolute; left: var(--gutter); top: calc(var(--header-h) + 1.25rem); margin: 0; z-index: 2;
  padding: .5rem 1rem; border-radius: 999px; background: rgba(20, 33, 43, .62); color: var(--white);
  font-size: var(--t-sm); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.js .hero__caption { opacity: 0; }
.hero__content {
  position: relative; z-index: 1; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: calc(var(--header-h) + 2rem) 4rem;
}
.hero__title { font-size: clamp(2.75rem, 1.4rem + 5.2vw, 6.25rem); font-weight: 650; line-height: 1; letter-spacing: -.038em; max-width: 11.5ch; }
.hero__lead { margin-top: 1.75rem; max-width: 40ch; font-size: var(--t-md); color: var(--ink-soft); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }

/* slova nadpisu pro odhalení */
.w { display: inline-block; overflow: clip; overflow-clip-margin: .12em; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.w__i { display: inline-block; }
.js.motion .w__i { transform: translateY(105%); }

@media (min-width: 960px) {
  .hero__title { max-width: min(17ch, 66vw); text-wrap: wrap; }
  .hero__lead { max-width: min(40ch, 42vw); }
  .hero__actions { max-width: none; }
}
@media (max-width: 959px) {
  .hero { --cx: 50%; --cy: 50%; --r: min(38vw, 210px); display: flex; flex-direction: column; min-height: 0; }
  .hero__content { order: 1; min-height: 0; padding-block: calc(var(--header-h) + 2.5rem) 1rem; }
  .hero__stage { order: 2; position: relative; inset: auto; height: min(124vw, 82svh); margin-bottom: 0; }
  .hero__caption { top: auto; bottom: 1rem; right: auto; max-width: calc(100% - 2 * var(--gutter)); }
  html:not(.motion) .hero__caption { opacity: 1; }
}

/* ---------- Rám s parallaxem ---------- */
.frame { position: relative; overflow: hidden; background: var(--mist); border-radius: var(--radius); }
.frame > img { width: 100%; height: 100%; object-fit: cover; }
.js.motion .frame > img[data-parallax] { scale: 1.16; will-change: transform; }

/* ---------- Obory ---------- */
.sectors { padding-block: var(--section); }
.sectors__title { margin-bottom: clamp(3rem, 6vw, 5rem); }
.sectors__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem var(--gutter); }
.sector { grid-column: 1 / span 6; color: var(--ink); text-decoration: none; }
.sector:hover { color: var(--ink); }
.sector--offset { grid-column: 8 / span 5; margin-top: clamp(4rem, 14vw, 13rem); }
.sector__media { aspect-ratio: 4 / 5; margin-bottom: 1.75rem; }
.sector--offset .sector__media { aspect-ratio: 1 / 1.1; }
.sector__title { font-size: var(--t-xl); margin-bottom: .75rem; }
.sector__text { color: var(--ink-soft); max-width: 44ch; margin-bottom: 1.25rem; }
@media (max-width: 759px) {
  .sector, .sector--offset { grid-column: 1 / -1; margin-top: 0; }
  .sector + .sector { margin-top: 2.5rem; }
}

/* ---------- Postup (tmavá sekce) ---------- */
.process { background: var(--ink); color: var(--on-ink); padding-block: var(--section); }
.process__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3rem var(--gutter); }
.process__intro { grid-column: 1 / span 5; align-self: start; position: sticky; top: calc(var(--header-h) + 1.5rem); }
@media (max-height: 860px) { .process__intro .section-title { font-size: var(--t-xl); margin-bottom: 1.5rem; } .model { max-width: 440px; margin-bottom: 1.5rem; } }
.process__intro .section-title { margin-bottom: 2rem; }
.steps { grid-column: 7 / span 6; position: relative; padding-left: 3.5rem; }
.steps__line { position: absolute; left: 11px; top: .6rem; bottom: .6rem; width: 2px; background: var(--on-ink-line); border-radius: 2px; overflow: hidden; }
.steps__fill { position: absolute; inset: 0; background: linear-gradient(180deg, var(--azure), #128aaa 55%, var(--orchid)); transform-origin: 50% 0; }
.js.motion .steps__fill { transform: scaleY(0); }
.steps__list { list-style: none; margin: 0; padding: 0; }
.step { position: relative; padding-bottom: clamp(3rem, 6vw, 5.5rem); }
.step:last-child { padding-bottom: 0; }
@media (min-width: 860px) { .step { padding-bottom: max(5rem, 24svh); } .step:last-child { padding-bottom: 0; } }
.step::before {
  content: ""; position: absolute; left: calc(-3.5rem + 4px); top: .45rem; width: 16px; height: 16px; border-radius: 50%;
  background: var(--ink); border: 2px solid var(--on-ink-muted); transition: border-color .4s var(--ease), background-color .4s var(--ease);
}
.step.is-active::before, html:not(.motion) .step::before { border-color: var(--azure); background: var(--azure); }
.step__n { display: block; font-family: var(--f-display); font-weight: 500; font-size: var(--t-sm); color: var(--azure); letter-spacing: .04em; margin-bottom: .5rem; font-variant-numeric: tabular-nums; }
.step__title { font-size: var(--t-xl); margin-bottom: .75rem; }
.step__text { color: var(--on-ink-muted); max-width: 46ch; }
@media (max-width: 859px) {
  .process__intro, .steps { grid-column: 1 / -1; }
  .process__intro { position: static; }
}

/* ---------- Vybrané projekty ---------- */
.featured { padding-block: var(--section); }
.featured__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: clamp(3rem, 6vw, 5rem); }
.featured__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(3rem, 6vw, 6rem) var(--gutter); }
.featured__grid .tile:nth-child(4n + 1) { grid-column: 1 / span 7; }
.featured__grid .tile:nth-child(4n + 2) { grid-column: 9 / span 4; margin-top: clamp(4rem, 12vw, 11rem); }
.featured__grid .tile:nth-child(4n + 3) { grid-column: 2 / span 4; }
.featured__grid .tile:nth-child(4n + 4) { grid-column: 7 / span 6; margin-top: clamp(-8rem, -6vw, -2rem); }
@media (max-width: 759px) {
  .featured__grid .tile:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
}

.tile__link { display: block; color: var(--ink); text-decoration: none; }
.tile__link:hover { color: var(--ink); }
.tile__media { aspect-ratio: 4 / 5; margin-bottom: 1.25rem; }
.tile--large .tile__media { aspect-ratio: 16 / 11; }
.tile__meta { font-size: var(--t-sm); color: var(--muted); margin-bottom: .35rem; }
.tile__title { font-size: var(--t-lg); max-width: 26ch; }
.tile__link:hover .tile__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .18em; }
.tile__link:hover .frame > img { filter: saturate(1.08) brightness(1.03); }
.frame > img { transition: filter .5s var(--ease); }

/* ---------- Vzorník materiálů ---------- */
.swatches { padding-block: var(--section); border-top: 1px solid var(--mist); }
.swatches__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3rem var(--gutter); align-items: center; }
.swatches__intro { grid-column: 1 / span 5; }
.swatches__text { color: var(--ink-soft); max-width: 44ch; margin: 1.5rem 0 1.75rem; }
.swatches__list { grid-column: 7 / span 6; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 1.5rem; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
.swatch:nth-child(3n + 2) { margin-top: 3rem; }
.swatch__disc {
  position: relative; display: block; width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--mist);
  outline: 1px solid var(--line); outline-offset: 6px;
}
.swatch__disc img { width: 100%; height: 100%; object-fit: cover; }
.swatch__label { font-family: var(--f-display); font-weight: 600; font-size: var(--t-sm); }
@media (max-width: 859px) {
  .swatches__intro, .swatches__list { grid-column: 1 / -1; }
}
@media (max-width: 479px) {
  .swatches__list { grid-template-columns: repeat(2, 1fr); }
  .swatch:nth-child(3n + 2) { margin-top: 0; }
  .swatch:nth-child(2n) { margin-top: 2rem; }
}

/* ---------- Reference ---------- */
.quote { padding-block: 0 var(--section); }
.quote__figure { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 1.5rem clamp(1.5rem, 4vw, 3.5rem); max-width: 62rem; margin-left: clamp(0px, 8vw, 8rem); }
.quote__figure::before {
  content: ""; width: clamp(48px, 6vw, 72px); aspect-ratio: 1; border-radius: 50%; grid-row: span 2;
  background: conic-gradient(from 200deg, var(--azure), #128aaa, var(--orchid), var(--azure));
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%); mask: radial-gradient(circle, transparent 62%, #000 63%);
}
.quote__text { margin: 0; font-family: var(--f-display); font-weight: 450; font-size: var(--t-xl); line-height: 1.25; letter-spacing: -.015em; }
.quote__by { color: var(--muted); }
.quote__by strong { color: var(--ink); font-weight: 600; margin-right: .35rem; }

/* ---------- Výzva + patička ---------- */
.cta { position: relative; overflow: hidden; background: var(--ink); color: var(--on-ink); padding-block: var(--section) clamp(4rem, 8vw, 7rem); }
.cta__inner { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem var(--gutter); align-items: end; }
.cta__ring { position: absolute; width: clamp(320px, 52vw, 760px); right: -14vw; top: 50%; translate: 0 -50%; fill: none; stroke: var(--azure); stroke-opacity: .22; stroke-width: 1; vector-effect: non-scaling-stroke; pointer-events: none; }
.cta__title { grid-column: 1 / span 7; font-size: var(--t-2xl); max-width: 16ch; position: relative; }
.cta__body { grid-column: 8 / span 5; color: var(--on-ink-muted); position: relative; }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.75rem; }
.cta__phone { font-family: var(--f-display); font-weight: 600; color: var(--on-ink); text-decoration: none; }
.cta__phone:hover { color: var(--white); text-decoration: underline; }
@media (max-width: 859px) { .cta__title, .cta__body { grid-column: 1 / -1; } }

.site-footer { background: var(--ink); color: var(--on-ink-muted); padding-block: 0 2rem; font-size: var(--t-sm); }
.site-footer a { color: var(--on-ink); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem var(--gutter); padding-block: 3.5rem; border-top: 1px solid var(--on-ink-line); }
.site-footer__brand img { width: 64px; height: 64px; margin-bottom: 1.25rem; }
.site-footer__ids { margin-top: .5rem; }
.site-footer__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer__contact { display: grid; gap: .5rem; align-content: start; }
.site-footer__social { display: flex; gap: 1rem; margin-top: .5rem; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; padding-top: 1.5rem; border-top: 1px solid var(--on-ink-line); }
.site-footer .developer-logo:hover { text-decoration: none; }
@media (max-width: 559px) { .site-footer__legal .developer-logo-box { justify-content: flex-start; } }
.site-footer__legal p { margin: 0; display: flex; flex-wrap: wrap; gap: 1.5rem; }
.site-footer .link-button { color: var(--on-ink); text-decoration: none; }
.site-footer .link-button:hover { text-decoration: underline; color: var(--white); }
@media (max-width: 759px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }

/* ---------- Záhlaví podstránek ---------- */
.page-head { position: relative; overflow: hidden; padding-block: calc(var(--header-h) + clamp(3rem, 8vw, 7rem)) clamp(3rem, 7vw, 6rem); }
.page-head__inner { position: relative; z-index: 1; }
.page-head__title { font-size: var(--t-3xl); font-weight: 650; letter-spacing: -.035em; line-height: 1.02; max-width: 16ch; }
.page-head__lead { margin-top: 2rem; max-width: 58ch; font-size: var(--t-md); color: var(--ink-soft); }
.page-head__back { display: inline-block; margin-bottom: 2rem; font-family: var(--f-display); font-weight: 600; font-size: var(--t-sm); color: var(--muted); text-decoration: none; }
.page-head__back::before { content: ""; display: inline-block; width: 1.5rem; height: 1px; background: currentColor; vertical-align: middle; margin-right: .75rem; }
.page-head__back:hover { color: var(--ink); }
.page-head__arc { position: absolute; z-index: 0; width: clamp(420px, 60vw, 980px); right: -22vw; top: calc(var(--header-h) + 1.5rem); fill: none; stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; pointer-events: none; }

/* ---------- Služby ---------- */
.service-steps { padding-bottom: var(--section); }
.service-steps__list { list-style: none; padding: 0; display: grid; gap: clamp(5rem, 10vw, 9rem); }
.service { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem var(--gutter); align-items: center; }
.service__media { grid-column: 1 / span 6; aspect-ratio: 5 / 4; }
.service__body { grid-column: 8 / span 5; }
.service--flip .service__media { grid-column: 7 / span 6; grid-row: 1; }
.service--flip .service__body { grid-column: 1 / span 5; grid-row: 1; }
.service__n { display: block; font-family: var(--f-display); font-weight: 500; font-size: var(--t-sm); color: var(--petrol); letter-spacing: .04em; margin-bottom: .75rem; font-variant-numeric: tabular-nums; }
.service__title { font-size: var(--t-2xl); margin-bottom: 1.5rem; }
.service__text { color: var(--ink-soft); max-width: 52ch; }
.service__note { margin-top: 1.5rem; padding-left: 1rem; border-left: 2px solid var(--orchid); color: var(--ink); font-weight: 500; max-width: 48ch; }
@media (max-width: 859px) {
  .service .service__media, .service .service__body { grid-column: 1 / -1; grid-row: auto; }
}

/* ---------- Projekty ---------- */
.sector-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: -1.5rem; margin-bottom: clamp(3rem, 6vw, 5rem); }
.sector-tabs a { padding: .6rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-family: var(--f-display); font-weight: 500; font-size: var(--t-sm); text-decoration: none; }
.sector-tabs a:hover { border-color: var(--ink); color: var(--ink); }
.sector-group { padding-bottom: var(--section); }
.sector-group + .sector-group { padding-top: var(--section); border-top: 1px solid var(--mist); }
.sector-group__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3rem var(--gutter); align-items: start; }
.sector-group__intro { grid-column: 1 / span 4; position: sticky; top: calc(var(--header-h) + 2rem); }
.sector-group__text { margin-top: 1.5rem; color: var(--ink-soft); font-size: var(--t-sm); }
.sector-group__list { grid-column: 6 / span 7; display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem var(--gutter); }
.sector-group__list .tile--large { grid-column: 1 / -1; }
.sector-group__list .tile:nth-child(3) { margin-top: 4rem; }
.empty { grid-column: 1 / -1; color: var(--muted); }
@media (max-width: 959px) {
  .sector-group__intro, .sector-group__list { grid-column: 1 / -1; position: static; }
}
@media (max-width: 559px) {
  .sector-group__list { grid-template-columns: 1fr; }
  .sector-group__list .tile:nth-child(3) { margin-top: 0; }
}

/* ---------- Detail projektu ---------- */
.project-head { padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem)); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.project-head__title { font-size: var(--t-3xl); font-weight: 650; letter-spacing: -.035em; line-height: 1.02; max-width: 18ch; }
.project-head__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.5rem var(--gutter); margin-top: clamp(2rem, 5vw, 3.5rem); padding-top: 1.5rem; border-top: 1px solid var(--line); }
.project-head__facts dt { font-size: var(--t-xs); color: var(--muted); margin-bottom: .25rem; }
.project-head__facts dd { font-family: var(--f-display); font-weight: 600; }
.project-cover { height: min(82svh, 56vw); border-radius: 0; }
.project-body { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem var(--gutter); padding-block: clamp(3.5rem, 8vw, 7rem); }
.project-body__summary { grid-column: 1 / span 5; font-family: var(--f-display); font-size: var(--t-lg); font-weight: 500; line-height: 1.3; letter-spacing: -.01em; }
.project-body__text { grid-column: 7 / span 6; color: var(--ink-soft); max-width: 60ch; }
@media (max-width: 859px) { .project-body__summary, .project-body__text { grid-column: 1 / -1; } }

.gallery { padding-bottom: var(--section); }
.gallery__grid { columns: 3 280px; column-gap: 16px; }
.gallery__item { break-inside: avoid; margin-bottom: 16px; }
.gallery__item a { display: block; overflow: hidden; border-radius: var(--radius); background: var(--mist); cursor: zoom-in; }
.gallery__item img { width: 100%; transition: transform .6s var(--ease), filter .4s var(--ease); }
.gallery__item a:hover img { transform: scale(1.03); }

.project-next { border-top: 1px solid var(--mist); }
.project-next__inner { display: grid; grid-template-columns: 1fr 1fr; }
.project-next__link { display: block; padding: clamp(2rem, 5vw, 4rem) 0; color: var(--ink); text-decoration: none; text-align: right; grid-column: 2; }
.project-next__link--prev { text-align: left; grid-column: 1; }
.project-next__label { display: block; font-size: var(--t-sm); color: var(--muted); margin-bottom: .5rem; }
.project-next__title { font-family: var(--f-display); font-weight: 600; font-size: var(--t-lg); }
.project-next__link:hover { color: var(--ink); }
.project-next__link:hover .project-next__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .18em; }

/* ---------- Galerie: lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 120; display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; background: rgba(20, 33, 43, .96); color: var(--on-ink); }
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; display: grid; justify-items: center; gap: 1rem; }
.lightbox__figure img { max-width: 100%; max-height: 82svh; object-fit: contain; border-radius: 2px; }
.lightbox__figure figcaption { font-size: var(--t-sm); color: var(--on-ink-muted); }
.lightbox__nav, .lightbox__close {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--on-ink-line); background: transparent; cursor: pointer; justify-self: center; position: relative;
}
.lightbox__nav:hover, .lightbox__close:hover { border-color: var(--azure); }
.lightbox__nav::before { content: ""; position: absolute; inset: 0; margin: auto; width: 12px; height: 12px; border-top: 2px solid var(--on-ink); border-left: 2px solid var(--on-ink); }
.lightbox__nav--prev::before { transform: translateX(2px) rotate(-45deg); }
.lightbox__nav--next::before { transform: translateX(-2px) rotate(135deg); }
.lightbox__close { position: absolute; top: 16px; right: 16px; }
.lightbox__close::before, .lightbox__close::after, .modal__close::before, .modal__close::after { content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 2px; background: currentColor; }
.lightbox__close::before, .modal__close::before { transform: rotate(45deg); }
.lightbox__close::after, .modal__close::after { transform: rotate(-45deg); }
@media (max-width: 639px) {
  .lightbox { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; padding: 64px 12px 16px; }
  .lightbox__figure { grid-column: 1 / -1; grid-row: 1; }
  .lightbox__nav { grid-row: 2; }
}

/* ---------- Materiály ---------- */
.materials { padding-bottom: var(--section); }
.materials__list { list-style: none; padding: 0; display: grid; gap: clamp(4rem, 9vw, 8rem); }
.material { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem var(--gutter); align-items: center; }
.material__disc { grid-column: 2 / span 4; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--mist); outline: 1px solid var(--line); outline-offset: 10px; }
.material__disc img { width: 100%; height: 100%; object-fit: cover; }
.material__body { grid-column: 7 / span 5; }
.material--flip .material__disc { grid-column: 8 / span 4; grid-row: 1; }
.material--flip .material__body { grid-column: 2 / span 5; grid-row: 1; }
.material__title { font-size: var(--t-2xl); margin-bottom: 1.25rem; }
.material__text { color: var(--ink-soft); max-width: 50ch; }
@media (max-width: 759px) {
  .material .material__disc { grid-column: 2 / span 10; grid-row: auto; }
  .material .material__body { grid-column: 1 / -1; grid-row: auto; }
}

/* ---------- Kontakt ---------- */
.contact { padding-bottom: var(--section); }
.contact__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3rem var(--gutter); align-items: start; }
.contact__info { grid-column: 1 / span 5; }
.contact__big { display: grid; gap: .5rem; margin-bottom: 2.5rem; font-family: var(--f-display); font-weight: 600; font-size: var(--t-xl); letter-spacing: -.015em; }
.contact__big a { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.contact__big a:hover { color: var(--petrol); text-decoration: underline; }
.contact__facts { display: grid; gap: 1.25rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.contact__facts dt { font-size: var(--t-xs); color: var(--muted); margin-bottom: .2rem; }
.contact__form { grid-column: 7 / span 6; background: var(--white); border-radius: 8px; padding: clamp(1.5rem, 4vw, 3rem); box-shadow: 0 1px 0 var(--mist); }
.contact__form-title { font-size: var(--t-lg); margin-bottom: 1.5rem; }
@media (max-width: 899px) { .contact__info, .contact__form { grid-column: 1 / -1; } }

/* ---------- Formulář ---------- */
.inquiry { display: grid; gap: 1.25rem; }
.field { display: grid; gap: .4rem; min-width: 0; border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-family: var(--f-display); font-weight: 600; font-size: var(--t-sm); padding: 0; }
.field__opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  font: inherit; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:hover, .field textarea:hover { border-color: #9fb2bb; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--petrol); box-shadow: 0 0 0 3px rgba(14, 116, 144, .18); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__error { margin: 0; font-size: var(--t-sm); color: var(--danger); }
.field__error:empty { display: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 559px) { .field-row { grid-template-columns: 1fr; } }
.choice { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.choice__item { position: relative; }
.choice__item input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice__item span { display: inline-block; padding: .6rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: var(--t-sm); font-weight: 500; transition: background-color .2s, border-color .2s, color .2s; }
.choice__item input:hover + span { border-color: var(--ink); }
.choice__item input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.choice__item input:focus-visible + span { outline: 2px solid var(--petrol); outline-offset: 3px; }
.inquiry__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.inquiry__note { font-size: var(--t-sm); color: var(--muted); margin: 0; }
.inquiry__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; }
.inquiry__status { margin: 0; font-size: var(--t-sm); font-weight: 500; }
.inquiry__status.is-ok { color: var(--ok); }
.inquiry__status.is-error { color: var(--danger); }
.inquiry.is-sent .field, .inquiry.is-sent .field-row, .inquiry.is-sent .inquiry__note, .inquiry.is-sent [data-submit] { display: none; }
.inquiry.is-sent .inquiry__status { font-size: var(--t-md); }

/* ---------- Dialog poptávky ---------- */
.modal { width: min(640px, 100% - 24px); max-height: calc(100svh - 24px); padding: 0; border: 0; border-radius: 10px; background: var(--paper); color: var(--ink); overflow: auto; }
.modal::backdrop { background: rgba(20, 33, 43, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal[open] { animation: modal-in .35s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.985); } }
.modal__panel { position: relative; padding: clamp(1.5rem, 5vw, 2.75rem); }
.modal__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.modal__close:hover { background: var(--mist); }
.modal__title { font-size: var(--t-xl); margin-bottom: .75rem; padding-right: 2.5rem; }
.modal__lead { color: var(--ink-soft); margin-bottom: 1.75rem; }

/* ---------- Cookie lišta ---------- */
.consent { position: fixed; left: var(--gutter); bottom: var(--gutter); z-index: 110; width: min(440px, 100% - 2 * var(--gutter)); }
.consent[hidden] { display: none; }
.consent__panel {
  position: relative; overflow: hidden; padding: 1.5rem 1.5rem 1.25rem; background: var(--white); border: 1px solid var(--mist); border-radius: 12px;
  box-shadow: 0 24px 60px -24px rgba(20, 33, 43, .38);
}
.consent.is-entering .consent__panel { animation: modal-in .45s var(--ease); }
.consent__title { font-size: var(--t-md); margin-bottom: .5rem; position: relative; }
.consent__text { font-size: var(--t-sm); color: var(--ink-soft); position: relative; }
.consent__prefs { display: grid; gap: .75rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--mist); }
.consent__prefs[hidden] { display: none; }
.consent__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: 1.25rem; }
.consent__actions .btn { min-height: 44px; padding: 0 1.15rem; }
.consent__actions .link-button { font-size: var(--t-sm); color: var(--ink-soft); }
.switch { display: grid; grid-template-columns: auto 1fr; gap: .25rem .85rem; align-items: start; font-size: var(--t-sm); color: var(--ink-soft); cursor: pointer; position: relative; }
.switch input { position: absolute; opacity: 0; width: 40px; height: 24px; margin: 0; cursor: pointer; }
.switch__track { width: 40px; height: 24px; border-radius: 999px; background: var(--line); position: relative; transition: background-color .2s; margin-top: .1rem; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--white); transition: transform .2s var(--ease); box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.switch input:checked + .switch__track { background: var(--petrol); }
.switch input:checked + .switch__track::after { transform: translateX(16px); }
.switch input:disabled + .switch__track { opacity: .55; }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--petrol); outline-offset: 3px; }
.switch__label strong { display: block; color: var(--ink); font-family: var(--f-display); }

/* ---------- Text (ochrana údajů) ---------- */
.prose { max-width: 70ch; padding-bottom: var(--section); }
.prose h2 { font-size: var(--t-lg); margin: 2.5rem 0 1rem; }
.prose p { color: var(--ink-soft); }
.notfound { display: flex; flex-wrap: wrap; gap: .75rem; padding-bottom: var(--section); }

/* ---------- Omezený pohyb ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}


/* =====================================================================
   Prvky z rýsování a 3D návrhu: mřížka, kóty, prstence, oblouky sekcí
   ===================================================================== */

/* Panel s obloukem: horní hrana je výsek kruhu a při scrollu se narovná (JS: data-arc) */
.sheet { position: relative; z-index: 2; background: var(--paper); }
.process, .cta { position: relative; z-index: 2; }
@media (min-width: 960px) {
  html.motion .sectors.sheet { margin-top: -34svh; }
}
.sheet--over-dark { margin-top: -160px; }
.process { padding-bottom: calc(var(--section) + 160px); }

/* Mřížka pracovní plochy jako v modelovacím programu */
.grid-plane {
  position: absolute; inset: -10% 0 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(14, 116, 144, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 116, 144, .09) 1px, transparent 1px),
    linear-gradient(rgba(20, 33, 43, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 33, 43, .045) 1px, transparent 1px);
  background-size: 200px 200px, 200px 200px, 40px 40px, 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 78% 28%, #000 0%, rgba(0, 0, 0, .35) 45%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 55% at 78% 28%, #000 0%, rgba(0, 0, 0, .35) 45%, transparent 75%);
}
.featured .grid-plane { -webkit-mask-image: radial-gradient(ellipse 55% 45% at 15% 60%, #000, transparent 72%); mask-image: radial-gradient(ellipse 55% 45% at 15% 60%, #000, transparent 72%); }
.page-head .grid-plane { inset: 0; -webkit-mask-image: radial-gradient(ellipse 70% 80% at 85% 20%, #000, transparent 70%); mask-image: radial-gradient(ellipse 70% 80% at 85% 20%, #000, transparent 70%); }
.sectors, .featured { overflow: hidden; }
.sectors > .wrap, .featured > .wrap { position: relative; z-index: 1; }

/* Velké prstence, které se pomalu posouvají */
.orbit { position: absolute; z-index: 0; border-radius: 50%; border: 1px solid var(--line); pointer-events: none; }
.orbit::after { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--orchid); top: 14.6%; left: 14.6%; translate: -50% -50%; }
.orbit--sectors { width: clamp(380px, 46vw, 760px); aspect-ratio: 1; right: -12vw; top: 18%; }
.orbit--swatches { width: clamp(300px, 34vw, 560px); aspect-ratio: 1; right: 4vw; top: 30%; border-style: dashed; border-color: #b7c7ce; }
.orbit--swatches::after { background: var(--azure); top: 85.4%; left: 85.4%; }
.swatches { position: relative; overflow: hidden; }
.swatches > .wrap { position: relative; z-index: 1; }

/* Kóty */
.dim { position: relative; display: block; color: var(--petrol); pointer-events: none; }
.dim__line { position: absolute; background: currentColor; opacity: .55; transform-origin: 0 0; }
.dim__tick { position: absolute; width: 14px; height: 1.5px; background: currentColor; transform: rotate(-45deg); }
.dim__val { position: absolute; font-family: var(--f-display); font-weight: 500; font-size: var(--t-xs); letter-spacing: .04em; font-variant-numeric: tabular-nums; background: var(--paper); padding: 0 .5rem; }
.dim--h { height: 24px; }
.dim--h .dim__line { left: 0; right: 0; top: 50%; height: 1px; }
.dim--h .dim__tick { left: -7px; top: calc(50% - .75px); }
.dim--h .dim__tick--end { left: auto; right: -7px; }
.dim--h .dim__val { left: 50%; top: 50%; translate: -50% -50%; }
.dim--v { width: 24px; }
.dim--v .dim__line { top: 0; bottom: 0; left: 50%; width: 1px; }
.dim--v .dim__tick { top: -1px; left: calc(50% - 7px); }
.dim--v .dim__tick--end { top: auto; bottom: -1px; }
.dim--v .dim__val { top: 50%; left: 50%; translate: -50% -50%; rotate: -90deg; white-space: nowrap; padding: 0 .4rem; }
.js.motion .dim__val, .js.motion .dim__tick { opacity: 0; }

.sector__mediawrap { position: relative; margin-bottom: 1.75rem; }
.sector__mediawrap .sector__media { margin-bottom: 0; }
.sector__dim { position: absolute; top: 0; bottom: 0; left: -40px; }
.featured__dim { margin: -2rem 0 clamp(3rem, 6vw, 5rem); }
@media (max-width: 759px) { .sector__dim { display: none; } }

/* 3D model místnosti v sekci postupu */
.model { margin: 0 0 2.25rem; max-width: 520px; }
.model svg { width: 100%; height: auto; overflow: visible; }
.model .m-grid { fill: none; stroke: rgba(86, 195, 232, .16); stroke-width: 1; }
.model .m-line { fill: none; stroke: var(--azure); stroke-width: 1.4; stroke-linecap: round; }
.model .m-line--furniture { stroke: #9adcf2; stroke-width: 1.2; }
.model .m-dim { fill: none; stroke: var(--orchid); stroke-width: 1.2; stroke-linecap: round; }
.model .m-label { fill: #e3b6dc; font-family: var(--f-display); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-anchor: middle; dominant-baseline: middle; }
.model .m-face { stroke: none; }
.model .m-face--floor { fill: rgba(86, 195, 232, .07); }
.model .m-face--wall { fill: rgba(233, 240, 242, .05); }
.model .m-face--orchid { fill: rgba(166, 82, 154, .55); }
.model .m-face--petrol { fill: rgba(18, 138, 170, .6); }
.model .m-face--azure { fill: rgba(86, 195, 232, .35); }
.model .m-face--top { fill: rgba(233, 240, 242, .28); }
.model__caption { margin-top: .75rem; font-size: var(--t-sm); color: var(--on-ink-muted); display: flex; align-items: center; gap: .6rem; }
.model__caption::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--azure); box-shadow: 0 0 0 4px rgba(86, 195, 232, .18); }
.process__intro .section-title { margin-bottom: 2.5rem; }
@media (max-width: 859px) { .model { max-width: 440px; margin-inline: auto; } }
