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

@font-face {
  font-display: swap;
  font-family: "Involve";
  font-style: normal;
  font-weight: 500;
  src: url("../fonts/Involve-Medium.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Involve";
  font-style: normal;
  font-weight: 600;
  src: url("../fonts/Involve-SemiBold.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Involve";
  font-style: normal;
  font-weight: 700;
  src: url("../fonts/Involve-Bold.woff2") format("woff2");
}

:root {
  --color-brown-hover: #b59f9b;
  --color-brown: #775047;
  --color-black: #3a3a3a;
  --color-grey-dark: #90969f;
  --color-beige: #edecec;
  --color-white: #ffffff;
  --container-padding-x: 24px;
  --header-height: 86px;
}

* {
  padding: 0;
  margin: 0;
  border: 0;
}

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

aside,
nav,
footer,
header,
section {
  display: block;
}

html,
body {
  scrollbar-gutter: stable;
}

img,
video,
canvas,
svg {
  display: block;
}

input,
input::placeholder {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
}

input:focus {
  outline: 0;
}

input::-ms-clear {
  display: none;
}

button {
  display: inline-block;
  cursor: pointer;
  padding: 0;
  border: none;
  background: none;
  -webkit-user-select: none;
          user-select: none;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
}

button:disabled {
  cursor: default;
}

button::-moz-focus-inner {
  padding: 0;
  border: 0;
}

a {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

img {
  vertical-align: top;
}

ol,
ul {
  padding: 0;
}

ol[role=list],
ul[role=list],
ol[role=listbox],
ul[role=listbox] {
  list-style: none;
}

.container {
  max-width: 1880px;
  width: 100%;
  margin: 0 auto;
  padding-left: var(--container-padding-x);
  padding-right: var(--container-padding-x);
}

.container--none {
  padding: 0 !important;
  max-width: none !important;
}

.custom-scrollbar {
  scrollbar-color: var(--color-beige) transparent;
  scrollbar-width: thin;
  scroll-behavior: smooth;
}

.custom-scrollbar::-webkit-scrollbar {
  background-color: transparent;
  width: 4px;
  height: 4px;
  border-radius: 2px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background-color: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background-color: var(--color-beige);
  border-radius: 2px;
}

/* p2 */

body {
  font-family: "Involve", "Helvetica", "Arial";
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
  background-color: var(--color-white);
  color: var(--color-black);
}

body._locked {
  overflow: hidden;
}

main {
  overflow: hidden;
}

.h1 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
}

.h2 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  text-transform: uppercase;
}

.subtitle {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.t2 {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.t2-bold {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.embla__container {
  display: flex;
}

.embla__slide {
  flex: 0 0 100%;
  min-width: 0;
  -webkit-user-select: none;
          user-select: none;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.pagination .embla__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-blue-light);
}

.pagination .embla__dot--selected {
  background-color: var(--color-white);
}

.pagination-blue {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.pagination-blue .embla__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-grey-light);
}

.pagination-blue .embla__dot--selected {
  background-color: var(--color-blue);
}

.button-primary {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-align: center;
  transition-duration: 0.2s;
  transition-timing-function: ease-out;
  transition-property: color, border-color, background-color;
  padding: 15px 19px;
  border-radius: 32px;
  color: #edecec;
  background-color: #774c47;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.button-primary__arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #edecec;
  color: #775047;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: margin 0.2s ease-out;
}

.button-primary--reverse {
  flex-direction: row-reverse;
}

.button-primary--reverse .button-primary__arrow {
  transform: rotate(180deg);
}

.button-primary--text {
  padding: 19px;
}

.button-primary:hover {
  background-color: #b59f9b;
}

.button-primary:hover .button-primary__arrow {
  margin: 0 0 0 10px;
}

.button-primary--reverse:hover .button-primary__arrow {
  margin: 0 10px 0 0;
}

.section-pt {
  padding-top: 80px;
}

.section-pt-2 {
  padding-top: 80px;
}

.nowrap {
  text-wrap: nowrap;
}

.labels-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.label {
  padding: 8px 16px;
  border-radius: 30px;
  background-color: #775047;
  color: #edecec;
  text-align: center;
}

.label-light {
  color: #775047;
  background-color: #edecec;
}

.dark {
  color: #775047;
}

.input {
  width: 100%;
  float: left;
  display: block;
  margin: 0;
  text-transform: none;
  padding: 20px;
  text-align: center;
  border-radius: 16px;
  color: var(--color-blue);
  border: 1px solid var(--color-blue-light);
  background-color: #edecec;
  transition-duration: 0.25s;
  transition-timing-function: ease-out;
  transition-property: color, border-color;
}

.input::-webkit-inner-spin-button,
.input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.input::placeholder {
  color: #775047;
  transition: color 0.25s ease-out;
}

.input:hover,
.input:focus,
.input._fill {
  border-color: var(--color-blue);
}

.input:hover::placeholder,
.input:focus::placeholder,
.input._fill::placeholder {
  color: var(--color-blue);
}

.input:disabled {
  color: var(--color-grey);
  border-color: var(--color-grey);
}

[data-popup] {
  --popup-wrapper-padding-x: 24px;
  --popup-wrapper-padding-y: 48px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

[data-popup]._open {
  opacity: 1;
  visibility: visible;
}

[data-popup] [data-popup-shadow] {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  background-color: rgba(0, 0, 0, 0.4);
}

[data-popup] [data-popup-wrapper] {
  position: absolute;
  z-index: 10;
  top: 50%;
  left: 50%;
  overflow: hidden;
  transform: translate(-50%, -50%);
}

[data-popup] [data-popup-container] {
  overflow: auto;
  scrollbar-width: thin;
  width: calc(100vw - var(--popup-wrapper-padding-x));
  max-width: calc(100vw - var(--popup-wrapper-padding-x));
  max-height: calc(100vh - var(--popup-wrapper-padding-y));
}

.popup-calc [data-popup-container] {
  max-width: 1920px;
  background-color: var(--color-white);
  width: 100vw;
  max-width: 100vw;
  min-height: 100vh;
}

.popup-calc [data-popup-container] [data-quiz-slide] {
  padding: 80px 32px 64px;
}

.popup-calc .quiz-wrapper {
  display: flex;
  flex-direction: column;
  align-items: start;
}

.popup-calc .rec-section {
  margin-top: 14px;
}

.popup-calc .cards-section {
  padding-top: 17px;
}

[data-quiz-slide] {
  display: none !important;
}

[data-quiz-slide]._active {
  display: block !important;
}

.wait-section {
  text-align: center;
}

.wait-section h2 {
  margin-top: 14px;
}

.wait-section p {
  margin-top: 14px;
}

.wait-section__spinner {
  width: 195px;
  height: 195px;
  margin: 0 auto;
  margin-top: 87px;
}

[data-spoiler-title] img {
  transform: rotate(0);
  width: 24px;
  height: 24px;
}

[data-spoiler-title]._active img {
  transform: rotate(-180deg);
}

[data-spoiler-content-wrapper] {
  overflow: hidden;
  height: 0;
  transition: height 0.25s ease-out;
}

.header {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  width: 100%;
}

.header .container {
  background-color: var(--color-white);
  padding-top: 24px;
  padding-bottom: 24px;
  display: flex;
  justify-content: center;
}

.header__logo img {
  width: 180px;
}

.header__tel {
  display: none;
}

.footer__wrappper {
  background-color: #edecec;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  padding: 48px 0;
}

.footer .container {
  display: grid;
  grid-template-columns: 100%;
  gap: 32px;
}

.footer__logo img {
  width: 180px;
}

.footer__spoiler-row {
  background-color: #fff;
  padding: 20px;
  padding-top: 0;
  padding-bottom: 0;
}

.footer__spoiler-row:first-child {
  padding-top: 20px;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.footer__spoiler-row:last-child {
  padding-bottom: 20px;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
}

.f-spoiler .label {
  display: inline-block;
}

.f-spoiler__address-list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.f-spoiler__also {
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid #dde2ed;
}

.f-info__text {
  color: #90969f;
}

.f-info__bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.f-pixel a {
  color: #0a66dd;
}

.main-section {
  margin-top: 38px;
  padding-top: var(--header-height);
}

.main-section .container {
  display: grid;
  gap: 16px;
}

.main-bg {
  position: relative;
  color: #edecec;
  border-radius: 16px;
  overflow: hidden;
  height: 500px;
}
@media (min-width: 400px) {
  .main-bg {
    height: 600px;
  }
}

.main-bg__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nadezh {
  position: relative;
  background-color: #774c47;
  color: #fff;
  padding: 16px 32px;
  border-radius: 16px;
}

.nadezh__aw-icon {
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  width: 35px;
  height: 35px;
}

.god {
  background-color: #edecec;
  border-radius: 16px;
  padding: 24px;
}

.god .labels-wrapper {
  margin-top: 24px;
}

.zastroyka {
  height: 455px;
  position: relative;
  background-color: #775047;
  color: #fff;
  border-radius: 16px;
  padding: 24px;
  overflow: hidden;
}

.zastroyka .labels-wrapper {
  margin-top: 24px;
}

.zastroyka__img-dom {
  position: absolute;
  left: -18px;
  bottom: -10px;
  width: 350px;
  height: 217px;
}

.rec-section .container {
  display: grid;
  grid-template-columns: 100%;
  gap: 12px;
}

.rec-list .rec-block + .rec-block {
  margin-top: 8px;
}

.rec-block {
  padding: 17px 20px;
  background-color: #edecec;
  color: #775047;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  max-width: 220px;
  margin-left: auto;
}

.rec-quest h3 {
  margin-top: 5px;
}

.cards-section {
  padding-top: 17px;
}

.cards-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}

.card {
  cursor: pointer;
  transition: transform 0.15s ease-out;
  transform: scale(1);
}

.card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 16px;
}

.card .dark {
  display: inline-block;
  margin-top: 3px;
}

.card:hover {
  transform: scale(1.02);
}

.res-section {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
}

.res-section::after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.res-section__bg {
  height: 500px;
  width: 100%;
  object-fit: cover;
}

.res-section__form {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  background-color: #fff;
  padding: 20px 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  max-width: 250px;
}

.res-section__form p {
  margin-top: 10px;
}

.res-section__form .res-form {
  margin-top: 22px;
}

.res-section__done {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-out;
  background-color: #fff;
}

.res-section__done p {
  margin-top: 10px;
}

.res-section__done svg {
  margin: 0 auto;
  margin-top: 28px;
}

.res-section__done._active {
  opacity: 1;
  pointer-events: auto;
}

.res-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

[data-quiz-slide=res] button {
  margin-bottom: 17px;
}

@media (min-width: 767px) {
  :root {
    --container-padding-x: 34px;
  }

  [data-popup] {
    --popup-wrapper-padding-x: 80px;
  }

  .zastroyka__img-dom {
    left: 0;
    bottom: 0;
    width: 394px;
    height: 244px;
  }
}

@media (min-width: 1023px) {
  :root {
    --container-padding-x: 42px;
  }

  .h1 {
    font-size: 48px;
  }

  .h2 {
    font-size: 24px;
  }

  .labels-wrapper {
    gap: 24px 8px;
  }

  .popup-calc [data-popup-container] [data-quiz-slide] {
    padding: 80px 80px;
  }

  .popup-calc .rec-section {
    margin-top: 40px;
  }

  .popup-calc .cards-section {
    padding-top: 40px;
  }

  .popup-calc .cards-section .container {
    grid-template-columns: repeat(4, 1fr);
  }

  .wait-section h2 {
    margin-top: 120px;
  }

  .wait-section p {
    margin-top: 20px;
  }

  .wait-section__spinner {
    margin-top: 140px;
  }

  .header .container {
    justify-content: space-between;
    align-items: center;
  }

  .header__logo img {
    width: 200px;
  }

  .header__tel {
    display: inline-block;
  }

  .footer__wrappper {
    padding: 80px 0;
  }

  .footer .container {
    grid-template-columns: 417px minmax(auto, 1165px);
    grid-template-rows: 38px auto;
    justify-content: space-between;
  }

  .footer__logo img {
    width: 200px;
  }

  .footer__spoilers {
    grid-row: span 2;
  }

  .footer__spoiler-row {
    border-radius: 16px !important;
    padding: 30px !important;
  }

  .footer__spoiler-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .footer__spoiler-row + .footer__spoiler-row {
    margin-top: 20px;
  }

  .f-spoiler {
    display: flex;
    flex-direction: column;
  }

  .f-spoiler [data-spoiler-title] img {
    display: none;
  }

  .f-spoiler [data-spoiler-content-wrapper] {
    height: auto;
    flex-grow: 1;
  }

  .f-spoiler [data-spoiler-content] {
    display: flex;
    flex-direction: column;
    align-items: start;
    height: 100%;
  }

  .f-spoiler__address-list {
    flex-grow: 1;
  }

  .f-spoiler .label {
    margin-top: 24px;
  }

  .f-info {
    display: flex;
    flex-direction: column;
  }

  .f-info__text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .f-info__bottom {
    margin-top: 0;
  }

  .main-section .container {
    grid-template-columns: 1fr 425px;
    grid-template-rows: auto auto auto;
    gap: 20px;
  }

  .main-bg {
    height: auto;
    grid-row: span 3;
  }

  .main-bg__img {
    height: 745px;
  }

  .nadezh__aw-icon {
    width: 50px;
    height: 50px;
  }

  .god {
    padding: 32px;
  }

  .zastroyka {
    padding: 32px;
  }

  .rec-section .container {
    grid-template-columns: auto minmax(auto, 574px);
    grid-template-rows: auto auto;
    justify-content: space-between;
    gap: 38px 48px;
  }

  .rec-list {
    grid-row: span 2;
  }

  .rec-block {
    padding: 34px 38px;
    font-size: 17px;
    font-weight: 700;
    max-width: none;
    margin-left: 0;
  }

  .rec-quest h3 {
    margin-top: 8px;
  }

  .cards-section .container {
    grid-template-columns: repeat(3, 1fr);
  }

  .card img {
    height: 330px;
  }

  .card .dark {
    margin-top: 20px;
  }

  .res-section__bg {
    height: 600px;
  }

  .res-section__form p {
    max-width: 410px;
  }

  .res-section__form .res-form {
    margin-top: 47px;
  }

  .res-section__form {
    padding: 45px 46px;
    max-width: 575px;
  }

  .res-section__done svg {
    margin-top: 47px;
  }

  .res-form {
    gap: 11px;
    max-width: 335px;
  }

  [data-quiz-slide=res] button {
    margin-bottom: 48px;
  }
}

@media (min-width: 1024px) {
  .t2 {
    font-size: 17px;
  }

  .t2-bold {
    font-size: 17px;
  }

  .section-pt {
    padding-top: 100px;
  }

  .section-pt-2 {
    padding-top: 135px;
  }
}

@media (min-width: 1299px) {
  :root {
    --container-padding-x: 60px;
  }

  body {
    font-size: 16px;
  }

  .button-primary {
    font-size: 17px;
  }

  [data-popup] {
    --popup-wrapper-padding-x: 160px;
  }

  .cards-section .container {
    gap: 40px 16px;
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 1600px) {
  .popup-calc [data-popup-container] [data-quiz-slide] {
    padding: 100px 80px;
  }

  .main-bg__img {
    height: 800px;
  }

  .zastroyka {
    height: 510px;
  }

  .res-section__bg {
    height: 700px;
  }
}

@media (max-width: 1022px) {
  .popup-calc [data-popup-container] [data-quiz-slide] {
    padding-top: 100px;
  }

  .popup-calc .rec-list {
    display: none;
  }

  .header {
    z-index: 160;
  }

  .footer__spoiler-row + .footer__spoiler-row .f-spoiler {
    border-top: 1px solid #dde2ed;
  }

  .f-spoiler + .f-spoiler {
    border-top: 1px solid #dde2ed;
  }

  .f-spoiler [data-spoiler-title] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    padding-top: 20px;
  }

  .f-spoiler [data-spoiler-content] {
    padding-bottom: 20px;
  }

  .f-spoiler .dark {
    font-weight: 400;
  }

  .res-section__form > * {
    font-size: 12px;
  }

  .res-section__form h2 {
    font-size: 15px;
  }
}