/* =====================================================================
   Ell-Inspire – 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 {
  /* Paleta z loga Ell-Inspire: espresso, hnědá, taupe, pudrová */
  --ink: #27170b;
  --ink-soft: #55443a;
  --muted: #6f5d51;
  --paper: #ffffff;
  --white: #ffffff;
  --mist: #f6eee9;
  --blush-soft: #efe2db;
  --line: #e2d4cc;
  --petrol: #3b281a;
  --petrol-deep: #27170b;
  --azure: #c9a397;
  --orchid: #826f62;
  --copper: linear-gradient(120deg, #3b281a 0%, #826f62 45%, #c9a397 100%);
  --danger: #b42318;
  --ok: #17784a;

  --on-ink: #f7efea;
  --on-ink-muted: #cdb9ae;
  --on-ink-line: rgba(247, 239, 234, .16);

  --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;

  --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.25rem, 1.4rem + 3vw, 3.9rem);
  --t-3xl: clamp(3rem, 1.6rem + 5.4vw, 7rem);

  --gutter: clamp(16px, 4vw, 56px);
  --wrap: 1360px;
  --section: clamp(5rem, 3rem + 8vw, 10rem);
  --header-h: 76px;
  --radius: 14px;
  --arch: 999px 999px 18px 18px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 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); }
.w { overflow: clip; overflow-clip-margin: .14em; }

: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(255, 255, 255, .88); 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; }

/* ---------- 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; }

/* ---------- 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; }
}

/* ---------- 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; }
}



/* =====================================================================
   Ell-Inspire – motiv oblouku (dveře, okno, domov) a hravý pohyb
   ===================================================================== */

/* Slova nadpisů pro odhalení */
.w { display: inline-block; overflow: clip; overflow-clip-margin: .14em; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w__i { display: inline-block; }
.js.motion .w__i { transform: translateY(110%) rotate(4deg); }

/* Oblouk: fotka ve tvaru dveří */
.arch { position: relative; overflow: hidden; border-radius: var(--arch); background: var(--mist); isolation: isolate; }
.arch > img { width: 100%; height: 100%; object-fit: cover; }

/* Panel s obloukem nahoře (JS: data-arc) */
.sheet, .stack, .calc { position: relative; z-index: 2; }

/* Tečkový rastr místo mřížky: jemná textura látky */
.grid-plane {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(130, 111, 98, .28) 1.2px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 85% 20%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 70% at 85% 20%, #000, transparent 70%);
}

/* ---------- Hero: koláž v obloucích ---------- */
.ihero { position: relative; overflow: clip; padding-top: calc(var(--header-h) + clamp(2rem, 5vw, 4rem)); padding-bottom: clamp(4rem, 8vw, 7rem); }
.ihero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3rem var(--gutter); align-items: center; min-height: calc(100svh - var(--header-h) - 6rem); }
.ihero__title { font-size: var(--t-3xl); font-weight: 700; line-height: .98; letter-spacing: -.045em; max-width: 9.5ch; text-wrap: wrap; }
.ihero__lead { margin-top: 1.75rem; max-width: 40ch; font-size: var(--t-md); color: var(--ink-soft); }
.ihero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }

.ihero__collage { position: relative; aspect-ratio: 1 / 1.08; width: 100%; max-width: 640px; justify-self: end; }
.ihero__collage .arch { position: absolute; box-shadow: 0 40px 80px -40px rgba(39, 23, 11, .45); will-change: transform; }
.arch--lg { width: 58%; height: 78%; left: 22%; top: 6%; }
.arch--md { width: 34%; height: 46%; left: 0; top: 46%; border: 6px solid var(--white); }
.arch--sm { width: 26%; height: 34%; right: 0; top: 60%; border: 6px solid var(--white); }
.shape { position: absolute; pointer-events: none; will-change: transform; }
.shape--sun { width: 46%; aspect-ratio: 2 / 1; right: -6%; top: -2%; border-radius: 999px 999px 0 0; background: var(--blush-soft); }
.shape--dots { width: 30%; aspect-ratio: 1; left: 6%; top: 10%; background-image: radial-gradient(circle, var(--orchid) 1.6px, transparent 2px); background-size: 16px 16px; opacity: .5; border-radius: 50%; }
.badge { position: absolute; width: 23%; aspect-ratio: 1; right: 8%; top: 4%; display: grid; place-items: center; border-radius: 50%; background: var(--white); box-shadow: 0 20px 50px -24px rgba(39, 23, 11, .4); will-change: transform; }
.badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: badge-spin 24s linear infinite; overflow: visible; }
.badge text { font-family: var(--f-display); font-weight: 600; font-size: 15.5px; letter-spacing: .14em; fill: var(--ink); }
.badge img { width: 40%; height: auto; }
@keyframes badge-spin { to { transform: rotate(360deg); } }

@media (max-width: 959px) {
  .ihero__grid { grid-template-columns: 1fr; min-height: 0; }
  .ihero__collage { justify-self: center; max-width: 520px; margin-top: 1rem; }
  .ihero__title { max-width: 11ch; }
}

/* ---------- Hlavní myšlenka: slova se rozsvěcují, kolečka se točí ---------- */
.promise { position: relative; z-index: 1; overflow: clip; padding-block: clamp(4rem, 9vw, 8rem) clamp(5rem, 10vw, 9rem); }
.promise::before {
  content: ""; position: absolute; z-index: -1; width: min(90vw, 1100px); aspect-ratio: 1; left: 50%; top: 50%; translate: -50% -50%;
  background: radial-gradient(closest-side, var(--blush-soft), rgba(239, 226, 219, 0));
}
.promise__gears { position: absolute; z-index: -1; width: clamp(220px, 30vw, 420px); right: max(-4vw, -60px); top: 4%; overflow: visible; }
.gear { fill: none; stroke: var(--azure); stroke-width: 1.5; stroke-linejoin: round; transform-box: fill-box; transform-origin: center; }
.gear--sm { stroke: var(--orchid); stroke-opacity: .6; }
.gear__hub { fill: none; stroke: var(--line); stroke-width: 1.5; }
.promise__inner { position: relative; }
.promise__title { font-size: clamp(2.25rem, 1.2rem + 4.2vw, 5.4rem); line-height: 1.04; letter-spacing: -.035em; max-width: 17ch; }
.gw { display: inline-block; }
.motion .gw { opacity: .16; }
.gw--hi { background: var(--copper); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
.promise__text { margin-top: clamp(1.5rem, 3vw, 2.5rem); margin-left: auto; max-width: 52ch; font-size: var(--t-md); color: var(--ink-soft); }
.promise__points { list-style: none; margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.point {
  display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.4rem 1.1rem 1.1rem; border-radius: 999px;
  background: rgba(255, 255, 255, .72); border: 1px solid var(--line); font-family: var(--f-display); font-weight: 600; line-height: 1.3;
  box-shadow: 0 20px 40px -30px rgba(39, 23, 11, .35);
}
.point__icon { flex: none; width: 48px; height: 48px; padding: 9px; border-radius: 50%; background: var(--mist); fill: none; stroke: var(--petrol); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: rotate .8s cubic-bezier(.3, 1.5, .5, 1); }
.point:hover .point__icon { rotate: 40deg; }
@media (max-width: 859px) {
  .promise__points { grid-template-columns: 1fr; }
  .promise__gears { opacity: .55; top: -2%; }
}

/* ---------- Procházka domem: mozaika místností v obloucích ---------- */
.journey {
  position: relative; padding-block: clamp(5rem, 9vw, 8rem);
  background: linear-gradient(180deg, rgba(246, 238, 233, 0) 0, var(--mist) clamp(6rem, 14vw, 14rem), var(--mist) calc(100% - clamp(6rem, 14vw, 14rem)), rgba(246, 238, 233, 0) 100%);
}
.journey__head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem var(--gutter); align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.journey__head .section-title { grid-column: 1 / span 7; max-width: 14ch; }
.journey__lead { grid-column: 8 / span 5; color: var(--ink-soft); }
.rooms { list-style: none; margin-block: 0; padding: 0 0 clamp(4rem, 8vw, 8rem); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(2.5rem, 4vw, 4rem) clamp(1rem, 2.4vw, 2.25rem); }
.rtile:nth-child(even) > .rtile__link { translate: 0 clamp(3rem, 7vw, 7rem); }
.rtile__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.rtile__media { display: block; aspect-ratio: 4 / 5; outline: 1.5px solid transparent; outline-offset: 0; box-shadow: 0 30px 60px -36px rgba(39, 23, 11, .55); transition: outline-color .4s ease, outline-offset .6s cubic-bezier(.3, 1.5, .5, 1), translate .6s cubic-bezier(.3, 1.5, .5, 1); }
.rtile__media img { transition: scale 1.2s cubic-bezier(.2, .7, .1, 1); }
.rtile__num {
  display: inline-grid; place-items: center; align-self: flex-start; width: 42px; height: 42px; margin: -21px 0 0 1rem; position: relative; z-index: 1;
  border-radius: 50%; background: var(--white); border: 1px solid var(--line); font-family: var(--f-display); font-weight: 700; font-size: var(--t-xs);
  transition: background .4s ease, color .4s ease, rotate .6s cubic-bezier(.3, 1.5, .5, 1);
}
.rtile__title { margin-top: .9rem; font-family: var(--f-display); font-weight: 600; font-size: var(--t-lg); line-height: 1.15; letter-spacing: -.02em; }
.rtile__text { margin-top: .5rem; color: var(--ink-soft); font-size: var(--t-sm); line-height: 1.55; }
.rtile__more { display: inline-flex; align-items: center; gap: .75rem; margin-top: auto; padding-top: 1.1rem; font-family: var(--f-display); font-weight: 600; font-size: var(--t-sm); }
.rtile__link:hover .rtile__media, .rtile__link:focus-visible .rtile__media { outline-color: var(--azure); outline-offset: 9px; translate: 0 -6px; }
.rtile__link:hover .rtile__media img, .rtile__link:focus-visible .rtile__media img { scale: 1.08; }
.rtile__link:hover .rtile__num, .rtile__link:focus-visible .rtile__num { background: var(--petrol); color: var(--white); rotate: 360deg; }
.rtile__link:hover .btn__knob, .rtile__link:focus-visible .btn__knob { background: var(--knob-hot-bg, var(--azure)); color: var(--knob-hot-fg, var(--ink)); }
.rtile__link:focus-visible { outline: none; }

/* Poslední dlaždice: dveře do konfigurátoru */
.rtile__door {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: .75rem; aspect-ratio: 4 / 5; padding: clamp(1.25rem, 2vw, 2rem);
  background: var(--ink); color: var(--on-ink); transition: translate .6s cubic-bezier(.3, 1.5, .5, 1);
}
.rtile__ring { position: absolute; width: 130%; left: -15%; top: -12%; fill: none; stroke: var(--azure); stroke-opacity: .35; stroke-dasharray: 3 9; animation: badge-spin 40s linear infinite; }
.rtile__cta-title { position: relative; font-family: var(--f-display); font-weight: 700; font-size: var(--t-xl); line-height: 1.05; letter-spacing: -.03em; }
.rtile__cta-text { position: relative; color: var(--on-ink-muted); font-size: var(--t-sm); }
.rtile--cta .rtile__more { position: relative; margin-top: .25rem; padding-top: 0; }
.rtile--cta .rtile__link:hover .rtile__door { translate: 0 -6px; }

@media (max-width: 1099px) {
  .rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 559px) {
  .rooms { gap: 2.25rem .9rem; }
  .rtile__text { display: none; }
  .rtile__title { font-size: var(--t-md); }
  .rtile__num { width: 34px; height: 34px; margin: -17px 0 0 .6rem; }
  .rtile__cta-title { font-size: var(--t-md); }
  .rtile__cta-text { display: none; }
}

/* ---------- Přechody mezi sekcemi: nit s parallaxem ---------- */
.seam { position: relative; z-index: 3; height: 18vw; margin-block: -9vw; pointer-events: none; }
.seam__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.seam--flip .seam__svg { scale: -1 1; }
.seam__ghost { fill: none; stroke: var(--azure); stroke-opacity: .55; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: .1 12; }
.seam__line { fill: none; stroke-width: 2.5; stroke-linecap: round; }
.seam__tip { fill: var(--petrol); stroke: var(--white); stroke-width: 3; opacity: 0; }
.seam__arch, .seam__ring, .seam__dots { position: absolute; display: block; }
.seam__arch { width: clamp(46px, 5vw, 80px); aspect-ratio: 3 / 4; left: 8%; top: 4%; border: 1.5px solid var(--azure); border-radius: var(--arch); opacity: .7; }
.seam__ring { width: clamp(22px, 2.2vw, 34px); aspect-ratio: 1; right: 14%; top: 64%; border-radius: 50%; background: var(--blush-soft); }
.seam__dots { width: clamp(70px, 9vw, 140px); aspect-ratio: 1; right: 28%; top: -10%; background-image: radial-gradient(circle, rgba(130, 111, 98, .45) 1.3px, transparent 1.8px); background-size: 14px 14px; opacity: .7; }
.seam--flip .seam__arch { left: auto; right: 9%; }
.seam--flip .seam__ring { right: auto; left: 16%; }
.seam--flip .seam__dots { right: auto; left: 30%; }
.seam--dark .seam__ring { background: var(--orchid); }
.seam--dark .seam__tip { stroke: var(--ink); fill: var(--azure); }
@media (max-width: 759px) {
  .seam { height: 30vw; margin-block: -15vw; }
  .seam__ghost, .seam__line { stroke-width: 6; }
  .seam__tip { r: 14px; stroke-width: 5; }
}

/* ---------- Služby: karty, které se skládají na sebe ---------- */
.stack { padding-block: var(--section); }
.stack__title { margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 14ch; }
.stack__list { display: grid; gap: 1.5rem; }
.scard {
  position: sticky; top: calc(var(--header-h) + 1.5rem);
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 2rem var(--gutter); align-items: center;
  min-height: min(68svh, 560px); padding: clamp(1.75rem, 4vw, 3.5rem); border-radius: 28px;
  background: var(--blush-soft); color: var(--ink); transform-origin: 50% 0; will-change: transform;
  box-shadow: 0 -10px 40px -30px rgba(39, 23, 11, .35);
}
.scard::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--ink); opacity: var(--shade, 0); pointer-events: none; }
.scard--1 { background: var(--ink); color: var(--on-ink); }
.scard--1 .scard__text { color: var(--on-ink-muted); }
.scard--2 { background: #d9c2b8; }
.scard:nth-child(2) { top: calc(var(--header-h) + 2.25rem); }
.scard:nth-child(3) { top: calc(var(--header-h) + 3rem); }
.scard:nth-child(4) { top: calc(var(--header-h) + 3.75rem); }
.scard:nth-child(5) { top: calc(var(--header-h) + 4.5rem); }
.scard:nth-child(6) { top: calc(var(--header-h) + 5.25rem); }
.scard__title { font-size: var(--t-2xl); max-width: 13ch; margin-bottom: 1.25rem; }
.scard__text { color: var(--ink-soft); max-width: 46ch; font-size: var(--t-md); }
.scard__media { aspect-ratio: 4 / 5; max-height: 460px; justify-self: end; width: 100%; max-width: 360px; }
.stack__more { margin-top: 3rem; }
@media (max-width: 759px) {
  .scard { grid-template-columns: 1fr; min-height: 0; position: relative; top: auto !important; }
  .scard__media { justify-self: start; max-width: none; aspect-ratio: 16 / 11; border-radius: 999px 999px 14px 14px; }
}

/* ---------- Vzorník materiálů: rozházené kartičky ---------- */
.moods { position: relative; padding-block: var(--section); overflow: hidden; }
.moods__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3rem var(--gutter); align-items: center; }
.moods__intro { grid-column: 1 / span 4; }
.moods__text { color: var(--ink-soft); margin: 1.5rem 0 1.75rem; max-width: 40ch; }
.moods__cloud { grid-column: 6 / span 7; position: relative; list-style: none; margin: 0; padding: 0; height: clamp(420px, 46vw, 640px); }
.mood { position: absolute; width: clamp(130px, 15vw, 210px); will-change: transform; }
.mood figure { margin: 0; padding: 10px 10px 14px; background: var(--white); border-radius: 12px; box-shadow: 0 24px 50px -28px rgba(39, 23, 11, .45); }
.mood__img { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: var(--mist); }
.mood__img img { width: 100%; height: 100%; object-fit: cover; }
.mood figcaption { margin-top: .6rem; font-family: var(--f-display); font-weight: 600; font-size: var(--t-sm); }
.mood:nth-child(1) { left: 2%; top: 4%; rotate: -7deg; }
.mood:nth-child(2) { left: 34%; top: 0; rotate: 4deg; }
.mood:nth-child(3) { right: 2%; top: 10%; rotate: -3deg; }
.mood:nth-child(4) { left: 12%; top: 50%; rotate: 5deg; }
.mood:nth-child(5) { left: 44%; top: 44%; rotate: -5deg; }
.mood:nth-child(6) { right: 6%; top: 58%; rotate: 8deg; }
@media (max-width: 859px) {
  .moods__intro, .moods__cloud { grid-column: 1 / -1; }
  .moods__cloud { height: auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .mood { position: relative; inset: auto !important; width: auto; }
}

/* ---------- Mini kalkulačka (tmavý panel) ---------- */
.calc {
  color: var(--on-ink); padding-block: calc(var(--section) + clamp(6rem, 16vw, 16rem)) var(--section); margin-top: calc(-1 * clamp(4rem, 10vw, 10rem));
  background: linear-gradient(180deg, rgba(239, 226, 219, 0) 0, var(--blush-soft) clamp(2rem, 4vw, 4rem), #a58f82 clamp(4.5rem, 9vw, 9rem), #5a4334 clamp(6rem, 13vw, 13rem), var(--ink) clamp(7.5rem, 17vw, 17rem));
}
.calc__inner { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3rem var(--gutter); align-items: center; }
.calc__intro { grid-column: 1 / span 5; }
.calc__text { margin-top: 1.5rem; color: var(--on-ink-muted); max-width: 42ch; }
.calc__panel { grid-column: 7 / span 6; padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: 24px; background: rgba(247, 239, 234, .06); border: 1px solid var(--on-ink-line); }
.calc__label { font-family: var(--f-display); font-weight: 600; margin-bottom: 1rem; }
.calc__rooms { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  padding: .65rem 1.1rem; border-radius: 999px; border: 1px solid var(--on-ink-line); background: transparent; color: var(--on-ink);
  font-family: var(--f-display); font-weight: 500; font-size: var(--t-sm); cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .4s var(--spring);
}
.chip:hover { border-color: var(--azure); }
.chip[aria-pressed="true"] { background: var(--azure); border-color: var(--azure); color: var(--ink); transform: translateY(-2px); }
.calc__sum { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 1.75rem 0 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--on-ink-line); }
.calc__sum span:first-child { color: var(--on-ink-muted); }
.calc__sum strong { font-family: var(--f-display); font-size: var(--t-2xl); font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
@media (max-width: 859px) { .calc__intro, .calc__panel { grid-column: 1 / -1; } }

/* Patička navazuje na tmavý panel */
.cta { background: var(--ink); }
.cta__ring { stroke: var(--azure); }

/* ---------- Služby (podstránka) ---------- */
.service__media.arch { aspect-ratio: 4 / 5; max-width: 520px; }
.service--flip .service__media.arch { justify-self: end; }

/* ---------- Vizualizace: filtr a mřížka ---------- */
.gallery-page { padding-bottom: var(--section); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: -1rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.filter {
  display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.1rem; border-radius: 999px; border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-family: var(--f-display); font-weight: 500; font-size: var(--t-sm);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.filter span { font-size: var(--t-xs); color: var(--muted); }
.filter:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.filter[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.filter[aria-current="true"] span { color: var(--on-ink-muted); }
.works { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem var(--gutter); }
.work { transition: opacity .4s var(--ease), transform .5s var(--ease); }
.work.is-hidden { display: none; }
.work:nth-child(3n + 2) { margin-top: 4rem; }
.work__link { display: block; color: var(--ink); text-decoration: none; }
.work__link:hover { color: var(--ink); }
.work__media { display: block; aspect-ratio: 4 / 5; margin-bottom: 1rem; }
.work__media img { transition: transform .8s var(--ease); }
.work__link:hover .work__media img { transform: scale(1.05); }
.work__meta { display: block; font-size: var(--t-sm); color: var(--muted); margin-bottom: .25rem; }
.work__title { display: block; font-family: var(--f-display); font-weight: 600; font-size: var(--t-lg); line-height: 1.2; letter-spacing: -.01em; }
.work__link:hover .work__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .18em; }
@media (max-width: 1099px) { .works { grid-template-columns: repeat(2, minmax(0, 1fr)); } .work:nth-child(3n + 2) { margin-top: 0; } .work:nth-child(2n) { margin-top: 3rem; } }
@media (max-width: 559px) { .works { grid-template-columns: 1fr; } .work:nth-child(n) { margin-top: 0; } }

/* ---------- Materiály (podstránka): oblouky místo kruhů ---------- */
.material__disc { border-radius: var(--arch); aspect-ratio: 4 / 5; outline: none; }

/* ---------- Konfigurátor ---------- */
.cfg { padding-bottom: var(--section); }
.cfg__layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2rem clamp(2rem, 4vw, 4rem); align-items: start; }
.cfg__nav { display: flex; flex-wrap: wrap; gap: .25rem .5rem; list-style: none; padding: 0; margin: 0 0 2rem; }
.cfg__navbtn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .9rem .45rem .45rem; border: 0; border-radius: 999px; background: transparent;
  font-family: var(--f-display); font-weight: 600; font-size: var(--t-sm); color: var(--muted); cursor: pointer;
}
.cfg__navnum { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--mist); color: var(--ink); font-size: var(--t-xs); transition: background-color .3s, color .3s; }
.cfg__navbtn[aria-current="step"] { color: var(--ink); background: var(--mist); }
.cfg__navbtn[aria-current="step"] .cfg__navnum, .cfg__navbtn.is-done .cfg__navnum { background: var(--ink); color: var(--on-ink); }
.cfg-step { border: 0; padding: 0; margin: 0 0 3rem; min-width: 0; }
.cfg-step__title { font-family: var(--f-display); font-weight: 700; font-size: var(--t-2xl); letter-spacing: -.03em; line-height: 1.05; margin-bottom: .75rem; padding: 0; }
.cfg-step__hint { color: var(--ink-soft); margin-bottom: 2rem; max-width: 56ch; }
.cfg-step__sub { display: block; font-family: var(--f-display); font-weight: 600; margin: 2rem 0 .6rem; }
.js .cfg-step { display: none; }
.js .cfg-step.is-active { display: block; animation: step-in .55s var(--ease); }
@keyframes step-in { from { opacity: 0; transform: translateX(24px); } }

.rcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.rcard { position: relative; display: grid; gap: .35rem; padding: 10px 10px 14px; border-radius: 18px; background: var(--white); border: 1.5px solid var(--line); transition: border-color .3s var(--ease), transform .45s var(--spring), box-shadow .3s; }
.rcard.is-on { border-color: var(--ink); transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(39, 23, 11, .5); }
.rcard__img { aspect-ratio: 4 / 3; border-radius: 999px 999px 8px 8px; margin-bottom: .35rem; }
.rcard__title { font-family: var(--f-display); font-weight: 600; line-height: 1.2; }
.rcard__price { font-size: var(--t-sm); color: var(--muted); }
.stepper { display: inline-flex; align-items: center; justify-self: start; margin-top: .4rem; border: 1px solid var(--line); border-radius: 999px; }
.stepper__btn { width: 40px; height: 40px; border: 0; background: transparent; font-size: 1.25rem; cursor: pointer; border-radius: 50%; color: var(--ink); }
.stepper__btn:hover { background: var(--mist); }
.stepper__val { width: 2.5rem; text-align: center; border: 0; background: transparent; font: inherit; font-family: var(--f-display); font-weight: 700; -moz-appearance: textfield; color: var(--ink); }
.stepper__val::-webkit-outer-spin-button, .stepper__val::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.xcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.xcard, .mcard { position: relative; cursor: pointer; }
.xcard input, .mcard input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.xcard__box { display: grid; gap: .4rem; height: 100%; padding: 1.25rem 1.25rem 1.1rem; border-radius: 18px; border: 1.5px solid var(--line); background: var(--white); transition: border-color .3s, background-color .3s, transform .45s var(--spring); }
.xcard__title { font-family: var(--f-display); font-weight: 600; padding-right: 2rem; }
.xcard__text { font-size: var(--t-sm); color: var(--ink-soft); }
.xcard__price { font-size: var(--t-sm); font-weight: 600; color: var(--muted); margin-top: .25rem; }
.xcard__box::after { content: ""; position: absolute; top: 1.15rem; right: 1.15rem; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); transition: background-color .3s, border-color .3s, box-shadow .3s; }
.xcard input:checked + .xcard__box { border-color: var(--ink); background: var(--mist); transform: translateY(-3px); }
.xcard input:checked + .xcard__box::after { background: var(--ink); border-color: var(--ink); box-shadow: inset 0 0 0 4px var(--mist); }
.xcard input:focus-visible + .xcard__box, .mcard input:focus-visible + .mcard__img { outline: 2px solid var(--petrol); outline-offset: 3px; }
.cfg__km { margin-top: 1.5rem; max-width: 320px; }

.mcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }
.mcard__img { display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 999px 999px 14px 14px; border: 3px solid transparent; transition: border-color .3s, transform .45s var(--spring); }
.mcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.mcard:hover .mcard__img img { transform: scale(1.05); }
.mcard__title { display: block; margin-top: .6rem; font-family: var(--f-display); font-weight: 600; font-size: var(--t-sm); }
.mcard input:checked + .mcard__img { border-color: var(--ink); transform: rotate(-2deg) translateY(-4px); }
.mcard input:checked ~ .mcard__title::after { content: " ✓"; }

.choice__item--svetla span { background: #fbf7f3; }
.choice__item--tepla span { background: #ecd9c8; }
.choice__item--neutralni span { background: #e6e2de; }
.choice__item--tmava span { background: #4a382c; color: var(--on-ink); }
.choice__item--vyrazna span { background: linear-gradient(90deg, #f2c94c, #e76f51, #2a9d8f); color: var(--ink); }

.cfg__pager { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.cfg__pager[hidden] { display: none !important; }

.cfg__summary { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.cfg__sumcard { padding: 1.75rem; border-radius: 24px; background: var(--ink); color: var(--on-ink); }
.cfg__sumtitle { font-family: var(--f-display); font-weight: 700; font-size: var(--t-lg); margin-bottom: 1rem; }
.cfg__lines { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: var(--t-sm); }
.cfg__lines li { display: flex; justify-content: space-between; gap: 1rem; color: var(--on-ink-muted); animation: line-in .4s var(--ease); }
.cfg__lines li strong { color: var(--on-ink); font-weight: 600; white-space: nowrap; }
@keyframes line-in { from { opacity: 0; transform: translateY(6px); } }
.cfg__total { display: flex; align-items: baseline; justify-content: space-between; margin: 1.25rem 0 .75rem; padding-top: 1rem; border-top: 1px solid var(--on-ink-line); }
.cfg__total strong { font-family: var(--f-display); font-size: var(--t-xl); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cfg__individual, .cfg__note, .cfg__contact { font-size: var(--t-xs); color: var(--on-ink-muted); margin: .5rem 0 0; }
.cfg__contact a { color: var(--on-ink); }
.cfg__bar { display: none; }
@media (max-width: 959px) {
  .cfg__layout { grid-template-columns: 1fr; }
  .cfg__summary { position: static; }
  .cfg__bar {
    display: flex; justify-content: space-between; align-items: baseline; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
    padding: .9rem 1.25rem; border-radius: 999px; background: var(--ink); color: var(--on-ink); box-shadow: 0 20px 40px -20px rgba(39, 23, 11, .6);
  }
  .cfg__bar strong { font-family: var(--f-display); font-size: var(--t-md); }
  .cfg { padding-bottom: calc(var(--section) + 4rem); }
}

/* ---------- Omezený pohyb ---------- */
@media (prefers-reduced-motion: reduce) {
  .badge svg { animation: none; }
}
