:root {
  --clr-pink: hsl(322, 100%, 66%);
  --clr-very-pale-cyan: hsl(193, 100%, 96%);
  --clr-very-dark-cyan: hsl(192, 100%, 9%);
  --clr-grayish-blue: hsl(208, 11%, 55%);

  --ff-poppins: 'Poppins', sans-serif; /* Headings; weights: 600 */
  --ff-open-sans: 'Open Sans', sans-serif; /* Body, Call-to-actions; weights: 400, 700 */

  --fw-400: 400;
  --fw-600: 600;
  --fw-700: 700;
}

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

img,
picture,
video,
canvas,
svg {
  max-width: 100%;
  display: block;
}

input,
button,
optgroup,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

body {
  min-height: 100vh;
  font-family: var(--ff-open-sans);
  font-size: 1.125rem;
  line-height: 1.5;
}

.header {
  background-color: var(--clr-very-pale-cyan);
  background-image: url(../images/bg-hero-mobile.svg);
  background-repeat: no-repeat;
  background-size: contain;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.875rem 1.25rem;
}

.header-top img {
  width: 6.25rem;
  height: auto;
}

a {
  text-decoration: none;
}

.header-top-link {
  background-color: white;
  color: var(--clr-very-dark-cyan);
  font-size: 0.6875rem;
  font-weight: var(--fw-700);
  padding: 0.3125rem 1.25rem;
  border-radius: 1.875rem;
  box-shadow: 0 0 1.1875rem -0.5625rem hsla(208, 11%, 55%, 0.5);
  transition: 0.2s;
}

.header-top-link:hover {
  opacity: 0.6;
}

.header-bottom {
  text-align: center;
  padding: 2.1875rem;
}

.header-bottom h1 {
  font-family: var(--ff-poppins);
  font-size: 1.5rem;
  font-weight: var(--fw-600);
  margin-bottom: 1.25rem;
}

.header-bottom p {
  font-size: 1rem;
}

.header-bottom-link {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: var(--fw-600);
  color: white;
  background-color: var(--clr-pink);
  padding: 0.75rem;
  width: 80%;
  border-radius: 1.875rem;
  margin-top: 1.875rem;
  margin-bottom: 3.75rem;
  transition: 0.2s;
}

.header-bottom-link:hover {
  opacity: 0.6;
}

.header-bottom img {
  width: 100%;
  height: auto;
}

.main-cards-section {
  padding: 3.125rem 1.25rem 6.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.875rem;
}

.main-card {
  padding: 2.5rem;
  text-align: center;
  border-radius: 0.9375rem;
  box-shadow: 0 0 1.1875rem -0.5625rem hsla(208, 11%, 55%, 0.5);
}

.main-card h2 {
  font-family: var(--ff-poppins);
  font-size: 1.25rem;
  color: var(--clr-very-dark-cyan);
  margin-top: 2.5rem;
  margin-bottom: 0.9375rem;
}

.main-card p {
  font-size: 0.875rem;
  color: var(--clr-grayish-blue);
}

.main-ready {
  padding: 2.8125rem 0.625rem;
  border-radius: 0.9375rem;
  background-color: white;
  text-align: center;
  box-shadow: 0 0 1.1875rem -0.5625rem hsla(208, 11%, 55%, 0.5);
  position: relative;
  width: 95%;
  margin: auto;
}

.main-ready h3 {
  font-size: 1.125rem;
  color: var(--clr-very-dark-cyan);
  margin-bottom: 1.5625rem;
}

.main-ready-link {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: var(--fw-600);
  color: white;
  background-color: var(--clr-pink);
  padding: 0.75rem;
  width: 50%;
  border-radius: 1.875rem;
  transition: 0.2s;
}

.main-ready-link:hover {
  opacity: 0.6;
}

.footer {
  background-color: var(--clr-very-dark-cyan);
  color: white;
  padding: 8.75rem 1.25rem 3.125rem;
  display: flex;
  flex-direction: column;
  gap: 3.125rem;
  margin-top: -4.0625rem;
}

.footer-contacts-logo {
  margin-bottom: 1.875rem;
  width: 10.625rem;
  filter: brightness(0) invert(1);
}

ul {
  list-style: none;
}

.footer-contacts ul {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-contacts li {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 1rem;
}

.footer-contacts ul li:nth-child(1) img {
  align-self: flex-start;
  margin-top: 0.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.9375rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.9375rem;
}

.footer-links a {
  color: white;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-social {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
}

.social-links {
  display: flex;
  gap: 1.25rem;
}

.social-links a {
  color: white;
  font-size: 0.875rem;
  border: 0.0625rem solid white;
  padding: 0.3125rem;
  border-radius: 50%;
  transition: 0.2s;
}

.social-links a:hover {
  color: var(--clr-pink);
  border: 0.0625rem solid var(--clr-pink);
}

.footer-social small {
  font-size: 0.6875rem;
}

@media screen and (min-width: 75rem) {
  .header {
    background: var(--clr-very-pale-cyan) url(../images/bg-hero-desktop.svg)
      no-repeat;
    background-size: contain;
  }

  .header-top {
    padding: 2.5rem 5rem 1.25rem;
  }

  .header-top img {
    width: 11.25rem;
  }

  .header-top-link {
    font-size: 0.875rem;
    padding: 0.9375rem 3.75rem;
  }

  .header-bottom {
    display: flex;
    justify-content: space-between;
    padding: 2.5rem 5rem;
  }

  .header-bottom h1 {
    font-size: 2.5rem;
    text-align: left;
  }

  .header-bottom div {
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .header-bottom img {
    width: 55%;
  }

  .header-bottom p {
    font-size: 1.125rem;
    text-align: left;
  }

  .header-bottom-link {
    font-size: 0.875rem;
    width: 55%;
    align-self: flex-start;
    padding: 1rem;
    margin-bottom: 0;
  }

  .main-cards-section {
    padding: 11.25rem 6.25rem;
    gap: 4.0625rem;
  }

  .main-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 26.875rem;
    padding: 6.25rem 1.875rem 6.25rem 7.5rem;
    text-align: left;
    gap: 3.125rem;
  }

  .main-card:nth-child(odd) {
    flex-direction: row-reverse;
  }

  .main-card h2 {
    font-size: 1.875rem;
    margin-top: 0;
  }

  .main-card p {
    font-size: 1.125rem;
  }

  .main-card div {
    max-width: 31.875rem;
  }

  .main-card img {
    max-width: 25rem;
    height: auto;
  }

  .main-ready {
    padding: 5rem 0.625rem;
    width: 60%;
  }

  .main-ready h3 {
    font-size: 1.875rem;
  }

  .main-ready-link {
    font-size: 1.125rem;
    padding: 1.5625rem;
    border-radius: 3.125rem;
  }

  .footer {
    padding: 12.5rem 5rem 6.25rem;
    flex-direction: row;
    justify-content: space-around;
    margin-top: -7.8125rem;
  }

  .footer-contacts {
    max-width: 30%;
  }

  .footer-contacts-logo {
    width: 15rem;
  }

  .footer-links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 6.25rem;
  }

  .footer-social {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .social-links {
    margin-top: 3.75rem;
    align-self: flex-start;
  }
}

@media screen and (min-width: 100rem) {
  .header-top {
    padding: 2.5rem 12.5rem 1.25rem;
  }

  .header-bottom {
    padding: 2.5rem 12.5rem;
  }

  .main-cards-section {
    padding: 9.375rem 15.625rem;
  }

  .main-card {
    justify-content: space-evenly;
  }
}
