/* Písma ako v šablóne: Gilda Display namiesto Lustrie (tá nemá české znaky) a Nunito namiesto
   Proxima Soft (platené písmo). Uložené priamo na webe. */
@font-face { font-family: "Gilda Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/gilda-display-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: "Gilda Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/gilda-display-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; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/fonts/nunito-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: "Nunito"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/fonts/nunito-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 {
  /* Farby zo súboru Colors.svg */
  --warm-white: #F7F6F3;
  --sand: #D9D4CE;
  --taupe: #A69D92;
  --stone: #9F9083;
  --brown: #6B594E;
  --olive: #73745A;
  --graphite: #2C2C2C;
  --black: #1A1A1A;

  --bg: var(--warm-white);
  --text: var(--black);
  --muted: var(--brown);
  --button: var(--sand);
  --rule: 1px solid var(--black);

  --serif: "Gilda Display", "Iowan Old Style", Georgia, serif;
  --sans: "Nunito", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.04em; line-height: 1.2; text-wrap: balance; }
/* Malý štítok nad nadpisom sekcie (ako „ABOUT ME“, „OUR PROCESS“ v šablóne) */
.label { font-size: 0.9rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 1rem; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brown); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--black); color: var(--bg); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* Tlačidlá */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px;
  background: var(--button);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.8em 2em;
  border-radius: 2px;
  border: 0;
  font-family: inherit;
  line-height: inherit;
  cursor: pointer;
  transition: opacity .2s;
}
.btn:disabled { opacity: .5; cursor: progress; }
.btn:hover { opacity: .8; }
.btn--light { background: var(--bg); font-size: 0.95rem; letter-spacing: 0.02em; text-transform: none; padding: 1em 2em; overflow-wrap: anywhere; }
.btn--light:hover { opacity: .8; }

/* Hlavička nad hero (nie cez obrázok, aby logo nezakrývalo nápis na produkte) */
.top {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--gutter);
  border-bottom: var(--rule);
}
.brand img { height: 56px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.nav a:not(.btn) {
  font-size: 0.9rem; letter-spacing: 0.09em; text-transform: uppercase; text-decoration: none; font-weight: 400;
  display: inline-flex; align-items: center; min-height: 44px;
}
.nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 6px; }

/* Hlavička na úvodnej stránke ako v šablóne: na vrchu stránky priehľadná nad fotkou,
   pri posúvaní nadol sa schová, pri posune nahor sa vráti s plným pozadím. */
.top--overlay {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: 10px; padding-bottom: 10px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .5s ease-in-out, border-color .5s ease-in-out, transform .35s var(--ease);
}
.top--overlay .brand img { height: 48px; }
.top--overlay.is-scrolled { background: var(--bg); }
.top--overlay.is-hidden { transform: translateY(-100%); }
.top--overlay.is-open { background: var(--bg); transform: none; }
/* Pri načítaní bez prechodov (main.js triedu odstráni pri prvom pohybe návštevníka) */
.top--overlay.is-instant { transition: none; }

/* Zjavenie pri načítaní ako v šablóne: úvod začína prázdny (biely) a prvky sa postupne zjavia.
   Čisté CSS, takže funguje aj bez JavaScriptu a nič nepreblikne. */
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
.hero__kicker, .hero__img img, .hero h1, .hero__actions, .marquee {
  animation: appear .9s ease both;
}
.hero__kicker { animation-delay: .05s; }
.hero__img img { animation-delay: .25s; }
.hero h1 { animation-delay: .35s; }
.hero__actions { animation-delay: .45s; }
.marquee { animation-delay: .55s; }

/* Zjavenie ďalších častí pri posúvaní (main.js pridá .will-fade len prvkom pod okrajom obrazovky) */
.will-fade { opacity: 0; transition: opacity .9s ease; }
.will-fade.is-in { opacity: 1; }

/* Tlačidlo menu (len mobil): tri tenké čiary ako ramená písmena E v logu */
.menu-toggle {
  display: none;
  width: 44px; height: 44px; margin-right: -8px; padding: 0;
  border: 0; background: none; color: var(--text); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 7px;
}
.menu-toggle span {
  display: block; width: 28px; height: 1.5px; background: currentColor;
  transition: transform .3s var(--ease), opacity .2s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* Hero ako v šablóne: fotka vľavo, text vpravo, priesvitná hlavička nad fotkou.
   Fotka Sinaė je v plnej veľkosti a pôvodnom formáte 16:9, bez orezania;
   hlavička ju prekrýva len v hornej časti, kde je prázdna stena. */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: stretch;
  border-bottom: var(--rule);
}
.hero__img { position: relative; overflow: hidden; background: var(--bg); aspect-ratio: 16 / 9; width: 100%; align-self: start; }
.hero__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__text {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 1.1rem;
  padding: 84px clamp(24px, 3vw, 56px) 36px;
}
.hero__kicker { font-size: 0.9rem; letter-spacing: 0.05em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.hero h1 { font-size: clamp(2rem, 3.1vw, 2.6rem); line-height: 1.19; max-width: 13em; }
.hero .btn { margin-top: .6rem; }

/* Bežiaci pás */
.marquee {
  overflow: hidden; white-space: nowrap;
  border-bottom: var(--rule);
  padding: 0.85rem 0;
  font-size: 1.125rem; line-height: 1.4;
}
.marquee__track { display: inline-flex; animation: run 60s linear infinite; }
.marquee--contact { border-top: var(--rule); }
.marquee span { padding: 0 .35rem; }
.marquee span::after { content: "-"; margin-left: .7rem; }
@keyframes run { to { transform: translateX(-50%); } }

/* Vyhlásenie */
.statement {
  max-width: 42rem; margin: 0 auto; text-align: center;
  padding: clamp(64px, 9vw, 120px) var(--gutter);
}
.statement h2 { font-size: clamp(1.8rem, 3.1vw, 2.47rem); line-height: 1.23; }
.statement p { margin: 1.6rem auto 0; font-size: 1rem; max-width: 36rem; }

/* O mne: text a čiernobiela fotografia */
.about {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: var(--rule);
}
.about + .about { margin-top: clamp(48px, 7vw, 96px); }
.about__text {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.2rem;
  padding: clamp(56px, 7vw, 110px) var(--gutter);
}
.about h2 { font-size: clamp(1.8rem, 3.1vw, 2.47rem); line-height: 1.23; max-width: 14em; margin-bottom: .4rem; }
.about p { font-size: 0.95rem; max-width: 32rem; }
.about .btn { margin-top: .6rem; }
.about__img { position: relative; min-height: 600px; background: var(--graphite); overflow: hidden; }
.about__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; filter: grayscale(1); }

.shows { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 34rem; }
.shows li {
  display: grid; grid-template-columns: 4rem 1fr; gap: .1rem 1rem;
  padding: .9rem 0; border-bottom: 1px solid var(--sand);
}
.shows li:first-child { border-top: 1px solid var(--sand); }
.shows__year { grid-row: span 2; font-family: var(--serif); font-size: 1.15rem; }
.shows__name { font-size: 0.95rem; }
.shows__work { font-size: 0.85rem; color: var(--muted); }
.shows__work:empty { display: none; }

/* Projekty: asymetrická mriežka podľa referencie, farby a písma webu */
.work { padding: clamp(72px, 10vw, 140px) var(--gutter); border-top: var(--rule); }
.work__head { text-align: center; margin-bottom: clamp(40px, 6vw, 88px); }
.work__head h2 { font-size: clamp(1.8rem, 3.1vw, 2.47rem); line-height: 1.23; }

.work__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(20px, 3vw, 48px); row-gap: clamp(56px, 7vw, 110px);
  align-items: start;
}
/* Dvojice kariet: široká a vysoká, v každej druhej dvojici prehodené strany; druhá karta posunutá nižšie */
.work-card:nth-child(4n+1) { grid-column: 2 / span 5; }
.work-card:nth-child(4n+2) { grid-column: 8 / span 4; margin-top: clamp(40px, 7vw, 120px); }
.work-card:nth-child(4n+3) { grid-column: 2 / span 4; }
.work-card:nth-child(4n+4) { grid-column: 7 / span 5; margin-top: clamp(40px, 7vw, 120px); }

.work-card { display: block; color: inherit; text-decoration: none; cursor: pointer; }
.work-card__media { position: relative; display: block; overflow: hidden; background: var(--sand); }
/* Náhľad: object-fit: cover odreže vždy len dve protiľahlé strany (zľava a sprava, pri krbe zhora a zdola).
   object-position drží hlavný motív v strede výrezu so vzduchom okolo predmetov. */
.work-card__media img { width: 100%; height: auto; object-fit: cover; transition: opacity .4s var(--ease); }
.work-card--wide .work-card__media img { aspect-ratio: 16 / 10; }
.work-card--tall .work-card__media img { aspect-ratio: 1 / 1; }
.work-card[data-open="sinae"] img { object-position: 81% 50%; }
.work-card[data-open="omo"] img { object-position: 48% 50%; }
.work-card[data-open="vinice"] img { object-position: 69% 50%; }
.work-card[data-open="orbis"] img { object-position: 90% 50%; }
.work-card[data-open="boite"] img { object-position: 23% 50%; }
.work-card[data-open="krb"] img { object-position: 50% 50%; }

.work-card__info {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: .3rem 1rem;
  padding: 1rem 0 1.1rem; border-bottom: 1px solid var(--black);
}
.work-card__meta, .work-card__tags { font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
.work-card__name { font-family: var(--serif); font-size: clamp(1.35rem, 1.8vw, 1.7rem); line-height: 1.15; letter-spacing: -0.04em; }

/* Znak „rozbaliť“: tenký kruh s krížikom, rovnako tenké ťahy ako v logu.
   Pri prejdení myšou sa kruh vyplní a krížik sa pootočí. */
.work-card__sign {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--text);
  display: grid; place-items: center; align-self: center; justify-self: end;
  transition: background .35s var(--ease), color .35s var(--ease);
  color: var(--text);
}
.work-card__sign svg {
  width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.2;
  transition: transform .45s var(--ease);
}
.work-card:hover .work-card__media img { opacity: .88; }
.work-card:hover .work-card__sign, .work-card:focus-visible .work-card__sign { background: var(--text); color: var(--bg); }
.work-card:hover .work-card__sign svg, .work-card:focus-visible .work-card__sign svg { transform: rotate(90deg); }
.work-card:focus-visible { outline: 2px solid var(--brown); outline-offset: 6px; }


/* Úvod: dve akcie vedľa seba */
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .8rem 1.6rem; margin-top: .6rem; }
.hero__actions .btn { margin-top: 0; }
.hero__link { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 400; text-underline-offset: 6px; }

/* Služby: tri pieskové karty ako v šablóne */
.services { padding: clamp(64px, 9vw, 120px) var(--gutter); border-top: var(--rule); }
.services__head { max-width: 40rem; margin: 0 auto clamp(36px, 5vw, 64px); text-align: center; }
.services__head h2 { font-size: clamp(1.8rem, 3.1vw, 2.47rem); line-height: 1.23; }
.services__head p { margin-top: 1rem; font-size: 0.95rem; }
.services__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 76rem; margin: 0 auto; }
.service-card {
  background: var(--sand); padding: clamp(28px, 3vw, 44px) clamp(22px, 2.4vw, 36px);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.1rem;
}
.service-card h3 { font-size: clamp(1.45rem, 2.1vw, 1.7rem); line-height: 1.23; }
.service-card p { font-size: 1rem; }
.service-card ul { list-style: none; margin: 0; padding: 0; font-size: 0.9rem; }
.service-card li { padding: .1rem 0; }
.service-card li::before { content: "- "; }
.service-card__note { font-size: 0.9rem !important; letter-spacing: 0.05em; text-transform: uppercase; }
.service-card .btn { margin-top: auto; }
.btn--dark { background: var(--black); color: var(--bg); }
.btn--dark:hover { opacity: .8; }

/* Postup spolupráce: nadpis vľavo, kroky vpravo oddelené tenkou čiarou */
.process {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 2rem clamp(32px, 6vw, 96px);
  padding: clamp(64px, 9vw, 120px) var(--gutter); border-top: var(--rule);
}
.process__head h2 { font-size: clamp(1.8rem, 3.1vw, 2.47rem); line-height: 1.23; }
.process__head p { margin-top: 1rem; font-size: 0.95rem; max-width: 26rem; }
.process__steps { list-style: none; margin: 0; padding: 0; }
.process__steps li { padding: 1.2rem 0 1.4rem; border-bottom: 1px solid var(--black); }
.process__steps li:first-child { padding-top: 0; }
.process__step { font-size: clamp(1.2rem, 1.65vw, 1.32rem); line-height: 1.29; margin-bottom: .6rem; }
.process__step mark { background: var(--sand); color: inherit; padding: 0 .15em; }
.process__steps p { font-size: 1rem; max-width: 34rem; }

/* Kontakt: text vľavo, formulár v pieskovom poli vpravo */
.contact {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 2.5rem clamp(32px, 6vw, 96px);
  align-items: start; padding: clamp(64px, 9vw, 120px) var(--gutter); border-top: var(--rule);
}
.contact__intro h2 { font-size: clamp(1.8rem, 3.1vw, 2.47rem); line-height: 1.23; }
.contact__intro p { margin-top: 1rem; font-size: 0.95rem; max-width: 26rem; }
.contact__mail { display: inline-flex; align-items: center; min-height: 44px; font-size: 1rem; text-underline-offset: 5px; }
.contact__form { background: var(--sand); padding: clamp(24px, 3vw, 40px); scroll-margin-top: 24px; }
.contact__form .form input, .contact__form .form textarea { background: var(--bg); }
.contact__form .form label { color: var(--text); }
.contact__form .btn { background: var(--black); color: var(--bg); }
.contact__form .btn:hover { opacity: .8; }

/* Tmavá výzva na konci stránky služby (vycentrovaná, s logom) */
.contact.contact--center {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.2rem;
  background: var(--black); color: var(--bg); border-top: 0;
  padding: clamp(72px, 10vw, 130px) var(--gutter);
}
.contact--center .contact__logo { width: 140px; margin-bottom: 1rem; }
.contact--center h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.15; }
.contact--center p { font-size: 0.95rem; max-width: 30rem; margin-bottom: .8rem; }

/* Časté otázky */
.faq {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 2rem clamp(32px, 6vw, 96px);
  padding: clamp(64px, 9vw, 120px) var(--gutter); border-top: var(--rule);
}
.faq h2 { font-size: clamp(1.8rem, 3.1vw, 2.47rem); line-height: 1.23; }
.faq details { border-bottom: 1px solid var(--black); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: 56px; padding: .9rem 0; font-family: var(--serif); font-size: clamp(1.15rem, 1.6vw, 1.32rem); letter-spacing: -0.03em; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; font-weight: 300; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.2rem; font-size: 1rem; max-width: 36rem; }
.faq__head p { margin-top: 1rem; max-width: 24rem; }
.faq__list { border-top: 1px solid var(--black); }

/* Sledujte mě (ako „Follow us on Socials“ v šablóne) */
.social { padding: clamp(48px, 6vw, 80px) var(--gutter) clamp(56px, 7vw, 96px); border-top: var(--rule); }
.social__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.6rem; }
.social__head h2 { font-size: clamp(1.6rem, 2.4vw, 1.9rem); }
.social__link { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; text-decoration: none; font-size: 0.9rem; letter-spacing: 0.05em; text-transform: uppercase; }
.social__link svg { width: 18px; height: 18px; fill: currentColor; }
.social__link:hover span { text-decoration: underline; text-underline-offset: 5px; }
.social__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.social__grid a { display: block; overflow: hidden; }
/* Formát 3:2: odreže sa len úzky pás z dvoch protiľahlých strán, produkty ostávajú celé */
.social__grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; filter: grayscale(1); transition: filter .4s, opacity .4s; }
.social__grid a[href*="sinae"] img { object-position: 53% 50%; }
.social__grid a[href*="omo"] img { object-position: 48% 50%; }
.social__grid a[href*="krb"] img { object-position: 50% 45%; }
.social__grid a:hover img { filter: none; }

.foot {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; flex-wrap: wrap;
  padding: 36px var(--gutter); font-size: 0.9rem;
  background: var(--black); color: var(--bg);
}
.foot__logo { height: 34px; width: auto; }
.foot a { text-underline-offset: 4px; }

/* Detail projektu */
.detail {
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: var(--bg); color: var(--text);
}
.detail[open] { display: grid; grid-template-columns: 1.5fr 1fr; animation: detail-in .35s var(--ease); }
.detail::backdrop { background: rgb(26 26 26 / .5); }
@keyframes detail-in { from { opacity: 0; transform: translateY(16px); } }
.detail__gallery { overflow-y: auto; display: flex; flex-direction: column; gap: 6px; background: var(--sand); }
.detail__gallery img, .detail__video { width: 100%; height: auto; display: block; }
.detail__video { background: var(--black); aspect-ratio: 16 / 9; }
/* Posuvníky v detaile projektu skryté, posúvať sa dá ďalej kolieskom, dotykom aj klávesnicou */
.detail, .detail__gallery, .detail__text { scrollbar-width: none; }
.detail::-webkit-scrollbar, .detail__gallery::-webkit-scrollbar, .detail__text::-webkit-scrollbar { display: none; }
.detail__text {
  overflow-y: auto;
  padding: clamp(28px, 4vw, 64px) var(--gutter);
  display: flex; flex-direction: column; gap: 1.1rem;
}
.detail__close {
  align-self: flex-end; cursor: pointer;
  font: inherit; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 400;
  background: var(--button); color: var(--text); border: 0; padding: .9em 1.6em; margin-bottom: 1.5rem;
  min-height: 44px;
}
.detail__close:hover { background: var(--black); color: var(--bg); }
.detail__meta { font-size: 0.85rem; color: var(--muted); }
.detail h2, .project h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.05; margin-bottom: .6rem; }
.detail__text > p { font-size: 1rem; max-width: 34rem; }
.detail__facts {
  margin: 1rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: .6rem 1.4rem;
  border-top: 1px solid var(--sand); padding-top: 1.2rem; font-size: 0.9rem;
}
.detail__facts dt { color: var(--muted); }
.detail__facts dd { margin: 0; }


/* Samostatná stránka projektu (rovnaký obsah ako dialóg, pre vyhľadávače a zdieľanie) */
.project { display: grid; grid-template-columns: 1.5fr 1fr; align-items: start; border-bottom: var(--rule); }
.project .detail__gallery { overflow: visible; }
.project .detail__text { position: sticky; top: 0; overflow: visible; }
.project__back { align-self: flex-start; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 400; text-underline-offset: 6px; display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 1rem; }
.project__cta { margin-top: 1.4rem; align-self: flex-start; }

/* Stránka 404 */
.notfound { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem; text-align: center; padding: 80px var(--gutter); }
.notfound h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.1; }

/* Kontaktný formulár */
.form-dialog {
  width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px);
  padding: clamp(28px, 4vw, 48px); border: 0;
  background: var(--bg); color: var(--text);
  overflow-y: auto;
}
.form-dialog[open] { animation: detail-in .3s var(--ease); }
.form-dialog::backdrop { background: rgb(26 26 26 / .55); }
.form-dialog__close {
  float: right; cursor: pointer; border: 0; background: none; color: var(--muted);
  font: inherit; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 400;
  padding: 10px 0 10px 12px; margin: -10px 0 0; min-height: 44px;
}
.form-dialog__close:hover { color: var(--text); text-decoration: underline; text-underline-offset: 5px; }
.form-dialog h2 { font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.1; margin-bottom: .8rem; }
.form-dialog__lead { font-size: 0.95rem; margin-bottom: 1.8rem; }
.form-dialog__lead strong { font-weight: 400; }

.form { display: flex; flex-direction: column; gap: 1.3rem; }
.form[hidden] { display: none; }
.form__field { display: flex; flex-direction: column; gap: .35rem; }
.form label { font-size: 0.85rem; color: var(--muted); }
.form input, .form textarea {
  font: inherit; font-size: 1rem; font-weight: 300; color: var(--text);
  background: #fff; border: 1px solid var(--taupe); border-radius: 0;
  padding: .75rem .9rem; min-height: 48px; width: 100%;
}
.form textarea { resize: vertical; min-height: 140px; }
.form input:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--brown); outline-offset: 0; border-color: var(--brown); }
.form [aria-invalid="true"] { border-color: #9B2C2C; }
.form__error { font-size: 0.85rem; color: #9B2C2C; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { font-size: 0.9rem; color: #9B2C2C; }
.form__status:empty { display: none; }
.form__submit { align-self: flex-start; min-height: 48px; }

.form-dialog__done { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.form-dialog__done[hidden] { display: none; }
.form-dialog__done-title { font-family: var(--serif); font-size: 1.6rem; }

/* Mobil */
@media (max-width: 860px) {
  .brand img { height: 30px; }
  .menu-toggle { display: flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 20;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--bg); border-bottom: var(--rule);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .top.is-open .nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav a:not(.btn) { min-height: 56px; font-size: 0.85rem; border-bottom: 1px solid var(--sand); }
  .nav .btn { margin-top: 20px; min-height: 48px; }
  .hero, .about { grid-template-columns: 1fr; }
  .hero__text { padding: 48px var(--gutter) 56px; }
  .top--overlay .brand img { height: 40px; }
  .about__img { min-height: 0; aspect-ratio: 4 / 5; }
  .about:not(.about--flip) .about__img { order: -1; }
  /* Na mobile začína fotka pod hlavičkou, aby logo neprekrývalo produkt (fotka je tu nízka). */
  .hero { padding-top: 64px; }
  .services__grid, .process, .contact, .faq { grid-template-columns: 1fr; }
  .social__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Projekty ako na širokej obrazovke: dva stĺpce posunuté voči sebe, rovnaké formáty fotiek. */
  .work__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; row-gap: 40px; }
  .work-card:nth-child(odd) { grid-column: 1; margin-top: 0; }
  .work-card:nth-child(even) { grid-column: 2; margin-top: 56px; }
  .work-card__info { gap: .2rem .5rem; padding: .7rem 0 .8rem; }
  .work-card__meta, .work-card__tags { grid-column: 1 / -1; white-space: normal; text-align: left; font-size: 0.72rem; line-height: 1.35; }
  .work-card__name { font-size: 1.1rem; }
  .work-card__sign { width: 30px; height: 30px; }
  .detail[open] { display: flex; flex-direction: column; overflow-y: auto; }
  .detail__gallery, .detail__text { overflow: visible; }
  .detail__text { order: -1; }
  .detail__close { position: sticky; top: 12px; z-index: 1; }
  .project { display: flex; flex-direction: column; }
  .project .detail__text { position: static; order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track, .detail[open], .form-dialog[open] { animation: none; }
  .nav, .menu-toggle span, .top--overlay { transition: none; }
  .hero__kicker, .hero__img img, .hero h1, .hero__actions, .marquee { animation: none; }
  .will-fade { opacity: 1; transition: none; }
  .work-card__media img, .work-card__sign, .work-card__sign svg { transition: none; }
  html { scroll-behavior: auto; }
}

/* Odkaz z úvodu na stránku služby */
.statement__link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 1.2rem; font-size: 0.875rem; text-underline-offset: 5px; }

/* Stránka služby (/sluzby/produktovy-design/) */
.service__intro { max-width: 52rem; margin: 0 auto; text-align: center; padding: clamp(64px, 9vw, 120px) var(--gutter) clamp(48px, 7vw, 96px); border-bottom: var(--rule); }
.service__kicker { font-size: 0.875rem; color: var(--muted); margin-bottom: 1.4rem; }
.service__intro h1 { font-size: clamp(2.3rem, 4.6vw, 4rem); line-height: 1.08; }
.service__lead { max-width: 38rem; margin: 1.6rem auto 0; font-size: 1.05rem; }
.service__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem 1.8rem; margin-top: 2rem; }
.service__link { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 400; text-underline-offset: 6px; }
.service__section { max-width: 60rem; margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--gutter); border-bottom: 1px solid var(--sand); }
.service__section h2 { font-size: clamp(1.8rem, 3.1vw, 2.5rem); line-height: 1.15; margin-bottom: 1.2rem; }
.service__section > p { max-width: 40rem; font-size: 1rem; }
.service__section > p + p { margin-top: 1rem; }
.service__section a:not(.service__link):not(.btn) { text-underline-offset: 4px; }
.service__offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: .6rem; }
.service__offer h3 { font-size: 1.35rem; line-height: 1.2; margin-bottom: .6rem; }
.service__offer p { font-size: 0.95rem; }
.service__projects { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
.service__projects a { display: flex; flex-direction: column; gap: .35rem; text-decoration: none; }
.service__projects img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--sand); margin-bottom: .5rem; transition: opacity .3s; }
.service__projects a:hover img { opacity: .85; }
.service__label { font-size: 0.8rem; color: var(--muted); }
.service__pname { font-family: var(--serif); font-size: 1.5rem; line-height: 1.1; }
.service__pdesc { font-size: 0.9rem; }
.service__about { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: center; }
.service__about img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1); }
.service__about p { margin-bottom: .6rem; font-size: 1rem; }
.service__mail { color: inherit; font-size: 0.95rem; text-underline-offset: 4px; }
.project__service { display: inline-flex; align-items: center; min-height: 44px; margin-top: .6rem; font-size: 0.875rem; text-underline-offset: 5px; }

@media (max-width: 860px) {
  .service__offers, .service__projects { grid-template-columns: 1fr; }
  .service__about { grid-template-columns: 1fr; }
  .service__about img { max-width: 260px; }
}

/* Spolupráca: päť krokov, ten istý výrobok kreslený jednou čiarou čoraz hotovejší */
.journey { max-width: 76rem; margin: 0 auto; padding: clamp(56px, 8vw, 112px) var(--gutter); border-bottom: 1px solid var(--sand); }
.journey__head { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 3rem; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.journey__head h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.1; }
.journey__head p { max-width: 26rem; font-size: 1rem; }
.journey__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 1.6rem; }
.journey__step { position: relative; }
.journey__art { display: block; width: 100%; max-width: 230px; height: 150px; margin-bottom: 1rem; overflow: visible; }
.journey__art .ln { fill: none; stroke: var(--black); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.journey__art .ln-soft { fill: none; stroke: var(--taupe); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.journey__art .ln-dash { fill: none; stroke: var(--taupe); stroke-width: 1; stroke-dasharray: 2 4; }
.journey__art .face { fill: var(--bg); }
.journey__art .dot, .journey__art .solid { fill: var(--black); }
.journey__step h3 { font-size: 1.35rem; line-height: 1.2; margin-bottom: .5rem; }
.journey__num { display: grid; margin-bottom: 1rem; place-items: center; width: 28px; height: 28px; border: 1px solid var(--black); border-radius: 50%; font-family: var(--sans); font-size: 0.8rem; font-weight: 400; }
/* spojnica od čísla kroku k ďalšiemu kroku */
.journey__step:not(:last-child)::after { content: ""; position: absolute; top: calc(150px + 1rem + 14px); left: 36px; right: calc(-1.6rem + 8px); height: 1px; background: var(--sand); }
.journey__step p { font-size: 0.95rem; max-width: 18rem; }
.journey__note { margin-top: clamp(32px, 4vw, 48px); font-size: 0.95rem; color: var(--muted); }

/* Kreslenie: JS pridá .will-draw sekcii a .is-drawn kroku, keď jeho kresba dosiahne spodnú tretinu obrazovky.
   Bez JS a pri obmedzenom pohybe je všetko hneď vidieť. */
.journey.will-draw [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; }
.journey.will-draw .fade { opacity: 0; }
.journey.will-draw .rise { transform: translateY(8px); }
.journey__step.is-drawn [pathLength] { stroke-dashoffset: 0; transition: stroke-dashoffset 2.2s var(--ease); }
.journey__step.is-drawn .fade { opacity: 1; transition: opacity 1.4s var(--ease), transform 1.8s var(--ease); }
.journey__step.is-drawn .rise { transform: none; }
.journey__step.is-drawn .rise { transition-delay: .5s; }
/* Na širokej obrazovke sa kroky spustia naraz, preto sa kreslia postupne zľava doprava */
@media (min-width: 961px) {
  .journey__step:nth-child(2).is-drawn * { transition-delay: .7s; }
  .journey__step:nth-child(3).is-drawn * { transition-delay: 1.4s; }
  .journey__step:nth-child(4).is-drawn * { transition-delay: 2.1s; }
  .journey__step:nth-child(5).is-drawn * { transition-delay: 2.8s; }
  .journey__step:nth-child(5).is-drawn .rise { transition-delay: 3.3s; }
}

@media (max-width: 960px) {
  .journey__head { grid-template-columns: 1fr; }
  .journey__steps { grid-template-columns: 1fr; }
  .journey__step { display: grid; grid-template-columns: 120px 1fr; column-gap: 1.2rem; align-items: start; padding: 1.4rem 0; border-top: 1px solid var(--sand); }
  .journey__step:not(:last-child)::after { content: none; }
  .journey__art { grid-row: span 3; height: 96px; margin: 0; }
  .journey__num { margin-bottom: .6rem; }
}
