@font-face {
  font-family: Roboto;
  src: local('Roboto Bold'), local('Roboto-Bold'),
      url('/fonts/Roboto-Bold.woff2') format('woff2'),
      url('/fonts/Roboto-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Roboto;
  src: local('Roboto'), local('Roboto-Regular'),
      url('/fonts/Roboto-Regular.woff2') format('woff2'),
      url('/fonts/Roboto-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000;
  --gray: #e5e5e5;
  --light: rgba(255,255,255,0.87);
  --lightGray: #f8f8f9;
  --red: #eb1023;
  --text: #222;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

a,
button {
  cursor: pointer;
}

body {
  color: var(--text);
  font: 400 16px Roboto, Verdana, sans-serif;
  line-height: 1.5;
}

body,
nav ul {
  margin: 0;
}

h1,
h2,
h3,
h4,
strong,
nav a {
  font-weight: 700;
}

header {
  padding: 0 1.5rem;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100vw;
}

header a {
  color: var(--black);
}

header.small {
  background-color: var(--gray);
}

header.small a {
  color: var(--black);
}

nav a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
}

nav ul,
section ul,
#menuToggle {
  padding: 0;
}

p:last-child {
  margin-bottom: 0;
}

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

section .number {
  color: rgba(173,176,182,0.2);
  font-size: 65px;
  font-weight: bold;
  line-height: 75px;
}

#caption.sub {
  bottom: 1.5rem;
  left: 0;
  text-align: center;
  width: 100%;
}

#caption:not(.sub) {
  align-items: center;
  display: flex;
  height: 100%;
  top: 0;
  z-index: 5;
}

#home section h2,
#home section h3,
#home section h4 {
  line-height: 1.2;
}

#home section h2 {
  font-size: 56px;
  line-height: 66px;
  margin: 0 0 0.5rem;
}

#home section h3 {
  font-size: 34px;
  line-height: 44px;
  margin: 0;
}

#home section h4:not(.priceListTitle) {
  font-size: 18px;
  margin: 0.5rem 0;
}

#home section h4.priceListTitle {
  font-size: 1.4rem;
  margin: 0;
}

#home #hero {
  height: 100vh;
}

#hero,
.titleContent {
  position: relative;
}

#hero h1 {
  color: var(--white);
  font-size: clamp(3rem, 4rem, 8vw);
  line-height: 1.15;
  margin: 0 0 1rem;
}

#hero p {
  color: var(--light);
  font-size: 1.2rem;
}

#hero a,
.btn {
  background-color: var(--red);
  border-radius: 99px;
  color: var(--white);
  display: inline-block;
  font-weight: bold;
  padding: 0.8rem 2rem;
  text-decoration: none;
}

#hero img {
  object-fit: cover;
  object-position: right;
}

#hero img,
#heroBg {
  height: 100%;
  width: 100%;
}

#heroBg {
  background-color: rgba(0,0,0,0.5);
  top: 0;
}

#logo {
  display: inline-block;
}

#logo img {
  width: auto;
}

.absolute {
  position: absolute;
}

.container {
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.container.narrow {
  max-width: 1000px;
}

.container:not(.narrow) {
  max-width: 1280px;
}

.gridCenter {
  align-items: center;
  display: grid;
  height: 100%;
  width: 100%;
}

.imageAside,
.priceList,
.sectionList {
  display: grid;
  gap: 1.5rem;
}

.priceBall {
  background-color: var(--white);
  border-radius: 50%;
  color: var(--black);
  display: inline-block;
  height: 80px;
  margin: 1.5rem 0;
  width: 80px;
}

.priceListItem {
  background-color: rgb(35, 38, 45);
  color: var(--white);
  padding: 1.5rem;
}

.textCenter {
  text-align: center;
}

.titleContent {
  background-color: var(--lightGray);
  text-align: center;
}

.titleContent:after {
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 20px solid var(--lightGray);
  content: '';
  height: 0;
  left: calc(50% - 20px);
  position: absolute;
  top: 100%;
  width: 0;
}

.titleContent .subtitle {
  color: #888;
  font-size: 26px;
  line-height: 36px;
}

@media screen and (min-width: 1000px) {
  header {
    align-items: center;
    display: flex;
    justify-content: space-between;
  }

  header.small img {
    height: 60px;
  }

  header:not(.small) img {
    height: 100px;
    margin-top: 1rem;
  }

  header:not(.small) nav a.active,
  header:not(.small) nav a:hover {
    color: var(--light);
  }

  header:not(.small) nav a:not(:hover):not(.active) {
    color: var(--white);
  }

  nav li {
    display: inline-block;
  }

  nav li.active a {
    color: var(--red);
    border-color: var(--red);
  }

  nav li:not(.active) a {
    border-color: transparent;
  }

  nav li a {
    border-bottom: 2px solid;
  }

  #menuToggle {
    display: none;
  }

  .imageAside {
    grid-template-columns: 1fr 20vw;
  }

  .imageAside img {
    height: 100%;
    object-fit: cover;
    width: 100%;
  }

  .priceList {
    grid-template-columns: repeat(3, 1fr);
  }

  .sectionList {
    grid-template-columns: 1fr 1fr;
  }

  .container.sectionList {
    gap: 7rem;
  }
}

@media screen and (max-width: 1000px) {
  header:not(.small) {
    background-color: var(--gray);
  }

  nav:not(.open) {
    display: none;
  }

  nav li {
    border-top: 1px solid rgba(0,0,0,0.2);
    display: block;
  }

  #logo img {
    height: 60px;
  }

  #menuToggle {
    align-items: center;
    background-color: transparent;
    border: none;
    display: flex;
    height: 60px;
    position: absolute;
    right: 1.5rem;
    top: 0;
    width: 48px;
  }
}

@media screen and (max-width: 1000px) and (min-width: 640px) {
  .priceList {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 750px) {
  #caption:not(.sub) {
    left: 5vw;
    width: 1024px;
  }
}

@media screen and (max-width: 750px) {
  #caption {
    padding: 3rem 2rem;
  }
}

@media screen and (min-width: 640px) {
  #page #hero {
    height: 450px;
  }
}

@media screen and (max-width: 640px) {
  #page #hero {
    height: 100vh;
  }
}