:root {
  --ink: #171512;
  --ink-soft: #454039;
  --ivory: #f4f0e8;
  --paper: #fffdf8;
  --walnut: #5b3928;
  --walnut-dark: #342119;
  --brass: #b58b3b;
  --brass-ink: #8a6210;
  --line: rgba(23, 21, 18, 0.14);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --shell: min(1240px, calc(100vw - 48px));
  --radius: 2px;
  --header-h: 86px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
/* bez tohoto přebije `display: block` výše atribut hidden (druhé fotky v nabídce
   se pak stahovaly i renderovaly, jen je zakrýval overflow kontejneru) */
img[hidden] { display: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.shell-narrow { width: min(760px, calc(100vw - 48px)); margin-inline: auto; }
.section { padding: clamp(84px, 10vw, 150px) 0; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--brass-ink);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .19em;
  line-height: 1.2;
  text-transform: uppercase;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.03;
}
h1 { font-size: clamp(48px, 6.4vw, 94px); }
h2 { font-size: clamp(42px, 5vw, 72px); }
h3 { line-height: 1.25; }
.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--brass-ink); color: #fff; }
.button-primary:hover { background: #755310; }
.button-light { background: var(--paper); color: var(--ink); }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  font-size: 14px;
  font-weight: 700;
}
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, .94);
}
/* Blur přes pseudo-element: backdrop-filter přímo na headeru dělá z headeru
   containing block a fixní mobilní menu se pak sroluje do výšky headeru. */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  backdrop-filter: blur(18px);
}
.header-inner {
  display: flex;
  min-height: var(--header-h);
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.site-brand img { width: 238px; height: auto; }
.primary-menu { display: flex; align-items: center; gap: 36px; }
.primary-menu a { font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.primary-menu a:not(.nav-cta):hover { color: var(--brass); }
.primary-menu .nav-cta { border: 1px solid var(--ink); padding: 11px 18px; }
.primary-menu .nav-cta:hover { background: var(--ink); color: #fff; }
.menu-toggle { display: none; width: 48px; height: 48px; border: 0; background: transparent; padding: 12px; }
.menu-toggle > span:not(.screen-reader-text) { display: block; width: 100%; height: 1px; margin: 6px 0; background: var(--ink); }

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(58px, 7vw, 104px) 0 clamp(84px, 9vw, 130px);
  background: var(--ivory);
}
.hero::before {
  position: absolute;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(181, 139, 59, .25);
  border-radius: 50%;
  content: '';
  right: -270px;
  top: -260px;
}
.hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(48px, 8vw, 110px); }
.hero-copy { position: relative; z-index: 2; }
.hero h1 em { display: block; color: var(--walnut); font-weight: 400; }
.hero-lead { max-width: 520px; margin: 30px 0 34px; color: var(--ink-soft); font-size: 19px; }
.hero-actions { display: flex; align-items: center; gap: 28px; }
.hero-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px; margin: 58px 0 0; max-width: 420px; }
.hero-details div { border-top: 1px solid var(--line); padding-top: 14px; }
.hero-details dt { color: #7b746b; font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.hero-details dd { margin: 5px 0 0; font-family: var(--serif); font-size: 18px; }
.hero-visual { position: relative; display: flex; min-height: 610px; align-items: center; }
.before-after {
  --reveal: 50%;
  position: relative; width: 100%; max-height: 650px; overflow: hidden; aspect-ratio: 4 / 4.45;
  background: #d8d2c8; box-shadow: 0 28px 80px rgba(52, 33, 25, .18); cursor: ew-resize;
  outline: 1px solid rgba(91, 58, 43, .08); touch-action: pan-y; user-select: none;
}
.before-after:focus-visible { outline: 3px solid var(--brass); outline-offset: 5px; }
.before-after-image { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.before-after-after { position: absolute; inset: 0; }
.before-after-before {
  position: absolute; z-index: 1; overflow: hidden; inset: 0;
  clip-path: inset(0 calc(100% - var(--reveal)) 0 0);
  will-change: clip-path;
}
.before-after-label {
  position: absolute; z-index: 5; bottom: 18px; padding: 8px 11px;
  background: rgba(23, 21, 18, .86); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .18em;
  pointer-events: none;
}
.before-after-label-before { left: 18px; }
.before-after-label-after { right: 18px; background: var(--brass); }
.before-after-divider {
  position: absolute; z-index: 6; width: 2px; inset: 0 auto 0 var(--reveal);
  background: rgba(255, 255, 255, .96); box-shadow: 0 0 0 1px rgba(23, 21, 18, .12);
  pointer-events: none; transform: translateX(-1px); will-change: left;
}
.before-after-divider i {
  position: absolute; display: grid; width: 46px; height: 46px; place-items: center; left: 50%; top: 50%;
  border: 2px solid #fff; border-radius: 50%; background: var(--walnut); color: #fff;
  box-shadow: 0 8px 26px rgba(23, 21, 18, .25); font-style: normal; font-size: 18px; transform: translate(-50%, -50%);
}
.before-after.is-intro .before-after-before { transition: clip-path .9s cubic-bezier(.4, 0, .2, 1); }
.before-after.is-intro .before-after-divider, .before-after.is-intro .ba-hint { transition: left .9s cubic-bezier(.4, 0, .2, 1), opacity .45s ease; }
.ba-hint {
  position: absolute; z-index: 7; left: var(--reveal); top: calc(50% + 42px);
  padding: 7px 13px; border-radius: 999px; background: rgba(23, 21, 18, .74); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
  opacity: 0; pointer-events: none; transform: translateX(-50%); transition: opacity .45s ease;
}
.before-after.show-hint .ba-hint { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .before-after.is-intro .before-after-before, .before-after.is-intro .before-after-divider { transition: none; }
}


.section-heading { margin-bottom: clamp(42px, 6vw, 78px); }
.split-heading { display: grid; grid-template-columns: 1.5fr .7fr; align-items: end; gap: 70px; }
.split-heading p:last-child { max-width: 420px; margin: 0 0 8px; color: var(--ink-soft); }
.service-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 46px);
  border-top: 1px solid var(--line); padding-top: clamp(28px, 3vw, 46px);
}
.service-card { display: block; color: inherit; text-decoration: none; }
.service-image { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; background: #efe8dc; }
.service-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.service-card:hover .service-image img, .service-card:focus-visible .service-image img { transform: scale(1.045); }
.service-arrow {
  position: absolute; right: 14px; bottom: 14px; display: grid; width: 46px; height: 46px; place-items: center;
  border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 19px;
  opacity: 0; transform: translateY(12px); transition: opacity .3s ease, transform .3s ease;
}
.service-card:hover .service-arrow, .service-card:focus-visible .service-arrow { opacity: 1; transform: none; }
.service-index { display: block; margin-top: 22px; color: var(--brass-ink); font-family: var(--serif); font-size: 14px; letter-spacing: .1em; }
.service-card h3 { margin: 6px 0 12px; font-family: var(--serif); font-size: clamp(24px, 2.5vw, 33px); font-weight: 400; transition: color .25s ease; }
.service-card:hover h3, .service-card:focus-visible h3 { color: var(--brass-ink); }
.service-card p { max-width: 34ch; margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.62; }

.process-section { background: var(--ivory); }
.process-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 2.8vw, 42px);
  margin: 0; padding: 0; list-style: none;
}
.process-step {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brass);
  padding: clamp(26px, 2.8vw, 38px) clamp(22px, 2.4vw, 34px) clamp(30px, 3vw, 44px);
  box-shadow: 0 22px 60px rgba(52, 33, 25, .08);
}
.process-step:not(:last-child)::after {
  content: '→';
  position: absolute; z-index: 2; top: 50%; right: calc(clamp(22px, 2.8vw, 42px) / -2);
  display: grid; width: 36px; height: 36px; place-items: center;
  border-radius: 50%; background: var(--walnut); color: #fff;
  box-shadow: 0 6px 18px rgba(23, 21, 18, .22);
  font-size: 15px; line-height: 1;
  transform: translate(50%, -50%);
}
.process-index {
  display: block; margin-bottom: 16px;
  font-family: var(--serif); font-size: clamp(46px, 4.4vw, 64px); line-height: .9;
  color: #d8c7a2;
}
@supports (-webkit-text-stroke: 1px black) {
  .process-index { color: transparent; -webkit-text-stroke: 1.1px var(--brass); }
}
.process-step h3 { margin: 0 0 12px; font-family: var(--serif); font-size: clamp(22px, 2.2vw, 29px); font-weight: 400; }
.process-step p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.62; }
.process-step a { border-bottom: 1px solid var(--brass); white-space: nowrap; }
.process-note {
  margin: clamp(40px, 5vw, 62px) 0 0;
  padding: clamp(26px, 3vw, 40px) clamp(24px, 3vw, 42px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
}
.process-note-title {
  margin: 0 0 20px;
  color: var(--brass-ink); font-size: 12px; font-weight: 750; letter-spacing: .19em;
  line-height: 1.2; text-transform: uppercase;
}
.process-note-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(22px, 3vw, 42px); }
.process-note-grid h4 { margin: 0 0 8px; font-family: var(--serif); font-size: 19px; font-weight: 400; letter-spacing: .01em; }
.process-note-grid p { margin: 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.62; }
.contact-hint { max-width: 480px; margin: 18px 0 0; color: var(--ink-soft); font-size: 15px; line-height: 1.62; }
.contact-hint a, .form-note a { border-bottom: 1px solid var(--brass); }
.form-note { margin: 18px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.6; }

.transformations-section { background: var(--ink); color: #fff; }
.transformations-section .eyebrow, .sale-copy .eyebrow { color: var(--brass); }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.transformations-section .text-link { color: #ddd5c8; }
.project-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(24px, 3vw, 42px); }
.project-card { grid-column: span 4; }
.project-card-featured { grid-column: span 8; }
/* podklad pod dosud nenačtenou fotkou — světlý jako u sesterských mřížek,
   tmavý dělal na krémové stránce stěnu černých obdélníků */
.project-image { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; background: var(--ivory); }
.project-card-featured .project-image { aspect-ratio: 16 / 10; }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.project-image:hover img { transform: scale(1.035); }
.project-arrow {
  position: absolute; display: grid; width: 50px; height: 50px; place-items: center; border-radius: 50%;
  background: var(--paper); color: var(--ink); right: 16px; top: 16px; font-size: 20px; transform: translateY(-72px); transition: transform .25s ease;
}
.project-image:hover .project-arrow { transform: translateY(0); }
.project-meta { display: flex; justify-content: space-between; margin-top: 18px; color: #aaa298; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.project-card h3, .project-card h2 { margin: 9px 0 0; font-family: var(--serif); font-size: clamp(21px, 2.1vw, 31px); font-weight: 400; line-height: 1.2; }
.project-card h3 a:hover, .project-card h2 a:hover { color: var(--brass); }
/* odsazení je psané pro tři sloupce; ve dvousloupcovém rozsahu (761–1040 px)
   trefovalo střed řádku a jedna karta visela o 30 px níž než sousední */
@media (min-width: 1041px) {
  .project-card:nth-child(n+4) { margin-top: 30px; }
}

.sale-section { background: var(--ivory); }
.sale-panel { display: grid; grid-template-columns: .72fr 1.28fr; min-height: 620px; background: var(--walnut-dark); color: #fff; }
.sale-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(42px, 6vw, 90px); }
.sale-copy h2 { margin-bottom: 28px; }
.sale-copy > p:not(.eyebrow) { max-width: 410px; margin: 0 0 36px; color: #d8cdc5; }
.sale-images { display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: 1.3fr 1fr; gap: 6px; min-height: 620px; overflow: hidden; }
.sale-images img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sale-images img:nth-child(-n+2) { grid-column: span 3; }
.sale-images img:nth-child(n+3) { grid-column: span 2; }

.offer-section { padding-top: 24px; }
.offer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(24px, 3vw, 42px); }
.offer-card { margin: 0; }
.offer-image { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--ivory); }
.offer-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.offer-card:hover .offer-image img { transform: scale(1.04); }
.offer-count {
  position: absolute; top: 12px; right: 12px; padding: 6px 13px; border-radius: 999px;
  background: rgba(30, 25, 20, .82); color: #fff; font-size: 12px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase;
}
.offer-card figcaption { display: grid; gap: 3px; margin-top: 14px; }
.offer-title { font-family: var(--serif); font-size: 20px; line-height: 1.25; }
.offer-note { color: var(--ink-soft); font-size: 13.5px; }
.offer-cta { max-width: 640px; margin: clamp(56px, 8vw, 96px) auto 0; text-align: center; }
.offer-cta h2 { margin-bottom: 14px; }
.offer-cta p { margin: 0 0 26px; color: var(--ink-soft); }

.sale-images img, .single-gallery img, .offer-image img { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 999; display: flex; align-items: center; justify-content: center;
  background: rgba(15, 14, 12, .95); opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility .22s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-open, .lightbox-open body { overflow: hidden; }
.lightbox-figure { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: min(1400px, 90vw); margin: 0; }
.lightbox-figure img { max-width: 100%; max-height: 82vh; width: auto; height: auto; box-shadow: 0 30px 80px rgba(0,0,0,.55); cursor: default; }
.lightbox-figure figcaption { max-width: 640px; color: #d8cdc5; font-size: 14px; line-height: 1.5; text-align: center; }
.lightbox button {
  position: absolute; z-index: 2; display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%;
  background: transparent; color: #fff; font-size: 19px; cursor: pointer; transition: border-color .2s, color .2s;
}
.lightbox button:hover, .lightbox button:focus-visible { border-color: var(--brass); color: var(--brass); outline: 0; }
.lightbox-close { top: 22px; right: 22px; }
.lightbox-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 22px; top: 50%; transform: translateY(-50%); }
.lightbox-counter {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  margin: 0; color: #aaa298; font-size: 12px; font-weight: 700; letter-spacing: .14em;
}
@media (max-width: 760px) {
  .lightbox button { width: 42px; height: 42px; font-size: 17px; }
  .lightbox-close { top: 14px; right: 14px; }
  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }
  .lightbox-figure { max-width: 94vw; }
  .lightbox-figure img { max-height: 74vh; }
  .lightbox-figure figcaption { font-size: 13px; }
}

.contact-section { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(60px, 9vw, 140px); }
.contact-copy { position: sticky; top: 130px; align-self: start; }
.contact-copy h2 { margin-bottom: 28px; }
.contact-lead { max-width: 480px; color: var(--ink-soft); font-size: 18px; }
.contact-lead a { border-bottom: 1px solid var(--brass); }
.contact-copy address { margin-top: 50px; color: var(--ink-soft); font-style: normal; }
.contact-form { padding: clamp(32px, 5vw, 58px); background: var(--ivory); }
.contact-form label { display: grid; gap: 8px; margin-bottom: 20px; font-size: 12px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; border: 0; border-bottom: 1px solid #bdb4a8; border-radius: 0; outline: 0; background: transparent;
  color: var(--ink); font-size: 17px; font-weight: 400; letter-spacing: 0; text-transform: none; padding: 10px 0 13px;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-color: var(--brass); box-shadow: 0 1px 0 var(--brass); }
.form-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.contact-form .button { margin-top: 14px; cursor: pointer; }
.form-message { min-height: 24px; margin: 16px 0 0; color: var(--walnut); font-size: 14px; }
.form-message.is-success { color: #2e6b2e; font-weight: 700; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; margin: 0; }
.contact-form .form-file input[type='file'] { border-bottom: 0; padding: 10px 0 0; font-size: 14px; color: var(--ink-soft); }
.form-file input[type='file']::file-selector-button {
  margin-right: 12px; padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--ivory); color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}

.site-footer { background: #0f0e0c; color: #cbc4bb; padding: 76px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.35fr .8fr .8fr; gap: 70px; }
.footer-grid p { margin: 0; }
.footer-kicker, .footer-label { color: var(--brass); font-size: 11px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.footer-title { margin: 10px 0 15px !important; color: #fff; font-family: var(--serif); font-size: 31px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.12); margin-top: 60px; padding-top: 24px; font-size: 12px; }
.preview-note { color: var(--brass); }

.archive-hero { padding: 90px 0 70px; background: var(--ivory); }
.archive-hero h1 { max-width: 940px; font-size: clamp(48px, 7vw, 88px); }
.archive-grid { color: var(--ink); }
.archive-grid .project-meta { color: #77716a; }
.single-project { padding-bottom: 120px; }
.single-hero { padding: 72px 0 54px; }
.single-hero h1 { max-width: 1060px; font-size: clamp(44px, 6vw, 78px); }
.back-link { display: inline-block; margin-bottom: 52px; color: var(--ink-soft); font-size: 13px; font-weight: 700; }
.single-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.single-gallery figure { overflow: hidden; min-height: 520px; margin: 0; background: var(--ivory); }
.single-gallery .gallery-lead { grid-column: 1 / -1; min-height: 720px; }
.single-gallery img { width: 100%; height: 100%; object-fit: cover; }
.entry-content { padding-top: 62px; font-size: 18px; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content a { color: var(--walnut); text-decoration: underline; }
.entry-content .wp-block-gallery { display: none; }
.standard-page { padding-bottom: 110px; }

@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 760px; }
  .hero-visual { min-height: 650px; }
  .project-card, .project-card-featured { grid-column: span 6; }
  .project-card-featured .project-image { aspect-ratio: 4 / 5; }
  .process-note-grid { grid-template-columns: 1fr 1fr; }
  .sale-panel { grid-template-columns: 1fr; }
  .sale-copy { min-height: 460px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-copy { position: static; max-width: 720px; }

  /* Jakmile se hero přeskládá do jednoho sloupce, dekorativní kruh přejde
     napříč nadpisem (na 320 px přímo přes slovo „designový“). */
  .hero::before { top: -380px; right: -340px; }

  /* Mobilní menu už od 1040 px. Do 1040 px se vodorovná navigace lámala na dva
     řádky („JAK TO / PROBÍHÁ“) — postihovalo to iPad na výšku i nemaximalizované
     okno notebooku. Hamburger dřív naskakoval až na 760 px. */
  .menu-toggle { display: block; }
  .primary-menu {
    position: fixed; z-index: 99; display: flex; inset: var(--header-h) 0 0; flex-direction: column;
    align-items: stretch; gap: 0;
    background: var(--paper); padding: 36px 24px; visibility: hidden; clip-path: inset(0 0 0 100%);
    transition: clip-path .3s ease, visibility .3s;
  }
  .primary-menu.is-open { visibility: visible; clip-path: inset(0); }
  .primary-menu a {
    border-bottom: 1px solid var(--line); padding: 20px 0; font-family: var(--serif);
    font-size: 28px; font-weight: 400; letter-spacing: -.02em; text-transform: none;
  }
  .primary-menu .nav-cta { border: 0; border-bottom: 1px solid var(--line); padding: 20px 0; }
}

@media (max-width: 760px) {
  :root { --shell: min(100% - 32px, 1240px); --header-h: 72px; }
  .hero::before { display: none; }
  .shell-narrow { width: min(100% - 32px, 760px); }
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .site-brand img { width: 190px; }
  .hero { padding-top: 52px; }
  .hero-grid { gap: 42px; }
  .hero h1 { font-size: clamp(43px, 13vw, 62px); }
  .hero-lead { margin: 24px 0 28px; font-size: 17px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; }
  .hero-details { gap: 18px; margin-top: 42px; }
  /* šířku sloupců řeší mřížka výš; `width: 50%` je zbytek po flexu a udělal by
     z každého sloupce polovinu jeho vlastního tracku (telefon se pak láme) */
  .hero-details div { min-width: 0; }
  .hero-visual { min-height: 475px; }
  .before-after { aspect-ratio: 4 / 4.7; }
  .before-after-divider i { width: 42px; height: 42px; }
  .split-heading { grid-template-columns: 1fr; gap: 24px; }
  .service-grid { grid-template-columns: 1fr; gap: 26px; }
  .service-card { display: grid; grid-template-columns: 38% 1fr; align-items: center; gap: 20px; }
  .service-image { aspect-ratio: 1 / 1; }
  .service-arrow { display: none; }
  .service-index { margin-top: 0; font-size: 13px; }
  .service-card h3 { margin: 4px 0 8px; font-size: 24px; }
  .service-card p { font-size: 14px; line-height: 1.55; }
  .process-grid { grid-template-columns: 1fr; gap: 40px; }
  .process-step:not(:last-child)::after {
    content: '↓';
    top: auto; right: auto; bottom: -20px; left: 50%;
    width: 32px; height: 32px; font-size: 14px;
    transform: translate(-50%, 50%);
  }
  .process-note { padding: 22px 20px; }
  .process-note-grid { grid-template-columns: 1fr; gap: 20px; }
  .section-heading-row { align-items: flex-start; flex-direction: column; }
  .project-grid { grid-template-columns: 1fr; gap: 42px; }
  .project-card, .project-card-featured { grid-column: auto; margin-top: 0 !important; }
  .project-image, .project-card-featured .project-image { aspect-ratio: 4 / 4.6; }
  .sale-copy { min-height: 420px; padding: 42px 28px; }
  .sale-images { min-height: 520px; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 1fr); gap: 4px; }
  .sale-images img:nth-child(-n+2), .sale-images img:nth-child(n+3) { grid-column: auto; }
  .sale-images img:last-child { grid-column: 1 / -1; }
  .contact-form { padding: 30px 22px; }
  .form-columns { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 38px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 8px; }
  .single-gallery { grid-template-columns: 1fr; gap: 16px; }
  .single-gallery .gallery-lead { grid-column: auto; min-height: 520px; }
  .single-gallery figure { min-height: 420px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Naše proměny — galerie před/po */
.archive-lead { max-width: 780px; margin: 14px 0 0; color: var(--ink-soft, #5b4a3f); }
.ba-gallery-section { padding-top: 0; }
.ba-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.ba-card { aspect-ratio: 1 / 1; max-height: none; box-shadow: 0 14px 40px rgba(52, 33, 25, .14); }
.ba-card .before-after-label { bottom: 12px; padding: 6px 9px; }
.ba-card .before-after-label-before { left: 12px; }
.ba-card .before-after-label-after { right: 12px; }
.ba-card .before-after-divider i { width: 36px; height: 36px; font-size: 14px; }
.ba-item { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
/* Stejné názvy realizací jsou na /nase-promeny/ dvakrát — nahoře u posuvníků
   a dole v mřížce. Musí být sázené stejným písmem, jinak to působí, jako by se
   na stránce míchaly dva weby. */
.ba-caption { margin: 0; font-family: var(--serif); font-size: 19px; font-weight: 400; letter-spacing: .01em; }
.ba-caption a {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  color: inherit; text-decoration: none; opacity: .85;
}
.ba-caption a:hover, .ba-caption a:focus-visible { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.category-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 34px; }
.category-filter a {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px;
  border: 1px solid rgba(91, 58, 43, .22); color: var(--walnut); text-decoration: none;
  font-size: 14px; font-weight: 600; background: rgba(255, 255, 255, .55);
}
.category-filter a:hover { border-color: var(--brass-ink); color: var(--brass-ink); }
.category-filter a span { font-size: 12px; font-weight: 700; color: var(--brass-ink); }
@media (max-width: 900px) {
  .ba-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 560px) {
  .ba-grid { grid-template-columns: 1fr; gap: 18px; }
  .ba-card { aspect-ratio: 4 / 3.4; }
}
