:root {
  --bg-color-light: #ffffff;
  --bg-color-dark: #000853;
  --text-color-light: #ffffff;
  --text-color-dark: #000853;
}

* {
  box-sizing: border-box;
}

html {
  font-family: "Arvo", serif;
  scroll-behavior: smooth;
}

body {
  background-color: rgb(44, 44, 44);
}

body,
menu,
p,
h1,
h2,
h3,
ul,
a {
  margin: 0;
  padding: 0;
}

input {
  font-family: inherit;
}

/*--Container--*/

.container {
  margin: 0 auto;
}

@media screen and (min-width: 320px) and (max-width: 640px) {
  .container {
    width: 100%;

    padding: 0 24px;
  }
}

@media screen and (min-width: 641px) and (max-width: 1199px) {
  .container {
    width: 100%;

    padding: 0 48px;
  }
}

@media screen and (min-width: 1200px) {
  .container {
    max-width: 1400px;
    width: 100%;
    padding: 0 40px;
  }
}

/*--Navigation--*/

.nav {
  background-color: varrgb(44, 44, 44);
  display: flex;
  justify-content: space-between;

  padding: 24px 0;
}

.nav__name {
  font-size: 24px;
  font-weight: bold;
  color: var(--text-color-light);
  text-decoration: none;
}

.nav__list {
  display: flex;
  align-items: center;
  list-style: none;

  gap: 24px;
}

.nav__link {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-color-light);
  text-decoration: none;
}

.nav__link:hover {
  text-decoration: underline;
}

.nav__button:hover {
  color: var(--text-color-green);
}

.nav__button {
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-color-light);
}


@media screen and (min-width: 320px) and (max-width: 640px) {
  .nav {
    align-items: center;
  }

  .nav--desktop {
    display: none;
  }

  .nav__list {
    flex-direction: column;
    justify-content: center;
  }

  .nav__item {
    margin-bottom: 16px;
  }

  .nav__link {
    color: var(--text-color-dark);
  }

  .menu__name {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-color-dark);
    text-decoration: none;
  }
}

@media screen and (min-width: 641px) and (max-width: 1199px) {
  .nav {
    align-items: center;
  }

  .nav--desktop {
    display: none;
  }

  .nav__list {
    flex-direction: column;
    justify-content: center;
  }

  .nav__item {
    margin-bottom: 16px;
  }

  .nav__link {
    color: var(--text-color-dark);
  }

  .menu__name {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-color-dark);
    text-decoration: none;
  }
}

@media screen and (min-width: 1200px) {
  .nav {
    align-items: baseline;
  }

  .nav--mobile {
    display: none;
  }

  .nav__list {
    align-items: center;
  }
}

/*--Menu--*/

.menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  padding: 20px 0;

  height: 100vh;
  overflow-y: auto;

  background-color: var(--bg-color-light);

  transform: translateX(100%);
  transition: transform 0.5s;
}

.menu:target {
  transform: translateX(0);
  z-index: 10;
}

.menu__top {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 80px;
}

.nav__link--mobile {
  color: #000;
}

.icon {
  width: 32px;
  height: 32px;
}

/*Button*/

.button--light {
  display: inline-block;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-color-light);
  background-color: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
  text-align: center;

  border: 2px solid var(--text-color-light);
}

.button--light:hover {
  background-color: varrgb(44, 44, 44);
}

.button--dark {
  display: inline-block;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
 
  background-color: varrgb(44, 44, 44);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
  text-align: center;

  border: 2px solid var(--text-color-light);
}

.button--dark:hover {
  background-color: var(--bg-color-light);
  color: var(--text-color-dark);
  border: 2px solid var(--text-color-dark);
}

/*--Header--*/

.header {
  background-image: url('./img/background.png');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.header__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.header__title {
  font-size: 48px;
  font-weight: 600;
  color: var(--text-color-light);
}

.header__text {
  font-size: 28px;
  font-weight: 500;
  color: var(--text-color-dark);

  text-align: end;
}

.header__buttons {
  display: flex;
  gap: 24px;
}

@media screen and (min-width: 320px) and (max-width: 640px) {
  .header{
    padding: 40px 0 0 0;
  }
  
  .header__content {
    flex-direction: column;
    gap: 32px;
  }

  .header__info {
    width: 100%;
  }

  .header__image {
    width: 100%;
  }
}

@media screen and (min-width: 641px) and (max-width: 1199px) {
  .header {
    padding: 60px 0 0 0;
  }

  .header__content {
    flex-direction: column;
    gap: 32px;
  }

  .header__info {
    width: 100%;
  }

  .header__image {
    width: 100%;
  }
}

@media screen and (min-width: 1200px) {
  .header {
    padding: 40px 0 0 0;
  }

  .header__content {
    gap: 80px;
  }

  .header__info {
    width: 50%;
  }

  .header__image {
    width: 50%;
  }
}

/*--About--*/

.about {
  background-color: var(--bg-color-light);
}

.about__wrapper {
  display: flex;
  justify-content: space-between;
}

.about__title {
  font-size: 48px;
  font-weight: 300;
  color: var(--text-color-dark);
}

.about__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
}

.about__text {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-color-dark);
}

@media screen and (min-width: 320px) and (max-width: 640px) {
  .about {
    padding: 60px 0;
  }

  .about__wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }
}

@media screen and (min-width: 641px) and (max-width: 1199px) {
  .about {
    padding: 80px 0;
  }

  .about__wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }
}

@media screen and (min-width: 1200px) {
  .about {
    padding: 120px 0;
  }

  .about__wrapper {
    gap: 80px;
  }

  .about__info {
    align-items: flex-start;
    width: 60%;
  }
}

/*Features*/

.features {
  background-image: url('./img/background.png');
  background-position: top;
  background-size: cover;
  background-repeat: no-repeat;
}

.features__title {
  font-size: 48px;
  font-weight: 300;
  color: var(--text-color-light);

  margin-bottom: 60px;
}

.features__wrapper {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.feature__image {
  width: 80px;
  height: 80px;
}

.feature__title {
  font-size: 24px;
  font-weight: 500;
  color: var(--text-color-light);
}

.feature__text {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-color-light);
}

@media screen and (min-width: 320px) and (max-width: 640px) {
  .features {
    padding: 60px 0;
  }

  .features__wrapper {
    flex-direction: column;
    gap: 32px;
  }
}

@media screen and (min-width: 641px) and (max-width: 1199px) {
  .features {
    padding: 80px 0;
  }

  .features__wrapper {
    gap: 32px;
  }

  .feature {
    width: 100%;
  }
}

@media screen and (min-width: 1200px) {
  .features {
    padding: 120px 0;
  }

  .feature {
    width: 30%;
  }
}

/*Consultations*/

.consultations {
  background-color: var(--bg-color-light);
}

.consultations__title {
  font-size: 48px;
  font-weight: 300;
  color: var(--text-color-dark);

  margin-bottom: 60px;
}

.consultations__wrapper {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;

  gap: 16px;
}

.consultation {
  display: flex;
  flex-direction: column;

  text-decoration: none;
  transition: 0.3s;
}

.consultation:hover {
  transform: scale(1.05);
}

.consultation__image {
  width: 100%;
  object-fit: cover;
}

.consultation__info {
  background-image: url('./img/background.png');
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  height: 100%;
  padding: 32px 20px;
  gap: 16px;

}

.consultation__title {
  font-size: 24px;
  font-weight: 500;
  color: var(--text-color-dark);

  color: var(--bg-color-light);
}

.consultation__text {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-color-light);
}

@media screen and (min-width: 320px) and (max-width: 640px) {
  .consultations {
    padding: 60px 0;
  }

  .consultations__container {
    flex-direction: column;
    gap: 32px;
  }

  .consultation__image {
    width: 100%;
  }

  .consultation {
    flex-direction: column;
    width: 100%;
  }

  .consultation__info {
    padding: 40px 0;
  }
}

@media screen and (min-width: 641px) and (max-width: 1199px) {
  .consultations {
    padding: 80px 0;
  }

  .consultations__container {
    flex-direction: column;
    gap: 32px;
  }

  .consultation {
    width: 100%;
  }

  .consultation__info {
    padding: 40px;
  }
}

@media screen and (min-width: 1200px) {
  .consultations {
    padding: 120px 0;
  }

  .consultation {
    width: 48%;
  }

  .consultation__image {
    height: 100%;
  }
}

/*Values*/

.values {
  background-image: url('./img/background.png');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.values__wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.values__container {
  display: flex;
  justify-content: space-between;
  
  gap: 32px;
}

.values__title {
  font-size: 48px;
  font-weight: 300;
  color: var(--text-color-light);

  margin-bottom: 60px;
}

.values__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
}

.values__text {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-color-light);
}

@media screen and (min-width: 320px) and (max-width: 640px) {
  .values {
    padding: 40px 0;
  }

  .values__info {
    width: 100%;
  }

  .values__container {
    flex-direction: column;
    gap: 32px;
  }

  .values__wrapper {
    gap: 32px;
  }
}

@media screen and (min-width: 641px) and (max-width: 1199px) {
  .values {
    padding: 60px 0;
  }

  .values__info {
    width: 100%;
  }

  .values__container {
    flex-direction: column;
    gap: 32px;
  }

  .values__wrapper {
    gap: 32px;
  }
}

@media screen and (min-width: 1200px) {
  .values {
    padding: 80px 0;
  }

  .values__info {
    width: 60%;
  }
}

/*Feedback*/

.feedbacks {
  background-color: var(--bg-color-light);
}


.feedbacks__title {
  font-size: 48px;
  font-weight: 300;
  color: var(--text-color-dark);

  margin-bottom: 60px;
}

.feedbacks__wrapper {
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.feedback {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;

  padding: 20px;
  border-radius: 4px;
  box-shadow: 0 0 20px 10px rgb(238, 238, 238);
}

.feedback__image {
  width: 80px;
  height: 80px;
}

.feedback__name {
  font-size: 24px;
  font-weight: 500;
  color: var(--text-color-dark);
}

.feedback__text {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-color-dark);
}


@media screen and (min-width: 320px) and (max-width: 640px) {
  .feedbacks {
    padding: 40px 0;
  }

  .feedback {
    width: 100%;
  }

  .feedbacks__wrapper {
    flex-direction: column;
    gap: 32px;
  }
}

@media screen and (min-width: 641px) and (max-width: 1199px) {
  .feedbacks {
    padding: 60px 0;
  }

  .feedback {
    width: 100%;
  }

  .feedbacks__wrapper {
    flex-direction: column;
    gap: 32px;
  }
}

@media screen and (min-width: 1200px) {
  .feedbacks {
    padding: 80px 0;
  }

  .feedback {
    width: 30%;
  }
}

/*Contact*/

.contact {
  background-image: url('./img/background.png');
  background-position: bottom;
  background-size: cover;
  background-repeat: no-repeat;
}

.contact__wrapper {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.contact__title {
  font-size: 24px;
  font-weight: 300;
  color: var(--text-color-light);

  margin-bottom: 60px;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact__input {
  padding: 16px;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-color-dark);
  background-color: var(--bg-color-light);
  border: none;
  outline: none;
  border-radius: 8px;
}

.contact__textarea {
  font-family: inherit;
}

@media screen and (min-width: 320px) and (max-width: 640px) {
  .contact {
    padding: 40px 0;
  }

  .contact__wrapper {
    flex-direction: column;
    gap: 32px;
  }
}

@media screen and (min-width: 641px) and (max-width: 1199px) {
  .contact {
    padding: 60px 0;
  }

  .contact__wrapper {
    flex-direction: column;
    gap: 32px;
  }
}

@media screen and (min-width: 1200px) {
  .contact {
    padding: 80px 0;
  }

  .contact__form {
    width: 50%;
  }

  .contact__title {
    width: 50%;
  }
}

/*Footer*/

.footer {
  background-color: varrgb(44, 44, 44);
}

.footer__wrapper {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.footer__info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__link {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-color-light);
  cursor: pointer;
  text-decoration: none;
}

.footer__privacy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

@media screen and (min-width: 320px) and (max-width: 640px) {
  .footer {
    padding: 40px 0;
  }

  .footer__wrapper {
    flex-direction: column;
    gap: 32px;
  }

  .footer__info {
    align-items: center;
  }

  .footer__privacy {
    align-items: center;
  }

  .footer__link {
    text-align: center;
  }
}

@media screen and (min-width: 641px) and (max-width: 1199px) {
  .footer {
    padding: 60px 0;
  }

  .footer__wrapper {
    flex-direction: column;
    gap: 32px;
  }

  .footer__info {
    align-items: center;
  }

  .footer__privacy {
    align-items: center;
  }
}

@media screen and (min-width: 1200px) {
  .footer {
    padding: 80px 0;
  }
}

/*Consult*/

.consult {
  background-color: var(--bg-color-light);
}

.consult__title {
  font-size: 48px;
  font-weight: 300;
  color: var(--text-color-dark);
}

.consult__wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.consult__text {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-color-dark);
}

@media screen and (min-width: 320px) and (max-width: 640px) {
  .consult {
    padding: 40px 0;
  }

  .consult__text {
    width: 100%;
  }

  .consult__image {
    width: 100%;
  }
}

@media screen and (min-width: 641px) and (max-width: 1199px) {
  .consult {
    padding: 60px 0;
  }

  .consult__text {
    width: 100%;
  }

  .consult__image {
    width: 100%;
  }
}

@media screen and (min-width: 1200px) {
  .consult {
    padding: 80px 0;
  }

  .consult__image {
    width: 50%;
  }
}