html {
  box-sizing: border-box;
  font-size: 16px;
  margin: 0;
  padding: 0;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

body {
  font-family: "Nunito", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  background-color: var(--grey);
}

.flex {
  display: flex;
}

:root {
  --light: #ffffff;
  --grey: #f5f5f5;
  --dark: #1f1616;
  --blue: #21b7dd;
  --pink: #f28b95;
}

/*global*/

.list-reset {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  padding: 0 4rem;
}

@media(max-width: 992px) {
  .container {
    padding: 0 2rem;
  }
}

@media(max-width: 576px) {
  .container {
    padding: 0 1rem;
  }
}

.btn {
  padding: 1rem 4rem;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--grey);
  background-color: var(--blue);
  border-radius: 0.5rem;
  border-color: transparent;
}

.btn:hover {
  background-color: var(--pink);
}

.btn:active {
  color: var(--pink);
  background-color: var(--blue);
}

.title {
  margin: 0;
  font-weight: 800;
  font-size: 4rem;
  margin-bottom: 3rem;
}

.text {
  margin: 0;
  font-size: 1.5rem;
  margin-bottom: 3rem;
}

.services-item-title {
  font-size: 1.5rem;
  font-weight: 600;
}

.card-title {
  margin: 0;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card-text {
  font-size: 1rem;
}

@media(max-width: 992px) {
  .title {
    font-size: 3rem;
    margin-bottom: 2rem;
  }

  .text {
    font-size: 1.25rem;
    margin-bottom: 2rem;
  }
}

@media(max-width: 576px) {
  .title {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
  }

  .text {
    text-align: center;
    font-size: 0.875rem;
    margin-bottom: 1rem;
  }

  .btn {
    padding: 0.5rem 2rem;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    border-radius: 0.25rem;
  }

  .services-item-title {
    font-size: 1rem;
    font-weight: 600;
  }

  .card-title {
    margin: 0;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    text-align: start;
  }

  .card-text {
    font-size: 0.75rem;
    text-align: start;
  }
}

/*header*/

.header-container {
  margin-bottom: 3rem;
  margin-top: 0;
  padding: 1rem 4rem;
  z-index: 3;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--dark);
}

.header-logo-png {
  height: 2rem;
  margin-right: auto;
}

.header-list {
  display: flex;
  gap: 2rem;
}

.header-list-item:not(:last-child) {
  margin-right: 2rem;
}

.header-list-item {
  color: var(--grey);
  font-size: 1.125rem;
}

.header-list-item:hover {
  color: var(--blue);
}

.header-list-item:active {
  color: var(--pink);
}

.toggle-btn {
  color: var(--grey);
  font-size: 2rem;
  cursor: pointer;
  display: none;
}

.toggle-btn:hover {
  color: var(--blue);
}

.toggle-btn:active {
  color: var(--pink);
}

@media(max-width: 992px) {
  .header-container {
    padding: 0.5rem 2rem;
  }

  .header-logo-png {
    height: 2rem;
  }
}

@media(max-width: 576px) {
  .header-container {
    padding: 0.5rem 1rem;
  }
}

/*header dropdown-menu*/

.dropdown-menu {
  display: none;
  position: absolute;
  right: 3rem;
  top: 6rem;
  height: 0;
  width: 10rem;
  background: var(--blue);
  backdrop-filter: blur(15px);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: height 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dropdown-menu.open {
  height: 14.5rem;
}

.dropdown-list-item {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey);
}

.dropdown-list-item:not(:last-child) {
  margin-bottom: -0.75rem;
}

.dropdown-list-item:hover {
  font-weight: 800;
}

.dropdown-list-item:active {
  color: var(--pink);
}


/*header media*/

@media(max-width: 992px) {
  .header-list {
    display: none;
  }

  .toggle-btn {
    display: block;
    font-size: 1.5rem;
  }

  .dropdown-menu {
    display: block;
  }
}

@media(max-width: 576px) {
  .dropdown-menu {
    left: 3rem;
    width: unset;
  }
}

/*about*/

.about {
  margin-bottom: 3rem;
}

.hero-left {
  height: auto;
  margin-right: auto;
  flex-direction: column;
  align-items: flex-start;
  width: 50%;
}

@media(max-width: 992px) {
  .hero-left {
    width: 80%;
  }

  .about-text {
    text-align: start;
    margin-bottom: 1.5rem;
  }
}

@media(max-width: 576px) {
  .hero-left {
    width: 80%;
  }

}

/*services-img*/

.goals {
  margin-bottom: 3rem;
  padding: auto;
}

.goals-text-form {
  flex-wrap: wrap;
  margin-bottom: 1rem;
  justify-content: center;
  padding: 0 9rem;
}

.goals-title {
  text-align: center;
}

.goals-text {
  text-align: center;
  padding: auto;
}

.goals-card {
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.goals-card-item {
  width: 20rem;
  justify-content: flex-start;
}

.goals-img {
  padding: 0;
  width: 20rem;
  height: 20rem;
  margin-bottom: 0.5rem;
}

.card-title {
  text-transform: uppercase;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 900;
}

@media(max-width: 992px) {
  .goals-card-item {
    width: 15rem;
    justify-content: flex-start;
  }
  
  .goals-img {
    padding: 0;
    width: 15rem;
    height: 15rem;
    margin-bottom: 0.5rem;
  }

  .goals-text-form {
    padding: 0 6rem;
  }
  
  .card-title {
    text-transform: uppercase;
    text-align: center;
    font-size: 1rem;
    font-weight: 900;
  }
}

@media(max-width: 576px) {
  .goals-card-item {
    width: 10rem;
  }
  
  .goals-text-form {
    padding: 0 3rem;
  }

  .goals-img {
    width: 10rem;
    height: 10rem;
  }
}


/*cycling*/

.cycling {
  display: flex;
  margin-bottom: 4rem;
}

.cycling-title {
  margin: 0;
  flex-shrink: 5;
  z-index: 2;
  margin-right: auto;
  font-weight: 900;
  text-transform: uppercase;
}

.cycling-items {
  flex-shrink: 7;
  z-index: 1;
  height: 5rem;
  margin: 0 auto;
  margin-left: 4rem;
  min-width: 50%;
  color: var(--grey);
  background: var(--blue);
  border-radius: 0.5rem 0 0 0.5rem;

}

.cycling-items p {
  padding-top: 0.25rem;
  font-size: 1.5rem;
  text-align: left;
  color: var(--grey);
  text-transform: uppercase;
  animation: text 20s infinite linear;
  padding-left: 30%;
  white-space: nowrap;
}

@keyframes text {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(-120%, 0);
  }
}

@media(max-width: 992px) {
  .cycling {
    flex-wrap: wrap;
    margin-bottom: 3rem;
  }

  .cycling-title {
    margin-left: auto;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .cycling-items {
    z-index: 1;
    height: 5rem;
    margin-left: 0;
    min-width: 100%;
    color: var(--grey);
    background: var(--blue);
    border-radius: 0;

  }

  .cycling-items p {
    padding-top: 0.25rem;
    font-size: 1.5rem;
  }
}

@media(max-width: 576px) {
  .cycling {
    margin-bottom: 3rem;
  }

  .cycling-title {
    font-size: 1rem;
  }

  .cycling-items {
    z-index: 1;
    height: 3rem;
    margin-left: 0;
  }

  .cycling-items p {
    font-size: 1rem;
  }
}

/*service*/

.services {
  margin-bottom: 3rem;
}

.services-text {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.services-title {
  text-align: center;
  padding: 0 9rem;
}

.services-text {
  padding: 0 9rem;
}

.services-items {
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.services-item {  
  justify-content: space-between;
  border: 1px solid var(--light);
  border-radius: 0.5rem;
  background-color: var(--light);
  padding: 1.5rem 1rem;
  padding: 1rem;
  width: 49%;
}

.services-img-container {
  padding: 0 auto;
  height: 100%;
  width: 100%;
  align-items: center;
}

.services-item-icon {
  /* height: 90%; */
  width: 90%;
}

.services-item {
  flex-direction: row;
  flex-wrap: nowrap;
  /* padding: 1rem 3rem; */
}

.services-item-right {
  flex-direction: column;
  width: 100%;
}

.services-item-title {
  text-align: left;
  width: 80%;
  margin-bottom: 1.5rem;
}

.services-item-descr {
  width: 100%;
}

@media(max-width: 992px) {
  .services-item {
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--light);
    border-radius: 0.5rem;
    background-color: var(--light);
    padding: 1.5rem 1rem;
    /* padding: 1rem; */
    width: 100%;
  }

  .services-text {
    padding: 0 6rem;
  }

  .services-items {
    flex-direction: column;
    width: 100%;
  }

  .services-img-container {
    width: 295px;
  }

  .services-item {
    flex-direction: row;
  }

  .services-item-right {
    width: 60%;
  }

  .services-item-title {
    text-align: left;
    margin-bottom: 1rem;
  }

  .services-item-descr {
    width: 90%;
  }
}

@media(max-width: 576px) {
  .services-img-container {
    width: 160px;
  }

  .services-text {
    padding: 0 3rem;
  }
}


/*contacts*/

.contacts {
  margin-bottom: 3rem;
}

.contact-text-block {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 0 9rem;
}

.form-top {
  display: flex;
  gap: 1rem;
}
.post-form {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 1rem;
  width: 100%;
}

.form-left {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: flex-start;
  width: 360px;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-input {
  border: 1px solid var(--dark);
  border-radius: 0.5rem;
  box-sizing: border-box;
  padding: 1rem;
  width: 100%;
  height: 2.5rem;
  margin-right: auto;
}

.form-right {
  width: 500px;
  justify-content: flex-end;
}


.form-textarea {
  border: 1px solid var(--dark);
  border-radius: 0.5rem;
  box-sizing: border-box;
  /* resize: none; */
  padding: 1rem;
  width: 100%;
  height: 15rem;
  /* height: calc(100% - 20px); */
  margin-bottom: 0.75rem;
}


.form-wrapper {
  display: flex;
  justify-content: flex-end;
}

@media(max-width: 992px) {
  .contact-text-block {
    padding: 0 6rem;
  }

  .form-top {
    display: block;
  }

  .post-form {
    flex-direction: column;
    gap: 1rem;
  }

  .form-left {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    width: 100%;
  }

  .form-input {
    border: 1px solid var(--dark);
    border-radius: 0.5rem;
    box-sizing: border-box;
    padding: 1rem;
    height: 2.5rem;
  }

  .form-right {
    width: 100%;
  }

  .form-textarea {
    border: 1px solid var(--dark);
    border-radius: 0.5rem;
    box-sizing: border-box;
    padding: 1rem;
    width: 100%;
    height: 15rem;
    margin-bottom: 0.75rem;
  }

  .form-wrapper {
    display: flex;
    justify-content: flex-end;
  }
}

@media(max-width: 576px) {
  .contact-text-block {
    padding: 0 3rem;
  }
}

/*footer*/

.footer {
  margin: 0;
  padding: 1rem 2rem;
  background-color: var(--dark);
}

.footer-left {
  margin: 0;
  align-items: flex-start;
  margin-right: auto;
}

.footer-logo {
  height: 2.5rem;
  margin-right: auto;
  margin-bottom: 1rem;
}

.footer-right {
  margin: 0;
  width: 100%;
  flex-direction: row;
  justify-content: flex-end;
  align-items: baseline;
}

.footer-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: baseline;
  gap: 0.5rem;
}

.footer-item {
  color: var(--grey);
  text-align: end;
  font-size: 1rem;
  font-weight: 800;
  width: 5rem;
}

.footer-item :hover {
  color: var(--pink);
}

.footer-item :active {
  color: var(--blue);
}

.footer-text {
  margin: 0;
  color: var(--grey);
  font-size: 0.75rem;
  font-weight: 300;
}

@media(max-width: 992px) {
  .footer-right {
    width: 30%;
  }
}

@media(max-width: 576px) {
  .footer-right {
    width: 50%;
  }
}

@media(max-width: 420px) {
  .footer-right {
    width: 50%;
  }

  .footer-item {
    font-size: 0.75rem;
    width: 4rem;
  }

  .footer-logo {
    height: 2rem;
  }

  .footer-text {
    margin: 0;
    color: var(--grey);
    font-size: 0.5rem;
    font-weight: 500;
  }
}
