/* DaNi-tep
   Systém je opísaný v DESIGN.md. Poradie: písma, tokeny, základ, komponenty, sekcie, pohyb. */

/* ---------- Písma ---------- */
@font-face {
  font-family: "Literata";
  src: url("/assets/fonts/literata.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("/assets/fonts/literata-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokeny ---------- */
:root {
  --paper: #f6f5f1;
  --white: #ffffff;
  --mist: #e7eaee;
  --ink: #0f1a2e;
  --ink-soft: #2f3950;
  --ink-mute: #5d6780;
  --blue: #1f3fa6;
  --blue-deep: #18327f;
  --blue-tint: #c9d4f5;
  --yellow: #ffd60a;          /* žltá zo spôn stroja Kärcher: fokus a aktívny stav */
  --line: rgba(15, 26, 46, 0.14);
  --line-strong: rgba(15, 26, 46, 0.32);
  --error: #b42318;

  --serif: "Literata", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;

  --fs-display: clamp(1.9rem, 10vw, 7.5rem);
  --fs-h2: clamp(1.875rem, 1.2rem + 3vw, 4rem);
  --fs-h3: clamp(1.375rem, 1.18rem + 0.9vw, 2rem);
  --fs-lead: clamp(1.125rem, 1.06rem + 0.3vw, 1.3125rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;

  --gutter: clamp(1.25rem, 5.5vw, 5rem);
  --section: clamp(4.5rem, 10vw, 9rem);
  --header-h: 4.5rem;
  --dock-h: 0px;

  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
  --radius-ctl: 0.75rem;
}

@media (max-width: 760px) {
  :root { --header-h: 4rem; --dock-h: 3.75rem; }
}

/* ---------- Základ ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px));
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h2 { font-size: var(--fs-h2); line-height: 1.06; letter-spacing: -0.022em; }
h3 { font-size: var(--fs-h3); line-height: 1.15; }
p { text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}
.quote :focus-visible, .contact :focus-visible, .dock :focus-visible, .lightbox :focus-visible { outline-color: var(--yellow); }
.quote__card :focus-visible { outline-color: var(--blue); }

::selection { background: var(--blue); color: #fff; }

.wrap {
  width: 100%;
  max-width: 96rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: #fff; padding: 0.75rem 1rem; border-radius: 0.5rem;
  transition: top 0.2s;
}
.skip:focus { top: 1rem; }

.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-soft); max-width: 34em; }

.section { padding-block: var(--section); }
.section__head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.section__head h2 { max-width: 16em; }

/* ---------- Tlačidlá a odkazy ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3rem; padding: 0.7rem 1.4rem;
  border: 1.5px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: var(--fs-body); line-height: 1.2; text-decoration: none; text-align: center;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.15s var(--ease);
}
.btn:active { transform: scale(0.975); }
.btn--lg { min-height: 3.5rem; padding-inline: 1.75rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-deep); }
.btn--line { border-color: var(--line-strong); color: var(--ink); }
.btn--line:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--blue-tint); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.btn--ghost:hover { border-color: #fff; }

.text-link {
  background: none; border: 0; padding: 0;
  font-weight: 600; color: var(--blue);
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.25em;
  transition: text-decoration-color 0.2s, color 0.2s;
}
.text-link:hover { color: var(--blue-deep); text-decoration-color: transparent; }

.round-btn {
  display: grid; place-items: center; width: 3.25rem; height: 3.25rem;
  border-radius: 50%; border: 1.5px solid var(--line-strong); background: transparent; color: var(--ink);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s, transform 0.15s var(--ease);
}
.round-btn:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); color: #fff; }
.round-btn:active:not(:disabled) { transform: scale(0.94); }
.round-btn:disabled { opacity: 0.35; cursor: default; }
.round-btn--dark { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.round-btn--dark:hover:not(:disabled) { background: #fff; border-color: #fff; color: var(--ink); }

/* ---------- Hlavička ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.header.is-stuck { border-bottom-color: var(--line); }
.header__in { display: flex; align-items: center; gap: 2rem; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; margin-right: auto; min-height: 2.75rem; }
.logo__mark { flex: none; color: var(--blue); }
.logo__text { display: grid; }
.logo__name { font-family: var(--serif); font-size: 1.375rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.1; }
.logo__place { font-size: var(--fs-small); color: var(--ink-mute); line-height: 1.2; white-space: nowrap; }
@media (min-width: 961px) {
  .logo__text { grid-auto-flow: column; align-items: baseline; gap: 0.9rem; }
}
@media (max-width: 430px) {
  .logo__place { display: none; }   /* miesto je hneď v prvej vete pod nadpisom */
}

.nav__list { display: flex; gap: clamp(1.25rem, 2.4vw, 2.5rem); }
.nav a {
  position: relative; display: block; padding: 0.75rem 0; text-decoration: none; font-weight: 500;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.55rem; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }

.header__tel {
  display: inline-flex; align-items: baseline; gap: 0.5rem; padding: 0.75rem 0 0.75rem 2rem;
  border-left: 1px solid var(--line);
  font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.header__tel:hover { color: var(--blue); }
.header__tel-label { font-weight: 400; color: var(--ink-mute); }

.menu-btn {
  display: none; align-items: center; gap: 0.6rem; min-height: 2.75rem; padding: 0.5rem 1rem 0.5rem 0.85rem;
  border: 1.5px solid var(--line-strong); border-radius: 999px; background: transparent; font-weight: 600;
}
.menu-btn__icon { position: relative; width: 1.1rem; height: 0.7rem; }
.menu-btn__icon i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform 0.3s var(--ease), top 0.3s var(--ease); }
.menu-btn__icon i:first-child { top: 0; }
.menu-btn__icon i:last-child { top: 100%; }
.menu-btn[aria-expanded="true"] .menu-btn__icon i:first-child { top: 50%; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__icon i:last-child { top: 50%; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: var(--paper); overflow-y: auto;
  border-top: 1px solid var(--line);
}
.menu[hidden] { display: none; }
.menu__in { display: flex; flex-direction: column; min-height: 100%; padding-block: 1rem 2rem; }
.menu__list a {
  display: block; padding: 0.8rem 0;
  font-family: var(--serif); font-size: var(--fs-h3); letter-spacing: -0.015em; text-decoration: none;
}
.menu__actions { display: grid; gap: 0.75rem; margin-top: auto; padding-top: 2rem; }

@media (max-width: 960px) {
  .nav, .header__tel { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (min-width: 961px) {
  .menu { display: none !important; }
}

/* ---------- Úvod ---------- */
.hero { padding-top: clamp(1.5rem, 4vw, 4rem); }
.hero__title {
  font-size: var(--fs-display); line-height: 1.02; letter-spacing: -0.03em;
  text-wrap: nowrap; white-space: nowrap;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.hero__title .line > span { display: block; }

.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 4rem);
  margin-top: clamp(1.5rem, 4vw, 4rem);
}
.hero__text { display: grid; gap: 1rem; align-content: start; }
.hero__note { font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.75rem; margin-top: 0.75rem; }

.tel-link { display: grid; text-decoration: none; min-height: 2.75rem; align-content: center; }
.tel-link__label { font-size: var(--fs-small); color: var(--ink-mute); line-height: 1.2; }
.tel-link__num {
  font-family: var(--serif); font-size: 1.375rem; line-height: 1.2; letter-spacing: -0.01em; font-variant-numeric: lining-nums;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; text-decoration-color: var(--line-strong);
  transition: text-decoration-color 0.2s, color 0.2s;
}
.tel-link:hover .tel-link__num { color: var(--blue); text-decoration-color: currentColor; }

.hero__photo { margin-inline: calc(var(--gutter) * -1); }
.hero__frame { overflow: hidden; background: var(--mist); aspect-ratio: 15 / 16; }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo figcaption, .about__photo figcaption {
  font-size: var(--fs-small); color: var(--ink-mute); padding: 0.75rem var(--gutter) 0;
}

@media (max-width: 760px) {
  .hero .tel-link { display: none; }   /* volanie je v spodnej lište */
}
@media (min-width: 700px) {
  .hero__frame { aspect-ratio: 4 / 3; }
}
@media (min-width: 1000px) {
  .hero__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: start; }
  .hero__text { padding-top: 0.5rem; gap: 1.25rem; }
  .hero__cta { flex-direction: column; align-items: flex-start; margin-top: 1.25rem; }
  /* fotka dobieha až po pravý okraj okna */
  .hero__photo { margin-left: 0; margin-right: calc(var(--gutter) * -1); }
  .hero__photo figcaption { padding-inline: 0 var(--gutter); }
}
@media (min-width: 1000px) and (min-height: 760px) {
  .hero__frame { aspect-ratio: auto; height: min(62vh, 44rem); min-height: 24rem; }
}

/* ---------- Služby ---------- */
.svc { padding-block: 1.25rem 1.75rem; display: grid; gap: 1.25rem; }
.svc__media { overflow: hidden; background: var(--mist); aspect-ratio: 5 / 4; }
.svc__media img { width: 100%; height: 100%; object-fit: cover; }
.svc__body { display: grid; gap: 0.6rem; outline: none; }
.svc__body p { color: var(--ink-soft); max-width: 32em; }

@media (min-width: 560px) and (max-width: 899px) {
  .svc { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: center; gap: 2rem; }
  .svc__media { aspect-ratio: 1; }
}

@media (min-width: 900px) {
  .js .svc-list {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    column-gap: clamp(3rem, 8vw, 8rem);
  }
  .js .svc { display: contents; }
  .js .svc__media {
    grid-column: 1; grid-row: 1 / span 5;
    position: sticky; top: calc(var(--header-h) + 2rem); align-self: start;
    aspect-ratio: 4 / 5; max-height: calc(100vh - var(--header-h) - 4rem); width: 100%;
    opacity: 0; transition: opacity 0.55s ease;
  }
  .js .svc__media img { transform: scale(1.05); transition: transform 1.1s var(--ease); }
  .js .svc.is-active .svc__media { opacity: 1; z-index: 1; }
  .js .svc.is-active .svc__media img { transform: none; }

  .js .svc__body {
    grid-column: 2; position: relative;
    padding-block: clamp(1.75rem, 3vw, 2.75rem);
    cursor: default;
  }
  .js .svc__body::before {
    content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 2px; background: var(--ink);
    transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease);
  }
  .js .svc.is-active .svc__body::before { transform: scaleX(1); }
  .js .svc__body h3, .js .svc__body p { transition: color 0.35s, opacity 0.35s; }
  .js .svc:not(.is-active) .svc__body h3 { color: var(--ink-mute); }
  .js .svc:not(.is-active) .svc__body p { color: var(--ink-mute); }

  /* bez skriptu: obyčajná dvojstĺpcová mriežka s fotkou pri každej službe */
  .no-js .svc { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); align-items: center; gap: 3rem; }
}

.aside-note {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.75rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
}
.aside-note__text { font-family: var(--serif); font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.015em; max-width: 22em; }

/* ---------- Realizácie ---------- */
.works { background: var(--mist); overflow: hidden; }
.works__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.works__head > div:first-child { display: grid; gap: 1rem; }
.works__head h2 { max-width: 13em; }
.works__nav { display: flex; align-items: center; gap: 0.75rem; flex: none; }
.works__nav[hidden] { display: none; }
.works__count { font-variant-numeric: tabular-nums; color: var(--ink-soft); margin-right: 0.75rem; min-width: 4.5ch; text-align: right; }

.track {
  display: flex; gap: clamp(0.75rem, 1.6vw, 1.5rem);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter);
  padding-inline: var(--gutter); padding-block: 0.5rem;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  cursor: grab; user-select: none; -webkit-user-select: none;
}
.track::-webkit-scrollbar { display: none; }
.track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.track.is-dragging .shot__btn { pointer-events: none; }
.track:focus-visible { outline-offset: -3px; }

.shot { flex: 0 0 auto; width: min(74vw, 22rem); scroll-snap-align: start; }
.shot__btn { display: block; width: 100%; padding: 0; border: 0; background: #d7dbe1; overflow: hidden; aspect-ratio: 3 / 4; cursor: zoom-in; }
.shot__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); -webkit-user-drag: none; user-select: none; }
.shot__cap { font-size: var(--fs-small); color: var(--ink-soft); padding-top: 0.75rem; }

@media (hover: hover) {
  .shot__btn:hover img { transform: scale(1.035); }
}
@media (min-width: 900px) {
  .shot { width: clamp(17rem, 27vw, 26rem); }
  .shot:nth-child(even) { padding-top: clamp(2rem, 5vw, 4.5rem); }
}

.works__bar { position: relative; height: 2px; background: var(--line); margin-top: clamp(1.75rem, 3vw, 3rem); overflow: hidden; }
.works__bar i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0.1); }

@media (max-width: 700px) {
  .works__head { align-items: flex-start; flex-direction: column; gap: 1.25rem; }
  .works__nav .round-btn { display: none; }
  .works__count { text-align: left; margin: 0; }
}

/* ---------- Cenový dopyt ---------- */
.quote { background: var(--blue); color: #fff; }
.quote__grid { display: grid; gap: clamp(2.5rem, 6vw, 6rem); }
.quote__head { display: grid; gap: 1.5rem; align-content: start; }
.quote__head h2 { max-width: 11em; }
.quote .lead { color: #dfe6fb; }

.steps { counter-reset: krok; display: grid; align-content: start; }
.steps li {
  counter-increment: krok; position: relative;
  padding: 0 0 2rem 3.5rem;
}
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(krok); position: absolute; left: 0; top: 0;
  font-family: var(--serif); font-size: 1.375rem; line-height: 1.15; color: var(--yellow); font-variant-numeric: lining-nums;
}
.steps h3 { font-size: 1.375rem; margin-bottom: 0.35rem; }
.steps p { color: #dfe6fb; max-width: 30em; }

.quote__card {
  background: var(--white); color: var(--ink);
  border-radius: 1.5rem; padding: clamp(1.25rem, 3.2vw, 2.75rem);
}

@media (min-width: 1000px) {
  .quote__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: auto 1fr;
    grid-template-areas: "head card" "steps card"; align-items: start; row-gap: 2.5rem;
  }
  .quote__head { grid-area: head; }
  .steps { grid-area: steps; }
  .quote__card { grid-area: card; }
}
@media (max-width: 999px) {
  /* na telefóne ide formulár hneď za nadpis, postup až pod ním */
  .quote__grid { gap: 2rem; }
  .quote__card { order: 2; }
  .steps { order: 3; margin-top: 0.5rem; }
}
@media (max-width: 700px) {
  .quote__card { margin-inline: calc(var(--gutter) * -0.4); border-radius: 1.25rem; }
}

/* formulár */
.form__trap { position: absolute; left: -100vw; width: 1px; height: 1px; overflow: hidden; }
.form__body { display: grid; gap: 1.35rem; }
.form__body[hidden], .form__done[hidden] { display: none; }
.form__row { display: grid; gap: 1.35rem; align-items: start; }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; gap: 1rem; } }

.field { display: grid; gap: 0.45rem; align-content: start; }
.field > label, .field legend, .field__label { font-weight: 600; }
.field legend { margin-bottom: 0.6rem; }
.optional { font-weight: 400; color: var(--ink-mute); font-size: var(--fs-small); margin-left: 0.35rem; }

.field input[type="text"], .field input[type="tel"], .field textarea {
  width: 100%; min-height: 3.25rem; padding: 0.8rem 1rem;
  background: var(--white); border: 1.5px solid #b9c0cf; border-radius: var(--radius-ctl);
  font-size: 1.0625rem; line-height: 1.4;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 6rem; }
.field input:hover, .field textarea:hover { border-color: var(--ink-mute); }
.field input[type="text"]:focus, .field input[type="tel"]:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint);
}
.field.has-error input[type="text"], .field.has-error input[type="tel"], .field.has-error textarea { border-color: var(--error); }
.field__hint { font-size: var(--fs-small); color: var(--ink-mute); }
.field__error { font-size: var(--fs-small); color: var(--error); font-weight: 500; }
.field__error[hidden] { display: none; }

.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill { position: relative; }
.pill input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pill span {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.5rem 1.05rem;
  border: 1.5px solid #b9c0cf; border-radius: 999px; font-weight: 500;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.15s var(--ease);
}
.pill:hover span { border-color: var(--ink); }
.pill input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill input:active + span { transform: scale(0.96); }
.pill input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }

/* fotky */
.upload__native { display: grid; gap: 0.5rem; }
.upload__native input { font-size: var(--fs-small); max-width: 100%; }
.js .upload__native { display: none; }
.upload__enhanced[hidden] { display: none; }
.upload__enhanced { display: grid; gap: 0.75rem; }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; }
.thumbs:empty { display: none; }
.thumb { position: relative; aspect-ratio: 1; border-radius: var(--radius-ctl); overflow: hidden; background: var(--mist); animation: thumb-in 0.35s var(--ease) both; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb__remove {
  position: absolute; top: 0; right: 0; width: 2.75rem; height: 2.75rem; display: grid; place-items: start end;
  padding: 0.3rem; border: 0; background: none;
}
.thumb__remove span {
  display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: rgba(15, 26, 46, 0.82); color: #fff; transition: background-color 0.2s;
}
.thumb__remove:hover span { background: var(--error); }
@keyframes thumb-in { from { opacity: 0; transform: scale(0.9); } }

.upload__add {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 3.5rem; padding: 0.75rem 1rem;
  border: 1.5px dashed #8d97ad; border-radius: var(--radius-ctl); color: var(--ink); font-weight: 600; cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.upload__add:hover, .upload__add.is-over { border-color: var(--blue); background: #f1f4fd; color: var(--blue); }
.upload__add:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
.upload__add.is-full { display: none; }
.upload__add.is-busy { opacity: 0.6; pointer-events: none; }

.check { display: grid; grid-template-columns: auto 1fr; gap: 0.8rem; align-items: start; font-weight: 400 !important; font-size: var(--fs-small) !important; line-height: 1.5; cursor: pointer; }
.check input {
  appearance: none; -webkit-appearance: none; width: 1.5rem; height: 1.5rem; margin: 0; flex: none;
  border: 1.5px solid #8d97ad; border-radius: 0.4rem; background: var(--white); cursor: pointer;
  display: grid; place-items: center; transition: background-color 0.2s, border-color 0.2s;
}
.check input::after {
  content: ""; width: 0.7rem; height: 0.4rem; border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0); translate: 0 -1px; transition: transform 0.2s var(--ease);
}
.check input:checked { background: var(--blue); border-color: var(--blue); }
.check input:checked::after { transform: rotate(-45deg) scale(1); }
.check a { color: var(--blue); font-weight: 600; text-underline-offset: 0.2em; }
.field--check.has-error .check input { border-color: var(--error); }

.form__status {
  padding: 0.9rem 1rem; border-radius: var(--radius-ctl);
  background: #fdecea; color: #7a1a12; font-size: var(--fs-small); font-weight: 500;
}
.form__status[hidden] { display: none; }
.form__status a { color: inherit; font-weight: 700; }

.btn__spinner { display: none; width: 1.15rem; height: 1.15rem; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; animation: spin 0.8s linear infinite; }
.btn.is-loading { pointer-events: none; background: var(--blue-deep); }
.btn.is-loading .btn__spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form__alt { font-size: var(--fs-small); color: var(--ink-soft); text-align: center; }
.form__alt a { color: var(--ink); font-weight: 600; white-space: nowrap; }

.form__done { display: grid; gap: 0.9rem; justify-items: start; padding-block: clamp(1rem, 4vw, 3rem); outline: none; animation: done-in 0.5s var(--ease) both; }
.form__done-mark { color: var(--blue); }
.form__done-mark path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 0.5s 0.25s var(--ease) forwards; }
.form__done h3 { font-size: var(--fs-h3); }
.form__done p { color: var(--ink-soft); max-width: 28em; }
.form__done a { color: var(--ink); font-weight: 600; white-space: nowrap; }
@keyframes done-in { from { opacity: 0; transform: translateY(0.75rem); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- O nás ---------- */
.about__grid { display: grid; gap: clamp(2.5rem, 6vw, 6rem); }
.about__text { display: grid; gap: 1.35rem; align-content: start; }
.about__text h2 { max-width: 10.5em; margin-bottom: 0.5rem; }
.about__text > p:not(.lead) { color: var(--ink-soft); max-width: 36em; }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--mist); }
.about__photo figcaption { padding-inline: 0; }

.motto { margin-top: clamp(1.5rem, 4vw, 3.5rem); }
.motto blockquote p {
  font-family: var(--serif); font-style: italic; font-size: var(--fs-h2);
  line-height: 1.1; letter-spacing: -0.015em; text-wrap: balance;
}
.motto figcaption { margin-top: 0.75rem; font-size: var(--fs-small); color: var(--ink-mute); }

@media (min-width: 900px) {
  .about__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: start; }
  .about__photo { margin-top: clamp(0rem, 6vw, 6rem); }
}
@media (max-width: 899px) {
  .about__photo { max-width: 26rem; }
}

/* ---------- Kontakt ---------- */
.contact { background: var(--ink); color: #fff; padding-block: var(--section) 2rem; }
.contact__title { font-family: var(--sans); font-size: var(--fs-lead); font-weight: 500; letter-spacing: 0; color: #c4cbdc; }
.contact__tel {
  display: inline-block; margin-top: 0.5rem;
  font-family: var(--serif); font-size: clamp(2.75rem, 0.6rem + 10.6vw, 11rem); line-height: 1; letter-spacing: -0.035em;
  font-variant-numeric: lining-nums; text-decoration: none; white-space: nowrap;
  position: relative; padding-bottom: 0.08em;
}
.contact__tel::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease);
}
.contact__tel:hover::after { transform: scaleX(1); }
.contact__note { margin-top: clamp(1rem, 2vw, 1.75rem); font-size: var(--fs-lead); color: #e3e7f1; max-width: 30em; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.contact__cols { display: grid; gap: 1.75rem; margin-top: clamp(3rem, 8vw, 7rem); }
.contact__cols dt { font-size: var(--fs-small); color: #aab3c8; margin-bottom: 0.15rem; }
.contact__cols a { text-underline-offset: 0.25em; text-decoration-thickness: 1px; display: inline-block; padding-block: 0.4rem; }
.contact__cols a:hover { color: var(--yellow); }
.contact__billing { color: #c4cbdc; font-size: var(--fs-small) !important; line-height: 1.6; }

@media (min-width: 640px) {
  .contact__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; }
}
@media (min-width: 1100px) {
  .contact__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .contact__actions .btn { flex: 1 1 100%; }
}

.contact__foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem;
  margin-top: clamp(2.5rem, 6vw, 5rem);
  font-size: var(--fs-small); color: #aab3c8;
}
.contact__foot a { display: inline-block; padding-block: 0.6rem; margin-block: -0.6rem; text-underline-offset: 0.25em; }
.contact__foot a:hover { color: #fff; }

/* ---------- Spodná lišta (telefón) ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: none; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  background: var(--ink); color: #fff;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  transition: transform 0.4s var(--ease), visibility 0.4s;
}
.dock a {
  display: flex; align-items: center; justify-content: center; gap: 0.55rem; height: 3.75rem;
  font-weight: 600; text-decoration: none;
}
.dock__quote { background: var(--blue); }
.dock.is-away { transform: translateY(100%); visibility: hidden; }
@media (max-width: 760px) { .dock { display: grid; } }

/* ---------- Zväčšená fotka ---------- */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(10, 17, 31, 0.96); color: #fff;
}
.lightbox::backdrop { background: rgba(10, 17, 31, 0.6); }
.lightbox[open] { animation: fade 0.3s ease both; }
.lightbox__in { display: grid; grid-template-rows: minmax(0, 1fr) auto; height: 100%; padding: clamp(0.75rem, 2vw, 1.5rem); gap: 0.75rem; }
.lightbox__img { width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.lightbox__cap { font-size: var(--fs-small); color: #dfe4ee; }
.lightbox__ctrl { display: flex; gap: 0.5rem; flex: none; }
@keyframes fade { from { opacity: 0; } }

/* ---------- Podstránky ---------- */
.page { padding-block: clamp(2.5rem, 6vw, 5rem) var(--section); }
.page__in { max-width: 44rem; }
.page h1 { font-size: var(--fs-h2); line-height: 1.06; letter-spacing: -0.022em; margin-bottom: 1.5rem; }
.page h2 { font-size: var(--fs-h3); line-height: 1.2; margin: 2.5rem 0 0.75rem; }
.page p, .page li { color: var(--ink-soft); }
.page p + p { margin-top: 0.9rem; }
.page ul { list-style: disc; padding-left: 1.25rem; display: grid; gap: 0.4rem; }
.page a:not(.btn) { color: var(--blue); font-weight: 600; text-underline-offset: 0.2em; }
.page .btn { margin-top: 2rem; }
.page__back { display: inline-block; margin-bottom: 2rem; padding-block: 0.6rem; }

/* ---------- Pohyb ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__title .line > span { animation: line-up 0.95s var(--ease) both; }
  .js .hero__title .line:nth-child(2) > span { animation-delay: 0.09s; }
  .js .hero__text { animation: rise 0.8s 0.3s var(--ease) both; }
  .js .hero__frame { animation: wipe 1.15s 0.2s var(--ease) both; }
  .js .hero__frame img { animation: settle 1.6s 0.2s var(--ease) both; }

  .js [data-reveal] img { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease); }
  .js [data-reveal].is-in img { clip-path: inset(0); }
}
@keyframes line-up { from { transform: translateY(108%); } }
@keyframes rise { from { transform: translateY(1.25rem); } }
@keyframes wipe { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes settle { from { transform: scale(1.08); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; }
}
