/* SP Decor — Hradec Králové */

:root {
  --bg: #0d0d0f;
  --panel: #141418;
  --dark: #f2f1ec; /* kontrastní plocha (tlačítka, silné linky) */
  --text: #f2f1ec;
  --muted: #97948d;
  --accent: #c9a273;
  --line: #2a2a31;

  --font-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1240px;
  --gut: clamp(1.25rem, 5vw, 3rem);
  --sec: clamp(4.5rem, 11vw, 9rem);
  --dur: 260ms;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

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

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

/* ---------- layout ---------- */

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

.section {
  padding-block: var(--sec);
}

.section--tight {
  padding-block: calc(var(--sec) * 0.62);
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--dark);
  color: var(--bg);
  padding: 0.75rem 1.25rem;
  z-index: 200;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

/* ---------- type ---------- */

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.eyebrow--accent {
  color: var(--accent);
}

.h1 {
  font-size: clamp(2.75rem, 1.6rem + 5.4vw, 5.5rem);
}

.h2 {
  font-size: clamp(2rem, 1.35rem + 3vw, 3.75rem);
}

.h3 {
  font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.h4 {
  font-size: clamp(1.1rem, 1.03rem + 0.35vw, 1.3rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.lead {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.6;
  color: var(--muted);
}

.lead strong {
  color: var(--text);
  font-weight: 500;
}

.measure {
  max-width: 58ch;
}

.measure-sm {
  max-width: 44ch;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  padding: 1.0625rem 1.75rem;
  border: 1px solid var(--dark);
  border-radius: 2px;
  background: var(--dark);
  color: var(--bg);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #14100b;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.btn--ghost:hover {
  background: transparent;
  border-color: var(--dark);
  color: var(--text);
}

.btn__arw {
  transition: transform var(--dur) var(--ease);
}

.btn:hover .btn__arw {
  transform: translateX(4px);
}

.btn[disabled] {
  opacity: 0.55;
  pointer-events: none;
}

.tlink {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--text);
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.tlink:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.tlink:hover .btn__arw {
  transform: translateX(4px);
}

/* ---------- header ---------- */

.hdr {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(13, 13, 15, 0.82);
  backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}

.hdr.is-stuck {
  border-bottom-color: var(--line);
}

.hdr__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.75rem;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  text-decoration: none;
  line-height: 1;
}

.brand__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: 0.08em;
}

.brand__sub {
  font-size: 0.6875rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: none;
  gap: 2.25rem;
}

.nav a {
  position: relative;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  padding-block: 0.35rem;
  transition: color var(--dur) var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}

.nav a:hover {
  color: var(--accent);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.hdr__cta {
  display: none;
}

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  margin-inline: auto;
  background: var(--text);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.menu {
  position: fixed;
  inset: 4.75rem 0 auto;
  height: calc(100vh - 4.75rem);
  height: calc(100dvh - 4.75rem);
  z-index: 89;
  background: var(--bg);
  padding: 1rem var(--gut) 2.5rem;
  display: grid;
  align-content: start;
  gap: 0.25rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
    visibility var(--dur);
}

.menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.menu a {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.menu a[aria-current="page"] {
  color: var(--accent);
}

.menu .btn {
  margin-top: 1.25rem;
  justify-content: center;
}

@media (min-width: 62rem) {
  .nav,
  .hdr__cta {
    display: flex;
  }
  .burger,
  .menu {
    display: none;
  }
}

/* ---------- hero ---------- */

.hero {
  border-bottom: 1px solid var(--line);
  /* zlatá záře loga (.crest__glow) přesahuje svůj box; na mobilu by jinak
     vytvářela vodorovné posouvání stránky */
  overflow-x: clip;
}

.hero__in {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
  padding-block: clamp(3rem, 8vw, 6rem) 0;
}

.hero__eyebrow {
  color: var(--accent);
}

.hero h1 {
  margin-bottom: 1.75rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 2.5rem;
}

/* přímý potomek = fotka; logo je zanořené v .crest__in, takže ho tohle mine */
.hero__media > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: 2px;
}

/* logo značky v úvodní obrazovce */
.hero__media .crest__in {
  width: min(100%, 26rem);
  margin-inline: auto;
}

.hero__tag {
  padding: 0.9rem 0 0;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (min-width: 62rem) {
  .hero__in {
    grid-template-columns: 1fr 1fr;
    padding-block: clamp(4rem, 7vw, 7rem);
    align-items: center;
  }
  .hero__media > img {
    aspect-ratio: 4 / 5;
    max-height: 62vh;
  }
  .hero__media .crest__in {
    width: min(100%, 32rem);
  }
}

/* ---------- crest (logo značky) ---------- */

.crest__wrap {
  display: grid;
  justify-items: center;
  /* logo má vlastní prosvětlený okraj, proto menší polstrování */
  padding-block: clamp(1.25rem, 4vw, 3rem);
}

.crest__in {
  position: relative;
  isolation: isolate;
  width: clamp(240px, 62vw, 30rem);
  max-width: 100%;
  aspect-ratio: 1;
}

.crest__img {
  width: 100%;
  height: auto;
}

.crest__glow {
  position: absolute;
  z-index: -1;
  inset: -14%;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgba(201, 162, 115, 0.17),
    rgba(201, 162, 115, 0.06) 52%,
    transparent 76%
  );
  animation: crest-glow 8s ease-in-out infinite;
}

@keyframes crest-glow {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.07);
  }
}

.crest__shine {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  background: linear-gradient(102deg, transparent 40%, rgba(255, 241, 209, 0.3) 50%, transparent 60%);
  background-size: 260% 100%;
  background-position: -30% 0;
  -webkit-mask-image: radial-gradient(closest-side, #000 50%, transparent 88%);
  mask-image: radial-gradient(closest-side, #000 50%, transparent 88%);
}

.crest__in.is-in .crest__shine {
  animation: crest-sweep 1700ms var(--ease) 480ms both;
}

@keyframes crest-sweep {
  0% {
    background-position: -30% 0;
    opacity: 0;
  }
  18%,
  82% {
    opacity: 1;
  }
  100% {
    background-position: 130% 0;
    opacity: 0;
  }
}

/* jemnější nástup než u ostatních bloků */
.crest__in.reveal {
  transform: translateY(26px) scale(0.965);
  filter: blur(5px);
  transition: opacity 780ms var(--ease), transform 780ms var(--ease), filter 780ms var(--ease);
}

.crest__in.reveal.is-in {
  transform: none;
  filter: blur(0);
}

/* ---------- intro ---------- */

.intro {
  display: grid;
  gap: clamp(1.75rem, 5vw, 4rem);
}

.intro__body > * + * {
  margin-top: 1.35rem;
}

@media (min-width: 52rem) {
  .intro {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }
}

/* ---------- section head ---------- */

.shead {
  display: grid;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

@media (min-width: 52rem) {
  .shead {
    grid-template-columns: 1fr auto;
    gap: 2.5rem;
  }
  .shead__aside {
    padding-bottom: 0.5rem;
  }
}

/* ---------- service cards ---------- */

.cards {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

@media (min-width: 40rem) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  padding: 1.5rem 1.5rem 2.25rem;
  text-decoration: none;
  transition: background var(--dur) var(--ease);
}

.card:hover {
  background: var(--panel);
}

.card__media {
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: var(--line);
}

.card__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 400ms var(--ease);
}

.card:hover .card__media img {
  transform: scale(1.04);
}

.card h3 {
  margin-bottom: 0.6rem;
}

.card p {
  color: var(--muted);
  font-size: 0.9688rem;
  margin-bottom: 1.5rem;
}

.card__go {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.card__go .btn__arw {
  transition: transform var(--dur) var(--ease);
}

.card:hover .card__go .btn__arw {
  transform: translateX(4px);
}

/* ---------- band (full-bleed detail) ---------- */

.band {
  margin-block: 0;
}

.band figure {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--gut);
}

.band img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
}

.band figcaption {
  padding: 1.1rem 0 0;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (min-width: 52rem) {
  .band img {
    aspect-ratio: 16 / 7;
    max-height: 52vh;
  }
}

/* ---------- works (selected) ---------- */

.works {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

@media (min-width: 46rem) {
  .works {
    grid-template-columns: repeat(3, 1fr);
  }
}

.work {
  margin: 0;
}

.work__media {
  overflow: hidden;
  background: var(--line);
}

.work img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 450ms var(--ease);
}

.work:hover img {
  transform: scale(1.03);
}

.work figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}

.work figcaption span:last-child {
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: right;
}

/* ---------- process (no numbers) ---------- */

.process {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
}

@media (min-width: 58rem) {
  .process {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
  }
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.75rem;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  bottom: 0.65rem;
  width: 1px;
  background: var(--line);
}

.steps li {
  position: relative;
  padding-bottom: 2.25rem;
}

.steps li:last-child {
  padding-bottom: 0;
}

.steps li::before {
  content: "";
  position: absolute;
  left: -1.75rem;
  top: 0.5rem;
  width: 7px;
  height: 7px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--accent);
}

.steps h3 {
  margin-bottom: 0.4rem;
}

.steps p {
  color: var(--muted);
  font-size: 0.9688rem;
  max-width: 46ch;
}

/* ---------- why (3 cols) ---------- */

.cols3 {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 46rem) {
  .cols3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.col {
  border-top: 1px solid var(--dark);
  padding-top: 1.5rem;
}

.col h3 {
  margin-bottom: 0.65rem;
}

.col p {
  color: var(--muted);
  font-size: 0.9688rem;
}

/* ---------- cta ---------- */

.cta {
  background: var(--panel);
  color: var(--text);
  border-block: 1px solid var(--line);
}

.cta__in {
  display: grid;
  gap: 2.25rem;
  align-items: center;
  padding-block: clamp(4rem, 9vw, 7rem);
}

.cta h2 {
  color: var(--text);
}

.cta p {
  color: var(--muted);
}

.cta .btn {
  justify-self: start;
}

@media (min-width: 58rem) {
  .cta__in {
    grid-template-columns: 1fr auto;
    gap: 3rem;
  }
  .cta .btn {
    justify-self: end;
  }
}

/* ---------- page head ---------- */

.phead {
  padding-block: clamp(3.5rem, 9vw, 6.5rem) clamp(2.5rem, 6vw, 4rem);
}

.phead h1 {
  font-size: clamp(2.5rem, 1.6rem + 4.2vw, 4.5rem);
  margin-bottom: 1.5rem;
}

/* ---------- anchors nav ---------- */

.anchors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.anchors a {
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.anchors a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- alternating service blocks ---------- */

.alt {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3.5rem, 8vw, 6rem);
  border-top: 1px solid var(--line);
  scroll-margin-top: 6rem;
}

.alt__body > * + * {
  margin-top: 1.25rem;
}

.alt__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--line);
}

@media (min-width: 58rem) {
  .alt {
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 6rem);
  }
  .alt--flip .alt__media {
    order: -1;
  }
}

.alt__list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.alt__list li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.alt__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 5px;
  height: 1px;
  background: var(--accent);
}

/* ---------- gallery ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.filter {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.55rem 1.05rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--muted);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease),
    background var(--dur) var(--ease);
}

.filter:hover {
  border-color: var(--dark);
  color: var(--text);
}

.filter[aria-pressed="true"] {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--bg);
}

.gallery {
  display: grid;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 46rem) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 72rem) {
  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

.shot {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--line);
  overflow: hidden;
  cursor: zoom-in;
  text-align: left;
}

.shot img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 450ms var(--ease), opacity var(--dur) var(--ease);
}

.shot:hover img {
  transform: scale(1.04);
}

.shot__meta {
  position: absolute;
  inset: auto 0 0;
  padding: 2.5rem 1rem 0.9rem;
  background: linear-gradient(to top, rgba(22, 22, 26, 0.72), transparent);
  color: #fff;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.shot:hover .shot__meta,
.shot:focus-visible .shot__meta {
  opacity: 1;
}

.shot__title {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
}

.shot__place {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

.shot.is-hidden {
  display: none;
}

.gallery__empty {
  color: var(--muted);
  padding-block: 2rem;
}

/* ---------- lightbox ---------- */

.lb {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #08080a;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur);
}

.lb.is-open {
  opacity: 1;
  visibility: visible;
}

.lb__bar,
.lb__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--gut);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8125rem;
}

.lb__stage {
  display: grid;
  place-items: center;
  padding: 0 var(--gut);
  min-height: 0;
}

.lb__stage img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.lb__cap {
  flex: 1;
  text-align: center;
  color: #fff;
}

.lbb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 0.75rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 2px;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.lbb:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- contact ---------- */

.contact {
  display: grid;
  gap: clamp(3rem, 7vw, 5rem);
  align-items: start;
}

@media (min-width: 58rem) {
  .contact {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

.dl {
  margin: 0;
  border-top: 1px solid var(--line);
}

.dl__row {
  display: grid;
  gap: 0.25rem;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 30rem) {
  .dl__row {
    grid-template-columns: 9rem 1fr;
    gap: 1.5rem;
    align-items: baseline;
  }
}

.dl dt {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.dl dd {
  margin: 0;
}

.dl dd a {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.dl dd a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.mail {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.3rem, 1.1rem + 1.1vw, 1.85rem);
  letter-spacing: -0.02em;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.15rem;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.mail:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.copy {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 0 0.3rem;
  margin-top: 1.25rem;
  cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.copy:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.map {
  width: 100%;
  height: 320px;
  border: 1px solid var(--line);
  border-radius: 2px;
  margin-top: 2.5rem;
  filter: invert(0.92) hue-rotate(180deg) saturate(0.55) brightness(0.95);
}

/* ---------- form ---------- */

.form {
  display: grid;
  gap: 1.25rem;
  border-top: 1px solid var(--dark);
  padding-top: 2rem;
}

.form__two {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 34rem) {
  .form__two {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.85rem 0.95rem;
  width: 100%;
  transition: border-color var(--dur) var(--ease);
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%2397948D' stroke-width='1.4'/%3E%3C/svg%3E");
  color-scheme: dark;
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  padding-right: 2.5rem;
}

.field textarea {
  resize: vertical;
  min-height: 9rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--dark);
}

.field.is-bad input,
.field.is-bad select,
.field.is-bad textarea {
  border-color: #b4472f;
}

.err {
  font-size: 0.8125rem;
  color: #b4472f;
  min-height: 1.1em;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__note {
  font-size: 0.8125rem;
  color: var(--muted);
}

.form__status {
  font-size: 0.9375rem;
  min-height: 1.4em;
}

.form__status[data-state="ok"] {
  color: #3d6b4a;
}

.form__status[data-state="err"] {
  color: #b4472f;
}

/* ---------- footer ---------- */

.ftr {
  background: var(--panel);
  border-top: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.72);
  padding-block: clamp(3.5rem, 7vw, 5rem) 2rem;
  font-size: 0.9375rem;
}

.ftr a {
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.ftr a:hover {
  color: var(--accent);
}

.ftr__grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 46rem) {
  .ftr__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 3rem;
  }
}

.ftr .brand__name {
  color: #fff;
  font-size: 1.25rem;
}

.ftr .brand__sub {
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.45rem;
  display: block;
}

.ftr__desc {
  margin-top: 1.25rem;
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.62);
}

.ftr h2 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1.1rem;
}

.ftr ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.ftr__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
}

.ftr__bottom span:last-child {
  margin-left: auto;
}

/* ---------- 404 ---------- */

.nf {
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: clamp(5rem, 16vw, 10rem);
}

.nf__code {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(4rem, 14vw, 9rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--line);
}

/* ---------- úvodní načtení ---------- */

.pre {
  display: none;
}

html.is-loading,
html.is-loading body {
  overflow: hidden;
}

html.is-loading .pre {
  display: grid;
  place-items: center;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--bg);
  transition: opacity 560ms var(--ease), transform 560ms var(--ease);
}

html.is-ready .pre {
  opacity: 0;
  transform: translateY(-1.5%);
  pointer-events: none;
}

.pre__in {
  display: grid;
  justify-items: center;
  gap: clamp(1.5rem, 4vw, 2.25rem);
  padding: var(--gut);
}

.pre__mark {
  position: relative;
  display: block;
  width: clamp(200px, 52vw, 19rem);
  animation: pre-in 880ms var(--ease) both;
}

.pre__mark img {
  width: 100%;
  height: auto;
}

@keyframes pre-in {
  from {
    opacity: 0;
    transform: scale(0.93);
    filter: blur(7px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

.pre__shine {
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
  background: linear-gradient(102deg, transparent 40%, rgba(255, 241, 209, 0.32) 50%, transparent 60%);
  background-size: 260% 100%;
  -webkit-mask-image: radial-gradient(closest-side, #000 50%, transparent 88%);
  mask-image: radial-gradient(closest-side, #000 50%, transparent 88%);
  animation: crest-sweep 1500ms var(--ease) 460ms both;
}

.pre__bar {
  position: relative;
  display: block;
  width: clamp(120px, 30vw, 12rem);
  height: 1px;
  background: var(--line);
  overflow: hidden;
}

.pre__bar i {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  background: linear-gradient(90deg, transparent, var(--accent));
  animation: pre-bar 1600ms var(--ease) both;
}

@keyframes pre-bar {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 300ms var(--ease), transform 300ms var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal[data-d="1"] {
  transition-delay: 70ms;
}
.reveal[data-d="2"] {
  transition-delay: 140ms;
}
.reveal[data-d="3"] {
  transition-delay: 210ms;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .crest__in.reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
  .crest__glow {
    animation: none;
  }
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translate(-50%, 12px);
  z-index: 130;
  background: var(--dark);
  color: var(--bg);
  font-size: 0.875rem;
  padding: 0.8rem 1.35rem;
  border-radius: 2px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
    visibility var(--dur);
}

.toast.is-on {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* ---------- právní stránky ---------- */

.legal h2 {
  margin: 2.75rem 0 0.85rem;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal p,
.legal li {
  color: var(--muted);
  line-height: 1.7;
}

.legal p {
  margin: 0 0 1rem;
}

.legal ul {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
}

.legal li {
  margin-bottom: 0.4rem;
}

.legal strong {
  color: var(--text);
  font-weight: 500;
}

.legal a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.legal a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.legal__date {
  margin-top: 2.75rem;
  font-size: 0.8125rem;
}

/* ---------- cookie lišta ---------- */

.cc {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 60;
  background: var(--panel);
  border-top: 1px solid var(--line);
  transform: translateY(100%);
  transition: transform var(--dur) var(--ease);
}

.cc.is-on {
  transform: none;
}

.cc__in {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 1.35rem var(--gut);
  display: grid;
  gap: 1.1rem;
  align-items: center;
}

.cc__txt {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--muted);
}

.cc__txt a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.cc__txt a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.cc__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.cc__acts .btn {
  flex: 1 1 auto;
  justify-content: center;
}

@media (min-width: 48rem) {
  .cc__in {
    grid-template-columns: 1fr auto;
    gap: 2rem;
  }

  .cc__acts .btn {
    flex: 0 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc {
    transition: none;
  }
}

/* ---------- nejnovější realizace ---------- */

.news {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

@media (min-width: 46rem) {
  .news {
    grid-template-columns: repeat(3, 1fr);
  }
}

.news__item {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  padding: 1.5rem 1.5rem 2rem;
}

.news__media {
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: var(--line);
}

.news__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.news__title {
  font-family: var(--font-head);
  font-size: 1.0625rem;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}

.news__body p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ---------- sledujte na facebooku ---------- */

.follow {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--panel);
}

@media (min-width: 46rem) {
  .follow {
    grid-template-columns: 1fr auto;
    gap: 2.5rem;
  }
}

.follow h2,
.follow h3 {
  margin-bottom: 0.5rem;
}

.follow p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.65;
  max-width: 42ch;
}

.follow .btn {
  margin-top: 1.25rem;
}

/* okno od Facebooku — bílé, ostylovat nejde, tak mu dám aspoň pevný rám */
.fb {
  position: relative;
  width: 100%;
  max-width: 23.75rem;
  height: 35rem;
  border-radius: 2px;
  overflow: hidden;
  background: var(--panel);
  justify-self: start;
}

/* text leží pod iframem — Facebook si ho při vykreslení sám překryje */
.fb__note {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  animation: fb-pulse 1.6s var(--ease) infinite;
}

@keyframes fb-pulse {
  50% {
    opacity: 0.45;
  }
}

.fb__frame {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (min-width: 46rem) {
  .follow {
    grid-template-columns: 1fr 23.75rem;
  }
  .fb {
    justify-self: end;
  }
}

/* plugin od Facebooku neskládá příspěvky pod ~350 px — na úzkém mobilu mu dám celou šířku */
@media (max-width: 26rem) {
  .fb {
    max-width: none;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fb__note {
    animation: none;
  }
}

