* {
  box-sizing: border-box;
}

:root {
  --bg: #ffffff;
  --soft: #f2f3f4;
  --ink: #20252b;
  --muted: #666d75;
  --line: #dfe3e6;
  --dark: #20252b;
  --dark-2: #2c3239;
  --maturita: #183957;
  --prijimacky: #12a0a1;
  --max: 1160px;
  --radius: 22px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 17px max(24px, calc((100vw - var(--max)) / 2));
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(32, 37, 43, .08);
  backdrop-filter: blur(10px);
}

.brand {
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -.02em;
}

nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
  font-weight: 700;
}

nav a {
  color: #4d545c;
  text-decoration: none;
}

nav a:hover,
.brand:hover,
.footer-inner a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.section {
  padding: 104px 28px;
}

.container {
  width: min(100%, var(--max));
  margin-inline: auto;
}

.narrow {
  width: min(100%, 850px);
}

.hero {
  min-height: 82vh;
  display: flex;
  align-items: center;
  padding-top: 78px;
  padding-bottom: 88px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, .82fr);
  align-items: center;
  gap: clamp(48px, 8vw, 110px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: #b7c0c9;
}

h1, h2, h3 {
  margin-top: 0;
  line-height: 1.06;
  letter-spacing: -.045em;
}

h1 {
  max-width: 650px;
  margin-bottom: 30px;
  font-size: clamp(62px, 8vw, 112px);
  font-weight: 850;
}

h2 {
  margin-bottom: 28px;
  font-size: clamp(40px, 5vw, 66px);
  font-weight: 820;
}

h3 {
  margin-bottom: 18px;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 820;
}

.lead {
  max-width: 720px;
  margin: 0;
  color: #49515a;
  font-size: clamp(20px, 2.2vw, 27px);
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.button-dark {
  background: var(--dark);
  color: white;
}

.button-light {
  border: 1px solid var(--line);
  background: white;
}

.button:hover {
  transform: translateY(-1px);
}

.portrait-wrap {
  margin: 0;
}

.portrait {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: 0 24px 70px rgba(32, 37, 43, .15);
}

.section-soft {
  background: var(--soft);
}

.section p {
  margin: 0 0 20px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 48px 0 36px;
}

.fact {
  min-height: 130px;
  padding: 24px;
  background: #fff;
  border: 1px solid #e7eaec;
  border-radius: var(--radius);
}

.fact strong,
.fact span {
  display: block;
}

.fact strong {
  margin-bottom: 2px;
  font-size: clamp(23px, 2.5vw, 32px);
  line-height: 1.15;
}

.fact span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.references {
  color: var(--muted);
  font-size: 15px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.project-card {
  position: relative;
  overflow: hidden;
  min-height: 410px;
  padding: clamp(32px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 30px;
}

.project-card::before {
  content: "";
  display: block;
  width: 52px;
  height: 7px;
  margin-bottom: 48px;
  border-radius: 999px;
}

.project-maturita::before {
  background: var(--maturita);
}

.project-prijimacky::before {
  background: var(--prijimacky);
}

.project-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project-card p {
  max-width: 520px;
  color: #535a63;
}

.text-link {
  display: inline-block;
  margin-top: 18px;
  font-weight: 850;
  text-decoration: none;
}

.project-maturita .text-link {
  color: var(--maturita);
}

.project-prijimacky .text-link {
  color: #087b7c;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.section-dark {
  background: var(--dark);
  color: #f5f6f7;
}

.media-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: clamp(44px, 7vw, 90px);
}

.media-copy p {
  color: #d2d7dc;
}

.media-list {
  padding-top: 10px;
  font-size: 15px;
  color: #b9c0c7 !important;
}

.studio-wrap {
  margin: 0;
}

.studio {
  width: 100%;
  border-radius: 26px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .28);
}

.section-quote {
  background: var(--soft);
}

.quote-wrap {
  width: min(100%, 940px);
}

blockquote {
  margin: 0;
  font-size: clamp(38px, 5.4vw, 70px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.045em;
}

blockquote span {
  display: block;
  margin-top: 18px;
  color: #737b84;
  font-size: .44em;
  line-height: 1.4;
  letter-spacing: -.02em;
  font-weight: 650;
}

.section-contact {
  background: var(--dark-2);
  color: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 50px;
}

.contact-grid h2 {
  margin-bottom: 18px;
}

.contact-note {
  max-width: 520px;
  justify-self: end;
  color: #c1c8cf;
  font-size: 15px;
}

footer {
  padding: 24px 28px;
  background: #15191d;
  color: #9ea6ae;
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner a {
  color: inherit;
  text-decoration: none;
}

@media (max-width: 820px) {
  body {
    font-size: 17px;
  }

  .topbar {
    align-items: flex-start;
    padding: 14px 20px;
  }

  nav {
    display: none;
  }

  .section {
    padding: 76px 22px;
  }

  .hero {
    min-height: auto;
    padding-top: 58px;
  }

  .hero-grid,
  .media-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    order: 1;
  }

  .portrait-wrap {
    order: 2;
    max-width: 470px;
  }

  .facts,
  .cards {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: auto;
  }

  .studio-wrap {
    order: -1;
  }

  .contact-note {
    justify-self: start;
  }
}

@media (max-width: 500px) {
  .section {
    padding: 62px 18px;
  }

  h1 {
    font-size: clamp(52px, 18vw, 76px);
  }

  .lead {
    font-size: 20px;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .fact,
  .project-card {
    border-radius: 20px;
  }

  .portrait,
  .studio {
    border-radius: 20px;
  }
}

.brand { display: inline-flex; align-items: baseline; gap: 9px; }
.brand-titles { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.inline-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.email-link { color: white; font-size: clamp(24px, 3vw, 38px); line-height: 1.2; font-weight: 800; letter-spacing: -.03em; text-decoration: none; overflow-wrap: anywhere; }
.email-link:hover { text-decoration: underline; text-underline-offset: 6px; }
@media (max-width: 500px) { .brand { flex-direction: column; gap: 0; } .brand-titles { font-size: 9px; } }
