/* Návrh počítá s písmem Cy (Supertype, komerční). Do vyřešení licence zdarma Manrope (OFL). */
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  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: "Manrope";
  src: url("fonts/manrope-latin-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #000;
  --paper: #fff;
  --muted: #5f666d;
  --accent: #ffe6c2;
  --gutter: 24px;
  --sans: "Cy", "Manrope", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

/* Záhlaví leží přes obsah; po odscrollování se schová a při scrollu nahoru vrátí */
.top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  transition: transform .2s ease-in;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* logo sedí v bílém pruhu úvodní grafiky jako v návrhu */
  padding: clamp(32px, 4.2vw, 60px) clamp(28px, 3.1vw, 44px) 0;
}

.top.is-hidden { transform: translateY(-100%); }
.top:focus-within { transform: none; }

.logo { display: inline-flex; color: var(--ink); }
.logo:focus-visible, .social-icon:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.social-icon { display: inline-flex; color: var(--ink); }
.social-icon:hover { color: var(--muted); }

/* Úvodní obrázek */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 420px;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

.down {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 78px;
  height: 72px;
  background: var(--paper);
  color: var(--ink);
}

.down svg { transition: transform .25s ease; }
.down:hover svg { transform: translateY(3px); }

/* O studiu – samostatná obrazovka na celou výšku, dole šipka na galerii */
.about {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 120px var(--gutter) 130px;
}

.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.about h1 {
  margin: 0;
  font-size: clamp(32px, 3.2vw, 46px);
  font-weight: 300;
  line-height: 1.2;
}

.about .text p {
  margin: 0 0 1.35em;
  font-size: 18px;
  font-weight: 350;
  line-height: 1.75;
  max-width: 62ch;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* Galerie */
.gallery {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 360px;
  width: 100%;
  overflow: hidden;
  background: #e9ecef;
}

.slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .8s ease;
}

.slides img.active { opacity: 1; }

.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / .75);
  color: var(--ink);
  cursor: pointer;
  opacity: .85;
  transition: opacity .2s, background .2s;
}

.nav:hover, .nav:focus-visible { opacity: 1; background: var(--paper); }
.prev { left: var(--gutter); }
.next { right: var(--gutter); }

.counter {
  position: absolute;
  right: var(--gutter);
  bottom: 18px;
  padding: 4px 10px;
  background: rgb(255 255 255 / .8);
  font-size: 14px;
  letter-spacing: .05em;
}

/* Patička */
.bottom {
  display: grid;
  grid-template-columns: 1fr repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
  padding: 36px var(--gutter) 44px;
}

.bottom .logo { margin-top: 2px; }

.contact h2 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
}

.contact p {
  margin: 0;
  font-size: 14px;
}

.contact a { text-decoration: none; }
.contact a:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .top { padding: 28px 24px 0; }
  .hero { min-height: 360px; }
  .hero img { object-position: 22% top; }
  .about { padding: 90px 16px 110px; }
  .about-inner { grid-template-columns: 1fr; gap: 24px; }
  .about .text p { font-size: 17px; line-height: 1.65; }
  .nav { width: 42px; height: 42px; }
  .prev { left: 12px; }
  .next { right: 12px; }
  .bottom { grid-template-columns: 1fr 1fr; padding: 32px 16px 40px; }
  .bottom .logo { grid-column: 1 / -1; }
  :root { --gutter: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slides img, .top { transition: none; }
}
