/* ==========================================================================
   Sklenářství Spurný
   ========================================================================== */

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/schibsted-grotesk-latin-ext.woff2") format("woff2");
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/schibsted-grotesk-latin.woff2") format("woff2");
  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;
}

:root {
  /* papír a inkoust */
  --paper: #F4F3EE;
  --paper-2: #E0EBE6;
  --white: #FCFCFA;
  --ink: #11201E;
  --ink-2: #485956;
  --ink-3: #788683;
  --line: #CBD5D1;

  /* barva hrany skla */
  --edge: #1F5F57;
  --edge-dark: #164641;
  --edge-2: #5E978C;
  --edge-3: #BFD9D1;
  --edge-gradient: linear-gradient(180deg, #1C4741 0%, #5E978C 28%, #D3E8E1 50%, #5E978C 72%, #1C4741 100%);

  /* tmavé plochy */
  --night: #143A35;
  --night-2: #0E2926;
  --on-night: #EAF1EE;
  --on-night-2: #A6C0B9;
  --line-night: #2B524C;

  --max: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --header: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 12px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.025em; line-height: 1.05; text-wrap: balance; }
p { text-wrap: pretty; }
a[href^="tel:"] { white-space: nowrap; }
svg { flex: none; }
svg path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; stroke-linejoin: miter; }
.brand__mark path { stroke: #fff; stroke-width: 1.8; }
::selection { background: var(--edge-3); color: var(--ink); }

:focus-visible { outline: 2px solid var(--edge); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* --------------------------------------------------------------------------
   Tlačítka a odkazy
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--edge); color: #fff;
  font: inherit; font-size: 16px; font-weight: 600; letter-spacing: -.005em;
  padding: 17px 26px;
  border: 0; border-radius: 0; cursor: pointer;
  text-decoration: none;
  transition: background-color .25s var(--ease);
}
.btn:hover { background: var(--edge-dark); }

.link {
  font-weight: 600; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  padding-bottom: 3px;
  transition: background-size .35s var(--ease), color .2s;
}
.link:hover { color: var(--edge); background-size: 40% 1px; }

/* --------------------------------------------------------------------------
   Hlavička
   -------------------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(243, 243, 239, .94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.header.is-scrolled, body.menu-open .header { border-bottom-color: var(--line); }
.header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header);
}

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 34px; height: 34px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-size: 21px; font-weight: 700; letter-spacing: -.03em; }
.brand__sub {
  margin-top: 5px;
  font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-2);
}

.nav { display: flex; align-items: center; gap: 36px; }
.nav__links { display: flex; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  position: relative; display: block; padding: 6px 0;
  font-size: 15.5px; font-weight: 500; text-decoration: none;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__links a:hover::after,
.nav__links a.is-active::after { transform: scaleX(1); }

.nav__phone {
  display: inline-flex; align-items: center; gap: 10px;
  height: 28px; padding-left: 34px;
  border-left: 1px solid var(--line);
  font-size: 16px; font-weight: 600; text-decoration: none;
  transition: color .2s;
}
.nav__phone svg, .header__mobile .icon-btn:first-child { color: var(--edge); }
.nav__phone:hover { color: var(--edge); }

.header__mobile { display: none; align-items: center; gap: 4px; margin-right: -10px; }
.icon-btn {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; padding: 0;
  background: none; border: 0; border-radius: 0; color: var(--ink); cursor: pointer;
}
.menu-btn__lines,
.menu-btn__lines::before,
.menu-btn__lines::after {
  display: block; width: 22px; height: 1.6px; background: currentColor;
  transition: transform .35s var(--ease), opacity .2s;
}
.menu-btn__lines { position: relative; background: transparent; }
.menu-btn__lines::before, .menu-btn__lines::after { content: ""; position: absolute; left: 0; }
.menu-btn__lines::before { top: -4px; }
.menu-btn__lines::after { top: 4px; }
.menu-btn[aria-expanded="true"] .menu-btn__lines::before { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__lines::after { transform: translateY(-4px) rotate(-45deg); }

/* mobilní menu */
.menu {
  position: fixed; inset: var(--header) 0 0 0; z-index: 55;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom));
  background: var(--paper);
  visibility: hidden; opacity: 0;
  transition: opacity .3s var(--ease), visibility 0s linear .3s;
}
.menu.is-open { visibility: visible; opacity: 1; transition: opacity .3s var(--ease); }
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(28px, 8vw, 40px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1;
  text-decoration: none;
  transform: translateY(10px); opacity: 0;
  transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.menu.is-open .menu__nav a { transform: none; opacity: 1; }
.menu.is-open .menu__nav a:nth-child(2) { transition-delay: .04s; }
.menu.is-open .menu__nav a:nth-child(3) { transition-delay: .08s; }
.menu.is-open .menu__nav a:nth-child(4) { transition-delay: .12s; }
.menu__contact { display: flex; flex-direction: column; gap: 6px; color: var(--ink-2); }
.menu__contact a { text-decoration: none; }
.menu__phone { color: var(--ink); font-size: 24px; font-weight: 600; letter-spacing: -.02em; }

/* --------------------------------------------------------------------------
   Úvod
   -------------------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns:
    [full-start] minmax(var(--gutter), 1fr)
    [content-start] minmax(0, calc(var(--max) / 2))
    [mid] minmax(0, calc(var(--max) / 2))
    [content-end] minmax(var(--gutter), 1fr) [full-end];
  min-height: clamp(560px, calc(100svh - var(--header) - 110px), 820px);
}
.hero__text {
  grid-column: content-start / mid;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(48px, 7vh, 96px) clamp(32px, 5vw, 88px) clamp(48px, 7vh, 96px) 0;
}
.hero__eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 28px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--edge);
}
.hero__eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.hero__title {
  display: block;
  font-size: clamp(2.6rem, 5.6vw, 5.4rem);
  font-weight: 600; letter-spacing: -.035em; line-height: .98;
}
.hero__title > span { display: block; }
.hero__lead {
  max-width: 34em; margin-top: 32px;
  font-size: clamp(17px, 1.35vw, 19px); color: var(--ink-2);
}
.hero__actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px;
  margin-top: 40px;
}
.hero__media {
  grid-column: mid / full-end;
  position: relative; overflow: hidden;
  background: var(--paper-2);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
/* hrana skla */
.hero__media::before {
  content: ""; position: absolute; z-index: 1; left: 0; top: 0; bottom: 0; width: 7px;
  background: var(--edge-gradient);
}

/* fakta pod úvodem */
.facts { background: var(--paper-2); }
.facts__list { display: grid; grid-template-columns: repeat(3, 1fr); }
.fact { padding: 26px 32px 28px; border-left: 1px solid rgba(31, 95, 87, .18); }
.fact:first-child { padding-left: 0; border-left: 0; }
.fact dt { font-size: 18px; font-weight: 600; letter-spacing: -.01em; color: var(--edge); }
.fact dd { margin-top: 4px; font-size: 15.5px; color: var(--ink-2); }

/* --------------------------------------------------------------------------
   Sekce
   -------------------------------------------------------------------------- */
.section { padding: clamp(80px, 10vw, 144px) 0; }
.section--tint { background: var(--paper-2); }

.section-head {
  display: grid; grid-template-columns: 5fr 7fr; gap: 24px 48px; align-items: end;
  padding-bottom: clamp(40px, 5vw, 72px);
}
.section-head h2 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); letter-spacing: -.035em; line-height: 1; }
.section-head p { max-width: 36em; font-size: 18px; color: var(--ink-2); }

/* služby */
.services { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--edge); }
.service {
  display: grid; grid-template-columns: 5fr 7fr; gap: 12px 48px;
  padding: 34px 0 38px;
  border-bottom: 1px solid var(--line);
}
.service h3 {
  max-width: 15em;
  font-size: clamp(1.35rem, 2.1vw, 1.8rem); letter-spacing: -.025em; line-height: 1.15;
  transition: color .3s;
}
.service:hover h3 { color: var(--edge); }
.service__body { max-width: 40em; }
.service__body p { color: var(--ink-2); }
.tags {
  display: flex; flex-wrap: wrap; gap: 4px 0;
  list-style: none; margin: 16px 0 0; padding: 0;
  font-size: 14px; font-weight: 500; color: var(--edge);
}
.tags li:not(:last-child)::after { content: "/"; margin: 0 10px; color: var(--ink-3); font-weight: 400; }

.services__note {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px;
  margin-top: 40px; padding: 26px 30px;
  background: var(--paper-2); border-left: 3px solid var(--edge);
  font-size: 18px;
}

/* realizace */
.gallery {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(150px, 16.5vw, 228px);
  grid-auto-flow: dense;
  gap: 12px;
}
.g { position: relative; overflow: hidden; background: #C9D9D3; }
.g--w2 { grid-column: span 2; }
.g--h2 { grid-row: span 2; }
.g a { display: block; width: 100%; height: 100%; color: #fff; text-decoration: none; }
.g a:focus-visible { outline-offset: -4px; outline-color: #fff; }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.g:hover img { transform: scale(1.035); }
.g__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 48px 18px 16px;
  font-size: 15px; font-weight: 500; line-height: 1.3;
  background: linear-gradient(transparent, rgba(8, 14, 13, .78));
  opacity: 0; transform: translateY(8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.g:hover .g__cap, .g a:focus-visible .g__cap { opacity: 1; transform: none; }
@media (hover: none) {
  .g__cap { opacity: 1; transform: none; padding: 32px 12px 10px; font-size: 13px; }
}

/* o nás */
.about { background: var(--night); color: var(--on-night); }
.about__grid { display: grid; grid-template-columns: 7fr 5fr; gap: 48px clamp(48px, 7vw, 120px); align-items: start; }
.about__label {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 32px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1.2;
  color: var(--edge-3);
}
.about__label::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.about__quote {
  position: relative; padding-left: clamp(24px, 3vw, 40px);
}
.about__quote::before {
  content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 5px;
  background: var(--edge-gradient);
}
.about__quote p {
  font-size: clamp(2rem, 4.3vw, 3.7rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.08;
  text-wrap: balance;
}
.about__body { padding-top: 64px; }
.about__body p { color: var(--on-night-2); font-size: 17.5px; }
.about__body p + p { margin-top: 1.1em; }
.about__sign {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px;
  margin-top: 36px !important; padding-top: 20px;
  border-top: 1px solid var(--line-night);
  color: var(--on-night) !important; font-weight: 600;
}
.about__sign span { color: var(--on-night-2); font-weight: 400; }

/* kontakt */
.contact { padding-bottom: 0; }
.contact__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px clamp(48px, 7vw, 120px); align-items: start; }
.contact__hint { font-size: 15px; color: var(--ink-2); }
.contact__phone {
  display: inline-block; margin-top: 6px;
  font-size: clamp(2rem, 3.8vw, 3.2rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.1;
  color: var(--edge); text-decoration: none;
  transition: color .2s;
}
.contact__phone:hover { color: var(--edge-dark); }
.contact__list { margin-top: 36px; border-top: 2px solid var(--edge); }
.contact__list > div {
  display: grid; grid-template-columns: 150px 1fr; gap: 4px 24px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.contact__list dt { font-size: 14.5px; color: var(--ink-2); padding-top: 2px; }
.contact__list dd { font-weight: 500; }
.contact__list a { text-decoration: none; transition: color .2s; }
.contact__list a:hover { color: var(--edge); }

/* formulář */
.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px;
  padding: clamp(28px, 4vw, 48px);
  background: var(--white);
  border: 1px solid var(--line);
}
.form__head { grid-column: 1 / -1; margin-bottom: 4px; }
.form__head h3 { font-size: 26px; letter-spacing: -.025em; }
.form__head p { margin-top: 6px; color: var(--ink-2); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14.5px; font-weight: 600; }
.field input, .field textarea {
  width: 100%;
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line); border-radius: 0;
  padding: 13px 15px;
  transition: border-color .2s, background-color .2s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:hover, .field textarea:hover { border-color: var(--ink-3); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--edge); background: #fff; box-shadow: 0 0 0 1px var(--edge); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #A3392B; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__foot {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 24px;
  margin-top: 4px;
}
.form__note { max-width: 28em; font-size: 14px; color: var(--ink-2); }
.form__note a { color: var(--ink); }
.form__status { grid-column: 1 / -1; font-size: 15px; font-weight: 500; color: var(--edge); }
.form__status:empty { display: none; }
.form__status.is-error { color: #A3392B; }

/* mapa */
.map { position: relative; margin-top: clamp(80px, 10vw, 140px); height: clamp(340px, 38vw, 480px); border-top: 1px solid var(--line); background: var(--paper-2); }
.map iframe { display: block; width: 100%; height: 100%; border: 0; filter: saturate(.55) contrast(1.02); }
.map__card {
  position: absolute; left: max(var(--gutter), calc((100% - var(--max)) / 2)); top: 32px;
  padding: 22px 26px 24px; max-width: calc(100% - 2 * var(--gutter));
  background: var(--night); color: var(--on-night);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .5);
}
.map__card p { color: var(--on-night-2); font-size: 15.5px; }
.map__card .map__title { color: var(--on-night); font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.map__card .link { display: inline-block; margin-top: 12px; font-size: 15.5px; color: var(--on-night); }
.map__card .link:hover { color: var(--edge-3); }

/* --------------------------------------------------------------------------
   Patička
   -------------------------------------------------------------------------- */
.footer { position: relative; background: var(--night-2); color: var(--on-night-2); font-size: 15.5px; }
.footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, #1C4741, #5E978C 30%, #D3E8E1 50%, #5E978C 70%, #1C4741);
}
.footer__grid {
  display: grid; grid-template-columns: 5fr 3fr 4fr; gap: 40px 48px;
  padding-top: clamp(56px, 7vw, 88px); padding-bottom: 48px;
}
.brand--light { color: var(--on-night); margin-bottom: 18px; }
.brand--light .brand__sub { color: var(--on-night-2); }
.brand--light .brand__mark path { stroke: #fff; }
.footer__brand > p:last-child { max-width: 28em; }
.footer__nav, .footer__contact { display: flex; flex-direction: column; gap: 6px; }
.footer a { text-decoration: none; transition: color .2s; }
.footer__nav a, .footer__contact a { color: var(--on-night); }
.footer a:hover { color: var(--edge-3); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-top: 22px; padding-bottom: 28px;
  border-top: 1px solid var(--line-night);
  font-size: 14px;
}
.footer__bottom::before { content: none; }

/* --------------------------------------------------------------------------
   Podstránka – ochrana osobních údajů
   -------------------------------------------------------------------------- */
.legal { padding: clamp(56px, 8vw, 112px) 0 clamp(80px, 10vw, 140px); }
.legal__inner { max-width: 760px; }
.legal__back { display: inline-block; margin-bottom: 40px; font-size: 15px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.035em; line-height: 1.02; }
.legal__intro { margin-top: 24px; font-size: 18px; color: var(--ink-2); }
.legal h2 {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: clamp(1.4rem, 2.4vw, 1.8rem); letter-spacing: -.025em; line-height: 1.15;
}
.legal h3 { margin-top: 32px; font-size: 18px; letter-spacing: -.01em; line-height: 1.3; }
.legal p, .legal ul { margin-top: 14px; color: var(--ink-2); }
.legal ul { padding-left: 1.2em; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--ink); }
.legal dl { margin-top: 18px; border-top: 1px solid var(--ink); }
.legal dl > div { display: grid; grid-template-columns: 180px 1fr; gap: 4px 24px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.legal dt { color: var(--ink-2); font-size: 15px; }
.legal dd { font-weight: 500; }
@media (max-width: 560px) { .legal dl > div { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0;
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(8, 12, 11, .97); color: #fff;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}
.lightbox::backdrop { background: rgba(8, 12, 11, .97); }
.lightbox[open] { animation: lb-in .3s var(--ease); }
@keyframes lb-in { from { opacity: 0; } }
.lightbox__figure {
  position: absolute; inset: 72px 96px 96px;
  display: flex; align-items: center; justify-content: center;
}
.lightbox__img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  opacity: 0; transition: opacity .3s;
  user-select: none; -webkit-user-drag: none;
}
.lightbox__img.is-loaded { opacity: 1; }
/* načítání fotky na pomalém připojení */
.lightbox__figure::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 120px; height: 2px; margin-left: -60px;
  background: linear-gradient(90deg, transparent, var(--edge-3), transparent) 0 0 / 50% 100% no-repeat;
  animation: loading 1.1s linear infinite;
  opacity: 0; transition: opacity .2s;
}
.lightbox__figure:has(.lightbox__img:not(.is-loaded))::after { opacity: 1; transition-delay: .3s; }
@keyframes loading { from { background-position: -100% 0; } to { background-position: 200% 0; } }
.lightbox__btn {
  position: absolute; z-index: 2;
  display: grid; place-items: center; width: 56px; height: 56px; padding: 0;
  background: none; border: 0; color: #fff; cursor: pointer; opacity: .75;
  transition: opacity .2s;
}
.lightbox__btn:hover { opacity: 1; }
.lightbox__close { top: 10px; right: 14px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 96px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 32px;
  font-size: 15.5px;
}
.lightbox__count { color: rgba(255, 255, 255, .6); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* --------------------------------------------------------------------------
   Animace
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0; transform: translateY(18px);
    transition: opacity .75s var(--ease), transform .75s var(--ease);
    transition-delay: var(--d, 0s);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  .js .hero__eyebrow, .js .hero__title, .js .hero__lead, .js .hero__actions {
    animation: rise 1s var(--ease) both;
  }
  .js .hero__title { animation-delay: .08s; }
  .js .hero__lead { animation-delay: .18s; }
  .js .hero__actions { animation-delay: .26s; }
  .js .hero__media img { animation: pane 1.4s var(--ease) .1s both; }
  .js .hero__media::before { animation: rise 1s var(--ease) .5s both; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes pane { from { clip-path: inset(0 0 0 100%); transform: scale(1.06); } to { clip-path: inset(0 0 0 0); transform: none; } }

/* --------------------------------------------------------------------------
   Responzivita
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .nav { gap: 28px; }
  .nav__links { gap: 24px; }
  .nav__phone { padding-left: 28px; }
}

@media (max-width: 900px) {
  :root { --header: 64px; }
  body { font-size: 16.5px; }

  .nav { display: none; }
  .header__mobile { display: flex; }
  .brand__mark { width: 30px; height: 30px; }
  .brand__name { font-size: 19px; }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__text { grid-column: 1; padding: 44px var(--gutter) 48px; }
  .hero__eyebrow { margin-bottom: 22px; font-size: 12px; }
  .hero__title { font-size: clamp(2.5rem, 10.5vw, 4rem); }
  .hero__lead { margin-top: 22px; }
  .hero__actions { margin-top: 30px; }
  .hero__media { grid-column: 1; aspect-ratio: 4 / 3; }
  .hero__media::before { width: 100%; height: 5px; bottom: auto; background: linear-gradient(90deg, #1C4741, #5E978C 28%, #D3E8E1 50%, #5E978C 72%, #1C4741); }

  .facts__list { grid-template-columns: 1fr; }
  .fact { padding: 18px 0; border-left: 0; border-top: 1px solid var(--line); }
  .fact:first-child { border-top: 0; }

  .section-head { grid-template-columns: 1fr; align-items: start; }
  .section-head p { font-size: 17px; }

  .service { grid-template-columns: 1fr; padding: 26px 0 30px; }

  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 36vw; gap: 8px; }
  .g--h2 { grid-row: span 1; }

  .about__grid { grid-template-columns: 1fr; row-gap: 40px; }
  .about__body { padding-top: 0; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }

  .lightbox__figure { inset: 64px 0 112px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 20px; transform: none; }
  .lightbox__prev { left: 8px; }
  .lightbox__next { right: 8px; }
  .lightbox__bar { bottom: 76px; height: auto; padding: 0 20px; font-size: 14.5px; }
}

@media (max-width: 560px) {
  .hero__actions .btn { width: 100%; justify-content: center; }
  .gallery { grid-auto-rows: 44vw; }
  .services__note { padding: 22px 20px; font-size: 17px; }
  .contact__list > div { grid-template-columns: 1fr; gap: 2px; }
  .form { grid-template-columns: 1fr; padding: 24px 20px; }
  .form__foot .btn { width: 100%; justify-content: center; }
  .map { height: auto; }
  .map iframe { height: 360px; }
  .map__card { position: static; max-width: none; padding: 22px var(--gutter) 26px; box-shadow: none; }
  .footer__grid { grid-template-columns: 1fr; }
}
