:root {
  --clr-primary: #1c72d1;
  --clr-grey-400: #f2f2f2;
  --clr-grey-500: #e6e6e6;
  --clr-grey-600: #505050;
  --clr-grey-700: #2f2f2f;
  --clr-white: #ffffff;

  --fz-300: 1rem;
  --fz-400: 1.25rem;
  --fz-500: 1.5rem;
  --fz-600: 2rem;
  --fz-700: 2.5rem;

  --fw-300: 300;
  --fw-400: 400;
  --fw-500: 500;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
  font-family: "Roboto", sans-serif;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.container {
  margin-inline: auto;
  width: 1440px;
}

.btn {
  max-width: 200px;
  padding: 0.5rem 2rem;
  color: var(--clr-white);
  border: none;
  background-color: var(--clr-primary);
}

.btn:hover {
  cursor: pointer;
}


.header__logos {
  display: flex;
  padding: 1rem;
  justify-content: space-between;
}

.header__logo {
  object-fit: contain;
}

.header__logo-right {
  transform: scale(1.3);
}

.hero-section {
  padding-block: 3rem;
}

.hero-section__description {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-section__title {
  font-size: var(--fz-700);
}

.hero-section__text {
  font-size: var(--fz-500);
}

.hero-section__banner {
  display: grid;
  grid-template-columns: 2fr 1fr;
}

.hero-section__icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.hero-section__icon:nth-child(1) {
  grid-area: 1/1/2/2;
}
.hero-section__icon:nth-child(2) {
  grid-area: 1/3/2/4;
}
.hero-section__icon:nth-child(3) {
  grid-area: 3/1/4/2;
}
.hero-section__icon:nth-child(4) {
  grid-area: 2/2/3/3;
}
.hero-section__icon:nth-child(5) {
  grid-area: 3/3/4/4;
}
.hero-section__icon:nth-child(6) {
  grid-area: 5/1/6/2;
}
.hero-section__icon:nth-child(7) {
  grid-area: 4/2/5/3;
}
.hero-section__icon:nth-child(8) {
  grid-area: 5/3/6/4;
}

.reasons {
  padding-block: 3rem;
  background-color: var(--clr-grey-500);
}

.reasons__description {
  display: flex;
  width: 60%;
  gap: 2rem;
  flex-direction: column;
}

.advantages {
  padding-block: 3rem;
}

.advantages__cards {
  display: flex;
  padding-block: 2rem;
  gap: 5rem;
  justify-content: space-between;
}

.advantages__card {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 2rem;
}

.advantages__icon {
  width: 44px;
  height: 44px;
  object-fit: cover;
}

.possibilities {
  padding-block: 3rem;
  background-color: var(--clr-grey-400);
}

.possibilities__description {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.possibilities__title {
  font-size: var(--fz-600);
  color: var(--clr-primary);
}

.possibilities__text {
  font-size: var(--fz-500);
  width: 60%;

}

.possibilities__subtitle {
  font-size: var(--fz-500);
  color: var(--clr-primary);
}

.table__wrapper {
  max-width: 100%;
  overflow-x: scroll;
}

table {
  box-shadow: 0px 10px 30px rgba(133, 133, 152, 0.15);
}

.table caption {
  text-align: left;
}
td,
th,
caption {
  padding: 0.5rem 1rem;
}

tr {
  background: var(--clr-grey-500);
}

tr:nth-of-type(2n) {
  background: var(--clr-white);
}

.description__content {
  display: flex;
  justify-content: space-between;
}

.description__list {
  width: 70%;
}

ul {
  list-style: none;
}

ul li::before {
  content: "\2022";
  color: var(--clr-primary);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.description__icon {
  margin-inline: auto;
  align-self: flex-start;
  object-fit: contain;
}

.contacts {
  padding-block: 3rem;
}

.contacts__title {
  font-size: var(--fz-600);
}

.contacts__wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.footer {
  padding-block: 3rem;
  color: var(--clr-white);
  background-color: var(--clr-grey-700);
}

.footer__text {
  width: 50%;
}

@media only screen and (max-width: 600px) {
  .container {
    width: 100%;
    padding-inline: 1rem;
  }

  .btn {
    margin-inline: auto;
  }
  .header__logos {
    width: 100%;
  }

  .hero-section__description {
    margin-block: 2rem;
  }

  .hero-section__banner {
    grid-template-columns: 1fr;
  }

  .hero-section__title {
    font-size: var(--fz-500);
  }

  .hero-section__text {
    font-size: var(--fz-300);
  }

  .hero-section__icons {
    grid-row-start: -1;
  }

  .hero-section__icon {
    margin: auto;
  }

  .reasons__description {
    width: 100%;
  }

  .advantages {
    text-align: center;
  }
  .advantages__cards {
    flex-direction: column;
    gap: 2rem;
  }

  .advantages__card {
    gap: 2rem;
  }

  .advantages__icon {
    margin-inline: auto;
  }

  .possibilities__title {
    font-size: var(--fz-500);
    color: var(--clr-primary);
  }
  
  .possibilities__text {
    width: 100%;
    font-size: var(--fz-400);
  }
  
  .possibilities__subtitle {
    font-size: var(--fz-500);
    color: var(--clr-primary);
  }

  .description__content {
    flex-direction: column;
    gap: 1rem;
  }

  .description__list {
    width: 100%;
  }
  .contacts__title {
    font-size: var(--fz-500);
  }
  .footer__text {
    width: 100%;
  }
}

/* Utility classes */

.fz-300 {
  font-size: var(--fz-300);
}
.fz-400 {
  font-size: var(--fz-400);
}
.fz-500 {
  font-size: var(--fz-500);
}
.fz-600 {
  font-size: var(--fz-600);
}

.fz-700 {
  font-size: var(--fz-700);
}

.fw-300 {
  font-weight: var(--fw-300);
}
.fw-400 {
  font-weight: var(--fw-400);
}
.fw-500 {
  font-weight: var(--fw-500);
}

.clr-primary {
  color: var(--clr-primary);
}

.bg-grey {
  color: var(--clr-white);
  background-color: var(--clr-grey-600);
}

.bg-primary {
  color: var(--clr-white);
  background-color: var(--clr-primary);
}
.bg-white {
  color: var(--clr-primary);
  background-color: var(--clr-white);
}

.margin-block {
  margin-block: 2rem;
}
