/* Truhlářství Martin Černý
   VOICE   – přátelský, jednoduchý, jasný (Apple styl: hodně vzduchu, málo slov)
   IDEA    – hoblina: jemná oranžová křivka pod nadpisem a v logu
   PICTURE – skutečné fotografie realizací ve velkých zaoblených rámech
   COLOUR  – bílá, světlá béžová pro karty, oranžová jen jako akcent, tmavě šedá
   TYPE    – DM Sans: tučné nadpisy s těsným prostrkáním, klidný text
   ------------------------------------------------------------------ */

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dmsans.woff") format("woff");
  font-weight: 300 800;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --card: #f7f3ed;
  --card-2: #efe8dd;
  --ink: #1f1c19;
  --ink-2: #625a52;
  --line: #ebe4d9;
  --orange: #e08a2e;
  --orange-ink: #a85a14;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --section: clamp(96px, 13vw, 160px);
  --r: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.125rem/1.6 var(--font);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--orange-ink); outline-offset: 3px; border-radius: 8px; }

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.8vw, 5.25rem); letter-spacing: -0.03em; line-height: 1.04; }
h2 { font-size: clamp(2.2rem, 5.4vw, 4rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.25; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
/* hra s tloušťkou: tučné + tenké slovo v nadpisu */
h1 { font-weight: 700; }
h2 { font-weight: 650; }
h1 em { font-style: normal; font-weight: 300; letter-spacing: -0.02em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0 0; }
.center { text-align: center; }
.sub { margin: 20px auto 0; max-width: 34em; font-size: clamp(1.125rem, 1.8vw, 1.375rem); line-height: 1.5; color: var(--ink-2); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 999px; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* Tlačítka */
.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: 10px; border: 0;
  font: 600 1.0625rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .25s, color .25s, transform .25s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--orange); color: var(--ink); }
.btn--primary:hover { background: #d27c22; }
.btn--soft { background: var(--card); }
.btn--soft:hover { background: var(--card-2); }
.link { color: var(--orange-ink); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Hlavička */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -0.03em; font-size: 1.125rem; }
.mark { width: 51px; height: auto; fill: var(--orange); flex: none; transition: transform .4s var(--ease); }
.brand:hover .mark { transform: rotate(-6deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text small { font-size: .8125rem; font-weight: 400; letter-spacing: 0; color: var(--ink-2); margin-top: 1px; }
.js .mark { animation: plane .9s .2s var(--ease) both; }
@keyframes plane { from { opacity: 0; transform: translateX(-14px) rotate(-8deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

.nav-list { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; font-size: .9375rem; }
.nav-list a { text-decoration: none; color: var(--ink-2); transition: color .2s; }
.nav-list a:hover { color: var(--ink); }
.nav-list .btn { min-height: 38px; padding: 0 18px; font-size: .9375rem; color: var(--ink); }
.nav-toggle { display: none; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 12px; width: 20px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle span:nth-child(1) { top: 18px; } .nav-toggle span:nth-child(2) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 64px; left: 0; right: 0; height: calc(100dvh - 64px); background: #fff; display: none; }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter); }
  .nav-list a { display: block; padding: 14px 0; font-size: 1.75rem; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav-list li:last-child a { margin-top: 24px; border: 0; width: 100%; min-height: 54px; font-size: 1.0625rem; }
}

/* Úvod */
.hero { padding: clamp(64px, 10vw, 128px) 0 0; text-align: center; }
.hero .eyebrow { font-weight: 600; color: var(--orange-ink); margin-bottom: 18px; font-size: 1.0625rem; }
.squiggle { position: relative; display: inline-block; white-space: nowrap; }
.squiggle svg { position: absolute; left: -2%; right: -2%; bottom: -.16em; width: 104%; height: .32em; overflow: visible; }
.squiggle path { fill: none; stroke: var(--orange); stroke-width: 7; stroke-linecap: round; }
.js .squiggle path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1s .6s var(--ease) forwards; }
.hero-photo { margin: clamp(56px, 8vw, 88px) auto 0; max-width: 1240px; padding: 0 var(--gutter); }
.hero-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); background: var(--card); }
@media (max-width: 600px) { .hero-photo img { aspect-ratio: 4 / 3.4; border-radius: 18px; } }

/* O nás */
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: clamp(48px, 6vw, 72px) 0 0; padding: 0; list-style: none; }
.points li { padding: 28px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); transition: border-color .3s, transform .4s var(--ease); }
.points li:hover { border-color: var(--orange); transform: translateY(-3px); }
.points .ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--card); color: var(--orange-ink); margin-bottom: 18px; }
.points .ico svg { width: 22px; height: 22px; }
.points h3 { font-size: 1.1875rem; }
.area { margin: 28px auto 0; max-width: 36em; color: var(--ink-2); }
@media (max-width: 820px) { .points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .points { gap: 10px; } .points li { padding: 20px; border-radius: 18px; } .points h3 { font-size: 1.0625rem; } }

/* Služby */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: clamp(48px, 6vw, 72px) 0 0; padding: 0; list-style: none; }
.service { border-radius: var(--r); background: var(--card); overflow: hidden; display: flex; flex-direction: column; }
.service h3 { padding: 22px 24px 4px; }
.service img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-top: auto; transition: transform .8s var(--ease); }
.service .ph { overflow: hidden; margin: 14px 14px 14px; border-radius: 14px; }
.service:hover img { transform: scale(1.04); }
.service--wide { grid-column: span 2; }
.service--wide img { aspect-ratio: 8 / 3; }
@media (max-width: 820px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service--wide img { aspect-ratio: 4 / 3; }
  .service--wide:first-child { grid-column: 1 / -1; }
  .service--wide:first-child img { aspect-ratio: 16 / 9; }
  .service--wide:last-child { grid-column: 1 / -1; }
  .service--wide:last-child img { aspect-ratio: 16 / 9; }
}
@media (max-width: 480px) { .services { gap: 10px; } .service h3 { padding: 16px 16px 2px; font-size: 1.0625rem; } .service .ph { margin: 10px; border-radius: 10px; } .service { border-radius: 18px; } }

/* Spolupráce */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: clamp(48px, 6vw, 72px) 0 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; padding: 26px 22px; border-radius: var(--r); background: var(--card); }
.steps li::before {
  content: counter(s); display: grid; place-items: center;
  width: 40px; height: 40px; margin-bottom: 18px; border-radius: 50%;
  background: var(--orange); font-weight: 700; font-size: 1.0625rem;
}
.steps p { font-weight: 500; line-height: 1.4; }
.note { margin: 28px auto 0; max-width: 34em; font-size: 1.1875rem; color: var(--ink-2); }
.note strong { color: var(--ink); font-weight: 600; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr; gap: 10px; } .steps li { display: flex; align-items: center; gap: 18px; padding: 18px 20px; border-radius: 18px; } .steps li::before { margin: 0; flex: none; } }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: clamp(48px, 6vw, 72px) 0 0; padding: 0; list-style: none; }
.gallery li[hidden] { display: none; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--card); cursor: zoom-in; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .8s var(--ease); }
.gallery button:hover img { transform: scale(1.04); }
.gallery-more { display: flex; justify-content: center; margin-top: 32px; }
.gallery-more[hidden] { display: none; }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .gallery button { border-radius: 12px; } }

.lightbox {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0;
  background: #141210; color: #fff; overflow: hidden;
}
.lightbox::backdrop { background: #141210; }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: fade .25s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.lb-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px 24px; }
.lb-count { font-size: .9375rem; color: #bdb4a9; font-variant-numeric: tabular-nums; }
.lb-track {
  display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  overscroll-behavior: contain; scrollbar-width: none; outline: none; height: 100%; min-height: 0;
}
.lb-track::-webkit-scrollbar { display: none; }
.lb-slide { flex: 0 0 100%; min-width: 0; height: 100%; margin: 0; scroll-snap-align: center; scroll-snap-stop: always; display: flex; align-items: center; justify-content: center; padding: 4px clamp(0px, 6vw, 88px); box-sizing: border-box; }
.lb-slide img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; user-select: none; -webkit-user-drag: none; }
.lb-btn { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; transition: background-color .2s; }
.lb-btn:hover { background: rgba(255,255,255,.18); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-thumbs { display: flex; gap: 6px; overflow-x: auto; padding: 12px 16px 18px; scrollbar-width: none; }
.lb-thumbs::-webkit-scrollbar { display: none; }
.lb-thumb { flex: none; width: 64px; height: 48px; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: #2a2622; cursor: pointer; opacity: .45; outline: 2px solid transparent; outline-offset: 2px; transition: opacity .2s, outline-color .2s; }
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lb-thumb:hover { opacity: .8; }
.lb-thumb[aria-current] { opacity: 1; outline-color: var(--orange); }
@media (max-width: 640px) {
  .lb-prev, .lb-next { display: none; }
  .lb-slide img { border-radius: 0; }
  .lb-thumb { width: 52px; height: 40px; }
}

/* Materiály */
.materials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: clamp(48px, 6vw, 72px) 0 0; }
.material { border-radius: var(--r); background: var(--card); overflow: hidden; }
.material img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.material div { padding: 28px 30px 32px; }
.material h3 { font-size: 1.5rem; margin-bottom: 12px; }
.material p { color: var(--ink-2); }
@media (max-width: 760px) { .materials { grid-template-columns: 1fr; } .material div { padding: 22px 22px 26px; } }

/* Kontakt */
.contact-box { margin: clamp(48px, 6vw, 72px) 0 0; padding: clamp(32px, 6vw, 72px) clamp(20px, 5vw, 64px); border-radius: 20px; background: var(--card); text-align: center; }
.big { display: block; width: fit-content; margin: 0 auto; font-size: clamp(1.9rem, 5.4vw, 3.4rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; text-decoration: none; white-space: nowrap; }
.big--mail { font-size: clamp(1.1rem, 3vw, 1.75rem); letter-spacing: -0.02em; margin-top: 6px; white-space: normal; overflow-wrap: anywhere; }
.big:hover { color: var(--orange-ink); }
.contact-box .btn--primary { background: var(--orange); }
.contact-box .btn--soft { background: #fff; }
.details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 40px 0 0; padding: 32px 0 0; border-top: 1px solid var(--card-2); text-align: left; }
.details dt { font-size: .875rem; color: var(--ink-2); margin-bottom: 4px; }
.details dd { margin: 0; font-weight: 500; }
.details a { color: var(--orange-ink); font-weight: 600; text-decoration: none; }
.details a:hover { text-decoration: underline; }
.todo { color: var(--ink-2) !important; border-bottom: 1px dashed currentColor; }
@media (max-width: 700px) { .details { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 400px) { .details { grid-template-columns: 1fr; gap: 16px; } }

/* Patička */
.site-footer { margin-top: var(--section); padding: 0 0 36px; font-size: .875rem; color: var(--ink-2); }
.footer-logo { display: flex; justify-content: center; padding-bottom: clamp(56px, 8vw, 96px); }
.footer-logo img { width: clamp(200px, 30vw, 300px); }
.footer-inner { position: relative; padding-top: 28px; }
.footer-inner::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* Jemné zobrazení při scrollu */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .squiggle path { stroke-dashoffset: 0; }
}

.points, .steps, .contact-box .details { text-align: left; }

/* Skládací metr – posouvá se při scrollu */
.ruler-wrap { overflow: hidden; margin-top: clamp(40px, 7vw, 88px); padding: 28px 0; }
.ruler { margin: 0 -3vw; height: 48px; background: var(--orange); overflow: hidden; transform: rotate(-1.6deg); box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.ruler-track { height: 100%; will-change: transform; }
.ruler-track svg { display: block; height: 100%; }
.ruler-track text { font: 600 12px "DM Sans", sans-serif; fill: var(--ink); }
@media (max-width: 600px) { .ruler { height: 40px; } }
.ruler-track .joint { stroke: rgba(31,28,25,.35); }
@media (max-width: 480px) {
  .points { grid-template-columns: 1fr; }
  .points li { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
  .points .ico { margin: 0; flex: none; width: 40px; height: 40px; }
}

.about-text { margin: clamp(36px, 5vw, 56px) auto 0; max-width: 30em; font-size: clamp(1.25rem, 2.2vw, 1.625rem); line-height: 1.5; font-weight: 400; letter-spacing: -0.015em; color: var(--ink); text-wrap: pretty; }

/* Nadpisy zarovnané vlevo – rytmus mezi sekcemi */
.h-left { text-align: left; }

/* Kdo za tím stojí – dílna a Martin */
.workshop {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px;
  align-items: end;
}
.ws-text { grid-column: 1 / 7; padding-bottom: 24px; }
.ws-text p { margin-top: 20px; font-size: clamp(1.125rem, 1.8vw, 1.375rem); line-height: 1.5; max-width: 24em; }
.ws-addr { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 1rem !important; }
.ws-addr svg { width: 18px; height: 18px; color: var(--orange-ink); flex: none; }
.ws-text .link { display: inline-block; margin-top: 24px; font-size: 1.0625rem; }
.polaroid {
  grid-column: 8 / 12; position: relative; margin: 0;
  padding: 12px 12px 0; background: #fff; border-radius: 4px;
  box-shadow: 0 1px 2px rgba(31,28,25,.08), 0 12px 32px rgba(31,28,25,.12);
  transform: rotate(2.5deg);
}
.js .polaroid[data-reveal] { transform: translateY(24px) rotate(0deg); }
.js .polaroid[data-reveal].in { transform: rotate(2.5deg); }
.polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.polaroid figcaption { padding: 12px 4px 16px; font-weight: 600; font-size: 1.0625rem; text-align: center; }
.tape {
  position: absolute; top: -14px; left: 50%; width: 96px; height: 28px; margin-left: -48px;
  background: rgba(224, 138, 46, .55); transform: rotate(-4deg);
  clip-path: polygon(3% 0, 97% 4%, 100% 50%, 96% 100%, 2% 96%, 0 50%);
}
.ws-photo { margin: 0; position: relative; }
.ws-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); }
.ws-photo--wide { grid-column: 1 / 9; margin-top: 28px; }
.ws-photo--wide img { aspect-ratio: 4 / 3; }
.ws-photo--tall { grid-column: 9 / 13; align-self: stretch; margin-top: 28px; }
.ws-photo figcaption {
  position: absolute; left: 16px; bottom: 16px; padding: 6px 12px; border-radius: 8px;
  background: rgba(255,255,255,.92); font-size: .9375rem; font-weight: 500;
}
@media (max-width: 860px) {
  .workshop { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ws-text { grid-column: 1 / -1; padding: 0; }
  .polaroid { grid-column: 1 / -1; width: min(78%, 340px); justify-self: center; margin: 28px 0 12px; }
  .ws-photo--wide { grid-column: 1 / -1; margin-top: 16px; }
  .ws-photo--tall { grid-column: 1 / -1; margin-top: 0; }
  .ws-photo--tall img { aspect-ratio: 4 / 3; object-position: 50% 60%; }
}

/* Kontakt – Martin osobně */
.person { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 28px; text-align: left; }
.person img { width: 76px; height: 76px; border-radius: 14px; object-fit: cover; }
.person span { display: flex; flex-direction: column; line-height: 1.3; color: var(--ink-2); font-size: .9375rem; }
.person strong { color: var(--ink); font-size: 1.0625rem; font-weight: 600; }

/* Služby – fotka a popisek, bez krabiček */
.service { background: none; border-radius: 0; overflow: visible; }
.service .ph { order: -1; margin: 0; border-radius: var(--r); }
.service h3 { padding: 14px 2px 0; font-size: 1.125rem; }
.services { row-gap: 36px; }
@media (max-width: 480px) { .services { row-gap: 22px; } .service .ph { margin: 0; border-radius: 12px; } .service h3 { padding: 10px 2px 0; font-size: 1rem; } }

/* Spolupráce – čistá časová osa místo karet */
.steps { gap: 0; }
.steps li { background: none; border-radius: 0; padding: 20px 20px 0 0; border-top: 2px solid var(--ink); }
.steps li + li { padding-left: 20px; }
.steps li::before {
  width: auto; height: auto; margin: 0 0 14px; border-radius: 0; background: none; display: block;
  font-size: 2.75rem; font-weight: 300; line-height: 1; letter-spacing: -0.03em; color: var(--orange-ink);
}
.steps p { font-weight: 500; font-size: 1.0625rem; }
@media (max-width: 960px) {
  .steps li, .steps li + li { display: grid; grid-template-columns: 56px 1fr; align-items: baseline; gap: 0 8px; padding: 16px 0; border-radius: 0; border-top: 1px solid var(--line); }
  .steps li:first-child { border-top: 2px solid var(--ink); }
  .steps li::before { margin: 0; font-size: 2rem; }
}
#spoluprace .note { margin-left: 0; }
@media (max-width: 820px) {
  .service--wide:last-child { grid-column: auto; }
  .service--wide:last-child img { aspect-ratio: 4 / 3; }
}

/* Služby – fotka jako tlačítko do prohlížečky */
button.ph { display: block; width: 100%; padding: 0; border: 0; background: var(--card); cursor: zoom-in; }

/* Popisek ve prohlížečce */
.lb-slide { flex-direction: column; gap: 14px; }
.lb-slide img { min-height: 0; flex: 0 1 auto; }
.lb-slide figcaption { flex: none; font-size: clamp(1rem, 1.6vw, 1.25rem); font-weight: 600; color: #fff; text-align: center; padding: 0 16px; }

/* Polaroid – černý hoblík u jména */
.polaroid figcaption { display: flex; align-items: center; justify-content: center; gap: 10px; }
.mark-ink { width: 30px; height: auto; fill: var(--ink); flex: none; }
.lb-slide:has(figcaption) img { max-height: calc(100% - 52px); }
.ws-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: inherit; }
.ws-photo .ws-open img { transition: transform .8s var(--ease); }
.ws-photo { overflow: hidden; border-radius: var(--r); }
.ws-photo:hover img { transform: scale(1.03); }
.ws-photo figcaption { pointer-events: none; }
.lightbox.single .lb-prev, .lightbox.single .lb-next, .lightbox.single .lb-thumbs, .lightbox.single .lb-count { visibility: hidden; }
.workshop { align-items: center; }

/* Úvod zarovnaný vlevo – méně „šablonový“ */
.hero { text-align: left; }
.hero .sub { margin-left: 0; }
.hero .btn-row { justify-content: flex-start; }
.hero-photo { max-width: var(--wrap); }

/* O nás – dva sloupce */
.about { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.about-since { margin-top: 14px; color: var(--ink-2); font-size: 1.0625rem; }
.about .about-text { margin: 6px 0 0; max-width: none; }
.about .area { margin: 24px 0 0; max-width: 40em; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; gap: 20px; } }

.footer-inner a { color: inherit; text-decoration: none; }
.footer-inner a:hover { color: var(--ink); }
