@font-face {
  font-family:forum;
  font-style:normal;
  font-weight:400;
  src:url('assets/fonts/forum-regular-cyrillic-extended.woff2') format('woff2');
  unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
  font-display:swap
}

@font-face {
  font-family:forum;
  font-style:normal;
  font-weight:400;
  src:url('assets/fonts/forum-regular-cyrillic.woff2') format('woff2');
  unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
  font-display:swap
}

@font-face {
  font-family:forum;
  font-style:normal;
  font-weight:400;
  src:url('assets/fonts/forum-regular-latin-extended.woff2') format('woff2');
  unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;
  font-display:swap
}

@font-face {
  font-family:forum;
  font-style:normal;
  font-weight:400;
  src:url('assets/fonts/forum-regular-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
  font-display:swap
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #000;
  color: #fff;
  font: 19px/1.4 forum, Georgia, serif;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid #b79752;
  outline-offset: 5px;
}

h1, h2, p {
  margin: 0;
}

.site-header {
  padding: 48px 24px;
}

.header-inner {
  max-width: 800px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-size: 25px;
  letter-spacing: .1em;
  white-space: nowrap;
}

nav {
  display: flex;
  gap: 28px;
  font-size: 18px;
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(430px,560px) minmax(0,1fr);
  height: 507px;
  grid-template-rows: 507px;
}

.hero-image {
  width: 100%;
  height: 507px;
  object-fit: cover;
}

.hero-copy {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #000 url('assets/images/hero-video-preview.jpg') center / cover;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

h1 {
  font-size: 50px;
  line-height: 1.15;
}

.hero-copy p {
  font-size: 25px;
  margin: 34px 0 0;
}

.button {
  background: #000;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 28px;
  font-size: 18px;
  line-height: 24px;
}

.specialists {
  max-width: 804px;
  margin: 0 auto;
  padding-top: 209px;
  display: grid;
  grid-template-columns: repeat(3,223px);
  justify-content: space-between;
  row-gap: 227px;
  grid-auto-rows: 1fr;
}

.card {
  position: relative;
  min-height: 400px;
  padding: 59px 17px 33px;
  background: linear-gradient(#eee,#fff 115px);
  color: #000;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.portrait {
  position: absolute;
  top: -106px;
  left: calc(50% - 75px);
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
}

.card h2 {
  font-size: 28px;
  line-height: 31px;
  font-weight: normal;
  padding-bottom: 13px;
  border-bottom: 1px solid #555;
  width: 150px;
}

.description {
  font-size: 19px;
  line-height: 21px;
  margin: 18px 0 14px;
}

.card .button {
  margin-top: auto;
}

footer {
  padding: 67px 16px 12px;
  text-align: center;
  font-size: 14px;
}

footer p {
  margin: 0;
  line-height: 1.5;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (min-width: 768px) and (max-width: 900px) {
  .specialists {
    margin-inline: 24px;
  }
}

@media (max-width: 767px) {
  .site-header {
    padding: 20px 16px 12px;
  }
  .header-inner {
    flex-direction: column;
    gap: 8px;
  }
  .brand {
    font-size: 24px;
    letter-spacing: .08em;
  }
  nav {
    gap: 26px;
  }
  .hero {
    grid-template-columns: 1fr 1fr;
    height: auto;
    grid-template-rows: auto auto;
  }
  .hero-copy {
    grid-column: 1 / -1;
    grid-row: 1;
    padding: 40px 16px;
  }
  h1 {
    font-size: clamp(30px,8vw,42px);
  }
  .hero-copy p {
    font-size: 22px;
    margin: 20px 0 0;
  }
  .hero-image {
    height: 180px;
  }
  .specialists {
    grid-template-columns: minmax(0,340px);
    grid-auto-rows: 1fr;
    justify-content: center;
    gap: 100px;
    padding: 112px 24px 0;
  }
  .card {
    min-height: 410px;
    padding: 84px 24px 24px;
    background: #fff;
  }
  .portrait {
    width: 140px;
    height: 140px;
    top: -70px;
    left: calc(50% - 70px);
  }
  .card h2 {
    width: 100%;
    line-height: 1.2;
    padding-bottom: 16px;
  }
  .description {
    margin: 20px 0 24px;
    line-height: 1.4;
  }
  .button {
    min-height: 46px;
    padding: 10px 24px;
  }
  footer {
    padding: 44px 16px 28px;
  }
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
}

.hero-copy h1, .hero-copy p {
  text-shadow: 0 1px 8px #000;
}

#top:focus {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-video {
    display: none;
  }
}

/* Align header links with the side images where both labels fit. */
@media (min-width: 1024px) {
  .site-header {
    padding-inline: 0;
  }
  .header-inner {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(430px, 560px) minmax(0, 1fr);
    gap: 0;
  }
  .header-inner .brand {
    grid-column: 1;
    justify-self: center;
  }
  .header-inner nav {
    grid-column: 3;
    justify-self: center;
  }
}
