:root {
  --blue: #209dbd;
  --gold: #dfc53a;
  --heading: #484848;
  --nav: #222;
  --text: #8f8f8f;
  --muted: #8f8f8f;
  --panel: #f4f4f4;
  --white: #fff;
  --page-width: 1000px;
  --section-x: clamp(24px, 8vw, 155px);
  --section-y: clamp(64px, 8vw, 110px);
}

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

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: "Open Sans", Arial, sans-serif;
  font-weight: 400;
}

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

a {
  color: inherit;
}

.page {
  width: min(var(--page-width), calc(100% - 32px));
  margin-inline: auto;
  background: var(--white);
}

.hero {
  position: relative;
  min-height: clamp(330px, 60vw, 684px);
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
  background: url("assets/hero.png") center / cover no-repeat;
}

.hero__copy {
  padding: 32px;
  color: var(--white);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 34px;
  background: var(--white);
}

.logo {
  flex: 0 0 auto;
}

.logo img {
  width: 213px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 28px;
}

.nav-toggle {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

h1,
h2,
h3,
.nav a,
.btn {
  font-family: Montserrat, Arial, sans-serif;
}

h1,
h2,
.nav a,
.btn {
  text-transform: uppercase;
  letter-spacing: .06em;
}

h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4.25rem);
  font-weight: 400;
  line-height: 1;
}

.hero p {
  margin: 10px 0 0;
  font-size: clamp(1.0625rem, 2vw, 1.5625rem);
}

.nav a {
  color: var(--nav);
  font-size: .78rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--blue);
}

.nav .phone:hover,
.nav .phone:focus-visible {
  color: var(--white);
}

.nav .phone {
  min-width: 170px;
  padding: 11px 22px;
  background: var(--blue);
  color: var(--white);
  text-align: center;
}

.phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7em;
}

.section {
  padding: var(--section-y) var(--section-x);
  text-align: center;
}

.section--gray {
  background: var(--panel);
}

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

h2 {
  position: relative;
  margin: 0 0 38px;
  color: var(--heading);
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 300;
}

h2::after {
  content: "";
  display: block;
  width: 82px;
  height: 3px;
  margin: 24px auto 0;
  background: var(--blue);
}

.section--classes h2::after {
  background: #ff7067;
}

.section--about h2::after {
  background: #f2d74f;
}

.section p,
.section li {
  color: var(--muted);
  font-size: clamp(.9rem, 1.3vw, 1.05rem);
  line-height: 1.55;
}

.section--intro p {
  max-width: 720px;
  margin: 0 auto;
}

.full-image {
  margin: 0;
}

.full-image img {
  width: 100%;
}

.section--classes {
  padding-block: clamp(70px, 8vw, 105px) clamp(70px, 8vw, 110px);
}

ul {
  max-width: 720px;
  margin: 0 auto;
  padding-left: 26px;
  text-align: left;
}

li + li {
  margin-top: 26px;
}

.section--about {
  padding-bottom: clamp(55px, 6vw, 80px);
}

.about-lead {
  max-width: 760px;
  margin: 0 auto 70px;
}

.profiles {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(50px, 12vw, 140px);
  max-width: 720px;
  margin: 0 auto 74px;
}

.profile img {
  width: 170px;
  height: 170px;
  margin-inline: auto;
  border: 4px solid var(--gold);
  border-radius: 50%;
  object-fit: cover;
}

.profile h3 {
  margin: 26px 0 14px;
  color: #333;
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.35;
}

.profile p {
  margin: 0;
  font-size: clamp(.9rem, 1.3vw, 1.05rem);
  line-height: 1.55;
}

.location {
  margin-top: 12px;
  font-style: normal;
  font-size: .96rem;
}

.location p {
  margin: 0 0 8px;
}

.location a {
  color: var(--blue);
  text-decoration: none;
}

.location a:hover,
.location a:focus-visible {
  text-decoration: underline;
}

.actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 26px;
}

.btn {
  min-width: 195px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  background: var(--blue);
  color: var(--white);
  font-size: .78rem;
  font-weight: 500;
  text-decoration: none;
}

.btn:hover,
.btn:focus-visible {
  filter: brightness(.96);
}

footer {
  padding: 34px 16px 48px;
  color: #aaa;
  font-size: .78rem;
  text-align: center;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .site-header {
    flex-direction: column;
    align-items: center;
    padding: 24px 20px;
  }

  .logo img {
    width: min(213px, 70vw);
  }

  .nav {
    justify-content: center;
    gap: 18px 24px;
  }
}

@media (max-width: 760px) {
  .page {
    width: 100%;
  }

  .hero {
    min-height: 360px;
  }

  .section {
    padding-inline: 24px;
  }

  .profiles {
    grid-template-columns: 1fr;
    gap: 54px;
  }
}

@media (max-width: 620px) {
  .site-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .site-header.is-menu-ready .nav-toggle {
    width: 46px;
    height: 42px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 0;
    background: var(--blue);
    color: var(--white);
    cursor: pointer;
  }

  .nav-toggle__bar {
    width: 22px;
    height: 2px;
    display: block;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
  }

  .site-header.is-menu-open .nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.is-menu-open .nav-toggle__bar:nth-child(2) {
    opacity: 0;
  }

  .site-header.is-menu-open .nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-header.is-menu-ready .nav {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding-top: 20px;
  }

  .site-header.is-menu-ready.is-menu-open .nav {
    display: flex;
  }

  .site-header.is-menu-ready .nav a {
    width: min(100%, 280px);
    padding: 9px 0;
    text-align: center;
  }

  .site-header.is-menu-ready .nav .phone {
    padding: 11px 22px;
  }
}

@media (max-width: 480px) {
  h1 {
    line-height: 1.08;
  }

  .site-header:not(.is-menu-ready) .nav {
    flex-direction: column;
    gap: 14px;
  }

  .nav .phone {
    width: 100%;
    max-width: 260px;
  }

  ul {
    padding-left: 20px;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }
}
