/* ===== Barvy a typografie ===== */
:root {
  --font-head: "Momo Trust Display", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius: 20px;
  --wrap: 1200px;

  /* světlý motiv – bílá a teplé šedé, červená pro nadpisy, tlačítka a akcenty */
  --red: #E30613;
  --bg: #FFFFFF;
  --bg-alt: #F5F4F2;
  --surface: #FFFFFF;
  --text: #2A2A28;
  --muted: #6F6C67;
  --soft: #A09C95;
  --line: #E5E3DF;
  --line-strong: #C9C5BE;
  --accent: var(--red);
  --accent-ink: #FFFFFF;
  --hero-bg: #FFFFFF;
  --hero-text: var(--text);
  --contact-bg: #FFFFFF;
  --contact-text: var(--text);

  color-scheme: light;
}

/* ===== Základ ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-synthesis: none; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.01em; color: var(--red); }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.3rem); font-weight: 400; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 400; }
h3 { font-size: 1.15rem; font-weight: 400; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

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

/* ===== Tlačítka ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5em;
  padding: .95em 1.6em;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 600 1rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px var(--red); }

/* ===== Navigace ===== */
.nav {
  position: fixed; inset: 0 0 auto;
  z-index: 50;
  background: var(--red);
  color: #fff;
  transition: box-shadow .3s;
}
.nav.is-scrolled { box-shadow: 0 6px 24px -12px rgba(42,42,40,.45); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: block; flex-shrink: 0; }
.logo img { height: 40px; width: auto; transition: transform .2s; }
.logo:hover img { transform: scale(1.04); }
.logo--footer img { height: 34px; }
.nav__menu { display: flex; align-items: center; gap: .35rem; }
.nav__menu a {
  padding: .55em 1.1em;
  border-radius: 999px;
  text-decoration: none; font-weight: 500; color: #fff;
  transition: background .2s, color .2s;
}
/* zvýraznění při najetí a u sekce, na které právě jste */
.nav__menu a:hover, .nav__menu a.is-active { background: #fff; color: var(--red); }
.nav__toggle { display: none; }
/* přepínač jazyka CZ | EN – aktuální jazyk je jen text, druhý je odkaz */
.nav__lang {
  display: flex; align-items: center; gap: .1rem;
  margin-left: .6rem; padding-left: .6rem;
  border-left: 1px solid rgba(255,255,255,.45);
}
.nav__menu .nav__lang-link { padding: .5em .7em; font-size: .85rem; font-weight: 600; letter-spacing: .04em; }
.nav__lang span.nav__lang-link { border-radius: 999px; box-shadow: inset 0 0 0 1.5px #fff; }

/* ===== Úvod ===== */
.hero {
  position: relative;
  /* na pozadí úvodu je video (.hero__video), dole přechod do bílé (.hero::after) */
  background: var(--hero-bg);
  color: var(--hero-text);
  padding-top: 72px;
  overflow: hidden;
  container-type: inline-size; /* 100cqw = šířka stránky bez posuvníku */
}
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 55%, #fff 100%);
  pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  min-height: min(88vh, 820px);
  padding-block: 3rem 4rem;
}
/* nápis vlevo, text vpravo – obojí jako dvojice uprostřed stránky, bez velké mezery mezi nimi */
.hero__main { display: grid; grid-template-columns: auto auto; justify-content: center; align-items: stretch; column-gap: clamp(2.5rem, 5vw, 4.5rem); }
.hero__text { max-width: 640px; }
.hero__note { justify-self: center; margin: 0; text-align: center; font: 400 .95rem/1.4 var(--font-head); color: var(--muted); }
/* nápis ANT / media / .cz vlevo od textu */
.hero__title {
  margin: 0;
  font-size: clamp(4.5rem, 13vw, 10.5rem);
  line-height: .74;
  letter-spacing: -0.02em;
}
.hero__title span { display: block; }
/* „ant“ převzaté z loga (SVG), plné v červené */
.hero__ant svg { display: block; height: 1.05em; margin-bottom: .06em; width: auto; fill: var(--red); }
.hero__title span:nth-child(2) { margin-top: 2px; } /* malá mezera mezi ANT a media */
.hero__title span + span { font-size: .6em; padding-left: 14px; } /* media a .cz menší než ANT, posunuté, aby byla vidět tečka */
.hero__title span:nth-child(3) { color: #8E8E8D; } /* .cz 50% černá (černá z loga #1D1D1B smíchaná napůl s bílou), media zůstává červené */
/* 6 rámečků se službami: liché plná červená, sudé 60% červená */
/* text vpravo od ANTmedia.cz: hlavní věta, podtitul a psaný odkaz na kontakt */
.hero__claim { align-self: center; }
.hero__lead { margin: 0 0 .9rem; font: 400 clamp(2rem, 4vw, 3.4rem)/1.08 var(--font-head); color: var(--red); letter-spacing: -0.01em; }
.hero__lead > span { display: block; } /* každé slovo na vlastním řádku */
.hero__sub { margin: 0 0 1.1rem; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--text); }
.hero__script {
  display: inline-block; font: 500 clamp(1.6rem, 2.6vw, 2.2rem)/1.1 "Caveat", cursive;
  color: var(--red); text-decoration: none; transform: rotate(-2deg); transform-origin: left center;
  transition: transform .25s;
}
.hero__script:hover, .hero__script:focus-visible { text-decoration: underline; text-underline-offset: .15em; transform: rotate(-2deg) translateX(4px); }
/* Oslovíte… Zaujmete… Přesvědčíte… se vypíšou jako na psacím stroji (skript v script.js).
   Písmena jsou od začátku na svém místě, jen neviditelná, takže se text při psaní neposouvá. */
.tw-char { opacity: 0; }
.tw-char.is-on { opacity: 1; }
.tw-caret { position: relative; display: inline-block; width: 0; height: 1em; vertical-align: -.12em; }
.tw-caret::after { content: ""; position: absolute; left: .05em; top: 0; bottom: 0; width: .07em; background: currentColor; animation: tw-blink 1s steps(1) infinite; }
.tw-caret.is-typing::after { animation: none; } /* při psaní kurzor svítí, bliká až v pauze */
.tw-caret.is-gone { opacity: 0; transition: opacity .6s; }
@keyframes tw-blink { 50% { opacity: 0; } }
/* po dopsání: věta se objeví ze ztracena, o 0,3 s později naskočí ručně psaný text ze zvětšení
   (scale se skládá s otočením textu, takže zůstane nakloněný) */
.hero__claim.is-intro .hero__sub,
.hero__claim.is-intro .hero__script { opacity: 0; }
.hero__claim.show-sub .hero__sub { opacity: 1; transition: opacity 1s ease; }
.hero__claim.show-script .hero__script { opacity: 1; transform-origin: center; animation: hero-zoom-in .65s cubic-bezier(.2, .9, .3, 1.15) both; }
@keyframes hero-zoom-in {
  from { opacity: 0; scale: 3.5; }
  60%  { opacity: 1; }
  to   { opacity: 1; scale: 1; }
}

/* ===== Sekce ===== */
.section { padding-block: clamp(4.5rem, 10vw, 8rem); }
.section--alt { background: var(--bg-alt); }
/* červené pozadí (portfolio): nadpis, kruh a filtry jsou bílé, aby byly vidět */
.section--red { background: var(--red); color: #fff; }
.section--red h2 { color: #fff; }
#portfolio h2, #studio h2, #kontakt h2 { font: 500 clamp(3rem, 6vw, 4.8rem)/1 "Caveat", cursive; } /* psací písmo, větší, aby opticky odpovídalo ostatním nadpisům */
.section--red .chapter__ant { background: #fff; }
.section--red .filter { border-color: #fff; color: #fff; }
.section--red .filter.is-active { background: #fff; color: var(--red); border-color: #fff; }
/* samostatný text „Proč si zákazníci vybírají právě nás?“ mezi službami a portfoliem */
.why { padding-top: 0; } /* navazuje na bílé služby, ať mezi nimi není dvojitá mezera */
.why__inner { max-width: 760px; text-align: center; text-wrap: balance; } /* rovnoměrně dlouhé řádky, žádné osamocené slovo */
.why h2 { font: 500 clamp(2.9rem, 5.8vw, 4.6rem)/.9 "Caveat", cursive; margin-bottom: .55em; transform: rotate(-2deg); } /* psací písmo jako v úvodu, mírně nakloněné */
.why p { margin: 0 auto .6em; font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.why strong { color: var(--red); }
.why__script { font: 500 calc(1.45em + 1pt)/1 "Caveat", cursive; color: var(--red); } /* psací písmo, větší, aby opticky odpovídalo okolnímu textu */
.why__balanced { display: block; text-wrap: balance; } /* věta pod psaným textem: řádky stejně dlouhé */
.why__script--big { display: inline-block; margin-top: calc(1.2em - 6pt); font-size: calc(1.45em + 9pt); } /* o 8 bodů větší, mezera nad ním zůstává stejná („Our goal is simple:“) */
.section--contact { background: var(--contact-bg); color: var(--contact-text); }

/* nadpis kapitoly s ilustrací mravence
   Animaci vložte do <div class="chapter__ant"> jako <video autoplay muted loop playsinline> nebo <img>,
   zástupný kruh pak zmizí sám. */
.chapter {
  display: flex; align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.chapter h2 { margin: 0; max-width: 14em; font-size: clamp(2.3rem, 4.6vw, 3.6rem); } /* nadpisy sekcí o čtvrtinu větší */
.chapter__ant {
  flex: none;
  width: clamp(88px, 12vw, 160px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--red);
  animation: ant-idle 4s ease-in-out infinite;
}
.chapter__ant:has(> *) { background: none; border-radius: 0; animation: none; }
.chapter__ant > * { display: block; width: 100%; height: 100%; object-fit: contain; }
/* kruh vpravo */
.chapter--right { justify-content: space-between; }
.chapter--right .chapter__ant { margin-right: clamp(0px, 8vw, 7rem); }
@keyframes ant-idle { 50% { transform: translateY(-8px); } }

/* služby */
.services { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 1.25rem; }
/* nadpis stojí na horní hraně červeného rámečku */
.card { display: flex; flex-direction: column; transition: transform .25s; }
.card:hover { transform: translateY(-4px); }
.card__title { margin: 0 0 calc(-.12em - 1px); padding-left: 2rem; line-height: 1; font-size: 1.35rem; text-transform: uppercase; }
.card__box {
  flex: 1;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--red);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.75rem 2rem 2rem;
}
/* grafika na pozadí (--card-bg na <article>): čb fotka, přes ni červená na 90 %,
   po najetí myší se červená ztenčí na 75 % a grafika víc prosvítne */
.card__box::before,
.card__box::after { content: ""; position: absolute; inset: 0; }
.card__box::before {
  z-index: -2;
  background: var(--card-bg, none) center / cover no-repeat;
  filter: grayscale(1);
}
.card__box::after {
  z-index: -1;
  background: var(--red);
  opacity: .9;
  transition: opacity .4s;
}
.card:hover .card__box::after { opacity: .75; }
.card__box p { color: rgba(255,255,255,.88); margin: 0; font-size: .97rem; }
.card__box strong { display: block; margin-bottom: .6em; } /* mezera mezi tučnou první větou a zbytkem textu */

/* portfolio */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter {
  font: 500 .95rem/1 var(--font-body);
  padding: .7em 1.2em;
  border-radius: 999px;
  border: 1px solid var(--red);
  background: transparent;
  color: var(--red);
  cursor: pointer;
}
.filter.is-active { background: var(--red); color: #fff; border-color: var(--red); }
/* jedna řada čtverců bez mezer přes celou šířku stránky, šipky leží přes okraje */
.slider { position: relative; --tile: min(381px, 27vw); /* o 25 % menší než původních 508 px / 36vw */ }
.slider__arrow, .lightbox__arrow {
  position: absolute; top: 50%; z-index: 2;
  translate: 0 -50%;
  display: grid; place-items: center;
  width: 52px; height: 52px; padding: 0;
  border-radius: 50%;
  border: 1px solid var(--red);
  background: #fff;
  color: var(--red);
  cursor: pointer;
  transition: background-color .2s, color .2s, opacity .2s;
}
.slider__arrow--prev { left: 16px; }
.slider__arrow--next { right: 16px; }
.slider__arrow svg, .lightbox__arrow svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.slider__arrow:hover:not(:disabled), .lightbox__arrow:hover { background: var(--red); color: #fff; }
.slider__arrow:disabled { opacity: 0; pointer-events: none; }
.works {
  display: flex;
  gap: 12px; /* mezera mezi ukázkami */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.works::-webkit-scrollbar { display: none; }
.work.is-off { display: none; }
.work {
  position: relative;
  display: block;
  flex: 0 0 var(--tile);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px; /* mírně zaoblené rohy náhledů */
  isolation: isolate; /* ořízne do zaoblení i zvětšovaný obrázek při najetí myší (Safari) */
  scroll-snap-align: start;
  text-decoration: none;
  color: #fff;
}
.work__media, .work img, .work video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s;
}
.work__media {
  background:
    radial-gradient(circle at 30% 30%, hsl(var(--h1) 8% 84%), transparent 60%),
    linear-gradient(135deg, hsl(var(--h1) 6% 70%), hsl(var(--h2) 6% 46%));
}
.work__media::after {
  content: "Sem vložte ukázku";
  position: absolute; top: 1rem; right: 1rem;
  font: 500 .72rem/1 var(--font-body);
  padding: .5em .8em; border-radius: 999px;
  background: rgba(255,255,255,.18);
}
a.work:hover .work__media, a.work:hover img, a.work:hover video { transform: scale(1.05); } /* grafika je statická, zoom jen u klikacích */
/* ukázky jsou černobílé, barvu dostanou po najetí myší;
   na dotykových zařízeních zůstávají barevné */
@media (hover: hover) {
  .work__info { z-index: 2; }
  .work img, .work video { filter: grayscale(1); transition: transform .6s, filter .4s; }
  .work:hover img, .work:hover video, .work:focus-visible img, .work:focus-visible video { filter: none; }
}
.work__info {
  position: absolute; inset: auto 0 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(42,42,40,.55));
}
.work__info span { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; opacity: .85; }
.work__info h3 { margin: .3rem 0 0; color: inherit; }

/* plovoucí okno (video z YouTube, zvětšená fotka, galerie grafiky) */
.lightbox {
  width: min(1100px, 92vw); max-width: none; max-height: none;
  padding: 0; border: 0; background: transparent; overflow: visible;
}
.lightbox::backdrop { background: rgba(20, 20, 20, .88); }
.lightbox__body iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); background: #000; }
.lightbox__body img { display: block; max-width: 100%; max-height: 85vh; margin-inline: auto; border-radius: var(--radius); }
.lightbox__close {
  position: absolute; right: 0; bottom: calc(100% + 12px);
  display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%;
  background: #fff; color: var(--red);
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.lightbox__close:hover { background: var(--red); color: #fff; }
.lightbox__close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
/* galerie: šipky po stranách okna a počítadlo vlevo nahoře, u jednoho obrázku a u videa skryté */
.lightbox__arrow--prev { left: 12px; }
.lightbox__arrow--next { right: 12px; }
.lightbox__count {
  position: absolute; left: 0; bottom: calc(100% + 12px);
  margin: 0; line-height: 44px;
  color: #fff; font-size: .95rem; letter-spacing: .08em;
}
.lightbox:not(.is-gallery) .lightbox__arrow, .lightbox:not(.is-gallery) .lightbox__count { display: none; }
@media (min-width: 1280px) {
  .lightbox__arrow--prev { left: auto; right: calc(100% + 24px); }
  .lightbox__arrow--next { right: auto; left: calc(100% + 24px); }
}
/* vlastní kurzor nad oknem nefunguje (okno leží nad ním), tak tam vrátíme běžný */
.has-cursor .lightbox, .has-cursor .lightbox * { cursor: auto; }
.has-cursor .lightbox__close, .has-cursor .lightbox__arrow { cursor: pointer; }
.lightbox-open .cursor { display: none; }

/* reference – běžící pás log */
.refs {
  background: #EEEDEB; /* šedé pozadí celé sekce s logy */
  color: var(--text);
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  overflow: hidden;
}
.marquee {
  display: flex;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee:hover .marquee__group { animation-play-state: paused; }
.marquee__group {
  display: flex; align-items: center; flex-shrink: 0;
  gap: 4.5rem; padding: 0 4.5rem 0 0; margin: 0;
  list-style: none;
  animation: marquee 35s linear infinite;
}
.marquee__group img {
  /* jednotná velikost: každé logo má zhruba stejnou plochu (široká nižší, čtvercová vyšší);
     --r spočítá script.js z poměru stran loga, --fix je ruční doladění v HTML (1.2 = o 20 % větší) */
  --logo: 84px;
  height: clamp(28px, calc(var(--logo) * var(--r, .53) * var(--fix, 1)), 96px); width: auto; max-width: none;
  filter: brightness(0); /* sjednotí loga do jedné barvy */
  opacity: .5;
  transition: opacity .2s, transform .2s;
}
/* vícebarevná loga s detaily: odstíny šedé místo jednobarevné siluety */
.marquee__group img.is-tonal { filter: grayscale(1) contrast(1.2); opacity: .8; }
.marquee__group a:hover img { opacity: .8; transform: scale(1.06); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* naše studio – fotka vlevo, text vpravo */
.studio { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
/* výřez bez pozadí – fotka stojí přímo na šedé sekci, nic se neořezává */
.studio__photo img { display: block; width: 100%; height: auto; }
.people { display: grid; gap: 1.75rem; }
.person h3 { margin: 0 0 .35rem; font-size: 1.3rem; }
.person p { margin: 0; color: var(--muted); font-size: .97rem; max-width: 30em; }

/* kontakt */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact__text > p { font-size: 1.1rem; opacity: .85; }
.contact__list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.2rem; }
.contact__list span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; opacity: .7; }
.contact__list a { font: 400 1.25rem/1.4 var(--font-head); text-decoration: none; color: var(--red); }
.contact__list a:hover { text-decoration: underline; }
/* fakturační údaje dvou lidí vedle sebe, na úzkém displeji pod sebou */
.contact__billing { display: flex; flex-wrap: wrap; gap: .9rem 2.5rem; }
.contact__billing p { margin: 0; flex: 1 1 11rem; }
.contact__billing strong { font-weight: 700; color: var(--red); }
/* ikony sociálních sítí */
/* podporujeme: charitativní projekty nad patičkou */
.charity { background: #EEEDEB; padding-block: clamp(3rem, 6vw, 4.5rem); }
.charity__inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 5vw, 4rem); }
.charity h2 { font: 500 clamp(2.2rem, 4.4vw, 3.4rem)/1 "Caveat", cursive; margin: 0 0 .5em; }
.charity p { margin: 0; max-width: 34em; }
.charity strong { color: var(--red); }
.charity__logos { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; justify-content: center; gap: clamp(2rem, 4vw, 3.5rem); }
.charity__logos a { display: block; }
.charity__logos img { display: block; height: 96px; width: auto; transition: transform .2s; }
.charity__logos a:hover img { transform: scale(1.04); }
.charity__logos img[src*="deti-detem"] { height: 110px; } /* téměř čtvercové logo, o kousek vyšší, aby opticky ladilo s Dobrým místem */
@media (max-width: 760px) {
  .charity__inner { grid-template-columns: 1fr; }
  .charity__logos img { height: 76px; }
}
.social { display: flex; gap: .75rem; margin-top: 2rem; }
/* partnerství pod ikonami sociálních sítí */
.partner { margin-top: 4.5rem; padding-top: 2rem; border-top: 2px solid var(--red); } /* červená linka nad logem partnera */
.partner__title { margin: 1.5rem 0 0; font: 500 2rem/1 "Caveat", cursive; color: var(--red); } /* psací písmo jako nadpisy */
.partner__logos { display: flex; align-items: center; flex-wrap: wrap; gap: 1.5rem 2.25rem; }
.partner a { display: inline-block; }
.partner img { display: block; height: 64px; width: auto; transition: transform .2s; }
.partner a:hover img { transform: scale(1.04); }
.partner img.partner__badge { height: 80px; } /* kulatý znak Sigmy, o kousek vyšší, aby opticky ladil s logem komory */
.social a {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--red);
  color: var(--red);
  transition: background-color .2s, color .2s;
}
.social a:hover { background: var(--red); color: #fff; }
.social svg { width: 22px; height: 22px; fill: currentColor; }
.form {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: grid; gap: 1.1rem;
}
.form label { display: grid; gap: .4rem; font-weight: 500; font-size: .92rem; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; font-size: 1rem;
  padding: .85em 1em;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-alt);
  color: var(--text);
  width: 100%;
}
.form textarea { resize: vertical; }
/* nahrání podkladů: tlačítko výběru souborů v barvách webu */
.form input[type="file"] { padding: .6em; cursor: pointer; }
.form input[type="file"]::file-selector-button {
  font: 600 .9rem/1 var(--font-body); margin-right: .9em; padding: .7em 1.1em;
  border: 1px solid var(--red); border-radius: 999px; background: #fff; color: var(--red); cursor: pointer;
  transition: background-color .2s, color .2s;
}
.form input[type="file"]::file-selector-button:hover { background: var(--red); color: #fff; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.form .btn { justify-self: start; }
/* zaškrtávátko „Nejsem robot“ */
.form .form__robot {
  display: inline-flex; align-items: center; gap: .75rem; justify-self: start;
  padding: .85rem 1.1rem; border: 1px solid var(--line, #ddd); border-radius: 10px;
  background: #fff; cursor: pointer;
}
.form .form__robot input { width: 22px; height: 22px; margin: 0; padding: 0; accent-color: var(--red); cursor: pointer; }
.form__note { margin: 0; font-size: .9rem; color: var(--muted); min-height: 1.4em; }
.form__hint { margin-top: -.1rem; font-size: .8rem; font-weight: 400; color: var(--muted); } /* drobná poznámka pod polem, např. limit podkladů */
.form__note.is-ok { color: #1F7A3D; font-weight: 600; }
.form__note.is-error { color: var(--red); font-weight: 600; }
.form .btn[disabled] { opacity: .6; cursor: wait; transform: none; box-shadow: none; }
/* past na roboty: pole mimo obrazovku, člověk ho nevidí ani na něj neskočí tabulátorem */
.form .form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* patička */
.footer { padding-block: 2.5rem; background: var(--red); color: #fff; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer p { margin: 0; color: #fff; font-size: .9rem; }
.footer nav { display: flex; gap: 1.5rem; }
.footer nav a { text-decoration: none; color: #fff; opacity: .85; font-size: .9rem; }
.footer nav a:hover { opacity: 1; text-decoration: underline; }

/* animace při scrollu */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ===== Responzivita ===== */
@media (max-width: 960px) {
  .services { grid-template-columns: 1fr 1fr; }
  .contact, .studio { grid-template-columns: 1fr; }
  .hero__inner { row-gap: 2.5rem; }
  .hero__title { padding-top: .2em; } /* písmena při malém řádkování přečnívají nahoru, ať nezajedou pod lištu */
  .hero__main { grid-template-columns: minmax(0, 1fr); row-gap: 2.5rem; }
  .studio__photo { width: min(100%, 420px); margin-inline: auto; }
}

@media (max-width: 760px) {
  .nav__toggle {
    display: grid; gap: 6px;
    width: 44px; height: 44px; place-content: center;
    background: none; border: 0; cursor: pointer; padding: 0;
  }
  .nav__toggle span { width: 24px; height: 2px; background: #fff; transition: transform .3s; }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .logo img { height: 34px; }
  .nav__menu {
    position: fixed; inset: 72px 0 auto;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--red);
    padding: .5rem 16px 1.5rem;
    transform: translateY(-120%);
    visibility: hidden;
    transition: transform .3s, visibility .3s;
  }
  .nav.is-open .nav__menu { transform: none; visibility: visible; }
  .nav__menu a { padding: .9rem 1rem; font-size: 1.1rem; }
  .nav__lang { margin: .6rem 0 0; padding: 1rem 0 0 .4rem; border-left: 0; border-top: 1px solid rgba(255,255,255,.3); gap: .4rem; }
  .nav__menu .nav__lang-link { padding: .55rem 1rem; font-size: 1rem; }

  .hero__inner { min-height: 78vh; padding-block: 2rem 3rem; }
  .services { grid-template-columns: 1fr; }
  .slider { --tile: 61.5vw; }
  .services { grid-auto-rows: auto; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .marquee__group { gap: 3rem; padding-right: 3rem; }
  .marquee__group img { --logo: 62px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; padding-inline: 16px; }
  .marquee__group { flex-wrap: wrap; flex-shrink: 1; justify-content: center; row-gap: 2rem; padding: 0; }
  .marquee__group[aria-hidden] { display: none; }
}

/* ===== Vlastní kurzor – kruh v inverzních barvách (jen pro myš, zapíná ho script.js) ===== */
.has-cursor, .has-cursor * { cursor: none; }
.has-cursor input, .has-cursor textarea { cursor: text; }
.cursor {
  position: fixed; top: 0; left: 0;
  z-index: 1000;
  pointer-events: none;
  mix-blend-mode: difference; /* obrací barvy pod kruhem */
  opacity: 0;
  transition: opacity .2s;
}
.cursor.is-visible { opacity: 1; }
.cursor__dot {
  width: 20px; height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  background: #fff;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), background-color .2s, opacity .2s;
}
.cursor.is-hover .cursor__dot { transform: scale(3.2); }
.cursor.is-text .cursor__dot { transform: scale(.4); }
.cursor.is-down .cursor__dot { transform: scale(.75); }
.cursor.is-hover.is-down .cursor__dot { transform: scale(2.8); }
/* na červené horní a spodní liště černý kruh bez inverze, při zvětšení průsvitný */
.cursor.is-dark { mix-blend-mode: normal; }
.cursor.is-dark .cursor__dot { background: #2A2A28; }
.cursor.is-dark.is-hover .cursor__dot { opacity: .35; }

/* slovo se nerozdělí na konci řádku (např. e-shopy u spojovníku) */
.nowrap { white-space: nowrap; }
