@font-face {
  font-family: "Jost";
  src: url("assets/jost-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  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;
}
@font-face {
  font-family: "Jost";
  src: url("assets/jost-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  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;
}

:root {
  --ground: #4b4e48;
  --text: #ffffff;
  --text-soft: #e4e5df;
  --text-note: #d3d5cd;
  --hairline: rgba(255, 255, 255, .4);
  --button-text: #3a3d38;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: "Jost", "Century Gothic", "Avenir Next", sans-serif;
}

a { color: inherit; }
a:hover { color: #e8e4da; }
a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(420px, 30%) 1fr;
}

.panel {
  padding: clamp(36px, 6vh, 56px) clamp(28px, 3.4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
}

.logo {
  display: block;
  width: min(300px, 78%);
  height: auto;
}

.intro {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 2.6vw, 44px);
  line-height: 1.16;
  font-weight: 300;
  letter-spacing: .005em;
  text-wrap: balance;
}

.lead {
  margin: 0;
  max-width: 26em;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-soft);
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 28px;
  background: #fff;
  color: var(--button-text);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .01em;
  text-decoration: none;
  transition: background-color .2s ease;
}
.button:hover { background: #e8e4da; color: var(--button-text); }

.link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  text-underline-offset: 4px;
}

.note {
  margin: -14px 0 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-note);
}

.contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-style: normal;
  font-size: 18px;
  line-height: 1.4;
}
.contact .name { font-weight: 500; }
.contact a {
  display: flex;
  align-items: center;
  min-height: 32px;
  text-decoration: none;
}
.contact a:hover { text-decoration: underline; text-underline-offset: 4px; }

.photo {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
}
.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 46% 50%;
}

/* Tablet a mobil: fotka nahoře, panel pod ní */
@media (max-width: 860px) {
  .page { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .photo { order: -1; height: 42vh; height: 42svh; min-height: 240px; max-height: 460px; }
  .photo img { object-position: 50% 50%; }
  .panel { gap: 40px; }
}

/* Desktop: fotka zůstává na místě i v nízkém okně, když panel roluje */
@media (min-width: 861px) {
  .photo { position: sticky; top: 0; height: 100vh; height: 100svh; }
}
