:root {
  --primary100: #4a062a;
  --secondary: #4a062a;
  --gray: #757575;
  --gray70: #636363;
  --light-gray: #d0d0d0;
  --black: #000;
  --white: #fff;
  --red: #d60000;
  --max-width: 1237px;
}

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

body {
  margin: 0;
  padding: 0 0 40px;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-weight: 400;
  background-color: var(--white);
  color: var(--black);
  -webkit-text-size-adjust: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary100);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

.center {
  text-align: center;
}

.page {
  /* padding-top: 60px; */
}

.page-header {
  padding-top: 50px;
  padding-bottom: 50px;
  margin-bottom: 50px;
  background-color: #F9F9F9;
  position: relative;  
  margin-left: calc((100% - 100vw) / 2);
  margin-right: calc((100% - 100vw) / 2);
}



.page-header h1 {
  margin: 0 0 24px;
  font-size: 32px;
  font-weight: 600;
  line-height: 39px;
  letter-spacing: -0.02em;
}

.page-intro {
  max-width: 760px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.5;
  color: var(--gray70);
}

.consultation-block {
  display: flex;
  align-items: stretch;
  column-gap: 80px;
  margin-bottom: 40px;
}

.consultation-block__image,
.consultation-block__form {
  width: calc(50% - 40px);
  background: var(--white);
  /* box-shadow: 0 0 26px rgba(0, 0, 0, 0.08); */
}

.consultation-block__image {
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
  overflow: hidden;
}

.consultation-block__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.consultation-block__form {
  padding: 50px;
}

.consultation-block__form h2 {
  margin: 0 0 40px;
  font-size: 24px;
  font-weight: 600;
  line-height: 29px;
  letter-spacing: -0.02em;
}

.form .row {
  margin-bottom: 20px;
}

.floatInput {
  display: block;
  padding: 22px 20px 10px;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  position: relative;
  background-color: var(--white);
}

.floatInput.textarea {
  padding-bottom: 0;
}

.floatInput.error {
  border-color: var(--red);
}

.floatInput input,
.floatInput textarea {
  z-index: 1;
  background-color: transparent;
  position: relative;
  border: none;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
  color: var(--black);
  outline: none;
  font-family: inherit;
}

.floatInput textarea {
  height: 10em;
  resize: vertical;
}

.floatInput .label-text {
  position: absolute;
  top: 16px;
  left: 22px;
  transition: all 0.2s;
  color: var(--gray70);
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  pointer-events: none;
}

.floatInput.up input ~ .label-text,
.floatInput.up textarea ~ .label-text,
.floatInput textarea:not(:placeholder-shown) ~ .label-text {
  top: 7px;
  font-size: 12px;
  line-height: 13px;
}

.checkbox-row {
  margin: 24px 0 16px;
}

input[type="checkbox"] {
  position: absolute;
  left: -9999px;
}

input[type="checkbox"] + label {
  display: inline-block;
  position: relative;
  padding-left: 32px;
  line-height: 18px;
  cursor: pointer;
  font-size: 14px;
  color: var(--gray70);
}

input[type="checkbox"] + label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border: 1px solid var(--gray70);
  background-color: var(--white);
  box-sizing: border-box;
  border-radius: 4px;
}

input[type="checkbox"]:checked + label::before {
  background-color: var(--primary100);
  border-color: var(--primary100);
  background-image: url("../assets/check.svg");
  background-position: center center;
  background-repeat: no-repeat;
}

.required-note {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--gray70);
}

.btns {
  margin-bottom: 20px;
}

.btn {
  color: var(--secondary);
  border: 2px solid var(--secondary);
  padding: 17px 40px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  text-align: center;
  display: inline-block;
  transition: all 0.2s;
  background-color: var(--white);
  text-decoration: none;
  border-radius: 12px;
  cursor: pointer;
}

.btn.dark {
  background-color: var(--primary100);
  color: var(--white);
  font-weight: 400;
}

.btn.dark:hover {
  background-color: var(--black);
  border-color: var(--black);
}

.w100 {
  width: 100%;
  box-sizing: border-box;
}

.formHint {
  font-size: 12px;
  line-height: 1.3;
  color: var(--gray70);
}

.formHint a {
  text-decoration: underline;
}

.form-message {
  margin-bottom: 20px;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.4;
  border-radius: 8px;
}

.form-message--success {
  background: #eef7ee;
  color: #2d6a2d;
}

.form-message--error {
  background: #fdecec;
  color: var(--red);
}

@media screen and (max-width: 1100px) {
  .wrap {
    padding-left: 20px;
    padding-right: 20px;
  }

  .consultation-block {
    column-gap: 40px;
  }

  .consultation-block__image,
  .consultation-block__form {
    width: calc(50% - 20px);
  }

  .consultation-block__form {
    padding: 40px 30px;
  }
}

@media screen and (max-width: 768px) {
  .page {
    /* padding-top: 30px; */
  }

  .page-header {
    padding-left: 20px;
    padding-right: 20px;
  }

  .page-header h1 {
    font-size: 24px;
    line-height: 1.2;
  }

  .page-intro {
    font-size: 14px;
  }

  .consultation-block {
    flex-direction: column;
    row-gap: 24px;
  }

  .consultation-block__image,
  .consultation-block__form {
    width: 100%;
  }

  .consultation-block__image {
    min-height: 280px;
  }

  .consultation-block__form {
    padding: 30px 0px;
  }

  .floatInput .label-text {
    font-size: 14px;
    top: 12px;
  }

  .floatInput.up input ~ .label-text {
    top: 5px;
  }

  .btn {
    font-size: 14px;
    padding: 14px 20px;
  }

  .consultation-block__image {
    display: none;
  }
}
