:root {
  --base-border-radius: 12px;
  --small-border-radius: 6px;
  --y-padding-wrapper-s: 16px 0;
  --y-padding-wrapper-m: 32px 0;
  --y-padding-wrapper-xl: 64px 0;
  --y-padding-wrapper-xxl: 72px 0;
  --y-padding-wrapper-xxxl: 88px 0;
}

body {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  color: #27272a;
}

.wrapper {
  max-width: 1290px;
  margin: 0 auto;
  padding: 0 16px;
}

a.bold {
  font-weight: 700;
}

/* --------------------------------------- header ---------------------------------------*/
.header {
  position: sticky;
  top: -80px;
  z-index: 2;
  background-color: white;
}
.header__wrapper, 
.footer__wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 8px;
  margin: 0 auto;
}
.header__wrapper {
  align-items: stretch;
}
.ff {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.logo__icon {
  width: 240px;
  height: auto;
  overflow: hidden;
  border-radius: var(--small-border-radius);
}
.header__logo img {
  width: 100%;
  object-fit: cover;
}
.header__contacts,
.footer__contacts {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  font-weight: 500;
  font-size: 14px;
}
.header__contacts {
  flex-direction: row;
  justify-content: space-between;
}
.header__contacts > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.header__contacts p,
.footer__contacts p {
  display: flex;
  justify-content: start;
  align-items: center;
  flex-shrink: 0;
  margin: 0;
  margin-bottom: 4px;
}
.header__contacts p:hover,
.footer__contacts p:hover {
  text-decoration: underline;
}
.header__contacts img,
.footer__contacts img {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}
.header__contacts a,
.footer__contacts a {
  width: 100%;
  cursor: pointer;
  display: flex;
  /* flex-shrink: 0; */
  text-decoration: none;
  color: inherit;
}

@media (min-width: 640px) {
  .header {
    top: 0;
  }
  .header__wrapper,
  .footer__wrapper {
    padding: 16px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .footer__wrapper {
    padding: 8px 16px;
  }
  .header__contacts {
    flex-direction: column;
    font-size: 16px;
  }
}


/* --------------------------------------- preview ---------------------------------------*/
.preview {
  padding: var(--y-padding-wrapper-m);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../images/img-10.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  background-size: cover;
  color: rgb(255, 255, 255);
}
.preview__title {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
  padding: 16px 0;
  font-size: 28px;
  line-height: 1;
  text-transform: uppercase;
}
.preview__description {
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
}
.preview__description p:not(:last-child) {
  margin-bottom: 8px;
}

@media (min-width: 768px) {
  .preview {
    padding: var(--y-padding-wrapper-xxxl);
  }
  .preview__title {
    font-size: 72px;
    margin: 0 0 20px;
    padding: 32px 0;
    gap: 16px;
  }
  .preview__description {
    font-size: 18px;
    line-height: 28px;
  }
  .preview__description p:not(:last-child) {
    margin-bottom: 16px;
  }
}

/* --------------------------------------- why-choose-us ---------------------------------------*/
.why-choose-us {
  padding: 16px 16px 32px 16px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../images/img-10.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  background-size: cover;
}
.card {
  max-width: 600px;
  max-height: 630px;
  margin: 0 auto;
  background-color: white;
  border-radius: var(--base-border-radius);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  overflow: hidden;
}
.card__image > img {
  height: 220px;
  width: 100%;
  object-fit: cover;
}
.card__content {
  padding: 16px;
}
.card__title {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  margin-bottom: 16px;
}
.card__content p {
  margin-top: 8px;
  color: #374151;
}

@media (min-width: 768px) {
  .why-choose-us {
    padding: var(--y-padding-wrapper-xxxl);
    padding: 8px 16px 88px 16px;
  }
  .card {
    max-width: 1000px;
  }
  .card__wrapper {
    display: flex;
  }
  .card__image {
    flex: 4;
  }
  .card__content {
    padding: 32px;
    flex: 2;
  }
  .card__image {
    flex-shrink: 0;
  }
  .card__image > img {
    height: 100%;
    width: 100%;
  }
  .card__title {
    font-size: 32px;
  }
}

/* --------------------------------------- cost-formation ---------------------------------------*/
.cost-formation {
  padding: var(--y-padding-wrapper-m);
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), url("../images/img-6.avif");
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  background-size: cover;
}

.cost-formation__title {
  padding: 16px 0;
  font-size: 24px;
  line-height: 1;
  margin-bottom: 8px;
  text-transform: uppercase;
  display: flex;
  flex-direction: row;
  font-weight: 500;
  gap: 10px;
  flex-wrap: wrap;
}
.cost-formation__title span {
  flex-shrink: 0;
}
.cost-formation__description {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 500;
}
.cost-formation__list {
  list-style-type: circle;
  margin-left: 16px;
  font-size: 16px;
}
.cost-formation__list li {
  margin-bottom: 8px;
}
.cost-formation__list li span {
  font-weight: 700;
}

@media (min-width: 768px) {
  .cost-formation {
    padding: var(--y-padding-wrapper-xxl);
  }
  .cost-formation__title {
    padding: 32px 0;
    font-size: 32px;
    line-height: 1.1;
    flex-direction: column;
    flex-wrap: nowrap;
    margin-bottom: 24px;
  }
  .cost-formation__description {
    margin-bottom: 24px;
    font-size: 18px;
  }
  .cost-formation__list {
    margin-left: 32px;
    font-size: 18px;
  }
}

@media (min-width: 900px) {
  .cost-formation__title {
    font-size: 56px;
  }
}

/* --------------------------------------- services ---------------------------------------*/
.services {
  padding: var(--y-padding-wrapper-m);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../images/img-20.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  background-size: cover;
  padding-left: 16px;
  padding-right: 16px;
}
.services__wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 700px;
}
.services__image {
  flex: 3;
  border-radius: var(--base-border-radius);
  overflow: hidden;
  max-height: 680px;
}
.services__image > img {
  width: 100%;
  object-fit: cover;
  object-position: left bottom;
  border-radius: var(--base-border-radius);
}
.services__content {
  position: static;
  right: 0;
  top: 0;
  padding: 32px;
  flex: 2;
  border-radius: var(--base-border-radius);
  background-color: #27272a;
  color: white;
}
.services__title {
  font-size: 24px;
  line-height: 1.1;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.services__list {
  font-size: 16px;
  list-style-type: decimal;
  margin-left: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 768px) {
  .services {
    padding: var(--y-padding-wrapper-xxl);
  }
  .services__title {
    font-size: 38px;
    line-height: 1.1;
    margin-bottom: 24px;
    text-transform: uppercase;
  }
}

@media (min-width: 1024px) {
  .services__wrapper {
    max-width: 1290px;
    flex-direction: row;
    gap: 0;
  }
  .services__content {
    position: relative;
    right: 40px;
    top: 32px;
  }
}

/* --------------------------------------- galery ---------------------------------------*/
.galery {
  padding: var(--y-padding-wrapper-m);
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), url("../images/img-5.avif");
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  background-size: cover;
}
.galery__title {
  margin-bottom: 8px;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}
.galery__wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 400px));
  grid-auto-rows: minmax(340px, 400px);
  gap: 16px;
  justify-content: center;
  align-content: center;
  height: 100%;
  padding: 0 16px;
}
.galery__item {
  border-radius: var(--base-border-radius);
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}
.galery__item > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .galery {
    padding: var(--y-padding-wrapper-xl);
  }
  .galery__title {
    margin-bottom: 24px;
    font-size: 48px;
  }
}

/* --------------------------------------- price ---------------------------------------*/
.price {
  padding: var(--y-padding-wrapper-m);
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), url("../images/img-5.avif");
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  background-size: cover;
}
.price__title {
  font-size: 28px;
  line-height: 1.1;
  font-weight: 700;
  text-align: center;
  margin: 16px;
}
.table__wrapper {
  width: 100%;
  overflow-x: auto;
}
table {
  margin: 0 auto;
  border-collapse: collapse;
  width: 100%;
  max-width: 1100px;
  table-layout: auto;
  background-color: #fafafa;
  font-size: 14px;
  margin-bottom: 32px;
}
thead {
  background-color: #d4d4d8;
}
table .service {
  width: 100%;
  text-align: start;
}
table .cost {
  min-width: 110px;
}
table .cost {
  max-width: 200px;
  text-align: center;
}
td, th {
  border: 1px solid #52525b;
  padding: 8px;
}
tbody tr:nth-child(even) {
  background-color: #f4f4f5;
}
tbody tr:hover {
  background-color: #e5e7eb;
}

@media (min-width: 640px) {
  table {
    font-size: 16px;
  }
}

@media (min-width: 768px) {
  .price {
    padding: var(--y-padding-wrapper-xl);
    padding-top: 16px;
  }
  .price__title {
    font-size: 48px;
    line-height: 1.1;
  }
  table {
    font-size: 18px;
  }
  table .service {
    padding-left: 24px;
  }
  table .cost {
    min-width: 150px;
    max-width: 200px;
  }
}

/* --------------------------------------- footer ---------------------------------------*/
.footer {
  padding: 16px 0;
  background-color: #27272a;
  color: #fafafa;
}
.footer__wrapper {
  display: flex;
  justify-content: space-between;
  align-items: start;
}
.footer__rights  {
  align-self: center;
  margin-bottom: 16px;
}
.footer__contacts div p:first-child {
  margin-bottom: 16px;
}
.footer__contacts div {
  display: flex;
  flex-direction: column;
  align-items: start;
}

@media (min-width: 640px) {
  .footer__rights {
    margin-bottom: 0;
  }
  .footer__contacts div {
    align-items: start;
  }
}