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

html {
  box-sizing: border-box;
  font-size: calc(1em + 1vw);
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: normal;
}

img {
  max-width: 100%;
}

body {
  min-width: 320px;
  font: 400 13px/26px "Candara", Arial, sans-serif;
  background-color: #e9d3bb;
  color: #102d1e;
}

/* globals */
.list-reset {
  margin: 0;
  padding: 0;
  list-style: none;
}

.btn-reset {
  padding: 0;
  border: none;
  background-color: transparent;
  cursor: pointer;
}

.flex {
  display: flex;
}

.container {
  max-width: 1870px;
  margin: 0 auto;
  padding: 0 15px;
}

.section-title {
  margin-bottom: 30px;
  text-align: center;
  font-weight: 700;
  font-size: 32px;
  text-transform: uppercase;
}

/* header */
.header {
  position: sticky;
  z-index: 10;

  top: 0;

  background-color: #e9d3bb;

  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.4);
}

.header__wrapper {
  padding-top: 20px;
  padding-bottom: 20px;
  justify-content: space-between;
  align-items: center;
}

.header__logo {
  padding-top: 6px;
}

.header__nav {
  flex-basis: 47%;
}

.header__list {
  justify-content: space-between;
  text-transform: uppercase;
  font-size: 20px;
  line-height: 26px;
}

.tel--link {
  font-family: "Arial";
  font-weight: 700;
  font-size: 20px;
  line-height: 26px;
}

.burger {
  display: none;
}

/* hero */
.hero {
  background-image: url(../img/hero.webp);
  background-repeat: no-repeat;
  background-size: cover;
}

.hero__wrapper {
  flex-direction: column;
  justify-content: center;
  min-height: 475px;
}

.hero__title {
  margin-bottom: 60px;
  max-width: 650px;
  font-size: 48px;
  line-height: 100%;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #f8eadc;
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.hero__link {
  display: flex;
  justify-content: center;
  align-items: center;

  padding: 10px;
  width: 325px;
  height: 65px;
  font-size: 22px;

  background-color: #f8eadc;
  border: 1px solid transparent;
  border-radius: 5px;

  transition: all 0.2s ease-in-out;
}

.hero__link:hover {
  color: #f8eadc;
  background-color: transparent;
  border-color: #f8eadc;
}

/* works */
.works {
  padding: 80px 0 40px;
}

.works__slider {
  position: relative;
  overflow: hidden;
}

.works__slider-wrapper {
  display: flex;
}

.works__slider-card {
  position: relative;
  overflow: hidden;

  flex-shrink: 0;
  width: calc(100% / 2 - 10px);
  height: 60vh;

  border-radius: 5px;
}

.works__slider-card-image {
  position: absolute;

  width: 100%;
  height: 100%;
  top: 0;
  left: 0;

  object-fit: cover;
  object-position: center;
}

.works__slider-card-content {
  position: absolute;
  display: flex;
  opacity: 0;

  padding: 40px;

  width: 100%;
  height: 100%;
  top: 0;
  left: 0;

  background-color: rgba(248, 234, 220, 0.4);

  transition: opacity 0.2s ease-in-out;
}

.works__slider-card:hover .works__slider-card-content {
  opacity: 1;
}

.works__slider-card-title {
  max-width: 480px;

  font-size: 32px;
  line-height: 120%;
  color: #091a11;
}

.works__slider-button {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;

  width: 4vw;
  height: 4vw;
  top: calc(50% - 2vw);

  background-color: rgba(248, 234, 220, 0.8);
  border-radius: 5px;
}

.works__slider-button svg {
  width: 20px;
  height: auto;
}

.works__slider-button--prev {
  left: 15px;
}

.works__slider-button--prev svg {
  transform: rotate(180deg);
}

.works__slider-button--next {
  right: 15px;
}

/* services */
.services {
  padding: 40px 0;
}

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

.services__item {
  display: flex;
  flex-direction: column;
  flex-basis: 49%;
  background-color: #f8eadc;
  border-radius: 5px;
  box-shadow: 0px 15px 40px rgba(0, 0, 0, 0.15);
}

.services__item:nth-child(-n + 2) {
  margin-bottom: 2%;
}

.service--img {
  border-radius: 5px 5px 0 0;
}

.accordion--active .service--img {
  display: none;
}

.item-wrapper {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 20px;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 60px;
}

.accordion__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: 20px;
  font-size: 20px;
  line-height: 130%;
  text-transform: uppercase;
  color: #102d1e;
}

.accordion__btn svg {
  transform: translateX(11px);
  transition: transform 0.4s ease-in-out;
}

.accordion__btn:hover:not(:focus-visible) svg {
  transform: translateX(17px);
}

.btn-name2 {
  display: none;
}

.accordion--active .btn-name2 {
  display: flex;
}

.accordion--active .btn-name1 {
  display: none;
}

.accordion--active .item-wrapper {
  flex-direction: column-reverse;
}

.accordion--active .accordion__content {
  padding: 20px;
}

.accordion__content {
  display: flex;
  margin-bottom: 20px;
  flex-direction: column;
  overflow: hidden;
  visibility: hidden;
  max-width: 90%;
  transition-property: height, visibility;
  transition-timing-function: ease-in-out;
  font-family: "Arial";
  font-size: 18px;
  line-height: 194%;
}

.accordion--active .accordion__content {
  visibility: visible;
}

.content-txt {
  margin-bottom: 10px;
}

.txt--mb {
  margin-bottom: 25px;
}

.content-lst {
  margin: 0;
  padding: 0;
  list-style: inside;
}

.lst--mb {
  margin-bottom: 15px;
}

/* about */
.about {
  padding: 40px 0 80px;
}

.about__wrapper {
  justify-content: space-between;
  align-items: center;
  max-height: 400px;
  overflow: hidden;
  background-color: #f8eadc;
  border-radius: 5px;
  box-shadow: 0px 15px 40px rgba(0, 0, 0, 0.15);
}

.about__img {
  flex-basis: 49%;
}

.about__content {
  flex-direction: column;
  padding: 1%;
  flex-basis: 49%;
}

.about__txt {
  font-family: "Arial";
  font-size: 22px;
  line-height: 35px;
}

.about__txt:not(:last-child) {
  margin-bottom: 5%;
}

/* forms */
.forms {
  background-image: url(../img/hero.webp);
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.form__wrapper {
  flex-direction: column;
  align-items: center;
  padding: 60px 30px 80px;
}

.form--title {
  margin-bottom: 35px;
  font-weight: 700;
  font-size: 48px;
  line-height: 100%;
  color: #f8eadc;
  text-shadow: 0px 15px 40px rgba(0, 0, 0, 0.2);
}

.form {
  flex-direction: column;
  align-items: center;
  min-width: 20%;
}

.input {
  margin-bottom: 13px;
  padding: 17px 35px;
  width: 100%;
  font-size: 16px;
  color: rgba(16, 45, 30, 0.56);
  background: #f8eadc;
  border-radius: 5px;
  border-color: transparent;
}

.textarea {
  resize: none;
  margin-bottom: 20px;
  padding: 17px 35px;
  width: 100%;
  min-height: 120px;
  font-size: 16px;
  color: rgba(16, 45, 30, 0.56);
  background: #f8eadc;
  border-radius: 5px;
}

.forms__btn {
  padding: 24px 28px;
  font-family: "Arial";
  font-size: 18px;
  line-height: 162%;
  text-transform: uppercase;
  color: #102d1e;
  background: #f8eadc;
  border-radius: 5px;
}

/* footer */
.footer__wrapper {
  padding: 20px 0 15px;
  justify-content: space-between;
}

.footer__logo {
  justify-content: space-between;
  align-items: flex-end;
  flex-basis: 53%;
}

.footer__content {
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
}

.footer__links {
  font-family: "Arial";
  font-style: normal;
  font-weight: 700;
  font-size: 20px;
  line-height: 100%;
}

/* .footer__links:last-child {
  margin-bottom: 8px;
}

.social {
  max-width: 50%;
  justify-content: space-between;
}

.social-link:first-child {
  margin-right: 15px;
} */
